:root {
  --navy-950: #0f46b5;
  --navy-900: #1450c9;
  --navy-800: #1b5dd5;
  --blue-600: #1450c9;
  --red-600: #c62938;
  --red-500: #dc3545;
  --teal-500: #2cb0bd;
  --violet-500: #7652dc;
  --primary-gradient: linear-gradient(105deg, #1450c9 0%, #426fd7 55%, #685bd7 100%);
  --slate-900: #172033;
  --slate-700: #40506a;
  --slate-500: #728096;
  --slate-300: #cdd6e3;
  --slate-200: #e3e9f1;
  --slate-100: #f0f4f8;
  --surface: #ffffff;
  --background: #f4f7fb;
  --table-surface: #f6f9fc;
  --success: #178a5b;
  --sidebar-width: 240px;
  --topbar-height: 60px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(13, 31, 65, .08);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--background); }
body { margin: 0; color: var(--slate-900); font-family: "Segoe UI", Inter, Arial, sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
a { color: var(--blue-600); }
h1, h2, h3 { margin: 0; font-family: "Segoe UI", Inter, sans-serif; font-weight: 700; letter-spacing: -.025em; }
h1 { font-size: clamp(25px, 3vw, 32px); }
h2 { font-size: 19px; }
p { line-height: 1.6; }

.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--topbar-height);
  display: flex; align-items: center; justify-content: space-between; padding: 0 26px;
  color: white; background: linear-gradient(105deg, #1450c9 0%, #3e70d8 58%, #675bd5 100%);
  box-shadow: 0 5px 18px rgba(45, 75, 177, .24);
}
.topbar-left, .topbar-right, .user-chip, .user-profile { display: flex; align-items: center; }
.topbar-left { gap: 12px; }
.topbar-right { gap: 20px; }
.inspection-notification { position: relative; }
.inspection-notification summary { position: relative; display: grid; width: 39px; height: 39px; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: white; background: rgba(255,255,255,.12); cursor: pointer; list-style: none; }
.inspection-notification summary::-webkit-details-marker { display: none; }
.inspection-notification summary svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.inspection-notification summary > span { position: absolute; top: -5px; right: -5px; display: grid; min-width: 19px; height: 19px; place-items: center; padding: 0 4px; border: 2px solid #3e70d8; border-radius: 999px; color: white; background: #f08a24; font-size: 9px; font-weight: 900; }
.inspection-notification-panel { position: absolute; z-index: 80; top: 48px; right: 0; width: min(360px, calc(100vw - 28px)); max-height: 360px; overflow-y: auto; border: 1px solid #d9e1ec; border-radius: 12px; color: #333; background: white; box-shadow: 0 18px 48px rgba(12,31,67,.2); }
.inspection-notification-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 17px; border-bottom: 1px solid #e5ebf2; }
.inspection-notification-head strong { font-size: 13px; }
.inspection-notification-head span { color: #78869a; font-size: 10px; font-weight: 800; }
.inspection-notification-item { display: grid; gap: 4px; padding: 13px 17px; border-bottom: 1px solid #edf1f5; }
.inspection-notification-item strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.inspection-notification-item span { color: #f08a24; font-size: 11px; font-weight: 900; }
.inspection-notification-panel > p { margin: 0; padding: 20px 17px; color: #718095; font-size: 11px; }
.topbar-welcome { position: absolute; left: 50%; color: #f0f5ff; font-size: 13px; font-weight: 650; transform: translateX(-50%); white-space: nowrap; }
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy img { display: block; width: clamp(150px, 12vw, 190px); max-height: 40px; object-fit: contain; object-position: left center; }
.brand-copy strong { font-family: "Segoe UI", sans-serif; font-size: 17px; letter-spacing: .03em; }
.brand-copy span { margin-top: 3px; color: #e2ebff; font-size: 11px; }
.security-pill { display: flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: #f0f5ff; background: rgba(255,255,255,.1); font-size: 12px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #39d98a; box-shadow: 0 0 0 4px rgba(57,217,138,.12); }
.user-profile { gap: 9px; }
.user-chip { flex: 0 0 auto; color: white; text-decoration: none; }
.user-profile-copy { display: grid; justify-items: start; line-height: 1.1; }
.user-profile-copy strong { max-width: 180px; overflow: hidden; text-overflow: ellipsis; color: #fff; font-size: 12px; white-space: nowrap; }
.user-profile-copy form { margin: 2px 0 0; }
.avatar { position: relative; display: grid; place-items: center; width: 40px; height: 40px; overflow: hidden; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; background: #fff; box-shadow: 0 3px 10px rgba(16,34,83,.2); }
.avatar img { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; background: #fff; object-fit: cover; }
.default-user-icon { position: relative; display: block; width: 28px; height: 28px; border: 1px solid #1e293b; border-radius: 50%; background: #fff; }
.default-user-icon::before { position: absolute; top: 4px; left: 50%; width: 9px; height: 9px; border-radius: 50%; background: #b9bcc1; content: ""; transform: translateX(-50%); }
.default-user-icon > span { position: absolute; bottom: 3px; left: 50%; width: 18px; height: 9px; border-radius: 11px 11px 7px 7px; background: #b9bcc1; transform: translateX(-50%); }
.topbar-logout { min-height: 0; padding: 1px 0; border: 0; border-radius: 0; color: #eef4ff; background: transparent; box-shadow: none; font-size: 11px; font-weight: 700; line-height: 1.25; cursor: pointer; opacity: .92; }
.topbar-logout:hover { color: #fff; background: transparent; box-shadow: none; opacity: 1; text-decoration: underline; }
.menu-toggle { display: none; border: 0; color: white; background: transparent; font-size: 24px; cursor: pointer; }

.sidebar {
  position: fixed; z-index: 40; top: var(--topbar-height); bottom: 0; left: 0; width: var(--sidebar-width);
  display: flex; flex-direction: column; padding: 20px 14px 16px; border-right: 1px solid #dce4ef; background: var(--surface);
}
.main-nav { flex: 1; overflow-x: hidden; overflow-y: auto; }
.nav-label { margin: 12px 12px 8px; color: #9aa6b8; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.nav-item { position: relative; display: flex; align-items: center; gap: 10px; min-height: 50px; margin-bottom: 5px; padding: 7px 10px; border-radius: 10px; color: var(--slate-700); text-decoration: none; font-weight: 600; transition: .18s ease; }
.nav-item:hover { color: var(--navy-900); background: #f1f5fa; }
.nav-item.active { color: #fff; background: linear-gradient(100deg, #168dca, #3e70d8 56%, #655bd5); box-shadow: 0 7px 16px rgba(45, 86, 190, .22); }
.nav-item.active::before { position: absolute; left: -14px; width: 4px; height: 25px; border-radius: 0 4px 4px 0; background: var(--teal-500); content: ''; }
.nav-icon { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border: 1px solid #dce4ef; border-radius: 8px; color: var(--navy-800); background: #fff; box-shadow: 0 2px 6px rgba(20,50,100,.045); transition: .18s ease; }
.nav-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-text { min-width: 0; line-height: 1.25; }
.nav-item:hover .nav-icon { border-color: #c6d4e7; color: var(--navy-900); box-shadow: 0 4px 10px rgba(20,50,100,.08); }
.nav-item.active .nav-icon { border-color: rgba(255,255,255,.78); color: var(--navy-800); background: #fff; box-shadow: 0 4px 10px rgba(17,46,111,.16); }
.nav-item small { margin-left: auto; padding: 3px 6px; border-radius: 999px; color: #8a96a8; background: #edf1f6; font-size: 9px; }
.nav-item.disabled { cursor: default; opacity: .52; }
.nav-item.disabled:hover { transform: none; }
.sidebar-footer { padding-top: 14px; border-top: 1px solid var(--slate-200); }
.sidebar-security { display: flex; align-items: center; gap: 8px; margin: 0 8px; padding: 9px 10px; border: 1px solid #d9eee5; border-radius: 9px; color: #267152; background: #f3fbf7; font-size: 11px; font-weight: 700; }
.sidebar-security .status-dot { flex: 0 0 auto; }

.main-content { min-height: 100vh; margin-left: var(--sidebar-width); padding: calc(var(--topbar-height) + 18px) 34px 20px; background: radial-gradient(circle at 86% 0, rgba(118,82,220,.055), transparent 29%), radial-gradient(circle at 18% 96%, rgba(44,176,189,.045), transparent 28%), var(--background); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.main-content .page-head h1 {
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.15;
}
.selection-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.selection-actions form { display: inline-flex; margin: 0; }
.selection-actions .button, .selection-actions button { min-height: 39px; padding: 8px 13px; font-size: 12px; }
.is-disabled, button:disabled { pointer-events: none; opacity: .45; box-shadow: none; }
.danger-button { background: linear-gradient(105deg, #981b2a, #c62938); box-shadow: 0 5px 13px rgba(198,41,56,.2); }
.whatsapp-button { background: linear-gradient(105deg, #158f55, #25b96f); box-shadow: 0 5px 13px rgba(37,185,111,.22); }
.page-head h1 + p { margin: 7px 0 0; }
.muted { color: var(--slate-500); }
.eyebrow { display: none; }
.list-page-shell {
  display: grid; height: calc(100dvh - var(--topbar-height) - 30px); min-height: 0;
  margin-top: -8px; overflow: hidden; grid-template-rows: auto minmax(0, 1fr) auto;
}
.list-page-shell > .page-head { flex: 0 0 auto; margin-bottom: 12px; }
.list-page-toolbar {
  position: relative; z-index: 30; min-width: 0; padding: 2px 0 8px;
  background: var(--background); isolation: isolate;
}
.list-page-toolbar .page-head { min-height: 42px; align-items: center; margin-bottom: 0; }
.list-head-tools { display: flex; flex: 1 1 auto; min-width: 0; align-items: center; justify-content: flex-end; gap: 10px; }
.list-head-tools .selection-actions { flex: 0 0 auto; flex-wrap: nowrap; }
.list-inline-search { display: flex; flex: 0 1 390px; width: clamp(300px, 24vw, 390px); min-width: 280px; align-items: stretch; gap: 7px; margin: 0; }
.list-inline-search input { flex: 1 1 auto; width: auto; min-width: 0; height: 39px; min-height: 39px; padding: 8px 11px; border-color: #c5d2e3; background: rgba(255,255,255,.92); font-size: 12px; }
.list-inline-search button { flex: 0 0 74px; min-width: 74px; min-height: 39px; padding: 8px 13px; font-size: 12px; }
.list-inline-search .search-clear-button {
  display: inline-flex;
  flex: 0 0 70px;
  min-width: 70px;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  font-size: 11px;
  white-space: nowrap;
}
.list-scroll-card { position: relative; z-index: 1; min-height: 0; margin-top: 0 !important; padding: 0 !important; overflow: auto !important; overscroll-behavior: contain; scrollbar-gutter: stable; }
.list-scroll-card.customer-table-card { overflow: auto !important; }
.list-scroll-card table { width: max-content; min-width: 100% !important; margin: 0; border-collapse: separate; border-spacing: 0; table-layout: auto; }
.list-scroll-card th,
.list-scroll-card td { min-width: 96px; max-width: 150px; white-space: nowrap; }
.list-scroll-card th {
  min-width: 96px; max-width: 130px; height: 44px; padding: 7px 8px;
  line-height: 1.18; overflow: hidden; text-wrap: balance; vertical-align: middle; white-space: normal;
}
.list-scroll-card td { padding: 10px 8px; overflow: hidden; text-overflow: ellipsis; }
.list-scroll-card .customer-name-cell { min-width: 190px; max-width: 230px; }
.list-scroll-card .bonus-list-table {
  width: 100% !important;
  min-width: 100% !important;
  table-layout: fixed;
}
.bonus-list-card { overflow-y: auto !important; scrollbar-gutter: auto; }
.bonus-list-table .bonus-list-type { width: 7%; }
.bonus-list-table .bonus-list-customer { width: 34%; }
.bonus-list-table .bonus-list-identity { width: 11%; }
.bonus-list-table .bonus-list-phone { width: 10%; }
.bonus-list-table .bonus-list-email { width: 12%; }
.bonus-list-table .bonus-list-status { width: 7%; }
.bonus-list-table .bonus-list-go { width: 8%; }
.bonus-list-table .bonus-list-portal { width: 11%; }
.list-scroll-card .bonus-list-table th,
.list-scroll-card .bonus-list-table td { min-width: 0; max-width: none; }
.list-scroll-card .bonus-list-table .customer-name-cell {
  width: auto;
  min-width: 0;
  max-width: none;
}
.bonus-list-table .corporate-name-clip {
  width: 100%;
  max-width: none;
}
.list-scroll-card .col-model-year { width: 66px; min-width: 66px; max-width: 66px; }
.list-scroll-card .col-chassis { width: 170px; min-width: 160px; max-width: 190px; }
.list-scroll-card .col-description { width: 125px; min-width: 110px; max-width: 140px; }
.corporate-name-clip {
  display: block;
  width: 240px;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  user-select: text;
}
.list-scroll-card thead { position: sticky; z-index: 20; top: 0; isolation: isolate; background: #dce5f2; box-shadow: 0 2px 5px rgba(11, 23, 57, .16); }
.list-scroll-card thead th { position: static; border-bottom: 1px solid #b8c6da; color: var(--navy-800); background: #dce5f2; background-clip: padding-box; font-weight: 800; }
.list-scroll-card thead th:first-child { border-top-left-radius: calc(var(--radius) - 1px); }
.list-scroll-card thead th:last-child { border-top-right-radius: calc(var(--radius) - 1px); }
.paged-list-card {
  position: relative; z-index: 1; min-height: 0; margin-top: 0 !important; overflow-x: hidden !important;
  overflow-y: auto !important; overscroll-behavior: contain; scrollbar-gutter: stable;
}
.paged-list-card thead { position: sticky; z-index: 20; top: 0; isolation: isolate; background: #dce5f2; box-shadow: 0 2px 5px rgba(11,23,57,.16); }
.paged-list-card thead th { border-bottom: 1px solid #b8c6da; color: var(--navy-800); background: #dce5f2; background-clip: padding-box; font-weight: 800; }

.card { padding: 22px; border: 1px solid rgba(205,214,227,.75); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.auth-card { width: min(100%, 470px); }
.auth-card h1 { margin-bottom: 8px; }
.auth-card .muted { margin: 0 0 24px; }
.user-form-layout { display: grid; grid-template-columns: minmax(420px, 470px) minmax(440px, 720px); align-items: start; gap: 28px; }
.user-form-layout .auth-card { width: 100%; }
.permission-guide { position: sticky; top: calc(var(--topbar-height) + 18px); padding: 26px; }
.permission-guide-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--slate-200); }
.permission-guide-heading h2 { color: var(--navy-800); font-size: 22px; }
.permission-guide-heading p { margin: 5px 0 0; color: var(--slate-500); font-size: 13px; }
.permission-guide-icon { display: grid; flex: 0 0 46px; place-items: center; height: 46px; border-radius: 12px; color: #fff; background: linear-gradient(145deg, var(--teal-500), #3977df 55%, var(--violet-500)); font-size: 18px; font-weight: 800; box-shadow: 0 7px 18px rgba(54,91,190,.2); }
.permission-level { display: flex; align-items: flex-start; gap: 14px; padding: 17px 0; border-bottom: 1px solid var(--slate-200); }
.permission-level:last-child { border-bottom: 0; }
.permission-level > span { display: grid; flex: 0 0 38px; place-items: center; height: 38px; border-radius: 10px; color: #fff; font-weight: 800; }
.permission-level h3 { margin: 1px 0 5px; color: var(--slate-900); font-size: 15px; }
.permission-level p { margin: 0; color: var(--slate-500); font-size: 13px; line-height: 1.55; }
.permission-level-a > span { background: #1450c9; }
.permission-level-b > span { background: #405b83; }
.permission-level-c > span { background: #78879c; }
.login-card { position: relative; width: min(100%, 460px); padding: 30px 32px 26px; overflow: hidden; border: 1px solid rgba(151,171,200,.42); border-radius: 18px; background: rgba(255,255,255,.91); box-shadow: 0 32px 90px rgba(8,27,64,.16), 0 2px 8px rgba(8,27,64,.05); backdrop-filter: blur(22px); }
.login-card::before { position: absolute; top: 0; right: 0; left: 0; height: 3px; background: linear-gradient(90deg, #0b1f49, #2363d1 62%, #d92f42); content: ''; }
.login-card::after { position: absolute; top: -100px; right: -100px; width: 220px; height: 220px; border: 1px solid rgba(35,99,209,.08); border-radius: 50%; box-shadow: 0 0 0 36px rgba(35,99,209,.025); content: ''; pointer-events: none; }
.login-card-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.login-access-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid #d9e4f0; border-radius: 999px; color: var(--navy-800); background: rgba(245,248,252,.86); font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.login-access-badge i, .login-card-footer i, .auth-page-meta i { width: 7px; height: 7px; border-radius: 50%; background: #32c983; box-shadow: 0 0 0 4px rgba(50,201,131,.12), 0 0 13px rgba(50,201,131,.45); }
.login-system-code { color: #8291a8; font-family: Consolas, monospace; font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.login-card-heading { position: relative; z-index: 1; margin-bottom: 24px; }
.login-heading-code { display: block; margin-bottom: 8px; color: #2363d1; font-size: 9px; font-weight: 850; letter-spacing: .16em; }
.login-card-heading h1 { margin: 0 0 8px; color: var(--navy-900); font-size: 28px; line-height: 1.18; letter-spacing: -.025em; }
.login-card-heading p { margin: 0; color: var(--slate-500); font-size: 12px; line-height: 1.6; }
.login-form { position: relative; z-index: 1; display: grid; gap: 16px; }
.login-field { display: grid; gap: 7px; }
.login-field label { color: var(--slate-700); font-size: 10px; font-weight: 800; letter-spacing: .035em; }
.login-input-wrap { position: relative; }
.login-input-icon { position: absolute; z-index: 1; top: 50%; left: 15px; display: grid; width: 18px; height: 18px; place-items: center; color: #8292aa; transform: translateY(-50%); pointer-events: none; }
.login-input-icon svg, .login-password-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.login-field input { width: 100%; height: 50px; padding: 0 46px 0 45px; border: 1px solid #cbd8e8; border-radius: 10px; color: var(--navy-900); background: rgba(247,250,253,.92); box-shadow: inset 0 1px 2px rgba(16,35,79,.025); font-size: 13px; transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.login-field input:hover { border-color: #a9bbd2; background: #fff; }
.login-field input:focus { border-color: #3978db; outline: 0; background: #fff; box-shadow: 0 0 0 4px rgba(35,99,209,.1); }
.login-input-wrap:focus-within .login-input-icon { color: #2363d1; }
.login-password-toggle { position: absolute; z-index: 2; top: 50%; right: 9px; display: grid; width: 34px; height: 34px; place-items: center; padding: 0; border: 0; border-radius: 8px; color: #7d8ca2; background: transparent; box-shadow: none; transform: translateY(-50%); }
.login-password-toggle:hover { color: #173a76; background: #eaf1fa; transform: translateY(-50%); }
.login-password-toggle .eye-closed { display: none; }
.login-password-toggle[aria-pressed="true"] .eye-open { display: none; }
.login-password-toggle[aria-pressed="true"] .eye-closed { display: block; }
.login-field small { color: #b22333; font-size: 10px; }
.login-submit { display: flex; width: 100%; min-height: 50px; align-items: center; justify-content: space-between; margin-top: 3px; padding: 0 11px 0 17px; overflow: hidden; border: 0; border-radius: 10px; color: #fff; background: linear-gradient(110deg, #b71f31, #dc3545); box-shadow: 0 12px 25px rgba(198,41,56,.21); font-size: 12px; font-weight: 850; letter-spacing: .01em; }
.login-submit:hover { transform: translateY(-1px); background: linear-gradient(110deg, #a91e2e, #cf2d3e); box-shadow: 0 15px 29px rgba(198,41,56,.27); }
.login-submit:active { transform: translateY(0); box-shadow: 0 8px 18px rgba(198,41,56,.2); }
.login-submit span:last-child { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: rgba(255,255,255,.1); font-size: 16px; transition: transform .16s ease; }
.login-submit:hover span:last-child { transform: translateX(2px); }
.login-card-footer { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 21px; padding-top: 16px; border-top: 1px solid var(--slate-200); color: #8390a3; font-size: 9px; }
.login-card-footer span:first-child { display: flex; align-items: center; gap: 8px; color: #39745d; font-weight: 750; }
.login-error { display: grid; gap: 4px; margin: -9px 0 18px; padding: 11px 13px; border: 1px solid #f0cbd0; border-radius: 9px; color: #a92030; background: #fff4f5; font-size: 11px; }
.message { margin-bottom: 18px; padding: 13px 16px; border-radius: 10px; font-weight: 500; }
.message.success { border: 1px solid #b8e5d2; color: #116b46; background: #ecfbf4; }
.message.error { border: 1px solid #efb7bd; color: #9f1f2d; background: #fff0f2; }
.toast-stack {
  position: fixed; z-index: 160; right: 18px; bottom: 18px;
  display: grid; width: min(340px, calc(100vw - 28px)); gap: 8px; pointer-events: none;
}
.toast-message {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0; padding: 10px 11px 10px 13px; border-radius: 9px;
  box-shadow: 0 8px 22px rgba(11, 23, 57, .13); font-size: 12px; font-weight: 600;
  pointer-events: auto; animation: toast-in .18s ease-out;
}
.toast-message.is-leaving { opacity: 0; transform: translateY(-5px); transition: opacity .18s ease, transform .18s ease; }
.toast-close { min-width: 24px; min-height: 24px; padding: 0; border: 0; border-radius: 6px; color: currentColor; background: transparent; box-shadow: none; font-size: 18px; line-height: 1; opacity: .62; }
.toast-close:hover { background: rgba(11, 23, 57, .07); box-shadow: none; opacity: 1; }
.pagination-controls {
  display: flex; z-index: 7; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 8px; padding: 8px 11px; border: 1px solid var(--slate-200);
  border-radius: 10px; background: rgba(255,255,255,.86);
  box-shadow: 0 5px 16px rgba(13,31,65,.06);
}
.pagination-summary { color: var(--slate-500); font-size: 11px; font-weight: 700; }
.pagination-actions { display: flex; align-items: center; gap: 5px; }
.pagination-actions a, .pagination-actions span, .pagination-actions strong {
  display: grid; min-width: 34px; min-height: 30px; place-items: center;
  padding: 0 9px; border: 1px solid var(--slate-200); border-radius: 8px;
  color: var(--navy-800); background: white; font-size: 10px; font-weight: 800;
  text-decoration: none;
}
.pagination-actions a:hover { color: white; border-color: var(--blue-600); background: var(--blue-600); }
.pagination-actions strong { color: white; border-color: var(--blue-600); background: var(--blue-600); }
.pagination-actions .is-disabled { color: var(--slate-400); background: var(--slate-100); opacity: .72; }
.excel-error-report { margin-top: 12px; }
.excel-error-report h2 { margin-bottom: 4px; font-size: 17px; }
.excel-error-report > p { color: #9f1f2d; }
.excel-error-report > div {
  max-height: 260px; overflow-y: auto; margin-top: 10px; padding: 8px 12px;
  border: 1px solid #efb7bd; border-radius: 10px; background: #fff7f8;
}
.excel-error-report > div p { margin: 0; padding: 7px 0; border-bottom: 1px solid #f4dadd; color: #9f1f2d; font-size: 11px; }
.excel-error-report > div p:last-child { border-bottom: 0; }
@media (max-width: 760px) {
  .pagination-controls { align-items: stretch; flex-direction: column; }
  .pagination-actions { justify-content: space-between; }
}
.app-modal { position: fixed; z-index: 200; inset: 0; display: none; align-items: center; justify-content: center; padding: 20px; }
.app-modal.is-open { display: flex; }
.app-modal-backdrop { position: absolute; inset: 0; background: rgba(7,18,43,.58); backdrop-filter: blur(3px); }
.app-modal-panel { position: relative; z-index: 1; width: min(100%, 430px); padding: 30px; border: 1px solid rgba(205,214,227,.8); border-radius: 18px; background: white; box-shadow: 0 28px 70px rgba(7,18,43,.28); text-align: center; animation: modal-in .18s ease-out; }
.app-modal-icon { display: grid; width: 52px; height: 52px; margin: 0 auto 16px; place-items: center; border-radius: 50%; color: white; background: linear-gradient(145deg, var(--navy-800), var(--blue-600)); font-size: 23px; font-weight: 800; }
.app-modal-panel h2 { font-size: 21px; }
.app-modal-panel p { margin: 10px 0 24px; color: var(--slate-500); }
.app-modal-actions { display: flex; justify-content: center; gap: 10px; }
.app-modal-actions button { min-width: 118px; }
.conversion-modal-panel { width: min(100%, 720px); text-align: left; }
.conversion-modal-panel > p { text-align: center; }
.conversion-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; margin-bottom: 8px; }
.conversion-grid p { margin: 0 0 14px; }
.conversion-modal-panel .app-modal-actions { margin-top: 8px; }
.customer-history-panel { width: min(100%, 920px); text-align: left; }
.customer-history-panel > p { text-align: center; }
.customer-history-scroll { overflow-x: auto; margin: 0 0 20px; }
.customer-history-scroll table { min-width: 700px; }
.birthday-card { margin-top: 10px; overflow: hidden !important; }
.dashboard-lower-sections { display: flex; flex-direction: column; }
.dashboard-lower-sections .birthday-card { order: 1; }
.dashboard-lower-sections .renewal-dashboard-card { order: 2; }
.birthday-section-head { margin-bottom: 14px; }
.birthday-section-head .muted { margin: 4px 0 0; }
.birthday-head-meta { display: flex; align-items: center; gap: 9px; }
.birthday-count { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border: 1px solid #c9d7e8; border-radius: 9px; color: #2450a2; background: #edf4ff; font-size: 12px; font-weight: 800; white-space: nowrap; }
.birthday-carousel { display: grid; grid-template-columns: 36px minmax(0, 1fr) 36px; align-items: stretch; gap: 10px; }
.birthday-card-track { display: flex; gap: 14px; min-width: 0; overflow-x: auto; overflow-y: hidden; padding: 2px 1px 8px; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #a6b6cc transparent; }
.birthday-card-track::-webkit-scrollbar { height: 6px; }
.birthday-card-track::-webkit-scrollbar-thumb { border-radius: 999px; background: #a6b6cc; }
.birthday-person-card { position: relative; display: flex; flex: 0 0 calc((100% - 28px) / 3); min-width: 270px; min-height: 226px; flex-direction: column; padding: 16px; border: 1px solid #ccd9ea; border-top: 3px solid #327be8; border-radius: 13px; background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(242,247,253,.96)); box-shadow: 0 8px 22px rgba(29,61,107,.08); scroll-snap-align: start; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease; }
.birthday-person-card:hover { transform: translateY(-2px); box-shadow: 0 12px 25px rgba(29,61,107,.12); }
.birthday-person-card.is-greeted { border-color: #9ad7b8; border-top-color: #1b9d68; background: linear-gradient(145deg, #f8fffb, #eaf8f1); }
.birthday-person-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.birthday-person-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(145deg, #e7f0ff, #f0eafe); font-size: 20px; }
.birthday-greeting-state { display: inline-flex; align-items: center; min-height: 27px; padding: 0 10px; border-radius: 999px; color: #98610a; background: #fff1c7; font-size: 11px; font-weight: 800; }
.birthday-greeting-state.is-greeted { color: #12714b; background: #dff5e9; }
.birthday-person-card h3 { margin: 13px 0 12px; overflow: hidden; color: var(--navy-900); font-size: 15px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.birthday-person-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 13px; }
.birthday-person-details div { min-width: 0; padding: 9px; border: 1px solid #dde6f1; border-radius: 9px; background: rgba(255,255,255,.72); }
.birthday-person-details dt { margin-bottom: 5px; color: var(--slate-500); font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.birthday-person-details dd { margin: 0; overflow: hidden; color: var(--navy-800); font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.birthday-policy-status { color: #835a0e; }
.birthday-policy-status.is-aktif { color: #14744c; }
.birthday-channel { margin: -2px 0 10px; color: #14744c; font-size: 11px; font-weight: 800; }
.birthday-person-actions { display: flex; gap: 8px; margin-top: auto; }
.birthday-person-actions button { min-height: 34px; padding: 8px 13px; font-size: 11px; }
.birthday-nav { align-self: center; display: grid; place-items: center; width: 36px; height: 54px; padding: 0; border: 1px solid #c5d3e6; border-radius: 10px; color: #225bc2; background: rgba(248,251,255,.96); box-shadow: 0 6px 15px rgba(29,61,107,.09); font-size: 27px; }
.birthday-nav:hover:not(:disabled) { color: white; background: linear-gradient(135deg, #168dca, #6654dc); }
.birthday-nav:disabled { cursor: default; opacity: .28; box-shadow: none; }
.birthday-empty-state { display: flex; align-items: center; justify-content: center; gap: 11px; min-height: 90px; border: 1px dashed #c6d5e7; border-radius: 12px; color: var(--slate-500); background: rgba(243,247,252,.72); }
.birthday-empty-state span { font-size: 24px; }
.birthday-modal-panel { width: min(100%, 620px); text-align: left; }
.birthday-modal-panel > p { text-align: center; }
.birthday-modal-panel textarea { min-height: 190px; margin-bottom: 18px; text-transform: none; }
.offer-message-card { width: min(100%, 760px); }
.offer-message-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; color: var(--slate-700); font-weight: 700; }
.offer-message-card textarea { min-height: 280px; text-transform: none; }
.offer-message-card .form-actions form { margin: 0; }
.offer-share-modal-panel { width: min(100%, 780px); text-align: left; }
.offer-share-modal-panel h2 { margin: 0 0 14px; }
.offer-share-modal-panel textarea { min-height: 280px; margin-bottom: 16px; resize: vertical; text-transform: none; }
.offer-share-actions { flex-wrap: wrap; justify-content: flex-start; }
.offer-share-actions button { min-width: 0; }
.offer-status-badge { display: inline-flex; align-items: center; width: max-content; padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.offer-status-badge.is-ready { color: #8a5a00; background: #fff0bf; }
.offer-status-badge.is-sent { color: #155b91; background: #dceeff; }
.offer-status-badge.is-tracking { color: #674c0d; background: #f5e8bf; }
.offer-status-badge.is-renewal { color: #7a3f16; background: #ffe1c7; }
.offer-status-badge.is-empty { color: var(--slate-500); background: var(--slate-100); }
.offer-row.renewal-warning { background: #fff9e8; }
.offer-row.renewal-critical { background: #fff0de; }
.offer-row.renewal-today { background: #ffe5e8; }
.offer-row.renewal-overdue { background: #f1f3f6; }
.offer-row.renewal-warning td:first-child { box-shadow: inset 4px 0 0 #e5a522; }
.offer-row.renewal-critical td:first-child { box-shadow: inset 4px 0 0 #e97924; }
.offer-row.renewal-today td:first-child { box-shadow: inset 4px 0 0 #d62f42; }
.offer-row.renewal-overdue td:first-child { box-shadow: inset 4px 0 0 #7a8493; }
.offer-row.is-selected { background: #e5eefc; }
.offer-row.is-selected td:first-child { box-shadow: inset 4px 0 0 var(--blue-600); }
.days-badge { display: inline-flex; min-width: 34px; justify-content: center; padding: 4px 7px; border-radius: 999px; color: var(--navy-800); background: rgba(255,255,255,.72); font-size: 11px; font-weight: 800; }
.renewal-dashboard-card { margin-top: 10px; overflow: visible !important; }
.renewal-dashboard-card .section-head { align-items: flex-start; }
.renewal-dashboard-card .section-head p { margin: 5px 0 0; }
.compact-button { min-height: 35px; padding: 7px 11px; font-size: 11px; }
.renewal-dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.renewal-group { min-width: 0; overflow: hidden; border: 1px solid var(--slate-200); border-radius: 12px; background: #fff; }
.renewal-group.is-unsent { border-top: 3px solid #e5a522; }
.renewal-group.is-sent { border-top: 3px solid #3982bd; }
.renewal-group-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 15px 10px; }
.renewal-group-head h3 { margin: 0; font-size: 15px; }
.renewal-group-head span { display: grid; min-width: 28px; height: 28px; place-items: center; border-radius: 50%; color: white; background: var(--navy-800); font-size: 11px; font-weight: 800; }
.renewal-dashboard-table { max-height: 320px; overflow: auto; }
.renewal-dashboard-table table { width: 100%; min-width: 520px !important; table-layout: fixed; }
.renewal-dashboard-table thead th { position: sticky; top: 0; z-index: 2; border-bottom: 1px solid #b8c6da; color: var(--navy-800); background: #dce5f2; box-shadow: 0 2px 5px rgba(11,23,57,.16); font-weight: 800; text-align: center; }
.renewal-dashboard-table th:nth-child(1) { width: 42%; }
.renewal-dashboard-table th:nth-child(2) { width: 20%; }
.renewal-dashboard-table th:nth-child(3) { width: 24%; }
.renewal-dashboard-table th:nth-child(4) { width: 14%; }
.renewal-dashboard-table td { padding: 10px 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; min-height: 42px; padding: 8px 14px; border-top: 1px solid var(--slate-200); background: rgba(242,246,250,.92); font-size: 11px; }
.dashboard-pagination a { justify-self: start; color: var(--blue-700); font-weight: 800; text-decoration: none; }
.dashboard-pagination a:last-child { justify-self: end; }
.dashboard-pagination strong { color: var(--slate-600); font-size: 11px; }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.date-chip { padding: 9px 13px; border: 1px solid var(--slate-200); border-radius: 9px; color: var(--slate-700); background: white; font-size: 12px; font-weight: 600; }
.dashboard-head-actions { display: flex; align-items: center; gap: 10px; }
.dashboard-filter { position: relative; z-index: 20; }
.dashboard-filter-toggle { display: inline-flex; min-width: 150px; align-items: center; justify-content: center; gap: 8px; padding: 9px 15px; border: 1px solid var(--slate-200); border-radius: 9px; color: var(--slate-700); background: #fff; box-shadow: 0 6px 18px rgba(16,35,68,.06); font-size: 12px; font-weight: 700; }
.dashboard-filter-toggle:hover { border-color: #b7c4d8; background: #f8fafc; }
.dashboard-filter-icon { display: inline-grid; width: 18px; height: 18px; place-items: center; border-radius: 5px; color: #fff; background: var(--navy-800); font-size: 14px; line-height: 1; transition: transform .16s ease; }
.dashboard-filter.is-open .dashboard-filter-icon { transform: rotate(180deg); }
.dashboard-filter-menu { position: absolute; top: calc(100% + 8px); right: 0; width: 220px; padding: 8px; overflow: hidden; border: 1px solid var(--slate-200); border-radius: 12px; background: #fff; box-shadow: 0 20px 46px rgba(16,35,68,.18); }
.dashboard-filter-menu[hidden] { display: none; }
.dashboard-filter-group { padding: 7px 5px; border-bottom: 1px solid var(--slate-100); }
.dashboard-filter-group:last-child { border-bottom: 0; }
.dashboard-filter-group strong { display: block; padding: 2px 8px 5px; color: var(--slate-500); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }
.dashboard-filter-group button { width: 100%; min-height: 32px; padding: 7px 9px; border: 0; border-radius: 7px; color: var(--slate-700); background: transparent; box-shadow: none; font-size: 12px; font-weight: 600; text-align: left; }
.dashboard-filter-group button:hover, .dashboard-filter-group button.is-selected { color: var(--navy-800); background: #eaf1fc; }
.dashboard-year-toggle { position: relative; padding-right: 26px !important; }
.dashboard-year-toggle::after { position: absolute; right: 10px; content: "›"; transform: rotate(90deg); transition: transform .15s ease; }
.dashboard-year-toggle[aria-expanded="true"]::after { transform: rotate(-90deg); }
.dashboard-year-options { display: grid; max-height: 150px; margin: 3px 5px 0 12px; padding-left: 7px; overflow-y: auto; border-left: 2px solid #d9e3f2; scrollbar-width: thin; }
.dashboard-year-options[hidden] { display: none; }
.dashboard-year-options button { min-height: 29px; padding: 5px 8px; font-size: 11px; }
.dashboard-filter-all { padding-top: 8px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 10px; }
.dashboard-metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dashboard-secondary-metric-grid { margin-top: 0; }
.metric-card { position: relative; min-height: 145px; padding: 20px; overflow: hidden; border: 1px solid rgba(205,214,227,.75); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.metric-card p { margin: 0 0 13px; color: var(--slate-500); font-size: 12px; font-weight: 600; }
.metric-card strong { display: block; margin-bottom: 13px; color: var(--navy-900); font-family: "Segoe UI", sans-serif; font-size: 27px; }
.metric-card small { color: #94a0b1; }
.dashboard-summary-card { height: 230px; min-height: 230px; padding: 18px 20px; }
.dashboard-summary-card h2 { position: relative; z-index: 1; margin: -18px -20px 0; padding: 14px 20px; border-bottom: 1px solid #b8c6da; color: var(--navy-800); background: #dce5f2; box-shadow: 0 2px 5px rgba(11,23,57,.12); font-size: 16px; font-weight: 800; }
.dashboard-summary-card dl { position: relative; margin: 4px 0 0; }
.dashboard-summary-card dl > div { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--slate-100); }
.dashboard-summary-card dt { color: var(--slate-600); font-size: 13px; font-weight: 600; }
.dashboard-summary-card dd { margin: 0; color: var(--navy-900); font-size: 16px; font-weight: 800; text-align: right; white-space: nowrap; }
.branch-summary-card dt { max-width: 48%; }
.branch-summary-card dd { font-size: 14px; }
.branch-chart-card { display: flex; min-width: 0; flex-direction: column; }
.branch-chart-content { display: grid; min-height: 0; flex: 1; grid-template-columns: minmax(132px, .78fr) minmax(150px, 1.22fr); align-items: center; gap: 16px; }
.branch-donut { position: relative; width: min(100%, 148px); aspect-ratio: 1; justify-self: center; border-radius: 50%; background: var(--branch-chart); box-shadow: inset 0 0 0 1px rgba(23,32,51,.06), 0 8px 22px rgba(22,52,98,.12); }
.branch-donut::after { position: absolute; inset: 25%; display: block; border: 1px solid rgba(205,214,227,.8); border-radius: 50%; background: #f8fafc; box-shadow: 0 4px 13px rgba(16,43,85,.09); content: ""; }
.branch-donut > div { position: absolute; z-index: 1; inset: 28%; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.branch-donut span { color: var(--slate-500); font-size: 9px; font-weight: 700; }
.branch-donut strong { max-width: 78px; margin: 4px 0 0; color: var(--navy-900); font-size: 11px; line-height: 1.2; }
.branch-chart-legend { max-height: 158px; margin: 0; padding: 0 4px 0 0; overflow-y: auto; list-style: none; scrollbar-width: thin; }
.branch-chart-legend li { display: grid; min-height: 31px; grid-template-columns: 10px minmax(0, 1fr) auto auto; align-items: center; column-gap: 7px; padding: 4px 2px; border-bottom: 1px solid var(--slate-100); }
.branch-chart-legend li:last-child { border-bottom: 0; }
.branch-legend-color { width: 9px; height: 9px; border-radius: 50%; background: var(--branch-color); box-shadow: 0 0 0 3px color-mix(in srgb, var(--branch-color) 14%, transparent); }
.branch-legend-name { overflow: hidden; color: var(--slate-700); font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.branch-chart-legend strong { margin: 0; color: var(--navy-900); font-size: 12px; }
.branch-chart-legend small { color: var(--slate-500); font-size: 11px; font-weight: 700; }
.donut-tooltip { position: fixed; z-index: 1000; min-width: 132px; max-width: 230px; padding: 8px 10px; pointer-events: none; border: 1px solid rgba(174,190,212,.8); border-radius: 8px; color: #fff; background: rgba(11,27,58,.94); box-shadow: 0 10px 26px rgba(7,23,52,.23); font-size: 11px; line-height: 1.35; opacity: 0; transform: translate(10px, 10px); transition: opacity .1s ease; }
.donut-tooltip.is-visible { opacity: 1; }
.donut-tooltip strong, .donut-tooltip span { display: block; color: inherit; }
.donut-tooltip strong { margin-bottom: 2px; font-size: 12px; }
.production-chart-legend li { grid-template-columns: 10px minmax(0, 1fr) minmax(76px, auto) 34px; }
.production-chart-legend strong { text-align: right; white-space: nowrap; }
.production-chart-legend small { text-align: right; }
.cancellation-chart-legend li { grid-template-columns: 10px minmax(0, 1fr) minmax(76px, auto); }
.cancellation-chart-legend strong { text-align: right; white-space: nowrap; }
.branch-chart-empty { display: block !important; color: var(--slate-500); font-size: 11px; text-align: center; }
.metric-accent { position: absolute; top: 0; right: 0; width: 55px; height: 55px; border-radius: 0 0 0 55px; opacity: .14; }
.metric-accent.blue { background: #2363d1; }.metric-accent.red { background: #dc3545; }.metric-accent.amber { background: #e59b22; }.metric-accent.green { background: #1b9d68; }

/* Ana sayfa, diğer ekranlarla aynı ortak tema yüzeyini kullanır. */
.dashboard-body .main-content { position: relative; overflow: hidden; background: radial-gradient(circle at 86% 0, rgba(118,82,220,.055), transparent 29%), radial-gradient(circle at 18% 96%, rgba(44,176,189,.045), transparent 28%), var(--background); isolation: isolate; }
.dashboard-body .main-content::before { display: none; }
.dashboard-page { position: relative; z-index: 1; }
.dashboard-page-head { min-height: 0; align-items: flex-end; margin-bottom: 14px; }
.dashboard-page-head h1 { margin-bottom: 4px; color: #0a1a3d; letter-spacing: -.025em; }
.dashboard-page-head .muted { color: #687a93; }
.dashboard-body .sidebar { border-right-color: #dce4ef; background: var(--surface); box-shadow: none; }
.dashboard-body .nav-item { border: 1px solid transparent; }
.dashboard-body .nav-item:hover { border-color: #d4dfec; background: rgba(255,255,255,.68); }
.dashboard-body .nav-item.active { position: relative; border-color: rgba(55,105,207,.38); background: linear-gradient(105deg, #168dca, #3e70d8 56%, #655bd5); box-shadow: 0 9px 20px rgba(48,83,185,.2); }
.dashboard-body .nav-item.active::before { position: absolute; top: 9px; bottom: 9px; left: 0; width: 3px; border-radius: 0 3px 3px 0; background: var(--teal-500); content: ''; }
.dashboard-body .dashboard-filter-toggle { min-width: 166px; border-color: rgba(151,171,200,.58); color: #17335f; background: #f8fbfe; box-shadow: 0 9px 26px rgba(16,43,85,.09); }
.dashboard-body .dashboard-filter-toggle:hover { border-color: #9cb1ce; background: #fff; }
.dashboard-body .dashboard-filter-icon { background: linear-gradient(145deg, var(--teal-500), #3977df 58%, var(--violet-500)); box-shadow: 0 4px 10px rgba(55,86,188,.22); }
.dashboard-body .dashboard-filter-menu { border-color: #c7d4e4; background: #f9fbfe; box-shadow: 0 22px 55px rgba(10,31,68,.2); }
.dashboard-body .metric-card, .dashboard-body .renewal-dashboard-card, .dashboard-body .birthday-card { border-color: rgba(160,178,203,.53); background: #f8fafd; box-shadow: 0 15px 38px rgba(13,38,79,.09), 0 2px 7px rgba(13,38,79,.035); }
.dashboard-body .dashboard-summary-card { overflow: hidden; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.dashboard-body .dashboard-summary-card:hover { border-color: rgba(92,127,178,.55); box-shadow: 0 18px 42px rgba(13,38,79,.13); transform: translateY(-2px); }
.dashboard-body .dashboard-summary-card h2 { margin: 0 0 8px; padding: 0; border-bottom: 0; color: var(--slate-900); background: transparent; box-shadow: none; letter-spacing: .01em; }
.dashboard-body .dashboard-summary-card h2::after { display: none; }
.dashboard-body .dashboard-summary-card dl { margin-top: 7px; }
.dashboard-body .dashboard-summary-card dl > div { border-top-color: #dce4ee; }
.dashboard-body .dashboard-summary-card dt { color: #5f718b; }
.dashboard-body .dashboard-summary-card dd { color: #102b58; }
.dashboard-body .metric-accent { display: none; }
.dashboard-body .renewal-dashboard-card, .dashboard-body .birthday-card { padding: 20px; }
.dashboard-body .section-head h2 { color: #0c2048; letter-spacing: -.012em; }
.dashboard-body .section-head .muted { color: #6d7f97; }
.dashboard-body .renewal-group { border-color: #cbd8e7; background: rgba(246,249,252,.94); box-shadow: 0 7px 20px rgba(18,47,89,.045); }
.dashboard-body .renewal-group-head { background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(242,246,250,.78)); }
.dashboard-body .renewal-group-head h3 { color: #132c57; }
.dashboard-body .renewal-group-head span { background: linear-gradient(145deg, #168dca, #3e70d8 58%, #655bd5); box-shadow: 0 5px 13px rgba(48,83,185,.21); }
.dashboard-body .renewal-dashboard-table thead th, .dashboard-body .birthday-table-scroll thead th { border-bottom-color: #aebdd1; color: #173567; background: linear-gradient(105deg, #d9e8ef, #dce5f2 58%, #e4e1f2); box-shadow: 0 3px 7px rgba(11,23,57,.13); }
.dashboard-body .renewal-dashboard-table tbody tr, .dashboard-body .birthday-card tbody tr { transition: background .14s ease; }
.dashboard-body .renewal-dashboard-table tbody tr:hover, .dashboard-body .birthday-card tbody tr:hover { background: rgba(224,233,245,.56); }
.dashboard-body .date-chip { border-color: #c2d0e1; color: #27466f; background: #f3f7fb; box-shadow: 0 5px 14px rgba(16,43,85,.05); }
.dashboard-body .birthday-table-scroll { border-color: #ccd8e6; background: rgba(246,249,252,.85); }
.dashboard-body .sidebar-security { border-color: #cde4da; background: rgba(239,249,244,.85); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(270px, .75fr); gap: 18px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.section-head .eyebrow, .system-card .eyebrow { margin: 0 0 5px; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick-grid a { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--slate-200); border-radius: 10px; color: var(--slate-900); text-decoration: none; transition: .16s ease; }
.quick-grid a:hover { border-color: #b9c9e2; background: #f8faff; transform: translateY(-1px); }
.quick-grid a > span { display: grid; flex: 0 0 36px; place-items: center; height: 36px; border-radius: 9px; color: white; background: var(--navy-800); font-weight: 700; }
.quick-grid a div { display: grid; gap: 3px; }.quick-grid small { color: var(--slate-500); }
.system-card ul { margin: 20px 0 0; padding: 0; list-style: none; }.system-card li { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--slate-200); color: var(--slate-700); }.system-card li:last-child { border: 0; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.settings-grid > .card { min-height: 136px; margin-top: 0; }
.settings-system-card { margin-top: 18px; }
.settings-version { display: flex; align-items: center; justify-content: space-between; width: min(100%, 280px); margin: 14px 0 0 auto; padding: 10px 14px; border: 1px solid var(--slate-200); border-radius: 9px; color: var(--slate-600); background: rgba(255,255,255,.76); font-size: 12px; }
.settings-version strong { color: var(--slate-900); }
.settings-card { display: flex; align-items: center; gap: 16px; padding: 22px; border: 1px solid var(--slate-200); border-radius: var(--radius); color: var(--slate-900); background: white; box-shadow: var(--shadow); text-decoration: none; transition: .16s ease; }
.settings-card:hover { border-color: #b8c8e1; transform: translateY(-2px); }.settings-card > span { display: grid; flex: 0 0 46px; place-items: center; height: 46px; border-radius: 12px; color: white; background: linear-gradient(145deg, #168dca, #3e70d8 58%, #655bd5); font-size: 17px; font-weight: 700; }.settings-card p { margin: 5px 0 0; color: var(--slate-500); }
.settings-card > span svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.maintenance-card { max-width: 1040px; }
.maintenance-warning { margin-bottom: 20px; padding: 16px 18px; border: 1px solid #f0c4ca; border-radius: 10px; background: #fff5f6; }
.maintenance-warning h2 { margin: 0 0 6px; color: #9f2030; }
.maintenance-warning p { margin: 0; color: var(--slate-700); }
.maintenance-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; border: 0; }
.maintenance-options legend { grid-column: 1 / -1; margin-bottom: 5px; color: var(--slate-900); font-size: 15px; font-weight: 800; }
.maintenance-option { display: flex; align-items: center; gap: 11px; min-height: 66px; margin: 0; padding: 12px 14px; border: 1px solid var(--slate-200); border-radius: 10px; background: #f8fafc; cursor: pointer; }
.maintenance-option input { flex: 0 0 18px; margin: 0; }
.maintenance-option span { display: grid; gap: 3px; }
.maintenance-option strong { color: var(--slate-900); }
.maintenance-option small { color: var(--slate-500); }
.maintenance-dependency { margin: 14px 0 18px; padding: 11px 13px; border-left: 3px solid #d69a23; color: var(--slate-700); background: #fff9ed; }
.maintenance-verification { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 820px) {
  .maintenance-options, .maintenance-verification { grid-template-columns: 1fr; }
}

form p { margin: 0 0 16px; }
.card > form[method='get'] { display: flex; align-items: stretch; gap: 10px; margin: 0; }
.card > form[method='get'] input { flex: 1 1 auto; width: auto; min-width: 0; height: 44px; }
.card > form[method='get'] select { flex: 0 1 220px; width: auto; height: 44px; }
.card > form[method='get'] button { flex: 0 0 auto; min-width: 104px; min-height: 44px; padding: 9px 22px; border-radius: 9px; box-shadow: 0 6px 14px rgba(198,41,56,.2); }
label { display: block; margin-bottom: 6px; color: var(--slate-700); font-size: 12px; font-weight: 600; }
input, select, textarea { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--slate-300); border-radius: 9px; color: var(--slate-900); background: #fff; outline: none; transition: .15s ease; }
input[type='text']:not([name*='email']):not([name*='username']), textarea:not([readonly]) { text-transform: uppercase; }
input:disabled, select:disabled, textarea:disabled { color: #8b96a8; background: #edf1f6; cursor: not-allowed; }
textarea { min-height: 90px; resize: vertical; }
input[type='checkbox'] { width: 17px; min-height: auto; margin-right: 7px; accent-color: var(--navy-800); }
input:focus, select:focus, textarea:focus { border-color: #5570d6; box-shadow: 0 0 0 3px rgba(83,92,210,.11); }
.helptext { display: block; margin-top: 5px; color: var(--slate-500); font-size: 11px; line-height: 1.5; }
.errorlist { margin: 5px 0; padding: 9px 12px; border-radius: 8px; color: #a51f2d; background: #fff0f1; font-size: 12px; list-style: none; }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 41px; padding: 9px 16px; border: 0; border-radius: 9px; color: white; background: var(--primary-gradient); box-shadow: 0 5px 13px rgba(55,75,182,.18); font-weight: 600; text-decoration: none; cursor: pointer; transition: .15s ease; }
button:hover, .button:hover { transform: translateY(-1px); filter: brightness(1.03); }
.secondary { background: var(--slate-700); box-shadow: none; }
.danger-zone { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--slate-200); }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 18px; }
.form-grid > div { grid-column: 1 / -1; }
.offer-form-section { min-width: 0; }
.offer-field-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 18px; }
.offer-field-grid .form-field, .offer-pricing-grid .form-field { min-width: 0; margin: 0 0 12px; }
.offer-pricing-section { margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--slate-200); }
.offer-section-label { margin-bottom: 13px; color: var(--navy-800); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.offer-pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 18px; }
.offer-pricing-grid.has-status { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.offer-form > .form-actions { margin-top: 6px; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.form-actions .button, .form-actions button { min-width: 112px; }
.table-action { min-height: 28px; margin-left: 6px; padding: 4px 8px; box-shadow: none; font-size: 11px; }

.card:has(table) { overflow-x: auto; background: var(--table-surface); }
.card table { width: 100%; min-width: 2200px; border-collapse: collapse; }
.customer-table-card { overflow-x: visible !important; }
.customer-table-card table { min-width: 0; table-layout: auto; }
.company-table-card { overflow-x: visible !important; }
.company-table-card table { min-width: 0; table-layout: auto; }
.branch-table-card { overflow-x: visible !important; }
.branch-table-card table { min-width: 0; table-layout: fixed; }
.branch-table-card th { padding-inline: 8px; white-space: normal; }
.branch-table-card td { padding-inline: 8px; overflow-wrap: anywhere; }
.user-table-card { overflow-x: visible !important; }
.user-table-card table { min-width: 0; table-layout: auto; }
.user-table-card th:first-child, .user-table-card td:first-child { width: 72px; min-width: 72px; max-width: 72px; padding-inline: 10px; text-align: center; }
.user-list-avatar { position: relative; display: inline-grid; width: 34px; height: 34px; overflow: hidden; place-items: center; border: 1px solid #c9d4e3; border-radius: 50%; background: #fff; box-shadow: 0 3px 9px rgba(16,43,85,.1); vertical-align: middle; }
.user-list-avatar .default-user-icon { width: 25px; height: 25px; }
.user-list-avatar .default-user-icon::before { top: 4px; width: 8px; height: 8px; }
.user-list-avatar .default-user-icon > span { bottom: 3px; width: 16px; height: 8px; }
.user-list-avatar img { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; background: #fff; object-fit: cover; }
.backup-table-card { overflow-x: visible !important; }
.backup-table-card table { min-width: 0; table-layout: fixed; }
.backup-table-card thead { background: #dce5f2; box-shadow: 0 2px 5px rgba(11,23,57,.16); }
.backup-table-card thead th { border-bottom: 1px solid #b8c6da; color: var(--navy-800); background: #dce5f2; background-clip: padding-box; font-weight: 800; text-align: center; }
.backup-table-card thead th:first-child { border-top-left-radius: 9px; }
.backup-table-card thead th:last-child { border-top-right-radius: 9px; }
.backup-table-card th:nth-child(1) { width: 18%; }
.backup-table-card th:nth-child(2), .backup-table-card th:nth-child(3), .backup-table-card th:nth-child(5) { width: 11%; }
.backup-table-card th:nth-child(4) { width: 34%; }
.backup-table-card th:nth-child(6) { width: 15%; }
.backup-table-card td { overflow-wrap: anywhere; }
th { padding: 11px 12px; border-bottom: 1px solid var(--slate-200); color: var(--slate-500); background: #f8fafc; font-size: 10px; font-weight: 700; letter-spacing: .06em; line-height: 1.2; text-align: center; text-transform: uppercase; text-wrap: balance; white-space: normal; }
td { padding: 13px 12px; border-bottom: 1px solid #edf1f5; color: var(--slate-700); text-align: center; }
.list-scroll-card th:nth-child(2),
.list-scroll-card td.customer-name-cell,
.renewal-dashboard-table th:first-child,
.renewal-dashboard-table td:first-child,
.birthday-table-scroll th:first-child,
.birthday-table-scroll td:first-child { text-align: left; }
tbody tr { background: var(--table-surface); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #eef4fc; }
.selectable-table tbody tr[data-selectable-offer], .selectable-table tbody tr[data-selectable-policy], .selectable-table tbody tr[data-selectable-customer], .selectable-table tbody tr[data-selectable-bonus], .selectable-table tbody tr[data-selectable-user], .selectable-table tbody tr[data-selectable-branch] { cursor: pointer; transition: background .15s ease, box-shadow .15s ease; }
[data-cancelled-policy] { cursor: pointer; transition: background .15s ease; }
.selectable-table tbody tr[data-selectable-offer]:hover, .selectable-table tbody tr[data-selectable-policy]:hover, .selectable-table tbody tr[data-selectable-customer]:hover, .selectable-table tbody tr[data-selectable-bonus]:hover, .selectable-table tbody tr[data-selectable-user]:hover, .selectable-table tbody tr[data-selectable-branch]:hover { background: #f2f6fd; }
.selectable-table tbody tr[data-selectable-offer].is-selected, .selectable-table tbody tr[data-selectable-policy].is-selected, .selectable-table tbody tr[data-selectable-customer].is-selected, .selectable-table tbody tr[data-selectable-bonus].is-selected, .selectable-table tbody tr[data-selectable-user].is-selected, .selectable-table tbody tr[data-selectable-branch].is-selected { background: #e5eefc; box-shadow: inset 4px 0 0 var(--blue-600); }
.bonus-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin: 0 0 24px; }
.bonus-detail-item { padding: 12px 14px; border: 1px solid var(--slate-200); border-radius: 9px; background: #f8faff; }
.bonus-detail-item small { display: block; margin-bottom: 5px; color: var(--slate-500); font-size: 11px; }
.bonus-detail-item strong { color: var(--slate-900); overflow-wrap: anywhere; }
.bonus-add-panel { width: min(640px, calc(100vw - 32px)); }
.bonus-customer-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin: 18px 0 14px; }
.bonus-customer-results { display: grid; gap: 8px; max-height: 310px; min-height: 72px; margin-bottom: 18px; padding: 4px; overflow-y: auto; }
.bonus-customer-result { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; padding: 12px 14px; border: 1px solid var(--slate-200); border-radius: 10px; color: var(--slate-900); background: #f8faff; box-shadow: none; text-align: left; }
.bonus-customer-result:hover:not(:disabled) { border-color: var(--blue-600); background: #eef5ff; transform: none; }
.bonus-customer-result.is-selected { border-color: var(--blue-600); background: #e5eefc; box-shadow: inset 3px 0 0 var(--blue-600); }
.bonus-customer-result:disabled { color: var(--slate-500); background: var(--slate-100); cursor: not-allowed; opacity: .75; }
.bonus-customer-result-main { display: grid; min-width: 0; gap: 3px; }
.bonus-customer-result-main strong,
.bonus-customer-result-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bonus-customer-result-main small { color: var(--slate-500); font-weight: 500; }
.bonus-customer-result-state { flex: 0 0 auto; color: var(--blue-600); font-size: 12px; font-weight: 800; }
.bonus-go-button,
.bonus-portal-button {
    height: 41px;
    min-height: 41px;
    padding-top: 0;
    padding-bottom: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
.bonus-go-button { min-width: 52px; }
.bonus-portal-access-form { margin: 0; display: inline-flex; align-items: center; }
.bonus-portal-button { min-width: 86px; white-space: nowrap; border: 0; }
.bonus-portal-button:disabled { cursor: not-allowed; opacity: .48; box-shadow: none; }
.bonus-customer-card { max-width: 980px; }
.bonus-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--slate-200); }
.bonus-card-heading small { display: block; margin-bottom: 5px; color: var(--slate-500); font-weight: 700; }
.bonus-card-heading h2 { margin: 0; }
.bonus-address-item { grid-column: 1 / -1; }
.bonus-card-page-head p,
.bonus-policy-heading p { margin: 4px 0 0; color: var(--slate-500); }
.bonus-policy-section { margin-top: 16px; padding: 16px; overflow-x: hidden !important; }
.bonus-policy-page-shell .bonus-policy-section {
  margin-top: 0;
  padding: 0;
  overflow-x: auto !important;
  overflow-y: auto !important;
}
.bonus-policy-page-shell .bonus-policy-table-wrap {
  min-width: 2100px;
  overflow: visible;
  border: 0;
  border-radius: 0;
}
.bonus-policy-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.bonus-policy-heading h2 { margin: 0; }
.bonus-policy-table-wrap { width: 100%; overflow: hidden; border: 1px solid var(--slate-200); border-radius: 10px; }
.bonus-policy-table { width: 100% !important; min-width: 0 !important; table-layout: fixed; border-collapse: collapse; }
.bonus-policy-table th { padding: 11px 5px; overflow: hidden; color: var(--navy-800); background: #dce5f2; font-size: 9px; letter-spacing: .01em; line-height: 1.15; text-overflow: ellipsis; }
.bonus-policy-table td { padding: 11px 5px; overflow: hidden; font-size: 11px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.bonus-policy-table .bonus-col-status { width: 3%; }
.bonus-policy-table .bonus-col-branch { width: 5.5%; }
.bonus-policy-table .bonus-col-plate { width: 4.5%; }
.bonus-policy-table .bonus-col-license { width: 4.5%; }
.bonus-policy-table .bonus-col-chassis { width: 9%; }
.bonus-policy-table .bonus-col-engine { width: 5%; }
.bonus-policy-table .bonus-col-year { width: 4%; }
.bonus-policy-table .bonus-col-brand { width: 5%; }
.bonus-policy-table .bonus-col-model { width: 5%; }
.bonus-policy-table .bonus-col-company { width: 8%; }
.bonus-policy-table .bonus-col-number { width: 7%; }
.bonus-policy-table .bonus-col-amount { width: 6%; }
.bonus-policy-table .bonus-col-date { width: 5%; }
.bonus-policy-table .bonus-col-document { width: 8%; }
.portal-document-control { display: grid; grid-template-columns: minmax(0, 1fr) 31%; width: 100%; min-height: 34px; overflow: hidden; border: 1px solid #b7c7df; border-radius: 7px; background: #edf3fb; }
.portal-document-control form { display: flex; min-width: 0; margin: 0; }
.portal-document-control form + form { border-left: 1px solid #b7c7df; }
.portal-document-upload,
.portal-document-delete { display: flex; width: 100%; min-height: 33px; align-items: center; justify-content: center; gap: 3px; margin: 0; padding: 4px; border: 0; border-radius: 0; box-shadow: none; font-size: 9px; font-weight: 800; line-height: 1; white-space: nowrap; cursor: pointer; }
.portal-document-upload { color: #174c9b; background: #edf4ff; }
.portal-document-upload input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.portal-document-delete { min-width: 0; color: #a42b38; background: #fff0f2; }
.portal-document-delete:disabled { color: #8995a6; background: #f1f3f6; cursor: not-allowed; opacity: 1; }
.portal-document-control.has-document { border-color: #79c9a3; box-shadow: 0 0 0 2px rgba(32,165,104,.08); }
.portal-document-control.has-document .portal-document-upload { color: #11633d; background: #e3f7ec; }
.portal-document-control.has-document .portal-document-upload span { display: inline-grid; width: 13px; height: 13px; place-items: center; border-radius: 50%; color: white; background: #20a568; font-size: 8px; }
.portal-document-upload:hover { filter: brightness(.97); }
.portal-document-delete:not(:disabled):hover { color: white; background: #c93849; }
.inspection-warning-date { color: #b85f10 !important; background: #fff0df !important; font-weight: 900 !important; box-shadow: inset 0 0 0 1px #f2c38f; }
.selectable-table tbody tr[data-selectable-portal-policy] {
  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease;
}
.selectable-table tbody tr[data-selectable-portal-policy]:hover { background: #f2f6fd; }
.selectable-table tbody tr[data-selectable-portal-policy].is-selected {
  background: #e5eefc;
  box-shadow: inset 4px 0 0 var(--blue-600);
}
.portal-policy-edit-panel { width: min(680px, calc(100vw - 32px)); }
.portal-policy-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}
.portal-policy-edit-grid p { margin: 0; }
.portal-policy-edit-panel .app-modal-actions {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--slate-200);
}
.portal-policy-edit-grid label {
  display: block;
  margin-bottom: 6px;
  color: var(--slate-700);
  font-size: 12px;
  font-weight: 700;
}
td a { font-weight: 600; text-decoration: none; }
.card:has(table) { overflow-x: auto; }

.qr { display: block; width: 220px; height: 220px; margin: 18px auto; border: 10px solid white; border-radius: 15px; box-shadow: 0 8px 24px rgba(11,23,57,.12); }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 20px 0; }
.codes code { padding: 10px; border-radius: 8px; background: var(--slate-100); text-align: center; }

.auth-body { min-height: 100vh; background: #e9eff7; }
.auth-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(500px, 49%) 1fr; }
.auth-brand-panel { position: relative; display: flex; align-items: center; padding: clamp(54px, 7.2vw, 124px); overflow: hidden; color: white; background: linear-gradient(145deg, #0f46b5 0%, #1450c9 56%, #2d6ddd 100%); isolation: isolate; }
.auth-brand-panel::before { position: absolute; z-index: -1; top: -20%; right: -24%; width: 700px; height: 700px; border: 1px solid rgba(119,160,224,.13); border-radius: 50%; box-shadow: 0 0 0 90px rgba(68,115,185,.038), 0 0 0 180px rgba(68,115,185,.022); content: ''; }
.auth-brand-panel::after { position: absolute; z-index: -1; right: -100px; bottom: -180px; width: 430px; height: 430px; border-radius: 50%; background: radial-gradient(circle, rgba(195,39,55,.25), rgba(195,39,55,0) 69%); content: ''; }
.auth-digital-grid { position: absolute; z-index: -2; inset: 0; opacity: .19; background-image: linear-gradient(rgba(146,179,229,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(146,179,229,.12) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(110deg, #000 15%, transparent 88%); }
.auth-signal-map { position: absolute; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; }
.auth-signal-map::before, .auth-signal-map::after { position: absolute; height: 1px; background: linear-gradient(90deg, transparent, rgba(78,142,232,.48), transparent); content: ''; transform: rotate(-18deg); transform-origin: left; animation: authSignal 8s ease-in-out infinite alternate; }
.auth-signal-map::before { top: 39%; left: 11%; width: 72%; }
.auth-signal-map::after { top: 68%; left: 29%; width: 55%; animation-delay: -3s; }
.auth-signal-map span { position: absolute; width: 7px; height: 7px; border: 1px solid rgba(100,165,255,.72); border-radius: 50%; background: #102b5c; box-shadow: 0 0 0 5px rgba(71,132,222,.08), 0 0 19px rgba(74,141,237,.4); animation: authNode 3.2s ease-in-out infinite; }
.auth-signal-map span:nth-child(1) { top: 34%; left: 20%; }
.auth-signal-map span:nth-child(2) { top: 48%; left: 64%; animation-delay: -.8s; }
.auth-signal-map span:nth-child(3) { top: 70%; left: 37%; animation-delay: -1.6s; }
.auth-signal-map span:nth-child(4) { top: 24%; left: 77%; animation-delay: -2.4s; }
@keyframes authNode { 0%,100% { opacity: .55; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.18); } }
@keyframes authSignal { from { opacity: .48; transform: rotate(-18deg) translateX(-12px); } to { opacity: .9; transform: rotate(-18deg) translateX(20px); } }
.auth-brand-content { position: relative; z-index: 1; width: 100%; max-width: 600px; }
.auth-brand-logo { position: absolute; z-index: 2; top: 48px; left: 58px; display: block; width: 245px; max-height: 48px; object-fit: contain; object-position: left center; }
.auth-brand-kicker { display: flex; align-items: center; gap: 10px; color: #8fa9d1; font-size: 9px; font-weight: 800; letter-spacing: .17em; }
.auth-brand-kicker span { width: 25px; height: 2px; background: var(--red-500); }
.auth-brand-content h1 { max-width: 590px; margin: 23px 0 17px; font-size: clamp(39px, 4vw, 58px); line-height: 1.01; letter-spacing: -.035em; }
.auth-brand-content > p { max-width: 520px; margin: 0; color: #b7c7df; font-size: 14px; line-height: 1.75; }
.auth-capabilities { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; margin-top: 31px; color: #cbd8e9; font-size: 10px; font-weight: 650; }
.auth-capabilities span { position: relative; padding-left: 13px; }
.auth-capabilities span::before { position: absolute; top: 50%; left: 0; width: 4px; height: 4px; border-radius: 50%; background: #4c83d4; box-shadow: 0 0 8px rgba(76,131,212,.75); content: ''; transform: translateY(-50%); }
.auth-security { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 30px; color: #c8d5e8; font-size: 9px; font-weight: 650; }
.auth-security i { width: 1px; height: 13px; background: rgba(255,255,255,.18); }
.auth-content { position: relative; display: flex; min-width: 0; align-items: center; justify-content: center; padding: 74px 42px 40px; background: radial-gradient(circle at 76% 14%, rgba(35,99,209,.1), transparent 26%), radial-gradient(circle at 20% 91%, rgba(76,112,166,.08), transparent 31%), linear-gradient(145deg, #f7f9fc, #e8eef6); }
.auth-page-meta { position: absolute; top: 27px; right: 32px; left: 32px; display: flex; align-items: center; justify-content: space-between; color: #8493a8; font-size: 9px; letter-spacing: .09em; }
.auth-page-meta strong { color: var(--navy-800); font-size: 11px; }
.auth-page-meta span { display: flex; align-items: center; gap: 8px; letter-spacing: 0; }

/* İki bölümlü, merkezlenmiş giriş ekranı */
.auth-body {
  display: flex; min-height: 100vh; align-items: center; justify-content: center;
  padding: 38px;
  background:
    radial-gradient(circle at 14% 12%, rgba(74,183,207,.34), transparent 31%),
    radial-gradient(circle at 88% 88%, rgba(199,41,86,.28), transparent 32%),
    linear-gradient(128deg, #397fc4 0%, #536ee0 46%, #7652dc 72%, #b442b2 100%);
}
.auth-shell {
  width: min(1080px, calc(100vw - 76px)); height: min(650px, calc(100vh - 76px)); min-height: 590px;
  grid-template-columns: minmax(0, 55%) minmax(390px, 45%);
  overflow: hidden; border: 1px solid rgba(255,255,255,.28); border-radius: 28px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 35px 90px rgba(22,30,87,.3), 0 8px 24px rgba(18,32,83,.14);
}
.auth-brand-panel {
  align-items: stretch; padding: 54px 58px;
  background: linear-gradient(152deg, #2cb0bd 0%, #2586dd 48%, #2764d8 100%);
}
.auth-brand-panel::before { top: auto; right: -155px; bottom: -190px; width: 470px; height: 470px; border-color: rgba(255,255,255,.14); box-shadow: 0 0 0 60px rgba(255,255,255,.045); }
.auth-brand-panel::after { right: auto; bottom: auto; top: -180px; left: -170px; background: radial-gradient(circle, rgba(255,255,255,.13), rgba(255,255,255,0) 69%); }
.auth-digital-grid { opacity: .14; mask-image: linear-gradient(125deg, #000 10%, transparent 90%); }
.auth-signal-map { opacity: .48; }
.auth-brand-content { display: flex; height: 100%; max-width: 500px; flex-direction: column; justify-content: center; }
.auth-brand-kicker { color: rgba(255,255,255,.82); }
.auth-brand-kicker span { background: #fff; }
.auth-brand-content h1 { max-width: 480px; margin: 0 0 18px; font-size: clamp(38px, 3.5vw, 52px); line-height: 1.06; }
.auth-brand-content > p { max-width: 455px; color: rgba(255,255,255,.86); font-size: 15px; }
.auth-capabilities { color: rgba(255,255,255,.86); }
.auth-capabilities span::before { background: #fff; box-shadow: 0 0 9px rgba(255,255,255,.68); }
.auth-security { margin-top: auto; color: rgba(255,255,255,.86); }
.auth-content { padding: 48px; background: linear-gradient(155deg, #ffffff 0%, #f8f7fc 100%); }
.auth-page-meta { top: 30px; right: 38px; left: 38px; }
.login-card { width: min(100%, 390px); padding: 0; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
.login-card::before, .login-card::after { display: none; }
.login-card-top { margin-bottom: 30px; }
.login-card-heading { margin-bottom: 30px; }
.login-card-heading h1 { color: #172033; font-size: 31px; }
.login-card-heading p { font-size: 13px; }
.login-field input { height: 54px; border-color: #c7d4e6; border-radius: 14px; background: #edf3fc; }
.login-field input:hover, .login-field input:focus { background: #fff; }
.login-submit { min-height: 54px; border-radius: 14px; background: linear-gradient(105deg, #1450c9 0%, #4c70d7 48%, #d53366 100%); box-shadow: 0 13px 28px rgba(45,74,168,.23); }
.login-submit:hover { background: linear-gradient(105deg, #1048bd 0%, #4267cd 48%, #c82d5e 100%); box-shadow: 0 16px 32px rgba(45,74,168,.28); }
.login-card-footer { margin-top: 25px; }

.sidebar-overlay { display: none; }
@media (max-width: 1500px) {
  .list-page-toolbar .page-head { align-items: flex-start; flex-wrap: wrap; gap: 9px; }
  .list-head-tools { flex: 1 0 100%; }
}
@media (max-width: 1050px) {
  .security-pill { display: none; }
  .sidebar { width: 220px; }
  .main-content { margin-left: 220px; padding-right: 22px; padding-left: 22px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-metric-grid .branch-chart-card { grid-column: span 2; }
  .user-form-layout { grid-template-columns: minmax(380px, 470px) minmax(320px, 1fr); gap: 20px; }
  .auth-body { padding: 24px; }
  .auth-shell { width: calc(100vw - 48px); height: calc(100vh - 48px); grid-template-columns: minmax(0, 52%) minmax(380px, 48%); }
  .auth-brand-panel { padding: 44px 40px; }
  .auth-brand-logo { top: 38px; left: 40px; width: 215px; max-height: 43px; }
  .auth-content { padding-right: 34px; padding-left: 34px; }
}
@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .brand-copy span { display: none; }
  .brand-copy img { width: 145px; max-height: 34px; }
  .topbar-welcome { display: none; }
  .sidebar { width: min(300px, 86vw); transform: translateX(-105%); box-shadow: 15px 0 35px rgba(7,18,43,.18); transition: transform .22s ease; }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-overlay { position: fixed; z-index: 35; inset: var(--topbar-height) 0 0; background: rgba(7,18,43,.38); }
  body.sidebar-open .sidebar-overlay { display: block; }
  .main-content { margin-left: 0; padding: calc(var(--topbar-height) + 16px) 16px 24px; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .list-page-shell { display: block; height: auto; }
  .list-page-toolbar { position: static; padding-bottom: 10px; }
  .list-head-tools { width: 100%; align-items: stretch; flex-direction: column; }
  .list-head-tools .selection-actions { justify-content: flex-start; flex-wrap: wrap; }
  .list-inline-search { width: 100%; min-width: 0; max-width: none; flex-basis: auto; }
  .list-scroll-card { max-height: none; overflow: auto !important; }
  .list-scroll-card thead { position: static; box-shadow: none; }
  .auth-body { padding: 0; background: linear-gradient(145deg, #eef4fb, #e8edf6); }
  .auth-shell { width: 100%; height: auto; min-height: 100vh; border: 0; border-radius: 0; grid-template-columns: 1fr; box-shadow: none; }
  .auth-brand-panel { display: none; }
  .auth-content { min-height: 100vh; padding: 72px 20px 28px; }
  .auth-page-meta { top: 24px; right: 20px; left: 20px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .renewal-dashboard-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .offer-field-grid { grid-template-columns: 1fr 1fr; }
  .offer-pricing-grid { grid-template-columns: 1fr 1fr; }
  .offer-pricing-grid.has-status { grid-template-columns: 1fr 1fr; }
  .user-form-layout { grid-template-columns: 1fr; }
  .permission-guide { position: static; }
  .birthday-person-card { flex-basis: min(72vw, 390px); }
}
@media (max-width: 520px) {
  .topbar { padding: 0 14px; }
  .brand-copy strong { font-size: 14px; }
  .user-profile-copy strong { max-width: 110px; }
  .card { padding: 17px; }
  .codes { grid-template-columns: 1fr; }
  .metric-grid, .quick-grid { grid-template-columns: 1fr; }
  .dashboard-metric-grid .branch-chart-card { grid-column: auto; }
  .branch-chart-content { grid-template-columns: 128px minmax(0, 1fr); }
  .settings-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .offer-field-grid, .offer-pricing-grid { grid-template-columns: 1fr; }
  .offer-pricing-grid.has-status { grid-template-columns: 1fr; }
  .card > form[method='get'] { align-items: stretch; flex-direction: column; }
  .card > form[method='get'] select, .card > form[method='get'] button { width: 100%; flex-basis: auto; }
  .conversion-grid { grid-template-columns: 1fr; }
  .login-card { padding: 25px 20px 22px; border-radius: 16px; }
  .login-card-top { margin-bottom: 21px; }
  .login-card-heading { margin-bottom: 21px; }
  .login-card-heading h1 { font-size: 25px; }
  .login-card-footer { gap: 10px; }
  .login-card-footer span:last-child { text-align: right; }
  .birthday-section-head { align-items: flex-start; gap: 10px; }
  .birthday-head-meta { width: 100%; justify-content: space-between; }
  .birthday-carousel { grid-template-columns: 28px minmax(0, 1fr) 28px; gap: 6px; }
  .birthday-nav { width: 28px; height: 48px; }
  .birthday-person-card { flex-basis: 88%; min-width: 245px; }
  .birthday-person-details { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-signal-map::before, .auth-signal-map::after, .auth-signal-map span { animation: none; }
}

.customer-portal-body { min-height: 100vh; color: #333333; background: #f2f5f9; }
.customer-portal-auth { display: grid; min-height: 100vh; grid-template-columns: minmax(0, 52%) minmax(390px, 48%); }
.customer-portal-brand { display: flex; position: relative; flex-direction: column; justify-content: center; padding: clamp(48px, 8vw, 130px); color: white; background: linear-gradient(145deg, #333333, #1450c9 62%, #1450c9); }
.customer-portal-auth-logo { position: absolute; top: clamp(30px, 4vw, 56px); left: clamp(48px, 8vw, 130px); width: clamp(190px, 18vw, 260px); max-height: 58px; object-fit: contain; object-position: left center; }
.customer-portal-brand h1 { max-width: 620px; margin: 20px 0; font-size: clamp(38px, 5vw, 64px); line-height: 1.05; }
.customer-portal-brand p { max-width: 560px; color: #e5edff; font-size: 16px; }
.customer-portal-kicker, .customer-portal-eyebrow { color: #2e69d3; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.customer-portal-brand .customer-portal-kicker { color: #fff; }
.customer-portal-login-panel { display: grid; place-items: center; padding: 42px; background: linear-gradient(145deg, #fff, #edf2fa); }
.customer-portal-login-card { width: min(100%, 430px); padding: 38px; border: 1px solid #dce5f1; border-radius: 20px; background: white; box-shadow: 0 24px 65px rgba(20,50,110,.13); }
.customer-portal-login-card h2 { margin: 8px 0 4px; font-size: 30px; }
.customer-portal-body .login-submit { background: linear-gradient(105deg, #1450c9 0%, #1450c9 72%, #ff0000 100%); }
.customer-portal-body .login-submit:hover { background: linear-gradient(105deg, #1042a7 0%, #1450c9 68%, #e60000 100%); }
.customer-portal-help { margin: 24px 0 0; color: #728096; font-size: 12px; text-align: center; }
.customer-portal-back { display: block; margin-top: 22px; text-align: center; text-decoration: none; }
.portal-code-field input { text-align: center; font-size: 24px; font-weight: 800; letter-spacing: .35em; }
.portal-resend-form { margin: 14px 0 0; }
.portal-resend-form button { width: 100%; min-height: 44px; border: 1px solid #b9cae0; border-radius: 11px; color: #1558aa; background: #f4f8fd; box-shadow: none; font-size: 12px; font-weight: 800; }
.portal-resend-form button:hover { color: white; background: #1558aa; }
.portal-resend-notice { margin: 16px 0; padding: 11px 13px; border: 1px solid #a9dcc4; border-radius: 9px; color: #12633e; background: #e9f8f0; font-size: 12px; line-height: 1.5; }
.customer-portal-header { display: flex; position: sticky; z-index: 50; top: 0; align-items: center; justify-content: space-between; min-height: 76px; padding: 12px clamp(20px, 5vw, 86px); border-bottom: 3px solid #ff0000; background: #1450c9; box-shadow: 0 6px 22px rgba(20,80,201,.22); }
.customer-portal-logo { display: flex; align-items: center; color: #fff; line-height: 1; text-decoration: none; }
.customer-portal-logo img { display: block; width: clamp(180px, 16vw, 240px); max-height: 48px; object-fit: contain; object-position: left center; }
.customer-portal-logo strong { font-size: 21px; letter-spacing: -.02em; }
.customer-portal-logo span { margin-top: 6px; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .05em; }
.customer-portal-nav { display: flex; align-items: center; gap: 26px; }
.customer-portal-nav > a { color: #344861; font-size: 12px; font-weight: 700; text-decoration: none; }
.customer-portal-nav > a:hover { color: #1450c9; }
.customer-portal-nav form { margin: 0; }
.customer-portal-nav button { min-height: 40px; padding: 9px 19px; border: 1px solid rgba(255,255,255,.35); border-radius: 6px; background: #333333; box-shadow: none; }
.customer-portal-nav button:hover { background: #ff0000; }
.customer-portal-hero { padding: 46px clamp(20px, 5vw, 86px) 84px; color: white; background: radial-gradient(circle at 82% 12%, rgba(255,255,255,.16), transparent 26%), linear-gradient(118deg, #333333 0%, #1450c9 72%, #1450c9 100%); }
.customer-portal-hero > div { max-width: 840px; }
.customer-portal-hero-kicker { margin: 0 0 12px; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.customer-portal-hero h1 { max-width: 760px; margin: 0; font-size: clamp(30px, 3.2vw, 48px); line-height: 1.08; letter-spacing: -.035em; }
.customer-portal-hero p:last-child { max-width: 620px; margin: 16px 0 0; color: #d4e6f9; font-size: 14px; }
.customer-portal-main { position: relative; z-index: 2; margin-top: -48px; padding: 0 clamp(16px, 4vw, 70px) 50px; }
.customer-portal-welcome { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.customer-portal-welcome { padding: 24px 28px; border: 1px solid #e0e6ee; border-radius: 13px; background: #fff; box-shadow: 0 14px 35px rgba(20,50,80,.08); }
.customer-portal-welcome h2 { margin: 5px 0; color: #333333; font-size: clamp(22px, 2.2vw, 32px); }
.customer-portal-welcome p { margin: 0; color: #728096; }
.customer-portal-status { padding: 8px 12px; border: 1px solid #bde2cf; border-radius: 999px; color: #147248; background: #e9f8f0; font-size: 11px; font-weight: 800; white-space: nowrap; }
.customer-portal-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(300px, 1.45fr); gap: 14px; margin-bottom: 22px; }
.customer-portal-summary article { display: grid; min-height: 94px; align-content: center; padding: 17px 20px; border: 1px solid #dde5ee; border-radius: 11px; background: #fff; box-shadow: 0 8px 22px rgba(20,50,80,.055); }
.customer-portal-summary span { color: #738197; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.customer-portal-summary strong { margin-top: 7px; color: #1450c9; font-size: 25px; }
.customer-portal-summary .customer-portal-support { color: white; border-color: #1450c9; background: linear-gradient(120deg, #333333, #1450c9); }
.customer-portal-summary .customer-portal-support span { color: #d8eaff; font-size: 11px; }
.customer-portal-summary .customer-portal-support strong { color: #fff; font-size: 16px; }
.customer-portal-summary .customer-portal-support { min-height: 106px; box-sizing: border-box; }
.customer-portal-contact-lines {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 7px;
}
.customer-portal-contact-lines a { color: #fff; font-size: 14.5px; font-weight: 800; line-height: 1.35; text-decoration: none; }
.customer-portal-contact-email { justify-self: start; }
.customer-portal-contact-phones { display: grid; justify-items: end; gap: 8px; }
.customer-portal-contact-phone { display: inline-flex; align-items: center; justify-content: flex-end; gap: 9px; font-size: 15.5px !important; letter-spacing: .01em; white-space: nowrap; }
.customer-portal-contact-phone svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.customer-portal-contact-whatsapp svg { fill: none; }
.customer-portal-contact-lines a:hover { color: #fff; text-decoration: underline; }
.customer-portal-policy-card { overflow: hidden; border: 1px solid #dce5ee; border-radius: 12px; background: white; box-shadow: 0 15px 38px rgba(20,50,80,.07); }
.customer-portal-management-tabs {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 0 24px;
  background: #fff;
}
.customer-portal-management-tabs a {
  display: flex;
  width: 156px;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  color: #52657e;
  border: 1px solid #dbe4ef;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  background: #f5f8fc;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.customer-portal-management-tabs a:hover { color: #1450c9; border-color: #a9c3ee; background: #edf4ff; }
.customer-portal-management-tabs a.is-active { color: #fff; border-color: #1450c9; background: linear-gradient(135deg, #1450c9, #6757df); box-shadow: 0 4px 10px rgba(20,80,201,.16); }
.customer-portal-policy-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; border-bottom: 1px solid #e2e8ef; }
.customer-portal-policy-head span { color: #1764ab; font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.customer-portal-policy-head h3 { margin: 0; color: #333333; font-size: 24px; letter-spacing: -.02em; }
.customer-portal-policy-head p { margin: 0; color: #7b8798; font-size: 11px; }
.customer-portal-plate-search { display: flex; align-items: center; gap: 7px; margin: 0; }
.customer-portal-plate-search input { width: 210px; height: 38px; border-radius: 7px; background: #f6f8fb; font-size: 12px; }
.customer-portal-plate-search button,
.customer-portal-plate-search a { display: inline-flex; min-width: 62px; min-height: 38px; align-items: center; justify-content: center; padding: 7px 12px; border-radius: 7px; font-size: 11px; font-weight: 800; text-decoration: none; }
.customer-portal-plate-search a { color: #55657b; border: 1px solid #d4dce7; background: #fff; }
.customer-portal-table-wrap { width: 100%; overflow: hidden; }
.customer-portal-policy-table { width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; }
.customer-portal-policy-table th { padding: 13px 3px; overflow: hidden; color: #fff; background: #1450c9; font-family: "Segoe UI", Inter, Arial, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0; line-height: 1.2; text-overflow: ellipsis; white-space: normal; }
.customer-portal-policy-table td { padding: 14px 3px; overflow: hidden; border-bottom: 1px solid #e4eaf2; color: #344861; font-family: "Segoe UI", Inter, Arial, sans-serif; font-size: 13px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.customer-portal-policy-table th:nth-child(1), .customer-portal-policy-table td:nth-child(1) { width: 4%; }
.customer-portal-policy-table th:nth-child(2), .customer-portal-policy-table td:nth-child(2) { width: 6%; }
.customer-portal-policy-table th:nth-child(3), .customer-portal-policy-table td:nth-child(3) { width: 5%; }
.customer-portal-policy-table th:nth-child(4), .customer-portal-policy-table td:nth-child(4) { width: 6%; }
.customer-portal-policy-table th:nth-child(5), .customer-portal-policy-table td:nth-child(5) { width: 9%; }
.customer-portal-policy-table th:nth-child(6), .customer-portal-policy-table td:nth-child(6) { width: 5%; }
.customer-portal-policy-table th:nth-child(7), .customer-portal-policy-table td:nth-child(7) { width: 4%; }
.customer-portal-policy-table th:nth-child(8), .customer-portal-policy-table td:nth-child(8),
.customer-portal-policy-table th:nth-child(9), .customer-portal-policy-table td:nth-child(9) { width: 5%; }
.customer-portal-policy-table th:nth-child(10), .customer-portal-policy-table td:nth-child(10) { width: 8%; }
.customer-portal-policy-table th:nth-child(11), .customer-portal-policy-table td:nth-child(11) { width: 8%; }
.customer-portal-policy-table th:nth-child(12), .customer-portal-policy-table td:nth-child(12) { width: 6%; }
.customer-portal-policy-table th:nth-child(13), .customer-portal-policy-table td:nth-child(13),
.customer-portal-policy-table th:nth-child(14), .customer-portal-policy-table td:nth-child(14),
.customer-portal-policy-table th:nth-child(15), .customer-portal-policy-table td:nth-child(15) { width: 5.5%; }
.customer-portal-policy-table th:nth-child(16), .customer-portal-policy-table td:nth-child(16),
.customer-portal-policy-table th:nth-child(17), .customer-portal-policy-table td:nth-child(17) { width: 6.25%; }
.customer-portal-policy-table tbody tr:nth-child(even) { background: #f8fafc; }
.customer-portal-policy-table tbody tr:hover { background: #eef5fb; }
.customer-portal-policy-table.customer-portal-fleet-table th,
.customer-portal-policy-table.customer-portal-fleet-table td,
.customer-portal-policy-table.customer-portal-vize-table th,
.customer-portal-policy-table.customer-portal-vize-table td { width: auto; }
.customer-portal-fleet-table th:nth-child(1), .customer-portal-fleet-table td:nth-child(1) { width: 10%; }
.customer-portal-fleet-table th:nth-child(2), .customer-portal-fleet-table td:nth-child(2) { width: 13%; }
.customer-portal-fleet-table th:nth-child(3), .customer-portal-fleet-table td:nth-child(3) { width: 21%; }
.customer-portal-fleet-table th:nth-child(4), .customer-portal-fleet-table td:nth-child(4) { width: 13%; }
.customer-portal-fleet-table th:nth-child(5), .customer-portal-fleet-table td:nth-child(5) { width: 9%; }
.customer-portal-fleet-table th:nth-child(6), .customer-portal-fleet-table td:nth-child(6),
.customer-portal-fleet-table th:nth-child(7), .customer-portal-fleet-table td:nth-child(7) { width: 12%; }
.customer-portal-fleet-table th:nth-child(8), .customer-portal-fleet-table td:nth-child(8) { width: 10%; }
.customer-portal-vize-table th:nth-child(1), .customer-portal-vize-table td:nth-child(1) { width: 12%; }
.customer-portal-vize-table th:nth-child(2), .customer-portal-vize-table td:nth-child(2) { width: 24%; }
.customer-portal-vize-table th:nth-child(3), .customer-portal-vize-table td:nth-child(3),
.customer-portal-vize-table th:nth-child(4), .customer-portal-vize-table td:nth-child(4) { width: 15%; }
.customer-portal-vize-table th:nth-child(5), .customer-portal-vize-table td:nth-child(5) { width: 10%; }
.customer-portal-vize-table th:nth-child(6), .customer-portal-vize-table td:nth-child(6) { width: 14%; }
.customer-portal-vize-table th:nth-child(7), .customer-portal-vize-table td:nth-child(7) { width: 10%; }
.customer-policy-state { display: inline-flex; min-width: 52px; justify-content: center; padding: 5px 7px; border-radius: 999px; color: #68768a; background: #edf0f4; font-size: 9px; font-weight: 800; }
.customer-policy-state.is-active { color: #11643e; background: #e4f7ed; }
.customer-document-link { display: inline-flex; min-width: 58px; justify-content: center; padding: 7px 10px; border-radius: 6px; color: white; background: #1450c9; font-weight: 800; text-decoration: none; }
.customer-document-link:hover { background: #ff0000; }
.customer-portal-inspection-card { margin-top: 22px; overflow: hidden; border: 1px solid #dce5ee; border-radius: 12px; background: #fff; box-shadow: 0 15px 38px rgba(20,50,80,.07); }
.customer-portal-inspection-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 21px 24px; border-bottom: 1px solid #e2e8ef; }
.customer-portal-inspection-head span { color: #ff0000; font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.customer-portal-inspection-head h3 { margin: 5px 0 0; color: #333333; font-size: 20px; }
.customer-portal-inspection-head p { margin: 0; color: #7b8798; font-size: 11px; }
.customer-portal-inspection-list { padding: 0 24px 12px; }
.customer-portal-inspection-row { display: grid; grid-template-columns: 18% minmax(0, 1fr) 22% 14%; align-items: center; min-height: 48px; border-bottom: 1px solid #e8edf3; color: #405168; font-size: 11px; }
.customer-portal-inspection-row.is-head { min-height: 38px; color: #748297; font-size: 9px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.customer-portal-inspection-row:last-child { border-bottom: 0; }
.customer-portal-inspection-row strong { color: #153a68; }
.inspection-days { justify-self: start; padding: 5px 9px; border-radius: 999px; color: #a25018; background: #fff0df; font-size: 10px; font-weight: 800; }
.customer-portal-inspection-empty { margin: 0; padding: 25px 0 14px; color: #718095; font-size: 12px; }
.customer-portal-footer { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 30px clamp(20px, 5vw, 86px); color: #d6e3f2; border-top: 3px solid #ff0000; background: #333333; }
.customer-portal-footer > div { display: grid; gap: 5px; }
.customer-portal-footer strong { color: white; font-size: 16px; }
.customer-portal-footer span, .customer-portal-footer a { color: #aebfd3; font-size: 11px; text-decoration: none; }
.portal-management-table-wrap { width: 100%; overflow: hidden; }
.card .portal-management-table { width: 100% !important; min-width: 0 !important; table-layout: fixed; }
.portal-management-table .portal-management-name { width: 38%; }
.portal-management-table .portal-management-identity { width: 12%; }
.portal-management-table .portal-management-email { width: 18%; }
.portal-management-table .portal-management-status { width: 12%; }
.portal-management-table .portal-management-action { width: 20%; }
.portal-management-table th,
.portal-management-table td { min-width: 0; padding-right: 6px; padding-left: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-management-table th { min-width: 0; padding-right: 5px; padding-left: 5px; overflow: hidden; font-size: 9px; white-space: nowrap; }
.portal-management-customer-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-management-table td:last-child,
.portal-management-table th:last-child { text-align: center; }
.portal-management-toolbar { flex: 0 0 auto; align-items: center; flex-direction: row; flex-wrap: nowrap; }
.portal-management-search { width: auto; min-width: 0; max-width: none; flex: 0 0 auto; }
.portal-management-search input { width: 310px; height: 44px; }
.portal-management-toolbar .portal-management-toolbar-button {
  display: inline-flex; width: 116px; min-width: 116px; min-height: 44px;
  align-items: center; justify-content: center; padding: 0 14px;
  line-height: 1.1; text-align: center; white-space: nowrap;
}
.portal-account-status-badge { display: inline-flex; min-width: 82px; min-height: 28px; align-items: center; justify-content: center; padding: 4px 7px; border-radius: 999px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.portal-account-status-badge.is-active { color: #147248; border: 1px solid #a5dec4; background: #e9f8f0; }
.portal-account-status-badge.is-suspended { color: #a15b11; border: 1px solid #efd09c; background: #fff5e4; }
.portal-account-status-badge.is-empty { color: #65758d; border: 1px solid #d3dce8; background: #f1f4f8; }
.portal-account-action { width: 100%; min-height: 32px; justify-content: center; padding: 5px 7px; font-size: 10px; white-space: nowrap; }
.portal-account-editor { max-width: 920px; margin-right: auto; margin-left: auto; }
.portal-account-form { max-width: 760px; margin-top: 22px; }
@media (max-width: 820px) {
  .customer-portal-auth { grid-template-columns: 1fr; }
  .customer-portal-brand { display: none; }
  .customer-portal-login-panel { min-height: 100vh; padding: 20px; }
  .customer-portal-login-card { padding: 28px 22px; }
  .customer-portal-header { align-items: flex-start; gap: 15px; }
  .customer-portal-logo img { width: min(190px, 55vw); max-height: 42px; }
  .customer-portal-nav { gap: 10px; }
  .customer-portal-nav > a { display: none; }
  .customer-portal-hero { padding-bottom: 74px; }
  .customer-portal-welcome { align-items: flex-start; flex-direction: column; }
  .customer-portal-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-portal-policy-head { align-items: flex-start; flex-direction: column; }
  .customer-portal-plate-search { width: 100%; }
  .customer-portal-plate-search input { min-width: 0; flex: 1 1 auto; }
  .customer-portal-inspection-head { align-items: flex-start; flex-direction: column; }
  .customer-portal-footer { align-items: flex-start; flex-direction: column; }
  .portal-management-toolbar { width: 100%; align-items: stretch; flex-direction: column; }
  .portal-management-search { width: 100%; }
  .portal-management-search input { width: 100%; }
  .portal-management-toolbar .portal-management-toolbar-button { width: 100%; }
}
@media (max-width: 520px) {
  .customer-portal-summary { grid-template-columns: 1fr; }
  .customer-portal-main { padding-right: 12px; padding-left: 12px; }
  .customer-portal-welcome { padding: 20px; }
  .customer-portal-inspection-list { padding-right: 14px; padding-left: 14px; }
  .customer-portal-inspection-row { grid-template-columns: 25% minmax(0, 1fr) 27%; }
  .customer-portal-inspection-row > :last-child { display: none; }
}

/* Aral Portal policy list: compact overview + full detail dialogs */
.bonus-policy-page-shell .bonus-policy-section {
  overflow: hidden !important;
  scrollbar-gutter: auto;
}
.bonus-policy-page-shell .bonus-policy-table-wrap {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}
.bonus-policy-table.bonus-policy-compact-table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed;
}
.bonus-policy-compact-table .compact-status { width: 7%; }
.bonus-policy-compact-table .compact-branch { width: 12%; }
.bonus-policy-compact-table .compact-plate { width: 9%; }
.bonus-policy-compact-table .compact-company { width: 17%; }
.bonus-policy-compact-table .compact-number { width: 15%; }
.bonus-policy-compact-table .compact-amount { width: 10%; }
.bonus-policy-compact-table .compact-date { width: 10%; }
.bonus-policy-compact-table th,
.bonus-policy-compact-table td {
  min-width: 0;
  padding-right: 7px;
  padding-left: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bonus-policy-compact-table th { font-size: 9px; white-space: normal; }
.bonus-policy-compact-table td { font-size: 11px; }
.portal-policy-edit-panel {
  width: min(1040px, calc(100vw - 32px));
  max-height: 90vh;
  overflow-y: auto;
  text-align: left;
}
.portal-detail-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.portal-detail-heading h2 { margin: 0; }
.portal-detail-heading p { margin: 0 0 5px; }
.modal-close-button {
  display: inline-grid;
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0;
  place-items: center;
  color: #42536b;
  border: 1px solid #d7e0eb;
  border-radius: 9px;
  background: #f5f8fc;
  font-size: 22px;
  line-height: 1;
}
.portal-policy-detail-grid,
.customer-policy-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.portal-policy-detail-grid > div,
.customer-policy-detail-grid > div {
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid #e0e7f0;
  border-radius: 9px;
  background: #f7f9fc;
}
.portal-policy-detail-grid span,
.customer-policy-detail-grid span {
  display: block;
  margin-bottom: 5px;
  color: #738198;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.portal-policy-detail-grid strong,
.customer-policy-detail-grid strong {
  display: block;
  overflow: hidden;
  color: #24364f;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.portal-policy-edit-grid { margin-top: 18px; }
.portal-policy-edit-panel h3 {
  margin: 22px 0 10px;
  color: #263850;
  font-size: 14px;
}
.portal-policy-document-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.customer-portal-policy-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.customer-portal-policy-actions > button {
  min-height: 38px;
  padding: 8px 14px;
  color: #fff;
  border: 0;
  border-radius: 7px;
  background: #1450c9;
  font-size: 11px;
  font-weight: 800;
}
.customer-portal-policy-actions > button:disabled {
  cursor: not-allowed;
  opacity: .45;
}
.customer-portal-policy-table.customer-portal-compact-table th:nth-child(1),
.customer-portal-policy-table.customer-portal-compact-table td:nth-child(1) { width: 8%; }
.customer-portal-policy-table.customer-portal-compact-table th:nth-child(2),
.customer-portal-policy-table.customer-portal-compact-table td:nth-child(2) { width: 6%; }
.customer-portal-policy-table.customer-portal-compact-table th:nth-child(3),
.customer-portal-policy-table.customer-portal-compact-table td:nth-child(3) { width: 9%; }
.customer-portal-policy-table.customer-portal-compact-table th:nth-child(4),
.customer-portal-policy-table.customer-portal-compact-table td:nth-child(4) { width: 7%; }
.customer-portal-policy-table.customer-portal-compact-table th:nth-child(5),
.customer-portal-policy-table.customer-portal-compact-table td:nth-child(5),
.customer-portal-policy-table.customer-portal-compact-table th:nth-child(6),
.customer-portal-policy-table.customer-portal-compact-table td:nth-child(6) { width: 9%; }
.customer-portal-policy-table.customer-portal-compact-table th:nth-child(7),
.customer-portal-policy-table.customer-portal-compact-table td:nth-child(7) { width: 6%; }
.customer-portal-policy-table.customer-portal-compact-table th:nth-child(8),
.customer-portal-policy-table.customer-portal-compact-table td:nth-child(8),
.customer-portal-policy-table.customer-portal-compact-table th:nth-child(9),
.customer-portal-policy-table.customer-portal-compact-table td:nth-child(9),
.customer-portal-policy-table.customer-portal-compact-table th:nth-child(10),
.customer-portal-policy-table.customer-portal-compact-table td:nth-child(10) { width: 9%; }
.customer-portal-policy-table.customer-portal-compact-table th:nth-child(11),
.customer-portal-policy-table.customer-portal-compact-table td:nth-child(11),
.customer-portal-policy-table.customer-portal-compact-table th:nth-child(12),
.customer-portal-policy-table.customer-portal-compact-table td:nth-child(12) { width: 9.5%; }
.customer-portal-policy-table.customer-portal-compact-table th,
.customer-portal-policy-table.customer-portal-fleet-table th,
.customer-portal-policy-table.customer-portal-vize-table th {
  box-sizing: border-box;
  height: 44px;
  padding: 9px 5px;
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: center;
  vertical-align: middle;
  white-space: normal;
}
.customer-portal-compact-table td {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}
.customer-portal-compact-table .customer-policy-state {
  min-width: 58px;
  font-size: 10px;
}
.customer-portal-compact-table tbody tr[data-customer-policy-row] { cursor: pointer; }
.customer-portal-compact-table tbody tr[data-customer-policy-row].is-selected {
  background: #e6efff;
  box-shadow: inset 4px 0 0 #1450c9;
}
.customer-policy-modal {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.customer-policy-modal.is-open { display: flex; }
.customer-policy-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 27, 52, .62);
  backdrop-filter: blur(3px);
}
.customer-policy-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1040px, calc(100vw - 32px));
  max-height: 88vh;
  padding: 26px;
  overflow-y: auto;
  border: 1px solid #dce4ee;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(9, 28, 58, .3);
}
.customer-policy-modal-documents {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.customer-policy-modal-documents a {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 8px;
  background: #1450c9;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}
.customer-policy-modal-documents a:hover { background: #ff0000; }
.customer-policy-modal-documents a.is-disabled {
  pointer-events: none;
  color: #8793a5;
  background: #e9edf3;
}
body.customer-policy-modal-open { overflow: hidden; }

/* Portal ilk giriş izinleri ve profil menüsü */
.portal-consent-page,
.portal-permissions-page {
  min-height: calc(100vh - 76px);
  padding: 34px clamp(18px, 5vw, 84px);
  background: #f3f7fc;
}
.portal-consent-card,
.portal-permissions-card {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 30px;
  border: 1px solid #d9e2ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(27, 61, 110, .1);
}
.portal-consent-heading > span { color: #1450c9; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.portal-consent-heading h1,
.portal-permissions-card h1 { margin: 8px 0; color: #0f2445; }
.portal-consent-heading p,
.portal-consent-note,
.portal-permissions-card > p { color: #64748b; }
.portal-consent-list { display: grid; gap: 12px; margin: 24px 0; }
.portal-consent-list article { padding: 14px; border: 1px solid #dce5f1; border-radius: 10px; background: #f8faff; }
.portal-consent-list article > button { display: flex; width: 100%; align-items: center; justify-content: space-between; margin-bottom: 12px; color: #fff; background: linear-gradient(135deg, #1450c9, #6457dc); }
.portal-consent-list article > button.is-read { background: #169b69; }
.portal-consent-list label,
.portal-channel-selection label { display: flex; align-items: center; gap: 8px; color: #243b5a; font-weight: 600; }
.portal-channel-selection { display: flex; flex-wrap: wrap; gap: 14px 24px; margin: 0 0 20px; padding: 16px; border: 1px solid #dce5f1; border-radius: 10px; }
.portal-channel-selection legend { padding: 0 8px; color: #0f2445; font-weight: 800; }
.portal-consent-submit { width: 100%; margin-top: 8px; }
.portal-consent-modal { display: none; position: fixed; z-index: 500; inset: 0; align-items: center; justify-content: center; padding: 20px; }
.portal-consent-modal[aria-hidden="false"] { display: flex; }
.portal-consent-modal-backdrop { position: absolute; inset: 0; background: rgba(6, 18, 42, .68); backdrop-filter: blur(3px); }
.portal-consent-modal-panel { position: relative; z-index: 1; width: min(760px, 100%); padding: 26px; border-radius: 16px; background: #fff; box-shadow: 0 28px 80px rgba(0, 0, 0, .28); }
.portal-consent-document { height: min(52vh, 440px); margin: 18px 0 10px; padding: 18px; overflow-y: auto; border: 1px solid #d7e0ec; border-radius: 10px; background: #f8fafc; color: #263c59; line-height: 1.65; white-space: pre-line; }
.portal-permissions-list,
.portal-permissions-card dl { display: grid; gap: 0; margin: 20px 0; }
.portal-permissions-list > div,
.portal-permissions-card dl > div { display: grid; grid-template-columns: minmax(190px, 34%) 1fr; gap: 16px; padding: 13px 4px; border-bottom: 1px solid #e4eaf2; }
.portal-permissions-list dt,
.portal-permissions-card dt { color: #64748b; font-weight: 700; }
.portal-permissions-list dd,
.portal-permissions-card dd { margin: 0; color: #132b4d; font-weight: 700; }
.portal-permissions-modal-panel { width: min(680px, calc(100vw - 32px)); text-align: left; }
.portal-profile-menu { position: relative; color: #fff; }
.portal-profile-menu summary { display: flex; min-height: 40px; align-items: center; gap: 9px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; cursor: pointer; font-size: 12px; font-weight: 700; list-style: none; }
.portal-profile-menu summary::-webkit-details-marker { display: none; }
.portal-profile-avatar { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; color: #1450c9; background: #fff; font-size: 9px; }
.portal-profile-menu > div { position: absolute; top: calc(100% + 8px); right: 0; min-width: 170px; padding: 8px; border: 1px solid #dce5f1; border-radius: 9px; background: #fff; box-shadow: 0 15px 35px rgba(15,36,69,.2); }
.portal-profile-menu > div a { display: block; padding: 10px; border-radius: 6px; color: #183252; font-weight: 700; text-decoration: none; }
.portal-profile-menu > div a:hover { color: #fff; background: #1450c9; }

@media (max-width: 760px) {
  .portal-policy-detail-grid,
  .customer-policy-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-policy-document-grid,
  .customer-policy-modal-documents { grid-template-columns: 1fr; }
  .portal-consent-card,
  .portal-permissions-card { padding: 20px; }
  .portal-permissions-list > div,
  .portal-permissions-card dl > div { grid-template-columns: 1fr; gap: 4px; }
}
