﻿:root {
  --ink: #22322f;
  --muted: #6c7a76;
  --line: #d8dfd8;
  --soft: #f6f3ec;
  --paper: #ffffff;
  --brand: #3f7b6c;
  --brand-dark: #234f47;
  --accent: #b98a46;
  --danger: #b43f32;
  --ok: #247a57;
  --info: #276b8f;
  --shadow: 0 26px 70px rgba(35, 58, 53, 0.09);
  --shadow-soft: 0 12px 30px rgba(35, 58, 53, 0.06);
}


* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(185, 138, 70, 0.12), transparent 22%),
    radial-gradient(circle at bottom right, rgba(63, 123, 108, 0.08), transparent 18%),
    linear-gradient(180deg, #fbf8f1 0%, #f2f5f1 48%, #edf2ee 100%);
  font-family: "Aptos", "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.45;
  overflow-x: hidden;
}

html,
body,
#app {
  width: 100%;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 460px) 1fr;
}

.login-panel {
  padding: 48px;
  background: var(--paper);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}

.login-visual {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: end;
  padding: 52px;
  background:
    linear-gradient(130deg, rgba(8, 55, 50, 0.94), rgba(82, 44, 15, 0.78)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 90px);
  color: white;
}

.login-visual h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(42px, 7vw, 92px);
  line-height: 0.92;
  letter-spacing: 0;
}

.login-visual p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark.logo-brand {
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
}

.brand-logo {
  width: 218px;
  max-width: 100%;
  aspect-ratio: 1214 / 880;
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  mix-blend-mode: multiply;
}

.login-card h2 {
  margin: 0 0 8px;
  font-size: 30px;
}

.login-card p {
  margin: 0 0 24px;
  color: var(--muted);
}

.login-card form .btn {
  width: 100%;
}

.password-modal__panel {
  width: min(520px, calc(100vw - 32px));
}

.account-security-table input {
  min-width: 180px;
}

:where([hidden]) {
  display: none !important;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.compact-grid {
  grid-template-columns: minmax(0, 1.5fr) 92px 130px;
}

.field {
  display: grid;
  gap: 7px;
  position: relative;
  min-width: 0;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: #40504b;
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 7px;
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
}

.field input[type="file"] {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(13, 95, 85, 0.13);
}

.autocomplete-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  gap: 4px;
  max-height: min(420px, 56vh);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px;
  border: 1px solid rgba(13, 95, 85, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 34px rgba(16, 36, 31, 0.14);
  backdrop-filter: blur(10px);
}

.autocomplete-option,
.autocomplete-empty {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  text-align: left;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
}

.autocomplete-option {
  background: transparent;
  color: var(--ink);
  font-weight: 700;
}

.autocomplete-option:hover,
.autocomplete-option.active {
  background: rgba(13, 95, 85, 0.1);
  color: var(--brand-dark);
}

.autocomplete-empty {
  color: var(--muted);
  font-size: 14px;
}

.btn {
  border: 0;
  border-radius: 10px;
  min-height: 40px;
  padding: 9px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink);
  background: #edf2ef;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.btn.primary {
  color: white;
  background: var(--brand);
}

.btn.warn {
  color: #251807;
  background: #f2c15d;
}

.btn.danger {
  color: white;
  background: var(--danger);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
}

.btn.ghost.danger,
.btn.danger.ghost {
  color: var(--danger);
  background: #fff2ef;
  border-color: rgba(180, 63, 50, 0.38);
}

.btn.ghost.danger:hover,
.btn.danger.ghost:hover {
  color: #fff;
  background: var(--danger);
  border-color: var(--danger);
}

.btn.ghost.warn,
.btn.warn.ghost {
  color: #6d4600;
  background: #fff7e5;
  border-color: rgba(186, 126, 13, 0.35);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.demo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.notice {
  border-left: 4px solid var(--accent);
  background: #fff8ea;
  color: #664714;
  padding: 12px;
  border-radius: 7px;
  font-size: 14px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.segmented label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  font-weight: 800;
}

.segmented input {
  accent-color: var(--brand);
}

.choice-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.choice-pill {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fbf6;
  color: #33514a;
  font-weight: 800;
}

.choice-pill.active,
.choice-pill:hover {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: white;
  border-color: transparent;
}

.inline-field-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 8px;
  align-items: center;
}

.inline-field-action .btn {
  min-height: 44px;
  padding: 0;
}

.prospect-fields {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbf6;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(185, 138, 70, 0.18), transparent 30%),
    linear-gradient(180deg, #f8f3e9 0%, #eef4ee 58%, #e7efea 100%);
  color: var(--ink);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-right: 1px solid rgba(35, 58, 53, 0.08);
  box-shadow:
    inset -1px 0 0 rgba(255, 255, 255, 0.55),
    18px 0 44px rgba(37, 58, 51, 0.05);
}

.sidebar .brand-mark {
  color: var(--ink);
  padding: 18px 16px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 247, 240, 0.98));
  border: 1px solid rgba(35, 58, 53, 0.08);
  box-shadow: 0 14px 34px rgba(35, 58, 53, 0.07);
}

.sidebar .brand-logo {
  width: 152px;
  padding: 0;
  filter: drop-shadow(0 10px 22px rgba(185, 138, 70, 0.18));
}

.sidebar .brand-mark span {
  font-size: 24px;
  line-height: 1.05;
  color: #6d4b1f;
}

.sidebar .brand-mark small {
  color: rgba(35, 58, 53, 0.56);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav {
  display: grid;
  gap: 10px;
}

.nav button {
  border: 1px solid rgba(35, 58, 53, 0.08);
  width: 100%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  text-align: left;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(35, 58, 53, 0.04);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.nav-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(185, 138, 70, 0.16), rgba(63, 123, 108, 0.14));
  color: var(--brand-dark);
  font-size: 14px;
  flex: 0 0 auto;
  opacity: 1;
}

.nav-copy {
  flex: 1 1 auto;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.nav button.active,
.nav button:hover {
  color: var(--brand-dark);
  background: linear-gradient(135deg, rgba(255, 248, 233, 0.98), rgba(235, 245, 240, 0.98));
  border-color: rgba(63, 123, 108, 0.24);
  box-shadow: 0 14px 28px rgba(35, 58, 53, 0.08);
  transform: translateY(-1px);
}

.nav button.active .nav-icon,
.nav button:hover .nav-icon {
  background: linear-gradient(135deg, rgba(185, 138, 70, 0.26), rgba(63, 123, 108, 0.24));
}

.main {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding: 20px 22px 32px;
  overflow-x: hidden;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(35, 58, 53, 0.08);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 247, 241, 0.92));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.topbar h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.topbar-eyebrow {
  margin-bottom: 4px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topbar p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.topbar-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(35, 58, 53, 0.08);
  border-radius: 999px;
  background: #fbfaf5;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.global-search {
  position: relative;
  width: min(360px, 44vw);
}

.global-search input {
  width: 100%;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
}

.global-search-results {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  right: 0;
  width: min(420px, 90vw);
  max-height: 420px;
  overflow: auto;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  box-shadow: var(--shadow);
}

.global-search-results button {
  border: 1px solid transparent;
  border-radius: 8px;
  background: #f8fbf8;
  padding: 10px 12px;
  display: grid;
  gap: 3px;
  text-align: left;
  color: var(--ink);
}

.global-search-results button:hover {
  border-color: rgba(13, 95, 85, 0.28);
  background: rgba(13, 95, 85, 0.08);
}

.global-search-results span {
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.global-search-results small {
  color: var(--muted);
}

.global-search-all {
  justify-content: center;
  text-align: center !important;
  color: var(--brand) !important;
  font-weight: 900;
  background: rgba(13, 95, 85, 0.08) !important;
}

.global-results-panel {
  display: grid;
  gap: 16px;
}

.global-results-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.global-results-search input {
  min-height: 42px;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 800;
}

.global-results-group {
  display: grid;
  gap: 10px;
}

.global-results-group h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.global-results-group h3 span {
  display: inline-flex;
  min-width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(13, 95, 85, 0.1);
  color: var(--brand);
  font-size: 12px;
}

.global-results-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.global-results-list button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf5;
  padding: 12px;
  display: grid;
  gap: 4px;
  text-align: left;
  color: var(--ink);
}

.global-results-list button:hover {
  border-color: rgba(13, 95, 85, 0.35);
  background: rgba(13, 95, 85, 0.08);
}

.global-results-list span {
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.global-results-list small {
  color: var(--muted);
}

.offer-edit-form {
  margin: 14px 0;
}

.offer-edit-lines {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.offer-edit-line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf5;
}

.offer-edit-line > img {
  width: 72px;
  height: 58px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.toolbar .btn {
  min-height: 34px;
  padding: 8px 10px;
  font-size: 13px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.dashboard-grid-launcher {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-launcher-hero {
  position: relative;
  overflow: hidden;
  border: 0;
  padding: clamp(24px, 3vw, 38px);
  background:
    radial-gradient(circle at 78% 16%, rgba(255, 184, 66, 0.95) 0 6%, rgba(255, 184, 66, 0.86) 6% 8%, transparent 8%),
    linear-gradient(135deg, rgba(11, 35, 34, 0.98), rgba(18, 87, 74, 0.98) 46%, rgba(109, 79, 44, 0.94));
  color: #fff;
  box-shadow: 0 28px 60px rgba(16, 30, 27, 0.18);
}

.admin-launcher-hero::after {
  content: "";
  position: absolute;
  inset: auto -6% -10% -6%;
  height: 34%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02) 72%, transparent 78%);
  opacity: 0.85;
  pointer-events: none;
}

.admin-launcher-copy,
.admin-launcher-badge {
  position: relative;
  z-index: 1;
}

.admin-launcher-copy {
  max-width: 760px;
}

.admin-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.admin-launcher-title {
  margin: 0;
  font-family: "Brush Script MT", "Apple Chancery", "Snell Roundhand", cursive;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 700;
  text-wrap: balance;
}

.admin-launcher-highlight {
  position: relative;
  z-index: 0;
  display: inline-block;
  padding: 0 0.16em;
}

.admin-launcher-highlight::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.08em;
  right: -0.08em;
  bottom: 0.18em;
  height: 0.44em;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 186, 53, 0.98), rgba(255, 193, 72, 0.9));
  transform: rotate(-1.5deg);
}

.admin-launcher-highlight::after {
  content: "";
  position: absolute;
  left: 0.14em;
  right: 0.1em;
  bottom: -0.12em;
  height: 0.18em;
  border-radius: 999px;
  background: #4cc0ff;
  transform: rotate(-1deg);
}

.admin-launcher-subtitle {
  max-width: 68ch;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.55;
}

.admin-launcher-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.admin-launcher-actions .btn {
  min-height: 42px;
  padding-inline: 16px;
}

.admin-launcher-badge {
  justify-self: end;
  align-self: start;
  min-width: 180px;
  max-width: 240px;
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
}

.admin-launcher-badge span {
  display: block;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-launcher-badge strong {
  display: block;
  margin-top: 6px;
  font-size: 21px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.admin-launcher-badge small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.4;
}

.admin-launcher-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.admin-launcher-card {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  padding: 16px 14px 14px;
  border: 1px solid rgba(20, 42, 38, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 248, 247, 0.98));
  box-shadow: 0 12px 26px rgba(19, 45, 41, 0.08);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.admin-launcher-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(19, 45, 41, 0.12);
  border-color: rgba(20, 112, 95, 0.22);
}

.admin-launcher-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.admin-launcher-card strong {
  margin-top: auto;
  color: #13352f;
  font-size: 15px;
  line-height: 1.15;
}

.admin-launcher-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.admin-launcher-card-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.tone-gold .admin-launcher-card-icon { background: linear-gradient(135deg, #f7bb3b, #e18f1d); }
.tone-teal .admin-launcher-card-icon { background: linear-gradient(135deg, #17b9a5, #0e6f75); }
.tone-coral .admin-launcher-card-icon { background: linear-gradient(135deg, #ff8e6e, #d95b58); }
.tone-blue .admin-launcher-card-icon { background: linear-gradient(135deg, #5ba8ff, #1f5cab); }
.tone-purple .admin-launcher-card-icon { background: linear-gradient(135deg, #a25bd8, #6a379d); }
.tone-green .admin-launcher-card-icon { background: linear-gradient(135deg, #6bc36f, #227a4b); }
.tone-amber .admin-launcher-card-icon { background: linear-gradient(135deg, #ffc74d, #cf7b17); }
.tone-pink .admin-launcher-card-icon { background: linear-gradient(135deg, #f288c5, #b64a8c); }
.tone-cyan .admin-launcher-card-icon { background: linear-gradient(135deg, #55d6e8, #1a89ad); }
.tone-slate .admin-launcher-card-icon { background: linear-gradient(135deg, #8f9db2, #3f556c); }

.panel-compact {
  padding: 14px;
}

.metric {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 251, 249, 0.97));
  border: 1px solid rgba(18, 52, 48, 0.08);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.metric span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.metric strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.metric strong.metric-multi {
  font-size: 18px;
  line-height: 1.2;
}

button.metric,
button.detail {
  width: 100%;
  text-align: left;
}

.metric-button,
.detail-button {
  cursor: pointer;
}

.metric-button:hover,
.detail-button:hover {
  border-color: rgba(13, 95, 85, 0.35);
  background: rgba(13, 95, 85, 0.08);
}

.section {
  display: grid;
  gap: 14px;
}

.panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(35, 58, 53, 0.08);
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.panel-head h2,
.panel h2,
.panel h3 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.panel-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.panel-subhead {
  display: grid;
  gap: 4px;
}

.panel-subhead p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.settings-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(35, 58, 53, 0.16), transparent);
  margin: 4px 0;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

.offer-admin-table {
  min-width: 680px;
}

.offer-admin-table--compact {
  min-width: 620px;
}

.offer-admin-table .offer-col-amount,
.offer-admin-table .offer-col-date,
.offer-admin-table .offer-col-status {
  white-space: nowrap;
}

.offer-admin-table .offer-col-amount {
  width: 112px;
  text-align: right;
  font-weight: 800;
}

.offer-admin-table .offer-col-date {
  width: 92px;
}

.offer-admin-table .offer-col-status {
  width: 120px;
}

.offer-admin-table .offer-col-actions {
  width: 176px;
}

.offer-admin-table .offer-col-actions .toolbar {
  justify-content: flex-end;
}

.offer-admin-table .offer-col-actions .btn {
  min-width: 0;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px 9px;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  color: #3d4e49;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #f7faf6;
}

tr:last-child td {
  border-bottom: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 850;
  background: #e7edf0;
  color: #34515d;
}

.status.ok {
  background: #e5f4ec;
  color: var(--ok);
}

.status.warn {
  background: #fff0ce;
  color: #8a5c11;
}

.status.danger {
  background: #fae8e5;
  color: var(--danger);
}

.secret-state {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.secret-state.ok {
  background: #e5f4ec;
  color: var(--ok);
}

.secret-state.warn {
  background: #fff0ce;
  color: #8a5c11;
}

.field-help {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 20px;
  align-items: start;
}

.split > * {
  min-width: 0;
}

.split-workspace {
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
}

.split-services {
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
}

.split-services > .panel:last-child {
  position: sticky;
  top: 18px;
}

.admin-section-shell {
  display: grid;
  grid-template-columns: 198px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-section-nav {
  position: sticky;
  top: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 246, 239, 0.98));
  border-color: rgba(35, 58, 53, 0.08);
}

.admin-section-nav-stack {
  display: grid;
  gap: 10px;
}

.admin-section-link {
  width: 100%;
  border: 1px solid rgba(35, 58, 53, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  padding: 12px 14px;
  text-align: left;
  display: grid;
  gap: 4px;
  box-shadow: 0 8px 18px rgba(35, 58, 53, 0.04);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.admin-section-link strong {
  color: var(--brand-dark);
}

.admin-section-link small {
  color: var(--muted);
}

.admin-section-link.active,
.admin-section-link:hover {
  border-color: rgba(63, 123, 108, 0.24);
  background: linear-gradient(135deg, rgba(255, 248, 233, 0.98), rgba(235, 245, 240, 0.98));
  box-shadow: 0 14px 28px rgba(35, 58, 53, 0.08);
  transform: translateY(-1px);
}

.admin-section-main,
.admin-section-pane {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  display: grid;
  gap: 18px;
}

.admin-section-pane[hidden] {
  display: none !important;
}

.workspace-form,
.workspace-panel {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.detail {
  padding: 12px;
  border: 1px solid rgba(18, 52, 48, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fbfa);
}

.detail span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 5px;
}

.detail strong {
  overflow-wrap: anywhere;
}

.detail-finance {
  gap: 8px;
}

.installment-plan-card {
  border-color: rgba(13, 95, 85, 0.18);
  background: linear-gradient(180deg, rgba(13, 95, 85, 0.06), #ffffff);
}

.receipt-archive-card {
  border-color: rgba(180, 137, 54, 0.24);
  background: linear-gradient(180deg, rgba(255, 248, 234, 0.72), #ffffff);
}

.panel-head-compact {
  margin-bottom: 10px;
}

.panel-head-compact h3 {
  margin: 0;
}

.detail-note,
.metric-note {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  margin-top: 4px;
  font-weight: 600;
}

.detail-grid-service {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-detail-shortcut {
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.service-detail-shortcut:hover {
  border-color: rgba(13, 95, 85, 0.35);
  background: rgba(13, 95, 85, 0.08);
  transform: translateY(-1px);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.finance-chart {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.finance-bar-card {
  border: 1px solid rgba(18, 52, 48, 0.08);
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff, #f7faf8);
  display: grid;
  gap: 10px;
  text-align: left;
}

.finance-bar-card span {
  color: var(--muted);
  font-weight: 800;
}

.finance-bar-card strong {
  font-size: 22px;
  color: var(--brand-dark);
}

.finance-bar-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(13, 95, 85, 0.1);
  overflow: hidden;
}

.finance-bar-fill {
  height: 100%;
  border-radius: inherit;
}

.customer-search-results {
  display: grid;
  gap: 10px;
  max-height: 460px;
  overflow-y: auto;
}

.customer-search-card {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfa;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
}

.customer-search-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

.customer-search-card span,
.customer-search-card small {
  color: var(--muted);
}

.customer-search-submeta {
  max-width: 250px;
  text-align: right;
  line-height: 1.35;
}

.customer-search-card.active,
.customer-search-card:hover {
  border-color: rgba(13, 95, 85, 0.45);
  background: rgba(13, 95, 85, 0.06);
}

.customer-search-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.customer-dossier-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.customer-dossier-grid--single {
  grid-template-columns: 1fr;
}

.customer-detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.customer-detail-tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  padding: 10px 14px;
  font-weight: 800;
}

.customer-detail-tab.active,
.customer-detail-tab:hover {
  border-color: rgba(13, 95, 85, 0.35);
  background: rgba(13, 95, 85, 0.1);
  color: var(--brand-dark);
}

.service-admin-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

.service-admin-list {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.service-record-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f7faf7);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}

.service-record-card__open {
  min-width: 0;
  flex: 1;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.service-record-card__delete {
  align-self: center;
  flex: 0 0 auto;
}

.service-record-card strong,
.service-record-card span,
.service-record-card small {
  display: block;
}

.service-record-card span,
.service-record-card small {
  color: var(--muted);
}

.service-record-card.active,
.service-record-card:hover {
  border-color: rgba(13, 95, 85, 0.35);
  background: rgba(13, 95, 85, 0.08);
}

.service-record-meta {
  display: grid;
  gap: 8px;
  justify-items: end;
  text-align: right;
}

.service-admin-detail {
  min-width: 0;
  overflow: hidden;
}

.service-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 28px;
  isolation: isolate;
}

.service-detail-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 33, 31, 0.46);
  backdrop-filter: blur(6px);
  z-index: 0;
}

.service-detail-modal__panel {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 24px;
  background: #fffdf8;
  box-shadow: 0 40px 120px rgba(15, 35, 33, 0.35);
  border: 1px solid rgba(18, 52, 48, 0.08);
}

.service-detail-modal__head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: rgba(255, 253, 248, 0.96);
  border-bottom: 1px solid rgba(18, 52, 48, 0.08);
  backdrop-filter: blur(10px);
}

.service-detail-modal__head strong {
  display: block;
  font-size: 22px;
  color: var(--ink);
}

.service-detail-modal__head span {
  color: var(--muted);
  font-size: 13px;
}

.service-detail-modal__body {
  padding: 18px;
}

[data-preview-image] {
  cursor: zoom-in;
}

.image-preview-modal__panel {
  width: min(1080px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
}

.image-preview-modal__body {
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(11, 42, 36, 0.06), rgba(211, 143, 39, 0.08)),
    #fbfaf5;
}

.image-preview-modal__body img {
  max-width: 100%;
  max-height: calc(100vh - 190px);
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 28px 70px rgba(16, 32, 28, 0.22);
}

.service-detail-panel {
  min-height: 100%;
}

.service-intake-toggle {
  padding: 14px 16px;
  border: 1px dashed rgba(15, 106, 94, 0.28);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 250, 242, 0.98), rgba(247, 251, 248, 0.98));
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #314740;
  font-size: 14px;
  font-weight: 800;
}

.inline-check input {
  accent-color: var(--brand);
}

.contract-ack-stack {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

.contract-ack-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.contract-ack-card--important {
  border-color: #d7a747;
  background: #fff7e4;
}

.contract-ack-card span:first-child {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
}

.contract-ack-card strong {
  display: block;
  font-size: 15px;
}

.contract-ack-card p {
  margin: 6px 0 0;
}

.contract-ack-check {
  align-items: center;
  font-weight: 800;
}

.contract-link {
  margin-top: 10px;
}

.customer-branch-workspace {
  display: grid;
  gap: 14px;
  padding: 16px;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbf8;
}

.customer-branch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.customer-branch-card {
  display: grid;
  gap: 5px;
  text-align: left;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  cursor: pointer;
}

.customer-branch-card.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(13, 95, 85, 0.12);
}

.customer-branch-card strong {
  color: var(--brand-dark);
}

.customer-branch-card span,
.customer-branch-card small {
  color: var(--muted);
}

.customer-branch-card em {
  color: var(--text);
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}

.branch-current-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(13, 95, 85, 0.18);
  border-radius: 8px;
  background: #fffdf7;
}

.branch-profile-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.branch-profile-head > div {
  display: grid;
  gap: 4px;
}

.branch-profile-head strong {
  font-size: 17px;
  color: var(--brand-dark);
}

.branch-current-card p {
  margin: 0;
}

.branch-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.branch-profile-block {
  display: grid;
  gap: 5px;
  min-height: 92px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
  color: inherit;
}

.branch-profile-block span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.branch-profile-block strong {
  color: var(--brand-dark);
  font-size: 18px;
}

.branch-profile-block small {
  color: var(--muted);
}

.branch-profile-button {
  cursor: pointer;
}

.branch-profile-button:hover {
  border-color: rgba(13, 95, 85, 0.38);
}

.branch-profile-notes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.branch-profile-notes > div {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.branch-profile-notes h4 {
  margin: 0;
  color: var(--brand-dark);
}

.credential-card-stack {
  display: grid;
  gap: 14px;
}

.credential-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.credential-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.credential-card-head > div {
  display: grid;
  gap: 4px;
}

.credential-card-head strong {
  color: var(--brand-dark);
  font-size: 16px;
}

.credential-card-head span,
.credential-card-head small {
  color: var(--muted);
  font-size: 12px;
}

.credential-card textarea {
  min-height: 70px;
}

.maintenance-contract-reader {
  display: grid;
  gap: 18px;
  margin: 18px 0;
}

.maintenance-contract-page {
  padding: 18px;
  border: 1px solid rgba(95, 73, 35, 0.22);
  border-radius: 8px;
  background: #fffaf0;
  color: #2b352f;
  box-shadow: 0 8px 24px rgba(30, 46, 42, 0.08);
}

.maintenance-contract-page--important {
  border-color: #c4973e;
  background: #fff5dc;
}

.maintenance-contract-page__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(95, 73, 35, 0.2);
}

.maintenance-contract-page__head img {
  width: 58px;
  height: auto;
  object-fit: contain;
}

.maintenance-contract-page__head div {
  display: grid;
  gap: 3px;
  text-align: right;
}

.maintenance-contract-page__head strong {
  font-size: 15px;
  color: #60451f;
}

.maintenance-contract-page__head span {
  font-size: 12px;
  color: #6b766f;
}

.maintenance-contract-page__body {
  display: grid;
  gap: 10px;
  font-size: 14px;
  line-height: 1.55;
}

.maintenance-contract-page__body h2,
.maintenance-contract-page__body h3 {
  margin: 0;
  color: #5a3f1b;
  letter-spacing: 0;
}

.maintenance-contract-page__body p,
.maintenance-contract-page__body ul {
  margin: 0;
}

.contract-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.contract-field-grid--wide {
  grid-template-columns: 1fr;
}

.contract-field-grid div {
  padding: 9px 10px;
  border: 1px solid rgba(95, 73, 35, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.64);
}

.contract-field-grid span {
  display: block;
  font-size: 11px;
  color: #68746e;
  margin-bottom: 3px;
}

.contract-field-grid strong {
  font-size: 13px;
  color: #1f2f2b;
}

.maintenance-contract-page__check {
  display: flex;
  width: 100%;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(95, 73, 35, 0.16);
}

@media (max-width: 640px) {
  .maintenance-contract-page {
    padding: 14px;
  }

  .maintenance-contract-page__head {
    align-items: flex-start;
  }

  .maintenance-contract-page__head img {
    width: 48px;
  }

  .contract-field-grid {
    grid-template-columns: 1fr;
  }
}

.service-action-grid textarea {
  min-height: 120px;
}

.discovery-sketch-box {
  border: 1px solid rgba(18, 52, 48, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, #fffef8, #f6faf8);
  padding: 14px;
}

.discovery-sketch-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 12px;
}

.discovery-icon-search {
  min-width: 220px;
  flex: 1 1 260px;
  display: grid;
  gap: 6px;
  align-content: center;
  padding: 10px 12px;
  border: 1px solid rgba(18, 52, 48, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.discovery-icon-search label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.discovery-icon-search input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  font-weight: 800;
}

.discovery-tool-button {
  border: 1px solid rgba(18, 52, 48, 0.12);
  background: linear-gradient(180deg, #fffef8, #f3f6f3);
  border-radius: 14px;
  min-width: 102px;
  min-height: 88px;
  padding: 10px 12px;
  display: grid;
  gap: 8px;
  justify-items: center;
  align-content: center;
  color: var(--ink);
  font-weight: 700;
}

.discovery-tool-button.active,
.discovery-tool-button:hover {
  border-color: rgba(63, 123, 108, 0.32);
  box-shadow: 0 12px 24px rgba(35, 58, 53, 0.08);
  transform: translateY(-1px);
}

.discovery-tool-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(17, 70, 61, 0.07);
}

.discovery-tool-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.discovery-tool-text {
  font-size: 12px;
  text-align: center;
  line-height: 1.2;
}

.discovery-color-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.discovery-color-swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.discovery-transform-panel {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(160px, 1fr) minmax(160px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(18, 52, 48, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
}

.discovery-transform-panel[hidden] {
  display: none;
}

.discovery-transform-panel strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.discovery-transform-panel span {
  color: var(--muted);
  font-size: 12px;
}

.discovery-transform-panel label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.discovery-transform-panel input[type="range"] {
  width: 100%;
}

.discovery-color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid rgba(18, 52, 48, 0.12);
  background: var(--swatch);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.8);
}

.discovery-color-swatch.active {
  border-color: #15433c;
  transform: scale(1.08);
}

.discovery-settings-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(210px, 1fr) minmax(140px, 0.7fr);
  gap: 12px;
  margin-bottom: 12px;
}

.discovery-workspace {
  display: block;
}

.discovery-canvas {
  width: 100%;
  height: 420px;
  border: 1px dashed rgba(17, 70, 61, 0.18);
  border-radius: 14px;
  background: #fffdf8;
  touch-action: none;
  display: block;
}

.discovery-sketch-preview {
  width: 100%;
  max-width: 720px;
  border-radius: 12px;
  border: 1px solid rgba(18, 52, 48, 0.08);
  background: #fffdf8;
  margin-top: 10px;
}

.discovery-needs-panel .panel-head {
  margin-bottom: 10px;
}

.discovery-need-row .field {
  min-width: 0;
}

@media (max-width: 1200px) {
  .discovery-icon-search {
    flex-basis: 100%;
  }

  .discovery-transform-panel {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .discovery-transform-panel {
    grid-template-columns: 1fr;
  }
}

.customer-subpanel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfa;
  padding: 16px;
  display: grid;
  gap: 14px;
}

.customer-finance-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.customer-mini-table table {
  min-width: 0;
}

.compact-photo-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.card h3 {
  font-size: 18px;
}

.muted {
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 12px;
}

.checklist-stack {
  display: grid;
  gap: 10px;
}

.checklist-item {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfa;
}

.timeline-item {
  border-left: 4px solid var(--brand);
  background: #f8fbf6;
  padding: 12px 14px;
  border-radius: 7px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.photo {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

.photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #dfe7e2;
}

.photo div {
  padding: 10px;
}

.offer-builder {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbf7, #f6f1e6);
}

.offer-catalog {
  display: grid;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
}

.offer-catalog-summary {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(248, 251, 247, 0.96);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.offer-catalog-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  padding: 12px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  text-align: left;
}

.offer-catalog-card img {
  width: 58px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
  background: #e3ebe6;
  border: 1px solid var(--line);
}

.offer-catalog-card strong {
  display: block;
  margin-bottom: 4px;
}

.offer-catalog-card span,
.offer-catalog-card small {
  color: var(--muted);
}

.offer-catalog-card:hover {
  border-color: rgba(13, 95, 85, 0.4);
  background: rgba(13, 95, 85, 0.05);
}

.offer-catalog-card.active {
  border-color: rgba(13, 95, 85, 0.7);
  background: rgba(13, 95, 85, 0.1);
  box-shadow: inset 0 0 0 1px rgba(13, 95, 85, 0.18);
}

.segmented-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.offer-lines {
  display: grid;
  gap: 10px;
}

.compact-lines {
  max-height: 360px;
  overflow: auto;
}

.offer-line {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}

.offer-line img,
.mini-product img {
  width: 52px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
  background: #e3ebe6;
  border: 1px solid var(--line);
}

.offer-line span,
.mini-product span {
  color: var(--muted);
  font-size: 13px;
}

.offer-line-price {
  display: grid;
  gap: 2px;
  text-align: right;
  white-space: nowrap;
  color: var(--muted);
  font-size: 13px;
}

.offer-line-price small {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.offer-line-price strong {
  color: var(--ink);
  font-size: 15px;
}

.offer-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
}

.offer-total span {
  color: var(--muted);
  font-weight: 800;
}

.offer-total strong {
  font-size: 22px;
}

.mini-products {
  display: grid;
  gap: 7px;
}

.mini-product {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 220px;
}

.pdf-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  overflow: auto;
  background: rgba(13, 25, 22, 0.68);
  padding: 24px;
  display: grid;
  justify-items: center;
  align-content: start;
}

.invoice-detail-modal {
  z-index: 999999;
  padding: 28px;
  align-content: center;
  background: rgba(13, 25, 22, 0.68);
}

.invoice-detail-sheet {
  width: min(980px, calc(100vw - 56px));
  max-height: calc(100vh - 56px);
  overflow: auto;
  border-radius: 14px;
  background: #fffdf8;
  box-shadow: 0 32px 90px rgba(13, 25, 22, 0.32);
  border: 1px solid rgba(18, 52, 48, 0.1);
}

.invoice-detail-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(255, 253, 248, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.invoice-detail-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
  color: var(--brand-dark);
}

.invoice-detail-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.invoice-preview-card {
  display: grid;
  gap: 14px;
  padding: 18px 20px 20px;
}

.invoice-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.invoice-detail-table {
  max-height: 54vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.invoice-detail-table table {
  min-width: 760px;
}

.invoice-detail-table th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.invoice-mysoft-status {
  overflow: hidden;
}

.mysoft-response-preview {
  max-height: 180px;
  margin: 10px 0 0;
  padding: 12px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
  color: var(--ink);
  font: 12px/1.5 Consolas, "Courier New", monospace;
  white-space: pre-wrap;
}

.pdf-toolbar {
  width: min(960px, calc(100vw - 48px));
  max-width: 960px;
  margin: 0 0 14px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.pdf-page {
  width: 960px;
  box-sizing: border-box;
  max-width: none;
  min-height: 1180px;
  margin: 0;
  padding: 28px 24px 22px;
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 11.5px;
}

.offer-page {
  background: linear-gradient(180deg, #fffdf8 0%, #fbf1dd 100%);
  gap: 10px;
}

.offer-page--continued {
  padding-top: 18px;
}

.offer-page--summary {
  gap: 12px;
}

.offer-continuation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(105, 78, 32, 0.18);
}

.offer-continuation-head img {
  width: 70px;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.offer-continuation-title {
  display: grid;
  gap: 4px;
  text-align: right;
}

.offer-continuation-title strong {
  color: #5b431b;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.offer-continuation-title span {
  color: #6f6657;
  font-size: 11px;
  font-weight: 700;
}

.service-form-page {
  background: linear-gradient(180deg, #fffdf8 0%, #f6f2e6 100%);
  color: #2f3b36;
}

.service-form-page .pdf-table {
  margin-top: 10px;
}

.service-form-page .pdf-table th {
  background: #f2dfb8;
  color: #5a431c;
  letter-spacing: 0.04em;
}

.service-form-page .pdf-table td {
  vertical-align: top;
}

.service-summary {
  margin-top: 0;
  padding: 10px 0 0;
}

.service-terms-box {
  margin-top: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(180, 137, 54, 0.28);
  border-radius: 8px;
  background: rgba(255, 248, 234, 0.72);
}

.service-terms-box p {
  margin: 5px 0 0;
  line-height: 1.55;
  color: #4f5c56;
}

.quick-service-panel {
  width: min(1120px, calc(100vw - 42px));
}

.quick-service-form {
  display: grid;
  gap: 16px;
}

.quick-service-customer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.quick-service-customer > div,
.quick-service-section {
  border: 1px solid rgba(18, 52, 48, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  padding: 14px;
}

.quick-service-customer span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.quick-service-customer strong {
  color: var(--brand-dark);
}

.quick-service-customer p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.service-product-search-results {
  display: grid;
  gap: 6px;
  max-height: 260px;
  overflow: auto;
  margin-top: 6px;
  padding: 6px;
  border: 1px solid rgba(18, 52, 48, 0.12);
  border-radius: 8px;
  background: #fbfdf9;
}

.service-product-search-option {
  width: 100%;
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid rgba(18, 52, 48, 0.1);
  border-radius: 7px;
  background: #fff;
  color: #1f312d;
  text-align: left;
  cursor: pointer;
}

.service-product-search-option:hover {
  border-color: rgba(63, 123, 108, 0.42);
  background: #edf7f2;
}

.service-product-selected,
.service-product-select-hint {
  display: grid;
  gap: 2px;
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 11px;
  line-height: 1.35;
}

.service-product-selected {
  border: 1px solid rgba(63, 123, 108, 0.25);
  background: #e9f5ef;
  color: var(--brand-dark);
}

.service-product-selected strong {
  font-size: 12px;
}

.service-product-selected span {
  color: var(--muted);
}

.service-product-select-hint {
  border: 1px dashed rgba(105, 78, 32, 0.22);
  background: #fff8e8;
  color: #6f5528;
}

.service-product-search-option strong {
  font-size: 12px;
}

.service-product-search-option span,
.service-product-search-empty {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.service-pdf-modern {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(253, 244, 226, 0.9)),
    #fffdf8;
  color: #24312d;
}

.service-pdf-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.34fr);
  align-items: center;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(105, 78, 32, 0.2);
}

.service-pdf-meta {
  display: grid;
  gap: 4px;
  text-align: right;
  padding: 14px;
  border: 1px solid rgba(180, 137, 54, 0.24);
  border-radius: 8px;
  background: rgba(255, 248, 234, 0.72);
}

.service-pdf-meta span,
.service-pdf-title span,
.service-pdf-card span,
.service-pdf-sign-grid span {
  color: #7a6a55;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.service-pdf-meta strong {
  color: #3a2b14;
  font-size: 20px;
}

.service-pdf-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.28fr);
  gap: 12px;
  align-items: stretch;
  order: 2;
}

.service-pdf-title > div {
  border: 1px solid rgba(180, 137, 54, 0.2);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  padding: 12px 14px;
}

.service-pdf-title h1 {
  margin: 5px 0;
  color: #4f3718;
  font-size: 22px;
  line-height: 1.15;
}

.service-pdf-title strong {
  display: block;
  color: #234f47;
  font-size: 24px;
  margin-top: 6px;
}

.service-vat-included {
  display: block;
  margin-top: 7px;
  color: #5a431c;
  font-size: 15px;
  line-height: 1.25;
}

.service-pdf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  order: 1;
}

.service-pdf-card,
.service-pdf-process,
.service-pdf-section,
.service-pdf-info,
.service-pdf-approval {
  border: 1px solid rgba(180, 137, 54, 0.22);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.9);
  padding: 11px 13px;
  break-inside: avoid;
  page-break-inside: avoid;
}

.service-pdf-card strong {
  display: block;
  margin: 6px 0;
  color: #234f47;
}

.service-pdf-card p,
.service-pdf-process p,
.service-pdf-info p,
.service-pdf-approval p {
  margin: 4px 0;
  color: #3f4a45;
  line-height: 1.38;
}

.service-pdf-process {
  border-left: 4px solid #3f7b6c;
  min-width: 0;
  overflow: hidden;
  order: 3;
  min-height: 74px;
}

.service-pdf-process p,
.service-pdf-title p,
.service-pdf-card p,
.service-pdf-info p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.service-pdf-section {
  order: 4;
}

.service-pdf-summary {
  order: 5;
}

.service-pdf-info {
  order: 6;
}

.service-pdf-approval {
  order: 7;
}

.service-pdf-modern .pdf-footer {
  order: 8;
}

.service-pdf-process h2,
.service-pdf-section h2,
.service-pdf-info h2,
.service-pdf-approval h3 {
  margin: 0 0 8px;
  color: #5a431c;
  font-size: 15px;
}

.service-pdf-table {
  margin-top: 0;
  table-layout: fixed;
}

.service-pdf-table th,
.service-pdf-table td {
  vertical-align: top;
}

.service-pdf-table th:first-child,
.service-pdf-table td:first-child {
  width: 18%;
}

.service-pdf-table th:nth-child(2),
.service-pdf-table td:nth-child(2) {
  width: 38%;
}

.service-pdf-table th:nth-child(3),
.service-pdf-table td:nth-child(3) {
  width: 9%;
  text-align: center;
}

.service-pdf-table th:nth-child(4),
.service-pdf-table td:nth-child(4),
.service-pdf-table th:nth-child(5),
.service-pdf-table td:nth-child(5) {
  width: 17.5%;
  text-align: right;
}

.service-pdf-table tr {
  break-inside: avoid;
  page-break-inside: avoid;
}

.service-pdf-table span {
  color: #6f6657;
  font-size: 10.5px;
  line-height: 1.28;
}

.service-pdf-summary {
  margin-top: 0;
  width: min(360px, 100%);
  align-self: flex-end;
  break-inside: avoid;
  page-break-inside: avoid;
}

.service-rate-row strong {
  max-width: 210px;
  text-align: right;
  font-size: 10.5px;
  line-height: 1.25;
  color: #5a431c;
}

.service-pdf-info {
  background: linear-gradient(180deg, rgba(255, 248, 234, 0.95), rgba(255, 253, 248, 0.95));
  border-color: rgba(205, 164, 82, 0.38);
}

.service-pdf-approval {
  background: #fffdf8;
  border-color: rgba(63, 123, 108, 0.22);
}

.service-pdf-sign-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.service-pdf-sign-grid > div {
  border: 1px solid rgba(18, 52, 48, 0.1);
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
}

.service-pdf-sign-grid strong {
  display: block;
  margin-top: 6px;
  color: #234f47;
}

.pdf-brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pdf-brand-lockup img {
  width: 78px;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.pdf-brand-subtitle {
  margin: 2px 0 0;
  font-size: 11px;
  color: #7a6a55;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.receipt-document {
  display: grid;
  gap: 18px;
}

.receipt-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(230px, 0.8fr);
  gap: 18px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(105, 78, 32, 0.2);
}

.receipt-meta {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(180, 137, 54, 0.25);
  border-radius: 8px;
  background: rgba(255, 248, 234, 0.72);
  text-align: right;
}

.receipt-meta span,
.receipt-total-band span {
  color: #7a6a55;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.receipt-meta strong {
  color: #3a2b14;
  font-size: 14px;
}

.receipt-total-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, #234f47, #3f7b6c);
  color: #fff;
}

.receipt-total-band span {
  color: rgba(255, 255, 255, 0.78);
}

.receipt-total-band strong {
  font-size: 28px;
  letter-spacing: 0.02em;
}

.receipt-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.receipt-info-box,
.receipt-note-box,
.receipt-legal-box,
.receipt-proof-box {
  padding: 14px 16px;
  border: 1px solid rgba(180, 137, 54, 0.25);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.9);
}

.receipt-info-box h3,
.receipt-note-box h3 {
  margin: 0 0 10px;
  color: #5a431c;
  font-size: 14px;
}

.receipt-info-box p,
.receipt-note-box p,
.receipt-legal-box p {
  margin: 5px 0;
  line-height: 1.45;
  color: #3f4a45;
}

.receipt-legal-box {
  border-left: 4px solid #3f7b6c;
}

.receipt-proof-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  align-items: start;
  gap: 14px;
}

.receipt-proof-box h3 {
  margin: 0 0 8px;
  color: #5a431c;
  font-size: 14px;
}

.receipt-proof-box img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border: 1px solid rgba(18, 52, 48, 0.12);
  border-radius: 8px;
  background: #fff;
}

.receipt-signoff {
  margin-top: 4px;
}

.pdf-approval-certificate {
  border: 1px solid rgba(35, 79, 71, 0.14);
  background: linear-gradient(180deg, rgba(245, 250, 247, 0.98), rgba(255, 255, 255, 0.98));
}

.pdf-checklist {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.pdf-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.7fr);
  gap: 18px;
  align-items: start;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(105, 78, 32, 0.18);
}

.pdf-hero > div:first-child {
  display: grid;
  gap: 10px;
}

.pdf-brand {
  font-size: 13px;
  font-weight: 900;
  color: #875f24;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pdf-hero h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1;
  color: #163a35;
}

.pdf-hero p {
  margin: 0;
  color: #6f675a;
  line-height: 1.55;
  font-size: 12.5px;
}

.pdf-meta {
  display: grid;
  gap: 6px;
  justify-items: end;
  align-content: start;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 251, 243, 0.98), rgba(247, 238, 223, 0.98));
  border: 1px solid rgba(105, 78, 32, 0.14);
}

.pdf-meta span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8d7957;
}

.pdf-meta strong {
  font-size: 14px;
  color: #173f39;
}

.pdf-block {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(18, 52, 48, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

.pdf-block h3 {
  margin: 0 0 10px;
  font-size: 15px;
  color: #173f39;
}

.pdf-block p {
  margin: 0;
  color: #4b504f;
  line-height: 1.6;
  font-size: 12.5px;
}

.pdf-signoff {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pdf-signoff > div {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(18, 52, 48, 0.08);
  display: grid;
  gap: 6px;
}

.pdf-signoff strong {
  font-size: 12px;
  color: #173f39;
}

.pdf-signoff span {
  font-size: 12px;
  color: #6c665b;
}

.maintenance-pdf-hero {
  padding-bottom: 20px;
}

.maintenance-pdf-meta {
  min-width: 240px;
}

.maintenance-pdf-code-block {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.7fr);
  gap: 16px;
  align-items: start;
  background: linear-gradient(180deg, rgba(249, 252, 251, 0.98), rgba(241, 247, 244, 0.98));
}

.maintenance-code-label {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a6f5c;
}

.maintenance-code-value {
  display: block;
  font-family: "SFMono-Regular", "Menlo", monospace;
  font-size: 18px;
  line-height: 1.45;
  color: #163a35;
  letter-spacing: 0.08em;
  word-break: break-word;
}

.maintenance-code-note {
  margin-top: 10px !important;
}

.maintenance-pdf-status {
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(18, 52, 48, 0.1);
  display: grid;
  gap: 6px;
}

.maintenance-pdf-status__label {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a6f5c;
}

.maintenance-pdf-status strong {
  font-size: 16px;
  color: #173f39;
}

.maintenance-pdf-status small {
  color: #6f675a;
  line-height: 1.5;
}

.maintenance-pdf-summary .detail {
  min-height: 84px;
}

.maintenance-pdf-checklist {
  list-style: none;
  padding: 0;
  gap: 10px;
}

.maintenance-pdf-checklist li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(248, 251, 249, 0.94);
  border: 1px solid rgba(18, 52, 48, 0.07);
}

.maintenance-pdf-checklist li span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(22, 58, 53, 0.08);
  font-size: 11px;
  font-weight: 900;
  color: #173f39;
}

.maintenance-pdf-checklist li strong {
  font-size: 12.5px;
  line-height: 1.55;
  color: #253432;
}

.service-approval-block {
  border: 1px solid rgba(106, 68, 21, 0.18);
  border-radius: 12px;
  background: rgba(255, 250, 241, 0.92);
  padding: 16px 18px;
  display: grid;
  gap: 12px;
}

.service-approval-block h3 {
  margin: 0;
  font-size: 18px;
  color: #6a4415;
}

.service-approval-field {
  display: grid;
  gap: 8px;
}

.service-approval-field span {
  font-size: 13px;
  font-weight: 800;
  color: #7d5f36;
}

.service-approval-field input {
  border: 1px solid rgba(106, 68, 21, 0.22);
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
  background: #fffdfa;
}

.service-approval-text {
  margin: 0;
  line-height: 1.65;
  color: #5c4a2e;
}

.service-approval-actions {
  display: flex;
  justify-content: flex-end;
}

.pdf-head,
.pdf-party,
.pdf-total {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.pdf-head {
  align-items: flex-start;
  padding: 4px 0 16px;
  border-bottom: 1px solid rgba(106, 68, 21, 0.35);
  background: linear-gradient(180deg, rgba(250, 243, 232, 0.92), rgba(250, 243, 232, 0.4));
}

.pdf-head img {
  width: 170px;
  height: auto;
  object-fit: contain;
}

.pdf-head div,
.pdf-total {
  display: grid;
  justify-items: end;
  color: var(--muted);
}

.pdf-head strong {
  color: #9a6b2b;
  font-size: 24px;
  line-height: 1;
}

.pdf-head span {
  color: #7a6a55;
  font-weight: 700;
  font-size: 13px;
}

.pdf-head--compact {
  padding-bottom: 12px;
}

.doc-title-block {
  display: grid;
  gap: 4px;
  text-align: right;
}

.doc-title-block strong {
  font-size: 22px;
}

.doc-title-block span {
  color: #7a6a55;
  font-size: 12px;
  font-weight: 700;
}

.doc-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 14px;
}

.doc-card {
  border: 1px solid rgba(125, 93, 38, 0.18);
  background: rgba(255, 255, 255, 0.68);
  padding: 14px 16px;
  border-radius: 4px;
}

.doc-card span {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  color: #7c5b2a;
  font-weight: 800;
}

.doc-card strong {
  display: block;
  color: #3b2d1e;
  margin-bottom: 8px;
}

.doc-card p {
  margin: 0;
  color: #635846;
  line-height: 1.45;
  font-size: 11px;
}

.pdf-party {
  margin: 24px 0;
}

.pdf-party > div {
  flex: 1;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.pdf-party span {
  color: var(--muted);
  font-weight: 800;
}

.pdf-intro h2 {
  margin-bottom: 6px;
  color: #5b431b;
  font-size: 17px;
}

.pdf-table {
  min-width: 0;
  width: 100%;
  table-layout: fixed;
  margin-top: 18px;
  font-size: 10.5px;
}

.pdf-table th,
.pdf-table td {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pdf-table img {
  width: 62px;
  height: 46px;
  border-radius: 6px;
  object-fit: cover;
}

.pdf-total {
  justify-content: flex-end;
  margin-top: 18px;
  text-align: right;
}

.pdf-total strong {
  color: var(--brand-dark);
  font-size: 24px;
}

.pdf-approval {
  margin-top: 28px;
  padding: 16px;
  border-radius: 8px;
  background: #fff8ea;
  border: 1px solid #f0d39a;
}

.pdf-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(66, 52, 28, 0.45);
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  color: #4c4c4c;
  font-size: 12px;
}

.pdf-footer__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.pdf-footer__page {
  white-space: nowrap;
}

.offer-notice {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #ead7b0;
  border-radius: 8px;
  background: rgba(255, 248, 234, 0.92);
}

.offer-notice strong {
  color: var(--brand-dark);
}

.offer-notice span {
  color: var(--muted);
  font-size: 12px;
}

.offer-terms {
  margin-top: 22px;
  padding: 16px;
  border-top: 1px solid #d6c29a;
  background: rgba(255, 248, 234, 0.7);
}

.offer-terms h3 {
  margin: 0 0 8px;
  color: var(--brand-dark);
  font-size: 14px;
}

.offer-terms ul {
  margin: 0;
  padding-left: 18px;
  color: #4e4638;
  display: grid;
  gap: 6px;
}

.offer-table thead th {
  background: #f3e4c4;
  color: #5b431b;
}

.offer-page .offer-table thead th {
  white-space: nowrap;
  font-size: 8.8px;
  line-height: 1.15;
}

.offer-page .offer-table thead th small {
  display: inline;
  margin-left: 2px;
  font-size: 6.7px;
  white-space: nowrap;
}

.offer-table tbody td {
  vertical-align: top;
}

.offer-table tbody tr {
  break-inside: avoid;
  page-break-inside: avoid;
}

.offer-thumb {
  width: 48px;
  height: 36px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(87, 67, 37, 0.18);
}

.offer-item-name {
  font-weight: 800;
  color: #3b2d1e;
}

.offer-item-meta,
.offer-item-desc {
  color: #675b49;
  font-size: 9.2px;
  line-height: 1.25;
}

.offer-page .offer-notice {
  margin: 0 0 6px;
  padding: 9px 12px;
}

.offer-page .offer-table {
  table-layout: fixed;
  margin-top: 4px;
  font-size: 9.7px;
}

.offer-page .offer-table th:nth-child(1),
.offer-page .offer-table td:nth-child(1) {
  width: 58px;
}

.offer-page .offer-table th:nth-child(3),
.offer-page .offer-table td:nth-child(3) {
  width: 54px;
  text-align: center;
}

.offer-page .offer-table th:nth-child(4),
.offer-page .offer-table td:nth-child(4) {
  width: 94px;
  text-align: center;
}

.offer-page .offer-table th:nth-child(5),
.offer-page .offer-table td:nth-child(5) {
  width: 78px;
  text-align: center;
}

.offer-page .offer-table th:nth-child(6),
.offer-page .offer-table td:nth-child(6) {
  width: 74px;
  text-align: center;
}

.offer-page .compact-table thead th,
.offer-page .compact-table tbody td {
  padding: 4px 6px;
}

.offer-page .offer-table tbody tr {
  min-height: 0;
}

.offer-page .offer-thumb {
  width: 38px;
  height: 28px;
}

.offer-page .offer-item-name {
  font-size: 9.6px;
  line-height: 1.12;
}

.offer-page .offer-item-meta {
  font-size: 7.8px;
  line-height: 1.14;
}

.offer-page .offer-item-desc {
  font-size: 7.8px;
  line-height: 1.16;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 28px;
}

.offer-page .offer-summary,
.offer-page .pdf-approval {
  margin-top: 8px;
  padding: 12px 14px;
}

.offer-page .pdf-footer {
  padding-top: 8px;
  font-size: 9.2px;
  gap: 10px;
}

.offer-page .pdf-footer__contacts {
  gap: 10px;
}

.compact-table thead th,
.compact-table tbody td {
  padding: 8px 9px;
}

.compact-materials-table {
  margin-top: 14px;
}

.compact-materials-table thead th {
  font-size: 10px;
}

.compact-product-name {
  font-size: 10px;
  font-weight: 800;
  color: #2f2416;
  line-height: 1.15;
}

.compact-product-meta {
  margin-top: 2px;
  font-size: 8.8px;
  color: #6b614f;
  line-height: 1.1;
}

.offer-summary {
  display: grid;
  gap: 8px;
  align-self: end;
  margin-left: auto;
  width: min(320px, 100%);
  padding: 14px 0 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: #4b4438;
}

.summary-row.total {
  padding-top: 8px;
  border-top: 1px solid rgba(86, 61, 25, 0.35);
  font-size: 16px;
  font-weight: 800;
  color: #2f2416;
}

.terms-page {
  background: linear-gradient(180deg, #fffdf9 0%, #faf2df 100%);
}

.terms-stack {
  display: grid;
  gap: 10px;
}

.terms-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.terms-column {
  display: grid;
  gap: 10px;
  align-content: start;
}

.terms-block {
  padding: 0;
}

.terms-block h3 {
  margin: 0 0 6px;
  color: #2f2416;
  font-size: 12px;
  text-transform: uppercase;
}

.terms-block ul {
  margin: 0;
  padding-left: 18px;
  color: #474136;
  display: grid;
  gap: 5px;
  font-size: 10px;
  line-height: 1.22;
}

.terms-signature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.terms-signature > div {
  padding: 14px;
  border: 1px solid rgba(125, 93, 38, 0.18);
  background: #fffaf1;
}

.terms-signature span {
  display: block;
  color: #7c5b2a;
  font-size: 12px;
  margin-bottom: 4px;
}

.terms-signature strong {
  color: #2f2416;
  font-size: 14px;
}

.material-serial-row {
  align-items: end;
}

.material-serial-row .field-action {
  min-width: 150px;
}

.intro-image-page {
  padding: 12px;
  overflow: hidden;
  background: #fffaf2;
  justify-content: stretch;
  align-items: stretch;
  gap: 10px;
}

.intro-image-page img,
.intro-image-frame {
  flex: 1 1 auto;
  width: 100%;
  height: 0;
  max-height: none;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  display: block;
  border: 0;
  border-radius: 6px;
  background: white;
}

.presentation-page {
  margin-bottom: 24px;
}

.presentation-cover {
  display: grid;
  align-content: center;
  gap: 18px;
  min-height: 860px;
  text-align: center;
}

.presentation-cover h2 {
  margin: 0;
  color: var(--brand-dark);
  font-size: 34px;
}

.presentation-cover p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
}

.presentation-note {
  max-width: 640px;
  margin: 0 auto;
  padding: 18px;
  border-radius: 8px;
  color: #664714;
  background: #fff8ea;
  border: 1px solid #f0d39a;
}

.presentation-frame,
.presentation-image {
  width: 100%;
  min-height: 720px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbf6;
}

.presentation-image {
  min-height: 0;
  max-height: 760px;
  object-fit: contain;
}

.discovery-summary-card {
  border-left: 4px solid #c98a24;
  background: #fff8ea;
}

.discovery-summary-card > p,
.discovery-need-section > p {
  margin: 0;
  color: #675b48;
  line-height: 1.55;
}

.discovery-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.discovery-summary-item {
  padding: 10px 12px;
  border: 1px solid #ead9b8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.discovery-summary-item span {
  display: block;
  margin-bottom: 4px;
  color: #7c6c53;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.discovery-summary-item strong {
  display: block;
  color: #33291d;
  font-size: 12px;
  line-height: 1.45;
}

.discovery-need-section {
  border: 1px solid #ead9b8;
  background: rgba(255, 250, 242, 0.78);
}

.discovery-need-table th:nth-child(1) {
  width: 42%;
}

.discovery-need-table th:nth-child(2),
.discovery-need-table th:nth-child(3) {
  width: 10%;
  text-align: center;
}

.discovery-need-table td:nth-child(2),
.discovery-need-table td:nth-child(3) {
  text-align: center;
  font-weight: 800;
}

.need-row-title {
  color: #2f2416;
  font-weight: 900;
  line-height: 1.28;
}

.need-row-meta {
  margin-top: 3px;
  color: #756a58;
  font-size: 10px;
  line-height: 1.35;
}

.presentation-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border-radius: 8px;
  border: 1px solid #f0d39a;
  background: #fff8ea;
}

.approval-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.approval-panel {
  width: min(980px, 100%);
  display: grid;
  gap: 18px;
}

.mail-preview {
  max-width: 760px;
  margin: 6vh auto;
  padding: 22px;
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.mail-card {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.approval-link {
  display: block;
  padding: 12px;
  border-radius: 7px;
  color: var(--brand-dark);
  background: #eef6f2;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.contract-approval-box {
  display: grid;
  gap: 10px;
}

.contract-approval-box--accepted {
  border-color: #84c7a2;
  background: #eef8f1;
}

.contract-approval-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.contract-approval-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 28, 25, 0.64);
}

.contract-approval-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 32px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.contract-approval-head,
.contract-approval-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.contract-approval-actions {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.contract-approval-head > div {
  display: grid;
  gap: 3px;
}

.contract-approval-head strong {
  color: var(--brand-dark);
  font-size: 18px;
}

.contract-approval-head span {
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}

.contract-approval-body {
  overflow: auto;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.contract-approval-body h2 {
  margin: 0;
  color: #2f3f39;
  font-size: 22px;
}

.contract-approval-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: #40514a;
  line-height: 1.55;
}

.contract-page-check {
  align-items: flex-start;
  padding: 12px;
  border: 1px solid #d9eadf;
  border-radius: 8px;
  background: #f6fbf8;
}

.empty {
  color: var(--muted);
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.mobile-tabs {
  display: none;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 208px minmax(0, 1fr);
  }

  .main {
    padding: 18px 18px 26px;
  }

  .admin-section-shell {
    grid-template-columns: 184px minmax(0, 1fr);
  }

  .dashboard-grid,
  .cards,
  .finance-chart,
  .photo-grid,
  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-dossier-grid,
  .customer-finance-metrics {
    grid-template-columns: 1fr;
  }

  .detail-grid-service {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    min-height: 0;
    padding: 16px 16px 12px;
    gap: 14px;
  }

  .sidebar .brand-mark {
    padding: 14px 14px 12px;
    border-radius: 20px;
  }

  .sidebar .brand-logo {
    width: 132px;
  }

  .nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav button {
    width: auto;
    min-width: 160px;
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .main {
    padding: 16px 16px 26px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }

  .admin-section-shell,
  .split,
  .split-workspace,
  .split-services,
  .service-admin-layout,
  .customer-dossier-grid,
  .branch-profile-notes,
  .invoice-metric-grid,
  .field-grid,
  .detail-grid,
  .dashboard-grid,
  .cards,
  .finance-chart,
  .team-admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-section-nav {
    position: static;
  }

  .admin-section-nav-stack {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
    gap: 10px;
    scrollbar-width: none;
  }

  .admin-section-nav-stack::-webkit-scrollbar {
    display: none;
  }

  .admin-section-link {
    flex: 0 0 auto;
    min-width: 176px;
    max-width: 100%;
  }

  .split-services > .panel:last-child {
    position: static;
  }

  .branch-profile-head {
    display: grid;
  }

  .credential-card-head {
    display: grid;
  }
}

@media (max-width: 1480px) {
  .split,
  .split-workspace,
  .team-admin-layout,
  .customer-dossier-grid,
  .field-grid,
  .detail-grid,
  .dashboard-grid,
  .cards,
  .finance-chart {
    grid-template-columns: 1fr;
  }

  .compact-grid {
    grid-template-columns: 1fr;
  }
}

.stack {
  display: grid;
  gap: 18px;
}

.team-admin-layout {
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.team-staff-table {
  min-width: 0;
}

.note-stack {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.note-card {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(20, 64, 57, 0.14);
  border-radius: 16px;
  background: rgba(248, 244, 236, 0.92);
}

.note-card p {
  margin: 0;
}

.attachment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.attachment-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(20, 64, 57, 0.14);
  border-radius: 18px;
  background: rgba(255, 252, 245, 0.96);
  color: inherit;
  text-decoration: none;
}

.attachment-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
}

.attachment-card span,
.attachment-card small {
  overflow-wrap: anywhere;
}

.attachment-file {
  display: grid;
  place-items: center;
  min-height: 140px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0d5f55, #c58a2a);
  color: #fff7eb;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.attachment-audio {
  display: grid;
  gap: 10px;
  min-height: 140px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(13, 95, 85, 0.12), rgba(197, 138, 42, 0.14));
  padding: 12px;
}

.attachment-audio span {
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
}

.attachment-audio audio {
  width: 100%;
}

.voice-note-bar {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(20, 64, 57, 0.14);
  border-radius: 16px;
  background: rgba(248, 244, 236, 0.84);
}

.voice-note-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.voice-note-status {
  min-height: 20px;
}

.voice-note-preview {
  display: grid;
  gap: 6px;
}

.voice-note-preview audio {
  width: 100%;
}

.voice-note-preview small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.service-detail-panel p,
.customer-subpanel p,
.notice,
.detail {
  overflow-wrap: anywhere;
}

.stock-layout {
  display: grid;
  gap: 18px;
}

@media (max-width: 768px) {
  .sidebar {
    padding: 12px;
    gap: 12px;
  }

  .sidebar .brand-mark {
    padding: 12px;
    border-radius: 18px;
  }

  .sidebar .brand-logo {
    width: 112px;
  }

  .nav {
    gap: 8px;
  }

  .nav button {
    min-width: 132px;
    padding: 10px 12px;
    border-radius: 14px;
  }

  .nav-copy {
    font-size: 13px;
  }

  .main {
    padding: 12px 12px 22px;
  }

  .topbar,
  .panel,
  .section,
  .workspace-panel,
  .workspace-form,
  .customer-dossier,
  .customer-subpanel,
  .service-detail-modal__panel {
    width: 100%;
    max-width: 100%;
  }

  .admin-section-shell {
    gap: 12px;
  }

  .admin-section-nav {
    padding: 12px;
  }

  .admin-section-link {
    min-width: 148px;
    padding: 10px 12px;
    border-radius: 14px;
  }

  table {
    min-width: 560px;
  }

  .offer-admin-table,
  .offer-admin-table--compact {
    min-width: 560px;
  }

  .mini-product,
  .maintenance-pdf-meta,
  .material-serial-row .field-action {
    min-width: 0;
  }

  .maintenance-pdf-code-block {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  .split,
  .split-workspace,
  .team-admin-layout,
  .admin-section-shell {
    grid-template-columns: 1fr;
  }

  .admin-section-nav {
    position: static;
  }
}

@media (max-width: 420px) {
  .login-shell,
  .app-shell {
    grid-template-columns: 1fr;
  }

  .login-visual {
    display: none;
  }

  .login-panel {
    min-height: 100vh;
    padding: 26px;
  }

  .sidebar {
    position: static;
    min-height: 0;
    padding: 14px 14px 10px;
    gap: 14px;
  }

  .sidebar .brand-mark {
    align-items: center;
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
  }

  .sidebar .brand-logo {
    width: 118px;
  }

  .nav button {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
    min-width: 118px;
  }

  #logoutBtn {
    width: 100%;
  }

  .main {
    padding: 14px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
    border-radius: 18px;
  }

  .dashboard-grid,
  .cards,
  .finance-chart,
  .photo-grid,
  .detail-grid,
  .field-grid,
  .compact-grid,
  .segmented,
  .customer-finance-metrics {
    grid-template-columns: 1fr;
  }

  .offer-line {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .offer-line-price {
    text-align: left;
  }

  .pdf-modal {
    padding: 10px;
  }

  .pdf-toolbar {
    width: 960px;
    max-width: none;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .pdf-page {
    width: 960px;
    max-width: none;
    min-height: 1180px;
    padding: 28px 24px 22px;
    gap: 10px;
    font-size: 11.5px;
  }

  .pdf-head,
  .pdf-party {
    flex-direction: column;
  }

  .pdf-head img {
    max-width: 140px;
  }

  .doc-grid,
  .terms-columns {
    grid-template-columns: 1fr;
  }

  .offer-notice {
    padding: 10px;
    font-size: 8px;
  }

  .pdf-table {
    font-size: 7px;
  }

  .compact-table th,
  .compact-table td {
    padding: 4px 3px;
  }

  .pdf-table img,
  .offer-thumb {
    width: 30px;
    height: 24px;
  }

  .offer-item-name {
    font-size: 8px;
    line-height: 1.15;
  }

  .offer-item-meta,
  .offer-item-desc {
    font-size: 6.8px;
    line-height: 1.15;
  }

  .offer-summary,
  .pdf-approval,
  .tcmb-note-card {
    padding: 10px;
    font-size: 8px;
  }

  .summary-row.total {
    font-size: 12px;
  }

  .pdf-footer {
    gap: 8px;
    font-size: 8px;
  }

  .pdf-footer__contacts {
    gap: 6px;
  }

  .presentation-cover {
    min-height: 520px;
  }

  .intro-image-page {
    min-height: calc((100vw - 20px) * 1.32);
    padding: 6px;
  }

  .intro-image-page img,
  .intro-image-frame {
    height: 0;
  }

  .discovery-summary-grid {
    grid-template-columns: 1fr;
  }

  .discovery-summary-item,
  .discovery-need-section {
    padding: 8px;
  }

  .discovery-need-table th:nth-child(1) {
    width: 48%;
  }

  .presentation-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .customer-search-card {
    flex-direction: column;
  }

  .customer-search-meta {
    justify-items: start;
  }

  .compact-photo-grid {
    grid-template-columns: 1fr;
  }

  .customer-detail-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 12px;
    scrollbar-width: none;
  }

  .customer-detail-tabs::-webkit-scrollbar {
    display: none;
  }

  .service-admin-layout {
    grid-template-columns: 1fr;
  }

  .service-record-meta {
    justify-items: start;
    text-align: left;
  }

  .admin-section-link {
    min-width: 132px;
  }

  table,
  .offer-admin-table,
  .offer-admin-table--compact {
    min-width: 500px;
  }
}

/* Portal shell: primary navigation is intentionally tile-based on every screen. */
.app-shell {
  display: block;
  min-height: 100vh;
  overflow-x: clip;
  background:
    radial-gradient(circle at 12% 8%, rgba(185, 138, 70, 0.12), transparent 24%),
    radial-gradient(circle at 88% 18%, rgba(35, 116, 99, 0.11), transparent 28%),
    #f3f6f3;
}

.main {
  width: min(1760px, 100%);
  min-width: 0;
  margin: 0 auto;
  padding: 22px clamp(14px, 3vw, 42px) 34px;
}

.portal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 13px 16px;
  border: 1px solid rgba(29, 62, 54, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 40px rgba(26, 52, 47, 0.08);
  backdrop-filter: blur(18px);
}

.portal-header-brand,
.portal-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-header-brand .brand-logo {
  width: 96px;
  max-height: 58px;
  object-fit: contain;
}

.portal-header-brand div {
  display: grid;
  gap: 2px;
}

.portal-header-brand strong {
  color: #704819;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.portal-header-brand small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.portal-banner {
  position: relative;
  min-height: clamp(230px, 27vw, 350px);
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 30px;
  color: white;
  background:
    radial-gradient(circle at 84% 20%, rgba(239, 177, 73, 0.88), transparent 22%),
    linear-gradient(125deg, #0b2924 0%, #164e42 48%, #72502d 100%);
  box-shadow: 0 28px 70px rgba(20, 49, 43, 0.2);
  isolation: isolate;
}

.portal-banner::before,
.portal-banner::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.portal-banner::before {
  width: 430px;
  height: 430px;
  right: -120px;
  bottom: -260px;
  border: 66px solid rgba(255, 255, 255, 0.08);
}

.portal-banner::after {
  width: 220px;
  height: 220px;
  left: 38%;
  top: -150px;
  border: 34px solid rgba(237, 184, 92, 0.14);
}

.portal-banner-brand {
  position: absolute;
  z-index: 5;
  top: 24px;
  right: clamp(20px, 4vw, 54px);
  display: grid;
  justify-items: end;
  gap: 5px;
  max-width: 260px;
  text-align: right;
}

.portal-banner-brand img {
  width: clamp(110px, 12vw, 165px);
  max-height: 92px;
  object-fit: contain;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
}

.portal-banner-brand span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 11px;
  line-height: 1.35;
}

.portal-banner-track {
  position: absolute;
  inset: 0;
}

.portal-banner-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 72%;
  padding: 72px clamp(24px, 5vw, 76px) 42px;
  opacity: 0;
  transform: translateX(32px);
  animation: portalBannerCycle 18s infinite;
}

.portal-banner-slide--two {
  animation-delay: 6s;
}

.portal-banner-slide--three {
  animation-delay: 12s;
}

.portal-banner-kicker {
  margin-bottom: 10px;
  color: #f4c56f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.portal-banner-slide h2 {
  max-width: 760px;
  margin: 0;
  color: white;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.portal-banner-slide p {
  max-width: 690px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(14px, 1.6vw, 19px);
  line-height: 1.55;
}

.portal-banner-dots {
  position: absolute;
  z-index: 6;
  left: clamp(24px, 5vw, 76px);
  bottom: 24px;
  display: flex;
  gap: 7px;
}

.portal-banner-dots span {
  width: 22px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

@keyframes portalBannerCycle {
  0%, 29% {
    opacity: 1;
    transform: translateX(0);
  }
  33%, 96% {
    opacity: 0;
    transform: translateX(-24px);
  }
  100% {
    opacity: 0;
    transform: translateX(32px);
  }
}

.module-tile-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 11px;
  margin: 0 0 18px;
}

.module-tile-nav--bottom {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(35, 58, 53, 0.1);
}

.module-tile {
  min-width: 0;
  min-height: 94px;
  padding: 14px 10px;
  border: 1px solid rgba(35, 58, 53, 0.09);
  border-radius: 18px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(30, 59, 52, 0.07);
  font: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.module-tile:hover,
.module-tile.active {
  transform: translateY(-3px);
  border-color: rgba(34, 112, 94, 0.34);
  box-shadow: 0 18px 36px rgba(26, 76, 64, 0.14);
}

.module-tile.active {
  background: linear-gradient(145deg, #ffffff, #edf6f1);
}

.module-tile-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #0e5b4d;
  background: linear-gradient(135deg, rgba(230, 174, 79, 0.22), rgba(45, 139, 119, 0.18));
  font-size: 14px;
  font-weight: 900;
}

.module-tile strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-section-shell {
  display: block;
}

.admin-section-nav {
  position: static;
  margin-bottom: 16px;
  padding: 12px;
}

.admin-section-nav-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.admin-section-link {
  min-width: 0;
  min-height: 84px;
}

.admin-section-main,
.admin-section-pane,
.panel,
.section {
  min-width: 0;
}

@media (max-width: 760px) {
  .main {
    padding: 10px 10px 24px;
  }

  .portal-header {
    align-items: flex-start;
    padding: 12px;
  }

  .portal-header-brand .brand-logo {
    width: 78px;
  }

  .portal-header-brand div,
  .portal-header-actions .topbar-chip {
    display: none;
  }

  .portal-header-actions {
    margin-left: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .portal-header-actions .btn {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .portal-banner {
    min-height: 290px;
    border-radius: 22px;
  }

  .portal-banner-brand {
    top: 18px;
    right: 18px;
  }

  .portal-banner-brand img {
    width: 102px;
  }

  .portal-banner-brand span {
    display: none;
  }

  .portal-banner-slide {
    max-width: 100%;
    justify-content: flex-end;
    padding: 82px 22px 52px;
  }

  .portal-banner-slide h2 {
    max-width: 92%;
    font-size: clamp(32px, 10vw, 48px);
  }

  .portal-banner-slide p {
    max-width: 94%;
    margin-top: 12px;
    font-size: 14px;
  }

  .portal-banner-dots {
    left: 22px;
    bottom: 22px;
  }

  .module-tile-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .module-tile {
    min-height: 82px;
    padding: 10px 6px;
    border-radius: 15px;
  }

  .module-tile-icon {
    width: 36px;
    height: 36px;
  }

  .module-tile strong {
    font-size: 11px;
  }

  .admin-section-nav-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-section-link {
    min-width: 0;
    min-height: 76px;
  }
}

/* Compact app chrome v64 */
.pro-hero {
  display: none !important;
}

.pro-main {
  padding-top: 14px;
}

.pro-topbar {
  min-height: 64px;
  margin-bottom: 14px;
  padding: 10px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
}

.pro-topbar-title h1 {
  font-size: 22px;
}

.pro-topbar-title p {
  display: none;
}

.pro-topbar-title span {
  color: #6a7a74;
  font-size: 11px;
}

.pro-command {
  gap: 8px;
}

.pro-search {
  width: min(440px, 34vw);
}

@media (max-width: 390px) {
  .module-tile-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-banner-slide {
    animation: none;
  }

  .portal-banner-slide:first-child {
    opacity: 1;
    transform: none;
  }
}

@media print {
  @page {
    size: A4;
    margin: 10mm;
  }

  body > *:not(.pdf-modal):not(.sheet-preview) {
    display: none !important;
  }

  body,
  .pdf-modal,
  .sheet-preview,
  .sheet-card {
    background: white !important;
  }

  .pdf-modal,
  .sheet-preview {
    position: static;
    inset: auto;
    padding: 0;
    overflow: visible;
  }

  .pdf-toolbar,
  .sheet-actions {
    display: none;
  }

  .sheet-card,
  .pdf-sheet {
    width: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .pdf-page {
    width: 190mm;
    max-width: 190mm;
    min-height: auto;
    margin: 0;
    padding: 8mm;
    box-sizing: border-box;
    border-radius: 0;
    box-shadow: none;
    break-after: page;
    overflow: visible;
  }

  .pdf-page,
  .pdf-page * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .pdf-table thead {
    display: table-header-group;
  }

  .pdf-table tr,
  .pdf-card,
  .offer-summary,
  .service-pdf-card,
  .service-pdf-process,
  .service-pdf-section,
  .service-pdf-info,
  .service-pdf-approval {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .service-pdf-modern {
    gap: 4.5mm;
    padding: 7mm;
    font-size: 9.5px;
  }

  .service-pdf-hero {
    gap: 8px;
    padding-bottom: 7px;
  }

  .service-pdf-meta {
    padding: 8px 10px;
  }

  .service-pdf-meta strong {
    font-size: 16px;
  }

  .service-pdf-title {
    gap: 8px;
  }

  .service-pdf-title > div,
  .service-pdf-card,
  .service-pdf-process,
  .service-pdf-section,
  .service-pdf-info,
  .service-pdf-approval {
    padding: 8px 10px;
  }

  .service-pdf-title h1 {
    font-size: 18px;
  }

  .service-pdf-title strong {
    font-size: 19px;
  }

  .service-pdf-process h2,
  .service-pdf-section h2,
  .service-pdf-info h2,
  .service-pdf-approval h3 {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .service-pdf-card p,
  .service-pdf-process p,
  .service-pdf-info p,
  .service-pdf-approval p {
    line-height: 1.28;
  }

  .service-pdf-table th,
  .service-pdf-table td {
    padding: 5px 6px;
  }

  .service-pdf-table span {
    font-size: 8.6px;
  }

  .service-pdf-summary {
    max-width: 72mm;
  }

  .service-pdf-sign-grid > div {
    padding: 7px 8px;
  }

  .service-pdf-modern .pdf-footer {
    padding-top: 7px;
    font-size: 9px;
  }

  .offer-page {
    gap: 7px;
    padding: 6mm;
  }

  .offer-page .pdf-head {
    padding-bottom: 8px;
  }

  .offer-page .doc-grid {
    gap: 8px;
  }

  .offer-page .doc-card {
    padding: 8px 10px;
  }

  .offer-page .pdf-intro h2 {
    font-size: 13px;
    margin-bottom: 3px;
  }

  .offer-page .pdf-intro p,
  .offer-page .doc-card p,
  .offer-page .offer-notice span {
    font-size: 8px;
    line-height: 1.2;
  }

  .offer-page .offer-table {
    font-size: 9px;
  }

  .offer-page .compact-table th,
  .offer-page .compact-table td {
    padding: 3.5px 5px;
  }

  .pdf-table {
    width: 100%;
    table-layout: fixed;
  }

  .pdf-table th,
  .pdf-table td {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .offer-thumb {
    width: 34px;
    height: 28px;
  }

  .pdf-page:last-child {
    break-after: auto;
  }
}

/* Premium operations redesign v60
   This layer keeps existing app behavior intact and unifies the visual system. */
:root {
  --ink: #172421;
  --muted: #66736f;
  --line: #dbe3df;
  --soft: #f5f7f3;
  --paper: #ffffff;
  --brand: #2f7a69;
  --brand-dark: #0f3c35;
  --accent: #bd8b44;
  --danger: #b84a3d;
  --ok: #217a57;
  --info: #286f91;
  --surface: #fbfaf6;
  --surface-2: #f1f5f0;
  --gold-soft: #f4e5c6;
  --shadow: 0 28px 78px rgba(18, 36, 32, 0.13);
  --shadow-soft: 0 14px 36px rgba(18, 36, 32, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

body {
  background:
    linear-gradient(90deg, rgba(15, 60, 53, 0.035) 0 1px, transparent 1px 72px),
    linear-gradient(180deg, rgba(189, 139, 68, 0.06), transparent 220px),
    linear-gradient(180deg, #f8f7f1 0%, #eef4f0 52%, #e9f0ec 100%);
  color: var(--ink);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.app-shell {
  display: block;
  background: transparent;
}

.main {
  width: min(1760px, 100%);
  margin: 0 auto;
  padding: 18px clamp(16px, 2.1vw, 36px) 34px;
}

.portal-header {
  position: sticky;
  top: 10px;
  z-index: 50;
  margin-bottom: 16px;
  border: 1px solid rgba(15, 60, 53, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 42px rgba(15, 35, 31, 0.1);
  backdrop-filter: blur(18px);
}

.portal-header-brand .brand-logo {
  width: 92px;
  filter: drop-shadow(0 8px 18px rgba(115, 75, 26, 0.14));
}

.portal-header-brand strong,
.portal-header-brand small {
  color: var(--brand-dark);
}

.portal-header-brand strong {
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-header-brand small {
  opacity: 0.66;
  font-weight: 800;
}

.portal-header-actions {
  gap: 8px;
}

.portal-banner {
  min-height: 190px;
  margin: 0 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background:
    radial-gradient(circle at 82% 18%, rgba(244, 194, 111, 0.42), transparent 20%),
    linear-gradient(135deg, #082c28 0%, #0f4b42 48%, #7d5a31 100%);
  box-shadow: 0 30px 76px rgba(12, 40, 35, 0.22);
}

.portal-banner::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 92px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 72px);
  opacity: 0.55;
}

.portal-banner-brand {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.portal-banner-slide h2 {
  max-width: 720px;
  font-size: clamp(30px, 4vw, 58px);
  line-height: 0.98;
  letter-spacing: 0;
}

.portal-banner-slide p {
  max-width: 720px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.84);
}

.portal-banner-kicker {
  color: #ffe7ba;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.module-tile-nav {
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}

.module-tile-nav--bottom {
  position: sticky;
  bottom: 12px;
  z-index: 45;
  margin-top: 28px;
  padding: 8px;
  border: 1px solid rgba(15, 60, 53, 0.08);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 48px rgba(14, 36, 32, 0.14);
  backdrop-filter: blur(18px);
}

.module-tile {
  min-height: 78px;
  border-radius: 18px;
  border-color: rgba(15, 60, 53, 0.08);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(18, 36, 32, 0.05);
}

.module-tile:hover,
.module-tile.active {
  transform: translateY(-1px);
  border-color: rgba(47, 122, 105, 0.35);
  background: linear-gradient(180deg, #ffffff, #edf7f2);
  box-shadow: 0 18px 38px rgba(18, 64, 56, 0.12);
}

.module-tile.active {
  outline: 2px solid rgba(47, 122, 105, 0.08);
}

.module-tile-icon,
.nav-icon,
.admin-launcher-card-icon {
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(47, 122, 105, 0.16), rgba(189, 139, 68, 0.2));
  color: var(--brand-dark);
}

.topbar {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border-color: rgba(15, 60, 53, 0.1);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(249, 247, 239, 0.95)),
    linear-gradient(135deg, rgba(47, 122, 105, 0.1), transparent 40%);
  box-shadow: var(--shadow-soft);
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
}

.topbar h1 {
  font-size: clamp(23px, 2vw, 31px);
  color: #122d28;
}

.topbar-eyebrow {
  color: var(--accent);
}

.topbar-chip,
.status {
  border: 1px solid rgba(15, 60, 53, 0.08);
  background: rgba(255, 255, 255, 0.82);
  color: #36514b;
}

.global-search {
  width: min(460px, 45vw);
}

.global-search input,
.global-results-search input,
.field input,
.field select,
.field textarea {
  border-radius: 12px;
  border-color: rgba(15, 60, 53, 0.14);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.global-search input {
  min-height: 46px;
  padding-inline: 18px;
  border-radius: 999px;
}

.global-search-results,
.autocomplete-menu {
  border-radius: 16px;
  border-color: rgba(15, 60, 53, 0.14);
  box-shadow: 0 24px 58px rgba(16, 36, 31, 0.18);
}

.global-search-results button,
.autocomplete-option,
.global-results-list button {
  border-radius: 12px;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.global-search-results button:hover,
.autocomplete-option:hover,
.autocomplete-option.active,
.global-results-list button:hover {
  transform: translateY(-1px);
}

.section,
.stack,
.cards,
.dashboard-grid,
.finance-chart {
  gap: 16px;
}

.panel,
.card,
.metric,
.detail,
.workspace-panel,
.customer-subpanel,
.branch-current-card,
.customer-branch-card,
.credential-card,
.timeline-item,
.service-record-card,
.quick-service-section,
.quick-service-customer > div {
  border-radius: var(--radius-lg);
  border-color: rgba(15, 60, 53, 0.1);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.panel {
  padding: clamp(16px, 1.5vw, 22px);
}

.panel-head {
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 60, 53, 0.08);
}

.panel-head h2,
.panel h2,
.panel h3 {
  color: #173b35;
  font-size: 18px;
  letter-spacing: 0;
}

.panel-head p,
.panel-subhead p,
.muted {
  color: #6e7a76;
}

.metric,
.finance-bar-card,
.detail {
  position: relative;
  overflow: hidden;
}

.metric::before,
.finance-bar-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, rgba(47, 122, 105, 0.8), rgba(189, 139, 68, 0.75));
}

.metric strong,
.finance-bar-card strong,
.offer-total strong,
.pdf-total strong {
  color: #123f37;
}

.btn {
  min-height: 40px;
  border-radius: 12px;
  box-shadow: 0 7px 16px rgba(18, 36, 32, 0.06);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(18, 36, 32, 0.11);
}

.btn.primary {
  background: linear-gradient(135deg, #226d5e, #378d78);
}

.btn.warn {
  background: linear-gradient(135deg, #f6d184, #d99b38);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(15, 60, 53, 0.12);
}

.btn.danger,
.btn.ghost.danger:hover,
.btn.danger.ghost:hover {
  background: linear-gradient(135deg, #b84a3d, #96372e);
}

.choice-pill,
.customer-detail-tab,
.segmented label {
  border-radius: 999px;
  border-color: rgba(15, 60, 53, 0.12);
  background: rgba(255, 255, 255, 0.84);
}

.choice-pill.active,
.choice-pill:hover,
.customer-detail-tab.active,
.customer-detail-tab:hover {
  background: linear-gradient(135deg, #123f37, #2f7a69);
  color: #fff;
  border-color: transparent;
}

.table-wrap {
  border: 1px solid rgba(15, 60, 53, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
}

table {
  border-collapse: separate;
  border-spacing: 0;
}

th {
  background: linear-gradient(180deg, #f4ead4, #ead8b2);
  color: #5c411d;
  font-size: 11px;
  letter-spacing: 0.06em;
}

td {
  background: rgba(255, 255, 255, 0.65);
}

tbody tr:hover td {
  background: rgba(238, 247, 242, 0.84);
}

.customer-search-card,
.offer-catalog-card,
.offer-line,
.installment-plan-card,
.receipt-archive-card,
.note-card,
.attachment-card {
  border-radius: 18px;
  border-color: rgba(15, 60, 53, 0.1);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(18, 36, 32, 0.05);
}

.customer-search-card:hover,
.customer-search-card.active,
.offer-catalog-card:hover,
.offer-catalog-card.active,
.service-record-card:hover,
.service-record-card.active {
  border-color: rgba(47, 122, 105, 0.32);
  background: #f3faf6;
}

.offer-builder {
  border-radius: 24px;
  border-color: rgba(15, 60, 53, 0.1);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 241, 229, 0.96)),
    radial-gradient(circle at 100% 0, rgba(47, 122, 105, 0.1), transparent 34%);
  box-shadow: var(--shadow-soft);
}

.offer-line {
  grid-template-columns: 56px minmax(0, 1fr) auto auto;
}

.offer-line img,
.mini-product img,
.offer-catalog-card img {
  border-radius: 12px;
  object-fit: contain;
  background: #f7f8f4;
}

.notice {
  border-radius: 14px;
  border: 1px solid rgba(189, 139, 68, 0.25);
  border-left: 5px solid var(--accent);
  background: linear-gradient(180deg, #fff8e9, #fffdf7);
}

.timeline-item {
  border-left-width: 5px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 249, 246, 0.94));
}

.service-detail-modal {
  padding: 22px;
}

.service-detail-modal__backdrop,
.pdf-modal::before,
.invoice-detail-modal::before {
  background: rgba(13, 28, 25, 0.58);
  backdrop-filter: blur(8px);
}

.service-detail-modal__panel,
.invoice-detail-modal__panel {
  border-radius: 26px;
  background: #fffdf8;
  box-shadow: 0 42px 120px rgba(10, 26, 23, 0.38);
}

.service-detail-modal__head {
  border-radius: 26px 26px 0 0;
}

.quick-service-panel {
  border-radius: 26px;
}

.photo {
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.photo img {
  background: #edf2ee;
}

.pdf-toolbar {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.pdf-page,
.service-pdf-modern,
.offer-page {
  background:
    linear-gradient(180deg, #fffdf8, #fff8eb);
  box-shadow: 0 24px 70px rgba(22, 33, 31, 0.2);
}

.pdf-head,
.service-pdf-hero,
.pdf-hero {
  background: linear-gradient(180deg, rgba(255, 251, 242, 0.92), rgba(255, 251, 242, 0.35));
  border-bottom-color: rgba(106, 68, 21, 0.2);
}

.pdf-head strong,
.doc-title-block strong,
.service-pdf-title h1,
.pdf-hero h1 {
  color: #6c4519;
  letter-spacing: 0;
}

.pdf-table th,
.service-pdf-table th,
.offer-table thead th {
  background: linear-gradient(180deg, #f3dfb7, #ead3a5);
  color: #5d421e;
}

.pdf-party > div,
.doc-card,
.service-pdf-card,
.service-pdf-process,
.service-pdf-section,
.service-pdf-info,
.service-pdf-approval,
.pdf-approval,
.offer-notice,
.offer-terms {
  border-radius: 14px;
  border-color: rgba(125, 93, 38, 0.18);
  background: rgba(255, 255, 255, 0.68);
}

.service-pdf-process p,
.service-pdf-title p,
.service-pdf-card p,
.service-pdf-info p,
.pdf-block p,
.doc-card p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pdf-footer {
  color: #635b4c;
  border-top-color: rgba(66, 52, 28, 0.22);
}

@media (max-width: 980px) {
  .main {
    padding: 12px 12px 88px;
  }

  .portal-header {
    top: 6px;
    border-radius: 18px;
  }

  .portal-header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .portal-banner {
    min-height: 160px;
    border-radius: 22px;
  }

  .portal-banner-slide h2 {
    font-size: 30px;
  }

  .topbar {
    border-radius: 20px;
  }

  .global-search {
    width: 100%;
  }

  .module-tile-nav--top {
    display: none;
  }

  .module-tile-nav--bottom {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: flex;
    overflow-x: auto;
    padding: 8px;
    border-radius: 22px;
    scrollbar-width: none;
  }

  .module-tile-nav--bottom::-webkit-scrollbar {
    display: none;
  }

  .module-tile-nav--bottom .module-tile {
    flex: 0 0 110px;
    min-height: 64px;
    padding: 8px;
  }

  .module-tile-icon {
    width: 28px;
    height: 28px;
  }

  .module-tile strong {
    font-size: 11px;
  }

  .panel,
  .card,
  .metric,
  .service-detail-modal__panel {
    border-radius: 18px;
  }

  .toolbar {
    gap: 8px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 13px;
  }

  .portal-header {
    position: static;
  }

  .portal-header-brand .brand-logo {
    width: 72px;
  }

  .portal-banner {
    min-height: 0;
  }

  .portal-banner-brand {
    display: none;
  }

  .portal-banner-slide {
    padding: 20px;
  }

  .portal-banner-slide h2 {
    font-size: 25px;
    line-height: 1.05;
  }

  .portal-banner-slide p {
    font-size: 13px;
  }

  .dashboard-grid,
  .cards,
  .finance-chart,
  .photo-grid {
    gap: 10px;
  }

  .panel-head {
    display: grid;
  }

  .offer-line,
  .offer-catalog-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .offer-line-price,
  .offer-line .toolbar,
  .offer-catalog-card > span:last-child {
    grid-column: 2;
    text-align: left;
    justify-items: start;
  }
}

@media print {
  .portal-header,
  .portal-banner,
  .module-tile-nav,
  .topbar,
  .pdf-toolbar {
    display: none !important;
  }

  .pdf-page,
  .service-pdf-modern,
  .offer-page {
    box-shadow: none !important;
  }
}

/* Structural premium shell v61 */
.app-shell {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(15, 60, 53, 0.06) 0 1px, transparent 1px 74px),
    radial-gradient(circle at 82% 2%, rgba(189, 139, 68, 0.16), transparent 28%),
    linear-gradient(180deg, #f8f6ef 0%, #eef4f0 100%);
}

.pro-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 16px;
  padding: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 0%, rgba(214, 162, 79, 0.2), transparent 26%),
    linear-gradient(180deg, #092b27 0%, #0f3d36 58%, #17231f 100%);
  color: #f8f3e7;
  box-shadow: 26px 0 70px rgba(8, 30, 27, 0.22);
}

.pro-sidebar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 74px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 68px);
  opacity: 0.32;
}

.pro-sidebar > * {
  position: relative;
  z-index: 1;
}

.pro-sidebar-brand {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.pro-sidebar-brand img {
  width: 74px;
  height: 54px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  padding: 4px;
}

.pro-sidebar-brand strong,
.pro-sidebar-brand span,
.pro-sidebar-user span,
.pro-sidebar-user strong,
.pro-sidebar-user small,
.pro-sidebar-actions span {
  display: block;
}

.pro-sidebar-brand strong {
  font-size: 15px;
  letter-spacing: 0.06em;
}

.pro-sidebar-brand span,
.pro-sidebar-user span,
.pro-sidebar-user small,
.pro-sidebar-actions span {
  color: rgba(248, 243, 231, 0.68);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pro-sidebar-user {
  display: grid;
  gap: 5px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pro-sidebar-user strong {
  color: #fff;
  font-size: 18px;
  line-height: 1.15;
}

.pro-nav {
  display: grid;
  gap: 8px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}

.pro-nav-item {
  width: 100%;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: rgba(255, 255, 255, 0.86);
  background: transparent;
  text-align: left;
  font-weight: 800;
}

.pro-nav-item:hover,
.pro-nav-item.active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
}

.pro-nav-item.active {
  box-shadow: inset 4px 0 0 #d8a04f;
}

.pro-nav-icon {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 13px;
  color: #173b35;
  background: linear-gradient(135deg, #f6deb1, #bb8840);
  font-size: 13px;
}

.pro-sidebar-actions {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pro-sidebar-actions button {
  min-height: 36px;
  border: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.pro-sidebar-actions button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.pro-main {
  width: 100%;
  max-width: none;
  padding: 22px clamp(18px, 2vw, 34px) 34px;
}

.pro-topbar {
  position: sticky;
  top: 14px;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(360px, auto);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(15, 60, 53, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 45px rgba(12, 32, 28, 0.12);
  backdrop-filter: blur(18px);
}

.pro-topbar-title span,
.pro-hero-kicker {
  color: #9a6d2f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pro-topbar-title h1 {
  margin: 2px 0 0;
  color: #102f2a;
  font-size: clamp(24px, 2.3vw, 34px);
  letter-spacing: 0;
}

.pro-topbar-title p {
  margin: 3px 0 0;
  color: var(--muted);
}

.pro-command {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.pro-search {
  width: min(520px, 40vw);
}

.pro-hero {
  min-height: 188px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 22px;
  align-items: end;
  margin-bottom: 18px;
  padding: clamp(22px, 2.5vw, 34px);
  overflow: hidden;
  position: relative;
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 20%, rgba(237, 185, 98, 0.5), transparent 18%),
    linear-gradient(135deg, #092b27 0%, #155e51 54%, #7a572e 100%);
  box-shadow: 0 30px 76px rgba(12, 40, 35, 0.22);
}

.pro-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 96px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 74px);
  opacity: 0.55;
}

.pro-hero > * {
  position: relative;
  z-index: 1;
}

.pro-hero h2 {
  max-width: 760px;
  margin: 8px 0 0;
  font-size: clamp(34px, 4.2vw, 64px);
  line-height: 0.98;
  letter-spacing: 0;
}

.pro-hero p {
  max-width: 760px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
}

.pro-hero-kicker {
  color: #ffe2ad;
}

.pro-hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pro-hero-metrics div {
  min-height: 108px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.pro-hero-metrics span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pro-hero-metrics strong {
  color: #fff;
  font-size: 20px;
  line-height: 1.08;
}

.pro-content {
  display: grid;
  gap: 18px;
}

.portal-header,
.portal-banner,
.module-tile-nav--top,
.topbar {
  display: none !important;
}

@media (min-width: 1500px) {
  .dashboard-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .pro-sidebar {
    position: static;
    height: auto;
    grid-template-rows: auto auto;
    padding: 12px;
  }

  .pro-sidebar-user,
  .pro-sidebar-actions {
    display: none;
  }

  .pro-nav {
    display: flex;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .pro-nav-item {
    min-width: 132px;
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .pro-nav-icon {
    width: 30px;
    height: 30px;
  }

  .pro-topbar,
  .pro-hero {
    grid-template-columns: 1fr;
  }

  .pro-command {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .pro-search {
    width: min(100%, 680px);
  }
}

@media (max-width: 640px) {
  .pro-sidebar-brand {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .pro-sidebar-brand img {
    width: 58px;
    height: 44px;
  }

  .pro-main {
    padding: 12px 10px 88px;
  }

  .pro-topbar {
    position: static;
    padding: 14px;
    border-radius: 20px;
  }

  .pro-hero {
    min-height: 0;
    padding: 20px;
    border-radius: 22px;
  }

  .pro-hero h2 {
    font-size: 28px;
  }

  .pro-hero p {
    font-size: 13px;
  }

  .pro-hero-metrics {
    grid-template-columns: 1fr;
  }
}

/* Premium content polish v62 */
.pro-nav-icon {
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pro-content > .split,
.pro-content > .split-workspace,
.pro-content > .service-admin-layout,
.pro-content > .customer-dossier-grid,
.pro-content > .team-admin-layout,
.pro-content > .invoice-layout,
.pro-content > .planning-grid,
.pro-content > .maintenance-layout,
.pro-content > .settings-grid {
  align-items: start;
  gap: 18px;
}

.pro-content > .split,
.pro-content > .split-workspace {
  grid-template-columns: minmax(440px, 0.88fr) minmax(520px, 1.12fr);
}

.pro-content .panel,
.pro-content .card,
.pro-content .modal-card {
  border: 1px solid rgba(15, 70, 59, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 252, 0.92);
  box-shadow: 0 22px 54px rgba(16, 48, 42, 0.08);
}

.pro-content .panel {
  padding: 22px;
}

.pro-content .panel-head {
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(34, 64, 55, 0.1);
}

.pro-content .panel-head h2 {
  margin: 0;
  color: #0d312b;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: 0;
}

.pro-content .panel-head p,
.pro-content .muted,
.pro-content small {
  color: #64756f;
}

.pro-content .field label,
.pro-content th,
.pro-content .detail span,
.pro-content .mini-label {
  color: #40524b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.pro-content input,
.pro-content select,
.pro-content textarea {
  border: 1px solid rgba(22, 73, 62, 0.16);
  border-radius: 14px;
  background: #fbfcfa;
  color: #172d28;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.pro-content input,
.pro-content select {
  min-height: 46px;
}

.pro-content textarea {
  min-height: 108px;
  line-height: 1.55;
}

.pro-content input:focus,
.pro-content select:focus,
.pro-content textarea:focus {
  border-color: rgba(30, 124, 104, 0.55);
  box-shadow: 0 0 0 4px rgba(30, 124, 104, 0.12);
}

.pro-content .btn {
  min-height: 42px;
  border-radius: 13px;
  font-weight: 900;
}

.pro-content .btn.primary,
.pro-content button.primary,
.pro-content .metric-button {
  background: linear-gradient(135deg, #0f5a4d, #1f806b);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 32px rgba(16, 96, 80, 0.2);
}

.pro-content .btn.ghost,
.pro-content button.ghost {
  background: rgba(255, 255, 255, 0.72);
}

.pro-content .status,
.pro-content .pill,
.pro-content .tag {
  border-radius: 999px;
  font-weight: 900;
}

.pro-content table {
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid rgba(28, 72, 62, 0.1);
  border-radius: 16px;
  background: #fffefa;
}

.pro-content thead th {
  background: #efe2bd;
  color: #5a4420;
  white-space: nowrap;
}

.pro-content tbody tr {
  transition: background 0.16s ease, transform 0.16s ease;
}

.pro-content tbody tr:hover {
  background: rgba(31, 128, 107, 0.055);
}

.dashboard-grid,
.cards,
.metric-grid,
.summary-grid {
  gap: 14px;
}

.metric,
.summary-card,
.stat-card,
.quick-card {
  border: 1px solid rgba(20, 72, 61, 0.1);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 248, 0.9));
  box-shadow: 0 16px 38px rgba(23, 55, 48, 0.07);
}

.metric strong,
.summary-card strong,
.stat-card strong {
  color: #143f36;
  letter-spacing: 0;
}

.customer-search-results,
.service-admin-list,
.stock-list,
.offer-list,
.invoice-list,
.maintenance-list,
.team-list {
  max-height: min(58vh, 640px);
  overflow: auto;
  padding-right: 6px;
}

.customer-search-card,
.service-card,
.offer-card,
.stock-card,
.maintenance-card {
  border: 1px solid rgba(23, 78, 67, 0.1);
  border-radius: 18px;
  background: #fffefa;
  box-shadow: 0 14px 34px rgba(16, 55, 47, 0.06);
}

.customer-search-card.active,
.service-card.active,
.offer-card.active,
.stock-card.active,
.maintenance-card.active {
  border-color: rgba(28, 124, 102, 0.34);
  background: linear-gradient(90deg, rgba(31, 128, 107, 0.12), rgba(255, 255, 255, 0.94));
}

.notice {
  border-radius: 16px;
  border-left: 5px solid #bf8540;
  background: #fff7e8;
  color: #594225;
}

.empty {
  border-radius: 16px;
  border: 1px dashed rgba(22, 73, 62, 0.22);
  background: rgba(255, 255, 255, 0.55);
}

.bottom-module-nav {
  background: rgba(247, 250, 245, 0.82);
  backdrop-filter: blur(16px);
}

.bottom-module-nav .module-tile {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 40px rgba(10, 42, 36, 0.08);
}

@media (max-width: 1280px) {
  .pro-content > .split,
  .pro-content > .split-workspace,
  .pro-content > .service-admin-layout,
  .pro-content > .customer-dossier-grid,
  .pro-content > .team-admin-layout,
  .pro-content > .invoice-layout,
  .pro-content > .planning-grid,
  .pro-content > .maintenance-layout,
  .pro-content > .settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .pro-content .panel {
    padding: 16px;
    border-radius: 18px;
  }

  .pro-content .panel-head {
    display: grid;
  }

  .customer-search-results,
  .service-admin-list,
  .stock-list,
  .offer-list,
  .invoice-list,
  .maintenance-list,
  .team-list {
    max-height: none;
  }
}

/* New page templates v69 */
.customer-profile-hero {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  padding: 20px 22px;
}

.customer-profile-main {
  padding-right: 10px;
}

.customer-profile-title {
  align-items: center;
}

.customer-profile-title h2 {
  font-size: clamp(22px, 2vw, 30px);
}

.customer-profile-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px 18px;
  margin-top: 16px;
}

.customer-profile-meta span {
  min-width: 0;
  color: #3f4c47;
  overflow-wrap: anywhere;
}

.customer-profile-meta b {
  display: block;
  margin-bottom: 2px;
  color: #818985;
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
}

.customer-profile-address {
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px solid #ebe8e1;
}

.customer-profile-side {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.customer-location-control {
  padding: 12px;
  border: 1px solid var(--brand-line);
  border-radius: 4px;
  background: #faf9f6;
}

.customer-location-control label {
  display: block;
  margin-bottom: 6px;
  color: #737d78;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.customer-location-control select {
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid #d2d1cb;
  border-radius: 3px;
  background: #fff;
}

.customer-header-actions {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 7px;
}

.customer-header-actions .btn {
  width: 100%;
  min-height: 38px;
}

.customer-branch-workspace {
  display: none;
}

.customer-dossier > .dashboard-grid {
  margin: 12px 0;
}

.customer-record-layout {
  min-height: 520px;
}

@media (min-width: 1281px) {
  .admin-section-pane form.panel.section,
  .admin-section-pane form.panel.workspace-form {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    column-gap: 24px;
    align-items: start;
    padding: 0;
    overflow: hidden;
    border-top: 1px solid var(--brand-line);
  }

  .admin-section-pane form.panel.section > .panel-head,
  .admin-section-pane form.panel.workspace-form > .panel-head {
    grid-column: 1;
    grid-row: 1 / span 8;
    min-height: 100%;
    align-content: start;
    margin: 0;
    padding: 20px 16px;
    border: 0;
    border-right: 1px solid var(--brand-line);
    background: #f7f5f0;
  }

  .admin-section-pane form.panel.section > .panel-head::before,
  .admin-section-pane form.panel.workspace-form > .panel-head::before {
    content: "";
    width: 34px;
    height: 3px;
    display: block;
    margin-bottom: 13px;
    background: var(--brand-gold);
  }

  .admin-section-pane form.panel.section > .panel-head h2,
  .admin-section-pane form.panel.workspace-form > .panel-head h2 {
    font-size: 18px;
    line-height: 1.2;
  }

  .admin-section-pane form.panel.section > .panel-head p,
  .admin-section-pane form.panel.workspace-form > .panel-head p {
    margin-top: 8px;
    line-height: 1.55;
  }

  .admin-section-pane form.panel.section > .field-grid,
  .admin-section-pane form.panel.section > .segmented,
  .admin-section-pane form.panel.section > .offer-builder,
  .admin-section-pane form.panel.section > .notice,
  .admin-section-pane form.panel.section > .toolbar,
  .admin-section-pane form.panel.section > button,
  .admin-section-pane form.panel.workspace-form > .field-grid,
  .admin-section-pane form.panel.workspace-form > .segmented,
  .admin-section-pane form.panel.workspace-form > .offer-builder,
  .admin-section-pane form.panel.workspace-form > .notice,
  .admin-section-pane form.panel.workspace-form > .toolbar,
  .admin-section-pane form.panel.workspace-form > button {
    grid-column: 2;
    margin-right: 20px;
  }

  .admin-section-pane form.panel.section > .field-grid,
  .admin-section-pane form.panel.workspace-form > .field-grid,
  .admin-section-pane form.panel.section > .segmented,
  .admin-section-pane form.panel.workspace-form > .segmented {
    margin-top: 18px;
  }

  .admin-section-pane form.panel.section > button[type="submit"],
  .admin-section-pane form.panel.workspace-form > button[type="submit"] {
    width: auto;
    min-width: 180px;
    justify-self: start;
    margin-top: 16px;
    margin-bottom: 20px;
  }

  .admin-section-pane .split > .panel:last-child:not(form),
  .admin-section-pane .split-workspace > .panel:last-child:not(form) {
    position: sticky;
    top: 78px;
    max-height: calc(100vh - 96px);
    overflow: auto;
  }
}

.admin-section-pane form.panel .field-grid {
  padding: 0;
}

.admin-section-pane form.panel .field-grid > .field {
  padding: 0;
  border: 0;
  background: transparent;
}

.admin-section-pane .panel:not(form) > .table-wrap {
  margin: 0 -17px -17px;
  width: calc(100% + 34px);
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0 0 4px 4px;
}

.admin-section-pane .panel:not(form) > .panel-head + .table-wrap {
  margin-top: -14px;
}

.service-dossier.workspace-panel {
  padding: 0;
  overflow: hidden;
}

.service-dossier.workspace-panel > .panel-head,
.service-dossier.workspace-panel > .customer-detail-tabs {
  padding-right: 17px;
  padding-left: 17px;
}

.service-dossier.workspace-panel > .panel-head {
  padding-top: 15px;
}

.service-dossier.workspace-panel > .customer-detail-tabs {
  padding-bottom: 12px;
}

.service-admin-list {
  gap: 0;
}

.service-record-card {
  border-width: 1px 0 0;
  border-radius: 0;
}

.service-record-card:first-child {
  border-top-width: 0;
}

.service-record-card__open {
  min-height: 68px;
}

.offer-admin-table .toolbar,
.invoice-detail-table .toolbar {
  min-width: 240px;
}

@media (max-width: 1280px) {
  .customer-profile-hero,
  .customer-record-layout {
    grid-template-columns: 1fr;
  }

  .customer-profile-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-profile-side {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .customer-profile-meta,
  .customer-profile-side,
  .customer-header-actions {
    grid-template-columns: 1fr;
  }
}

/* Operational interface redesign v65 */
:root {
  --ops-navy: #102b3a;
  --ops-navy-2: #163d4d;
  --ops-teal: #168b91;
  --ops-teal-dark: #0f6f76;
  --ops-gold: #c6974d;
  --ops-canvas: #f3f5f7;
  --ops-line: #d9e0e5;
  --ops-text: #1c2931;
  --ops-muted: #687780;
}

.app-shell {
  grid-template-columns: 232px minmax(0, 1fr);
  background: var(--ops-canvas);
}

.pro-sidebar {
  gap: 0;
  padding: 0;
  background: var(--ops-navy);
  box-shadow: 8px 0 24px rgba(16, 43, 58, 0.12);
}

.pro-sidebar::after {
  display: none;
}

.pro-sidebar-brand {
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 11px;
  min-height: 74px;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  background: #0c2431;
  box-shadow: none;
}

.pro-sidebar-brand img {
  width: 48px;
  height: 44px;
  padding: 3px;
  border-radius: 4px;
}

.pro-sidebar-brand strong {
  font-size: 14px;
  letter-spacing: 0;
}

.pro-sidebar-brand span,
.pro-sidebar-user span,
.pro-sidebar-user small,
.pro-sidebar-actions span {
  font-size: 10px;
  letter-spacing: 0.06em;
}

.pro-sidebar-user {
  order: 4;
  margin-top: auto;
  padding: 14px 16px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  background: #0c2431;
}

.pro-sidebar-user strong {
  font-size: 14px;
}

.pro-nav {
  gap: 2px;
  padding: 14px 10px;
}

.pro-nav-item {
  min-height: 43px;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  padding: 5px 8px;
  border: 0;
  border-radius: 4px;
  font-size: 13px;
}

.pro-nav-item:hover,
.pro-nav-item.active {
  border: 0;
  background: #1b4858;
  box-shadow: none;
}

.pro-nav-item.active {
  box-shadow: inset 3px 0 0 var(--ops-gold);
}

.pro-nav-icon {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 10px;
}

.pro-nav-item.active .pro-nav-icon {
  color: #102b3a;
  background: #e0b66f;
}

.pro-sidebar-actions {
  display: none;
}

.pro-main {
  min-width: 0;
  padding: 0 20px 32px;
  background: var(--ops-canvas);
}

.pro-topbar {
  top: 0;
  min-height: 64px;
  grid-template-columns: minmax(180px, 1fr) minmax(420px, auto);
  margin: 0 -20px 18px;
  padding: 10px 22px;
  border: 0;
  border-bottom: 1px solid var(--ops-line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 14px rgba(25, 46, 58, 0.06);
  backdrop-filter: none;
}

.pro-topbar-title span {
  color: #7d8a91;
  font-size: 10px;
  letter-spacing: 0;
}

.pro-topbar-title h1 {
  margin-top: 1px;
  color: var(--ops-text);
  font-size: 20px;
  font-weight: 750;
}

.pro-command .btn,
.topbar-chip {
  min-height: 36px;
  border-radius: 4px;
}

.pro-search {
  width: min(520px, 38vw);
}

.pro-search input {
  min-height: 38px;
  border-radius: 4px;
  background: #f8fafb;
}

.pro-content {
  width: 100%;
  max-width: none;
  gap: 14px;
}

.pro-content .panel,
.pro-content .section,
.pro-content .card,
.pro-content .metric,
.pro-content .notice {
  border-radius: 4px;
}

.pro-content .panel,
.pro-content .card,
.pro-content .metric {
  border-color: var(--ops-line);
  box-shadow: none;
}

.pro-content .panel-head {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ops-line);
}

.pro-content .panel-head h2,
.pro-content .panel-head h3 {
  color: var(--ops-text);
  font-size: 18px;
}

.pro-content .btn,
.pro-content button,
.pro-content input,
.pro-content select,
.pro-content textarea {
  border-radius: 3px;
}

.pro-content input,
.pro-content select {
  min-height: 42px;
}

.pro-content table {
  border-collapse: collapse;
}

.pro-content table th {
  color: #33434c;
  background: #eef2f4;
}

.pro-content table td,
.pro-content table th {
  border-bottom-color: var(--ops-line);
}

.admin-section-shell {
  display: block;
}

.admin-section-nav {
  margin-bottom: 12px;
  padding: 0;
  border: 1px solid var(--ops-line);
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
}

.admin-section-nav-stack {
  display: flex;
  gap: 0;
}

.admin-section-link {
  min-width: 190px;
  padding: 11px 16px;
  border: 0;
  border-right: 1px solid var(--ops-line);
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.admin-section-link strong {
  font-size: 13px;
}

.admin-section-link small {
  margin-top: 2px;
  font-size: 10px;
}

.admin-section-link.active,
.admin-section-link:hover {
  color: #fff;
  background: var(--ops-teal-dark);
}

.admin-section-main {
  min-width: 0;
}

.customer-admin-shell {
  padding: 0;
}

.customer-directory-page {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--ops-line);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(24, 48, 61, 0.06);
}

.customer-directory-titlebar {
  min-height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 18px;
  color: #fff;
  background: var(--ops-teal);
}

.customer-directory-titlebar .eyebrow,
.customer-detail-pagebar .eyebrow {
  display: block;
  margin-bottom: 2px;
  color: inherit;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.customer-directory-titlebar h2 {
  margin: 0;
  color: #fff;
  font-size: 21px;
}

.customer-directory-titlebar p {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.customer-directory-count {
  min-width: 70px;
  display: grid;
  justify-items: center;
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.customer-directory-count strong {
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.customer-directory-count span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 10px;
  text-transform: uppercase;
}

.customer-directory-toolbar {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) auto;
  gap: 14px;
  align-items: end;
  padding: 14px 16px;
  border-bottom: 1px solid var(--ops-line);
  background: #f8fafb;
}

.customer-directory-search span {
  display: block;
  margin-bottom: 5px;
  color: #58666e;
  font-size: 10px;
  font-weight: 800;
}

.customer-directory-search input {
  width: 100%;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid #cbd5db;
  border-radius: 3px;
  background: #fff;
}

.customer-directory-search input:focus {
  border-color: var(--ops-teal);
  box-shadow: 0 0 0 3px rgba(22, 139, 145, 0.12);
  outline: 0;
}

.customer-directory-filters {
  display: flex;
  gap: 6px;
}

.customer-directory-filters button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #cbd5db;
  border-radius: 3px;
  color: #3b4a52;
  background: #fff;
  font-weight: 750;
}

.customer-directory-filters button.active {
  color: #fff;
  border-color: var(--ops-teal-dark);
  background: var(--ops-teal-dark);
}

.customer-table-wrap {
  width: 100%;
  overflow: auto;
}

.customer-directory-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  table-layout: fixed;
}

.customer-directory-table th {
  height: 42px;
  padding: 9px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  background: #2b98a0;
  font-size: 11px;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
}

.customer-directory-table th:nth-child(1) { width: 54px; }
.customer-directory-table th:nth-child(2) { width: 138px; }
.customer-directory-table th:nth-child(3) { width: 270px; }
.customer-directory-table th:nth-child(4) { width: 160px; }
.customer-directory-table th:nth-child(5) { width: 190px; }
.customer-directory-table th:nth-child(6) { width: 120px; }
.customer-directory-table th:nth-child(7) { width: 120px; }
.customer-directory-table th:nth-child(8) { width: 76px; }
.customer-directory-table th:nth-child(9) { width: 145px; }
.customer-directory-table th:nth-child(10) { width: 140px; }
.customer-directory-table th:nth-child(11) { width: 142px; }

.customer-directory-table {
  min-width: 1555px !important;
}

.customer-directory-table td {
  height: 64px;
  padding: 9px 10px;
  border-right: 1px solid #e2e7ea;
  border-bottom: 1px solid #dce3e7;
  color: #29373f;
  background: #fff;
  font-size: 12px;
  vertical-align: middle;
}

.customer-directory-table tbody tr:nth-child(even) td {
  background: #f7f9fa;
}

.customer-directory-table tbody tr:hover td {
  background: #eef8f8;
}

.customer-directory-table td strong,
.customer-directory-table td small {
  display: block;
}

.customer-directory-table td small {
  margin-top: 3px;
  color: #718087;
  font-size: 10px;
  line-height: 1.25;
}

.customer-company-name {
  color: #152a34;
  font-size: 12px;
}

.customer-row-number {
  color: #7b878d;
  text-align: center;
}

.customer-code-cell {
  color: #0f3f45;
  font-size: 12px;
  letter-spacing: 0;
  white-space: nowrap;
}

.customer-directory-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
}

.customer-open-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 0;
  border-radius: 3px;
  color: #fff;
  background: #1ebf79;
  font-weight: 800;
}

.customer-open-button:hover {
  background: #139e62;
}

.customer-open-button span {
  font-size: 20px;
  line-height: 1;
}

.customer-report-button {
  min-width: 42px;
  min-height: 32px;
  border: 1px solid #d0a24f;
  border-radius: 3px;
  color: #6a4a15;
  background: #f4c85d;
  font-size: 10px;
  font-weight: 900;
}

.customer-detail-page {
  min-width: 0;
}

.customer-detail-pagebar {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 10px;
  padding: 9px 14px;
  border: 1px solid var(--ops-line);
  border-radius: 4px;
  background: #fff;
}

.customer-detail-pagebar strong {
  color: var(--ops-text);
  font-size: 16px;
}

.customer-detail-pagebar .eyebrow {
  color: #748188;
}

.customer-back-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #c9d3d8;
  border-radius: 3px;
  color: #223640;
  background: #f8fafb;
  font-weight: 800;
}

.customer-back-button span {
  font-size: 21px;
}

.customer-record-pane .customer-dossier {
  border: 1px solid var(--ops-line);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(24, 48, 61, 0.06);
}

.customer-profile-hero {
  grid-template-columns: 96px minmax(0, 1fr) 330px;
  gap: 18px;
  padding: 20px;
  background: #fff;
}

.customer-profile-icon {
  width: 82px;
  height: 82px;
  border-radius: 4px;
  font-size: 20px;
  box-shadow: none;
}

.customer-profile-title h2 {
  font-size: 25px;
}

.customer-mini-select,
.customer-risk-card,
.customer-dossier .dashboard-grid .metric,
.customer-dossier .dashboard-grid button.metric,
.rail-card,
.branch-current-card,
.customer-branch-card,
.branch-profile-block,
.branch-profile-notes > div {
  border-radius: 4px;
  box-shadow: none;
}

.customer-dossier .dashboard-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 14px 18px;
  background: #f7f9fa;
}

.customer-dossier .dashboard-grid .metric,
.customer-dossier .dashboard-grid button.metric {
  min-height: 96px;
  padding: 14px;
}

.customer-branch-workspace {
  padding: 18px;
}

.customer-record-layout {
  grid-template-columns: minmax(0, 1fr) 250px;
  padding: 14px 18px 20px;
}

.customer-record-main .customer-detail-tabs {
  border-radius: 4px 4px 0 0;
}

.customer-action-rail {
  top: 82px;
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .pro-sidebar {
    position: static;
    height: auto;
    padding: 0;
  }

  .pro-sidebar-brand {
    border-bottom: 0;
  }

  .pro-nav {
    padding: 8px 10px;
  }

  .pro-sidebar-user {
    display: none;
  }

  .customer-directory-toolbar,
  .pro-topbar {
    grid-template-columns: 1fr;
  }

  .pro-topbar {
    position: static;
  }

  .customer-profile-hero,
  .customer-record-layout {
    grid-template-columns: 1fr;
  }

  .customer-profile-side {
    grid-column: auto;
  }
}

@media (max-width: 700px) {
  .pro-main {
    padding: 0 8px 86px;
  }

  .pro-topbar {
    margin: 0 -8px 10px;
    padding: 10px;
  }

  .pro-command {
    gap: 6px;
  }

  .pro-search {
    width: 100%;
  }

  .topbar-chip {
    display: none;
  }

  .admin-section-nav-stack {
    overflow-x: auto;
  }

  .admin-section-link {
    min-width: 150px;
  }

  .customer-directory-titlebar,
  .customer-directory-toolbar,
  .customer-detail-pagebar {
    align-items: stretch;
    flex-direction: column;
  }

  .customer-directory-toolbar {
    display: flex;
  }

  .customer-directory-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .customer-directory-count {
    display: none;
  }

  .customer-profile-hero,
  .customer-profile-side,
  .customer-dossier .dashboard-grid,
  .customer-branch-workspace .customer-branch-grid {
    grid-template-columns: 1fr;
  }
}

/* Unified enterprise workspace v66 */
body {
  color: #1f2d35;
  background: #eef2f4;
  font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
}

.pro-main {
  background: #eef2f4;
}

.admin-workspace-header {
  min-height: 94px;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 14px;
  padding: 15px 18px;
  border: 1px solid #d7dfe4;
  border-left: 4px solid #c6974d;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(25, 47, 59, 0.05);
}

.admin-workspace-title span {
  display: block;
  margin-bottom: 3px;
  color: #a0722f;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.admin-workspace-title h2 {
  margin: 0;
  color: #162832;
  font-size: 22px;
  font-weight: 760;
  letter-spacing: 0;
}

.admin-workspace-title p {
  margin: 4px 0 0;
  color: #687780;
  font-size: 12px;
}

.admin-workspace-header .admin-section-nav {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.admin-workspace-header .admin-section-nav-stack {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  flex-wrap: wrap;
}

.admin-workspace-header .admin-section-link {
  min-width: 0;
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid #d2dbe0;
  border-radius: 4px;
  color: #34464f;
  background: #f8fafb;
  text-align: center;
}

.admin-workspace-header .admin-section-link strong {
  font-size: 12px;
  white-space: nowrap;
}

.admin-workspace-header .admin-section-link small {
  display: none;
}

.admin-workspace-header .admin-section-link.active,
.admin-workspace-header .admin-section-link:hover {
  color: #fff;
  border-color: #123b4b;
  background: #123b4b;
  box-shadow: inset 0 -3px 0 #d7a754;
}

.admin-section-pane > .section,
.admin-section-pane > .split {
  margin: 0;
}

.admin-section-pane > .section {
  padding: 0;
  background: transparent;
}

.admin-section-pane .split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  gap: 14px;
  align-items: start;
}

.admin-section-pane .split-workspace {
  grid-template-columns: minmax(620px, 1.25fr) minmax(400px, 0.75fr);
}

.admin-section-pane .split-services {
  grid-template-columns: minmax(720px, 1fr) 300px;
}

.admin-section-pane .panel,
.customer-record-main > .section,
.customer-subpanel,
.workspace-panel {
  border: 1px solid #d8e0e4;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(23, 45, 57, 0.05);
}

.admin-section-pane .panel {
  padding: 17px;
}

.admin-section-pane form.panel {
  border-top: 3px solid #168b91;
}

.admin-section-pane .panel > .panel,
.admin-section-pane .panel > .section,
.admin-section-pane form .section {
  padding: 14px 0 0;
  border: 0;
  border-top: 1px solid #e1e7ea;
  border-radius: 0;
  box-shadow: none;
}

.admin-section-pane .panel-head {
  min-height: 44px;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 0 0 11px;
  border-bottom: 1px solid #dfe6e9;
}

.admin-section-pane .panel-head h2,
.admin-section-pane .panel-head h3 {
  margin: 0;
  color: #18303c;
  font-size: 17px;
  font-weight: 760;
}

.admin-section-pane .panel-head p {
  margin: 3px 0 0;
  color: #718087;
  font-size: 11px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.field-grid .field.full,
.field-grid > .full,
.field.full {
  grid-column: 1 / -1;
}

.field {
  min-width: 0;
}

.field > label,
.admin-section-pane form > label {
  display: block;
  margin-bottom: 5px;
  color: #43545d;
  font-size: 11px;
  font-weight: 750;
}

.field input,
.field select,
.field textarea,
.admin-section-pane input,
.admin-section-pane select,
.admin-section-pane textarea {
  width: 100%;
  border: 1px solid #cbd5da;
  border-radius: 4px;
  color: #24343c;
  background: #fff;
  box-shadow: none;
}

.field input,
.field select,
.admin-section-pane input,
.admin-section-pane select {
  min-height: 42px;
  padding: 0 11px;
}

.field textarea,
.admin-section-pane textarea {
  min-height: 92px;
  padding: 10px 11px;
  line-height: 1.45;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.admin-section-pane input:focus,
.admin-section-pane select:focus,
.admin-section-pane textarea:focus {
  border-color: #168b91;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(22, 139, 145, 0.12);
}

.inline-field-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 6px;
}

.segmented {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid #d4dde1;
  border-radius: 4px;
  background: #eef3f5;
}

.segmented label {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border-radius: 3px;
  color: #43545d;
  background: transparent;
  font-size: 12px;
  font-weight: 750;
}

.segmented label:has(input:checked) {
  color: #fff;
  background: #176f76;
}

.choice-pills,
.customer-detail-tabs {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.choice-pill,
.customer-detail-tab {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #ccd6db;
  border-radius: 3px;
  color: #41525b;
  background: #f8fafb;
  font-size: 11px;
  font-weight: 750;
}

.choice-pill.active,
.customer-detail-tab.active {
  color: #fff;
  border-color: #176f76;
  background: #176f76;
  box-shadow: none;
}

.btn,
button.btn {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 760;
  box-shadow: none;
}

.btn.primary {
  color: #fff;
  border-color: #176f76;
  background: #176f76;
}

.btn.primary:hover {
  background: #105d63;
}

.btn.warn {
  color: #513b18;
  border-color: #d5a54e;
  background: #f0c66d;
}

.btn.ghost {
  color: #34464f;
  border-color: #ccd6db;
  background: #fff;
}

.btn.ghost.danger,
.btn.danger {
  color: #b0443b;
  border-color: #e5b7b2;
  background: #fff8f7;
}

.toolbar {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.notice {
  padding: 12px 14px;
  border: 1px solid #e7d3ad;
  border-left: 4px solid #c6974d;
  border-radius: 4px;
  color: #594a32;
  background: #fffaf0;
  font-size: 12px;
  line-height: 1.5;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid #d7dfe4;
  border-radius: 4px;
  background: #fff;
}

.table-wrap table,
.admin-section-pane table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: auto;
}

.table-wrap th,
.admin-section-pane table th {
  height: 41px;
  padding: 8px 10px;
  border-right: 1px solid #d7e0e4;
  border-bottom: 1px solid #c9d4da;
  color: #2e4652;
  background: #e9f0f3;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
}

.table-wrap td,
.admin-section-pane table td {
  min-height: 54px;
  padding: 9px 10px;
  border-right: 1px solid #e3e8eb;
  border-bottom: 1px solid #dce3e7;
  color: #304149;
  background: #fff;
  font-size: 12px;
  vertical-align: middle;
}

.table-wrap tbody tr:nth-child(even) td,
.admin-section-pane table tbody tr:nth-child(even) td {
  background: #f8fafb;
}

.table-wrap tbody tr:hover td,
.admin-section-pane table tbody tr:hover td {
  background: #eef7f7;
}

.mini-product {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.mini-product img {
  width: 44px;
  height: 38px;
  object-fit: contain;
  border: 1px solid #d8e0e4;
  border-radius: 3px;
  background: #fff;
}

.dashboard-grid,
.metric-grid,
.invoice-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.dashboard-grid .metric,
.metric-grid .metric,
.invoice-metric-grid .metric {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 13px 14px;
  border: 1px solid #d9e1e5;
  border-top: 3px solid #168b91;
  border-radius: 4px;
  background: #fff;
}

.dashboard-grid .metric:nth-child(3n + 2),
.metric-grid .metric:nth-child(3n + 2) {
  border-top-color: #c6974d;
}

.dashboard-grid .metric span,
.metric-grid .metric span,
.invoice-metric-grid .metric span {
  color: #687780;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-grid .metric strong,
.metric-grid .metric strong,
.invoice-metric-grid .metric strong {
  color: #18303c;
  font-size: 23px;
}

.serial-entry-stack {
  display: grid;
  gap: 9px;
}

.serial-entry-row,
.offer-line,
.access-credential-row {
  padding: 13px;
  border: 1px solid #d8e1e5;
  border-left: 4px solid #168b91;
  border-radius: 4px;
  background: #f9fbfc;
}

.service-admin-layout {
  display: block;
}

.service-admin-detail {
  display: none;
}

.service-admin-list {
  display: grid;
  gap: 7px;
  max-height: none;
  overflow: visible;
}

.service-record-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #d7e0e4;
  border-radius: 4px;
  background: #fff;
}

.service-record-card.active,
.service-record-card:hover {
  border-color: #58a7aa;
  box-shadow: inset 4px 0 0 #168b91;
}

.service-record-card__open {
  min-height: 74px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 10px 13px;
  border: 0;
  color: #2b3c44;
  background: transparent;
  text-align: left;
}

.service-record-card__open strong,
.service-record-card__open span,
.service-record-card__open small {
  display: block;
}

.service-record-card__open strong {
  color: #18303c;
  font-size: 13px;
}

.service-record-card__open span,
.service-record-card__open small {
  margin-top: 3px;
  color: #718087;
  font-size: 10px;
}

.service-record-meta {
  min-width: 165px;
  text-align: right;
}

.service-record-card__delete {
  align-self: stretch;
  min-height: 100%;
  border-width: 0 0 0 1px;
  border-radius: 0;
}

.offer-builder {
  margin-top: 16px;
  padding: 15px;
  border: 1px solid #d6e0e4;
  border-top: 3px solid #c6974d;
  border-radius: 4px;
  background: #f8fafb;
}

.offer-catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.offer-catalog > * {
  border-radius: 4px;
  box-shadow: none;
}

.offer-lines {
  display: grid;
  gap: 7px;
}

.offer-line {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
}

.offer-line img {
  width: 54px;
  height: 44px;
  object-fit: contain;
  border-radius: 3px;
}

.offer-total {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  min-height: 42px;
  padding: 8px 0;
  border-top: 1px solid #d4dde1;
}

.offer-total strong {
  min-width: 130px;
  color: #18303c;
  font-size: 18px;
  text-align: right;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.photo-card {
  border: 1px solid #d8e0e4;
  border-radius: 4px;
  box-shadow: none;
}

.pdf-modal,
.image-modal {
  padding: 24px;
  background: rgba(9, 24, 32, 0.72);
  backdrop-filter: blur(5px);
}

.invoice-detail-sheet,
.service-detail-modal,
.customer-history-modal,
.modal-card {
  border: 1px solid #cad5da;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(8, 22, 30, 0.28);
}

.invoice-detail-head,
.modal-head {
  padding: 14px 18px;
  border-bottom: 1px solid #d7e0e4;
  background: #f7f9fa;
}

.customer-profile-hero {
  grid-template-columns: 84px minmax(0, 1fr) 300px;
  padding: 18px;
  border-bottom: 1px solid #d8e0e4;
  background: #fff;
}

.customer-profile-icon {
  width: 72px;
  height: 72px;
  border: 1px solid #d3b477;
  border-radius: 4px;
  color: #8a6428;
  background: #fffaf0;
}

.customer-profile-title h2 {
  font-size: 23px;
}

.customer-profile-meta {
  gap: 7px 18px;
  margin-top: 9px;
  font-size: 11px;
}

.customer-profile-address {
  margin-top: 8px;
  font-size: 11px;
}

.customer-profile-side {
  gap: 8px;
}

.customer-mini-select,
.customer-risk-card {
  min-height: 84px;
  padding: 12px;
  border-radius: 4px;
}

.customer-mini-select strong,
.customer-risk-card strong {
  margin-top: 9px;
  font-size: 16px;
}

.customer-profile-actions {
  justify-content: flex-start;
  padding: 10px 18px;
  background: #f7f9fa;
}

.customer-dossier .dashboard-grid {
  padding: 12px 18px;
  background: #eef3f5;
}

.customer-branch-workspace {
  padding: 16px 18px;
  border-top: 1px solid #d8e0e4;
}

.customer-branch-grid,
.customer-branch-workspace .customer-branch-grid {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin-bottom: 12px;
  padding-bottom: 3px;
}

.customer-branch-card {
  flex: 0 0 250px;
  min-height: 82px;
  padding: 11px 12px;
  border-radius: 4px;
  box-shadow: none;
}

.customer-branch-card strong {
  font-size: 13px;
}

.customer-branch-card span,
.customer-branch-card small,
.customer-branch-card em {
  margin-top: 3px;
  font-size: 10px;
}

.customer-branch-card.active {
  border-color: #168b91;
  background: #edf8f8;
  box-shadow: inset 0 -3px 0 #168b91;
}

.branch-current-card {
  padding: 14px;
  border-radius: 4px;
  background: #f8fafb;
}

.branch-profile-grid {
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 7px;
}

.branch-profile-block {
  min-height: 78px;
  padding: 10px;
  border-radius: 4px;
}

.customer-record-layout {
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 12px;
  padding: 12px 18px 18px;
}

.customer-record-main .customer-detail-tabs {
  margin-bottom: 10px;
  padding: 4px;
  border: 1px solid #d7e0e4;
  border-radius: 4px;
  background: #eef3f5;
}

.customer-record-main .customer-detail-tab {
  min-height: 38px;
  border: 0;
  border-radius: 3px;
}

.customer-record-main .customer-detail-tab.active {
  color: #fff;
  background: #123b4b;
  box-shadow: none;
}

.customer-action-rail {
  gap: 8px;
}

.rail-card {
  padding: 13px;
  border-radius: 4px;
}

.rail-head h3 {
  font-size: 14px;
}

.rail-card button {
  min-height: 38px;
  font-size: 11px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.detail-grid > div,
.detail-card {
  min-height: 72px;
  padding: 10px 12px;
  border: 1px solid #d8e0e4;
  border-radius: 4px;
  background: #f9fbfc;
}

.customer-directory-page,
.customer-record-pane .customer-dossier {
  padding: 0 !important;
}

.customer-directory-table th {
  color: #fff !important;
  background: #2b98a0 !important;
}

.customer-directory-table td {
  padding: 9px 10px !important;
}

@media (max-width: 1320px) {
  .admin-workspace-header {
    grid-template-columns: 1fr;
  }

  .admin-workspace-header .admin-section-nav-stack {
    justify-content: flex-start;
  }

  .admin-section-pane .split,
  .admin-section-pane .split-workspace,
  .admin-section-pane .split-services {
    grid-template-columns: 1fr;
  }

  .offer-catalog,
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-record-layout {
    grid-template-columns: 1fr;
  }

  .customer-action-rail {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .admin-workspace-header {
    padding: 13px;
  }

  .admin-workspace-header .admin-section-nav-stack {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .admin-workspace-header .admin-section-link {
    flex: 0 0 auto;
  }

  .field-grid,
  .dashboard-grid,
  .metric-grid,
  .invoice-metric-grid,
  .offer-catalog,
  .photo-grid,
  .detail-grid,
  .branch-profile-grid,
  .customer-action-rail {
    grid-template-columns: 1fr;
  }

  .service-record-card__open,
  .offer-line,
  .customer-profile-hero,
  .customer-profile-side {
    grid-template-columns: 1fr;
  }

  .service-record-meta {
    min-width: 0;
    text-align: left;
  }

  .customer-profile-icon {
    width: 58px;
    height: 58px;
  }

  .pdf-modal,
  .image-modal {
    padding: 8px;
  }
}

/* MIR BROS signature palette v67 */
:root {
  --brand-ink: #202a27;
  --brand-ink-deep: #151d1b;
  --brand-forest: #2f5749;
  --brand-forest-soft: #e9f0ec;
  --brand-bronze: #9d6a2a;
  --brand-gold: #c99b50;
  --brand-gold-soft: #f4ead8;
  --brand-canvas: #f3f2ee;
  --brand-panel: #ffffff;
  --brand-line: #dcd9d2;
  --brand-text: #252d2b;
  --brand-muted: #6e7773;
}

body,
.app-shell,
.pro-main {
  color: var(--brand-text);
  background: var(--brand-canvas);
}

.app-shell {
  grid-template-columns: 236px minmax(0, 1fr);
}

.pro-sidebar {
  color: #f7f2e8;
  background: var(--brand-ink-deep);
  box-shadow: 8px 0 28px rgba(20, 28, 25, 0.16);
}

.pro-sidebar-brand {
  min-height: 82px;
  grid-template-columns: 58px minmax(0, 1fr);
  padding: 13px 15px;
  border-bottom-color: rgba(219, 190, 138, 0.18);
  background: #101715;
}

.pro-sidebar-brand img {
  width: 56px;
  height: 52px;
  padding: 4px;
  border: 1px solid rgba(201, 155, 80, 0.42);
  border-radius: 5px;
  background: #fff;
}

.pro-sidebar-brand strong {
  color: #fffaf1;
  font-size: 14px;
  font-weight: 800;
}

.pro-sidebar-brand span {
  color: #cdb58a;
}

.pro-sidebar-user {
  border-top-color: rgba(219, 190, 138, 0.18);
  background: #101715;
}

.pro-sidebar-user span,
.pro-sidebar-user small {
  color: #b8bdb9;
}

.pro-nav-item {
  color: #d8ddda;
}

.pro-nav-item:hover,
.pro-nav-item.active {
  color: #fff;
  background: #293531;
}

.pro-nav-item.active {
  box-shadow: inset 3px 0 0 var(--brand-gold);
}

.pro-nav-icon {
  color: #c9cfcb;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
}

.pro-nav-item.active .pro-nav-icon {
  color: #2a2115;
  border-color: #d8ad67;
  background: #d8ad67;
}

.pro-topbar {
  border-bottom-color: var(--brand-line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 16px rgba(34, 42, 39, 0.055);
}

.pro-topbar-title span {
  color: var(--brand-bronze);
}

.pro-topbar-title h1 {
  color: var(--brand-ink);
}

.pro-search input {
  border-color: #d8d6d0;
  background: #faf9f6;
}

.pro-search input:focus {
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 3px rgba(201, 155, 80, 0.14);
}

.topbar-chip {
  color: #5f5a50;
  border-color: #ddd8cf;
  background: #f7f3eb;
}

.admin-workspace-header {
  border-color: var(--brand-line);
  border-left-color: var(--brand-gold);
  background: var(--brand-panel);
  box-shadow: 0 7px 20px rgba(32, 42, 39, 0.05);
}

.admin-workspace-title span {
  color: var(--brand-bronze);
}

.admin-workspace-title h2 {
  color: var(--brand-ink);
}

.admin-workspace-title p,
.admin-section-pane .panel-head p,
.field > label,
.admin-section-pane form > label {
  color: var(--brand-muted);
}

.admin-workspace-header .admin-section-link {
  color: #4d5753;
  border-color: #d8d6cf;
  background: #faf9f6;
}

.admin-workspace-header .admin-section-link.active,
.admin-workspace-header .admin-section-link:hover {
  color: #fff;
  border-color: var(--brand-ink);
  background: var(--brand-ink);
  box-shadow: inset 0 -3px 0 var(--brand-gold);
}

.admin-section-pane .panel,
.customer-record-main > .section,
.customer-subpanel,
.workspace-panel,
.customer-directory-page,
.customer-record-pane .customer-dossier {
  border-color: var(--brand-line);
  background: var(--brand-panel);
  box-shadow: 0 7px 21px rgba(32, 42, 39, 0.05);
}

.admin-section-pane form.panel {
  border-top-color: var(--brand-gold);
}

.admin-section-pane .panel-head,
.customer-profile-hero,
.customer-branch-workspace,
.customer-profile-actions,
.customer-detail-pagebar {
  border-color: var(--brand-line);
}

.admin-section-pane .panel-head h2,
.admin-section-pane .panel-head h3,
.rail-head h3,
.customer-profile-title h2 {
  color: var(--brand-ink);
}

.field input,
.field select,
.field textarea,
.admin-section-pane input,
.admin-section-pane select,
.admin-section-pane textarea {
  color: var(--brand-text);
  border-color: #d2d1cb;
  background: #fff;
}

.field input:hover,
.field select:hover,
.field textarea:hover,
.admin-section-pane input:hover,
.admin-section-pane select:hover,
.admin-section-pane textarea:hover {
  border-color: #b9b5ac;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.admin-section-pane input:focus,
.admin-section-pane select:focus,
.admin-section-pane textarea:focus {
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 3px rgba(201, 155, 80, 0.14);
}

.segmented,
.customer-record-main .customer-detail-tabs {
  border-color: #d8d6cf;
  background: #f3f1ec;
}

.segmented label:has(input:checked),
.choice-pill.active,
.customer-detail-tab.active,
.customer-record-main .customer-detail-tab.active {
  color: #fff;
  border-color: var(--brand-forest);
  background: var(--brand-forest);
}

.choice-pill,
.customer-detail-tab {
  color: #4f5b56;
  border-color: #d5d4ce;
  background: #faf9f6;
}

.btn.primary,
.customer-open-button {
  color: #fff;
  border-color: var(--brand-forest);
  background: var(--brand-forest);
}

.btn.primary:hover,
.customer-open-button:hover {
  background: #24473b;
}

.btn.warn,
.customer-report-button {
  color: #3f2d16;
  border-color: #c79645;
  background: #ddb86f;
}

.btn.ghost {
  color: #3e4a46;
  border-color: #d3d2cc;
  background: #fff;
}

.btn.ghost:hover {
  color: var(--brand-ink);
  border-color: #aaa79f;
  background: #f7f5f0;
}

.notice {
  color: #554833;
  border-color: #e1cfaa;
  border-left-color: var(--brand-gold);
  background: #fbf6eb;
}

.status.ok {
  color: #246447;
  border-color: #c5ded0;
  background: #edf7f1;
}

.status.warn {
  color: #8a5c1f;
  border-color: #ead5ad;
  background: #fff6e5;
}

.status.danger,
.status.error {
  color: #a44138;
  border-color: #ecc8c4;
  background: #fff1f0;
}

.table-wrap {
  border-color: var(--brand-line);
}

.table-wrap th,
.admin-section-pane table th {
  color: #514c43;
  border-color: #d8d4ca;
  background: #eeeae2;
}

.table-wrap td,
.admin-section-pane table td {
  color: #36413d;
  border-color: #e5e2dc;
}

.table-wrap tbody tr:nth-child(even) td,
.admin-section-pane table tbody tr:nth-child(even) td {
  background: #faf9f6;
}

.table-wrap tbody tr:hover td,
.admin-section-pane table tbody tr:hover td {
  background: #f4f0e8;
}

.customer-directory-titlebar {
  color: #fff;
  border-bottom: 3px solid var(--brand-gold);
  background: var(--brand-ink);
}

.customer-directory-titlebar p {
  color: rgba(255, 255, 255, 0.7);
}

.customer-directory-toolbar {
  border-color: var(--brand-line);
  background: #f7f5f0;
}

.customer-directory-search input:focus {
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 3px rgba(201, 155, 80, 0.14);
}

.customer-directory-filters button {
  color: #4c5752;
  border-color: #d2d1cb;
  background: #fff;
}

.customer-directory-filters button.active {
  color: #fff;
  border-color: var(--brand-forest);
  background: var(--brand-forest);
}

.customer-directory-table th {
  color: #fff !important;
  border-right-color: rgba(255, 255, 255, 0.12) !important;
  border-bottom-color: var(--brand-gold) !important;
  background: #293430 !important;
}

.customer-directory-table tbody tr:nth-child(even) td {
  background: #faf9f6;
}

.customer-directory-table tbody tr:hover td {
  background: #f3efe6;
}

.dashboard-grid .metric,
.metric-grid .metric,
.invoice-metric-grid .metric {
  border-color: var(--brand-line);
  border-top-color: var(--brand-forest);
  background: #fff;
}

.dashboard-grid .metric:nth-child(3n + 2),
.metric-grid .metric:nth-child(3n + 2),
.invoice-metric-grid .metric:nth-child(3n + 2) {
  border-top-color: var(--brand-gold);
}

.dashboard-grid .metric:nth-child(3n),
.metric-grid .metric:nth-child(3n),
.invoice-metric-grid .metric:nth-child(3n) {
  border-top-color: var(--brand-ink);
}

.dashboard-grid .metric strong,
.metric-grid .metric strong,
.invoice-metric-grid .metric strong {
  color: var(--brand-ink);
}

.admin-launcher-card,
.admin-launcher-card:hover {
  border-color: var(--brand-line);
  background: #fff;
  box-shadow: 0 5px 16px rgba(32, 42, 39, 0.05);
}

.admin-launcher-card::before {
  background: var(--brand-gold);
}

.admin-launcher-card strong {
  color: var(--brand-ink);
}

.admin-launcher-card small {
  color: var(--brand-muted);
}

.admin-launcher-card-icon,
.tone-gold .admin-launcher-card-icon,
.tone-teal .admin-launcher-card-icon,
.tone-coral .admin-launcher-card-icon,
.tone-blue .admin-launcher-card-icon,
.tone-purple .admin-launcher-card-icon,
.tone-green .admin-launcher-card-icon,
.tone-amber .admin-launcher-card-icon,
.tone-pink .admin-launcher-card-icon,
.tone-cyan .admin-launcher-card-icon,
.tone-slate .admin-launcher-card-icon {
  color: #3a2a17;
  border: 1px solid #d8b777;
  background: var(--brand-gold-soft);
  box-shadow: none;
}

.admin-launcher-card:nth-child(3n + 2) .admin-launcher-card-icon {
  color: #fff;
  border-color: var(--brand-forest);
  background: var(--brand-forest);
}

.admin-launcher-card:nth-child(3n) .admin-launcher-card-icon {
  color: #fff;
  border-color: var(--brand-ink);
  background: var(--brand-ink);
}

.serial-entry-row,
.offer-line,
.access-credential-row {
  border-color: #ddd9d0;
  border-left-color: var(--brand-gold);
  background: #faf9f6;
}

.service-record-card {
  border-color: var(--brand-line);
}

.service-record-card.active,
.service-record-card:hover {
  border-color: #9fb9af;
  box-shadow: inset 4px 0 0 var(--brand-forest);
}

.service-record-card__open strong {
  color: var(--brand-ink);
}

.offer-builder {
  border-color: var(--brand-line);
  border-top-color: var(--brand-gold);
  background: #f8f6f1;
}

.offer-total strong {
  color: var(--brand-ink);
}

.customer-profile-hero,
.customer-profile-actions,
.customer-dossier .dashboard-grid,
.customer-branch-workspace,
.branch-current-card,
.customer-record-main .customer-detail-tabs {
  background: #fff;
}

.customer-profile-actions,
.customer-dossier .dashboard-grid {
  background: #f7f5f0;
}

.customer-profile-icon {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-color: #d9b979;
  background: #fff;
}

.customer-profile-icon img {
  width: 92%;
  height: 92%;
  object-fit: contain;
}

.customer-mini-select,
.customer-risk-card,
.customer-branch-card,
.branch-profile-block,
.rail-card,
.detail-grid > div,
.detail-card {
  border-color: var(--brand-line);
  background: #fff;
}

.customer-branch-card.active {
  border-color: var(--brand-gold);
  background: #fbf7ee;
  box-shadow: inset 0 -3px 0 var(--brand-gold);
}

.branch-current-card {
  border-color: var(--brand-line);
  background: #faf9f6;
}

.pdf-modal,
.image-modal {
  background: rgba(15, 21, 19, 0.78);
}

.invoice-detail-sheet,
.service-detail-modal,
.customer-history-modal,
.modal-card {
  border-color: #d4d0c7;
  box-shadow: 0 28px 80px rgba(14, 20, 18, 0.32);
}

.invoice-detail-head,
.modal-head {
  border-color: var(--brand-line);
  background: #f7f5f0;
}

/* Structural workspace rebuild v68 */
.app-shell {
  grid-template-columns: 220px minmax(0, 1fr);
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 72px minmax(0, 1fr);
}

.app-shell.sidebar-collapsed .pro-sidebar-brand {
  grid-template-columns: 1fr;
  padding-inline: 9px;
}

.app-shell.sidebar-collapsed .pro-sidebar-brand img {
  width: 48px;
  margin: 0 auto;
}

.app-shell.sidebar-collapsed .pro-sidebar-brand div,
.app-shell.sidebar-collapsed .pro-nav-item strong,
.app-shell.sidebar-collapsed .pro-sidebar-user {
  display: none;
}

.app-shell.sidebar-collapsed .pro-nav-item {
  grid-template-columns: 1fr;
  justify-items: center;
  padding-inline: 5px;
}

.pro-sidebar {
  z-index: 90;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.module-tile-nav,
.module-tile-nav--top,
.module-tile-nav--bottom {
  display: none !important;
}

.pro-sidebar-brand {
  min-height: 72px;
  grid-template-columns: 50px minmax(0, 1fr);
  padding: 10px 14px;
}

.pro-sidebar-brand img {
  width: 48px;
  height: 46px;
}

.pro-nav {
  padding: 14px 8px;
}

.pro-nav-item {
  min-height: 45px;
  grid-template-columns: 28px minmax(0, 1fr);
  padding: 6px 10px;
  border-radius: 0;
}

.pro-nav-icon {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.pro-nav-item.active .pro-nav-icon {
  color: var(--brand-gold);
  border: 0;
  background: transparent;
}

.pro-main {
  padding: 0 18px 30px;
}

.pro-topbar {
  min-height: 66px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 0 -18px 0;
  padding: 0 20px;
}

.pro-topbar-left,
.pro-command,
.pro-user-menu {
  display: flex;
  align-items: center;
}

.pro-topbar-left {
  min-width: 0;
  gap: 16px;
}

.pro-menu-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-content: center;
  gap: 4px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
}

.pro-menu-button:hover {
  background: #f1efe9;
}

.pro-menu-button span {
  width: 18px;
  height: 2px;
  display: block;
  background: var(--brand-ink);
}

.pro-search {
  position: relative;
  width: min(430px, 34vw);
}

.pro-search input {
  height: 40px;
  padding: 0 72px 0 36px;
  border-radius: 4px;
  background: #fff;
}

.pro-search::before {
  content: "⌕";
  position: absolute;
  z-index: 2;
  left: 12px;
  top: 8px;
  color: #74807b;
  font-size: 20px;
  line-height: 1;
}

.pro-search-shortcut {
  position: absolute;
  right: 9px;
  top: 9px;
  padding: 3px 6px;
  border: 1px solid #dedbd4;
  border-radius: 3px;
  color: #858d89;
  background: #f8f7f4;
  font-size: 9px;
}

.pro-command {
  gap: 10px;
}

.pro-date-block {
  display: grid;
  gap: 1px;
  padding: 0 14px 0 0;
  border-right: 1px solid #e0ddd6;
  text-align: right;
}

.pro-date-block span,
.pro-user-menu small {
  color: #7a837f;
  font-size: 9px;
}

.pro-date-block strong,
.pro-user-menu strong {
  color: #26312e;
  font-size: 11px;
}

.pro-icon-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #dedbd4;
  border-radius: 50%;
  color: #3c4944;
  background: #fff;
  font-weight: 800;
}

.pro-user-menu {
  gap: 8px;
  min-width: 150px;
  padding-left: 10px;
  border-left: 1px solid #e0ddd6;
}

.pro-user-menu > span:last-child {
  display: grid;
}

.pro-user-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: var(--brand-ink);
  font-size: 10px;
  font-weight: 850;
}

.pro-logout-button {
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  color: #7b4c2c;
  background: transparent;
  font-size: 10px;
  font-weight: 750;
}

.pro-topbar-context {
  display: grid;
}

.pro-topbar-context span {
  color: #77827d;
  font-size: 10px;
}

.pro-content {
  gap: 0;
}

.admin-workspace-header {
  min-height: 82px;
  display: block;
  margin: 0;
  padding: 13px 8px 11px;
  border: 0;
  border-bottom: 1px solid var(--brand-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.admin-breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: #737d78;
  font-size: 10px;
}

.admin-breadcrumb b {
  color: #b0aaa0;
  font-weight: 500;
}

.admin-page-title-row h2 {
  margin: 0;
  color: #1c292f;
  font-size: 22px;
  font-weight: 760;
}

.admin-page-title-row p {
  margin: 3px 0 0;
  color: #737d78;
  font-size: 11px;
}

.admin-section-tabbar {
  margin: 0 -18px 14px;
  padding: 0 26px;
  border-bottom: 1px solid var(--brand-line);
  background: #fff;
}

.admin-section-tabbar .admin-section-nav {
  border: 0;
  background: transparent;
}

.admin-section-tabbar .admin-section-nav-stack {
  display: flex;
  gap: 24px;
  overflow-x: auto;
}

.admin-section-tabbar .admin-section-link {
  position: relative;
  min-width: auto;
  min-height: 48px;
  flex: 0 0 auto;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  color: #53605b;
  background: transparent;
}

.admin-section-tabbar .admin-section-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: transparent;
}

.admin-section-tabbar .admin-section-link.active,
.admin-section-tabbar .admin-section-link:hover {
  color: var(--brand-bronze);
  border: 0;
  background: transparent;
  box-shadow: none;
}

.admin-section-tabbar .admin-section-link.active::after {
  background: var(--brand-gold);
}

.admin-section-pane {
  padding-bottom: 22px;
}

.admin-section-pane .panel,
.customer-directory-page,
.customer-record-pane .customer-dossier {
  border-radius: 4px;
  box-shadow: none;
}

.admin-section-pane .split {
  gap: 12px;
}

.customer-detail-pagebar {
  min-height: 48px;
  margin: 0 0 10px;
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid var(--brand-line);
  border-radius: 0;
  background: transparent;
}

.customer-detail-pagebar .eyebrow {
  display: none;
}

.customer-back-button {
  min-height: 34px;
  border: 0;
  background: transparent;
}

.customer-record-pane .customer-dossier {
  overflow: visible;
  border: 0;
  background: transparent;
}

.customer-profile-hero {
  grid-template-columns: 78px minmax(0, 1fr) 300px;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--brand-line);
  border-radius: 4px 4px 0 0;
  background: #fff;
}

.customer-profile-icon {
  width: 66px;
  height: 66px;
}

.customer-profile-title h2 {
  font-size: 24px;
}

.customer-profile-side {
  grid-template-columns: 1fr;
}

.customer-mini-select,
.customer-risk-card {
  min-height: 58px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 9px 11px;
}

.customer-mini-select strong,
.customer-risk-card strong {
  margin: 0;
  font-size: 13px;
  text-align: right;
}

.customer-risk-card small {
  grid-column: 1 / -1;
  text-align: right;
}

.customer-profile-actions {
  justify-content: flex-end;
  padding: 9px 14px;
  border: 1px solid var(--brand-line);
  border-top: 0;
  background: #fff;
}

.customer-dossier > .dashboard-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
  padding: 0;
  background: transparent;
}

.customer-dossier > .dashboard-grid .metric {
  min-height: 104px;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 14px;
  border-top-width: 1px;
}

.customer-dossier > .dashboard-grid .metric::after {
  content: "";
  width: 42px;
  height: 42px;
  grid-column: 2;
  grid-row: 1 / span 2;
  border-radius: 50%;
  background: var(--brand-gold-soft);
  box-shadow: inset 0 0 0 1px #e4cfaa;
}

.customer-dossier > .dashboard-grid .metric:nth-child(1)::after { content: "▦"; }
.customer-dossier > .dashboard-grid .metric:nth-child(2)::after { content: "⚙"; }
.customer-dossier > .dashboard-grid .metric:nth-child(3)::after { content: "✓"; }
.customer-dossier > .dashboard-grid .metric:nth-child(4)::after { content: "₺"; }

.customer-dossier > .dashboard-grid .metric::after {
  display: grid;
  place-items: center;
  color: var(--brand-bronze);
  font-size: 18px;
  font-weight: 850;
}

.customer-dossier > .dashboard-grid .metric strong {
  font-size: 24px;
}

.customer-branch-workspace {
  margin: 0 0 10px;
  padding: 10px 12px 7px;
  border: 1px solid var(--brand-line);
  border-radius: 4px;
  background: #fff;
}

.customer-branch-workspace > .panel-head,
.branch-current-card {
  display: none;
}

.customer-branch-workspace .customer-branch-grid {
  margin: 0;
  padding: 0 0 3px;
}

.customer-branch-card {
  flex: 0 0 auto;
  min-width: 170px;
  min-height: 48px;
  padding: 7px 10px;
  border-radius: 3px;
}

.customer-branch-card span,
.customer-branch-card em {
  display: none;
}

.customer-branch-card small {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-record-layout {
  grid-template-columns: minmax(0, 1fr) 258px;
  gap: 12px;
  padding: 0;
}

.customer-record-main .customer-detail-tabs {
  gap: 26px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--brand-line);
  border-radius: 4px 4px 0 0;
  background: #fff;
}

.customer-record-main .customer-detail-tab {
  position: relative;
  min-height: 48px;
  padding: 0;
  border: 0;
  color: #4e5a55;
  background: transparent;
}

.customer-record-main .customer-detail-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: transparent;
}

.customer-record-main .customer-detail-tab.active {
  color: var(--brand-bronze);
  background: transparent;
}

.customer-record-main .customer-detail-tab.active::after {
  background: var(--brand-gold);
}

.customer-record-main > .section,
.customer-record-main > .panel,
.customer-subpanel {
  margin: 0;
  border-top: 0;
  border-radius: 0 0 4px 4px;
  box-shadow: none;
}

.customer-action-rail {
  position: static;
  gap: 10px;
}

.rail-card {
  padding: 0;
  overflow: hidden;
  border-radius: 4px;
}

.rail-head {
  min-height: 46px;
  margin: 0;
  padding: 0 13px;
  border-bottom: 1px solid var(--brand-line);
  background: #f8f7f3;
}

.rail-card button {
  min-height: 45px;
  padding: 0 13px;
}

.rail-card.muted-card p {
  padding: 12px 13px;
}

.customer-directory-page {
  border: 0;
  background: transparent;
}

.customer-directory-titlebar {
  min-height: 58px;
  padding: 10px 14px;
  border: 1px solid var(--brand-line);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  color: var(--brand-text);
  background: #fff;
}

.customer-directory-titlebar .eyebrow {
  color: var(--brand-bronze);
}

.customer-directory-titlebar h2 {
  color: var(--brand-ink);
  font-size: 17px;
}

.customer-directory-titlebar p {
  color: var(--brand-muted);
}

.customer-directory-count {
  border-left-color: var(--brand-line);
}

.customer-directory-count strong {
  color: var(--brand-ink);
}

.customer-directory-count span {
  color: var(--brand-muted);
}

.customer-directory-toolbar {
  border: 1px solid var(--brand-line);
  border-bottom: 0;
  background: #f8f7f3;
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .pro-topbar {
    margin: 0 -18px;
  }

  .pro-date-block,
  .pro-user-menu > span:last-child,
  .pro-logout-button {
    display: none;
  }

  .customer-record-layout,
  .customer-profile-hero {
    grid-template-columns: 1fr;
  }

  .customer-profile-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .pro-main {
    padding: 0 8px 86px;
  }

  .pro-topbar {
    margin: 0 -8px;
    padding: 0 8px;
  }

  .pro-search {
    width: min(62vw, 360px);
  }

  .pro-search-shortcut,
  .pro-icon-button:first-of-type {
    display: none;
  }

  .admin-section-tabbar {
    margin: 0 -8px 10px;
    padding: 0 12px;
  }

  .customer-dossier > .dashboard-grid,
  .customer-profile-side {
    grid-template-columns: 1fr;
  }

  .customer-record-main .customer-detail-tabs {
    gap: 18px;
    overflow-x: auto;
  }
}

/* Customer card workbench v64 */
.customer-crm-workspace {
  padding: 0;
  background: transparent;
}

.customer-crm-grid {
  display: grid;
  grid-template-columns: minmax(360px, 460px) minmax(760px, 1fr);
  gap: 22px;
  align-items: start;
}

.customer-directory-panel {
  position: sticky;
  top: 112px;
  height: calc(100vh - 136px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.customer-directory-panel .panel-head {
  flex: 0 0 auto;
}

.customer-directory-panel .field {
  flex: 0 0 auto;
}

.customer-directory-panel .customer-detail-tabs {
  flex: 0 0 auto;
}

.customer-directory-panel .customer-search-results {
  flex: 1 1 auto;
  max-height: none;
  padding-right: 8px;
}

.customer-record-pane {
  min-width: 0;
}

.customer-record-pane .customer-dossier {
  padding: 0;
  border-radius: 28px;
  overflow: hidden;
  background: #fffefa;
}

.customer-profile-hero {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) minmax(280px, 380px);
  gap: 24px;
  align-items: center;
  padding: 26px;
  border-bottom: 1px solid rgba(18, 48, 42, 0.1);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(250, 249, 243, 0.92)),
    #fffefa;
}

.customer-profile-icon {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(166, 116, 42, 0.22);
  border-radius: 22px;
  color: #b27d35;
  font-size: 28px;
  font-weight: 950;
  background:
    linear-gradient(180deg, rgba(255, 250, 235, 0.96), rgba(240, 225, 195, 0.82));
  box-shadow: inset 0 -8px 18px rgba(157, 105, 35, 0.08);
}

.customer-profile-main {
  min-width: 0;
}

.customer-profile-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.customer-profile-title h2 {
  margin: 0;
  color: #111c22;
  font-size: clamp(24px, 2.3vw, 36px);
  line-height: 1.08;
  letter-spacing: 0;
}

.customer-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 14px;
  color: #334740;
  font-size: 13px;
}

.customer-profile-address {
  margin: 12px 0 0;
  color: #52665f;
}

.customer-profile-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}

.customer-mini-select,
.customer-risk-card {
  min-height: 118px;
  padding: 18px;
  border: 1px solid rgba(18, 48, 42, 0.11);
  border-radius: 18px;
  background: #fff;
}

.customer-mini-select span,
.customer-risk-card span {
  display: block;
  color: #687a73;
  font-size: 12px;
  font-weight: 800;
}

.customer-mini-select strong,
.customer-risk-card strong {
  display: block;
  margin-top: 18px;
  color: #183d35;
  font-size: 20px;
}

.customer-risk-card.ok {
  background: linear-gradient(135deg, #fbfffc, #eefaf4);
  border-color: rgba(20, 142, 91, 0.2);
}

.customer-risk-card.danger {
  background: linear-gradient(135deg, #fffdf9, #fff4e2);
  border-color: rgba(197, 123, 30, 0.22);
}

.customer-profile-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 26px;
  border-bottom: 1px solid rgba(18, 48, 42, 0.1);
  background: #fff;
}

.customer-dossier .dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 20px 26px;
  margin: 0;
  background: linear-gradient(180deg, #fffefa, #faf8ef);
}

.customer-dossier .dashboard-grid .metric,
.customer-dossier .dashboard-grid button.metric {
  min-height: 118px;
  padding: 18px;
  border: 1px solid rgba(18, 48, 42, 0.1);
  border-radius: 18px;
  color: #11231f;
  background: #fff;
  box-shadow: 0 12px 30px rgba(21, 44, 39, 0.06);
}

.customer-dossier .dashboard-grid .metric span,
.customer-dossier .dashboard-grid .metric strong,
.customer-dossier .dashboard-grid .metric small {
  color: #11231f;
}

.customer-dossier .dashboard-grid .metric span {
  color: #52665f;
  opacity: 1;
}

.customer-dossier .dashboard-grid .metric strong {
  margin-top: 12px;
  font-size: 28px;
}

.customer-branch-workspace {
  padding: 20px 26px 6px;
  border-top: 1px solid rgba(18, 48, 42, 0.08);
}

.customer-branch-workspace .customer-branch-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.branch-current-card {
  margin-top: 14px;
}

.customer-record-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 16px;
  padding: 18px 26px 26px;
  align-items: start;
}

.customer-record-main {
  min-width: 0;
}

.customer-record-main .customer-detail-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding: 0 0 0;
  margin-bottom: 16px;
  border: 1px solid rgba(18, 48, 42, 0.1);
  border-radius: 18px 18px 0 0;
  background: #fff;
}

.customer-record-main .customer-detail-tab {
  min-height: 54px;
  padding: 0 18px;
  border: 0;
  border-right: 1px solid rgba(18, 48, 42, 0.08);
  border-radius: 0;
  color: #223831;
  background: transparent;
}

.customer-record-main .customer-detail-tab.active {
  color: #071d19;
  background: #fff;
  box-shadow: inset 0 -3px 0 #071d19;
}

.customer-record-main > .section,
.customer-record-main > .panel {
  margin-top: 0;
}

.customer-action-rail {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 112px;
}

.rail-card {
  padding: 18px;
  border: 1px solid rgba(18, 48, 42, 0.1);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(21, 44, 39, 0.06);
}

.rail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.rail-head h3 {
  margin: 0;
  color: #172a25;
  font-size: 18px;
}

.rail-card button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #223831;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.rail-card button + button {
  border-top: 1px solid rgba(18, 48, 42, 0.08);
}

.rail-card.muted-card p {
  margin: 0;
  color: #5d6d67;
  line-height: 1.55;
}

@media (max-width: 1500px) {
  .customer-crm-grid {
    grid-template-columns: minmax(340px, 420px) minmax(680px, 1fr);
  }

  .customer-profile-hero {
    grid-template-columns: 116px minmax(0, 1fr);
  }

  .customer-profile-side {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1180px) {
  .customer-crm-grid,
  .customer-record-layout {
    grid-template-columns: 1fr;
  }

  .customer-directory-panel,
  .customer-action-rail {
    position: static;
    height: auto;
  }
}

@media (max-width: 760px) {
  .customer-profile-hero,
  .customer-profile-side,
  .customer-dossier .dashboard-grid,
  .customer-branch-workspace .customer-branch-grid {
    grid-template-columns: 1fr;
  }

  .customer-profile-actions {
    justify-content: flex-start;
  }
}

/* Executive content redesign v63 */
.pro-main {
  background:
    linear-gradient(120deg, rgba(247, 241, 224, 0.62), rgba(236, 246, 241, 0.88) 38%, rgba(255, 252, 242, 0.9)),
    radial-gradient(circle at 78% 8%, rgba(196, 145, 66, 0.18), transparent 28%);
}

.pro-content {
  max-width: 1680px;
}

.pro-content > .split {
  grid-template-columns: minmax(430px, 0.72fr) minmax(660px, 1.28fr);
  align-items: start;
}

.pro-content > .split > .panel:first-child {
  position: sticky;
  top: 112px;
}

.pro-content .panel {
  border-radius: 28px;
  border-color: rgba(15, 63, 53, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 250, 244, 0.9)),
    #fffefa;
}

.pro-content .panel.section,
.customer-dossier {
  overflow: hidden;
}

.customer-dossier > .panel-head {
  margin: -22px -22px 22px;
  padding: 24px 26px 20px;
  border: 0;
  background:
    linear-gradient(135deg, rgba(7, 54, 47, 0.98), rgba(22, 118, 96, 0.92)),
    #0b3c34;
  color: #fff;
}

.customer-dossier > .panel-head h2,
.customer-dossier > .panel-head p {
  color: #fff;
}

.customer-dossier > .panel-head p {
  opacity: 0.76;
}

.customer-dossier > .panel-head .btn,
.customer-dossier > .panel-head .status {
  box-shadow: none;
}

.customer-dossier .metric-grid,
.customer-dossier .dashboard-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 22px;
}

.customer-dossier .metric,
.customer-dossier button.metric {
  min-height: 128px;
  align-content: end;
  padding: 18px;
  border: 0;
  border-radius: 24px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(7, 76, 63, 0.98), rgba(27, 134, 109, 0.9)),
    #0d5b4d;
  box-shadow: 0 24px 48px rgba(10, 76, 64, 0.22);
}

.customer-dossier .metric:nth-child(2) {
  background: linear-gradient(145deg, #294f47, #1d7a66);
}

.customer-dossier .metric:nth-child(3) {
  background: linear-gradient(145deg, #715123, #c18a3d);
}

.customer-dossier .metric:nth-child(4) {
  background: linear-gradient(145deg, #183e38, #527166);
}

.customer-dossier .metric span,
.customer-dossier .metric strong,
.customer-dossier .metric small {
  color: #fff;
}

.customer-dossier .metric span {
  opacity: 0.74;
}

.customer-dossier .metric strong {
  margin-top: 10px;
  font-size: 34px;
  line-height: 1;
}

.customer-dossier .metric small {
  opacity: 0.78;
}

.customer-branch-workspace {
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.customer-branch-workspace > .panel-head {
  padding: 0 0 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(13, 58, 50, 0.11);
}

.customer-branch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.customer-branch-card {
  min-height: 124px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(17, 76, 65, 0.12);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 42px rgba(12, 51, 44, 0.08);
  text-align: left;
}

.customer-branch-card.active {
  border-color: rgba(21, 113, 94, 0.55);
  background:
    linear-gradient(135deg, rgba(236, 249, 243, 0.96), rgba(255, 251, 240, 0.96));
  box-shadow: 0 22px 50px rgba(16, 96, 80, 0.14);
}

.customer-branch-card strong {
  color: #103d34;
  font-size: 17px;
}

.customer-branch-card span,
.customer-branch-card small,
.customer-branch-card em {
  color: #5c6d67;
}

.branch-current-card {
  padding: 20px;
  border-radius: 26px;
  border: 1px solid rgba(17, 76, 65, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 245, 0.92));
  box-shadow: 0 24px 54px rgba(12, 51, 44, 0.09);
}

.branch-profile-grid {
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 12px;
}

.branch-profile-block {
  min-height: 96px;
  padding: 16px;
  border-radius: 18px;
  background: #fffefa;
  border: 1px solid rgba(17, 76, 65, 0.1);
}

.branch-profile-notes {
  gap: 12px;
}

.branch-profile-notes > div {
  border-radius: 18px;
  background: #fffefa;
  border: 1px solid rgba(17, 76, 65, 0.1);
}

.customer-detail-tabs {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(13, 58, 50, 0.1);
}

.customer-detail-tab {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
}

.customer-detail-tab.active {
  background: #0f6756;
  color: #fff;
  border-color: #0f6756;
  box-shadow: 0 12px 28px rgba(15, 103, 86, 0.18);
}

.customer-search-results {
  max-height: min(65vh, 760px);
}

.customer-search-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 20px;
  border-radius: 24px;
  border-color: rgba(16, 91, 75, 0.12);
  background: rgba(255, 255, 255, 0.82);
}

.customer-search-card strong {
  font-size: 17px;
  color: #092f28;
}

.customer-search-card span,
.customer-search-card small {
  font-size: 13px;
}

.customer-search-card.active,
.customer-search-card:hover {
  border-color: rgba(15, 103, 86, 0.45);
  background:
    linear-gradient(135deg, rgba(232, 248, 241, 0.94), rgba(255, 252, 242, 0.94));
  box-shadow: 0 24px 54px rgba(15, 103, 86, 0.13);
}

.customer-search-card .status {
  padding: 7px 10px;
}

.pro-content .customer-detail-tabs + .field,
.pro-content .customer-detail-tabs + .customer-search-results {
  margin-top: 14px;
}

.pro-content .field input::placeholder,
.pro-content .field textarea::placeholder {
  color: #87958f;
}

@media (max-width: 1280px) {
  .pro-content > .split > .panel:first-child {
    position: static;
  }

  .customer-dossier .metric-grid,
  .customer-dossier .dashboard-grid,
  .branch-profile-grid,
  .customer-branch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .customer-dossier > .panel-head {
    margin: -16px -16px 18px;
    padding: 20px;
  }

  .customer-dossier .metric-grid,
  .customer-dossier .dashboard-grid,
  .branch-profile-grid,
  .customer-branch-grid,
  .customer-search-card {
    grid-template-columns: 1fr;
  }
}

/* MIR BROS application workspace v70 */
:root {
  --mir-navy: #082534;
  --mir-navy-soft: #10394a;
  --mir-gold: #b98b42;
  --mir-gold-soft: #f6ecd7;
  --mir-canvas: #f3f5f6;
  --mir-paper: #ffffff;
  --mir-line: #dce2e4;
  --mir-text: #17252d;
  --mir-muted: #6c7a80;
  --mir-green: #18785f;
}

.app-shell {
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--mir-canvas);
}

.pro-sidebar {
  background: var(--mir-navy);
  box-shadow: none;
}

.pro-sidebar-brand {
  min-height: 86px;
  padding: 18px 20px;
  background: #061d29;
  border-bottom-color: rgba(255, 255, 255, 0.11);
}

.pro-sidebar-brand strong {
  color: #f3d59b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  letter-spacing: 0.4px;
}

.pro-sidebar-brand span,
.pro-sidebar-user small,
.pro-sidebar-footer small {
  color: rgba(255, 255, 255, 0.58);
}

.pro-sidebar-nav .nav-btn,
.pro-sidebar-footer .nav-btn {
  border-radius: 5px;
}

.pro-sidebar-nav .nav-btn.active,
.pro-sidebar-footer .nav-btn.active {
  color: #fffaf0;
  background: rgba(185, 139, 66, 0.22);
  box-shadow: inset 3px 0 0 var(--mir-gold);
}

.pro-sidebar-nav .nav-btn .nav-icon,
.pro-sidebar-footer .nav-btn .nav-icon {
  border-radius: 4px;
  color: #ffe1a6;
  background: rgba(255, 255, 255, 0.07);
}

.pro-main {
  background: var(--mir-canvas);
}

.pro-topbar {
  min-height: 66px;
  padding: 0 28px;
  border-bottom: 1px solid var(--mir-line);
  background: var(--mir-paper);
  box-shadow: none;
}

.pro-content {
  max-width: none;
  padding: 24px 28px 48px;
}

.admin-section-shell {
  background: transparent;
}

.admin-workspace-header {
  margin: 0;
  padding: 0 0 18px;
  border: 0;
  border-bottom: 1px solid var(--mir-line);
  background: transparent;
  box-shadow: none;
}

.admin-breadcrumb {
  color: var(--mir-muted);
  font-size: 12px;
}

.admin-page-title-row h2 {
  color: var(--mir-text);
  font-size: 25px;
  letter-spacing: 0;
}

.admin-page-title-row p {
  color: var(--mir-muted);
}

.admin-section-tabbar {
  margin-top: 18px;
  padding: 0;
  border: 1px solid var(--mir-line);
  border-radius: 6px;
  background: var(--mir-paper);
  box-shadow: none;
}

.admin-section-nav-stack {
  gap: 0;
}

.admin-section-link {
  min-height: 50px;
  border: 0;
  border-right: 1px solid var(--mir-line);
  border-radius: 0;
  color: #425159;
  background: transparent;
}

.admin-section-link.active {
  color: var(--mir-navy);
  background: #fcfaf5;
  box-shadow: inset 0 -3px 0 var(--mir-gold);
}

.admin-section-main {
  margin-top: 18px;
}

.module-workspace {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.module-page-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--mir-line);
}

.module-page-heading {
  min-width: 0;
}

.module-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--mir-muted);
  font-size: 11px;
  font-weight: 750;
}

.module-breadcrumb b {
  color: var(--mir-gold);
  font-size: 15px;
}

.module-page-heading h1 {
  margin: 0;
  color: var(--mir-text);
  font-size: 27px;
  letter-spacing: 0;
}

.module-page-heading p {
  margin: 6px 0 0;
  color: var(--mir-muted);
  font-size: 13px;
}

.module-page-label {
  padding: 8px 10px;
  border: 1px solid #dbc498;
  border-radius: 4px;
  color: #806025;
  background: #fffaf0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.module-section-tabs {
  overflow-x: auto;
  border-bottom: 1px solid var(--mir-line);
  background: var(--mir-paper);
}

.module-section-tablist {
  display: flex;
  min-width: max-content;
}

.module-section-tab {
  display: grid;
  min-width: 152px;
  min-height: 64px;
  align-content: center;
  gap: 3px;
  padding: 0 18px;
  border: 0;
  border-right: 1px solid var(--mir-line);
  border-radius: 0;
  color: #45545b;
  background: transparent;
  text-align: left;
}

.module-section-tab strong {
  font-size: 13px;
}

.module-section-tab small {
  color: #879399;
  font-size: 10px;
  font-weight: 500;
}

.module-section-tab.active {
  color: var(--mir-navy);
  background: #fffdf8;
  box-shadow: inset 0 -3px 0 var(--mir-gold);
}

.module-page-content,
.module-section-pane {
  min-width: 0;
}

.module-page-content > .split,
.module-page-content > .split-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
  gap: 16px;
  align-items: start;
}

.module-page-content .panel,
.module-page-content .section {
  border-color: var(--mir-line);
  border-radius: 7px;
  box-shadow: none;
}

.module-page-content .panel-head {
  padding: 0 0 14px;
  border-bottom-color: var(--mir-line);
}

.module-page-content .panel-head h2,
.module-page-content .panel-head h3 {
  color: var(--mir-text);
  font-size: 18px;
}

.module-page-content .panel-head p {
  color: var(--mir-muted);
}

.module-page-content .field input,
.module-page-content .field select,
.module-page-content .field textarea {
  border-color: #d4dcdf;
  border-radius: 5px;
  background: #fff;
}

.module-page-content .btn.primary {
  border-radius: 5px;
  background: var(--mir-navy);
}

.module-page-content .btn.primary:hover {
  background: var(--mir-navy-soft);
}

.module-page-content .btn.ghost {
  border-radius: 5px;
}

.module-page-content .table-wrap {
  border-color: var(--mir-line);
  border-radius: 5px;
  box-shadow: none;
}

.module-page-content table thead th {
  color: #46555c;
  background: #f6f8f8;
}

@media (min-width: 1281px) {
  .module-page-content form.panel.section,
  .module-page-content form.panel.workspace-form {
    display: block;
    padding: 20px;
    overflow: visible;
    border: 1px solid var(--mir-line);
    background: var(--mir-paper);
  }

  .module-page-content form.panel.section > .panel-head,
  .module-page-content form.panel.workspace-form > .panel-head {
    display: block;
    min-height: 0;
    margin: 0 0 18px;
    padding: 0 0 14px;
    border: 0;
    border-bottom: 1px solid var(--mir-line);
    background: transparent;
  }

  .module-page-content form.panel.section > .panel-head::before,
  .module-page-content form.panel.workspace-form > .panel-head::before {
    display: none;
  }

  .module-page-content form.panel.section > .field-grid,
  .module-page-content form.panel.section > .segmented,
  .module-page-content form.panel.section > .offer-builder,
  .module-page-content form.panel.section > .notice,
  .module-page-content form.panel.section > .toolbar,
  .module-page-content form.panel.section > button,
  .module-page-content form.panel.workspace-form > .field-grid,
  .module-page-content form.panel.workspace-form > .segmented,
  .module-page-content form.panel.workspace-form > .offer-builder,
  .module-page-content form.panel.workspace-form > .notice,
  .module-page-content form.panel.workspace-form > .toolbar,
  .module-page-content form.panel.workspace-form > button {
    margin-right: 0;
  }
}

.customer-detail-page {
  display: grid;
  gap: 18px;
}

.customer-detail-pagebar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  min-height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.customer-detail-pagebar::after {
  content: "Müşteriler  /  Müşteri kartı";
  order: -1;
  color: var(--mir-muted);
  font-size: 12px;
}

.customer-detail-pagebar > div {
  margin-right: auto;
}

.customer-detail-pagebar .eyebrow {
  display: none;
}

.customer-detail-pagebar strong {
  color: var(--mir-text);
  font-size: 25px;
  letter-spacing: 0;
}

.customer-back-button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--mir-line);
  border-radius: 5px;
  color: var(--mir-navy);
  background: var(--mir-paper);
  box-shadow: none;
}

.customer-record-pane {
  min-width: 0;
}

.client-dossier {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.client-identity {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid var(--mir-line);
  border-radius: 8px;
  background: var(--mir-paper);
}

.client-identity-mark {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border: 1px solid #e4d0a7;
  border-radius: 6px;
  color: #8f6828;
  background: #fbf7ec;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  font-weight: 700;
}

.client-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.client-title-row h2 {
  margin: 0;
  color: #111e25;
  font-size: clamp(23px, 2vw, 30px);
  letter-spacing: 0;
}

.client-title-row .status {
  border-radius: 4px;
}

.client-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px 18px;
  margin-top: 16px;
}

.client-contact-grid span {
  display: grid;
  gap: 3px;
  min-width: 0;
  color: #35434a;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.client-contact-grid b {
  color: #8a969a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.client-address {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid #edf0f0;
  color: var(--mir-muted);
  font-size: 13px;
  line-height: 1.45;
}

.client-location-box {
  align-self: stretch;
  display: grid;
  align-content: start;
  gap: 8px;
  padding-left: 20px;
  border-left: 1px solid var(--mir-line);
}

.client-location-box label {
  color: var(--mir-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.client-location-box select {
  width: 100%;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid #ccd5d7;
  border-radius: 5px;
  color: var(--mir-text);
  background: #fff;
}

.client-location-box p {
  min-height: 36px;
  margin: 2px 0 0;
  color: var(--mir-muted);
  font-size: 12px;
  line-height: 1.45;
}

.client-header-tools {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.client-outline-action,
.client-icon-action {
  min-height: 36px;
  border: 1px solid #ccd5d7;
  border-radius: 5px;
  color: var(--mir-navy);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.client-outline-action {
  flex: 1;
  padding: 0 12px;
}

.client-icon-action {
  width: 48px;
}

.client-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.client-kpi {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  min-height: 112px;
  padding: 17px;
  border: 1px solid var(--mir-line);
  border-radius: 7px;
  color: var(--mir-text);
  background: var(--mir-paper);
  text-align: left;
  box-shadow: none;
}

.client-kpi:hover {
  border-color: #c9a667;
  background: #fffdf9;
}

.client-kpi-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #8a6528;
  background: var(--mir-gold-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
}

.client-kpi:nth-child(2) .client-kpi-mark {
  color: #0b5960;
  background: #e2f0ef;
}

.client-kpi:nth-child(3) .client-kpi-mark {
  color: #294f76;
  background: #e8f0fb;
}

.client-kpi:nth-child(4) .client-kpi-mark {
  color: #1e7458;
  background: #e5f3eb;
}

.client-kpi > span:last-child {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
}

.client-kpi small,
.client-kpi em {
  color: var(--mir-muted);
  font-size: 11px;
  font-style: normal;
}

.client-kpi strong {
  color: #172a33;
  font-size: 23px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.client-workspace-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 278px;
  gap: 16px;
  align-items: start;
}

.client-workspace-main {
  min-width: 0;
  border: 1px solid var(--mir-line);
  border-radius: 8px;
  background: var(--mir-paper);
}

.client-tabbar {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid var(--mir-line);
  background: #fff;
}

.client-tab {
  flex: 0 0 auto;
  min-height: 54px;
  padding: 0 16px;
  border: 0;
  border-right: 1px solid #edf0f0;
  border-radius: 0;
  color: #526067;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.client-tab.active {
  color: var(--mir-navy);
  background: #fffdf8;
  box-shadow: inset 0 -3px 0 var(--mir-gold);
}

.client-tab-content {
  min-width: 0;
  padding: 18px;
}

.client-tab-content > .panel,
.client-tab-content > .section {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.client-tab-content .panel-head {
  margin: 0 0 16px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--mir-line);
}

.client-tab-content .panel-head h2,
.client-tab-content .panel-head h3 {
  color: var(--mir-text);
  font-size: 18px;
}

.client-tab-content .panel-head p {
  color: var(--mir-muted);
}

.client-tab-content .table-wrap {
  border: 1px solid var(--mir-line);
  border-radius: 5px;
  box-shadow: none;
}

.client-tab-content table thead th {
  color: #425159;
  background: #f6f8f8;
  font-size: 10px;
}

.client-tab-content table td {
  color: #314049;
}

.client-tab-content table tbody tr:nth-child(even) td {
  background: #fbfcfc;
}

.client-action-column {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 84px;
}

.client-action-panel,
.client-info-panel,
.client-note-panel {
  border: 1px solid var(--mir-line);
  border-radius: 7px;
  background: var(--mir-paper);
}

.client-aside-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 15px 12px;
  border-bottom: 1px solid #edf0f0;
}

.client-aside-heading h3 {
  margin: 0;
  color: var(--mir-text);
  font-size: 14px;
}

.client-aside-heading span {
  color: var(--mir-muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.client-action-panel button {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  border: 0;
  border-bottom: 1px solid #edf0f0;
  color: #2d3e46;
  background: #fff;
  text-align: left;
  font-size: 13px;
  font-weight: 750;
}

.client-action-panel button:last-child {
  border-bottom: 0;
}

.client-action-panel button:hover {
  color: var(--mir-navy);
  background: #fffaf0;
}

.client-action-panel button b {
  color: var(--mir-gold);
  font-size: 19px;
  font-weight: 500;
}

.client-info-panel dl {
  display: grid;
  margin: 0;
}

.client-info-panel dl > div {
  display: grid;
  gap: 4px;
  padding: 12px 15px;
  border-bottom: 1px solid #edf0f0;
}

.client-info-panel dl > div:last-child {
  border-bottom: 0;
}

.client-info-panel dt {
  color: var(--mir-muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.client-info-panel dd {
  margin: 0;
  color: #34434a;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.client-note-panel p {
  min-height: 72px;
  margin: 0;
  padding: 14px 15px;
  color: #56646a;
  font-size: 12px;
  line-height: 1.55;
}

.client-delete-link {
  margin: 0 15px 15px;
  padding: 0;
  border: 0;
  color: #ba4037;
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

@media (max-width: 1280px) {
  .client-identity {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .client-identity-mark {
    width: 72px;
    height: 72px;
  }

  .client-location-box {
    grid-column: 1 / -1;
    grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: center;
    padding: 15px 0 0;
    border-top: 1px solid var(--mir-line);
    border-left: 0;
  }

  .client-location-box p {
    min-height: 0;
  }

  .client-header-tools {
    margin-top: 0;
  }

  .client-workspace-layout {
    grid-template-columns: 1fr;
  }

  .client-action-column {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .pro-sidebar {
    display: none;
  }

  .pro-content {
    padding: 18px;
  }

  .client-contact-grid,
  .client-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-action-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .pro-topbar {
    padding: 0 14px;
  }

  .pro-content {
    padding: 14px;
  }

  .customer-detail-pagebar {
    align-items: start;
    flex-direction: column;
  }

  .customer-detail-pagebar::after {
    order: 0;
  }

  .client-identity {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }

  .client-identity-mark {
    width: 58px;
    height: 58px;
    font-size: 28px;
  }

  .client-contact-grid,
  .client-kpi-strip,
  .client-location-box {
    grid-template-columns: 1fr;
  }

  .client-location-box {
    padding-top: 14px;
  }

  .client-header-tools {
    margin-top: 0;
  }

  .client-tab-content {
    padding: 14px;
  }
}

/* Stock catalogue pagination and dynamic filters v71 */
.stock-groups-panel {
  padding: 0;
  overflow: hidden;
}

.stock-groups-heading {
  align-items: center;
  margin: 0;
  padding: 18px 20px;
  border-bottom: 1px solid var(--mir-line);
}

.stock-group-count {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 7px 10px;
  border: 1px solid #e0d0ad;
  border-radius: 4px;
  color: #765c2e;
  background: #fffaf0;
  font-size: 11px;
  white-space: nowrap;
}

.stock-group-count strong {
  color: #55401d;
  font-size: 15px;
}

.stock-group-controls {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(220px, 290px) auto;
  gap: 12px;
  align-items: end;
  padding: 14px 20px;
  border-bottom: 1px solid var(--mir-line);
  background: #f8faf9;
}

.stock-group-search,
.stock-group-filter {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.stock-group-search > span,
.stock-group-filter > span {
  color: #5f6d73;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.stock-group-search input,
.stock-group-filter select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #cfd8da;
  border-radius: 5px;
  color: var(--mir-text);
  background: #fff;
}

.stock-group-search .inline-field-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.stock-group-search .btn,
.stock-group-clear {
  min-height: 40px;
}

.stock-groups-table-wrap {
  margin: 0;
  width: 100%;
  border: 0;
  border-radius: 0;
}

.stock-groups-table {
  min-width: 760px;
}

.stock-groups-table th:nth-child(1) {
  width: auto;
}

.stock-groups-table th:nth-child(2) {
  width: 180px;
}

.stock-groups-table th:nth-child(3),
.stock-groups-table th:nth-child(4) {
  width: 92px;
  text-align: center;
}

.stock-groups-table th:nth-child(5) {
  width: 150px;
}

.stock-groups-table td:nth-child(3),
.stock-groups-table td:nth-child(4) {
  text-align: center;
  font-weight: 800;
}

.stock-groups-table tbody tr:hover td {
  background: #fffaf0;
}

.clickable-stock-row {
  cursor: pointer;
}

.clickable-stock-row:focus-within td,
.clickable-stock-row:hover td {
  background: #f7fbfa;
}

.sortable-table-heading {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 28px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.sortable-table-heading:hover,
.sortable-table-heading:focus-visible,
.sortable-table-heading.active {
  color: var(--mir-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  outline: none;
}

.systems-directory-panel {
  padding: 0;
  overflow: hidden;
}

.systems-directory-heading {
  align-items: center;
  margin: 0;
  padding: 18px 20px;
  border-bottom: 1px solid var(--mir-line);
}

.systems-directory-list {
  display: grid;
  gap: 0;
}

.systems-directory-controls {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(170px, 220px) minmax(170px, 220px) auto;
  gap: 12px;
  align-items: end;
  padding: 14px 20px;
  border-bottom: 1px solid var(--mir-line);
  background: #f8faf9;
}

.systems-directory-search,
.systems-directory-size {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.systems-directory-search > span,
.systems-directory-size > span {
  color: #5f6d73;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.systems-directory-search input,
.systems-directory-size select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #cfd8da;
  border-radius: 5px;
  color: var(--mir-text);
  background: #fff;
}

.systems-customer-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.8fr) repeat(5, minmax(86px, 0.7fr)) minmax(130px, 0.9fr);
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 15px 20px;
  border: 0;
  border-bottom: 1px solid var(--mir-line);
  color: var(--mir-text);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.systems-customer-row:hover,
.systems-customer-row:focus-visible {
  background: #f6fbfa;
  outline: none;
}

.systems-customer-main,
.systems-customer-stat,
.systems-customer-meta {
  display: grid;
  gap: 4px;
}

.systems-customer-main strong {
  color: var(--mir-navy);
  font-size: 14px;
  letter-spacing: 0;
}

.systems-customer-main small,
.systems-customer-stat small,
.systems-customer-meta small {
  color: var(--mir-muted);
  font-size: 11px;
}

.systems-customer-stat b,
.systems-customer-meta strong {
  color: var(--mir-text);
  font-size: 16px;
}

.systems-customer-stat {
  padding-left: 12px;
  border-left: 1px solid #e4ecec;
}

.systems-directory-pagination {
  border-top: 0;
}

.stock-type-badge {
  display: inline-block;
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid #d7e1e2;
  border-radius: 4px;
  color: #38525b;
  background: #f3f7f7;
  font-size: 10px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.stock-pagination {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto minmax(110px, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px 20px;
  border-top: 1px solid var(--mir-line);
  color: var(--mir-muted);
  background: #fff;
  font-size: 11px;
}

.stock-pagination > span:last-child {
  text-align: right;
}

.stock-pagination-pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}

.stock-pagination-pages button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 1px solid #d2dadd;
  border-radius: 4px;
  color: #405159;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.stock-pagination-pages button:hover:not(:disabled) {
  border-color: var(--mir-gold);
  color: var(--mir-navy);
}

.stock-pagination-pages button.active {
  border-color: var(--mir-navy);
  color: #fff;
  background: var(--mir-navy);
}

.stock-pagination-pages button:disabled {
  opacity: 0.38;
  cursor: default;
}

@media (max-width: 900px) {
  .stock-group-controls {
    grid-template-columns: 1fr 1fr;
  }

  .systems-customer-row {
    grid-template-columns: 1fr 1fr;
  }

  .systems-directory-controls {
    grid-template-columns: 1fr 1fr;
  }

  .systems-customer-main,
  .systems-customer-meta {
    grid-column: 1 / -1;
  }

  .stock-group-clear {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .stock-pagination {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .stock-pagination > span:last-child {
    text-align: center;
  }
}

@media (max-width: 620px) {
  .stock-groups-heading {
    align-items: flex-start;
  }

  .stock-group-controls {
    grid-template-columns: 1fr;
    padding: 12px 14px;
  }

  .systems-directory-controls {
    grid-template-columns: 1fr;
    padding: 12px 14px;
  }

  .stock-group-clear {
    grid-column: auto;
  }

  .stock-pagination {
    padding: 12px 14px;
  }
}

/* Full-width offer creation and complete stock catalogue v72 */
.offer-create-workspace {
  display: block;
  min-width: 0;
}

.offer-create-workspace > #offerForm {
  width: 100%;
  max-width: none;
}

.module-section-pane[data-module-section="create"] > .split,
.module-section-pane[data-module-section="create"] > .split-workspace {
  display: block;
}

.module-section-pane[data-module-section="create"] > .split > form,
.module-section-pane[data-module-section="create"] > .split-workspace > form {
  width: 100%;
  max-width: none;
}

.module-section-pane[data-module-section="create"] > .split > :not(form),
.module-section-pane[data-module-section="create"] > .split-workspace > :not(form) {
  display: none;
}

.offer-create-workspace .offer-builder {
  width: 100%;
  margin-top: 18px;
}

.offer-create-workspace .offer-catalog-summary {
  display: none;
}

.offer-create-workspace .offer-catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 520px;
  padding-right: 6px;
  overflow-y: auto;
  overflow-x: hidden;
}

.offer-create-workspace .offer-catalog-card {
  grid-template-columns: 62px minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 96px;
  padding: 12px;
}

.offer-create-workspace .offer-catalog-card > div {
  min-width: 0;
}

.offer-create-workspace .offer-catalog-card strong,
.offer-create-workspace .offer-catalog-card span,
.offer-create-workspace .offer-catalog-card small {
  overflow-wrap: anywhere;
  word-break: normal;
}

.offer-create-workspace .offer-catalog-card > .status {
  max-width: 118px;
  text-align: center;
  white-space: normal;
}

@media (max-width: 980px) {
  .offer-create-workspace .offer-catalog {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .offer-create-workspace .offer-catalog-card {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .offer-create-workspace .offer-catalog-card > .status {
    grid-column: 2;
    justify-self: start;
  }
}

/* v74 usability stabilization: clean operations layout, free-entry menus, PDF safety */
:root {
  --ux-ink: #092632;
  --ux-ink-2: #123949;
  --ux-gold: #b98b42;
  --ux-gold-soft: #fbf4e7;
  --ux-bg: #f4f6f6;
  --ux-panel: #ffffff;
  --ux-line: #d9e0e2;
  --ux-text: #17252d;
  --ux-muted: #65747a;
  --ux-ok: #137a5c;
}

body,
button,
input,
select,
textarea {
  font-family: "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

.app-shell {
  grid-template-columns: 232px minmax(0, 1fr);
  background: var(--ux-bg);
}

.pro-sidebar {
  background: linear-gradient(180deg, #061d28, var(--ux-ink));
  box-shadow: none;
}

.pro-sidebar-brand {
  min-height: 76px;
  grid-template-columns: 54px minmax(0, 1fr);
  padding: 13px 16px;
  background: #071a24;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
}

.pro-sidebar-brand img {
  width: 50px;
  height: 46px;
  border-radius: 5px;
}

.pro-sidebar-brand strong {
  color: #f2d59a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.05;
}

.pro-sidebar-brand span,
.pro-sidebar-user span,
.pro-sidebar-user small {
  color: rgba(255, 255, 255, 0.66);
  font-size: 10px;
}

.pro-nav {
  gap: 1px;
  padding: 10px 0;
}

.pro-nav-item {
  min-height: 44px;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  padding: 7px 16px;
  border: 0;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.pro-nav-item:hover,
.pro-nav-item.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.pro-nav-item.active {
  box-shadow: inset 4px 0 0 var(--ux-gold);
}

.pro-nav-icon,
.pro-nav-item.active .pro-nav-icon {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 4px;
  color: #f4d9a2;
  background: rgba(255, 255, 255, 0.07);
  font-size: 10px;
}

.pro-main {
  min-width: 0;
  padding: 0;
  color: var(--ux-text);
  background: var(--ux-bg);
}

.pro-topbar {
  position: sticky;
  top: 0;
  z-index: 70;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  padding: 0 24px;
  border: 0;
  border-bottom: 1px solid var(--ux-line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 10px rgba(11, 35, 44, 0.05);
}

.pro-topbar-left,
.pro-command {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pro-search {
  width: min(520px, 42vw);
}

.pro-search input {
  height: 40px;
  border: 1px solid #ced8db;
  border-radius: 6px;
  background: #fff;
}

.pro-content {
  width: 100%;
  max-width: none;
  display: grid;
  gap: 18px;
  padding: 22px 24px 44px;
}

.module-page-header {
  min-height: auto;
  padding: 0 0 15px;
  border-bottom: 1px solid var(--ux-line);
}

.module-page-heading h1,
.admin-page-title-row h2,
.customer-detail-pagebar strong {
  color: var(--ux-text);
  font-size: 24px;
  line-height: 1.16;
  letter-spacing: 0;
}

.module-page-heading p,
.admin-page-title-row p,
.panel-head p,
.muted,
small {
  color: var(--ux-muted);
}

.module-section-tabs,
.admin-section-tabbar {
  border: 1px solid var(--ux-line);
  border-radius: 8px;
  background: var(--ux-panel);
  overflow-x: auto;
}

.module-section-tab,
.admin-section-link {
  min-height: 52px;
  border-right: 1px solid var(--ux-line);
  border-radius: 0;
  color: #405158;
  background: transparent;
}

.module-section-tab.active,
.admin-section-link.active {
  color: var(--ux-ink);
  background: var(--ux-gold-soft);
  box-shadow: inset 0 -3px 0 var(--ux-gold);
}

.module-page-content,
.module-section-pane {
  min-width: 0;
}

.module-page-content .panel,
.module-page-content .section,
.pro-content .panel,
.pro-content .card,
.pro-content .metric,
.workspace-panel,
.customer-directory-page,
.customer-record-pane .customer-dossier,
.client-identity,
.client-kpi,
.client-workspace-main,
.client-action-panel,
.client-info-panel,
.client-note-panel {
  border: 1px solid var(--ux-line);
  border-radius: 8px;
  background: var(--ux-panel);
  box-shadow: none;
}

.module-page-content .panel,
.pro-content .panel,
.pro-content .section {
  padding: 20px;
}

.panel-head,
.module-page-content .panel-head,
.client-tab-content .panel-head {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ux-line);
}

.panel-head h2,
.panel-head h3,
.module-page-content .panel-head h2,
.module-page-content .panel-head h3 {
  color: var(--ux-text);
  font-size: 18px;
  line-height: 1.2;
}

.field label,
.pro-content .field label,
th,
.mini-label {
  color: #405158;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.field input,
.field select,
.field textarea,
.pro-content input,
.pro-content select,
.pro-content textarea,
.module-page-content .field input,
.module-page-content .field select,
.module-page-content .field textarea {
  border: 1px solid #ced8db;
  border-radius: 6px;
  background: #fff;
  color: var(--ux-text);
  box-shadow: none;
}

.field input,
.field select,
.pro-content input,
.pro-content select {
  min-height: 42px;
}

.field textarea,
.pro-content textarea {
  min-height: 102px;
  line-height: 1.45;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.pro-content input:focus,
.pro-content select:focus,
.pro-content textarea:focus {
  border-color: var(--ux-gold);
  box-shadow: 0 0 0 3px rgba(185, 139, 66, 0.14);
}

.btn,
.pro-content .btn,
.pro-content button {
  border-radius: 6px;
  font-weight: 800;
}

.btn.primary,
.pro-content .btn.primary,
.module-page-content .btn.primary,
.customer-open-button {
  border-color: var(--ux-ink);
  background: var(--ux-ink);
  color: #fff;
}

.btn.primary:hover,
.module-page-content .btn.primary:hover,
.customer-open-button:hover {
  background: var(--ux-ink-2);
}

.btn.ghost,
.pro-content .btn.ghost {
  border-color: #cfd8db;
  background: #fff;
  color: var(--ux-text);
}

.segmented,
.customer-detail-tabs,
.client-tabbar {
  border-color: var(--ux-line);
  background: #f8faf9;
}

.choice-pill.active,
.customer-detail-tab.active,
.client-tab.active,
.segmented label:has(input:checked) {
  color: #fff;
  border-color: var(--ux-ok);
  background: var(--ux-ok);
}

.table-wrap,
.invoice-detail-table,
.client-tab-content .table-wrap {
  border: 1px solid var(--ux-line);
  border-radius: 8px;
  overflow: auto;
  box-shadow: none;
}

.table-wrap table,
.pro-content table,
.module-page-content table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.table-wrap th,
.pro-content table th,
.module-page-content table th,
.customer-directory-table th {
  color: #34454c !important;
  background: #eef2f3 !important;
  border-color: var(--ux-line) !important;
  white-space: nowrap;
}

.table-wrap td,
.pro-content table td,
.module-page-content table td,
.customer-directory-table td {
  border-color: #e3e8ea;
}

.table-wrap tbody tr:nth-child(even) td,
.module-page-content table tbody tr:nth-child(even) td,
.customer-directory-table tbody tr:nth-child(even) td {
  background: #fafbfb;
}

.customer-directory-page {
  padding: 0;
  overflow: hidden;
}

.customer-directory-titlebar {
  color: #fff;
  background: var(--ux-ink);
  border-bottom: 3px solid var(--ux-gold);
}

.customer-directory-toolbar {
  background: #f8faf9;
}

.customer-directory-table {
  min-width: 1315px;
}

.customer-directory-table th {
  background: #e9eff1 !important;
}

.customer-open-button,
.customer-report-button {
  min-height: 34px;
  border-radius: 6px;
}

.client-identity {
  grid-template-columns: 82px minmax(0, 1fr) 290px;
}

.client-kpi-strip {
  gap: 12px;
}

.client-kpi {
  min-height: 100px;
}

.client-workspace-layout {
  grid-template-columns: minmax(0, 1fr) 286px;
}

.notice {
  border: 1px solid #ead7b0;
  border-left: 4px solid var(--ux-gold);
  border-radius: 8px;
  background: #fff8ea;
  color: #56452b;
}

.autocomplete-menu {
  z-index: 9999;
  max-height: min(300px, 44vh);
  overflow-y: auto;
  border: 1px solid #cbd7d9;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(9, 38, 50, 0.16);
}

.autocomplete-option,
.autocomplete-empty {
  min-height: 38px;
  padding: 9px 12px;
  color: var(--ux-text);
  background: #fff;
}

.autocomplete-option:hover,
.autocomplete-option.active {
  color: var(--ux-ink);
  background: #eef7f4;
}

.offer-create-workspace .offer-catalog {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.offer-create-workspace .offer-catalog-card {
  border-radius: 8px;
  background: #fff;
}

.pdf-modal {
  padding: 18px;
  background: rgba(9, 24, 30, 0.72);
}

.pdf-toolbar {
  width: min(210mm, calc(100vw - 36px));
  max-width: calc(100vw - 36px);
}

.sheet-card,
.pdf-sheet {
  max-width: calc(100vw - 36px);
}

.pdf-page,
.offer-page,
.service-pdf-modern {
  width: 210mm;
  max-width: calc(100vw - 36px);
  box-sizing: border-box;
  overflow: hidden;
}

.pdf-page *,
.offer-page *,
.service-pdf-modern * {
  box-sizing: border-box;
}

.pdf-table,
.offer-page .offer-table,
.service-pdf-table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.pdf-table th,
.pdf-table td,
.offer-page .offer-table th,
.offer-page .offer-table td,
.service-pdf-table th,
.service-pdf-table td {
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.offer-page .offer-table th:nth-child(1),
.offer-page .offer-table td:nth-child(1) {
  width: 7%;
}

.offer-page .offer-table th:nth-child(2),
.offer-page .offer-table td:nth-child(2) {
  width: auto;
}

.offer-page .offer-table th:nth-child(3),
.offer-page .offer-table td:nth-child(3) {
  width: 8%;
}

.offer-page .offer-table th:nth-child(4),
.offer-page .offer-table td:nth-child(4) {
  width: 13%;
}

.offer-page .offer-table th:nth-child(5),
.offer-page .offer-table td:nth-child(5) {
  width: 10%;
}

.offer-page .offer-table th:nth-child(6),
.offer-page .offer-table td:nth-child(6) {
  width: 12%;
}

.offer-page .offer-item-name,
.offer-page .offer-item-meta,
.offer-page .offer-item-desc,
.doc-card p,
.pdf-intro p {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.offer-page .offer-item-desc {
  display: block;
  max-height: none;
  overflow: visible;
}

@media print {
  @page {
    size: A4;
    margin: 8mm;
  }

  .pdf-modal,
  .sheet-preview {
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
  }

  .sheet-card,
  .pdf-sheet {
    width: auto !important;
    max-width: none !important;
  }

  .pdf-page,
  .offer-page,
  .service-pdf-modern {
    width: 194mm !important;
    max-width: 194mm !important;
    min-height: auto;
    padding: 6mm !important;
    overflow: visible !important;
  }

  .offer-page .offer-table {
    font-size: 8.8px;
  }
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .pro-sidebar {
    position: static;
    height: auto;
  }

  .pro-nav {
    display: flex;
    overflow-x: auto;
  }

  .pro-nav-item {
    min-width: 132px;
  }

  .pro-topbar,
  .pro-command {
    flex-wrap: wrap;
  }

  .pro-search {
    width: min(100%, 620px);
  }

  .client-identity,
  .client-workspace-layout,
  .module-page-content > .split,
  .module-page-content > .split-workspace {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .pro-content {
    padding: 14px 12px 82px;
  }

  .pro-topbar {
    padding: 10px 12px;
  }

  .module-page-content .panel,
  .pro-content .panel,
  .pro-content .section {
    padding: 14px;
  }
}

/* v75 operational reset: compact, readable management UI */
:root {
  --ops-navy: #082534;
  --ops-gold: #b98b42;
  --ops-gold-soft: #f5ebd7;
  --ops-bg: #f3f6f5;
  --ops-card: #ffffff;
  --ops-line: #d9e2e3;
  --ops-text: #10242d;
  --ops-muted: #607078;
  --ops-ok: #0f7a61;
  --ops-danger: #c63d35;
}

html,
body {
  background: var(--ops-bg) !important;
  color: var(--ops-text) !important;
  font-family: "Segoe UI", Arial, sans-serif !important;
  letter-spacing: 0 !important;
}

.app-shell {
  min-height: 100vh;
  display: grid !important;
  grid-template-columns: 232px minmax(0, 1fr) !important;
  gap: 0 !important;
  background: var(--ops-bg) !important;
}

.pro-sidebar {
  position: sticky !important;
  top: 0 !important;
  height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  padding: 16px 12px !important;
  overflow-y: auto !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: linear-gradient(180deg, #071f2d 0%, #082534 62%, #061820 100%) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.pro-sidebar::after {
  display: none !important;
}

.pro-sidebar-brand {
  min-height: auto !important;
  display: grid !important;
  grid-template-columns: 52px minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: center !important;
  padding: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

.pro-sidebar-brand img {
  width: 52px !important;
  height: 52px !important;
  border-radius: 6px !important;
  object-fit: contain !important;
  background: #fff !important;
}

.pro-sidebar-brand strong {
  color: #f7d897 !important;
  font-size: 15px !important;
  line-height: 1.15 !important;
}

.pro-sidebar-brand span,
.pro-sidebar-user span,
.pro-sidebar-user small,
.pro-sidebar-footer small {
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 10px !important;
  letter-spacing: .04em !important;
}

.pro-sidebar-user {
  padding: 10px 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

.pro-sidebar-user strong {
  color: #fff !important;
  font-size: 14px !important;
}

.pro-nav,
.pro-sidebar-nav {
  display: grid !important;
  gap: 4px !important;
  overflow: visible !important;
}

.pro-nav-item,
.pro-sidebar-nav .nav-btn,
.pro-sidebar-footer .nav-btn {
  min-height: 42px !important;
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 0 10px !important;
  border: 0 !important;
  border-left: 3px solid transparent !important;
  border-radius: 6px !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.9) !important;
  text-align: left !important;
}

.pro-nav-item.active,
.pro-nav-item:hover,
.pro-sidebar-nav .nav-btn.active,
.pro-sidebar-nav .nav-btn:hover {
  border-left-color: var(--ops-gold) !important;
  background: rgba(255, 255, 255, 0.09) !important;
  color: #fff !important;
}

.nav-icon,
.pro-nav-item .nav-icon {
  width: 30px !important;
  height: 30px !important;
  border-radius: 6px !important;
  background: rgba(185, 139, 66, 0.18) !important;
  color: #f4d28a !important;
  font-size: 12px !important;
}

.pro-main {
  min-width: 0 !important;
  padding: 0 !important;
  background: var(--ops-bg) !important;
}

.pro-topbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 30 !important;
  min-height: 58px !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 10px 24px !important;
  border-bottom: 1px solid var(--ops-line) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 6px 18px rgba(8, 37, 52, 0.06) !important;
}

.pro-search {
  width: min(620px, 50vw) !important;
}

.pro-search input,
.field input,
.field select,
.field textarea,
.pro-content input,
.pro-content select,
.pro-content textarea {
  border: 1px solid #cbd8da !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: var(--ops-text) !important;
  font-family: "Segoe UI", Arial, sans-serif !important;
  font-size: 14px !important;
  box-shadow: none !important;
}

.field textarea,
.pro-content textarea {
  line-height: 1.5 !important;
  resize: vertical !important;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.pro-search input:focus {
  border-color: var(--ops-gold) !important;
  box-shadow: 0 0 0 3px rgba(185, 139, 66, 0.16) !important;
  outline: none !important;
}

.pro-content {
  width: 100% !important;
  max-width: none !important;
  display: grid !important;
  gap: 18px !important;
  padding: 22px 26px 44px !important;
}

.module-workspace,
.module-page-content,
.module-section-pane,
.customer-admin-shell,
#customerAdminRoot,
.customer-detail-page,
.customer-record-pane {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

.module-page-header {
  min-height: auto !important;
  display: flex !important;
  align-items: end !important;
  justify-content: space-between !important;
  gap: 14px !important;
  padding: 0 0 14px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ops-line) !important;
  background: transparent !important;
}

.module-page-heading h1 {
  margin: 0 !important;
  color: var(--ops-text) !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
}

.module-page-heading p {
  margin-top: 4px !important;
  color: var(--ops-muted) !important;
  font-size: 13px !important;
}

.module-breadcrumb,
.module-page-label {
  color: var(--ops-gold) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: .06em !important;
}

.module-section-tabs,
.customer-detail-tabs,
.admin-section-tabbar {
  display: flex !important;
  gap: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--ops-line) !important;
  border-radius: 6px !important;
  background: #fff !important;
  overflow-x: auto !important;
}

.module-section-tab,
.customer-detail-tab,
.admin-section-link {
  min-height: 44px !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-right: 1px solid var(--ops-line) !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #394b54 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

.module-section-tab.active,
.customer-detail-tab.active,
.admin-section-link.active {
  color: var(--ops-navy) !important;
  background: var(--ops-gold-soft) !important;
  box-shadow: inset 0 -3px 0 var(--ops-gold) !important;
}

.module-page-content .panel,
.module-page-content .section,
.pro-content .panel,
.pro-content .section,
.workspace-panel,
.customer-directory-page,
.customer-record-pane .customer-dossier,
.client-identity,
.client-kpi,
.client-workspace-main,
.client-action-panel,
.client-info-panel,
.client-note-panel {
  border: 1px solid var(--ops-line) !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 10px 24px rgba(8, 37, 52, 0.05) !important;
}

.module-page-content .panel,
.module-page-content .section,
.pro-content .panel,
.pro-content .section {
  padding: 18px !important;
}

.panel-head,
.module-page-content .panel-head,
.client-tab-content .panel-head {
  margin: 0 0 14px !important;
  padding: 0 0 12px !important;
  border-bottom: 1px solid var(--ops-line) !important;
}

.panel-head h2,
.panel-head h3,
.module-page-content .panel-head h2,
.module-page-content .panel-head h3 {
  color: var(--ops-text) !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

.panel-head p,
.muted,
small {
  color: var(--ops-muted) !important;
}

.field-grid {
  gap: 14px !important;
}

.btn,
.pro-content .btn,
.pro-content button,
.customer-open-button,
.customer-report-button {
  min-height: 38px !important;
  border-radius: 6px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

.btn.primary,
.pro-content .btn.primary,
.module-page-content .btn.primary,
.customer-open-button {
  border-color: var(--ops-navy) !important;
  background: var(--ops-navy) !important;
  color: #fff !important;
}

.btn.ghost,
.pro-content .btn.ghost,
.customer-report-button {
  border: 1px solid #cbd8da !important;
  background: #fff !important;
  color: var(--ops-text) !important;
}

.btn.danger,
.btn.ghost.danger,
.danger {
  color: var(--ops-danger) !important;
}

.table-wrap,
.customer-table-wrap,
.stock-groups-table-wrap {
  width: 100% !important;
  overflow: auto !important;
  border: 1px solid var(--ops-line) !important;
  border-radius: 6px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.table-wrap table,
.customer-directory-table,
.stock-groups-table,
.module-page-content table {
  width: 100% !important;
  border-collapse: collapse !important;
  background: #fff !important;
}

.customer-directory-table,
.stock-groups-table {
  min-width: 1080px !important;
}

.table-wrap th,
.customer-directory-table th,
.stock-groups-table th,
.module-page-content table th {
  height: 42px !important;
  padding: 9px 12px !important;
  border: 1px solid var(--ops-line) !important;
  background: #eef3f4 !important;
  color: #2b3f49 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  text-align: left !important;
  white-space: nowrap !important;
}

.table-wrap td,
.customer-directory-table td,
.stock-groups-table td,
.module-page-content table td {
  padding: 10px 12px !important;
  border: 1px solid #e3e9ea !important;
  color: var(--ops-text) !important;
  vertical-align: middle !important;
}

.table-wrap tbody tr:nth-child(even) td,
.customer-directory-table tbody tr:nth-child(even) td,
.stock-groups-table tbody tr:nth-child(even) td {
  background: #fafcfc !important;
}

.table-wrap tbody tr:hover td,
.customer-directory-table tbody tr:hover td,
.stock-groups-table tbody tr:hover td {
  background: #f6fbf8 !important;
}

.customer-directory-page {
  overflow: hidden !important;
  padding: 0 !important;
}

.customer-directory-titlebar {
  min-height: 64px !important;
  padding: 14px 18px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ops-line) !important;
  border-radius: 8px 8px 0 0 !important;
  background: linear-gradient(90deg, #fff 0%, #f8fbfa 100%) !important;
  color: var(--ops-text) !important;
}

.customer-directory-titlebar h2 {
  color: var(--ops-text) !important;
  font-size: 22px !important;
}

.customer-directory-toolbar {
  display: grid !important;
  grid-template-columns: minmax(320px, 1fr) auto !important;
  gap: 14px !important;
  align-items: end !important;
  padding: 14px 18px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ops-line) !important;
  background: #fff !important;
}

.customer-directory-search input {
  height: 42px !important;
}

.customer-directory-filters {
  display: flex !important;
  gap: 8px !important;
}

.customer-directory-filters button,
.choice-pill,
.segmented label {
  border: 1px solid #cbd8da !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: var(--ops-text) !important;
}

.customer-directory-filters button.active,
.choice-pill.active,
.segmented label:has(input:checked) {
  border-color: var(--ops-navy) !important;
  background: var(--ops-navy) !important;
  color: #fff !important;
}

.customer-detail-pagebar {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 16px !important;
  padding: 12px 0 16px !important;
  border-bottom: 1px solid var(--ops-line) !important;
  background: transparent !important;
}

.customer-detail-pagebar strong {
  color: var(--ops-text) !important;
  font-size: 24px !important;
}

.customer-record-pane .customer-dossier {
  display: grid !important;
  gap: 18px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.client-identity {
  display: grid !important;
  grid-template-columns: 84px minmax(0, 1fr) 260px !important;
  gap: 18px !important;
  padding: 18px !important;
}

.client-kpi-strip {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

.client-kpi {
  min-height: 92px !important;
  padding: 16px !important;
  border-top: 3px solid var(--ops-gold) !important;
}

.client-kpi strong {
  color: var(--ops-text) !important;
  font-size: 24px !important;
}

.client-workspace-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 280px !important;
  gap: 18px !important;
}

.stock-groups-panel {
  padding: 0 !important;
}

.stock-groups-heading,
.stock-group-controls,
.stock-pagination {
  padding: 14px 18px !important;
}

.stock-group-controls {
  display: grid !important;
  grid-template-columns: minmax(320px, 1fr) minmax(220px, 320px) auto !important;
  gap: 12px !important;
  align-items: end !important;
  border-top: 1px solid var(--ops-line) !important;
  border-bottom: 1px solid var(--ops-line) !important;
}

.stock-pagination {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  border-top: 1px solid var(--ops-line) !important;
}

.stock-pagination-pages {
  display: flex !important;
  gap: 4px !important;
}

.stock-pagination-pages button {
  min-width: 34px !important;
  min-height: 32px !important;
  border: 1px solid #cbd8da !important;
  border-radius: 5px !important;
  background: #fff !important;
}

.stock-pagination-pages button.active {
  border-color: var(--ops-navy) !important;
  background: var(--ops-navy) !important;
  color: #fff !important;
}

.offer-create-workspace {
  display: block !important;
  width: 100% !important;
}

.offer-create-workspace > #offerForm,
.offer-create-workspace .workspace-form {
  width: 100% !important;
  max-width: none !important;
}

.offer-builder {
  border: 1px solid var(--ops-line) !important;
  border-radius: 8px !important;
  background: #fff !important;
  padding: 16px !important;
}

.offer-catalog {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
  gap: 10px !important;
  max-height: 430px !important;
  overflow: auto !important;
  padding: 10px !important;
  border: 1px solid var(--ops-line) !important;
  border-radius: 6px !important;
  background: #f9fbfb !important;
}

.offer-catalog > .empty {
  grid-column: 1 / -1 !important;
}

.offer-catalog-card {
  min-height: 92px !important;
  display: grid !important;
  grid-template-columns: 54px minmax(0, 1fr) auto !important;
  gap: 12px !important;
  align-items: center !important;
  padding: 10px !important;
  border: 1px solid #dce5e6 !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: var(--ops-text) !important;
  text-align: left !important;
}

.offer-catalog-card.active {
  border-color: var(--ops-ok) !important;
  box-shadow: inset 4px 0 0 var(--ops-ok) !important;
}

.offer-catalog-card img {
  width: 54px !important;
  height: 54px !important;
  border: 1px solid var(--ops-line) !important;
  border-radius: 5px !important;
  object-fit: contain !important;
  background: #fff !important;
}

.offer-catalog-card strong,
.offer-catalog-card span,
.offer-catalog-card small {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

.offer-catalog-card > .status {
  min-width: 72px !important;
  justify-self: end !important;
  text-align: center !important;
}

.service-product-search-results:empty {
  display: none !important;
}

.service-product-search-results {
  max-height: 220px !important;
  border-radius: 6px !important;
  background: #fff !important;
}

.service-product-search-option {
  border-radius: 5px !important;
}

.service-product-selected {
  border-radius: 6px !important;
  background: #edf8f3 !important;
}

.autocomplete-menu {
  z-index: 10000 !important;
  border-radius: 6px !important;
  background: #fff !important;
}

.autocomplete-option,
.autocomplete-empty {
  color: var(--ops-text) !important;
  background: #fff !important;
}

.offer-pdf-modal {
  grid-template-columns: minmax(0, auto) minmax(150px, 190px) !important;
  column-gap: 16px !important;
  align-items: start !important;
  justify-content: center !important;
}

.service-pdf-modal {
  grid-template-columns: minmax(0, auto) minmax(150px, 190px) !important;
  column-gap: 16px !important;
  align-items: start !important;
  justify-content: center !important;
  padding-bottom: 96px !important;
  overscroll-behavior: contain !important;
}

.offer-pdf-modal > .pdf-page,
.offer-pdf-modal > .pdf-sheet,
.offer-pdf-modal > .offer-page {
  grid-column: 1 !important;
}

.service-pdf-modal > .pdf-page,
.service-pdf-modal > .service-pdf-modern {
  grid-column: 1 !important;
  overflow: visible !important;
  min-height: auto !important;
}

.pdf-side-actions {
  position: sticky !important;
  top: 18px !important;
  grid-column: 2 !important;
  display: grid !important;
  gap: 8px !important;
  width: 180px !important;
  padding: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 16px 34px rgba(4, 18, 24, 0.28) !important;
  z-index: 2 !important;
}

.pdf-side-actions small {
  color: #6b5a3f !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

.pdf-side-actions .btn {
  width: 100% !important;
  min-height: 36px !important;
  justify-content: center !important;
  white-space: normal !important;
  line-height: 1.2 !important;
}

.pdf-side-actions > span {
  color: #66747b !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
}

@media print {
  .pdf-side-actions {
    display: none !important;
  }
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr !important;
  }

  .pro-sidebar {
    position: static !important;
    height: auto !important;
  }

  .pro-nav,
  .pro-sidebar-nav {
    display: flex !important;
    overflow-x: auto !important;
  }

  .client-identity,
  .client-workspace-layout,
  .module-page-content > .split,
  .module-page-content > .split-workspace {
    grid-template-columns: 1fr !important;
  }

  .client-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .pro-content {
    padding: 14px 12px 84px !important;
  }

  .pro-topbar,
  .customer-directory-toolbar,
  .stock-group-controls {
    grid-template-columns: 1fr !important;
    flex-wrap: wrap !important;
  }

  .client-kpi-strip,
  .offer-catalog {
    grid-template-columns: 1fr !important;
  }

  .module-page-heading h1 {
    font-size: 21px !important;
  }

  .offer-pdf-modal,
  .service-pdf-modal {
    grid-template-columns: 1fr !important;
    padding-bottom: 86px !important;
  }

  .pdf-side-actions {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    top: auto !important;
    width: auto !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: center !important;
  }

  .pdf-side-actions small,
  .pdf-side-actions > span {
    display: none !important;
  }
}

.ops-overview {
  display: grid;
  gap: 18px;
  margin-bottom: 16px;
}

.ops-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ops-kpi-card {
  position: relative;
  min-height: 124px;
  padding: 18px;
  overflow: hidden;
  text-align: left;
  border: 1px solid rgba(8, 50, 45, 0.12);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 248, 0.98)),
    radial-gradient(circle at 92% 12%, rgba(190, 139, 55, 0.16), transparent 28%);
  box-shadow: 0 18px 34px rgba(7, 35, 32, 0.08);
}

.ops-kpi-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, #0c5d51, #c7953d);
}

.ops-kpi-card span,
.ops-kpi-card small {
  position: relative;
  z-index: 1;
  display: block;
}

.ops-kpi-card span {
  color: #60716d;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ops-kpi-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin: 10px 0 8px;
  color: #082e2a;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.ops-kpi-card small {
  max-width: 28ch;
  color: #6b7a76;
  font-size: 13px;
  line-height: 1.35;
}

.ops-kpi-button {
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.ops-kpi-button:hover {
  transform: translateY(-2px);
  border-color: rgba(199, 149, 61, 0.5);
  box-shadow: 0 22px 42px rgba(7, 35, 32, 0.12);
}

.ops-insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 16px;
}

.ops-insight-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(8, 50, 45, 0.12);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(7, 35, 32, 0.08);
}

.ops-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(8, 50, 45, 0.1);
}

.ops-card-head h2 {
  margin: 0;
  color: #082e2a;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.ops-card-head p {
  margin: 5px 0 0;
  color: #6b7a76;
}

.ops-insight-card .finance-chart {
  margin-bottom: 16px;
}

.ops-finance-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ops-finance-strip > button,
.ops-finance-strip > div {
  min-width: 0;
  padding: 13px 14px;
  text-align: left;
  border: 1px solid rgba(8, 50, 45, 0.1);
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfdfc, #f5f8f6);
}

.ops-finance-strip span {
  display: block;
  color: #6b7a76;
  font-size: 12px;
  font-weight: 800;
}

.ops-finance-strip strong {
  display: block;
  margin-top: 6px;
  color: #0b3a34;
  font-size: 18px;
  line-height: 1.2;
}

.ops-finance-strip small {
  display: block;
  margin-top: 4px;
  color: #7d8784;
  font-size: 11px;
}

.ops-status-list {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.ops-status-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 14px;
  text-align: left;
  border: 1px solid rgba(8, 50, 45, 0.1);
  border-radius: 12px;
  background: #f8fbf9;
  cursor: pointer;
}

.ops-status-row:hover {
  border-color: rgba(12, 93, 81, 0.34);
  background: #eef7f4;
}

.ops-status-row span {
  color: #52625e;
  font-weight: 800;
}

.ops-status-row strong {
  min-width: 38px;
  color: #082e2a;
  font-size: 24px;
  text-align: right;
}

.ops-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ops-action-grid .btn {
  justify-content: center;
  min-height: 44px;
}

.nav-badge {
  display: inline-flex;
  min-width: 20px;
  height: 20px;
  margin-left: 8px;
  padding: 0 6px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #c7953d;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(199, 149, 61, 0.28);
}

.team-notification-summary {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 12px;
  margin-bottom: 16px;
}

.team-notification-summary > div {
  padding: 14px 16px;
  border: 1px solid rgba(8, 50, 45, 0.12);
  border-radius: 14px;
  background: linear-gradient(135deg, #fbfdfc, #f3f8f6);
}

.team-notification-summary span,
.team-notification-summary small {
  display: block;
  color: #65756f;
}

.team-notification-summary span {
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.team-notification-summary strong {
  display: block;
  margin-top: 6px;
  color: #0b3a34;
  font-size: 18px;
  line-height: 1.2;
}

.team-notification-summary small {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.35;
}

@media (max-width: 1180px) {
  .ops-kpi-grid,
  .ops-finance-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-insight-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .ops-kpi-grid,
  .ops-finance-strip,
  .ops-action-grid {
    grid-template-columns: 1fr;
  }

  .ops-card-head {
    display: grid;
  }

  .team-notification-summary {
    grid-template-columns: 1fr;
  }
}

