:root {
    --ink: #25424a;
    --muted: #7a6a60;
    --paper: #f8f4ee;
    --cream: #fffdf9;
    --mustard: #dfc653;
    --clay: #c39b82;
    --orange: #ed7d32;
    --teal: #086a78;
    --teal-dark: #075462;
    --line: #e4d8cd;
    --font-body: 'Segoe UI Variable', Aptos, 'Segoe UI', sans-serif;
    --font-display: 'Segoe UI Variable Display', Aptos Display, Aptos, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
.menu-toggle { display: none; }.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 6vw; border-bottom: 1px solid rgba(37,66,74,.12); background: rgba(255,253,249,.86); }.menu-button { display: flex; flex-direction: column; gap: 4px; width: 26px; cursor: pointer; }.menu-button span { display: block; width: 20px; height: 2px; background: var(--ink); transition: transform .18s ease; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 20px; font-weight: bold; letter-spacing: -.03em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; color: var(--ink); background: var(--mustard); border-radius: 50% 50% 50% 8px; font-family: var(--font-display); }
.topbar-context { color: var(--muted); font: 12px var(--font-body); letter-spacing: .12em; text-transform: uppercase; }
.app-layout { display: flex; min-height: calc(100vh - 76px); }.sidebar { width: 232px; flex: 0 0 232px; padding: 34px 16px; border-right: 1px solid var(--line); background: rgba(255,253,249,.72); transition: width .2s ease, flex-basis .2s ease, padding .2s ease; }.sidebar-label { margin: 0 14px 14px; color: var(--muted); font: bold 10px var(--font-body); letter-spacing: .18em; }.nav-item { display: flex; align-items: center; justify-content: space-between; margin: 3px 0; padding: 12px 14px; color: var(--ink); border-radius: 10px; font: bold 13px var(--font-body); text-decoration: none; }.nav-item:hover { color: var(--teal-dark); background: rgba(223,198,83,.18); }.nav-item small { color: var(--muted); font-size: 9px; font-weight: normal; }.nav-item.disabled { cursor: default; opacity: .52; }.page-shell { flex: 1; min-width: 0; min-height: calc(100vh - 76px); padding: 6vw; background: radial-gradient(circle at 10% 20%, rgba(223,198,83,.2), transparent 30%), radial-gradient(circle at 90% 80%, rgba(195,155,130,.18), transparent 28%); }
.menu-toggle:checked ~ .topbar + .app-layout .sidebar { width: 76px; flex-basis: 76px; padding-left: 10px; padding-right: 10px; }.menu-toggle:checked ~ .topbar + .app-layout .sidebar-label { display: none; }.menu-toggle:checked ~ .topbar + .app-layout .nav-item { justify-content: center; padding-left: 10px; padding-right: 10px; font-size: 0; }.menu-toggle:checked ~ .topbar + .app-layout .nav-text, .menu-toggle:checked ~ .topbar + .app-layout .nav-item small { display: none; }.menu-toggle:checked ~ .topbar + .app-layout .nav-item::before { content: attr(data-icon); display: block; font: bold 13px var(--font-display); }
.login-page .sidebar { display: none; }.login-page .app-layout { display: block; }.login-page .page-shell { width: 100%; }
.login-page .topbar { justify-content: center; }.login-page .menu-button, .login-page .topbar-context { display: none; }
.nav-submenu { margin: -1px 0 7px 48px; border-left: 1px solid var(--line); padding-left: 10px; }
.nav-submenu a { display: block; padding: 6px 8px; color: var(--muted); font-size: 11px; text-decoration: none; }
.nav-submenu a:hover { color: var(--teal-dark); }
.mobile-qr-reader { display: none; width: min(100%, 320px); margin: 12px 0; overflow: hidden; border-radius: 8px; background: #111; }
.mobile-qr-reader video { display: block; width: 100%; height: auto; }
.menu-toggle:checked ~ .topbar + .app-layout .nav-submenu { display: none; }
.login-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, 440px); gap: 8vw; align-items: center; max-width: 1180px; margin: 0 auto; }
.eyebrow { margin: 0 0 18px; color: var(--teal); font: bold 11px var(--font-body); letter-spacing: .16em; }
.login-intro h1 { max-width: 650px; margin: 0; font-family: var(--font-display); font-size: clamp(44px, 6vw, 82px); line-height: .98; font-weight: bold; letter-spacing: -.07em; }
.login-intro h1 span { color: var(--orange); font-style: italic; }
.login-velocity { position: relative; width: 100%; max-width: 100%; margin: 34px 0 38px; overflow: hidden; color: var(--ink); font-family: 'Blinker', 'Segoe UI', sans-serif; font-size: clamp(22px, 3vw, 42px); font-weight: 600; line-height: 1.15; letter-spacing: .01em; }
.login-velocity::before, .login-velocity::after { content: ''; position: absolute; z-index: 2; top: 0; bottom: 0; width: 15%; pointer-events: none; }
.login-velocity::before { left: 0; background: linear-gradient(90deg, var(--paper), transparent); }
.login-velocity::after { right: 0; background: linear-gradient(270deg, var(--paper), transparent); }
.login-velocity-row { display: flex; width: max-content; align-items: center; gap: 18px; white-space: nowrap; animation: login-velocity-left 45s linear infinite; }
.login-velocity-row + .login-velocity-row { margin-top: 8px; color: var(--orange); font-size: .78em; font-weight: 500; }
.login-velocity-row-reverse { animation-name: login-velocity-right; }
.login-velocity-row i { color: var(--clay); font-size: .5em; font-style: normal; }
@keyframes login-velocity-left { from { transform: translateX(0); } to { transform: translateX(var(--login-velocity-end, -28%)); } }
@keyframes login-velocity-right { from { transform: translateX(var(--login-velocity-end, -28%)); } to { transform: translateX(0); } }
.intro-copy { max-width: 480px; margin: 28px 0 38px; color: var(--muted); font-size: 18px; line-height: 1.55; letter-spacing: -.01em; }
.scope-note { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.scope-dot { width: 10px; height: 10px; background: var(--orange); border-radius: 50%; box-shadow: 0 0 0 7px rgba(237,125,50,.16); }
.scope-note strong, .scope-note small { display: block; }
.scope-note strong { font-size: 14px; letter-spacing: -.02em; }
.scope-note small { margin-top: 4px; color: var(--muted); font: 12px var(--font-body); }
.login-benefit-typing { display: block; min-height: 17px; margin-top: 8px; color: var(--muted); font: 12px var(--font-body); line-height: 1.35; }
.login-benefit-typing::after { content: ''; display: inline-block; width: 1px; height: 13px; margin-left: 3px; vertical-align: -2px; background: var(--orange); animation: login-typing-cursor .8s steps(1) infinite; }
@keyframes login-typing-cursor { 50% { opacity: 0; } }
.login-card { padding: 42px; background: var(--cream); border: 1px solid rgba(23,48,66,.1); border-radius: 24px; box-shadow: 0 24px 60px rgba(23,48,66,.12); }
.card-heading h2 { margin: 0; font-family: var(--font-display); font-size: 31px; font-weight: bold; letter-spacing: -.05em; }
.card-heading > p:last-child { margin: 10px 0 30px; color: var(--muted); font: 14px var(--font-body); }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; margin-bottom: 8px; font: bold 12px var(--font-body); }
.text-input { width: 100%; padding: 14px 15px; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; background: white; font: 15px var(--font-body); outline: none; }
.text-input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(8,126,139,.1); }
.field-hint { display: block; margin-top: 6px; color: var(--muted); font: 11px var(--font-body); }
.primary-button { width: 100%; margin-top: 8px; padding: 15px; border: 0; border-radius: 12px; color: white; background: var(--teal); cursor: pointer; font: bold 12px var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.primary-button:hover { background: var(--teal-dark); }
.secondary-button { display: inline-block; width: auto; margin-top: 8px; padding: 12px 18px; border: 1px solid rgba(8,126,139,.35); border-radius: 6px; color: var(--teal-dark); background: #fff; cursor: pointer; font: bold 12px var(--font-body); text-align: center; text-decoration: none; }
.secondary-button:hover { color: #fff; background: var(--teal); border-color: var(--teal); }
.form-message { display: block; margin: 4px 0 12px; color: #a05c27; font: 12px var(--font-body); line-height: 1.4; }
.info-callout { margin: 12px 0 0; padding: 12px 14px; border-left: 3px solid var(--teal); background: #f3f8f8; color: var(--ink-soft); font: 13px var(--font-body); line-height: 1.55; }
.login-help { margin: 22px 0 0; color: var(--muted); text-align: center; font: 11px var(--font-body); line-height: 1.5; }
.dashboard-header { display: flex; justify-content: space-between; align-items: flex-end; max-width: 1180px; margin: 0 auto 34px; }
.dashboard-header h1 { margin: 0; font-family: var(--font-display); font-size: clamp(38px, 5vw, 62px); font-weight: bold; letter-spacing: -.07em; }
.dashboard-lead { margin: 12px 0 0; color: var(--muted); font: 15px var(--font-body); }
.status-pill { display: flex; align-items: center; gap: 8px; padding: 10px 14px; color: var(--teal-dark); border: 1px solid rgba(8,126,139,.2); background: rgba(8,126,139,.08); font: 12px var(--font-body); }
.status-pill span { width: 7px; height: 7px; border-radius: 50%; background: #36a269; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1180px; margin: 0 auto 28px; }
.stat-card { padding: 24px; border: 1px solid rgba(23,48,66,.1); border-radius: 18px; background: var(--cream); }
.stat-card.accent { color: white; background: var(--teal); border-color: var(--teal); }
.stat-label, .stat-foot { display: block; font: 12px var(--font-body); }
.stat-label { opacity: .76; text-transform: uppercase; letter-spacing: .1em; }
.stat-card strong { display: block; margin: 18px 0 12px; font-size: 48px; font-weight: normal; }
.stat-foot { color: var(--muted); }.stat-card.accent .stat-foot { color: rgba(255,255,255,.72); }
.dashboard-panel { max-width: 1180px; margin: 0 auto; padding: 30px; border-radius: 22px; background: var(--cream); border: 1px solid rgba(23,48,66,.1); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 22px; }.panel-heading h2 { margin: 0; font-family: var(--font-display); font-size: 27px; font-weight: bold; letter-spacing: -.05em; }
.small-button { width: auto; padding: 12px 18px; text-decoration: none; }.empty-state { padding: 54px 20px; text-align: center; }.empty-icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 18px; color: white; background: var(--teal); border-radius: 16px; font: 30px var(--font-body); }.empty-state h3 { margin: 0; font-family: var(--font-display); font-size: 24px; font-weight: bold; letter-spacing: -.04em; }.empty-state p { max-width: 460px; margin: 10px auto 18px; color: var(--muted); font: 14px var(--font-body); line-height: 1.5; }.text-link { color: var(--teal-dark); font: bold 12px var(--font-body); text-decoration: none; }
.customer-form-panel { margin-bottom: 24px; }.record-form-panel.is-hidden { display: none; }.inline-section-title { display: flex; align-items: baseline; gap: 14px; margin: 24px 0 -4px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--teal-dark); font-size: 11px; font-weight: 800; letter-spacing: .12em; }.inline-section-title small { color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: 0; }.customer-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; padding-top: 24px; }.customer-list-panel { overflow-x: auto; }.customer-grid { width: 100%; margin-top: 8px; border-collapse: collapse; font: 13px var(--font-body); }.customer-grid th { padding: 14px 12px; color: var(--muted); border-bottom: 1px solid var(--line); text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }.customer-grid td { padding: 16px 12px; border-bottom: 1px solid var(--line); }.customer-grid tr:last-child td { border-bottom: 0; }.grid-action { margin-right: 14px; color: var(--teal-dark); font: bold 12px var(--font-body); text-decoration: none; }.grid-action.danger { color: #a04f43; }
.inline-form-control { display: flex; align-items: center; gap: 8px; }.inline-form-control .text-input { flex: 1; min-width: 0; }.inline-form-control .small-button { white-space: nowrap; }
.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: 24px; }.module-card { position: relative; display: block; min-height: 130px; padding: 24px 24px 20px 38px; color: var(--ink); border: 1px solid var(--line); border-radius: 16px; background: #fff; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }.module-card:hover { transform: translateY(-3px); box-shadow: 0 12px 25px rgba(37,66,74,.1); }.module-card strong, .module-card small { display: block; }.module-card strong { font: bold 16px var(--font-display); letter-spacing: -.03em; }.module-card small { margin-top: 8px; color: var(--muted); font: 12px var(--font-body); }.module-color { position: absolute; left: 18px; top: 24px; width: 7px; height: 48px; border-radius: 8px; }.module-color.clay { background: var(--clay); }.module-color.mustard { background: var(--mustard); }
.insight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 24px; background: var(--line); border: 1px solid var(--line); }.insight-item { min-height: 148px; padding: 24px; background: #fff; }.insight-label { display: block; color: var(--muted); font: bold 11px var(--font-body); letter-spacing: .08em; text-transform: uppercase; }.insight-item strong { display: block; margin: 18px 0 8px; color: var(--teal); font: 44px var(--font-display); letter-spacing: -.08em; }.insight-item small { color: var(--muted); font: 12px var(--font-body); }
@media (max-width: 760px) { .topbar { padding: 0 24px; justify-content: flex-start; gap: 18px; }.topbar-context { display: none; }.sidebar { position: fixed; z-index: 5; top: 76px; bottom: 0; left: 0; width: 232px; flex-basis: 232px; transform: translateX(-100%); transition: transform .2s ease; box-shadow: 12px 0 28px rgba(37,66,74,.12); }.menu-toggle:checked ~ .topbar + .app-layout .sidebar { width: 232px; flex-basis: 232px; padding-left: 16px; padding-right: 16px; transform: translateX(0); }.menu-toggle:checked ~ .topbar + .app-layout .nav-item { justify-content: space-between; padding-left: 14px; padding-right: 14px; font-size: 13px; }.menu-toggle:checked ~ .topbar + .app-layout .nav-text, .menu-toggle:checked ~ .topbar + .app-layout .nav-item small { display: inline; }.menu-toggle:checked ~ .topbar + .app-layout .nav-item::before { display: none; }.page-shell { padding: 48px 24px; } .login-layout { display: block; } .login-intro { margin-bottom: 48px; } .login-card { padding: 28px 24px; } .login-velocity { margin-top: 28px; font-size: clamp(24px, 8vw, 42px); } }
@media (max-width: 760px) { .dashboard-header { display: block; }.status-pill { display: inline-flex; margin-top: 20px; }.stat-grid { grid-template-columns: 1fr; }.dashboard-panel { padding: 22px 18px; }.panel-heading { display: block; }.small-button { display: inline-block; margin-top: 18px; } }
@media (max-width: 760px) { .customer-form-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .module-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .insight-grid { grid-template-columns: 1fr; } }

.nav-icon { display: inline-grid; place-items: center; width: 20px; height: 20px; flex: 0 0 20px; margin-right: 12px; color: currentColor; }.nav-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }.nav-item.disabled .nav-icon { opacity: .72; }
.menu-toggle:checked ~ .topbar + .app-layout .nav-item { justify-content: center; }.menu-toggle:checked ~ .topbar + .app-layout .nav-item::before { content: none; display: none; }.menu-toggle:checked ~ .topbar + .app-layout .nav-icon { margin-right: 0; }.stat-card:not(.accent):nth-child(1) { border-top: 3px solid var(--mustard); }.stat-card:not(.accent):nth-child(3) { border-top: 3px solid var(--clay); }

/* Final admin palette and spacing pass. */
body.app-page { background: #f5f7fa; } body.app-page .topbar { background: #ffffff; border-color: #e7ebf0; } body.app-page .sidebar { background: #1f2937; border: 0; } body.app-page .sidebar-label { color: #8290a3; } body.app-page .nav-item { color: #b9c4d0; } body.app-page .nav-item:hover { color: #ffffff; background: #2b3a4d; } body.app-page .nav-icon { color: #94a3b3; } body.app-page .nav-item:hover .nav-icon { color: #ed7d32; } body.app-page .page-shell { background: #f5f7fa; } body.app-page .stat-card, body.app-page .dashboard-panel { background: #ffffff; border-color: #e7ebf0; box-shadow: 0 4px 14px rgba(31,41,55,.045); } body.app-page .stat-card.accent { background: #086a78; border-color: #086a78; } body.app-page .stat-card:not(.accent):nth-child(1) { border-top-color: #dfc653; } body.app-page .stat-card:not(.accent):nth-child(3) { border-top-color: #c39b82; } body.app-page .dashboard-header h1, body.app-page .panel-heading h2 { color: #1f2937; }

/* Larkon-inspired admin shell: quiet workspace, strong navigation, restrained cards. */
:root { --ink: #263645; --muted: #7b8794; --paper: #f4f6f8; --cream: #ffffff; --line: #e7ebef; --navy: #202c3b; --navy-soft: #2a394b; --accent: #ed7d32; --accent-soft: #fff0e6; --teal: #086a78; --teal-dark: #075462; --font-body: 'Segoe UI Variable', 'Segoe UI', sans-serif; --font-display: 'Segoe UI Variable Display', 'Segoe UI', sans-serif; }
body { background: var(--paper); color: var(--ink); font-family: var(--font-body); }
.topbar { height: 68px; padding: 0 28px; border-bottom: 1px solid var(--line); background: var(--cream); }
.brand { color: var(--ink); font-family: 'Blinker', 'Segoe UI', sans-serif; font-size: 18px; font-weight: 600; letter-spacing: .01em; }.brand-mark { width: 32px; height: 32px; color: #fff; background: var(--accent); border-radius: 8px; }
.brand-logo { display: block; width: 100px; height: auto; max-height: 54px; object-fit: contain; border-radius: 9px; }
.customer-form-panel .form-field small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.topbar-context { color: var(--muted); font-size: 11px; letter-spacing: .12em; }
.menu-button { justify-content: center; margin-right: 4px; }.menu-button span { background: var(--muted); }
.app-layout { min-height: calc(100vh - 68px); }.sidebar { width: 240px; flex-basis: 240px; padding: 26px 14px; border: 0; background: var(--navy); }.sidebar-label { color: #91a0b0; margin: 0 14px 13px; font-size: 10px; }.nav-item { margin: 2px 0; padding: 11px 14px; color: #b7c2ce; border-radius: 7px; font-weight: 500; }.nav-item:hover { color: #fff; background: var(--navy-soft); }.nav-item.disabled { color: #718092; }.nav-item small { color: #738195; }.page-shell { min-height: calc(100vh - 68px); padding: 38px 42px; background: var(--paper); }
.menu-toggle:checked ~ .topbar + .app-layout .sidebar { width: 72px; flex-basis: 72px; padding-left: 10px; padding-right: 10px; }.menu-toggle:checked ~ .topbar + .app-layout .nav-item::before { color: #d8e0e8; }.menu-toggle:checked ~ .topbar + .app-layout .sidebar-label { opacity: 0; height: 14px; }
.dashboard-header { max-width: 1180px; margin: 0 auto 26px; }.eyebrow { color: var(--teal); font-size: 10px; letter-spacing: .14em; }.dashboard-header h1 { color: var(--ink); font-size: 34px; letter-spacing: -.05em; }.dashboard-lead { color: var(--muted); font-size: 14px; }
.status-pill { padding: 8px 12px; border: 1px solid #cbe5d6; border-radius: 6px; background: #f2fbf5; color: #347551; }
.stat-grid { max-width: 1180px; gap: 18px; margin-bottom: 24px; }.stat-card { padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: var(--cream); box-shadow: 0 3px 12px rgba(32,44,59,.035); }.stat-card.accent { background: var(--teal); border-color: var(--teal); }.stat-card strong { margin: 14px 0 10px; color: var(--ink); font-size: 38px; }.stat-card.accent strong { color: #fff; }.stat-label { color: var(--muted); font-size: 11px; letter-spacing: .08em; }.stat-card.accent .stat-label { color: #cce5e8; }.stat-foot { color: var(--muted); font-size: 11px; }
.dashboard-panel { border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 3px 12px rgba(32,44,59,.035); }.panel-heading h2 { color: var(--ink); font-size: 22px; letter-spacing: -.03em; }.primary-button { border-radius: 6px; background: var(--accent); }.primary-button:hover { background: #d96e29; }
.customer-grid th { color: var(--muted); }.customer-grid td { color: var(--ink); }.text-input { border-radius: 6px; }.login-card { border-radius: 10px; box-shadow: 0 16px 40px rgba(32,44,59,.1); }
.list-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 18px 0 8px; }.list-search-label { color: var(--muted); font: 600 12px var(--font-body); }.list-search { width: min(360px, 100%); min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); font: 14px var(--font-body); outline: none; }.list-search:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(8,106,120,.1); }.list-count { color: var(--muted); font: 12px var(--font-body); }.list-pager { display: flex; align-items: center; gap: 8px; margin-left: auto; }.list-page-button { min-height: 34px; padding: 0 11px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font: 600 12px var(--font-body); cursor: pointer; }.list-page-button:hover:not(:disabled) { border-color: var(--teal); color: var(--teal-dark); }.list-page-button:disabled { cursor: not-allowed; opacity: .45; }.list-page-number { min-width: 42px; color: var(--muted); text-align: center; font: 600 12px var(--font-body); }
.dashboard-header > .list-toolbar { margin: 0 12px 0 auto; }.dashboard-header > .list-toolbar .list-pager { margin-left: 0; }.dashboard-header > .list-toolbar .list-search { width: 220px; }
@media (max-width: 760px) { .topbar { height: 64px; padding: 0 18px; }.app-layout { min-height: calc(100vh - 64px); }.sidebar { top: 64px; }.page-shell { min-height: calc(100vh - 64px); padding: 26px 18px; } }
.profile-chip { display: inline-flex; align-items: center; gap: 9px; padding: 7px 10px; color: var(--ink); border: 1px solid var(--line); border-radius: 7px; background: #fff; font: 600 12px var(--font-body); letter-spacing: 0; text-transform: none; text-decoration: none; }.profile-chip:hover { border-color: #cbd5df; background: #f8fafc; }.profile-avatar { display: grid; place-items: center; width: 22px; height: 22px; color: #fff; border-radius: 50%; background: var(--accent); font-size: 9px; }.account-panel { max-width: 760px; margin-left: auto; margin-right: auto; }.account-panel small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.profile-menu { position: relative; }.profile-menu summary { list-style: none; cursor: pointer; }.profile-menu summary::-webkit-details-marker { display: none; }.profile-chevron { color: var(--muted); font-size: 10px; }.profile-dropdown { position: absolute; z-index: 20; top: calc(100% + 8px); right: 0; min-width: 160px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 12px 28px rgba(32,44,59,.14); }.profile-dropdown a, .profile-dropdown input { display: block; width: 100%; padding: 10px 11px; color: var(--ink); border: 0; border-radius: 5px; background: transparent; text-align: left; font: 600 12px var(--font-body); text-decoration: none; cursor: pointer; }.profile-dropdown a:hover, .profile-dropdown input:hover { background: #f4f6f8; }
.customer-form-panel { padding: 28px 30px 24px; }.customer-form-panel .panel-heading { margin-bottom: 2px; }.customer-form-panel .customer-form-grid { padding-top: 20px; }.customer-form-panel .primary-button { box-shadow: 0 4px 10px rgba(237,125,50,.18); }.customer-form-panel .customer-grid { margin-top: 22px; }.customer-form-panel .customer-grid th { background: #f8fafc; }.customer-form-panel .customer-grid td { background: #fff; }.customer-form-panel + .dashboard-panel { margin-top: 24px; }.customer-list-panel .customer-grid { background: #fff; }.customer-list-panel .customer-grid tr:hover td { background: #fbfcfd; }
.e-belge-sevk-panel { margin-top: 22px; padding: 18px 20px 20px; border: 1px solid rgba(237,125,50,.28); border-left: 4px solid var(--accent); border-radius: 12px; background: #fffaf5; }.e-belge-sevk-panel .eyebrow { margin-bottom: 6px; color: var(--accent-dark); }.e-belge-sevk-panel .step-help { margin: 0; }
.purchase-page .purchase-header-card .panel-heading h2 { font-size: 0; }.purchase-page .purchase-header-card .panel-heading h2::after { content: "Tedarikçi bilgileri"; font-size: 22px; }.purchase-page .purchase-header-card .panel-heading .eyebrow::after { content: "Tedarikçi bilgileri"; font-size: 10px; }.purchase-page .purchase-header-card .panel-heading .eyebrow { font-size: 0; }

/* Data tables: reserve space for business names and descriptions, not IDs. */
.dashboard-header, .dashboard-panel, .stat-grid { max-width: 1400px; }
.customer-list-panel { max-width: none; }
.customer-list-panel { overflow-x: auto; }
.customer-grid { min-width: 980px; table-layout: auto; }
.customer-grid th:first-child, .customer-grid td:first-child { width: 90px; min-width: 78px; white-space: nowrap; }
.customer-grid th:last-child, .customer-grid td:last-child { width: 170px; min-width: 150px; white-space: nowrap; }
.customer-grid th:nth-child(2), .customer-grid td:nth-child(2) { min-width: 260px; }
.customer-grid th:nth-child(3), .customer-grid td:nth-child(3) { min-width: 170px; }
.customer-grid th:nth-child(5), .customer-grid td:nth-child(5) { min-width: 300px; }
.customer-grid td { vertical-align: top; }
.customer-grid td:nth-child(2), .customer-grid td:nth-child(5) { white-space: normal; overflow-wrap: anywhere; }
.customer-grid td:nth-child(3) { white-space: normal; }
.table-scroll { width: 100%; overflow-x: auto; }
.editable-grid { width: 100%; min-width: 0; table-layout: fixed; }
.editable-grid th, .editable-grid td { min-width: 0; padding: 10px 7px; }
.editable-grid th { white-space: normal; overflow-wrap: anywhere; line-height: 1.2; }
.editable-grid td .text-input { min-width: 0; padding: 10px 8px; font-size: 12px; }
#HareketFormPanel .editable-grid td .top-no-input { position: relative; display: block; width: 100%; min-height: 38px; }
#HareketFormPanel .editable-grid td .top-no-input .text-input { display: block; width: 100%; box-sizing: border-box; padding-right: 32px; }
#HareketFormPanel .editable-grid td .top-no-selector { position: absolute; top: 50%; right: 6px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 26px; margin: 0; transform: translateY(-50%); color: var(--teal-dark); font: 700 15px/1 var(--font-body); letter-spacing: 0; text-decoration: none; }
#HareketFormPanel .editable-grid td .top-no-selector:hover { color: var(--orange); }
.editable-grid.fason-sevk-grid th:nth-child(3), .editable-grid.fason-sevk-grid td:nth-child(3) { width: 4% !important; }
.editable-grid.fason-sevk-grid th:nth-child(8), .editable-grid.fason-sevk-grid td:nth-child(8), .editable-grid.fason-sevk-grid th:nth-child(10), .editable-grid.fason-sevk-grid td:nth-child(10) { width: 5.5% !important; }
.editable-grid.fason-sevk-grid th:nth-child(11), .editable-grid.fason-sevk-grid td:nth-child(11), .editable-grid.fason-sevk-grid th:nth-child(12), .editable-grid.fason-sevk-grid td:nth-child(12) { width: 9% !important; min-width: 120px !important; }
.editable-grid.fason-sevk-grid th:nth-child(13), .editable-grid.fason-sevk-grid td:nth-child(13) { display: none !important; }
.editable-grid th:nth-child(1), .editable-grid td:nth-child(1) { width: 16%; }
.editable-grid th:nth-child(2), .editable-grid td:nth-child(2) { width: 13%; }
.editable-grid th:nth-child(3), .editable-grid td:nth-child(3) { width: 8%; }
.editable-grid th:nth-child(4), .editable-grid td:nth-child(4) { width: 8%; }
.editable-grid th:nth-child(5), .editable-grid td:nth-child(5) { width: 10%; min-width: 0; }
.editable-grid th:nth-child(6), .editable-grid td:nth-child(6) { width: 7%; }
.editable-grid th:nth-child(7), .editable-grid td:nth-child(7) { width: 10%; }
.editable-grid th:nth-child(8), .editable-grid td:nth-child(8) { width: 11%; }
.editable-grid th:nth-child(9), .editable-grid td:nth-child(9) { width: 11%; }
.editable-grid th:last-child, .editable-grid td:last-child { width: 6%; min-width: 0; }
.purchase-page .editable-grid th:nth-child(1), .purchase-page .editable-grid td:nth-child(1) { width: 28%; }
.purchase-page .editable-grid th:nth-child(2), .purchase-page .editable-grid td:nth-child(2) { width: 10%; }
.purchase-page .editable-grid th:nth-child(3), .purchase-page .editable-grid td:nth-child(3) { width: 12%; }
.purchase-page .editable-grid th:nth-child(4), .purchase-page .editable-grid td:nth-child(4) { width: 12%; }
.purchase-page .editable-grid th:nth-child(5), .purchase-page .editable-grid td:nth-child(5) { width: 9%; }
.purchase-page .editable-grid th:nth-child(6), .purchase-page .editable-grid td:nth-child(6) { width: 17%; }
.purchase-page .editable-grid th:last-child, .purchase-page .editable-grid td:last-child { width: 12%; }
body.purchase-page .customer-list-panel .customer-grid th:nth-child(11), body.purchase-page .customer-list-panel .customer-grid td:nth-child(11) { display: none; }
body.purchase-page .customer-list-panel .customer-grid th:first-child, body.purchase-page .customer-list-panel .customer-grid td:first-child { width: 68px; min-width: 58px; }
body.purchase-page .customer-list-panel .customer-grid th:first-child { white-space: normal; line-height: 1.2; overflow-wrap: normal; }

/* Order detail has more product fields, so give its editable grid room to breathe. */
body.order-page .page-shell { padding-left: 30px; padding-right: 30px; }

/* CRM pipeline: cards stay readable on desktop and collapse into a swipeable board on mobile. */
.crm-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; max-width: 1400px; margin: 0 auto 24px; }
.crm-stat-card { min-height: 126px; padding: 19px 20px; border: 1px solid var(--line); border-top: 3px solid #dfc653; border-radius: 8px; background: #fff; box-shadow: 0 3px 12px rgba(32,44,59,.035); }
.crm-stat-card span, .crm-stat-card small { display: block; color: var(--muted); font-size: 11px; }.crm-stat-card span { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }.crm-stat-card strong { display: block; margin: 12px 0 5px; color: var(--ink); font: 700 32px var(--font-display); }.crm-stat-card.crm-stat-warning { border-top-color: var(--accent); }.crm-stat-card.crm-stat-teal { border-top-color: var(--teal); }.crm-stat-card small { font-size: 12px; }
.reports-index { max-width: 1180px; }.report-link-card { margin-top: 22px; }.report-link-card a { display: flex; flex-direction: column; gap: 7px; padding: 20px 22px; border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 8px; color: var(--ink); background: #f8fafb; text-decoration: none; }.report-link-card a:hover { border-color: var(--teal); background: #f2f8f8; }.report-link-card strong { font-size: 18px; }.report-link-card span { color: var(--muted); font-size: 13px; }
.crm-message-panel { max-width: 1400px; margin: -12px auto 18px; }.crm-message-panel .form-message { padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--accent-soft); }
.crm-pipeline-panel { max-width: 1400px; }.crm-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 240px auto; gap: 10px; padding: 18px 0 20px; border-bottom: 1px solid var(--line); }.crm-toolbar .text-input { min-width: 0; }.crm-toolbar .small-button { margin-top: 0; }.report-filter-toolbar { grid-template-columns: auto 180px; align-items: center; justify-content: start; }.report-filter-toolbar label { color: var(--ink); font-size: 13px; font-weight: 700; }
.crm-pipeline-board { display: grid; grid-template-columns: repeat(4, minmax(230px, 1fr)); gap: 12px; padding-top: 22px; overflow-x: auto; }.crm-pipeline-column { min-width: 230px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; }.crm-column-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 2px 12px; }.crm-column-heading h3 { margin: 0; color: var(--ink); font-size: 14px; }.crm-column-heading span { display: grid; place-items: center; min-width: 24px; height: 24px; border-radius: 50%; color: var(--teal-dark); background: #e3f1f3; font-size: 12px; font-weight: 700; }.crm-column-cards { display: grid; gap: 10px; min-height: 54px; max-height: 560px; overflow-y: auto; padding: 1px 4px 4px 1px; scrollbar-width: thin; }.crm-opportunity-card { padding: 14px; border: 1px solid #e5e9ee; border-left: 3px solid var(--teal); border-radius: 7px; background: #fff; box-shadow: 0 2px 6px rgba(32,44,59,.035); }.crm-opportunity-card.is-overdue { border-left-color: var(--accent); }.crm-card-top, .crm-card-footer, .crm-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }.crm-card-top { margin-bottom: 9px; }.crm-priority { padding: 3px 6px; border-radius: 4px; color: #64717d; background: #eef2f5; font-size: 10px; font-weight: 700; }.crm-priority.priority-high { color: #a14e35; background: #fff0e8; }.crm-priority.priority-low { color: #64717d; background: #f3f4f6; }.crm-card-date { color: var(--muted); font-size: 11px; }.crm-card-number, .crm-opportunity-number { color: var(--teal-dark); font-size: 10px; font-weight: 700; letter-spacing: .04em; }.crm-card-number { margin: -3px 0 5px; }.crm-opportunity-number { margin: 8px 0 0; }.crm-opportunity-number strong { color: var(--ink); }.crm-opportunity-card h4 { margin: 0; color: var(--ink); font-size: 14px; line-height: 1.25; }.crm-card-title { min-height: 32px; margin: 6px 0 12px; color: #50606d; font-size: 12px; line-height: 1.4; }.crm-next-action { padding: 9px 10px; border-radius: 5px; background: #f5f7fa; }.is-overdue .crm-next-action { background: #fff5ef; }.crm-next-action small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .08em; }.crm-next-action strong { display: block; color: var(--ink); font-size: 12px; line-height: 1.35; }.crm-card-footer { margin-top: 11px; color: var(--muted); font-size: 10px; }.crm-card-footer .grid-action { margin-right: 0; font-size: 11px; }.crm-card-actions { justify-content: flex-start; margin-top: 6px; padding-top: 7px; border-top: 1px solid #edf0f3; }.crm-card-actions .grid-action { margin-right: 4px; font-size: 11px; }.crm-pipeline-panel .step-help { margin-top: 6px; }
@media (max-width: 1100px) { .crm-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.crm-pipeline-board { grid-template-columns: repeat(4, minmax(260px, 1fr)); } }
@media (max-width: 760px) { .crm-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }.crm-stat-card { min-height: 105px; padding: 14px; }.crm-stat-card strong { margin: 8px 0 3px; font-size: 27px; }.crm-stat-card small { font-size: 10px; line-height: 1.3; }.crm-toolbar { grid-template-columns: 1fr; }.crm-toolbar .small-button { width: 100%; }.crm-pipeline-panel { padding-left: 12px; padding-right: 12px; }.crm-pipeline-board { grid-template-columns: repeat(8, minmax(245px, 1fr)); gap: 10px; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }.crm-pipeline-column { min-width: 245px; }.crm-opportunity-card { padding: 13px; } }
body.order-page .dashboard-header, body.order-page .dashboard-panel { max-width: 1600px; }

/* Dashboard cards use the project's warm palette while keeping the shared shell. */
.dashboard-stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.dashboard-stat-grid .dashboard-card { position: relative; min-height: 104px; overflow: hidden; border: 0; border-radius: 8px; box-shadow: 0 8px 18px rgba(32,44,59,.12); }
.dashboard-stat-grid .dashboard-card::after { content: ''; position: absolute; right: 18px; bottom: -22px; width: 92px; height: 92px; border: 14px solid rgba(255,255,255,.16); border-radius: 50%; }
.dashboard-stat-grid .dashboard-card .stat-label,
.dashboard-stat-grid .dashboard-card .stat-foot,
.dashboard-stat-grid .dashboard-card strong { position: relative; z-index: 1; color: #fff; }
.dashboard-stat-grid .dashboard-card .stat-label { font-weight: 700; letter-spacing: .04em; }
.dashboard-stat-grid .dashboard-card .stat-foot { opacity: .9; }
.dashboard-stat-grid .dashboard-card strong { font-size: 38px; }
.dashboard-card-mustard { background: #d7bd45 !important; }
.dashboard-card-clay { background: #bd947c !important; }
.dashboard-card-orange { background: #ed7d32 !important; }
.dashboard-card-teal { background: #086a78 !important; }
@media (max-width: 900px) { .dashboard-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .dashboard-stat-grid { grid-template-columns: 1fr; } }

/* Keep navigation text and icons on a firm left edge at every menu width. */
body.app-page .sidebar { padding-left: 10px; padding-right: 10px; }
body.app-page .sidebar { display: flex; flex-direction: column; align-items: stretch; min-height: calc(100vh - 68px); }
body.app-page .nav-item { justify-content: flex-start; min-height: 44px; padding-left: 14px; padding-right: 12px; font-size: 14px; }
body.app-page .nav-icon { width: 22px; height: 22px; flex-basis: 22px; margin-right: 12px; }
body.app-page .nav-icon svg { width: 18px; height: 18px; stroke-width: 1.8; }
body.app-page .nav-text { white-space: nowrap; }
body.app-page .nav-submenu { margin: -1px 0 9px 48px; padding: 3px 0 3px 4px; border: 0; background: transparent; }
body.app-page .nav-submenu.is-hidden { display: none !important; }
body.app-page .nav-submenu:not(.is-hidden) { display: block; }
body.app-page .nav-submenu a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; color: #d4dce4; border-radius: 5px; font-size: 12px; font-weight: 600; text-decoration: none !important; }
body.app-page .nav-submenu a::before { content: none; }
body.app-page .nav-submenu .nav-icon { width: 18px; height: 18px; flex-basis: 18px; margin-right: 0; color: #aebbc7; }
body.app-page .nav-submenu .nav-icon svg { width: 16px; height: 16px; }
body.app-page .nav-submenu a:hover { color: #fff; background: rgba(237,125,50,.14); }
body.app-page .menu-toggle:checked ~ .topbar + .app-layout .sidebar { padding-left: 10px; padding-right: 10px; }
body.app-page .menu-toggle:checked ~ .topbar + .app-layout .nav-item { justify-content: center; padding-left: 10px; padding-right: 10px; }
body.app-page .menu-toggle:checked ~ .topbar + .app-layout .nav-icon { margin-right: 0; }
@media (max-width: 760px) { body.app-page .sidebar { padding-left: 14px; padding-right: 14px; } body.app-page .menu-toggle:checked ~ .topbar + .app-layout .nav-item { justify-content: flex-start; padding-left: 14px; padding-right: 14px; } body.app-page .menu-toggle:checked ~ .topbar + .app-layout .nav-icon { margin-right: 12px; } }
@media (max-width: 760px) { body.app-page .menu-toggle:checked ~ .topbar + .app-layout .sidebar { width: 240px; flex-basis: 240px; transform: translateX(0); } body.app-page .menu-toggle:checked ~ .topbar + .app-layout .nav-submenu:not(.is-hidden) { display: block !important; } }
.sidebar-version { margin-top: auto; padding: 24px 14px 8px; color: #8795a5; font-size: 10px; letter-spacing: .04em; white-space: nowrap; }
.sidebar-version strong { display: block; margin-top: 5px; color: #e7edf2; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
body.app-page .dashboard-header, body.app-page .dashboard-panel, body.app-page .stat-grid { max-width: 1600px; margin-left: 0; margin-right: 0; }
body.order-page .editable-grid { min-width: 1320px; }
body.order-page .editable-grid th:nth-child(8), body.order-page .editable-grid td:nth-child(8) { width: 14%; white-space: nowrap; }
body.order-page .editable-grid td:nth-child(8) select { white-space: nowrap; }

/* Use the space released by the collapsed desktop navigation without changing
   the expanded navigation or the mobile layout. */
@media (min-width: 761px) {
    body.app-page .menu-toggle:checked ~ .topbar + .app-layout .page-shell {
        padding-right: 24px;
    }

    body.app-page .menu-toggle:checked ~ .topbar + .app-layout .dashboard-header,
    body.app-page .menu-toggle:checked ~ .topbar + .app-layout #HareketFormPanel,
    body.app-page .menu-toggle:checked ~ .topbar + .app-layout .page-shell > #StokFormPanel,
    body.app-page .menu-toggle:checked ~ .topbar + .app-layout .page-shell > .dashboard-stat-grid,
    body.purchase-page .menu-toggle:checked ~ .topbar + .app-layout .page-shell > .customer-form-panel,
    body.order-page .menu-toggle:checked ~ .topbar + .app-layout .page-shell > .customer-form-panel {
        max-width: none;
        width: 100%;
    }
}
body.app-page .order-list-grid th:nth-child(11), body.app-page .order-list-grid td:nth-child(11) { display: none; }
body.app-page .order-list-grid th:nth-child(12), body.app-page .order-list-grid td:nth-child(12) { min-width: 130px; white-space: nowrap; }
body.purchase-page .page-shell, body.app-page .page-shell { padding-left: 24px; padding-right: 24px; }
body.purchase-page .dashboard-header, body.purchase-page .dashboard-panel { max-width: 1600px; }
body.app-page .customer-list-panel { width: 100%; max-width: none; }
body.purchase-page .customer-list-panel, body.order-page .customer-list-panel { width: 100%; max-width: none; }

/* Text actions use the same control language as the primary buttons. */
.text-link { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; color: var(--teal-dark); border: 1px solid #b9d5da; border-radius: 6px; background: #eef7f8; font: 600 12px var(--font-body); text-decoration: none; }
.text-link:hover { border-color: var(--teal); background: #e0f0f2; }
.public-legal-page { min-height: 100vh; margin: 0; color: var(--ink); background: #f5f7fa; font-family: var(--font-body); }
.legal-page { width: min(100% - 32px, 960px); margin: 0 auto; padding: 28px 0 56px; }
.legal-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0 28px; border-bottom: 1px solid var(--line); }
.legal-brand { color: var(--ink); font-family: var(--font-display); font-size: 23px; letter-spacing: .08em; text-decoration: none; }
.legal-brand span { display: block; margin-top: -2px; color: var(--muted); font: 9px var(--font-body); letter-spacing: .45em; text-align: center; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 14px; }
.legal-nav a, .legal-footer a { color: var(--teal-dark); font-size: 13px; text-decoration: none; }
.legal-nav a:hover, .legal-footer a:hover { text-decoration: underline; }
.legal-card { margin-top: 34px; padding: 42px clamp(22px, 5vw, 64px); border: 1px solid #e1e6eb; border-radius: 10px; background: #fff; box-shadow: 0 8px 24px rgba(31,41,55,.05); }
.legal-card h1 { margin: 0; color: var(--ink); font-family: var(--font-display); font-size: clamp(34px, 5vw, 52px); letter-spacing: -.06em; }
.legal-meta { margin: 9px 0 32px; color: var(--muted); font-size: 12px; }
.legal-card p { color: #4d5c68; font-size: 15px; line-height: 1.7; }
.legal-card h2 { margin: 30px 0 8px; color: var(--ink); font-family: var(--font-display); font-size: 23px; letter-spacing: -.03em; }
.legal-card a { color: var(--teal-dark); }
.legal-footer { display: flex; gap: 10px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
@media (max-width: 620px) { .legal-header { display: block; }.legal-nav { margin-top: 18px; }.legal-card { margin-top: 22px; padding: 28px 20px; }.legal-card p { font-size: 14px; } }
.cancel-link { margin-left: 10px; color: #8f604b; border-color: #dfc4b2; background: #fbf2ec; }
.cancel-link:hover { border-color: var(--clay); background: #f7e9df; }
.grid-action { display: inline-flex; align-items: center; min-height: 30px; margin: 2px 6px 2px 0; padding: 0 9px; color: var(--teal-dark); border: 1px solid #c5dde0; border-radius: 5px; background: #f2f9fa; font: 600 11px var(--font-body); text-decoration: none; }
.grid-action:hover { border-color: var(--teal); background: #e2f1f3; }
.grid-action.danger { color: #9a5548; border-color: #e3c5be; background: #fff4f1; }
.grid-action.danger:hover { border-color: #c27a6c; background: #fbe7e2; }
.editable-grid td { position: relative; }
.editable-grid input[id$="_TopNo"], .editable-grid input[id$="_SatirFiyat"] { padding-right: 36px; }
.editable-grid td > .top-number-select, .editable-grid td > .price-picker-button { position: absolute; z-index: 2; top: 50%; right: 10px; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; min-height: 24px; margin: 0; padding: 0; transform: translateY(-50%); border-color: var(--orange); border-radius: 4px; background: var(--orange); color: #fff; font-size: 12px; font-weight: 700; line-height: 24px; }
.editable-grid td > .top-number-select:hover, .editable-grid td > .price-picker-button:hover { border-color: #d66c29; background: #d66c29; color: #fff; }
.nes-invoice-grid { min-width: 1450px; }
body.app-page .nes-invoice-grid th:last-child, body.app-page .nes-invoice-grid tbody td:last-child { width: 540px; min-width: 540px; overflow: visible !important; white-space: normal; }
.nes-invoice-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; min-width: 520px; }
.nes-invoice-actions .nes-invoice-scenario { flex: 0 0 150px; width: 150px; min-width: 150px; margin: 2px 4px 2px 0; }
.nes-invoice-actions .grid-action { margin: 2px 0; }
.tabulator-grid-mount.nes-invoice-grid .tabulator-cell:last-child { width: 540px !important; min-width: 540px !important; max-width: 540px !important; overflow: visible !important; white-space: nowrap; }
.tabulator-grid-mount.nes-invoice-grid .nes-invoice-actions { min-width: 0; width: 100%; flex-wrap: nowrap; gap: 4px; white-space: nowrap; }
.tabulator-grid-mount.nes-invoice-grid .nes-invoice-actions .nes-invoice-scenario { flex: 0 0 128px; width: 128px; min-width: 128px; height: 30px; margin: 0; padding: 3px 5px; font-size: 11px; }
.tabulator-grid-mount.nes-invoice-grid .nes-invoice-actions .grid-action { flex: 0 0 auto; margin: 0; padding: 0 7px; min-height: 30px; }
.nes-incoming-grid { min-width: 1500px; }
body.app-page .nes-incoming-grid th:last-child,
body.app-page .nes-incoming-grid tbody td:last-child { width: 430px; min-width: 430px; overflow: visible !important; white-space: normal; }
.nes-incoming-actions { min-width: 400px; }
.nes-incoming-actions .grid-action { margin: 2px 0; }
.tabulator-grid-mount.nes-incoming-grid .tabulator-cell:last-child { width: 430px !important; min-width: 430px !important; max-width: 430px !important; overflow: visible !important; white-space: nowrap; }
.tabulator-grid-mount.nes-incoming-grid .nes-incoming-actions { min-width: 0; width: 100%; flex-wrap: nowrap; gap: 4px; white-space: nowrap; }
.tabulator-grid-mount.nes-incoming-grid .nes-incoming-actions .grid-action { flex: 0 0 auto; margin: 0; padding: 0 7px; min-height: 30px; }
.danger-action { color: #a52b2b !important; border-color: #e2aaaa !important; }
.nes-incoming-grid th,
.nes-incoming-grid td { vertical-align: top; }
.nes-incoming-grid th { white-space: nowrap; }
.nes-incoming-grid td:nth-child(3),
.nes-incoming-grid td:nth-child(9) { white-space: normal; overflow-wrap: anywhere; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 18px; width: 100%; max-width: none; margin: 0 auto; }
.settings-card { min-width: 0; overflow: hidden; padding: 26px 28px 22px; }
.settings-card .panel-heading { margin-bottom: 18px; }
.settings-form { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.settings-form .text-input { min-width: 0; flex: 1; }
.settings-form .small-button { white-space: nowrap; }
.nes-settings-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.nes-settings-form .text-input { width: 100%; }
.nes-settings-form input[type="checkbox"] { align-self: center; min-height: 42px; }
.status-pill-warning { border-color: #f1d4a5; background: #fff8eb; color: #9b6512; }
@media (max-width: 760px) { .nes-settings-form { grid-template-columns: 1fr; } }
.settings-card .customer-grid { width: 100%; min-width: 0; margin-top: 10px; }
.settings-card .customer-grid th, .settings-card .customer-grid td { padding: 11px 8px; }
.summary-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0 10px; }
.summary-card { min-height: 84px; padding: 14px 16px; border: 1px solid var(--line); border-top: 3px solid var(--teal); border-radius: 8px; background: #fff; }
.summary-card span { display: block; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.summary-card strong { display: block; margin-top: 12px; color: var(--ink); font: 700 24px var(--font-display); }
@media (max-width: 760px) { .summary-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tag-check-list { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.tag-check-list td { width: 33.333%; padding: 8px 12px 8px 0; vertical-align: top; }
.tag-check-list label { display: inline; margin: 0 0 0 6px; font-size: 12px; font-weight: 500; }
.stock-photo-preview { display: block; max-width: 240px; max-height: 160px; margin-top: 10px; border: 1px solid var(--line); border-radius: 7px; object-fit: contain; }
.stock-photo-name { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; }
.stock-photo-hover { position: relative; display: inline-flex; }
.stock-photo-popover { position: absolute; z-index: 50; top: 50%; right: calc(100% + 8px); left: auto; display: none; width: 95px; height: 75px; padding: 0; border: 0; border-radius: 6px; background: transparent; box-shadow: 0 6px 14px rgba(32,44,59,.16); overflow: hidden; pointer-events: none; transform: translateY(-50%); }
.stock-photo-hover:hover .stock-photo-popover, .stock-photo-hover:focus-within .stock-photo-popover { display: block; }
.stock-photo-hover a.grid-action[href=""], .stock-photo-hover a.grid-action:not([href]) { display: none; }
.tabulator-grid-mount .tabulator-tableholder { overflow-y: visible !important; }
.tabulator-grid-mount .tabulator-cell:has(.stock-photo-hover), .tabulator-grid-mount .tabulator-row:has(.stock-photo-hover) { overflow: visible !important; }
.stock-photo-popover img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.customer-grid td:last-child { overflow: visible !important; }
.customer-grid td:has(.nes-despatch-actions) { vertical-align: middle; }
.nes-despatch-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 32px; }
.nes-despatch-actions > .grid-action { display: inline-flex; align-items: center; align-self: center; min-height: 30px; margin: 0; line-height: 1; }
.stock-photo-field { grid-column: 1; }
.stock-label-field { grid-column: 2; }
@media (max-width: 1050px) { .settings-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .stock-photo-field, .stock-label-field { grid-column: 1; } }

.purchase-select-button { display: none; margin-top: 10px; }
.selected-purchase { display: block; margin-top: 8px; color: var(--teal-dark); font-size: 12px; font-weight: 600; }
.modal-backdrop { position: fixed; z-index: 1000; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(20, 31, 37, .62); }
.modal-backdrop.is-hidden { display: none; }
.modal-card { width: min(1500px, 96vw); max-height: 85vh; overflow: auto; padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--cream); box-shadow: 0 24px 80px rgba(20, 31, 37, .28); }
.modal-card .panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.modal-close { padding: 9px 14px; color: var(--teal-dark); border: 1px solid #c5dde0; border-radius: 6px; background: #f2f9fa; cursor: pointer; }
.modal-card .customer-grid { margin-top: 16px; }
.purchase-modal-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.fason-selection-message { margin: 12px 0 0; padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--accent-soft); }
.purchase-modal-toolbar .text-input { width: min(260px, 100%); }
.purchase-selection-info { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 700; }
.purchase-selection-grid { min-width: 980px; table-layout: fixed; }
.purchase-selection-grid th, .purchase-selection-grid td { padding: 9px 8px; }
.purchase-selection-grid th:nth-child(1), .purchase-selection-grid td:nth-child(1) { width: 42px; min-width: 42px; text-align: center; }
.purchase-selection-grid th:nth-child(2), .purchase-selection-grid td:nth-child(2) { width: 88px; min-width: 88px; }
.purchase-selection-grid th:nth-child(3), .purchase-selection-grid td:nth-child(3) { width: 78px; min-width: 78px; }
.purchase-selection-grid th:nth-child(4), .purchase-selection-grid td:nth-child(4) { width: 170px; min-width: 170px; }
.purchase-selection-grid th:nth-child(5), .purchase-selection-grid td:nth-child(5) { width: 96px; min-width: 96px; }
.purchase-selection-grid th:nth-child(6), .purchase-selection-grid td:nth-child(6) { width: 100px; min-width: 100px; }
.purchase-selection-grid th:nth-child(7), .purchase-selection-grid td:nth-child(7) { width: 260px; min-width: 180px; }
.purchase-selection-grid th:nth-child(8), .purchase-selection-grid td:nth-child(8) { width: 82px; min-width: 82px; }
.purchase-selection-grid th:nth-child(9), .purchase-selection-grid td:nth-child(9) { width: 64px; min-width: 64px; }
.purchase-selection-grid th:nth-child(10), .purchase-selection-grid td:nth-child(10) { width: 105px; min-width: 105px; }
.purchase-selection-grid th:nth-child(11), .purchase-selection-grid td:nth-child(11) { width: 66px; min-width: 66px; }
.purchase-selection-grid td:nth-child(7) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fason-selection-grid { min-width: 1420px; table-layout: fixed; }
.fason-selection-grid th, .fason-selection-grid td { padding: 9px 8px; }
.fason-selection-grid th:nth-child(1), .fason-selection-grid td:nth-child(1) { width: 42px; min-width: 42px; text-align: center; }
.fason-selection-grid th:nth-child(2), .fason-selection-grid td:nth-child(2) { width: 140px; min-width: 140px; white-space: nowrap; }
.fason-selection-grid th:nth-child(3), .fason-selection-grid td:nth-child(3) { width: 64px; min-width: 64px; }
.fason-selection-grid th:nth-child(4), .fason-selection-grid td:nth-child(4) { width: 180px; min-width: 180px; }
.fason-selection-grid th:nth-child(5), .fason-selection-grid td:nth-child(5) { width: 220px; min-width: 220px; }
.fason-selection-grid th:nth-child(6), .fason-selection-grid td:nth-child(6) { width: 240px; min-width: 240px; }
.fason-selection-grid th:nth-child(7), .fason-selection-grid td:nth-child(7) { width: 190px; min-width: 190px; }
.fason-selection-grid th:nth-child(8), .fason-selection-grid td:nth-child(8) { width: 150px; min-width: 150px; }
.fason-selection-grid th:nth-child(9), .fason-selection-grid td:nth-child(9) { width: 90px; min-width: 90px; }
.fason-selection-grid th:nth-child(10), .fason-selection-grid td:nth-child(10) { width: 110px; min-width: 110px; }
.fason-selection-grid td:nth-child(5), .fason-selection-grid td:nth-child(6), .fason-selection-grid td:nth-child(7), .fason-selection-grid td:nth-child(8) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fason-incoming-selection-grid { min-width: 1900px; table-layout: fixed; }
.fason-incoming-selection-grid th, .fason-incoming-selection-grid td { padding: 9px 8px; }
.fason-incoming-selection-grid th:nth-child(1), .fason-incoming-selection-grid td:nth-child(1) { width: 42px; min-width: 42px; text-align: center; }
.fason-incoming-selection-grid th:nth-child(2), .fason-incoming-selection-grid td:nth-child(2) { width: 150px; min-width: 150px; white-space: nowrap; overflow: visible; text-overflow: clip; }
.fason-incoming-selection-grid th:nth-child(3), .fason-incoming-selection-grid td:nth-child(3) { width: 64px; min-width: 64px; }
.fason-incoming-selection-grid th:nth-child(4), .fason-incoming-selection-grid td:nth-child(4) { width: 230px; min-width: 230px; }
.fason-incoming-selection-grid th:nth-child(5), .fason-incoming-selection-grid td:nth-child(5), .fason-incoming-selection-grid th:nth-child(6), .fason-incoming-selection-grid td:nth-child(6) { width: 220px; min-width: 220px; }
.fason-incoming-selection-grid th:nth-child(7), .fason-incoming-selection-grid td:nth-child(7), .fason-incoming-selection-grid th:nth-child(8), .fason-incoming-selection-grid td:nth-child(8) { width: 250px; min-width: 250px; }
.fason-incoming-selection-grid th:nth-child(9), .fason-incoming-selection-grid td:nth-child(9) { width: 160px; min-width: 160px; }
.fason-incoming-selection-grid th:nth-child(10), .fason-incoming-selection-grid td:nth-child(10) { width: 105px; min-width: 105px; }
.fason-incoming-selection-grid th:nth-child(11), .fason-incoming-selection-grid td:nth-child(11) { width: 70px; min-width: 70px; }
.fason-incoming-selection-grid td:nth-child(n+4) { white-space: nowrap; overflow: visible; text-overflow: clip; }
.customer-grid th { position: relative; min-width: 110px; }.column-filter { margin-top: 8px; position: relative; font: 11px var(--font-body); text-transform: none; letter-spacing: 0; }.column-filter summary { cursor: pointer; padding: 5px 8px; border: 1px solid var(--line); border-radius: 5px; color: var(--teal-dark); background: #fff; list-style: none; }.column-filter summary::-webkit-details-marker { display: none; }.column-filter-menu { position: absolute; z-index: 20; top: 30px; left: 0; min-width: 180px; max-height: 240px; overflow: auto; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 8px 20px rgba(32,44,59,.16); }.column-filter-option { display: flex; align-items: center; gap: 7px; padding: 5px 3px; color: var(--ink); font-size: 12px; font-weight: 500; text-transform: none; letter-spacing: 0; white-space: nowrap; }.column-filter-option input { margin: 0; }
.customer-grid.js-tabulator-grid { visibility: hidden; }
.tabulator-grid-mount { position: relative; width: 100%; min-width: 0; margin-top: 14px; }
.tabulator-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; padding: 10px; border: 1px solid #d9e2e3; border-radius: 4px; background: #f1f6f6; }
.tabulator-global-search { flex: 1 1 260px; min-width: 220px; height: 36px; padding: 8px 12px; border: 1px solid #c8d7d9; border-radius: 4px; color: var(--ink); background: #fff; font: 13px var(--font-body); }
.tabulator-global-search:focus { outline: 2px solid rgba(239, 124, 43, .22); border-color: var(--orange); }
.tabulator-toolbar .small-button { margin: 0; }
.kartela-select-header { display: inline-flex; align-items: center; gap: 6px; color: #fffaf5; cursor: pointer; }
.kartela-select-header input { width: 15px; height: 15px; margin: 0; accent-color: #fff; cursor: pointer; }
.kartela-variant-filter { display: inline-flex; align-items: center; gap: 6px; color: var(--teal-dark); font-size: 12px; font-weight: 600; white-space: nowrap; }
.kartela-variant-filter .text-input { width: 110px; min-width: 110px; height: 36px; padding: 6px 8px; }
.kartela-selection-count { margin-left: auto; color: var(--teal-dark); font-size: 12px; font-weight: 700; white-space: nowrap; }
.kartela-copy-input { width: 72px; min-width: 72px; height: 32px; padding: 5px 8px; border: 1px solid #c8d7d9; border-radius: 4px; color: var(--ink); background: #fff; font: 700 13px var(--font-body); text-align: center; }
.kartela-copy-input:focus { outline: 2px solid rgba(239, 124, 43, .22); border-color: var(--orange); }
.tabulator-column-menu { position: absolute; z-index: 30; top: 58px; right: 10px; display: grid; min-width: 190px; max-height: 300px; overflow: auto; gap: 6px; padding: 12px; border: 1px solid #c8d7d9; border-radius: 4px; background: #fff; box-shadow: 0 12px 28px rgba(32,44,59,.18); }
.tabulator-column-menu.is-hidden { display: none; }
.tabulator-column-option { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 12px; white-space: nowrap; }
.tabulator-grid-mount .tabulator { border: 1px solid #c8d7d9; border-radius: 4px; overflow: hidden; font: 13px var(--font-body); }
.tabulator-grid-mount .tabulator .tabulator-header { background: var(--orange) !important; border-bottom: 1px solid #d96a25 !important; }
.tabulator-grid-mount .tabulator .tabulator-col { background: var(--orange) !important; }
.tabulator-grid-mount .tabulator .tabulator-col-title { color: #fffaf5 !important; font-family: 'Trebuchet MS', 'Segoe UI', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .025em; text-transform: uppercase; white-space: normal; }
.tabulator-grid-mount .tabulator-header-filter input, .tabulator-grid-mount .tabulator-header-filter select { width: 100%; min-height: 30px; border: 1px solid #b9ced0; border-radius: 3px; padding: 5px 7px; background: #fff; font: 12px var(--font-body); }
.tabulator-grid-mount .tabulator-row { min-height: 44px !important; height: 44px !important; border-bottom: 1px solid #e1e9e9; }
.tabulator-grid-mount .tabulator-row:nth-child(even) { background: #f7fbfb; }
.tabulator-grid-mount .tabulator-row:hover { background: #fff2e7; }
.tabulator-grid-mount .tabulator-cell { height: 44px !important; padding: 10px 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.customer-grid:not(.editable-grid) tbody tr { height: 44px; }
.customer-grid:not(.editable-grid) tbody td { height: 44px; max-height: 44px; padding-top: 8px; padding-bottom: 8px; vertical-align: middle; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-grid:not(.editable-grid) tbody td .grid-action { vertical-align: middle; }
.customer-grid.fason-selection-grid:not(.editable-grid) tbody td:nth-child(2) {
    width: 230px;
    min-width: 230px;
    max-width: 230px;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
}
.customer-grid.fason-selection-grid:not(.editable-grid) thead th:nth-child(2) {
    width: 230px;
    min-width: 230px;
    max-width: 230px;
    white-space: nowrap;
}
.tabulator-grid-mount .tabulator-cell .grid-action { display: inline-block; white-space: nowrap; }
.tabulator-grid-mount .tabulator-tableholder { overflow-x: auto; overflow-y: visible; }
.dashboard-header .primary-button,
.tabulator-toolbar .small-button {
    font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
    letter-spacing: .025em;
}
.customer-list-panel .customer-grid th,
.customer-list-panel .customer-grid tbody tr:first-child th {
    color: #f5fbfb !important;
    background: var(--teal-dark) !important;
    border-color: #0a4650 !important;
    font-weight: 800;
    letter-spacing: .04em;
}
.customer-list-panel .customer-grid th input,
.customer-list-panel .customer-grid th select {
    color: var(--ink) !important;
    background: #fff !important;
}
#MainContent_HareketGrid th:last-child,
#MainContent_HareketGrid td:last-child {
    width: 230px;
    min-width: 230px;
    white-space: nowrap;
}
#MainContent_HareketGrid td:last-child .grid-action {
    margin-right: 7px;
    padding-left: 8px;
    padding-right: 8px;
}
#MainContent_HareketGrid td:last-child {
    min-width: 290px;
    white-space: normal;
}
#MainContent_HareketGrid td:last-child .grid-action {
    display: inline-flex;
    margin-bottom: 3px;
}

/* A restrained CSS version of Magic UI's Border Beam for the login card. */
.login-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #fff;
    border: 0;
    border-radius: 10px;
}
.login-page .page-shell { background: #f5f7fa; }
.login-page .login-card { box-shadow: none; }
.login-card::before {
    content: none;
}
.login-border-beam {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.login-border-beam rect {
    fill: none;
    stroke: var(--orange);
    stroke-linecap: round;
    animation: login-border-beam 6s linear infinite;
    filter: none;
}
.login-border-beam rect.login-border-beam-base {
    stroke: #ed7d32;
    stroke-width: 1;
    opacity: 1;
}
.login-border-beam rect.login-border-beam-head {
    stroke: #f6d365;
    filter: drop-shadow(0 0 1.5px rgba(246,211,101,.82));
    stroke-width: 1;
    stroke-dasharray: .15625 99.84375;
    filter: none;
}
.login-card::after {
    content: none;
}
.login-card > * { position: relative; z-index: 1; }
.login-card > .login-border-beam { position: absolute; z-index: 0; }
@keyframes login-border-beam {
    to { stroke-dashoffset: -100; }
}
@media (max-width: 760px) {
    .login-card::after { border-radius: calc(10px - 3px); }
}

/* CRM columns reveal five cards first, then load ten more at a time. */
.crm-column-cards { max-height: none; overflow-y: visible; }
.crm-opportunity-card.is-extra-card { display: none; }
.crm-opportunity-card.is-extra-card.is-visible { display: block; }
.crm-load-more { width: 100%; margin-top: 2px; padding: 9px 10px; border: 1px dashed #a9c8cc; border-radius: 6px; color: var(--teal-dark); background: #f4fafb; font: 700 11px var(--font-body); cursor: pointer; }
.crm-load-more:hover { background: #e9f5f6; }
body.kartela-request-page .mobile-kartela-camera-button { display: none; }
@media (max-width: 760px) {
    body.kartela-request-page .page-shell { padding-bottom: 92px; display: flex; flex-direction: column; }
    body.kartela-request-page .page-shell > .dashboard-header { order: 1; }
    body.kartela-request-page .page-shell > .form-message { order: 2; }
    body.kartela-request-page .page-shell > .dashboard-panel:has(.mobile-qr-scanner) { order: 3; border: 2px solid rgba(8,106,120,.22); box-shadow: 0 8px 24px rgba(8,106,120,.1); }
    body.kartela-request-page .page-shell > .dashboard-panel:not(:has(.mobile-qr-scanner)):not(.customer-list-panel) { order: 4; }
    body.kartela-request-page .page-shell > .customer-list-panel { order: 5; }
    body.kartela-request-page .mobile-qr-scanner { padding: 4px 0 8px; }
    body.kartela-request-page .mobile-qr-scanner { width: 100%; max-width: 100%; overflow: hidden; }
    body.kartela-request-page .mobile-qr-video { display: none; width: 100%; max-width: 100%; height: min(52vw, 260px); object-fit: contain; border-radius: 8px; background: #111; }
    body.kartela-request-page .mobile-qr-reader { width: 100%; max-width: 100%; margin: 12px 0; }
    body.kartela-request-page .mobile-qr-reader video { width: 100% !important; max-width: 100% !important; height: auto !important; }
    body.kartela-request-page .mobile-qr-scanner .secondary-button { width: 100%; min-height: 48px; font-size: 14px; }
    body.kartela-request-page .mobile-kartela-camera-button { display: block; position: fixed; z-index: 30; right: 18px; bottom: 18px; left: 18px; min-height: 50px; border: 0; border-radius: 9px; background: #ed7d32; color: #fff; box-shadow: 0 8px 20px rgba(32,44,59,.2); font: 700 14px var(--font-body); cursor: pointer; }
     body.kartela-request-page .kartela-scanned-scroll { width: 100%; max-width: 100%; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 8px; }
     body.kartela-request-page .kartela-scanned-grid { min-width: 720px !important; width: 720px !important; table-layout: auto !important; border-collapse: collapse !important; background: #fff !important; }
     body.kartela-request-page .kartela-scanned-grid thead { display: table-header-group !important; }
     body.kartela-request-page .kartela-scanned-grid tbody { display: table-row-group !important; }
     body.kartela-request-page .kartela-scanned-grid tr { display: table-row !important; }
     body.kartela-request-page .kartela-scanned-grid th,
     body.kartela-request-page .kartela-scanned-grid td { display: table-cell !important; width: auto !important; min-width: 0 !important; padding: 10px 12px; white-space: normal !important; overflow-wrap: normal; word-break: normal; vertical-align: top; }
     body.kartela-request-page .kartela-scanned-grid th { white-space: nowrap !important; }
     body.kartela-request-page .kartela-scanned-grid td:nth-child(1) { width: 150px !important; }
     body.kartela-request-page .kartela-scanned-grid td:nth-child(2) { width: 120px !important; }
     body.kartela-request-page .kartela-scanned-grid td:nth-child(3) { width: 120px !important; }
     body.kartela-request-page .kartela-scanned-grid td:nth-child(4) { width: 110px !important; }
     body.kartela-request-page .kartela-scanned-grid td:nth-child(5) { width: 170px !important; }
     body.kartela-request-page .kartela-scanned-grid td:nth-child(6) { width: 75px !important; white-space: nowrap !important; }
}
@media (prefers-reduced-motion: reduce) {
    .login-border-beam rect { animation: none; }
    .login-velocity-row { animation: none; }
    .login-benefit-typing::after { animation: none; }
}

.error-log-panel { overflow: hidden; }
.error-log-filters { display: grid; grid-template-columns: minmax(260px, 2fr) repeat(2, minmax(150px, 1fr)) repeat(2, minmax(145px, 1fr)) auto; align-items: end; gap: 12px; margin: 18px 0 10px; padding: 14px; border: 1px solid #d9e2e3; border-radius: 6px; background: #f1f6f6; }
.error-log-filters .form-field { min-width: 0; }
.error-log-filters .form-field label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 11px; font-weight: 700; }
.error-log-filters .text-input { width: 100%; min-width: 0; min-height: 38px; }
.error-log-filter-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.error-log-filter-actions .small-button { margin: 0; white-space: nowrap; }
.error-log-grid { min-width: 1420px; }
.error-log-grid th, .error-log-grid td { vertical-align: top; }
.error-log-grid td { max-width: 420px; white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
.error-log-grid td:first-child { min-width: 145px; white-space: nowrap; }
.error-log-grid td:nth-child(2) { min-width: 210px; }
.error-log-grid td:nth-child(3), .error-log-grid td:nth-child(4) { min-width: 120px; }
.error-log-grid td:nth-child(6) { min-width: 210px; }
.error-log-grid td:nth-child(7) { min-width: 260px; }
.error-log-grid td:nth-child(8) { min-width: 420px; font-family: Consolas, 'Courier New', monospace; font-size: 11px; }
@media (max-width: 1050px) {
    .error-log-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .error-log-filters .form-field:first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
    .error-log-filters { grid-template-columns: 1fr; }
    .error-log-filters .form-field:first-child { grid-column: auto; }
    .error-log-filter-actions { grid-column: auto; }
}
#HareketFormPanel:target { display: block !important; }
#HareketFormPanel:target ~ #MainContent_HareketListePanel { display: none !important; }
.module-permission-box { margin: 6px 0 18px; padding: 0 18px 16px; border: 1px solid var(--line); border-radius: 8px; }
.module-permission-list { width: 100%; margin-top: 14px; border-collapse: collapse; }
.module-permission-list td { width: 33.33%; padding: 8px 14px 8px 0; vertical-align: top; }
.module-permission-list input { margin-right: 8px; accent-color: var(--teal); }
.module-permission-list label { display: inline; font-size: 13px; font-weight: 500; }
.crm-dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.crm-dashboard-positive { border-top: 3px solid #0b6a78; }
.crm-dashboard-attention { border-top: 3px solid #ed7d32; }
.crm-dashboard-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.crm-dashboard-metrics div { padding: 14px; border: 1px solid var(--line); border-radius: 7px; background: #f8fafb; }
.crm-dashboard-metrics span { display: block; min-height: 34px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.crm-dashboard-metrics strong { display: block; margin-top: 5px; color: var(--navy); font-size: 26px; }
@media (max-width: 760px) {
    .crm-dashboard-grid { grid-template-columns: 1fr; }
    .crm-dashboard-metrics { grid-template-columns: 1fr; }
    .crm-dashboard-metrics div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .crm-dashboard-metrics span { min-height: 0; }
    .crm-dashboard-metrics strong { margin-top: 0; }
}
@media (max-width: 760px) { .module-permission-list, .module-permission-list tbody, .module-permission-list tr { display: block; width: 100%; } .module-permission-list td { display: block; width: 100%; padding: 7px 5px 7px 0; font-size: 12px; } }

/* CRM opportunity detail keeps the summary readable on phones and lets wide grids scroll inside their panel. */
.crm-detail-header .secondary-button { align-self: center; white-space: nowrap; }
.crm-detail-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 1400px; margin: 0 auto 22px; }
.crm-detail-summary-card { min-height: 94px; padding: 16px 18px; border: 1px solid var(--line); border-top: 3px solid #dfc653; border-radius: 8px; background: #fff; box-shadow: 0 3px 12px rgba(32,44,59,.035); }
.crm-detail-summary-card span { display: block; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.crm-detail-summary-card strong { display: block; margin-top: 12px; color: var(--ink); font: 700 25px var(--font-display); }
.crm-detail-summary-card.crm-summary-positive { border-top-color: #0b6a78; }
.crm-detail-summary-card.crm-summary-warning { border-top-color: var(--accent); }
.crm-detail-summary-card.crm-summary-teal { border-top-color: var(--teal); }
.crm-install-panel { max-width: 1400px; margin: 0 auto; }
.crm-detail-grid { min-width: 880px; }
.crm-detail-grid .compact-input { min-width: 145px; min-height: 34px; padding: 6px 9px; font-size: 12px; }
.crm-detail-grid td { vertical-align: middle; }
.crm-detail-grid td:last-child { white-space: nowrap; }
@media (max-width: 760px) {
    .crm-detail-header .secondary-button { width: 100%; margin-top: 16px; text-align: center; }
    .crm-detail-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .crm-detail-summary-card { min-height: 82px; padding: 13px; }
    .crm-detail-summary-card strong { margin-top: 8px; font-size: 22px; }
    .crm-detail-grid { min-width: 820px; }
}
