/* MyBus v394 — visual-only family modernization.
   Every selector is scoped to one of the four product surfaces. */

:where(.central-management,.mybus-operations-reference,.mybus-customer-reference){
  --family-accent:#078565;
  --family-accent-strong:#05644d;
  --family-accent-soft:#e8f7f1;
  --family-navy:#13233b;
  --family-ink:#10271f;
  --family-muted:#667a72;
  --family-line:#d5e4de;
  --family-surface:#fff;
  --family-canvas:#f3f7f5;
  --family-danger:#b63b48;
  --family-radius-md:13px;
  --family-shadow-sm:0 5px 16px rgba(8,52,41,.07);
  --family-focus:0 0 0 3px rgba(7,133,101,.18);
}
:where(.central-management,.mybus-operations-reference,.mybus-customer-reference) button{transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease}
:where(.central-management,.mybus-operations-reference,.mybus-customer-reference) button:not(:disabled):active{transform:translateY(1px)}
:where(.central-management,.mybus-operations-reference,.mybus-customer-reference) :is(input,select,textarea){transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease}

/* 1 — Merkezi Yönetim */
.central-management{background:linear-gradient(180deg,#f7faf9 0,#eef4f1 100%)}
.central-management .cm-header{border-bottom-color:#d8e6e0;box-shadow:0 2px 14px rgba(8,48,38,.045)}
.central-management .cm-sidebar{background:linear-gradient(180deg,#062d24 0%,#0b372d 100%);box-shadow:8px 0 28px rgba(5,35,28,.10)}
.central-management .cm-nav-button{min-height:42px;border:1px solid transparent;border-radius:11px}
.central-management .cm-nav-button:hover{border-color:#ffffff16;background:#ffffff12}
.central-management .cm-nav-button[aria-current=page]{background:linear-gradient(135deg,#078565,#0a9874);box-shadow:0 8px 18px rgba(1,27,21,.22)}
.central-management :is(.cm-card,.cm-dashboard-card,.cm-panel,.cm-organization section,.cm-personnel-layout>section,.cm-fleet-layout>section){border-color:var(--family-line);border-radius:var(--family-radius-md);box-shadow:var(--family-shadow-sm)}
.central-management :is(.cm-network-primary-v362,.cm-network-secondary-v362,.cm-range button,.cm-personnel button,.cm-fleet button,.cm-authz button){min-height:42px;border-radius:11px;font-weight:800}
.central-management .cm-network-primary-v362{border-color:var(--family-accent);background:linear-gradient(135deg,#078565,#066e56);box-shadow:0 8px 18px rgba(7,133,101,.18)}
.central-management .cm-network-primary-v362:hover:not(:disabled){background:linear-gradient(135deg,#079873,#057057);box-shadow:0 11px 24px rgba(7,133,101,.23);transform:translateY(-1px)}
.central-management .cm-network-secondary-v362:hover:not(:disabled){border-color:#65b99e;background:var(--family-accent-soft);box-shadow:var(--family-shadow-sm)}
.central-management .cm-network-editor-v381{border:1px solid #c8ddd5;border-radius:22px;box-shadow:0 32px 100px rgba(4,34,26,.34)}
.central-management .cm-network-editor-v381>header{padding:23px 26px;background:linear-gradient(135deg,#f9fdfb,#e5f6ef)}
.central-management .cm-network-editor-actions-v381{margin-top:5px;padding-top:17px;border-top:1px solid #e0ebe6}
.central-management :is(.cm-network-card-v362,.cm-network-summary-v362 article,.cm-network-section-v362){border-color:#d2e4dc;box-shadow:0 8px 24px rgba(7,55,42,.055)}

/* 2 — Merkez Operasyon */
.mybus-operations-reference:not(.carrier-operations-v318) .mega{overflow:hidden;border:1px solid #c9dcd5;border-radius:0 0 16px 16px;box-shadow:0 18px 42px rgba(4,36,28,.18)}
.mybus-operations-reference:not(.carrier-operations-v318) .mega button{min-height:38px;border-radius:9px;font-weight:750}
.mybus-operations-reference:not(.carrier-operations-v318) .mega button:hover{background:var(--family-accent-soft);color:var(--family-accent-strong)}
.mybus-operations-reference:not(.carrier-operations-v318) .dialog{display:flex;overflow:hidden;flex-direction:column;border:1px solid #bfd5cc;border-radius:20px;background:var(--family-surface);box-shadow:0 30px 90px rgba(5,35,28,.34)}
.mybus-operations-reference:not(.carrier-operations-v318) .dialog>header{min-height:62px;padding:0 18px 0 22px;border:0;background:linear-gradient(135deg,#10233b,#162d49)}
.mybus-operations-reference:not(.carrier-operations-v318) .dialog>header h2{color:#fff}
.mybus-operations-reference:not(.carrier-operations-v318) .dialog h2{color:#fff;font-size:15px;font-weight:850;letter-spacing:-.01em}
.mybus-operations-reference:not(.carrier-operations-v318) .dialog header button{display:grid;place-items:center;width:38px;height:38px;border:1px solid #ffffff2b;border-radius:11px;background:#ffffff0d}
.mybus-operations-reference:not(.carrier-operations-v318) .dialog header button:hover{background:#fff;color:var(--family-navy)}
.mybus-operations-reference:not(.carrier-operations-v318) .dialog>header,.mybus-operations-reference:not(.carrier-operations-v318) .dialog>footer{flex:0 0 auto}
.mybus-operations-reference:not(.carrier-operations-v318) .dialog #modalBody{flex:1 1 auto;min-height:0;padding:18px;overflow-x:auto;overflow-y:scroll;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-color:#719d8e #dce9e4;scrollbar-width:auto;background:linear-gradient(180deg,#f8fbfa,#f2f7f5)}
.mybus-operations-reference:not(.carrier-operations-v318) .dialog #modalBody::-webkit-scrollbar{width:12px;height:12px}
.mybus-operations-reference:not(.carrier-operations-v318) .dialog #modalBody::-webkit-scrollbar-track{background:#dce9e4}
.mybus-operations-reference:not(.carrier-operations-v318) .dialog #modalBody::-webkit-scrollbar-thumb{border:3px solid #dce9e4;border-radius:999px;background:#719d8e}
.mybus-operations-reference:not(.carrier-operations-v318) .dialog>footer{display:flex;justify-content:flex-end;gap:8px;padding:12px 16px;border-top:1px solid var(--family-line);background:#fff}
.mybus-operations-reference:not(.carrier-operations-v318) .dialog footer button,.mybus-operations-reference:not(.carrier-operations-v318) .dialog .toolbar button,.mybus-operations-reference:not(.carrier-operations-v318) .dialog .module-filter button{min-height:38px;padding:0 14px;border:1px solid #bcd2ca;border-radius:10px;background:#fff;color:#174438;font-weight:800}
.mybus-operations-reference:not(.carrier-operations-v318) .dialog footer .primary,.mybus-operations-reference:not(.carrier-operations-v318) .dialog .toolbar button:first-child,.mybus-operations-reference:not(.carrier-operations-v318) .dialog .module-filter button{border-color:var(--family-accent);background:linear-gradient(135deg,#078565,#066e56);color:#fff;box-shadow:0 7px 16px rgba(7,133,101,.16)}
.mybus-operations-reference:not(.carrier-operations-v318) .dialog :is(.toolbar,.module-filter){display:flex;align-items:center;gap:9px;padding:11px;border:1px solid #d5e4de;border-radius:13px;background:#fff}
.mybus-operations-reference:not(.carrier-operations-v318) .dialog .toolbar+input,.mybus-operations-reference:not(.carrier-operations-v318) .dialog>div>input[type=search],.mybus-operations-reference:not(.carrier-operations-v318) .dialog #modalBody>input{width:100%;min-height:42px;margin:10px 0 0;padding:0 13px;border:1px solid #c8d9d2;border-radius:10px;background:#fff}
.mybus-operations-reference:not(.carrier-operations-v318) .dialog table{width:100%;margin-top:10px;border:1px solid #d4e2dd;border-collapse:separate;border-spacing:0;border-radius:13px;background:#fff;overflow:hidden;font-size:11px}
.mybus-operations-reference:not(.carrier-operations-v318) .dialog th{height:40px;padding:9px 10px;border:0;border-bottom:1px solid #cfe0d9;background:#edf6f2;color:#516d63;font-size:9px;font-weight:900;letter-spacing:.065em;text-transform:uppercase}
.mybus-operations-reference:not(.carrier-operations-v318) .dialog td{height:45px;padding:8px 10px;border:0;border-bottom:1px solid #e4ede9;color:#183d33;vertical-align:middle}
.mybus-operations-reference:not(.carrier-operations-v318) .dialog tbody tr:last-child td{border-bottom:0}
.mybus-operations-reference:not(.carrier-operations-v318) .dialog tbody tr:hover td{background:#f0f9f5}
.mybus-operations-reference:not(.carrier-operations-v318) .dialog td button{min-height:31px;padding:0 9px;border:1px solid #bad2c9;border-radius:8px;background:#f7fbf9;color:#0b684f;font-weight:800}
.mybus-operations-reference:not(.carrier-operations-v318) .dialog td button:hover:not(:disabled){border-color:#75b9a2;background:#e7f7f0;box-shadow:0 4px 12px rgba(7,83,63,.12)}
.mybus-operations-reference:not(.carrier-operations-v318) .dialog td button+button{border-color:#e4c4c8;background:#fff7f7;color:var(--family-danger)}
.mybus-operations-reference:not(.carrier-operations-v318) .dialog .formgrid{gap:13px}
.mybus-operations-reference:not(.carrier-operations-v318) .dialog .formgrid label{gap:7px;color:#294d43;font-weight:800}
.mybus-operations-reference:not(.carrier-operations-v318) .dialog .formgrid :is(input,select,textarea){min-height:43px;padding:9px 11px;border:1px solid #bfd3cb;border-radius:9px;background:#fff;color:#15382f}
.mybus-operations-reference:not(.carrier-operations-v318) .dialog :is(input,select,textarea):focus{border-color:var(--family-accent);box-shadow:var(--family-focus);outline:0}
.mybus-operations-reference:not(.carrier-operations-v318) .price-editor-section-v394{padding:15px 17px;border:1px solid #cde2da;border-radius:13px;background:linear-gradient(135deg,#eff9f5,#f9fcfb)}
.mybus-operations-reference:not(.carrier-operations-v318) .price-editor-section-v394 h3,.mybus-operations-reference:not(.carrier-operations-v318) .price-return-panel-v394 h3{margin:0;color:#0a4f3d;font-size:15px}
.mybus-operations-reference:not(.carrier-operations-v318) .price-editor-section-v394 p,.mybus-operations-reference:not(.carrier-operations-v318) .price-return-panel-v394>p{margin:6px 0 0;color:#61786f;font-size:11px;line-height:1.5}
.mybus-operations-reference:not(.carrier-operations-v318) .price-return-toggle-v394{display:flex!important;grid-column:1/-1;flex-direction:row!important;align-items:center;gap:10px!important;min-height:48px;padding:11px 14px;border:1px solid #bcd8cd;border-radius:12px;background:#f2faf6;color:#0a5d47!important;cursor:pointer}
.mybus-operations-reference:not(.carrier-operations-v318) .price-return-toggle-v394 input{width:19px!important;min-height:19px!important;margin:0;accent-color:#078565}
.mybus-operations-reference:not(.carrier-operations-v318) .price-return-panel-v394{padding:16px;border:1px solid #93cbb7;border-radius:14px;background:linear-gradient(145deg,#edf9f4,#fff)}
.mybus-operations-reference:not(.carrier-operations-v318) .price-return-panel-v394[hidden]{display:none!important}
.mybus-operations-reference:not(.carrier-operations-v318) .price-return-grid-v394{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}
.central-management .cm-network-return-price-v394{display:grid;grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:4px;padding:16px;border:1px solid #99cdbb;border-radius:14px;background:linear-gradient(145deg,#edf9f4,#fff)}
.central-management .cm-network-return-price-v394[hidden]{display:none!important}.central-management .cm-network-return-price-v394>:is(.cm-network-kicker-v362,h4){grid-column:1/-1}.central-management .cm-network-return-price-v394 h4{margin:0;color:#0b4d3c;font-size:15px}

/* 3 — Taşıyıcı Operasyon */
.carrier-operations-v318 .carrier-module-modal{background:rgba(6,29,23,.64);backdrop-filter:blur(6px)}
.carrier-operations-v318 .carrier-module-dialog{border:1px solid #bdd6cc;border-radius:20px;box-shadow:0 32px 96px rgba(3,29,22,.38)}
.carrier-operations-v318 .carrier-module-dialog>header{min-height:64px;padding:0 18px 0 22px;background:linear-gradient(135deg,#10233b,#17314e)}
.carrier-operations-v318 .carrier-module-dialog>header h2{color:#fff;font-size:16px;font-weight:850}
.carrier-operations-v318 .carrier-module-dialog>header button{border:1px solid #ffffff2c;border-radius:11px;background:#ffffff0c}
.carrier-operations-v318 .carrier-module-body{padding:20px;background:linear-gradient(180deg,#fbfdfc,#f1f7f4)}
.carrier-operations-v318 .carrier-module-dialog>footer{gap:8px;padding:12px 16px;background:#fff}
.carrier-operations-v318 .carrier-module-dialog>footer button{min-height:40px;border-radius:10px}
.carrier-operations-v318 .carrier-price-card-v393{border-color:#cfe2da;border-radius:17px;box-shadow:0 8px 24px rgba(4,55,43,.07);transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}
.carrier-operations-v318 .carrier-price-card-v393:hover{border-color:#8bc7b3;box-shadow:0 14px 34px rgba(4,55,43,.11);transform:translateY(-1px)}
.carrier-operations-v318 .carrier-route-summary-v390 article{border-radius:14px;box-shadow:0 7px 18px rgba(5,58,44,.055)}
.carrier-operations-v318 :is(.carrier-passenger-table-wrap,.carrier-module-body) table{border:1px solid #d3e3dd;border-collapse:separate;border-spacing:0;border-radius:13px;background:#fff;overflow:hidden}
.carrier-operations-v318 .carrier-module-body th{padding:10px 11px;border:0;border-bottom:1px solid #cfe0d9;background:#edf6f2;color:#526d63;font-size:9px;font-weight:900;letter-spacing:.06em;text-transform:uppercase}
.carrier-operations-v318 .carrier-module-body td{padding:11px;border:0;border-bottom:1px solid #e3ede9;color:#183e33}
.carrier-operations-v318 .carrier-module-body tbody tr:last-child td{border-bottom:0}
.carrier-operations-v318 .carrier-module-body tbody tr:hover td{background:#f0f9f5}
.carrier-operations-v318 .carrier-module-body button:not(.carrier-operation-action-v379){border-radius:9px}

/* 4 — Müşteri Web */
.mybus-customer-reference{background:linear-gradient(180deg,#fbfdfc 0,#f3f7f4 100%)}
.mybus-customer-reference :is(.primary,.outline-btn,.trip-type,.filter-chip,.result-date-actions button,.date-quick-actions button){border-radius:11px;font-weight:850}
.mybus-customer-reference .primary{background:linear-gradient(135deg,#0d8b69,#076a51)!important;border-color:#0b7f61!important;box-shadow:0 9px 20px rgba(7,113,85,.20)}
.mybus-customer-reference .primary:hover:not(:disabled){background:linear-gradient(135deg,#0a9c75,#05634b)!important;box-shadow:0 12px 26px rgba(7,113,85,.25);transform:translateY(-1px)}
.mybus-customer-reference .booking{border:1px solid #dce9e4;border-radius:21px!important;box-shadow:0 22px 60px rgba(17,55,43,.12)!important}
.mybus-customer-reference .journey-card{border-color:#d7e5df;border-radius:17px!important;box-shadow:0 8px 24px rgba(13,58,44,.065);transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.mybus-customer-reference .journey-card:hover{border-color:#99cbb9;box-shadow:0 16px 38px rgba(13,58,44,.11);transform:translateY(-2px)}
.mybus-customer-reference :is(.passenger-card,.payment-card,.review-card,.query-card,.ticket-query-card,.account-modal-card,.modal-card){border:1px solid #d7e5df;border-radius:18px;box-shadow:0 16px 44px rgba(12,52,40,.10)}
.mybus-customer-reference .modal-overlay{background:rgba(7,29,23,.62);backdrop-filter:blur(6px)}
.mybus-customer-reference .account-tabs{gap:5px;padding:5px;border:1px solid #dbe8e3;border-radius:12px;background:#f1f7f4}
.mybus-customer-reference .account-tabs button{min-height:38px;padding:0 13px;border:0;border-radius:9px;color:#536d63}
.mybus-customer-reference .account-tabs button.active{border:0;background:#fff;color:#087056;box-shadow:0 4px 12px rgba(9,67,51,.10)}
.mybus-customer-reference table{border:1px solid #d8e5e0;border-collapse:separate;border-spacing:0;border-radius:13px;background:#fff;overflow:hidden}
.mybus-customer-reference th{border-bottom:1px solid #d2e1db;background:#eef6f2;color:#5c7169;font-size:9px;font-weight:900;letter-spacing:.055em;text-transform:uppercase}
.mybus-customer-reference td{border-bottom-color:#e4ede9}
.mybus-customer-reference tbody tr:last-child td{border-bottom:0}
.mybus-customer-reference tbody tr:hover td{background:#f2f9f6}

@media(max-width:760px){
  .mybus-operations-reference:not(.carrier-operations-v318) .dialog{min-width:0;width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}
  .mybus-operations-reference:not(.carrier-operations-v318) .dialog #modalBody{padding:12px}
  .mybus-operations-reference:not(.carrier-operations-v318) .dialog :is(.toolbar,.module-filter){align-items:stretch;flex-direction:column}
  .carrier-operations-v318 .carrier-module-body{padding:13px}
  .mybus-operations-reference:not(.carrier-operations-v318) .price-return-grid-v394,.central-management .cm-network-return-price-v394{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){:where(.central-management,.mybus-operations-reference,.mybus-customer-reference) *{transition-duration:.01ms!important}}
