/* ==========================================================================
   Rampa Takip — Uygulama (Yönetici Paneli, Firma Paneli, giriş ekranları)
   Renk paleti tanıtım sitesiyle ortaktır.
   ========================================================================== */

:root {
    --green: #0B6B4F;
    --green-hover: #095A42;
    --green-2: #55B947;
    --dark: #073B32;
    --gray: #667085;
    --bg: #F5F8F6;

    --ink: #0F1D19;
    --text: #3E4A46;
    --muted: #8A948F;
    --line: #E4EAE7;
    --line-soft: #EFF3F1;
    --tint: #EAF4EE;
    --white: #FFFFFF;

    --blue: #2563EB;   --blue-bg: #EAF1FE;
    --orange: #D97706; --orange-bg: #FEF3E2;
    --red: #DC2626;    --red-bg: #FDECEC;
    --purple: #7C3AED; --purple-bg: #F1EBFE;
    --s-green: #16A34A;

    --sidebar-bg: var(--dark);
    --sidebar-active: var(--green);

    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 2px rgba(16, 40, 32, .05);
    --shadow: 0 1px 3px rgba(16, 40, 32, .06), 0 6px 16px rgba(16, 40, 32, .05);
    --shadow-lg: 0 20px 50px rgba(7, 30, 25, .18);
    --sidebar-w: 256px;
    --topbar-h: 64px;
}

.app-body--yonetim {
    --sidebar-bg: #111C19;
    --sidebar-active: #1E7A5C;
}

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.25; letter-spacing: -.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .9em; background: var(--line-soft); padding: 1px 6px; border-radius: 4px; color: var(--ink); }
:focus-visible { outline: 2px solid var(--green-2); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic--xs { width: 14px; height: 14px; }
.muted { color: var(--muted); }
.block { display: block; }
.nowrap { white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.text-warn { color: var(--orange); font-weight: 600; }
.text-danger { color: var(--red); font-weight: 600; }
.c-green { color: var(--green); }
.c-orange { color: var(--orange); }
.link { color: var(--green); font-weight: 600; }
.link:hover { text-decoration: underline; }
.link-strong { color: var(--ink); font-weight: 600; }
.link-strong:hover { color: var(--green); }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--line-soft); color: var(--text); font-size: 12px; font-weight: 600; margin-left: 4px; vertical-align: 2px; }

/* ---------- Butonlar ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 38px; padding: 0 16px; border-radius: var(--radius); border: 1px solid transparent;
    font-size: 13.5px; font-weight: 600; line-height: 1; white-space: nowrap;
    transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn .ic { width: 16px; height: 16px; }
.btn--sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn--lg { height: 46px; padding: 0 22px; font-size: 14.5px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 1px 2px rgba(11, 107, 79, .25); }
.btn--primary:hover { background: var(--green-hover); }
.btn--outline { background: #fff; color: var(--ink); border-color: #D3DCD8; box-shadow: var(--shadow-sm); }
.btn--outline:hover { border-color: var(--green); color: var(--green); }
.btn--ghost { color: var(--text); }
.btn--ghost:hover { background: var(--line-soft); color: var(--ink); }
.btn--danger { background: var(--red); color: #fff; }
.btn--danger:hover { background: #B91C1C; }
.btn--danger-outline { background: #fff; color: var(--red); border-color: #F3C4C4; }
.btn--danger-outline:hover { background: var(--red-bg); }
.btn--disabled, .btn:disabled { background: var(--line-soft); color: var(--muted); border-color: var(--line); cursor: not-allowed; box-shadow: none; }

.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: var(--radius); color: var(--ink); }
.icon-btn:hover { background: var(--line-soft); }

/* ---------- Uygulama iskeleti ---------- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 50; width: var(--sidebar-w);
    display: flex; flex-direction: column; background: var(--sidebar-bg); color: rgba(255, 255, 255, .78);
}
.sidebar__brand { padding: 20px 20px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.sidebar__brand img { width: 146px; }
.sidebar__tag {
    display: inline-block; margin-top: 10px; padding: 3px 9px; border-radius: 99px;
    background: rgba(85, 185, 71, .16); color: #A6E39C; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.app-body--yonetim .sidebar__tag { background: rgba(255, 255, 255, .1); color: #fff; }
.sidebar__nav { flex: 1; overflow-y: auto; padding: 10px 12px 16px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .15) transparent; }
.sidebar__group { margin: 18px 10px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .4); }
.sidebar__link {
    display: flex; align-items: center; gap: 11px; padding: 9px 10px; margin-bottom: 2px; border-radius: 7px;
    font-size: 13.5px; font-weight: 500; transition: background-color .15s, color .15s;
}
.sidebar__link .ic { width: 17px; height: 17px; opacity: .85; }
.sidebar__link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.sidebar__link.is-active { background: var(--sidebar-active); color: #fff; box-shadow: inset 3px 0 0 var(--green-2); }
.sidebar__link.is-active .ic { opacity: 1; }
.sidebar__link.is-locked { color: rgba(255, 255, 255, .42); }
.sidebar__badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--green-2); color: #062A22; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.sidebar__badge--red { background: #D92D20; color: #fff; }
.sidebar__soon { margin-left: auto; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .6); }
.sidebar__lock { margin-left: auto; opacity: .6; }
.sidebar__foot { margin: 0 12px 14px; padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, .06); display: flex; flex-direction: column; gap: 2px; }
.sidebar__foot-label { font-size: 11px; color: rgba(255, 255, 255, .5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar__foot strong { color: #fff; font-size: 13.5px; }
.sidebar__foot small { font-size: 12px; color: #A6E39C; }
.sidebar__foot small.is-warning { color: #FCD34D; }
.sidebar-backdrop { display: none; }

.app-main { flex: 1; min-width: 0; margin-left: var(--sidebar-w); display: flex; flex-direction: column; }
.topbar {
    position: sticky; top: 0; z-index: 40; height: var(--topbar-h);
    display: flex; align-items: center; gap: 16px; padding: 0 28px;
    background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.topbar__menu { display: none; }
.topbar__context { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar__company { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__company .ic { color: var(--green); }
.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.avatar {
    width: 34px; height: 34px; flex: none; border-radius: 50%;
    display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, var(--green-2), var(--green));
}
.avatar--sm { width: 30px; height: 30px; font-size: 11px; }
.avatar--xl { width: 76px; height: 76px; font-size: 24px; }

.user-menu, .dropdown-menu { position: relative; }
.user-menu__toggle { display: flex; align-items: center; gap: 10px; padding: 5px 8px 5px 5px; border-radius: 99px; }
.user-menu__toggle:hover { background: var(--line-soft); }
.user-menu__name { display: flex; flex-direction: column; text-align: left; line-height: 1.25; }
.user-menu__name strong { font-size: 13px; color: var(--ink); }
.user-menu__name small { font-size: 11.5px; color: var(--muted); }
.menu {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 200px; padding: 6px;
    background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.dropdown-menu .menu { left: 0; right: auto; }
.dropdown-menu .menu.menu--right { left: auto; right: 0; }
.is-open > .menu { opacity: 1; visibility: visible; transform: none; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 6px; font-size: 13.5px; color: var(--ink); text-align: left; white-space: nowrap; }
.menu a:hover, .menu button:hover { background: var(--bg); }
.menu .ic { width: 16px; height: 16px; color: var(--muted); }
.menu form { margin: 0; }

.content { padding: 28px clamp(20px, 2vw, 40px); width: 100%; } /* Geniş ekranda içerik sağ-sol tam genişlik */

/* ---------- Sayfa başlığı ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; font-weight: 800; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.page-head__sub { margin-top: 4px; color: var(--gray); }
.page-head__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.page-head__actions form { margin: 0; }
.breadcrumb { display: flex; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--green); }

/* ---------- Grid / kartlar ---------- */
.grid { display: grid; gap: 18px; margin-bottom: 18px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.grid--profile { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); align-items: start; }
.grid--flush { margin: 0; }
.grid > .card, .stack > .card { margin-bottom: 0; }
.stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); margin-bottom: 18px; min-width: 0; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.card__head h2 { font-size: 15px; font-weight: 700; }
.card__body { padding: 20px; }
.card--link { display: block; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card--link:hover { border-color: #BFD8CC; box-shadow: var(--shadow); transform: translateY(-1px); }

/* İstatistik kartı */
.stat { display: flex; align-items: center; gap: 14px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); min-width: 0; }
.stat__icon { width: 44px; height: 44px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--tint); color: var(--green); }
.stat__icon .ic { width: 22px; height: 22px; }
.stat > div { display: flex; flex-direction: column; min-width: 0; }
.stat__grow { flex: 1; }
.stat small { font-size: 12.5px; color: var(--gray); font-weight: 500; }
.stat strong { font-size: 24px; font-weight: 800; color: var(--ink); line-height: 1.2; letter-spacing: -.02em; }
.stat strong em { font-style: normal; font-size: 15px; font-weight: 600; color: var(--muted); }
.stat__text { font-size: 18px !important; }
.stat span, .stat a { font-size: 12.5px; color: var(--muted); }
.stat a { color: var(--green); font-weight: 600; }
.stat--alert .stat__icon { background: var(--blue-bg); color: var(--blue); }

.meter { display: block; height: 6px; margin-top: 8px; border-radius: 99px; background: var(--line-soft); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--green-2); }
.meter.is-warn i { background: #F59E0B; }
.meter.is-full i { background: var(--red); }
.meter--light { background: rgba(255, 255, 255, .2); }
.meter--light i { background: var(--green-2); }

/* ---------- Rozetler / çipler ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700; white-space: nowrap; letter-spacing: 0; vertical-align: middle; }
.badge .ic { width: 12px; height: 12px; }
.badge--green { background: var(--tint); color: var(--green); }
.badge--blue { background: var(--blue-bg); color: var(--blue); }
.badge--orange { background: var(--orange-bg); color: var(--orange); }
.badge--red { background: var(--red-bg); color: var(--red); }
.badge--purple { background: var(--purple-bg); color: var(--purple); }
.badge--gray { background: var(--line-soft); color: var(--gray); }
.badge--role { background: #EEF2F0; color: var(--ink); }
.chips { display: inline-flex; flex-wrap: wrap; gap: 5px; }
.chip { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); font-size: 11.5px; color: var(--text); }

/* ---------- Tablolar ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 10px 20px; background: #FAFBFA; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 13px 20px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #FBFCFB; }
.table tr.is-new td:first-child { box-shadow: inset 3px 0 0 var(--blue); }
.table tr.is-muted td { color: var(--muted); }
.row-actions { text-align: right; white-space: nowrap; width: 1%; }
.row-actions > * { display: inline-flex; vertical-align: middle; }
.row-actions form { margin: 0; }
.user-cell { display: flex; align-items: center; gap: 10px; }

.changes summary { cursor: pointer; color: var(--green); font-weight: 600; font-size: 12.5px; }
.changes ul { margin-top: 8px; display: grid; gap: 4px; font-size: 12.5px; }
.changes__old { color: var(--red); text-decoration: line-through; }
.changes__new { color: var(--s-green); }

/* ---------- Filtreler / sayfalama / sekmeler ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); }
.filters select, .filters input[type=date], .filters > input[type=search], .filters > input:not([type]) { height: 38px; padding: 0 12px; border: 1px solid #D3DCD8; border-radius: var(--radius); background: #fff; font: inherit; font-size: 13.5px; color: var(--ink); }
.filters > input[type=search], .filters > input:not([type]) { flex: 1 1 260px; min-width: 200px; max-width: 420px; }
.filters > input:focus, .filters select:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px rgba(11, 107, 79, .12); }
.search-input { position: relative; flex: 1 1 260px; max-width: 380px; }
.search-input .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 16px; height: 16px; }
.search-input input { width: 100%; height: 38px; padding: 0 12px 0 36px; border: 1px solid #D3DCD8; border-radius: var(--radius); font: inherit; font-size: 13.5px; }
.search-input input:focus, .filters select:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px rgba(11, 107, 79, .12); }

.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--gray); }
.pager__nav { display: flex; align-items: center; gap: 6px; }
.pager__nav a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 7px; border: 1px solid var(--line); background: #fff; }
.pager__nav a:hover { border-color: var(--green); color: var(--green); }

.tabs { display: flex; gap: 4px; margin-bottom: 14px; overflow-x: auto; overflow-y: hidden; box-shadow: inset 0 -1px 0 var(--line); }
.tabs__item { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; font-weight: 600; color: var(--gray); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs__item span { font-size: 11.5px; padding: 1px 7px; border-radius: 99px; background: var(--line-soft); }
.tabs__item:hover { color: var(--ink); }
.tabs__item.is-active { color: var(--green); border-bottom-color: var(--green); }
.tabs__item.is-active span { background: var(--tint); color: var(--green); }

/* ---------- Listeler ---------- */
.list li + li { border-top: 1px solid var(--line-soft); }
.list a, .list__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; }
.list a:hover { background: #FBFCFB; }
.list span:first-child { display: flex; flex-direction: column; min-width: 0; }
.list strong { color: var(--ink); font-weight: 600; }
.list small { color: var(--muted); font-size: 12.5px; }

.dl { display: grid; padding: 6px 20px 14px; }
.dl > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line-soft); }
.dl > div:last-child { border-bottom: 0; }
.dl dt { color: var(--muted); font-size: 13px; }
.dl dd { margin: 0; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.dl--wide { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.note { margin: 0 20px 18px; padding: 12px 14px; background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 8px; font-size: 13px; }
.note strong { display: block; color: #92400E; margin-bottom: 4px; }
.note p { white-space: pre-line; }

.module-list { padding: 10px 20px 16px; display: grid; gap: 4px; }
.module-list li { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: var(--muted); }
.module-list li .ic { width: 17px; height: 17px; }
.module-list li.is-on { color: var(--ink); }
.module-list li.is-on .ic { color: var(--s-green); }
.module-list--compact { padding: 6px 20px 16px; }
.module-list--compact li { padding: 3px 0; font-size: 13px; }
.module-list--detail li { align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.module-list--detail li:last-child { border-bottom: 0; }
.module-list--detail li > span:not(.badge) { flex: 1; display: flex; flex-direction: column; }
.module-list--detail small { color: var(--muted); font-size: 12.5px; }
.module-list--detail .ic { margin-top: 2px; }

/* ---------- Boş durum / uyarılar / bildirimler ---------- */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 48px 24px; color: var(--gray); }
.empty > .ic { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--tint); color: var(--green); margin-bottom: 6px; }
.empty h3 { font-size: 16px; }
.empty p { max-width: 380px; }
.empty .btn { margin-top: 8px; }
.empty--sm { flex-direction: row; justify-content: center; padding: 24px; gap: 10px; }
.empty--sm > .ic { width: 32px; height: 32px; padding: 7px; margin: 0; }

.alert { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 13.5px; border: 1px solid; }
.alert .ic { flex: none; }
.alert ul { margin: 0; padding-left: 18px; list-style: disc; }
.alert--error { background: var(--red-bg); border-color: #F6C7C7; color: #991B1B; }
.alert--success { background: var(--tint); border-color: #BFE0CC; color: var(--green); }
.alert--info { background: var(--blue-bg); border-color: #C9DAFC; color: #1E40AF; }
.alert--warn { background: var(--orange-bg); border-color: #FAD9A7; color: #92400E; }
.alert.validation-summary-valid, .alert:empty { display: none; }

.toasts { position: fixed; top: 76px; right: 24px; z-index: 200; display: grid; gap: 10px; width: min(420px, calc(100% - 32px)); }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 14px 14px 14px 16px; border-radius: 10px; background: #fff; box-shadow: var(--shadow-lg); border-left: 4px solid; font-weight: 500; color: var(--ink); animation: toast-in .25s ease; }
.toast--success { border-color: var(--s-green); }
.toast--success > .ic { color: var(--s-green); }
.toast--error { border-color: var(--red); }
.toast--error > .ic { color: var(--red); }
.toast span { flex: 1; }
.toast__close { color: var(--muted); }
.toast.is-leaving { opacity: 0; transform: translateX(16px); transition: opacity .3s, transform .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

.dialog { width: min(440px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 14px; box-shadow: var(--shadow-lg); }
.dialog::backdrop { background: rgba(7, 30, 25, .5); backdrop-filter: blur(2px); }
.dialog__body { display: flex; gap: 14px; padding: 22px 22px 8px; }
.dialog__body h2 { font-size: 17px; margin-bottom: 4px; }
.dialog__icon { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--red-bg); color: var(--red); }
.dialog__actions { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px 20px; }

/* ---------- Formlar ---------- */
.form-section { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 28px; padding: 24px; }
.form-section__intro h2 { font-size: 15.5px; font-weight: 700; }
.form-section__intro p { margin-top: 6px; color: var(--gray); font-size: 13px; }
.form-section__step { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tint); color: var(--green); font-weight: 800; font-size: 13px; margin-bottom: 10px; }
.form-section__body { display: grid; gap: 16px; min-width: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid__full { grid-column: 1 / -1; }
.form-stack { display: grid; gap: 16px; }
.pre-line { white-space: pre-line; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.form-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 4px 0 24px; }

.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field label, .field > .field__label-row label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field__label-row { display: flex; justify-content: space-between; align-items: center; }
.field__label-row .link { font-size: 12.5px; }
.field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea {
    width: 100%; height: 40px; padding: 0 12px; font: inherit; font-size: 14px; color: var(--ink);
    background: #fff; border: 1px solid #D3DCD8; border-radius: var(--radius); transition: border-color .15s, box-shadow .15s;
}
.field textarea { height: auto; padding: 10px 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px rgba(11, 107, 79, .12); }
.field input:disabled { background: var(--bg); color: var(--muted); }
/* Dosya alanı: metin kutusunun sabit yüksekliği yerine içeriğe göre; tarayıcının "Dosya Seç" düğmesi panel düğmesi görünümünde */
.field input[type=file]:not([type=checkbox]) { height: auto; min-height: 40px; padding: 5px 6px; line-height: 28px; font-size: 13.5px; color: var(--muted); cursor: pointer; }
input[type=file] { cursor: pointer; }
input[type=file]::file-selector-button { height: 28px; margin-right: 12px; padding: 0 14px; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); background: #fff; border: 1px solid #D3DCD8; border-radius: 6px; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
input[type=file]:hover::file-selector-button { border-color: var(--green); color: var(--green); background: var(--tint); }
input[type=file]:disabled::file-selector-button { cursor: not-allowed; opacity: .6; }
.field .input-validation-error { border-color: #F04438 !important; }
.field__hint { font-size: 12px; color: var(--muted); }
.field__error { font-size: 12.5px; color: var(--red); }
.field__error:empty { display: none; }

.password { position: relative; }
.password input { padding-right: 44px !important; }
.password__toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 6px; color: var(--muted); }
.password__toggle:hover { color: var(--green); background: var(--line-soft); }

.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; }
.check input, .check-card input, .role-option input, .package-option input { accent-color: var(--green); width: 16px; height: 16px; flex: none; margin: 0; }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; color: var(--ink); user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { width: 38px; height: 22px; border-radius: 99px; background: #CBD5D1; position: relative; transition: background-color .2s; flex: none; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .2s; }
.switch input:checked + .switch__track { background: var(--green); }
.switch input:checked + .switch__track::after { transform: translateX(16px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--green-2); outline-offset: 2px; }
.switch input:disabled + .switch__track { opacity: .5; }

.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.check-card, .role-option, .package-option {
    display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
    transition: border-color .15s, background-color .15s;
}
.check-card:hover, .role-option:hover, .package-option:hover { border-color: #BFD8CC; }
.check-card:has(input:checked), .role-option:has(input:checked), .package-option:has(input:checked) { border-color: var(--green); background: #F4FAF6; box-shadow: 0 0 0 1px var(--green) inset; }
.check-card input, .role-option input, .package-option input { margin-top: 2px; }
.check-card span, .role-option span, .package-option__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.check-card strong, .role-option strong, .package-option strong { font-size: 13.5px; color: var(--ink); }
.check-card small, .role-option small, .package-option small { font-size: 12px; color: var(--muted); }
.role-option:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.role-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.package-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.package-option.is-muted { opacity: .65; }
.package-option .chips { margin-top: 6px; }

/* ---------- Panel bileşenleri ---------- */
.setup { padding: 22px 24px; background: linear-gradient(135deg, #F2FAF4, #fff 60%); border-color: #CFE6D7; }
.setup__intro h2 { font-size: 18px; font-weight: 800; }
.setup__intro p { color: var(--gray); margin-top: 4px; }
.setup__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.setup__steps li { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.setup__steps li > div { display: flex; flex-direction: column; flex: 1; }
.setup__steps strong { color: var(--ink); }
.setup__steps small { color: var(--muted); font-size: 12.5px; }
.setup__steps .btn { align-self: flex-start; }
.setup__num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--green); font-weight: 800; font-size: 13px; }
.setup__steps li.is-done { background: #F7FBF8; }
.setup__steps li.is-done .setup__num { background: var(--green); color: #fff; }

.facility-list li + li { border-top: 1px solid var(--line-soft); }
.facility-list a { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(80px, 180px) auto; align-items: center; gap: 14px; padding: 14px 20px; }
.facility-list a:hover { background: #FBFCFB; }
.facility-list__icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--tint); color: var(--green); flex: none; }
.facility-list__name { display: flex; flex-direction: column; min-width: 0; }
.facility-list__name strong { color: var(--ink); }
.facility-list__name small { color: var(--muted); font-size: 12.5px; }
.facility-list__count { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.facility-list__count strong { font-size: 16px; color: var(--ink); }
.dock-bar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--line-soft); gap: 2px; }
.dock-bar i.is-active { background: var(--s-green); }
.dock-bar i.is-maintenance { background: #F59E0B; }
.dock-bar i.is-passive { background: #C3CBC7; }
.legend-inline { display: flex; flex-wrap: wrap; gap: 16px; padding: 12px 20px; font-size: 12.5px; color: var(--text); }
.filters .legend-inline { padding: 0; margin-left: auto; }
.legend-inline span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot--green { background: var(--s-green); }
.dot--orange { background: #F59E0B; }
.dot--gray { background: #C3CBC7; }

.facility-card { padding: 18px; display: flex; flex-direction: column; gap: 16px; margin: 0; }
.facility-card__head { display: flex; align-items: center; gap: 12px; }
.facility-card__head > div { flex: 1; min-width: 0; }
.facility-card__head h2 { font-size: 15.5px; }
.facility-card__head small { color: var(--muted); }
.facility-card__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.facility-card__stats div { display: flex; flex-direction: column; padding: 10px; border-radius: 8px; background: var(--bg); }
.facility-card__stats strong { font-size: 20px; color: var(--ink); }
.facility-card__stats small { color: var(--muted); font-size: 12px; }

.group + .group { border-top: 1px solid var(--line-soft); }
.group__title { padding: 16px 20px 0; font-size: 14px; }
.group__title a:hover { color: var(--green); }
.dock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; padding: 16px 20px 20px; }
.dock-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; border-top: 3px solid var(--s-green); }
.dock-card.is-maintenance { border-top-color: #F59E0B; background: #FFFCF5; }
.dock-card.is-passive { border-top-color: #C3CBC7; background: #FAFBFA; }
.dock-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.dock-card__no { font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.dock-card__status { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--s-green); }
.dock-card__status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.dock-card.is-maintenance .dock-card__status { color: var(--orange); }
.dock-card.is-passive .dock-card__status { color: var(--gray); }
.dock-card__name { font-size: 13px; color: var(--ink); }
.dock-card__meta { font-size: 12px; color: var(--muted); }
.dock-card .chips { margin-top: 4px; }
.dock-card__actions { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-soft); }

.soon-panel { padding: 22px; background: linear-gradient(135deg, var(--dark), #0B5A43); border: 0; color: rgba(255, 255, 255, .85); }
.soon-panel h2 { color: #fff; font-size: 16px; margin: 12px 0 6px; }
.soon-panel p { font-size: 13px; }
.soon-panel .link { display: inline-block; margin-top: 12px; color: #A6E39C; }
.soon-panel__icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: #fff; }

.subscription-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: center; padding: 24px 28px; background: linear-gradient(135deg, var(--dark), #0B5A43); border: 0; color: rgba(255, 255, 255, .8); }
.subscription-hero small { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #A6E39C; font-weight: 700; }
.subscription-hero h2 { color: #fff; font-size: 26px; margin: 6px 0; display: flex; align-items: center; gap: 10px; }
.subscription-hero__dates { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; }
.subscription-hero__dates strong { color: #fff; font-size: 16px; }
.subscription-hero__dates strong.text-warn { color: #FCD34D; }
.subscription-hero__warn { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: #FDE68A; }
.subscription-hero__warn a { text-decoration: underline; }

.plan { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.plan.is-muted { opacity: .7; }
.plan__head { display: flex; justify-content: space-between; align-items: center; }
.plan__head h2 { font-size: 18px; font-weight: 800; }
.plan__desc { color: var(--gray); font-size: 13px; min-height: 40px; }
.plan__price strong { font-size: 26px; color: var(--ink); font-weight: 800; }
.plan__price span { color: var(--muted); }
.plan__limits { display: grid; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.plan__limits li { display: flex; align-items: center; gap: 8px; }
.plan__limits .ic { color: var(--green); width: 16px; height: 16px; }
.plan .module-list { padding: 0; }
.plan__foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 8px; }
.actions-inline { display: inline-flex; gap: 6px; align-items: center; }
.actions-inline form { margin: 0; }

.profile-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 20px 18px; text-align: center; border-bottom: 1px solid var(--line-soft); }
.profile-card h2 { font-size: 17px; margin-top: 6px; }
.profile-card p { color: var(--muted); }

.roles-help .role-help { padding: 18px 20px; }
.roles-help .role-help + .role-help { border-left: 1px solid var(--line-soft); }
.role-help strong { color: var(--ink); }
.role-help p { margin-top: 4px; color: var(--gray); font-size: 12.5px; }

.module-intro { max-width: 720px; margin: 24px auto; padding: 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.module-intro__icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--tint); color: var(--green); }
.module-intro__icon .ic { width: 28px; height: 28px; }
.module-intro.is-locked .module-intro__icon { background: var(--line-soft); color: var(--gray); }
.module-intro h1 { font-size: 26px; font-weight: 800; }
.module-intro__lead { font-size: 15px; color: var(--gray); }
.module-intro__features { display: grid; gap: 10px; margin: 8px 0; }
.module-intro__features li { display: flex; gap: 10px; align-items: center; color: var(--ink); }
.module-intro__features .ic { color: var(--s-green); }
.module-intro .alert { margin: 8px 0 0; width: 100%; }

.bulk-preview { padding: 14px; border-radius: 10px; background: var(--bg); border: 1px dashed #CBD5D1; }
.bulk-preview small { color: var(--muted); font-weight: 600; }
.bulk-preview__list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bulk-preview__list span { min-width: 40px; padding: 6px 8px; text-align: center; border-radius: 6px; background: #fff; border: 1px solid var(--line); font-weight: 700; color: var(--ink); font-size: 13px; }

/* ---------- Giriş ekranları ---------- */
.auth-body { background: #fff; }
.auth-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.auth-split__brand {
    position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 40px 48px; color: #fff; overflow: hidden;
    background: linear-gradient(160deg, rgba(7, 59, 50, .92), rgba(5, 40, 33, .96)), url("../img/rampa-takip-tir.jpg") center / cover no-repeat;
}
.auth-split__logo img { width: 190px; }
.auth-split__copy h2 { color: #fff; font-size: clamp(26px, 2.4vw, 36px); font-weight: 800; line-height: 1.15; letter-spacing: -.025em; }
.auth-split__copy ul { margin-top: 26px; display: grid; gap: 12px; }
.auth-split__copy li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: rgba(255, 255, 255, .88); }
.auth-split__copy .ic { color: var(--green-2); }
.auth-split__foot { font-size: 13px; color: rgba(255, 255, 255, .5); }
.auth-split__main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-split__mobile-logo { display: none; margin-bottom: 28px; }
.auth-form { width: min(400px, 100%); }
.auth-form h1 { font-size: 26px; font-weight: 800; }
.auth-form__lead { margin: 6px 0 26px; color: var(--gray); font-size: 14.5px; }
.auth-form__alt { margin-top: 22px; text-align: center; color: var(--gray); }
.auth-form .toasts { position: static; width: 100%; margin-bottom: 16px; }
.auth-state { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.auth-state__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--tint); color: var(--green); margin-bottom: 14px; }
.auth-state__icon--warn { background: var(--orange-bg); color: var(--orange); }
.auth-state__icon .ic { width: 26px; height: 26px; }
.auth-state__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.auth-state__actions form { margin: 0; }

/* ---------- Saha (YMS) ekranları ---------- */
.btn--xl { height: 56px; font-size: 16px; border-radius: 10px; }
.btn--light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .22); }
.btn--light:hover { background: rgba(255, 255, 255, .2); }
.page-head--tight { margin-bottom: 16px; }
.field--narrow { max-width: 260px; }
.form-subtitle { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 8px 0 -4px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.dialog__body--stack { flex-direction: column; gap: 10px; }

/* Plaka rozeti */
.plate {
    display: inline-flex; align-items: center; height: 28px; padding: 0 10px 0 22px; position: relative;
    border: 1.5px solid #1F2937; border-radius: 5px; background: #fff; color: #111827;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 700; font-size: 14px; letter-spacing: .04em; white-space: nowrap;
}
.plate::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 15px; background: #1D4ED8; color: #fff; font-size: 7px; display: grid; place-items: end center; padding-bottom: 3px; border-radius: 3px 0 0 3px; letter-spacing: 0; }
.plate { align-self: flex-start; width: max-content; max-width: 100%; }
a.plate:hover { border-color: var(--green); color: var(--green); }
.plate--lg { height: 38px; font-size: 20px; padding-left: 28px; }
.plate--lg::before { width: 20px; font-size: 8px; }
.plate--muted { opacity: .75; border-style: dashed; }

/* Tesis / kapı seçici */
.facility-switch { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px 0 12px; border: 1px solid #D3DCD8; border-radius: var(--radius); background: #fff; }
.facility-switch .ic { color: var(--green); width: 16px; height: 16px; }
.facility-switch select { border: 0; background: transparent; font: inherit; font-weight: 600; color: var(--ink); height: 36px; padding-right: 4px; max-width: 240px; }
.facility-switch select:focus { outline: 0; }
.facility-switch--static { padding-right: 14px; font-weight: 600; color: var(--ink); }
.live-dot { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--s-green); text-transform: uppercase; letter-spacing: .06em; }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: live 1.8s infinite; }
.live-dot--light { color: #A6E39C; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); } 70% { box-shadow: 0 0 0 7px rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }

/* Kapı ekranı */
.gate-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.gate-layout > .card { margin: 0; }
.gate-onsite { position: sticky; top: calc(var(--topbar-h) + 16px); max-height: calc(100vh - var(--topbar-h) - 32px); display: flex; flex-direction: column; }
.gate-onsite > div[data-refresh] { overflow-y: auto; }
.checkin-form { display: grid; gap: 16px; }
.checkin-form .field input:not([type=checkbox]):not([type=radio]):not([type=file]), .checkin-form .field select { height: 46px; font-size: 15px; }
.plate-input { display: flex; gap: 10px; }
.plate-input__field {
    flex: 1; height: 64px !important; font-size: 30px !important; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-align: center;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace !important; border-width: 2px !important;
}
.plate-input__field::placeholder { color: #CBD3CF; font-weight: 600; }
.plate-input__camera { height: 64px; flex-direction: column; gap: 2px; font-size: 11px; padding: 0 16px; }
.plate-input__camera .ic { width: 22px; height: 22px; }
.lookup { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 8px; font-size: 13.5px; background: var(--bg); border: 1px solid var(--line); }
.lookup--known { background: var(--tint); border-color: #BFE0CC; color: var(--green); }
.lookup--danger { background: var(--red-bg); border-color: #F6C7C7; color: #991B1B; font-weight: 600; }
.lookup--warn { background: var(--orange-bg); border-color: #FAD9A7; color: #92400E; }
.lookup .ic { flex: none; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { font-size: 13px; font-weight: 600; color: var(--ink); padding: 0; margin-bottom: 6px; }
.segmented { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented label { flex: 1 1 auto; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; border: 1px solid #D3DCD8; border-radius: 8px; background: #fff; font-weight: 600; color: var(--text); transition: all .15s; white-space: nowrap; }
.segmented input:checked + span { border-color: var(--green); background: var(--green); color: #fff; box-shadow: 0 2px 6px rgba(11, 107, 79, .25); }
.segmented input:focus-visible + span { outline: 2px solid var(--green-2); outline-offset: 2px; }
.segmented--lg span { min-height: 54px; font-size: 15px; }
.switch--field { align-self: end; min-height: 46px; }
.disclosure { border: 1px solid var(--line); border-radius: 10px; padding: 0 16px; }
.disclosure summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--ink); list-style: none; display: flex; align-items: center; justify-content: space-between; }
.disclosure summary::after { content: "+"; font-size: 18px; color: var(--muted); }
.disclosure[open] summary::after { content: "−"; }
.disclosure[open] { padding-bottom: 16px; }
.disclosure--card { padding: 0 20px; }
.disclosure--card[open] { padding-bottom: 8px; }
.file-input { padding: 10px !important; height: auto !important; border-style: dashed !important; background: var(--bg) !important; }

.checkin-result {
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 18px 22px; margin-bottom: 18px;
    border-radius: var(--radius-lg); background: linear-gradient(135deg, #ECF8EF, #fff); border: 1px solid #BFE0CC; box-shadow: var(--shadow-sm);
}
.checkin-result__queue { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 14px; background: var(--green); color: #fff; flex: none; }
.checkin-result__queue small { font-size: 11px; opacity: .85; text-transform: uppercase; letter-spacing: .06em; }
.checkin-result__queue strong { font-size: 36px; line-height: 1; font-weight: 800; }
.checkin-result__body { flex: 1; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-width: 220px; }
.checkin-result__body p { font-size: 16px; color: var(--ink); }
.checkin-result__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.onsite li + li { border-top: 1px solid var(--line-soft); }
.onsite__item { display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 20px; }
.onsite__item.is-ready { background: #F5F0FE; }
.onsite__main { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.onsite__meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.onsite__actions form { margin: 0; }

/* Rampa panosu */
.yard-stats { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 1px; margin-bottom: 18px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.yard-stats > div { background: #fff; padding: 12px 14px; display: flex; flex-direction: column; min-width: 0; }
.yard-stats small { font-size: 11.5px; color: var(--gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yard-stats strong { font-size: 20px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.yard-stats .is-alert { background: var(--red-bg); }
.yard-stats .is-alert strong { color: var(--red); }
.board-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.bay { display: flex; flex-direction: column; gap: 8px; min-height: 190px; padding: 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--s-green); box-shadow: var(--shadow-sm); }
.bay__head { display: flex; justify-content: space-between; align-items: center; }
.bay__no { font-size: 30px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1; }
.bay__state { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 99px; }
.bay__state i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.bay__type { color: var(--muted); font-size: 12px; }
.bay__visit { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 8px; background: var(--bg); }
.bay__visit small { color: var(--text); font-size: 12px; }
.bay__visit form { margin: 0; }
.bay__visit--incoming { background: #EFF5FF; }
.bay__visit.is-late { background: var(--red-bg); }
.bay__actions { display: flex; gap: 6px; flex-wrap: wrap; }
.bay__empty { margin-top: auto; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.bay.is-free { border-top-color: var(--s-green); }
.bay.is-free .bay__state { background: var(--tint); color: var(--s-green); }
.bay.is-reserved { border-top-color: var(--blue); }
.bay.is-reserved .bay__state { background: var(--blue-bg); color: var(--blue); }
.bay.is-occupied { border-top-color: var(--red); }
.bay.is-occupied .bay__state { background: var(--red-bg); color: var(--red); }
.bay.is-maintenance { border-top-color: #F59E0B; background: #FFFCF5; }
.bay.is-maintenance .bay__state { background: var(--orange-bg); color: var(--orange); }
.bay.is-passive { border-top-color: #C3CBC7; background: #FAFBFA; opacity: .75; }
.bay.is-passive .bay__state { background: var(--line-soft); color: var(--gray); }

.queue { display: flex; flex-direction: column; gap: 18px; }
.queue .card { margin: 0; }
.queue__list li { display: flex; align-items: center; gap: 10px; padding: 10px 16px; }
.queue__list li + li { border-top: 1px solid var(--line-soft); }
.queue__list li.is-late { background: #FFF5F5; }
.queue__no { width: 30px; height: 30px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--orange-bg); color: var(--orange); font-weight: 800; font-size: 13px; }
.queue__main { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.queue__main small { color: var(--muted); font-size: 12px; }

/* Ziyaret detayı */
.timeline { padding: 16px 20px 6px; }
.timeline__item { position: relative; display: flex; gap: 14px; padding-bottom: 18px; }
.timeline__item:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--line); }
.timeline__icon { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--green); z-index: 1; }
.timeline__icon .ic { width: 16px; height: 16px; }
.timeline__item--cancelled .timeline__icon { background: var(--red-bg); color: var(--red); }
.timeline__item--noteadded .timeline__icon { background: var(--line-soft); color: var(--gray); }
.timeline__item--dockassigned .timeline__icon, .timeline__item--dockchanged .timeline__icon { background: var(--blue-bg); color: var(--blue); }
.timeline__body { display: flex; flex-direction: column; gap: 2px; padding-top: 5px; min-width: 0; }
.timeline__body strong { color: var(--ink); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.timeline__body p { margin-top: 4px; padding: 8px 10px; background: var(--bg); border-radius: 6px; font-size: 13px; }
.note-form, .upload-form { display: flex; gap: 10px; padding: 12px 20px 18px; border-top: 1px solid var(--line-soft); }
.note-form input { flex: 1; height: 38px; padding: 0 12px; border: 1px solid #D3DCD8; border-radius: var(--radius); font: inherit; }
.upload-form input { flex: 1; padding: 6px 10px; border: 1px dashed #CBD5D1; border-radius: var(--radius); background: var(--bg); }
.attachments { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; padding: 16px 20px; }
.attachment { display: flex; flex-direction: column; gap: 6px; }
.attachment img, .attachment__doc { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); }
.attachment__doc { display: grid; place-items: center; align-content: center; gap: 4px; color: var(--gray); font-weight: 700; }
.attachment small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.attachment:hover img { border-color: var(--green); }

/* Rampa atama */
.dock-options { display: grid; gap: 10px; padding: 16px 20px 20px; }
.dock-option { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .15s, background-color .15s; }
.dock-option:hover { border-color: #BFD8CC; }
.dock-option:has(input:checked) { border-color: var(--green); background: #F4FAF6; box-shadow: 0 0 0 1px var(--green) inset; }
.dock-option input { margin-top: 12px; accent-color: var(--green); width: 18px; height: 18px; flex: none; }
.dock-option__no { width: 46px; height: 46px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--bg); font-size: 18px; font-weight: 800; color: var(--ink); }
.dock-option.is-best .dock-option__no { background: var(--green); color: #fff; }
.dock-option__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dock-option__body strong { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ink); }
.dock-option__body small { color: var(--muted); }
.dock-option__reasons { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; }
.dock-option__reasons .ok { color: var(--s-green); }
.dock-option__reasons .warn { color: var(--orange); }
.dock-option.is-incompatible { background: #FCFCFC; }
.dock-option.is-disabled { opacity: .5; cursor: not-allowed; }

.table tr.is-blocked td { background: #FFF7F7; }

/* Gösterge paneli: saha özeti */
.yard-now__head { display: flex; justify-content: space-between; align-items: center; }
.yard-now__head h2 { margin: 0; }
.yard-now__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 4px; }
.yard-now__grid div { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .08); }
.yard-now__grid strong { color: #fff; font-size: 20px; font-weight: 800; }
.yard-now__grid small { font-size: 11.5px; color: rgba(255, 255, 255, .7); }
.yard-now__alert { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: #FCA5A5; font-weight: 600; }
.yard-now__actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

@media (max-width: 1280px) {
    .yard-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .board-layout { grid-template-columns: minmax(0, 1fr); }
    .queue { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
    .gate-layout { grid-template-columns: minmax(0, 1fr); }
    .gate-onsite { position: static; max-height: none; }
}
@media (max-width: 640px) {
    .yard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .queue { grid-template-columns: minmax(0, 1fr); }
    .board { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .plate-input__field { font-size: 24px !important; }
    .checkin-result__queue { width: 64px; height: 64px; }
    .checkin-result__queue strong { font-size: 28px; }
    .yard-now__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Sıra ve yönlendirme ---------- */
.queue-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.queue-layout > .card { margin: 0; }
.qlist__item { display: flex; align-items: center; gap: 14px; padding: 14px 20px; }
.qlist__item + .qlist__item { border-top: 1px solid var(--line-soft); }
.qlist__item.is-late { background: #FFF6F6; }
.qlist__pos, .qlist__dock { width: 40px; height: 40px; flex: none; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 16px; }
.qlist__pos { background: var(--orange-bg); color: var(--orange); }
.qlist__dock { background: var(--blue-bg); color: var(--blue); font-size: 18px; }
.qlist__main { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.qlist__line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qlist__main small { color: var(--muted); font-size: 12.5px; }
.qlist__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.qlist__actions form { margin: 0; }
.qlist__why { font-size: 11.5px; color: var(--s-green); }
.qlist__why.is-busy { color: var(--blue); }
.qlist__more { display: flex; gap: 2px; }
.qlist__more form { margin: 0; }
.qlist > li > form { margin: 0; }
.live-dot.is-offline { color: var(--muted); }
.live-dot.is-offline::before { animation: none; }

/* ---------- Bildirim zili ---------- */
.bell { position: relative; }
.bell__toggle { position: relative; }
.bell__toggle .ic { width: 20px; height: 20px; }
.bell__count { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
.bell.has-new .bell__toggle { animation: bell-ring .6s ease 2; }
@keyframes bell-ring { 25% { transform: rotate(14deg); } 75% { transform: rotate(-14deg); } }
.bell__menu { width: 360px; padding: 0; right: 0; left: auto; }
.bell__head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
.bell__head form { margin: 0; }
.bell__head .link, .bell__foot .link { font-size: 12.5px; width: auto; padding: 0; display: inline; }
.bell__list { max-height: 360px; overflow-y: auto; }
.bell__list li + li { border-top: 1px solid var(--line-soft); }
.bell__list a { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 14px; border-radius: 0; white-space: normal; }
.bell__list a strong { font-size: 13px; color: var(--ink); font-weight: 600; }
.bell__list a small { grid-column: 1; font-size: 12px; color: var(--muted); }
.bell__list a time { grid-column: 2; grid-row: 1; font-size: 11px; color: var(--muted); }
.bell__list li.is-unread a { background: #F4F9FF; box-shadow: inset 3px 0 0 var(--blue); }
.bell__empty { padding: 20px 14px; text-align: center; color: var(--muted); font-size: 13px; }
.bell__foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line-soft); font-size: 13px; }
.bell__foot > a { color: var(--green); font-weight: 600; width: auto; padding: 0; }

.notif-list li + li { border-top: 1px solid var(--line-soft); }
.notif-list a { display: flex; align-items: center; gap: 14px; padding: 14px 20px; }
.notif-list a:hover { background: #FBFCFB; }
.notif-list li.is-unread a { background: #F7FAFF; box-shadow: inset 3px 0 0 var(--blue); }
.notif-list__icon { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--tint); color: var(--green); }
.notif-list__icon .ic { width: 18px; height: 18px; }
.notif--longwait { background: var(--red-bg); color: var(--red); }
.notif--dockassigned { background: var(--blue-bg); color: var(--blue); }
.notif--readytoexit { background: var(--purple-bg); color: var(--purple); }
.notif--visitcancelled { background: var(--line-soft); color: var(--gray); }
.notif-list__body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.notif-list__body strong { color: var(--ink); }
.notif-list__body small { color: var(--muted); }
.notif-list time { font-size: 12px; color: var(--muted); white-space: nowrap; }

.toast--info { border-color: var(--blue); text-decoration: none; }
.toast--info > .ic { color: var(--blue); }
.toast--info span { display: flex; flex-direction: column; }
.toast--info small { color: var(--muted); font-weight: 400; }

/* ---------- Tesis: bekleme alanı ekranı ---------- */
.display-link .card__head h2 { display: flex; align-items: center; gap: 8px; }
.display-link__body { display: grid; gap: 14px; }
.display-link__body p { color: var(--gray); max-width: 760px; }
.display-link__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.display-link + .display-link { margin-top: 18px; }
.appt-pass { margin-top: 18px; }.appt-pass .card__head h2 { display: flex; align-items: center; gap: 8px; }.appt-pass__body { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }.appt-pass__qr svg { display: block; width: 150px; height: 150px; border: 1px solid var(--line); border-radius: 8px; }.appt-pass__info { flex: 1 1 320px; display: grid; gap: 12px; min-width: 0; }.appt-pass__mail { display: flex; gap: 8px; flex-wrap: wrap; }.appt-pass__mail input { flex: 1 1 220px; height: 38px; padding: 0 12px; border: 1px solid #D3DCD8; border-radius: var(--radius); font: inherit; }
.display-link__url { display: flex; gap: 10px; flex-wrap: wrap; }
.display-link__url input { flex: 1 1 320px; height: 38px; padding: 0 12px; border: 1px solid #D3DCD8; border-radius: var(--radius); font-family: ui-monospace, Consolas, monospace; font-size: 13px; background: var(--bg); }
.display-link form { margin: 0; }

@media (max-width: 1100px) { .queue-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
    .qlist__item { flex-wrap: wrap; }
    .qlist__actions { width: 100%; align-items: stretch; }
    .bell__menu { width: calc(100vw - 32px); right: -60px; }
}

/* ---------- Kapı: kamera / OCR ---------- */
.gate-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: calc(var(--topbar-h) + 16px); }
.gate-side > .card { margin: 0; }
.gate-side .gate-onsite { position: static; max-height: calc(100vh - var(--topbar-h) - 260px); }
.camera-reads .card__head h2 { display: flex; align-items: center; gap: 8px; }
.camera-reads__list li { display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 20px; flex-wrap: wrap; }
.camera-reads__list li + li { border-top: 1px solid var(--line-soft); }
.camera-reads__list li small { flex: 1; color: var(--muted); font-size: 12px; }
.camera-reads__list li.is-new { animation: read-in 2.5s ease; }
@keyframes read-in { 0% { background: #DBEAFE; } 100% { background: transparent; } }
.camera-reads__empty { padding: 14px 20px; color: var(--muted); font-size: 13px; margin: 0; }
.lookup__alt { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text); }
.chip--btn { cursor: pointer; font-family: ui-monospace, Consolas, monospace; font-weight: 700; }
.chip--btn:hover { border-color: var(--green); color: var(--green); }

.dialog--camera { width: min(720px, calc(100% - 24px)); }
.ocr__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.ocr__head h2 { font-size: 17px; }
.ocr__view { position: relative; background: #000; aspect-ratio: 16 / 9; overflow: hidden; }
.ocr__view video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ocr__frame { position: absolute; left: 18%; right: 18%; top: 38%; bottom: 38%; border: 3px solid rgba(255, 255, 255, .9); border-radius: 10px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .35); }
.ocr__status { margin: 0; padding: 12px 18px; font-size: 13.5px; color: var(--text); }
.ocr__status.is-error { color: var(--red); font-weight: 600; }
.ocr__actions { display: flex; justify-content: space-between; gap: 10px; padding: 0 18px 18px; flex-wrap: wrap; }
.ocr__actions label { cursor: pointer; }
.ocr__frame--square { left: 50%; right: auto; top: 50%; bottom: auto; width: min(52%, 280px); aspect-ratio: 1; transform: translate(-50%, -50%); }
.qr-code-form { flex-wrap: nowrap; }
.qr-code-form input { flex: 1; min-width: 0; height: 52px; font-size: 22px; }

/* ---------- Kiosk kayıtları (kapı ekranı, Faz 12b) ---------- */
.kiosk-card .card__head h2 { display: flex; align-items: center; gap: 8px; }
.kiosk-card.is-alert { animation: kiosk-alert 1.2s ease 3; }
@keyframes kiosk-alert { 50% { box-shadow: 0 0 0 4px rgba(37, 99, 235, .35); } }
.kiosk-requests { list-style: none; margin: 0; padding: 0; }
.kiosk-requests li { display: grid; gap: 4px; padding: 12px 16px 12px 20px; }
.kiosk-requests li + li { border-top: 1px solid var(--line-soft); }
.kiosk-requests__main { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kiosk-requests__main strong { font-family: ui-monospace, Consolas, monospace; font-size: 13px; color: var(--muted); }
.kiosk-requests li small { color: var(--muted); font-size: 12px; }
.kiosk-requests__actions { display: flex; gap: 6px; margin-top: 4px; }

.camera-hook { padding: 14px 16px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); display: grid; gap: 8px; }
.camera-hook p { color: var(--gray); font-size: 13px; }
.camera-hook__help summary { cursor: pointer; font-size: 13px; color: var(--green); font-weight: 600; }
.camera-hook__help pre { margin: 8px 0 0; padding: 10px 12px; background: #0F1D19; color: #D1FAE5; border-radius: 8px; font-size: 12px; overflow-x: auto; }

/* ---------- Raporlar ---------- */
.report-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.report-filters select, .report-filters input[type=date], .report-filters input:not([type]), .report-filters input[type=search] { height: 34px; padding: 0 10px; border: 1px solid #D3DCD8; border-radius: var(--radius); background: #fff; font: inherit; font-size: 13px; }
.report-filters input[type=search] { flex: 0 1 280px; min-width: 220px; }
.report-filters__range { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.segmented--sm { gap: 0; border: 1px solid #D3DCD8; border-radius: var(--radius); overflow: hidden; background: #fff; }
.segmented--sm a { padding: 7px 12px; font-size: 13px; font-weight: 600; color: var(--text); border-right: 1px solid var(--line); white-space: nowrap; }
.segmented--sm a:last-child { border-right: 0; }
.segmented--sm a:hover { background: var(--bg); }
.segmented--sm a.is-active { background: var(--green); color: #fff; }

.kpi { padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpi small { font-size: 12.5px; color: var(--gray); font-weight: 500; }
.kpi strong { font-size: 24px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.kpi span { font-size: 12px; color: var(--muted); }
.kpi--warn { border-color: #FAD9A7; background: #FFFBF3; }
.kpi--warn strong { color: var(--orange); }

.chart-card .card__head { align-items: baseline; }
.chart-wrap { padding: 12px 16px 4px; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart__grid { stroke: #EEF2F0; stroke-width: 1; }
.chart__tick { fill: var(--muted); font-size: 10.5px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.chart__value { fill: var(--ink); font-size: 11px; font-weight: 700; font-family: var(--font); }
.chart__bar { fill: var(--green); }
.chart__line { fill: none; stroke: var(--green); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart__area { fill: var(--green); opacity: .1; }
.chart__dot { fill: var(--green); stroke: #fff; stroke-width: 2; }
.chart__dot--sm { stroke-width: 1.5; }
.chart__value--sm { font-size: 10px; paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; } /* çizgi üstünde okunur kalsın */
.chart__hit { fill: transparent; cursor: default; outline: none; }
.chart__hit.is-hover, .chart__hit:focus-visible { fill: rgba(11, 107, 79, .06); }
.chart__crosshair { stroke: var(--ink); stroke-width: 1; opacity: .35; pointer-events: none; }
.chart-tip { position: fixed; z-index: 300; max-width: 260px; padding: 7px 10px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 600; pointer-events: none; box-shadow: var(--shadow-lg); }
.chart-table { padding: 0 16px 14px; }
.chart-table summary { cursor: pointer; font-size: 12.5px; color: var(--green); font-weight: 600; padding: 4px 0; }
.chart-table .table { margin-top: 6px; }
.chart-table .table td, .chart-table .table th { padding: 6px 10px; }

.meter-cell { display: flex; align-items: center; gap: 10px; min-width: 120px; }
.chart-meter { flex: 1; height: 8px; border-radius: 99px; background: var(--tint); overflow: hidden; }
.chart-meter i { display: block; height: 100%; border-radius: 99px; background: var(--green); }
.table--dense td, .table--dense th { padding: 9px 14px; }

@media (max-width: 1100px) { .gate-side { position: static; } .gate-side .gate-onsite { max-height: none; } }

/* ==========================================================================
   Rampa bakımı (Faz 3a)
   ========================================================================== */
.c-red { color: var(--red); }
.btn:disabled:is(.btn--primary, .btn--outline, .btn--ghost, .btn--danger, .btn--danger-outline) { background: var(--line-soft); color: var(--muted); border-color: var(--line); box-shadow: none; cursor: not-allowed; }
.grid--3-1 { grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr); align-items: start; }
@media (max-width: 1024px) { .grid--3-1 { grid-template-columns: minmax(0, 1fr); } }
.yard-stats--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) { .yard-stats--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .yard-stats--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.prewrap { white-space: pre-wrap; }
.toast--warning { border-color: var(--orange); }
.toast--warning > .ic { color: var(--orange); }

/* Öncelik: renk + nokta + metin (yalnızca renge dayanmaz) */
.prio { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.prio i { width: 8px; height: 8px; border-radius: 2px; background: currentColor; }
.prio--low { color: var(--gray); }
.prio--medium { color: var(--blue); }
.prio--high { color: var(--orange); }
.prio--critical { color: var(--red); }
.prio--critical i { border-radius: 50%; box-shadow: 0 0 0 3px var(--red-bg); }
.stat .prio { font-size: 18px; }
.stat .prio--low { color: var(--gray); }
.stat .prio--medium { color: var(--blue); }
.stat .prio--high { color: var(--orange); }
.stat .prio--critical { color: var(--red); }
.upload-form .file-input { min-width: 0; flex: 1 1 auto; }
.table tr.is-critical td:first-child { box-shadow: inset 3px 0 0 var(--red); }

/* Arıza bildirimi: telefonda tek elle doldurulabilir */
.fault-form { max-width: 820px; }
.fault-form__card { display: grid; gap: 18px; padding: 22px; }
.fault-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.fault-form legend { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 8px; padding: 0; }
.fault-form .field select, .fault-form .field input:not([type=checkbox]):not([type=radio]):not([type=file]) { height: 46px; font-size: 15px; }
.fault-form .segmented span .ic { width: 16px; height: 16px; margin-right: 6px; }
.segmented--prio .seg-critical input:checked + span { background: var(--red); border-color: var(--red); box-shadow: 0 2px 6px rgba(220, 38, 38, .3); }
.segmented--prio .seg-high input:checked + span { background: var(--orange); border-color: var(--orange); box-shadow: 0 2px 6px rgba(217, 119, 6, .3); }
.segmented--prio .seg-low input:checked + span { background: var(--gray); border-color: var(--gray); box-shadow: none; }
.fault-form__lock { align-items: flex-start; }
.fault-form__lock:has(input:disabled) { cursor: default; }

/* İş emri detayı */
.card--accent { border-left: 4px solid var(--s-green); }
.dialog--wide { width: min(560px, calc(100% - 32px)); }
.upload-hint { padding: 0 20px 16px; margin-top: -8px; }
.checklist { padding: 6px 20px 10px; }
.checklist li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.checklist li:last-child { border-bottom: 0; }
.checklist form { display: contents; }
.checklist__box { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border: 1.5px solid #B8C4BF; border-radius: 6px; background: #fff; color: #fff; cursor: pointer; padding: 0; }
.checklist__box .ic { width: 15px; height: 15px; }
.checklist__box:disabled { cursor: default; opacity: .7; }
.checklist__box:not(:disabled):hover { border-color: var(--green); }
.checklist li.is-done .checklist__box { background: var(--green); border-color: var(--green); }
.checklist__text { flex: 1; min-width: 0; }
.checklist li.is-done .checklist__text { color: var(--muted); text-decoration: line-through; }

/* Rampa geçmişi, ekipman listesi */
.equipment-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line-soft); }
.equipment-list li:last-child { border-bottom: 0; }
.equipment-list__side { display: flex; align-items: center; gap: 6px; flex: none; }
.type-list { padding: 6px 20px; }
.type-list li { display: flex; justify-content: space-between; align-items: center; min-height: 40px; border-bottom: 1px solid var(--line-soft); }
.type-list li:last-child { border-bottom: 0; }
.type-list form { margin: 0; }

/* Rampa kartı ve canlı pano bağlantıları */
.dock-card__links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 12.5px; }
.dock-card__links .link { display: inline-flex; align-items: center; gap: 4px; }
.bay__head { gap: 6px; }
.bay__state { margin-left: auto; }
.bay__report { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; color: var(--muted); }
.bay__report:hover { background: var(--orange-bg); color: var(--orange); }
.bay__fault { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; background: var(--orange-bg); color: #92400E; font-size: 12px; font-weight: 600; text-decoration: none; min-width: 0; }
.bay__fault span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bay__fault .ic { flex: none; }
.bay__fault--critical { background: var(--red-bg); color: #991B1B; }
.bay__fault:hover { filter: brightness(.97); }

/* ==========================================================================
   Rampa bakımı (Faz 3b): planlar, takvim, raporlar
   ========================================================================== */
.tabs--section .tabs__item .ic { width: 16px; height: 16px; }
.yard-stats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.yard-stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 0; }
@media (max-width: 640px) { .yard-stats--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.filters .segmented--sm { margin-right: 4px; }
.filters__note { margin-left: auto; font-size: 12.5px; }
.report-note { font-size: 12.5px; line-height: 1.6; border-top: 1px solid var(--line-soft); }
.equipment-list li.is-muted { opacity: .6; }

/* Plan formu */
.input-pair { display: flex; gap: 8px; }
.field .input-pair input[type=number] { width: 90px; flex: none; }
.field .input-pair select { flex: 1; min-width: 0; width: auto; }
.dock-picker { display: grid; gap: 6px; }
.dock-picker + .dock-picker { margin-top: 10px; }
.dock-picker__list { display: flex; flex-wrap: wrap; gap: 8px; }
.dock-chip { cursor: pointer; }
.dock-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dock-chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid #D3DCD8; border-radius: 8px; background: #fff; font-weight: 600; color: var(--text); transition: all .15s; }
.dock-chip input:checked + span { border-color: var(--green); background: var(--green); color: #fff; }
.dock-chip input:focus-visible + span { outline: 2px solid var(--green-2); outline-offset: 2px; }

/* Takvim */
.calendar-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); }
.calendar-bar__nav { display: flex; align-items: center; gap: 6px; }
.calendar-bar__nav h2 { font-size: 17px; min-width: 150px; text-align: center; text-transform: capitalize; }
.calendar-bar .legend-inline { margin-left: auto; }
.calendar { padding: 0 0 6px; }
.calendar__head, .calendar__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar__head span { padding: 8px 10px; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--line); }
.calendar__day { min-height: 118px; padding: 6px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.calendar__day:nth-child(7n) { border-right: 0; }
.calendar__day.is-outside { background: #FAFBFA; }
.calendar__day.is-outside .calendar__date { color: #B5BEBA; }
.calendar__date { font-size: 12.5px; font-weight: 700; color: var(--ink); padding: 2px 4px; align-self: flex-start; border-radius: 6px; }
.calendar__day.is-today .calendar__date { background: var(--green); color: #fff; }
.calendar__more { font-size: 11.5px; color: var(--muted); padding: 0 4px; cursor: help; }

/* Takvim kaydı: durum renk + simge + metin (yalnızca renge dayanmaz) */
.cal-item { display: flex; align-items: center; gap: 4px; padding: 3px 6px; border-radius: 6px; font-size: 11.5px; line-height: 1.3; text-decoration: none; min-width: 0; border: 1px solid transparent; color: var(--ink); background: var(--bg); }
.cal-item .ic { width: 12px; height: 12px; flex: none; }
.cal-item b { flex: none; font-weight: 700; }
.cal-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-item:hover { filter: brightness(.96); }
.cal-item.is-planned { background: #fff; border: 1px dashed #B8C4BF; color: var(--text); }
.cal-item.is-open { background: var(--blue-bg); color: #1E40AF; }
.cal-item.is-done { background: var(--tint); color: var(--green); }
.cal-item.is-done span { text-decoration: line-through; text-decoration-color: rgba(11, 107, 79, .4); }
.cal-item.is-overdue { background: var(--red-bg); color: #991B1B; }
.cal-item.is-cancelled { background: var(--line-soft); color: var(--muted); }
.cal-item.is-fault { background: var(--orange-bg); color: #92400E; }
.cal-item.is-critical { background: var(--red-bg); color: #991B1B; border-color: #F6C7C7; }
.cal-key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 2px; }
.cal-key--planned { border: 1px dashed #8A948F; background: #fff; }
.cal-key--open { background: #BFD3FB; }
.cal-key--done { background: #BFE0CC; }
.cal-key--overdue { background: #F6C7C7; }
.cal-key--fault { background: #FAD9A7; }

.agenda { display: none; }
.agenda__day { display: grid; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.agenda__day > strong { font-size: 13px; color: var(--ink); text-transform: capitalize; }
.agenda__day.is-today > strong { color: var(--green); }
.agenda .cal-item { font-size: 13px; padding: 8px 10px; }
.agenda .cal-item .ic { width: 15px; height: 15px; }
@media (max-width: 860px) {
    .calendar { display: none; }
    .agenda { display: block; }
    .calendar-bar .legend-inline { margin-left: 0; }
}

/* ==========================================================================
   Sürücü SMS (Faz 4a)
   ========================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.sms-templates { display: grid; }
.sms-template { display: grid; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--line-soft); }
.sms-template:last-child { border-bottom: 0; }
.sms-template__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sms-template textarea, #sms-dialog textarea { width: 100%; padding: 10px 12px; border: 1px solid #D3DCD8; border-radius: var(--radius); font: inherit; font-size: 14px; line-height: 1.5; resize: vertical; }
.sms-template textarea:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px rgba(11, 107, 79, .12); }
.sms-template textarea[readonly] { background: var(--bg); }
.sms-template.is-off textarea, .sms-template.is-off .sms-preview { opacity: .55; }
.sms-template__actions { display: flex; justify-content: flex-end; gap: 8px; }
.sms-vars { display: flex; flex-wrap: wrap; gap: 6px; }

/* Telefon balonu görünümünde önizleme */
.sms-preview { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px 12px 12px 4px; background: #EEF2F0; max-width: 520px; }
.sms-preview__label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.sms-preview p { font-size: 13.5px; line-height: 1.45; color: var(--ink); word-break: break-word; }
.sms-preview small { font-size: 12px; color: var(--muted); }

.credit-card__value { display: block; font-size: 34px; font-weight: 800; color: var(--ink); line-height: 1.1; letter-spacing: -.02em; }
.credit-card.is-low .credit-card__value { color: var(--red); }
.credit-card.is-low { border-color: #F6C7C7; }
.credit-card__warn { display: flex; gap: 6px; align-items: flex-start; margin-top: 10px; font-size: 13px; }
.credit-card__note { margin-top: 10px; font-size: 12.5px; line-height: 1.5; }
.credit-card .note-form input { flex: 0 1 120px; }
.credit-card .note-form label { align-self: center; font-size: 13px; }
.credit-form { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 20px 16px; border-top: 1px solid var(--line-soft); }
.credit-form select, .credit-form input { height: 36px; padding: 0 10px; border: 1px solid #D3DCD8; border-radius: var(--radius); font: inherit; font-size: 13.5px; min-width: 0; }
.credit-form input[name=amount] { width: 110px; }
.credit-form input[name=description] { flex: 1 1 160px; }
.credit-form small { flex-basis: 100%; }
.credit-history li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 20px; border-top: 1px solid var(--line-soft); font-size: 13px; }
.credit-history small { font-size: 12px; text-align: right; }

.sms-thread li { padding: 12px 20px; border-top: 1px solid var(--line-soft); display: grid; gap: 4px; }
.sms-thread__meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.sms-thread p { font-size: 13px; line-height: 1.45; color: var(--text); background: #EEF2F0; padding: 8px 10px; border-radius: 10px 10px 10px 3px; }
/* Faz 12c-2: sürücünün WhatsApp yanıtı */
.sms-thread li.is-in { padding-left: 48px; }
.sms-thread li.is-in p { background: var(--tint); border-radius: 10px 10px 3px 10px; }
.alert--inline { margin: 12px 20px 0; }
.dialog .alert--inline { margin: 0; }
.badge--reply { height: 20px; padding: 0 7px; font-size: 11px; }
.attachment--inline { max-width: 180px; justify-self: end; }
.sms-body-cell { max-width: 360px; }
.sms-body-cell span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; line-height: 1.45; }

/* ==========================================================================
   Randevu (Faz 5a)
   ========================================================================== */
.plate--sm { height: 22px; font-size: 12px; padding: 0 7px 0 16px; }
.plate--sm::before { width: 10px; }
.queue__no--time { width: auto; padding: 0 7px; background: var(--blue-bg); color: var(--blue); font-size: 12px; }
.calendar-bar.card { margin-bottom: 16px; }

/* Gün görünümü: dilim satırları */
.slot-list { display: grid; }
.slot { display: grid; grid-template-columns: 70px minmax(180px, 240px) minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line-soft); }
.slot:last-child { border-bottom: 0; }
.slot.is-past { background: #FAFBFA; }
.slot.is-past .slot__time strong { color: var(--muted); }
.slot.is-closed { background: repeating-linear-gradient(135deg, #FAFBFA 0 8px, #F3F5F4 8px 16px); }
.slot__time { display: flex; flex-direction: column; }
.slot__time strong { font-size: 16px; color: var(--ink); }
.slot__time small { font-size: 12px; color: var(--muted); }
.slot__cap { display: grid; gap: 6px; }
.cap { display: grid; grid-template-columns: 64px minmax(0, 1fr) 40px; gap: 8px; align-items: center; font-size: 12px; color: var(--gray); }
.cap b { font-weight: 700; color: var(--ink); text-align: right; }
.cap__bar { height: 8px; border-radius: 99px; background: var(--line-soft); overflow: hidden; }
.cap__bar i { display: block; height: 100%; border-radius: 99px; background: var(--green); }
.cap__bar i.is-full { background: var(--orange); }
.slot__items { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }

/* Randevu kartı: durum renk + simge/metin (detay ve başlıkta) */
.appt { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 4px; border-radius: 8px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); max-width: 260px; }
.appt small { font-size: 11.5px; color: var(--gray); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appt:hover { border-color: var(--green); }
.appt--scheduled { border-left: 3px solid var(--blue); }
.appt--arrived { border-left: 3px solid var(--s-green); background: #F4FAF6; }
.appt--arrived.appt--late { border-left-color: var(--orange); background: #FFFBF3; }
.appt--arrived.appt--early { border-left-color: var(--purple); }
.appt--noshow { border-left: 3px solid var(--red); background: #FFF7F7; }
.appt--noshow .plate { opacity: .7; }
.appt--cancelled { opacity: .5; border-style: dashed; }
.appt--cancelled .plate { text-decoration: line-through; }
.appt--add { justify-content: center; width: 34px; height: 30px; padding: 0; border-style: dashed; color: var(--green); }
.appt--add .ic { width: 16px; height: 16px; }
.card--warn { border-color: #FAD9A7; background: #FFFCF5; margin-bottom: 16px; }

/* Taşıyıcı portalı (Faz 5b) */
.company-switch__toggle { border: 0; background: none; cursor: pointer; font: inherit; }
.company-switch .menu { min-width: 240px; }
.company-switch .menu a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; }
.company-switch .menu a:hover { background: var(--bg); }
.company-switch .menu a.is-active { background: var(--tint); color: var(--green); font-weight: 700; }
.menu__label { display: block; padding: 6px 12px 4px; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.facility-pick { padding: 16px 20px; margin-bottom: 16px; display: grid; gap: 8px; }
.facility-pick .field { max-width: 420px; }
.facility-pick__rules { font-size: 12.5px; line-height: 1.5; }
.rule-list { padding: 8px 20px 16px 38px; list-style: disc; display: grid; gap: 8px; font-size: 13.5px; color: var(--text); }
.appt-code { font-family: ui-monospace, Consolas, monospace; font-size: 18px; letter-spacing: .08em; color: var(--ink); }
.portal-user { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 4px 0; }
.portal-user + .portal-user { border-top: 1px dashed var(--line); }
.portal-user__actions { display: flex; gap: 4px; flex: none; }
.portal-user__actions form { margin: 0; }
.invite-link code { word-break: break-all; font-size: 12px; }
.num-left { font-variant-numeric: tabular-nums; }
.orphan-list { padding: 12px 20px 16px; }

/* Hafta görünümü: doluluk ısı tablosu (tek renk tonu, açık → koyu) */
.week-grid th, .week-grid td { padding: 6px 8px; text-align: center; }
.week-grid thead th a { color: inherit; text-decoration: none; text-transform: capitalize; }
.week-grid thead th.is-today { color: var(--green); }
.week-grid tbody th { font-size: 12.5px; color: var(--gray); text-align: left; padding-left: 20px; }
.week-cell a { display: grid; gap: 1px; padding: 6px 4px; border-radius: 6px; font-size: 11.5px; color: var(--ink); text-decoration: none; }
.week-cell.lvl-0 a { background: #F5F8F6; color: var(--muted); }
.week-cell.lvl-1 a { background: #D9EEE3; }
.week-cell.lvl-2 a { background: #A9D7BF; }
.week-cell.lvl-3 a { background: #5FB08A; color: #fff; }
.week-cell.lvl-4 a { background: #0B6B4F; color: #fff; font-weight: 700; }
.week-cell.is-past a { opacity: .55; }
.week-cell.is-closed { color: var(--muted); font-size: 11.5px; background: repeating-linear-gradient(135deg, #FAFBFA 0 6px, #F1F3F2 6px 12px); }

/* Form: dilim seçici */
.slot-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.slot-chip { cursor: pointer; }
.slot-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.slot-chip span { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 6px; border: 1px solid #D3DCD8; border-radius: 8px; background: #fff; transition: all .15s; }
.slot-chip strong { font-size: 13.5px; color: var(--ink); }
.slot-chip small { font-size: 11.5px; color: var(--s-green); font-weight: 600; }
.slot-chip input:checked + span { border-color: var(--green); background: var(--green); box-shadow: 0 2px 6px rgba(11, 107, 79, .25); }
.slot-chip input:checked + span strong, .slot-chip input:checked + span small { color: #fff; }
.slot-chip input:focus-visible + span { outline: 2px solid var(--green-2); outline-offset: 2px; }
.slot-chip.is-full { cursor: not-allowed; }
.slot-chip.is-full span { background: var(--bg); border-style: dashed; }
.slot-chip.is-full strong, .slot-chip.is-full small { color: var(--muted); }

.week-hours td { padding: 8px 20px; }
.week-hours input[type=time] { height: 36px; padding: 0 10px; border: 1px solid #D3DCD8; border-radius: var(--radius); font: inherit; }
.segmented--sm-choice span { min-height: 38px; }
.form-footer--inline { padding: 8px 0 16px; justify-content: flex-start; }
.override-form { border-bottom: 1px solid var(--line-soft); margin-bottom: 14px; }

@media (max-width: 860px) {
    .slot { grid-template-columns: 56px minmax(0, 1fr); }
    .slot__items { grid-column: 1 / -1; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
    .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .setup__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form-section { grid-template-columns: 1fr; gap: 16px; }
    .roles-help .role-help:nth-child(3) { border-left: 0; }
}

@media (max-width: 1024px) {
    .sidebar { transform: translateX(-100%); transition: transform .25s ease; }
    body.sidebar-open .sidebar { transform: none; box-shadow: var(--shadow-lg); }
    body.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(7, 30, 25, .45); }
    body.sidebar-open { overflow: hidden; }
    .app-main { margin-left: 0; }
    .topbar { padding: 0 16px; }
    .topbar__menu { display: inline-grid; }
    .content { padding: 20px 16px; }
    .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid--2-1, .grid--profile, .grid--2 { grid-template-columns: minmax(0, 1fr); }
    .subscription-hero { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 860px) {
    .auth-split { grid-template-columns: 1fr; }
    .auth-split__brand { display: none; }
    .auth-split__mobile-logo { display: block; }
}

@media (max-width: 640px) {
    .user-menu__name { display: none; }
    .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
    .setup__steps { grid-template-columns: 1fr; }
    .form-grid, .form-grid--3, .role-picker, .dl--wide { grid-template-columns: 1fr; }
    .form-section { padding: 18px; }
    .page-head h1 { font-size: 21px; }
    .page-head__actions { width: 100%; }
    .facility-list a { grid-template-columns: auto minmax(0, 1fr) auto; }
    .facility-list .dock-bar { display: none; }
    .dl > div { grid-template-columns: 100px 1fr; }
    .roles-help .role-help + .role-help { border-left: 0; border-top: 1px solid var(--line-soft); }
    .filters .legend-inline { margin-left: 0; }
    .search-input { max-width: none; }
    .dock-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .table th, .table td { padding: 11px 14px; }
    .module-intro { padding: 24px; }
    .toasts { right: 16px; top: 72px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   Faz 6a — ERP entegrasyonu: bağlantılar, eşleştirme, siparişler
   ========================================================================== */
.yard-stats--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.yard-stats > div > .muted { font-size: 11.5px; }
.mono, textarea.mono, input.mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 12.5px; }
.break { overflow-wrap: anywhere; }
.check--block { display: flex; margin-top: 6px; }
.check-row { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.dot--red { background: var(--red); }
.code-block { margin: 6px 0 0; padding: 12px 14px; background: #0F1D19; color: #D7E7DF; border-radius: var(--radius); font: 12px/1.55 ui-monospace, "Cascadia Code", Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 420px; overflow: auto; }
.table--compact th, .table--compact td { padding: 7px 10px; font-size: 13px; }
.dl--compact { padding: 0; }
.dl--compact > div { grid-template-columns: 150px 1fr; padding: 5px 0; }
.dialog__actions--split { justify-content: space-between; }
.dialog__actions--split > span { display: flex; gap: 10px; }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 13.5px; }
.inline-form { display: flex; gap: 8px; }
.inline-form input { flex: 1; min-width: 0; }

/* Seçim kartları (bağlantı yöntemi, kaynak türü) */
.choice-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.choice-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; background: #fff; }
.choice-card:hover { border-color: #BFD8CC; }
.choice-card:has(input:checked) { border-color: var(--green); background: #F4FAF6; box-shadow: 0 0 0 1px var(--green) inset; }
.choice-card input { accent-color: var(--green); margin-top: 3px; flex: none; }
.choice-card span { display: flex; flex-direction: column; gap: 2px; }
.choice-card strong { font-size: 13.5px; color: var(--ink); }
.choice-card small { font-size: 12px; color: var(--muted); }
fieldset.field { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
fieldset.field legend { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 8px; padding: 0; }

/* ERP rozetleri */
.erp-logo { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; color: #fff; background: var(--gray); vertical-align: middle; white-space: nowrap; }
.erp-logo--logo { background: #C8102E; }
.erp-logo--netsis { background: #1F4E9C; }
.erp-logo--sap { background: #0A6ED1; }
.erp-logo--generic { background: var(--dark); }
h1 .erp-logo { height: 26px; font-size: 12px; margin-right: 4px; }

/* Bağlantı kartları */
.conn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-bottom: 18px; }
.conn-card { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.conn-card:hover { border-color: #BFD8CC; box-shadow: var(--shadow); }
.conn-card.is-inactive { opacity: .7; }
.conn-card__head { display: flex; align-items: flex-start; gap: 10px; }
.conn-card__title { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.conn-card__title strong { color: var(--ink); font-size: 15px; }
.conn-card__title small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conn-card__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.conn-card__facts dt { font-size: 11.5px; color: var(--muted); }
.conn-card__facts dd { margin: 2px 0 0; font-size: 13px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.conn-card__alert { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--red); }

/* Şablon seçimi */
.template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 18px; }
.template-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; color: inherit; text-decoration: none; }
.template-card:hover { border-color: var(--green); box-shadow: var(--shadow); }
.template-card .erp-logo { align-self: flex-start; }
.template-card h2 { margin: 4px 0 0; font-size: 16px; color: var(--ink); }
.template-card p { margin: 0; font-size: 13px; color: var(--text); }
.template-card__sources { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; font-size: 12.5px; color: var(--gray); }
.template-card__sources li { display: flex; align-items: center; gap: 6px; }
.template-card__go { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--green); }

/* Kaynak listesi */
.source-list { list-style: none; margin: 0; padding: 0; }
.source-item { display: flex; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--line-soft); }
.source-item.is-inactive { opacity: .65; }
.source-item__main { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.source-item__name { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); text-decoration: none; }
.source-item__name:hover { color: var(--green); }
.source-item__path { flex-basis: 100%; font-size: 12px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; overflow-wrap: anywhere; }
.source-item__main > small { flex-basis: 100%; }
.source-item__msg { font-size: 12.5px; }
.source-item__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.source-item__actions { display: flex; gap: 4px; }
.test-result { display: flex; gap: 10px; margin: 0; font-size: 13.5px; }
.test-result .ic { flex: none; width: 20px; height: 20px; }
.test-result.is-ok .ic { color: var(--s-green); }
.test-result.is-fail .ic { color: var(--red); }
.test-result small { color: var(--text); margin-top: 4px; overflow-wrap: anywhere; }
.push-url { flex-wrap: wrap; }
.push-url code { overflow-wrap: anywhere; }
.var-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.var-chips code { font-size: 11.5px; }

/* Eşleştirme ekranı */
.mapping-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; margin-bottom: 18px; }
.mapping-card { padding-bottom: 8px; }
.mapping-help { font-size: 12.5px; padding-top: 0; }
.mapping-group { margin: 6px 20px 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--gray); }
.mapping-table { display: grid; margin: 0 12px 12px; }
.mapping-row { display: grid; grid-template-columns: minmax(170px, 1.1fr) minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .8fr); gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; }
.mapping-row--head { font-size: 11.5px; color: var(--muted); font-weight: 600; padding-top: 0; padding-bottom: 2px; }
.mapping-row:not(.mapping-row--head):hover { background: var(--bg); }
.mapping-row.is-focused { background: var(--tint); box-shadow: 0 0 0 1px #BFE0CC inset; }
.mapping-row.is-empty .mapping-row__target strong { color: var(--gray); font-weight: 600; }
.mapping-row__target { display: flex; flex-direction: column; min-width: 0; }
.mapping-row__target strong { font-size: 13px; color: var(--ink); }
.mapping-row__target code { font-size: 11px; color: var(--muted); background: none; padding: 0; }
.mapping-row__target small { font-size: 11px; line-height: 1.35; }
.mapping-row input { width: 100%; min-width: 0; height: 34px; }
.mapping-ref { margin: 4px 20px 8px; }
.mapping-ref__body { padding: 10px 0 0; }
.mapping-ref__body code { margin-right: 4px; }
.preview-card { position: sticky; top: calc(var(--topbar-h) + 12px); max-height: calc(100vh - var(--topbar-h) - 24px); display: flex; flex-direction: column; }
.preview-card__body { overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.preview-card textarea { width: 100%; margin-top: 8px; }
.btn--block { width: 100%; justify-content: center; }
.preview-result h4 { margin: 14px 0 6px; font-size: 12.5px; color: var(--ink); }
.preview-result .alert { margin: 0; }
.preview-result .alert ul { margin: 0; padding-left: 18px; }
.preview-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.preview-nav .chip.is-active { background: var(--green); border-color: var(--green); color: #fff; }
.preview-mapped th { width: 42%; color: var(--muted); font-weight: 500; text-align: left; }
.preview-mapped td { overflow-wrap: anywhere; }
.preview-line { font-size: 12px; padding: 4px 0; border-bottom: 1px dashed var(--line-soft); overflow-wrap: anywhere; }
.leaf-list { display: grid; gap: 2px; }
.leaf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 8px; align-items: baseline; width: 100%; padding: 5px 8px; border: 0; border-radius: 6px; background: none; text-align: left; font: inherit; font-size: 12px; cursor: pointer; }
.leaf:hover, .leaf:focus-visible { background: var(--tint); outline: none; }
.leaf code { color: var(--green); background: none; padding: 0; overflow-wrap: anywhere; }
.leaf span { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Senkron hataları, değer tabloları, API */
.error-list { list-style: none; margin: 0; padding: 0; }
.error-list li { padding: 12px 20px; border-top: 1px solid var(--line-soft); font-size: 13.5px; }
.error-list li > div { display: flex; gap: 10px; flex-wrap: wrap; }
.error-list li > div span { color: var(--text); }
.value-pairs { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.api-doc h3 { margin: 20px 0 4px; font-size: 14px; color: var(--ink); }
.api-doc p { font-size: 13.5px; }
.http { display: inline-block; min-width: 44px; padding: 2px 6px; border-radius: 5px; font: 700 11px ui-monospace, Consolas, monospace; text-align: center; }
.http--get { background: var(--blue-bg); color: var(--blue); }
.http--post { background: var(--tint); color: var(--green); }
.key-list { list-style: none; margin: 0; padding: 0; }
.key-list li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--line-soft); font-size: 13.5px; }
.key-list li.is-revoked { opacity: .6; }

/* Sipariş türü etiketi, eşleşme kartı, bağlı belgeler, kalem düzenleyici */
.order-type { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; font-size: 11px; font-weight: 800; vertical-align: middle; margin-right: 4px; }
.order-type--in { background: var(--blue-bg); color: var(--blue); }
.order-type--out { background: var(--purple-bg); color: var(--purple); }
.order-match { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; font-size: 13px; background: var(--bg); border: 1px solid var(--line); }
.order-match > .ic { flex: none; margin-top: 1px; }
.order-match > div { min-width: 0; flex: 1; }
.order-match--ok { background: var(--tint); border-color: #BFE0CC; }
.order-match--ok > .ic { color: var(--green); }
.order-match--warn { background: var(--orange-bg); border-color: #FAD9A7; }
.order-match--warn > .ic { color: var(--orange); }
.order-match__title { color: var(--ink); margin-bottom: 6px; }
.order-match__facts { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.order-match__facts span { display: flex; flex-direction: column; min-width: 0; color: var(--ink); }
.order-match__facts small { font-size: 11px; color: var(--muted); }
.order-match__warn { margin: 8px 0 4px; padding-left: 18px; color: #92400E; }
.linked-orders, .link-list { list-style: none; margin: 0; padding: 0; }
.linked-orders li, .link-list li { display: flex; flex-direction: column; gap: 3px; padding: 12px 20px; border-top: 1px solid var(--line-soft); font-size: 13px; }
.link-list li { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.link-list li a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; }
.link-list li a:hover strong { color: var(--green); }
.linked-orders__head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.line-editor { display: grid; gap: 6px; }
.line-editor__head, .line-editor__row { display: grid; grid-template-columns: 1fr 2fr .8fr .7fr .8fr .9fr 36px; gap: 6px; align-items: center; }
.line-editor__head { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.line-editor__row input { min-width: 0; width: 100%; }
.line-editor > [data-line-add] { justify-self: start; }

@media (max-width: 1200px) {
    .mapping-layout { grid-template-columns: 1fr; }
    .preview-card { position: static; max-height: none; }
}
@media (max-width: 860px) {
    .mapping-row { grid-template-columns: 1fr 1fr; }
    .mapping-row__target { grid-column: 1 / -1; }
    .mapping-row--head { display: none; }
    .line-editor__head { display: none; }
    .line-editor__row { grid-template-columns: 1fr 1fr; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
    .line-editor__row input:nth-child(2) { grid-column: 1 / -1; order: -1; }
    .yard-stats--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .conn-card__facts { grid-template-columns: 1fr 1fr; }
    .source-item { flex-direction: column; }
    .source-item__side { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
}

/* ==========================================================================
   Faz 6b — ERP'ye gönderim, teslim onayı
   ========================================================================== */
.form-section--stacked { display: block; }
.form-section--stacked .form-section__body { padding: 20px; }
.code-input { min-height: 260px; line-height: 1.5; tab-size: 2; }
.template-help h3 { margin: 16px 0 6px; font-size: 13px; color: var(--ink); }
.template-help .dl--compact > div { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.preview-actions { display: flex; gap: 8px; flex-wrap: wrap; }
input.full { width: 100%; }
.stat-link { display: flex; flex-direction: column; min-width: 0; padding: 12px 14px; background: #fff; color: inherit; text-decoration: none; }
.stat-link:hover { background: var(--bg); }
.stat-link small { font-size: 11.5px; color: var(--gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-link strong { font-size: 20px; font-weight: 800; color: var(--ink); }
.stat-link.is-alert { background: var(--red-bg); }
.stat-link.is-alert strong { color: var(--red); }
.cell-url { display: block; max-width: 340px; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-error { max-width: 260px; overflow-wrap: anywhere; }
.outbox-mini { list-style: none; margin: 0; padding: 0; }
.outbox-mini li { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 10px 20px; border-top: 1px solid var(--line-soft); font-size: 13px; }
.outbox-mini li > span { min-width: 0; overflow-wrap: anywhere; }
.delivery-state { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; color: var(--green); }
.delivery-state.has-diff { color: var(--orange); }
.delivery-state.is-pending { color: var(--orange); font-weight: 600; }
.delivery-card .card__head h2 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.delivery-table .qty-input { width: 120px; }
.delivery-table input:not(.qty-input) { width: 100%; min-width: 140px; }
.delivery-table tr.has-diff { background: var(--orange-bg); }
.delivery-diff { display: block; margin-top: 3px; font-size: 12px; font-weight: 600; color: var(--orange); }
.delivery-table tr:not(.has-diff) .delivery-diff { color: var(--gray); font-weight: 500; }
.bay__visit .bay__actions form { flex: 1; }
.bay__visit .bay__actions form .btn { width: 100%; justify-content: center; }

/* .field dışındaki form kontrolleri (eşleştirme satırı, kalem düzenleyici, teslim tablosu, satır içi formlar) aynı görünümde */
.mapping-row input, .line-editor__row input, .inline-form input, .delivery-table input, input.full, .preview-card textarea, .preview-card select {
    height: 36px; padding: 0 10px; font: inherit; font-size: 13.5px; color: var(--ink);
    background: #fff; border: 1px solid #D3DCD8; border-radius: var(--radius); transition: border-color .15s, box-shadow .15s;
}
.preview-card textarea { height: auto; padding: 8px 10px; resize: vertical; }
.mapping-row input:focus, .line-editor__row input:focus, .inline-form input:focus, .delivery-table input:focus, input.full:focus, .preview-card textarea:focus {
    outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px rgba(11, 107, 79, .12);
}
.delivery-table tr.has-diff input[data-received] { border-color: var(--orange); }

/* Faz 6c — aracı servis */
.agent-card.is-online { border-color: #BFE0CC; }
.agent-card.is-offline { border-color: #F6C7C7; }
.agent-card .badge .dot { margin-right: 2px; }
.agent-pairing { border-bottom: 1px solid var(--line-soft); }
.pair-code { font-size: 18px; font-weight: 800; letter-spacing: .08em; padding: 4px 10px; background: var(--tint); color: var(--green); border-radius: 6px; }
.agent-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.agent-actions select { height: 32px; padding: 0 8px; border: 1px solid #D3DCD8; border-radius: var(--radius); font: inherit; font-size: 12.5px; background: #fff; }
.agent-errors { margin: 0; font-size: 12.5px; white-space: pre-line; }
.agent-jobs { margin: 0 20px 14px; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 12px; font-size: 13.5px; }
.steps li { padding-left: 4px; }
.steps code { font-size: 12px; overflow-wrap: anywhere; }
.steps form, .steps .btn { margin-top: 6px; }

/* Faz 6c: senkron tablosu kaynak sütunu */
.table th.run-source, .table td.run-source { min-width: 170px; }

/* ==========================================================================
   Faz 7a — Depo (WMS): depo / lokasyon, mal kabul, yerleştirme, stok
   ========================================================================== */
.wms-feed { list-style: none; margin: 0; padding: 4px 20px 14px; display: flex; flex-direction: column; }
.wms-feed li { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.wms-feed li:last-child { border-bottom: 0; }
.wms-feed strong { font-size: 13.5px; }
.wms-feed span { font-size: 13px; color: var(--ink); }
.wms-feed small { font-size: 12px; }

.card__head-actions { display: flex; gap: 6px; align-items: center; }
.table-summary { margin: 0; padding: 10px 20px 0; font-size: 13px; color: var(--muted); }
.table-foot { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 20px; border-top: 1px solid var(--line-soft); }
.check-col { width: 36px; }
.check-col input { width: 16px; height: 16px; accent-color: var(--green); }
.table tr.is-struck td { text-decoration: line-through; }
.table tr.is-warn td { background: #FFFBF3; }

.zone-list { list-style: none; margin: 0; padding: 4px 20px 8px; }
.zone-list li { border-bottom: 1px solid var(--line-soft); padding: 8px 0; }
.zone-list summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-size: 13.5px; }
.zone-list summary::-webkit-details-marker { display: none; }
.zone-form { display: grid; grid-template-columns: 1fr 1.6fr; gap: 6px; margin: 10px 0 6px; }
.zone-form input, .zone-form select { min-width: 0; height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.zone-form .btn { grid-column: 1 / -1; }
details.card__body summary { cursor: pointer; font-size: 13.5px; }

.form-grid--tight { gap: 12px 14px; }
.range-inputs { display: flex; align-items: center; gap: 6px; }
.range-inputs input { min-width: 0; }

.progress { height: 6px; border-radius: 6px; background: var(--line-soft); overflow: hidden; margin-bottom: 4px; min-width: 120px; }
.progress span { display: block; height: 100%; background: var(--green-2, #55B947); border-radius: 6px; }
.progress-cell { min-width: 150px; }

.scan-card .card__head small { font-size: 12px; }
.scan-input { font-size: 16px !important; font-family: var(--mono, ui-monospace, Consolas, monospace); border-width: 2px !important; border-color: var(--green) !important; }
.card__body--top { padding-top: 0; }
.input--sm { height: 34px; padding: 0 8px; width: 120px; font-size: 13px; }
.inline-form .check { font-size: 12.5px; white-space: nowrap; }
.code-snippet { font-size: 11.5px; overflow-wrap: anywhere; color: var(--muted); }

.row-menu { position: relative; display: inline-block; }
.row-menu summary { list-style: none; }
.row-menu summary::-webkit-details-marker { display: none; }
.row-menu__panel { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 220px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; }
.row-menu__panel a, .row-menu__form button { display: block; width: 100%; padding: 8px 10px; border-radius: 6px; font-size: 13px; text-align: left; color: var(--ink); background: none; border: 0; cursor: pointer; }
.row-menu__panel a:hover, .row-menu__form button:hover { background: var(--bg); }
.row-menu__form { display: flex; align-items: center; gap: 4px; }
.row-menu__form input { width: 72px; height: 30px; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; font-size: 12.5px; }
.barcode-preview { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.barcode-preview svg { width: 100%; max-width: 320px; height: 80px; }
.barcode-preview--sm svg { max-width: 240px; height: 46px; }
.stack-form { display: flex; flex-direction: column; gap: 6px; padding: 6px; min-width: 200px; }
.stack-form input, .stack-form select { height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; }

/* ---------- Faz 7c: sayım ve depo raporları ---------- */
.input--num { width: 110px; height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 13.5px; text-align: right; }
.table-wrap--scroll { max-height: 460px; overflow-y: auto; }
.table-wrap--scroll thead th { position: sticky; top: 0; background: var(--white); z-index: 1; }
.chip-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 18px 18px; }
.chip-list .chip { font-family: var(--mono, ui-monospace, Consolas, monospace); font-size: 12px; }
.chip--muted { opacity: .55; text-decoration: line-through; }
.table-foot input[name="not"] { height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; min-width: 220px; }
.badge--lock { background: var(--purple-bg); color: var(--purple); }

/* ---------- Faz 8a: taşıma planlama ---------- */
.plan-board { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: 20px; }
.plan-board .table-wrap--scroll { max-height: 620px; }
.plan-board [data-order] { cursor: grab; }
.plan-board [data-order].is-dragging { opacity: .45; }
.plan-trips { display: flex; flex-direction: column; gap: 12px; }
.plan-trips__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan-trips__head h2 { font-size: 16px; margin: 0; }
.trip-card { padding: 14px 16px; border-left: 4px solid var(--trip, var(--green)); margin: 0; }
.trip-card--drop { transition: box-shadow .15s, background .15s; }
.plan-board.is-dragging .trip-card--drop { outline: 2px dashed #C9D6D0; outline-offset: -2px; }
.trip-card--drop.is-over { background: var(--tint); outline: 2px dashed var(--green) !important; }
.trip-card.is-busy { opacity: .6; pointer-events: none; }
.trip-card__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.trip-card__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--trip, var(--green)); flex: none; }
.trip-card__res { margin: 8px 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--text); }
.trip-card__meta { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.trip-card__orders { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.trip-card__orders .chip[data-order] { cursor: grab; }
.trip-card__hint { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); border: 1px dashed var(--line); border-radius: 8px; padding: 10px; text-align: center; }
.cap-bars { display: flex; flex-direction: column; gap: 5px; }
.cap-bar { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 8px; font-size: 12px; }
.cap-bar__label { color: var(--muted); }
.cap-bar__track { height: 6px; border-radius: 6px; background: var(--line-soft); overflow: hidden; }
.cap-bar__track span { display: block; height: 100%; background: var(--green-2); border-radius: 6px; }
.cap-bar__value { color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cap-bar.is-over .cap-bar__track span { background: var(--orange); }
.cap-bar.is-over .cap-bar__value { color: var(--orange); }
.map { position: relative; height: 420px; border-top: 1px solid var(--line); background: #F2F6F4; overflow: hidden; }
.map--sm { height: 300px; }
.map-svg { width: 100%; height: 100%; display: block; }
.map-svg .map-stop { cursor: default; }
.map-note { position: absolute; left: 10px; bottom: 8px; font-size: 11.5px; color: var(--muted); background: rgba(255, 255, 255, .85); padding: 3px 8px; border-radius: 6px; }
.map-empty { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 13px; padding: 20px; text-align: center; }
.warn-list { margin: 0; padding: 4px 18px 16px 34px; list-style: disc; font-size: 13px; color: #92400E; display: flex; flex-direction: column; gap: 4px; }
.btn-icon { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--muted); cursor: pointer; font-size: 10px; vertical-align: middle; }
.btn-icon:hover { color: var(--ink); border-color: #C9D6D0; }
.btn-icon .ic { width: 13px; height: 13px; }
.card__foot { padding: 14px 18px 18px; border-top: 1px solid var(--line-soft); }
.inline-actions { display: flex; gap: 6px; flex-wrap: wrap; }
[data-stop] { cursor: grab; }
[data-stop].is-dragging { opacity: .45; }
.provider-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; padding: 4px 18px 18px; }
.provider-card { border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.provider-card p { margin: 0; font-size: 12.5px; }
.provider-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.provider-card__state { color: var(--text); font-weight: 600; }
.provider-card .btn { align-self: flex-start; margin-top: 4px; }
@media (max-width: 1100px) { .plan-board { grid-template-columns: 1fr; } }

/* ---------- Faz 8b: yolda takip ---------- */
.live { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.live__list { display: flex; flex-direction: column; gap: 12px; }
.live__list .trip-card { color: inherit; text-decoration: none; }
.map--tall { height: 620px; border-top: 0; border-radius: var(--radius-lg); }
@media (max-width: 1100px) { .live { grid-template-columns: 1fr; } .map--tall { height: 420px; } }
.copy-field { display: flex; gap: 6px; }
.copy-field input { flex: 1; min-width: 0; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 12.5px; background: var(--bg); }
.disclosure-card summary { cursor: pointer; list-style: none; }
.disclosure-card summary::-webkit-details-marker { display: none; }
.pod { padding: 14px 18px; border-top: 1px solid var(--line-soft); display: grid; gap: 6px; }
.pod__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pod__meta { margin: 0; font-size: 12.5px; color: var(--text); }
.pod__lines { margin: 0; padding-left: 18px; font-size: 12.5px; color: #92400E; }
.pod__images { display: flex; gap: 8px; flex-wrap: wrap; }
.pod__images img { height: 84px; width: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; object-fit: cover; }
.pod__images .pod__sign { width: 170px; object-fit: contain; }

/* ---------- Faz 8c: taşıyıcı seçimi ve maliyet ---------- */
.card__sub { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 14px 18px 6px; border-top: 1px solid var(--line-soft); }
.card__sub h3 { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.score { display: inline-flex; align-items: center; gap: 6px; }
.score__bar { display: inline-block; width: 64px; height: 6px; border-radius: 99px; background: var(--line-soft); overflow: hidden; }
.score__bar i { display: block; height: 100%; border-radius: inherit; background: var(--green-2); }
.cost-figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line-soft); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.cost-figures > div { background: #fff; padding: 12px 18px; display: flex; flex-direction: column; gap: 2px; }
.cost-figures small { font-size: 12px; color: var(--gray); }
.cost-figures strong { font-size: 18px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .cost-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cost-lines td { font-size: 12.5px; }
.cost-lines__kind { white-space: nowrap; color: var(--gray); width: 1%; }
.cost-lines tr.is-manual td { background: #FFFBF3; }
.cost-lines tfoot td { border-top: 1px solid var(--line); font-weight: 600; }
.cost-breakdown { gap: 0; }
.cost-breakdown > div { min-width: 0; }
.cost-detail { border-top: 1px solid var(--line-soft); }
.cost-detail summary { cursor: pointer; padding: 12px 18px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cost-detail__amount { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.cost-detail.is-muted summary { color: var(--muted); }
.cost-manual summary, .tender-history summary { cursor: pointer; font-size: 13px; color: var(--text); }
.tender-box { display: flex; flex-direction: column; gap: 8px; }
.tender-box__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.table tr.is-success td { background: #F0FAF3; }
.thread { list-style: none; margin: 0; padding: 4px 18px 12px; display: flex; flex-direction: column; gap: 10px; }
.thread__item { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; max-width: 92%; }
.thread__item p { margin: 4px 0 0; font-size: 13px; white-space: pre-wrap; }
.thread__item--carrier { align-self: flex-end; background: #F1F7FF; border-color: #CFE0F5; }
.thread__item--system { align-self: center; background: var(--bg); border-style: dashed; max-width: 100%; }
.thread__item--system p { color: var(--gray); font-size: 12.5px; }
.public-page { min-height: 100vh; background: var(--bg); }
.public-page__top { background: #073B32; color: #fff; padding: 14px 20px; display: flex; align-items: center; gap: 14px; }
.public-page__top img { height: 34px; width: auto; }
.public-page__top span { opacity: .8; font-size: 13px; }
.public-page__main { max-width: 980px; margin: 0 auto; padding: 24px 16px 48px; display: flex; flex-direction: column; gap: 16px; }
.bid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 14px 20px; padding: 16px 18px; border-top: 1px solid var(--line-soft); }
.bid__info p { margin: 4px 0 2px; font-size: 13.5px; }
.bid__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-content: start; }
.bid__fields .field { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.bid__fields .field span, .bid-foot .field span { font-size: 12px; font-weight: 600; color: var(--gray); }
.bid__fields .bid__note { grid-column: 1 / -1; }
.bid-foot { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.bid-foot .field { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.bid-foot small { flex: 1 1 240px; }
.bid-note { padding-top: 0; }
@media (max-width: 700px) { .bid { grid-template-columns: 1fr; } }
fieldset.stack { border: 0; padding: 0; margin: 0; min-width: 0; }
.table td > input:not([type=checkbox]):not([type=radio]):not([type=hidden]), .table td > select, .inline-form input:not([type=checkbox]):not([type=file]), .inline-form select {
    height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 13px; background: #fff; color: var(--ink); min-width: 0; }
.table td > input:not([type=checkbox]):not([type=radio]):not([type=hidden]), .table td > select { width: 100%; min-width: 90px; }
.table td > input:focus, .table td > select:focus, .inline-form input:focus, .inline-form select:focus { outline: 2px solid rgba(11, 107, 79, .25); border-color: var(--green); }
.inline-form { flex-wrap: wrap; align-items: center; }

/* ---------- Faz 9: uçtan uca görünürlük ---------- */
.ms { list-style: none; margin: 0; padding: 16px 20px 6px; }
.ms__item { position: relative; display: flex; gap: 14px; padding-bottom: 16px; }
.ms__item:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--line); }
.ms__item--done:not(:last-child)::before { background: #BFE0CC; }
.ms__icon { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; z-index: 1; background: var(--line-soft); color: var(--muted); }
.ms__icon .ic { width: 16px; height: 16px; }
.ms__item--done .ms__icon { background: var(--tint); color: var(--green); }
.ms__item--atrisk .ms__icon { background: var(--orange-bg); color: var(--orange); }
.ms__item--late .ms__icon, .ms__item--failed .ms__icon { background: var(--red-bg); color: var(--red); }
.ms__item--pending .ms__body { opacity: .8; }
.ms__body { display: flex; flex-direction: column; gap: 2px; padding-top: 5px; min-width: 0; }
.ms__title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--ink); font-weight: 600; }
.ms__times { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; }
.ms__note { padding: 0 20px 14px; font-size: 12.5px; }
.kpi__delta { font-weight: 600; }
.kpi__delta--up { color: var(--green); }
.kpi__delta--down { color: var(--red); }
.kpi--alert strong { color: var(--red); }
.kpi--warn strong { color: var(--orange); }
.stage-bars { list-style: none; margin: 0; padding: 8px 18px 16px; display: grid; gap: 8px; }
.stage-bars li { display: grid; grid-template-columns: 150px minmax(0, 1fr) 44px; gap: 10px; align-items: center; font-size: 13px; }
.stage-bars a { color: var(--ink); }
.stage-bars__bar { height: 10px; border-radius: 99px; background: var(--line-soft); overflow: hidden; }
.stage-bars__bar span { display: block; height: 100%; border-radius: 99px; background: var(--green-2, #55B947); }
.stage-bars b { text-align: right; font-variant-numeric: tabular-nums; }
.risk-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--green-2, #55B947); margin-right: 6px; vertical-align: middle; }
.risk-dot--atrisk { background: var(--orange); }
.risk-dot--late { background: var(--red); }
.ex-card { padding: 14px 18px; border-top: 1px solid var(--line-soft); display: grid; gap: 8px; }
.ex-card:first-of-type { border-top: 0; }
.ex-card__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ex-card__head strong { color: var(--ink); }
.ex-card form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ex-card form select, .ex-card form input[type=text] { height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 13px; background: #fff; min-width: 0; }
.ex-card form input[type=text] { flex: 1 1 220px; }
.ex-card .thread { padding: 0; }
.order-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.share-box { padding: 12px 18px 16px; display: grid; gap: 6px; }
@media (max-width: 640px) {
    .stage-bars li { grid-template-columns: 110px minmax(0, 1fr) 36px; }
    .ms { padding: 12px 14px 4px; }
}
.ms__item--skipped .ms__icon { background: transparent; border: 1.5px dashed var(--line); }
.ms__item--skipped .ms__body { opacity: .65; }

/* ---------- Faz 10a: sistem durumu ---------- */
.tabs--inline { box-shadow: none; margin: 0; gap: 0; }
.tabs--inline .tabs__item { padding: 6px 10px; }

.recovery-codes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; }
.recovery-codes code { display: block; padding: 6px 10px; background: var(--bg); border: 1px dashed var(--line); border-radius: 6px; font-size: 13px; text-align: center; }
.tfa-qr { margin: 8px 0; width: 180px; }
.tfa-qr svg { width: 100%; height: auto; display: block; }

/* ---------- Faz 10c-1: deneme / salt-okunur şeridi, kurulum sihirbazı, abonelik ---------- */
.plan-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 16px; border-radius: 10px; border: 1px solid #C9DAFC; background: var(--blue-bg); color: #1E3A8A; font-size: 13.5px; }
.plan-banner p { flex: 1 1 320px; }
.plan-banner--warn { background: var(--orange-bg); border-color: #FAD9A7; color: #92400E; }
.plan-banner--danger { background: var(--red-bg); border-color: #F6C7C7; color: #991B1B; }
.plan-banner .sa-switch { display: flex; align-items: center; gap: 10px; }
.sa-switch label { font-size: 13px; font-weight: 600; color: var(--ink); }
.sa-switch select { height: 38px; min-width: 300px; max-width: 420px; padding: 0 12px; font: inherit; font-size: 14px; color: var(--ink); background: #fff; border: 1px solid #D3DCD8; border-radius: var(--radius); transition: border-color .15s, box-shadow .15s; }
.sa-switch select:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px rgba(11, 107, 79, .12); }
.plan-banner .sa-switch + .btn { height: 38px; }
@media (max-width: 640px) { .sa-switch { flex: 1 1 100%; } .sa-switch select { min-width: 0; flex: 1; } }
.plan-banner form { display: inline; }
.setup__steps--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.setup__foot { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.wizard-steps { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.wizard-steps li { flex: 1 1 160px; }
.wizard-steps a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--gray); font-weight: 600; }
.wizard-steps a span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--line-soft); font-size: 12.5px; flex: none; }
.wizard-steps .is-current a { border-color: var(--green); color: var(--ink); box-shadow: 0 0 0 3px rgba(11, 107, 79, .1); }
.wizard-steps .is-current a span { background: var(--green); color: #fff; }
.wizard-steps .is-done a span { background: var(--tint); color: var(--green); }
.invite-rows { display: grid; gap: 10px; margin-bottom: 14px; }
.invite-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; }
.team-list { display: grid; gap: 6px; margin-bottom: 14px; }
.team-list li { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; padding: 8px 12px; background: var(--bg); border-radius: 8px; }
.team-list small { color: var(--gray); }
.check-list { display: grid; gap: 8px; margin-bottom: 16px; }
.check-list li { padding-left: 26px; position: relative; color: var(--gray); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); box-sizing: border-box; }
.check-list li.is-done { color: var(--ink); }
.check-list li.is-done::before { background: var(--green); border-color: var(--green); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; padding: 0 18px 4px; }
.plan-grid .plan { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.plan-grid .plan h3 { font-size: 16px; font-weight: 800; display: flex; gap: 8px; align-items: center; }
.plan--featured { border-color: #BFE0CC; box-shadow: 0 0 0 3px rgba(85, 185, 71, .12); }
.plan-grid .plan--current { background: #F7FBF8; border-color: var(--green); }
.plan__list { display: grid; gap: 4px; font-size: 13px; padding: 8px 0; border-top: 1px solid var(--line-soft); }
.plan__list li::before { content: "\2713  "; color: var(--green); font-weight: 700; }
.plan__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.legal-preview h2 { font-size: 16px; margin: 16px 0 6px; }
.legal-preview ul { list-style: disc; padding-left: 20px; display: grid; gap: 4px; }
.legal-preview p { margin-bottom: 8px; }
.auth-form__note { margin: 12px 0; font-size: 13px; color: var(--gray); }
@media (max-width: 1024px) {
    .setup__steps--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .setup__steps--5 { grid-template-columns: 1fr; }
    .invite-row { grid-template-columns: 1fr; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); }
    .wizard-steps li { flex-basis: calc(50% - 4px); }
    .wizard-steps a { padding: 8px 10px; font-size: 13px; }
}

/* ---------- Faz 10c-2: ödeme, kart, özet, sonuç ---------- */
.sub-summary p + .form-actions { margin-top: 12px; }
.dl--inline > div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.dl--inline > div:last-child { border-bottom: 0; }
.dl--inline dt { color: var(--gray); }
.dl--inline dd { margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sms-packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; padding: 0 18px 18px; }
.sms-pack { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.sms-pack strong { font-size: 16px; color: var(--ink); }
.sms-pack .btn { margin-top: 8px; align-self: flex-start; }
.pay-card { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.pay-card .ic { color: var(--green); width: 22px; height: 22px; }
.pay-methods { display: grid; gap: 10px; }
.pay-method { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.pay-method:has(input:checked) { border-color: var(--green); background: #F7FBF8; box-shadow: 0 0 0 3px rgba(11, 107, 79, .08); }
.pay-method:has(input:disabled) { opacity: .6; cursor: not-allowed; }
.pay-method input { margin-top: 3px; accent-color: var(--green); }
.form-section__check { padding: 14px 18px; margin-bottom: 16px; display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.form-section__check input { width: 18px; height: 18px; accent-color: var(--green); margin-top: 2px; }
.form-section__check .field__error { grid-column: 2; }
.order-lines { display: grid; padding: 4px 18px 12px; }
.order-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
.order-lines li strong { white-space: nowrap; color: var(--ink); }
.order-lines .is-credit strong { color: var(--green); }
.order-lines__sub { border-top: 1px solid var(--line); }
.order-lines__total { border-bottom: 0 !important; font-size: 16px !important; }
.order-lines__total strong { font-size: 18px; }
.coupon-form { display: grid; gap: 6px; border-top: 1px solid var(--line-soft); }
.coupon-form label { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.coupon-form input { text-transform: uppercase; }
.redirect-card, .result-card { max-width: 560px; margin: 40px auto; padding: 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.redirect-card h1, .result-card h1 { font-size: 22px; }
.redirect-card__icon, .result-card__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--tint); color: var(--green); }
.redirect-card__icon .ic, .result-card__icon .ic { width: 28px; height: 28px; }
.result-card.is-error .result-card__icon { background: var(--red-bg); color: var(--red); }
.result-card.is-wait .result-card__icon { background: var(--orange-bg); color: var(--orange); }
.result-card .form-actions { justify-content: center; margin-top: 8px; }
.bank-info { white-space: pre-wrap; background: var(--bg); padding: 12px 16px; border-radius: 8px; font-family: inherit; text-align: left; width: 100%; margin: 0; }
.page-head__actions form:not(.facility-switch) { display: inline; } /* tesis / kapı seçicisi kendi inline-flex düzenini korur */
@media (max-width: 640px) {
    .dl--inline > div { grid-template-columns: 1fr; gap: 2px; }
    .redirect-card, .result-card { margin: 16px auto; padding: 24px 16px; }
}

/* ---------- Faz 10c-3: gelir panosu, faturalar ---------- */
.rev-chart { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; align-items: end; height: 220px; padding: 12px 18px 8px; }
.rev-chart__col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; min-width: 0; }
.rev-chart__bar { width: min(36px, 100%); background: var(--green); border-radius: 4px 4px 0 0; min-height: 0; transition: background .15s; }
.rev-chart__col:hover .rev-chart__bar { background: var(--green-2); }
.rev-chart__val { font-size: 11px; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rev-chart__lbl { font-size: 11.5px; color: var(--gray); text-transform: capitalize; }
.attention-list { display: grid; }
.attention-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line-soft); }
.attention-list li:last-child a { border-bottom: 0; }
.attention-list a:hover { background: var(--bg); }
.attention-list strong { font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; }
.manual-invoice { margin-top: 6px; }
.manual-invoice form { margin-top: 8px; min-width: 220px; }
.input--xs { width: 72px; }
@media (max-width: 640px) {
    .rev-chart { gap: 3px; padding: 12px 8px 8px; height: 180px; }
    .rev-chart__val { display: none; }
    .rev-chart__lbl { font-size: 10px; }
}

/* ---------- Faz 10d: Rapor Merkezi ---------- */
.report-list { display: grid; }
.report-item { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--line-soft); }
.report-item:last-child { border-bottom: 0; }
.report-item__text { display: grid; gap: 2px; min-width: 0; }
.report-item__text small { font-size: 12.5px; }
.report-item__actions { display: flex; gap: 6px; align-items: center; flex: none; }
.report-gen, .save-view { position: relative; }
.report-gen > summary, .save-view > summary { list-style: none; cursor: pointer; }
.report-gen > summary::-webkit-details-marker, .save-view > summary::-webkit-details-marker { display: none; }
.report-gen__panel, .save-view__panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: 280px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); }
.save-view { margin-right: 8px; }
.saved-view { position: relative; padding-right: 36px !important; }
.saved-view form { position: absolute; right: 0; top: 6px; }
.btn--xs { padding: 4px 6px; font-size: 12px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 16px; margin-bottom: 14px; }
.metric-card { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.metric-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.metric-card__head h2 { font-size: 14px; font-weight: 700; }
.metric-card__value { font-size: 24px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.metric-card__value small { font-size: 13px; font-weight: 500; color: var(--gray); }
.metric-card__chart { width: 100%; height: 72px; overflow: visible; }
.metric-card__base { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.metric-card__line { fill: none; stroke: var(--green); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.metric-card__range { font-size: 11.5px; }
.new-key { align-items: center; justify-content: space-between; flex-wrap: wrap; }
.key-code { display: block; margin-top: 6px; font-size: 13px; word-break: break-all; user-select: all; }
.bi-steps h3 { font-size: 14px; font-weight: 700; margin: 14px 0 6px; }
.bi-steps ol { list-style: decimal; padding-left: 20px; display: grid; gap: 4px; }
.bi-steps code { word-break: break-all; }
tr.is-highlight td { background: #F2FAF4; }
@media (max-width: 640px) {
    .report-item { flex-direction: column; align-items: stretch; }
    .report-item__actions { justify-content: flex-start; }
    .report-gen__panel { left: 0; right: auto; width: min(280px, calc(100vw - 48px)); }
    .save-view summary span { display: none; }
    .save-view__panel { right: -60px; width: min(280px, calc(100vw - 32px)); }
}

/* ---------- Faz 10f: İş ortağı itirazları ---------- */
.claim-form__hint { margin: 0 0 12px; font-size: 13px; }
.claim-form__fields { margin-top: 16px; }
.claim-lines select, .claim-lines input { min-width: 0; width: 100%; }
.claim-lines td:nth-child(4) { min-width: 150px; }
.claim-lines td:nth-child(5) { width: 120px; }
.input--num { text-align: right; font-variant-numeric: tabular-nums; }
.claim-desc p { margin: 0 0 6px; white-space: pre-wrap; }
.claim-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; padding: 4px 18px 16px; }
.claim-file { display: grid; gap: 4px; color: var(--ink); text-decoration: none; }
.claim-file img, .claim-file__icon { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); }
.claim-file__icon { display: grid; place-items: center; color: var(--gray); }
.claim-file__icon .ic { width: 32px; height: 32px; }
.claim-file small { font-size: 11.5px; color: var(--gray); }
.claim-reply { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.claim-reply input[type=file] { flex: 1 1 200px; min-width: 0; font-size: 12.5px; }
.claim-reply select { flex: 1 1 160px; min-width: 0; }
.claim-reply__opt { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; }
.claim-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.claim-card p { margin: 0; font-size: 13.5px; }
.claim-row { display: block; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; }
.claim-row:hover { border-color: var(--green); }
.claim-settings { display: grid; gap: 14px; }
.claim-settings__item { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; }
.claim-settings__item input { margin-top: 3px; }
.thread__item--partner { align-self: flex-start; background: #FFF8EC; border-color: #F5DDB5; }
.thread__item--company { align-self: flex-end; background: var(--tint); border-color: #BFE0CC; }
.thread__item--internal { border-style: dashed; background: #F7F7F8; }
.stack-sm { display: grid; gap: 8px; }
@media (max-width: 760px) {
    .claim-lines thead { display: none; }
    .claim-lines tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
    .claim-lines td { display: grid; gap: 2px; border: 0 !important; padding: 0 !important; text-align: left !important; }
    .claim-lines td:first-child, .claim-lines td:last-child { grid-column: 1 / -1; }
    .claim-lines td::before { content: attr(data-label); font-size: 11.5px; color: var(--gray); font-weight: 600; }
    .claim-lines td:first-child::before { content: none; }
    .claim-lines td:nth-child(4), .claim-lines td:nth-child(5) { min-width: 0; width: auto; }
}

/* Destek talebi yazışması (Faz 11f) */
.support-thread { display: grid; gap: 12px; }
.support-msg { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fff; }
.support-msg--support { background: #F3F8F5; border-color: #CFE5D8; }
.support-msg--internal { background: #FFF8EB; border-color: #F6DDB0; }
.support-msg header { font-size: 13px; margin-bottom: 6px; }

/* Excel toplu aktarım (Faz 12a) */
.import-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-bottom: 16px; }
.import-card h2 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin-bottom: 6px; }
.import-card h2 .ic { color: var(--green); }
.import-card__actions, .import-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.import-actions { margin-top: 0; }
.import-tips ul, .import-cols { display: grid; gap: 6px; padding-left: 18px; list-style: disc; font-size: 13.5px; }
.import-cols { list-style: none; padding-left: 0; }
.import-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.import-summary__item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; }
.import-summary__item strong { font-size: 26px; font-weight: 800; }
.import-summary__item span { font-size: 13px; color: var(--gray, #667085); }
.import-summary__item--new strong { color: #0B6B4F; }
.import-summary__item--upd strong { color: #1E40AF; }
.import-summary__item--err strong { color: #B42318; }
.import-errors { color: #B42318; font-size: 13px; }
@media (max-width: 640px) { .import-summary { grid-template-columns: 1fr; } }
.holiday-year { align-self: center; font-size: 18px; padding: 0 4px; }

/* ---------- Panel geneli arama (Faz 12d) ---------- */
.topbar__context { flex: 1; }
.topbar-search { position: relative; flex: 0 1 380px; margin-left: 8px; display: flex; align-items: center; }
.topbar-search > .ic { position: absolute; left: 11px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.topbar-search input { width: 100%; height: 38px; padding: 0 34px; border: 1px solid #D3DCD8; border-radius: 10px; background: #F7F9F8; font: inherit; font-size: 13.5px; }
.topbar-search input:focus { outline: 2px solid rgba(11, 107, 79, .25); border-color: var(--green); background: #fff; }
.topbar-search kbd { position: absolute; right: 10px; padding: 1px 6px; border: 1px solid #D3DCD8; border-radius: 5px; font-size: 11px; color: var(--muted); background: #fff; }
.topbar-search input:focus + kbd { display: none; }
.topbar-search__list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; min-width: 320px; max-height: min(70vh, 520px); overflow: auto; z-index: 60;
    background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(15, 29, 25, .16); padding: 6px; }
.topbar-search__group { padding: 8px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.topbar-search__item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.topbar-search__item span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.topbar-search__item strong { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-search__item small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-search__item.is-active, .topbar-search__item:hover { background: var(--tint); }
.topbar-search__all, .topbar-search__empty { display: block; padding: 10px; font-size: 13px; color: var(--green); font-weight: 600; text-decoration: none; border-top: 1px solid var(--line-soft); margin-top: 4px; }
.topbar-search__empty { color: var(--muted); font-weight: 500; border-top: 0; }
.search-page__form { display: flex; gap: 10px; margin-bottom: 16px; max-width: 720px; }
.search-page__form input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid #D3DCD8; border-radius: 10px; font: inherit; font-size: 15px; }
.search-results { display: grid; gap: 14px; }
.search-results .card__head h2 { display: flex; align-items: center; gap: 8px; }
.search-list { list-style: none; margin: 0; padding: 0; }
.search-list li { display: flex; align-items: center; gap: 10px; padding: 10px 20px; }
.search-list li + li { border-top: 1px solid var(--line-soft); }
.search-list a { flex: 1; min-width: 0; display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.search-list a:hover strong { color: var(--green); text-decoration: underline; }
.search-list small { color: var(--muted); font-size: 12.5px; }
@media (max-width: 900px) {
    .topbar__company { display: none; }
    .topbar-search { flex: 1; margin-left: 0; }
    .topbar-search kbd { display: none; }
    .topbar-search__list { position: fixed; left: 12px; right: 12px; top: 64px; min-width: 0; }
}
.topbar-search__item em { font-style: normal; flex: none; }
.auth-lang { position: absolute; top: 18px; right: 22px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--green); text-decoration: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; background: #fff; }
.auth-split__main { position: relative; }
.public-page__lang { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; padding: 5px 11px; border: 1px solid rgba(255,255,255,.35); border-radius: 99px; }

/* Tüm seçim kutularında el imleci; devre dışı olanda "izin yok" imleci */
select { cursor: pointer; }
select:disabled { cursor: not-allowed; }

/* Tarih / saat alanlarında el imleci (alan ve takvim simgesi); devre dışı ya da salt okunurda "izin yok" imleci */
input:is([type=date], [type=datetime-local], [type=time], [type=month], [type=week]) { cursor: pointer; }
input:is([type=date], [type=datetime-local], [type=time], [type=month], [type=week])::-webkit-calendar-picker-indicator { cursor: pointer; }
input:is([type=date], [type=datetime-local], [type=time], [type=month], [type=week]):is(:disabled, [readonly]) { cursor: not-allowed; }
