/* Özşahinler Operasyon Yönetim — v2.0 look (owner's design guide 2026-11-30; decisions in V2-KARARLAR.md).
   Loaded after site.css: the old sheet stays as it is on main, this one changes the frame and the shared look on top of it. */

/* 1. Tokens (decisions 02, 28, 29, 30): light grey ground, navy, white panels, the device's own font, 12px corners, quick transitions. */
:root{
    --v2-bg:#F5F5F7;--v2-navy:#102C49;--v2-navy-2:#1d4168;--v2-navy-line:#29496c;--v2-ink:#182331;--v2-muted:#78838F;--v2-line:#e3e6ea;--v2-panel:#fff;
    --v2-danger:#b3261e;--v2-radius:12px;--v2-fast:.17s;--v2-side:232px;--v2-side-narrow:68px;
    --ink:#182331;--muted:#78838F;--line:#e3e6ea;--green:#102C49;
    --navy-900:#102C49;--navy-800:#17385c;--navy-600:#1d5fa8;--navy-400:#4b8ed6;--navy-200:#9dc0e6;--navy-100:#c4d9ef;--navy-50:#e8f0f9;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;color:var(--v2-ink);background:var(--v2-bg);
}
body.v2{background:var(--v2-bg);color:var(--v2-ink)}

/* 2. Frame: left menu + content on a wide screen. */
body.has-nav{display:flex;align-items:stretch;min-height:100vh}
.app-main{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;min-height:100vh}
.app-main>.page-shell{flex:1 0 auto;width:100%;min-height:0}
.side-nav{position:sticky;top:0;align-self:flex-start;flex:0 0 var(--v2-side);width:var(--v2-side);height:100vh;display:flex;flex-direction:column;gap:6px;padding:14px 10px;background:var(--v2-navy);color:#dfe8f2;overflow-y:auto;overflow-x:hidden;transition:flex-basis var(--v2-fast),width var(--v2-fast);z-index:30}
.side-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.side-brand{display:flex;align-items:center;flex:1 1 auto;min-width:0;padding:7px 9px;border-radius:10px;background:#fff}
.side-brand .brand-logo{width:100%;max-width:150px;height:auto}
.side-toggle{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border:0;border-radius:9px;background:transparent;color:#c4d3e3;cursor:pointer;transition:background var(--v2-fast)}
.side-toggle:hover{background:var(--v2-navy-2);color:#fff}
.side-links{display:flex;flex-direction:column;gap:2px}
.side-link{display:flex;align-items:center;gap:11px;width:100%;padding:7px 8px;border:0;border-radius:10px;background:transparent;color:#dfe8f2;font:inherit;font-size:13.5px;font-weight:500;line-height:1.25;text-align:left;cursor:pointer;transition:background var(--v2-fast),color var(--v2-fast)}
.side-link:hover{background:rgba(255,255,255,.08);color:#fff}
.side-link.is-current{background:var(--v2-navy-2);color:#fff;font-weight:650}
.side-text{min-width:0;overflow-wrap:anywhere}
.side-user{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.side-foot{margin-top:auto;padding-top:8px;border-top:1px solid var(--v2-navy-line);display:flex;flex-direction:column;gap:2px}
.side-user{display:block;padding:6px 10px 2px;color:#a9bcd0;font-size:11.5px}
.side-logout{margin:0}

/* Section icons (decision 21): each section its own soft colour; the palette around them stays white and navy. */
.nav-icon{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:9px;background:#e8f0f9;color:#1d5fa8}
.nav-icon .ops-svg{width:18px;height:18px}
.nav-icon-home{background:#fff;color:var(--v2-navy)}
.nav-icon-plain{background:var(--v2-navy-line);color:#fff}
.mi-fiyat-listesi{background:#dbe9fb;color:#1d5fa8}.mi-teklif{background:#dff1ee;color:#1c7a6c}.mi-akaryakit{background:#fdefd6;color:#a86a12}
.mi-tir-operasyonu{background:#e9e3fa;color:#5b3fb0}.mi-arac-filo{background:#fbe4e6;color:#b03a48}.mi-personel{background:#dbe9fb;color:#1d5fa8}
.mi-insaat-demiri{background:#e4ecef;color:#41606c}.mi-odemeler{background:#fdefd6;color:#a86a12}.mi-tahsilatlar{background:#dff1ee;color:#1c7a6c}.mi-kasa{background:#fbe4e6;color:#b03a48}.mi-sirket-giderleri{background:#e4ecef;color:#41606c}.mi-bilgiler,.mi-bilgiler-abonelik,.mi-bilgiler-banka{background:#e6eef9;color:#2b5b9a}

/* Narrow menu: icons only. By the user's choice (html.nav-narrow), or by itself on a middle-sized screen unless the user chose wide. */
html.nav-narrow .side-nav{flex-basis:var(--v2-side-narrow);width:var(--v2-side-narrow)}
html.nav-narrow .side-text,html.nav-narrow .side-brand{display:none}
html.nav-narrow .side-head{justify-content:center}
html.nav-narrow .side-link{justify-content:center;padding:7px 0}
@media (max-width:1240px){
    html:not(.nav-wide) .side-nav{flex-basis:var(--v2-side-narrow);width:var(--v2-side-narrow)}
    html:not(.nav-wide) .side-text,html:not(.nav-wide) .side-brand{display:none}
    html:not(.nav-wide) .side-head{justify-content:center}
    html:not(.nav-wide) .side-link{justify-content:center;padding:7px 0}
}

/* Top bar: on a wide screen the left menu carries everything, so the bar shows only where there is no menu (sign-in) and on the phone. */
.topbar{background:var(--v2-navy)}
body.has-nav .topbar{display:none}
body.no-nav .topbar .brand-logo{padding:5px 8px;border-radius:9px;background:#fff;box-sizing:content-box}
.page-shell{max-width:1500px;padding:30px 30px 30px}
.footer{border-top:1px solid var(--v2-line);color:var(--v2-muted)}

/* 3. Phone (decisions 08, 09): no left menu; a floating three-button bottom menu and the "Bölümler" sheet. */
.bottom-nav,.sheet-backdrop{display:none}
@media (max-width:760px){
    body.has-nav{display:block}
    .side-nav{display:none}
    body.has-nav .topbar{display:flex;position:sticky;top:0;z-index:25;height:auto;min-height:56px;padding:8px 14px;flex-wrap:nowrap;gap:10px}
    body.has-nav .topbar .brand>span{display:none}
    body.has-nav .topbar .brand-logo{width:118px;padding:5px 8px;border-radius:9px;background:#fff;box-sizing:content-box}
    body.has-nav .topbar .user-area{gap:8px;flex-wrap:nowrap;min-width:0}
    body.has-nav .topbar .user-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:38vw;font-size:12px}
    .page-shell{padding:18px 14px 22px}
    body.has-nav .app-main{padding-bottom:calc(92px + env(safe-area-inset-bottom,0px))}
    .bottom-nav{position:fixed;left:14px;right:14px;bottom:calc(12px + env(safe-area-inset-bottom,0px));z-index:40;display:flex;gap:4px;padding:6px;border:1px solid #dfe3e8;border-radius:28px;background:rgba(255,255,255,.96);box-shadow:0 10px 30px rgba(16,44,73,.22);transition:transform var(--v2-fast),opacity var(--v2-fast)}
    .bottom-link{flex:1 1 0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:50px;padding:6px 4px;border:0;border-radius:22px;background:transparent;color:#55606c;font:inherit;font-size:11px;font-weight:650;cursor:pointer;transition:background var(--v2-fast),color var(--v2-fast)}
    .bottom-link .ops-svg{width:21px;height:21px}
    .bottom-link.is-current{background:var(--v2-navy);color:#fff}
    /* Decision 09: out of the way while typing, and while a pop-up window is open. */
    html.typing .bottom-nav,body:has(dialog[open]) .bottom-nav,body:has(.tir-modal:target) .bottom-nav,body:has(.tir-modal.is-open) .bottom-nav{transform:translateY(140%);opacity:0;pointer-events:none}
    .sheet-backdrop:not([hidden]){display:flex;position:fixed;inset:0;z-index:35;align-items:flex-end;background:rgba(16,44,73,.45)}
    .sections-sheet{width:100%;max-height:82vh;overflow:auto;padding:8px 12px calc(96px + env(safe-area-inset-bottom,0px));border-radius:22px 22px 0 0;background:var(--v2-bg)}
    .sheet-grab{width:38px;height:5px;margin:0 auto 8px;border-radius:3px;background:#c9ced5}
    .sheet-head{display:flex;align-items:center;justify-content:space-between;margin:0 2px 8px}.sheet-head h2{margin:0;font-size:17px}
    .sheet-close{width:36px;height:36px;border:0;border-radius:10px;background:transparent;color:var(--v2-muted);font-size:24px;line-height:1;cursor:pointer}
    .sheet-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
    .sheet-card{display:flex;align-items:center;gap:9px;min-height:52px;padding:10px;border:1px solid var(--v2-line);border-radius:var(--v2-radius);background:#fff;font-size:13px;line-height:1.25}
    .sheet-card.is-current{border-color:var(--v2-navy)}
    html.sheet-open,html.sheet-open body{overflow:hidden}
}

/* 4. Shared look (decisions 01, 19, 20, 29, 30). */
h1{letter-spacing:-.6px;color:var(--v2-ink)}
.muted{color:var(--v2-muted)}.eyebrow{color:var(--v2-muted)}
.button{border-color:#d7dce2;border-radius:10px;color:var(--v2-ink);transition:background var(--v2-fast),border-color var(--v2-fast),color var(--v2-fast)}
.button-primary{border-color:var(--v2-navy);background:var(--v2-navy);color:#fff}
.button-primary:hover{border-color:#0b2037;background:#0b2037;color:#fff}
.button-danger{border-color:#e5b8b5;background:#fff;color:var(--v2-danger)}
.back-link{margin-bottom:14px;color:var(--navy-600);font-size:12.5px;font-weight:600}
.date-chip{border-color:var(--v2-line);border-radius:10px;background:#fff}
.success-banner,.form-error,.view-only-note{border-radius:var(--v2-radius)}
@media (prefers-reduced-motion:reduce){*{transition-duration:0s!important}}

/* Printing: no menus. On screen the customer's view of the price list keeps the menus like every other page: the section
   opens on it first, and without them it looked like the old program (owner's report 2026-12-04). */
@media print{.side-nav,.bottom-nav,.sheet-backdrop,.topbar{display:none!important}body.has-nav{display:block}.app-main{padding:0!important}}

/* 5. Main panel (decisions 05, 06, 07). Wide: sections left (about 65%), warnings right (about 35%), the warnings box scrolls inside itself.
      Phone: warnings first with the urgent ones open, then small section cards. */
.home-cols{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:start}
.home-cols:has(.home-warnings){grid-template-columns:minmax(0,65fr) minmax(280px,35fr)}
.home-cards{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}
.home-cards .ops-card,.home-cards .ops-card-active{gap:4px;padding:16px;border:1px solid var(--v2-line);border-radius:var(--v2-radius);transition:transform var(--v2-fast),border-color var(--v2-fast),box-shadow var(--v2-fast)}
.home-cards .ops-card:hover{border-color:#c5ced8;box-shadow:0 8px 22px rgba(16,44,73,.08)}
.home-cards .ops-badge-active,.home-cards .ops-open{display:none}
.home-cards .ops-card h3{margin-top:10px;font-size:15px}
.home-cards .ops-icon{width:40px;height:40px;border-radius:11px}
.home-warnings{position:sticky;top:18px;margin:0;padding:16px 18px;border-color:var(--v2-line);border-radius:var(--v2-radius);max-height:calc(100vh - 36px);overflow:auto}
.home-warnings .fleet-panel-head h2{font-size:17px}
.home-warnings .fleet-panel-row{align-items:flex-start;font-size:12.5px;line-height:1.4}
.home-more{display:none}
.welcome-row{margin-bottom:22px}
@media (max-width:1000px){.home-cols:has(.home-warnings){grid-template-columns:minmax(0,1fr)}.home-warnings{position:static;max-height:none;order:-1}}
@media (max-width:760px){
    h1{font-size:25px}
    .welcome-row{gap:10px;margin-bottom:14px}
    .home-cards{grid-template-columns:1fr 1fr;gap:9px}
    .home-cards .ops-card,.home-cards .ops-card-active{flex-direction:row;align-items:center;gap:9px;min-height:54px;padding:10px}
    .home-cards .ops-card p,.home-cards .ops-badge{display:none}
    .home-cards .ops-card h3{margin:0;font-size:13px;line-height:1.25}
    .home-cards .ops-icon{flex:0 0 32px;width:32px;height:32px;border-radius:9px}.home-cards .ops-icon .ops-svg{width:18px;height:18px}
    .home-warnings{padding:12px 13px}
    .home-warnings.has-later:not(.show-later) .is-later{display:none}
    .home-more:not([hidden]){display:flex;justify-content:space-between;width:100%;margin-top:4px;padding:11px 0 2px;border:0;border-top:1px solid #eef0f3;background:transparent;color:var(--v2-navy);font:inherit;font-size:13px;font-weight:650;cursor:pointer}
}
/* 6. Sign-in (decision 10): the same two-part card in the new colours; the logo on white so it is never lost on navy. */
.login-brand{background:var(--v2-navy)}
.login-brand .login-brand-logo{padding:8px 10px;border-radius:10px;background:#fff;box-sizing:border-box}
.login-card{border-color:var(--v2-line);border-radius:16px}
@media (max-width:760px){.login-wrap{padding:8px 0}.login-modules,.login-brand h2,.login-brand>div>p,.login-secure{display:none}.login-brand{padding:18px 20px;gap:0}.login-form{padding:24px 20px}}
/* The sign-in card carries the logo itself: no second logo in a bar above it; on a phone only logo and form (decision 10). */
body.no-nav:has(.login-wrap) .topbar{display:none}
body.no-nav:has(.login-wrap) .page-shell{display:grid;align-items:center}
@media (max-width:760px){.login-logo{justify-content:center}.login-logo>div{display:none}.login-brand .login-brand-logo{width:min(230px,100%)}}

/* 7. Shared behaviours (decisions 22, 25, 26). */
.v2-toast{position:fixed;top:18px;right:18px;z-index:70;max-width:min(420px,calc(100vw - 36px));margin:0;padding:13px 16px;border:1px solid #cfe3d8;border-radius:var(--v2-radius);background:#fff;color:var(--v2-ink);font-size:13.5px;box-shadow:0 12px 34px rgba(16,44,73,.18);cursor:pointer;transition:opacity .35s,transform .35s}
.v2-toast::before{content:"✓";display:inline-grid;place-items:center;width:22px;height:22px;margin-right:9px;border-radius:50%;background:#1c7a6c;color:#fff;font-size:13px;font-weight:700;vertical-align:middle}
.notice-card.v2-toast{display:flex;gap:10px}.notice-card.v2-toast::before,.notice-card.v2-toast .notice-icon{display:none}.notice-card.v2-toast p{margin:2px 0 0}
.v2-toast.is-leaving{opacity:0;transform:translateY(-8px)}.v2-toast.is-gone{display:none}
@media (max-width:760px){.v2-toast{top:66px;left:14px;right:14px;max-width:none}}
.submit-once-note{border-color:#c9d6e6;background:#eef3f9;color:#28405c}
dialog.v2-leave{border:0;border-radius:16px;padding:0}dialog.v2-leave::backdrop{background:rgba(16,44,73,.45)}
.v2-leave-buttons{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
form[data-v2-sending] button[data-v2-locked]{opacity:.55;cursor:progress}

/* 8. Section pages (decisions 27, 37, 38, 41). */
/* 27: headings of a table that fits its box stay in view while the page scrolls. */
@media (min-width:761px){
    .table-scroll.v2-fit{overflow:visible}
    .table-scroll.v2-fit>table{overflow:visible}
    .table-scroll.v2-fit thead th{position:sticky;top:0;z-index:4;box-shadow:0 1px 0 var(--v2-line)}
}
/* 37: the floating "+ Ekle" button. */
.v2-fab{position:fixed;right:22px;bottom:22px;z-index:38;display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.v2-fab[hidden]{display:none}
.v2-fab-button{display:inline-flex;align-items:center;gap:8px;min-height:50px;padding:0 20px 0 16px;border:0;border-radius:26px;background:var(--v2-navy);color:#fff;font:inherit;font-size:14.5px;font-weight:700;box-shadow:0 10px 26px rgba(16,44,73,.32);cursor:pointer;transition:background var(--v2-fast),transform var(--v2-fast)}
.v2-fab-button:hover{background:#0b2037}.v2-fab-button:active{transform:scale(.97)}
.v2-fab-plus{font-size:22px;font-weight:500;line-height:1;transition:transform var(--v2-fast)}.v2-fab.is-open .v2-fab-plus{transform:rotate(45deg)}
.v2-fab-menu{display:flex;flex-direction:column;gap:2px;min-width:190px;padding:6px;border:1px solid var(--v2-line);border-radius:14px;background:#fff;box-shadow:0 14px 34px rgba(16,44,73,.22)}
.v2-fab-menu[hidden]{display:none}
.v2-fab-item{padding:11px 13px;border:0;border-radius:9px;background:transparent;color:var(--v2-ink);font:inherit;font-size:14px;font-weight:600;text-align:left;cursor:pointer}
.v2-fab-item:hover{background:#eef2f6}
body.has-fab .page-shell{padding-bottom:86px}
body:has(dialog[open]) .v2-fab,body:has(.tir-modal:target) .v2-fab,body:has(.tir-modal.is-open) .v2-fab,html.typing .v2-fab,html.sheet-open .v2-fab{display:none}
@media (max-width:760px){.v2-fab{right:16px;bottom:calc(84px + env(safe-area-inset-bottom,0px))}}
@media print{.v2-fab{display:none!important}}
/* 41: the row just saved. */
tr.v2-new-row>td,.v2-new-row:not(tr){background:#fff4cf!important;transition:background 1.2s}
tr.v2-new-row>td:first-child{box-shadow:inset 4px 0 0 #e0a800}
tr.v2-new-row.v2-new-row-out>td,.v2-new-row.v2-new-row-out:not(tr){background:transparent!important;box-shadow:none}
/* 38: on a phone a list is read as boxes, top line the name and the amount, the rest below; nothing scrolls sideways. */
@media (max-width:760px){
    .table-scroll.v2-cards-wrap{overflow:visible}
    table.v2-cards,table.v2-cards>tbody,table.v2-cards>tfoot{display:block;width:100%}
    table.v2-cards>thead{display:none}
    table.v2-cards>tbody>tr,table.v2-cards>tfoot>tr{display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 10px;padding:12px 13px;border-top:1px solid #eef1f4}
    table.v2-cards>tbody>tr:first-child{border-top:0}
    table.v2-cards>tbody>tr::before{content:"";order:3;flex:0 0 100%;height:0}
    table.v2-cards td{display:block;padding:0;border:0;background:transparent;white-space:normal;text-align:left;font-size:13px;min-width:0;width:auto}
    table.v2-cards td.vc-baslik{order:1;flex:1 1 40%;color:var(--v2-ink);font-size:14.5px;font-weight:700;overflow-wrap:anywhere}
    table.v2-cards td.vc-tutar{order:2;margin-left:auto;color:var(--v2-ink);font-size:14.5px;font-weight:700;text-align:right;white-space:nowrap}
    table.v2-cards td.vc-bilgi{order:4;color:var(--v2-muted)}
    table.v2-cards td.vc-bilgi::before{content:attr(data-l) " ";font-size:11.5px}
    table.v2-cards td.vc-bilgi[data-l=""]::before{content:none}
    table.v2-cards td.vc-bos,table.v2-cards td.vc-gizle{display:none}
    table.v2-cards td.vc-islem{order:9;margin-left:auto}
    table.v2-cards td.vc-islem:empty{display:none}
    .table-scroll table.v2-cards td:first-child,.table-scroll table.v2-cards th:first-child{position:static;box-shadow:none;background:transparent}
    table.v2-cards tr.vc-wide{display:block}
    table.v2-cards tr.vc-wide>td{text-align:left}
    table.v2-cards tr:hover td{background:transparent}
}

/* 9. Bank accounts on the main panel (owner request, 2026-12-02): press a row, the company, bank and IBAN are copied. */
.bank-panel{margin:0 0 16px;border:1px solid var(--v2-line);border-radius:var(--v2-radius);background:#fff}
.bank-panel-head{display:flex;align-items:center;gap:10px;min-height:50px;padding:0 16px;cursor:pointer;list-style:none;user-select:none}
.bank-panel-head::-webkit-details-marker{display:none}
.bank-panel-head::after{content:"";flex:0 0 auto;width:9px;height:9px;margin-left:4px;border-right:2px solid #6b7887;border-bottom:2px solid #6b7887;transform:rotate(45deg) translateY(-3px);transition:transform var(--v2-fast)}
.bank-panel[open]>.bank-panel-head::after{transform:rotate(-135deg) translateY(-3px)}
.bank-panel-title{font-size:15px;font-weight:700;color:var(--v2-ink)}.bank-panel-hint{margin-left:auto;font-size:12.5px}
.bank-panel[open] .bank-panel-hint{display:none}.bank-panel[open]>.bank-panel-head::after{margin-left:auto}
.bank-panel-note{margin:0;padding:0 16px 10px;font-size:12.5px}
.bank-cols{padding:0 16px 12px}
.bank-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
.bank-company h3{margin:0 0 6px;font-size:12.5px;line-height:1.35;color:var(--v2-ink)}
.bank-row{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:48px;margin:0 0 6px;padding:8px 10px 8px 12px;border:1px solid var(--v2-line);border-radius:10px;background:#fff;color:var(--v2-ink);font:inherit;text-align:left;cursor:pointer;transition:border-color var(--v2-fast),background var(--v2-fast)}
.bank-row:hover{border-color:#c5ced8;background:#f7f9fb}
.bank-text{display:flex;flex-direction:column;gap:1px;min-width:0}.bank-text b{font-size:12.5px}
.bank-iban{font-size:13.5px;font-variant-numeric:tabular-nums;letter-spacing:.2px;overflow-wrap:anywhere}
.bank-copy{flex:0 0 auto;padding:6px 11px;border:1px solid var(--v2-line);border-radius:8px;background:#f3f6f9;font-size:12.5px;font-weight:600;white-space:nowrap}
.bank-row.is-copied{border-color:#1c7a6c;background:#eef8f4}.bank-row.is-copied .bank-copy{border-color:#1c7a6c;background:#1c7a6c;color:#fff}
.bank-row.is-copy-failed .bank-copy{border-color:#c0392b;color:#c0392b}
.v2-copy-area{position:fixed;top:0;left:-9999px;opacity:0}
@media (max-width:900px){.bank-cols{grid-template-columns:minmax(0,1fr)}}
@media (max-width:760px){.bank-panel-head,.bank-panel-note{padding-left:12px;padding-right:12px}.bank-cols{padding:0 12px 10px}.bank-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 8px;padding:8px 8px 9px 11px}.bank-text{display:contents}.bank-text b{grid-column:1;grid-row:1}.bank-copy{grid-column:2;grid-row:1}.bank-iban{grid-column:1 / -1;grid-row:2;font-size:14px}}

/* 10. Short operations in a small window (step 4, v2-pencere.js): the page's form part shown over the list. */
dialog.v2-pencere{width:min(640px,calc(100vw - 32px));max-height:calc(100dvh - 48px);margin:auto;padding:0;border:0;border-radius:16px;background:#fff;color:var(--v2-ink);box-shadow:0 24px 60px rgba(16,44,73,.28);display:none;flex-direction:column;overflow:hidden}
dialog.v2-pencere[open]{display:flex}
dialog.v2-pencere::backdrop{background:rgba(16,44,73,.45)}
.v2-pencere-bas{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 18px 12px;border-bottom:1px solid var(--v2-line)}
.v2-pencere-bas .eyebrow{margin:0 0 2px;font-size:11px}.v2-pencere-bas h2{margin:0;font-size:17px;line-height:1.3}
.v2-pencere-kapat{flex:0 0 auto;width:36px;height:36px;border:1px solid var(--v2-line);border-radius:10px;background:#fff;color:var(--v2-ink);font-size:22px;line-height:1;cursor:pointer}
.v2-pencere-kapat:hover{background:#f3f6f9}
.v2-pencere-govde{flex:1 1 auto;overflow:auto;overscroll-behavior:contain;padding:16px 18px 18px}
.v2-pencere-govde .panel-card{margin:0;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent}
.v2-pencere-govde .panel-card+.panel-card,.v2-pencere-govde form+form{margin-top:16px}
.v2-pencere-govde .form-actions,.v2-pencere-govde .fleet-save{position:sticky;bottom:-18px;margin-bottom:-18px;padding:12px 0 18px;background:#fff}
@media (max-width:760px){
    dialog.v2-pencere{width:100vw;max-width:100vw;max-height:92dvh;margin:auto 0 0;border-radius:18px 18px 0 0}
    .v2-pencere-bas{padding:14px 14px 10px}.v2-pencere-govde{padding:14px 14px calc(16px + env(safe-area-inset-bottom))}
}
/* Notes inside the personnel forms had no style of their own (also on their own pages). */
.label-hint{margin-left:6px;color:var(--v2-muted,#6b7887);font-size:12px;font-weight:500}
.balance-callout{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid var(--v2-line);border-radius:10px;background:#f6f8fa}
.balance-callout span{color:var(--v2-muted,#6b7887);font-size:13px}.balance-callout strong{font-size:15px}
.opening-balance-fix{margin:10px 0}.opening-balance-fix summary{cursor:pointer;color:var(--navy-600);font-size:13px;font-weight:600}.opening-balance-fix form{margin-top:10px}
.v2-pencere-kapat:focus:not(:focus-visible){outline:none}

/* 11. Şirket Giderleri in the v2 frame (from main, 2026-12-03): beside the left menu the expense list was a little wider than its
   box and cut the "Düzenle" buttons; the text columns may now wrap, the amount and the buttons stay on one line. */
@media screen and (min-width:761px){
    .tir-list.expense-table td:not(.num):not(.tir-row-action):not(.tir-card-date){white-space:normal}
    .tir-list.expense-table td.expense-desc{min-width:140px}
}

/* 12. Finishing touches (2026-12-03). The branch heading in the phone list of Personel had a short line above it (the
   desktop row's top border); on a phone it is a plain tinted strip. The report filters (Raporlar, Yedekler) stood as one
   run of text and boxes; they are a grid of labelled boxes now, one column on a phone. */
@media (max-width:760px){
    table.v2-cards>tbody>tr.employee-group-row{display:block;padding:12px 10px 4px;border-top:0}
    table.v2-cards>tbody>tr.employee-group-row::before{content:none}
    .table-scroll table.v2-cards tr.employee-group-row th{display:block;border:0;border-radius:9px;padding:9px 12px;white-space:normal}
}
.form-card .form-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px 14px;align-items:end;margin-bottom:12px}
.form-card .form-grid>label{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:600;color:var(--v2-muted)}
.form-card{margin:0 0 16px;padding:16px;border:1px solid var(--v2-line);border-radius:var(--v2-radius);background:#fff}
.form-card>h2{margin:0 0 6px}
.form-card .form-grid>label>input,.form-card .form-grid>label>select{width:100%;min-width:0;min-height:42px;padding:9px 11px;border:1px solid #dfe2e6;border-radius:8px;background:#fff;color:var(--v2-ink);font:inherit;font-size:14px}
.form-card .button-row{display:flex;flex-wrap:wrap;gap:8px}
@media (max-width:560px){.form-card .form-grid{grid-template-columns:1fr}}
/* The offer, Cari and Bağlantı lists on a phone: the status (Teklif, Onaylandı, Turizm, Çelik Demir) took a third of the
   box as a tall coloured column; it is a thin band on top now and the name, the amount and the buttons use the full width. */
@media (max-width:760px){
    .offer-row{grid-template-columns:minmax(0,1fr);gap:8px;padding:0 0 14px}
    .offer-row>*{grid-column:1;padding-left:14px;padding-right:14px}
    .offer-row>.offer-status{justify-content:flex-start;margin:0;padding:6px 14px;border-right:0;border-bottom:3px solid #b9c0c7;font-size:12px}
    .offer-row.offer-offer>.offer-status{border-right:0;border-bottom-color:#f2c200}
    .offer-row.offer-approved>.offer-status{border-right:0;border-bottom-color:#2fa35a}
    .cari-row.cari-ozsahinler>.offer-status{border-right:0;border-bottom-color:var(--navy-600)}
    .cari-row.cari-os-celik>.offer-status{border-right:0;border-bottom-color:#7b848d}
    .offer-row.offer-cancelled>.offer-status{border-right:0;border-bottom-color:#b9c0c7}
}
/* Fiyat Listesi: the "Toplu fiyat güncelle" button on the dark section heading took the v2 button colours and looked switched off. */
tr.price-section .button.price-bulk-button{border-color:rgba(255,255,255,.55);background:rgba(255,255,255,.12);color:#fff}
tr.price-section .button.price-bulk-button:hover{background:#fff;color:#1b324d;border-color:#fff}
/* Bordro tablosu telefonda da kendi kutusunda kayar: sabit başlık üst çubuğun altında kalmaz (03.12.2026). */
@media (max-width:760px){.table-scroll.payroll-table-scroll{overflow:auto}}
/* Şirket Giderleri ve Şubeler telefonda ortak kutulu liste (03.12.2026): karar seçimi ve şube adı kutusu tam satır. */
@media (max-width:760px){
    table.v2-cards td.expense-choice{order:5;flex:0 0 100%}
    table.v2-cards td.expense-choice select{width:100%;max-width:none;height:44px;font-size:14px}
    table.v2-cards td.expense-choice::before{display:block;margin-bottom:3px}
    table.branch-table.v2-cards td.vc-baslik{flex:0 0 100%}
    table.branch-table.v2-cards .branch-name-form{display:flex;gap:8px;width:100%}
    table.branch-table.v2-cards .branch-name-form input{flex:1 1 auto;min-width:0}
    table.branch-table.v2-cards td.vc-islem{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
    table.v2-cards td .fleet-pill{white-space:nowrap}
}
@media (max-width:760px){table.branch-table.v2-cards .branch-name-form .button{white-space:nowrap}}
