:root {
  --alc-shell-width: 246px;
  --alc-shell-bar-height: 64px;
  --alc-shell-ink: #182338;
  --alc-shell-muted: #52617a;
  --alc-shell-line: #e2e7ef;
  --alc-shell-bg: #f3f5f9;
  --alc-shell-navy: #142038;
  --alc-shell-wine: #8a3152;
}

body { background:var(--alc-shell-bg); color:var(--alc-shell-ink); font-size:15px; }
#alcShellSidebar { display:none; }
#alcShellOverlay[hidden], #alcShellTop[hidden] { display:none !important; }
body.alc-shell-ready > .brandbar {
  position:sticky; top:0; z-index:22; min-height:var(--alc-shell-bar-height);
  margin-left:var(--alc-shell-width); padding:0; background:#fff; color:var(--alc-shell-ink);
  border:0; border-bottom:1px solid var(--alc-shell-line);
}
.alc-shell-ready .brandbar > .brand { display:none; }
.alc-shell-ready > main {
  width:min(calc(100% - var(--alc-shell-width)),1510px); max-width:none;
  margin:0 auto 0 var(--alc-shell-width); padding:25px clamp(17px,3.2vw,40px) 44px;
}
.alc-shell-ready #authBox { display:none; }
.alc-shell-ready #alcShellSidebar {
  display:flex; position:fixed; inset:0 auto 0 0; z-index:30; width:var(--alc-shell-width);
  min-height:0; overflow:auto; flex-direction:column; color:#fff; background:var(--alc-shell-navy);
  padding:23px 15px 15px;
}
.alc-shell-brand { display:flex; align-items:center; gap:10px; margin:0 8px 23px; }
.alc-shell-mark {
  display:grid; place-items:center; flex:none; width:41px; height:41px; border-radius:10px;
  font-weight:850; letter-spacing:-.065em; background:#963a5d; box-shadow:inset 0 0 0 1px #ffffff28;
}
.alc-shell-brand strong { display:block; color:white; font-size:16px; letter-spacing:-.02em; }
.alc-shell-brand small { display:block; color:#bbc7db; font-size:11px; }
#alcShellSidebar #moduleNav {
  display:flex; flex-direction:column; flex-wrap:nowrap; gap:14px;
  margin:0; padding:0; background:none; border:0; border-radius:0;
}
.alc-nav-group { display:grid; gap:2px; }
.alc-nav-heading {
  margin:0 9px 3px; font-size:10px; font-weight:770; letter-spacing:.075em;
  text-transform:uppercase; color:#aebbd3;
}
#alcShellSidebar #moduleNav button {
  display:flex; align-items:center; gap:9px; width:100%; min-width:0; min-height:38px;
  margin:0; padding:7px 9px; font-size:13px; font-weight:570; line-height:1.18;
  text-align:left; color:#e0e7f3; background:transparent; border:1px solid transparent; border-radius:8px;
}
#alcShellSidebar #moduleNav button[hidden] { display:none !important; }
#alcShellSidebar #moduleNav button:hover { background:#22304b; color:#fff; }
#alcShellSidebar #moduleNav button[aria-current=page] { background:#2b3a59; border-color:#415171; color:#fff; font-weight:740; }
.alc-nav-icon { width:19px; flex:none; text-align:center; color:#b5c2d9; font:15px/1 ui-monospace,monospace; }
#moduleNav button[aria-current=page] .alc-nav-icon { color:#f1b3cd; }
.alc-shell-account { margin-top:auto; padding:13px 3px 1px; display:flex; align-items:center; gap:7px; color:#dce5f1; }
.alc-shell-account[hidden] { display:none; }
#alcShellAccountLabel { font-size:11px; overflow-wrap:anywhere; padding:5px 0; }
#alcShellInitial { background:#394564; display:grid; place-items:center; width:28px; height:28px; flex:none; border-radius:50%; font-weight:780; font-size:10px; }
.alc-shell-top { display:flex; align-items:center; justify-content:space-between; gap:13px; min-height:var(--alc-shell-bar-height); padding:0 clamp(16px,3vw,40px); }
.alc-shell-context { display:flex; align-items:center; gap:10px; min-width:0; color:var(--alc-shell-muted); font-size:13px; }
#alcShellCurrent { color:var(--alc-shell-ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#alcShellMenu { display:none; }
#alcShellSession { display:flex; align-items:center; gap:6px; flex:none; }
#alcShellSession #alcShellHome[hidden] { display:none; }
#alcShellSession #alcShellHome[aria-current=page] { background:#f8edf2; color:#702744; border-color:#e7d3dd; }
#alcShellSession :is(#logout,#alcShellHome) { border:1px solid var(--alc-shell-line); color:var(--alc-shell-ink); background:white; white-space:nowrap; font-size:12px; padding:7px 10px; }
#alcShellOverlay { display:none; }

.alc-shell-ready #sharedOverview {
  --alc-overview-gap:15px;
  grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); gap:var(--alc-overview-gap); color:var(--alc-shell-ink);
}
.alc-shell-ready #sharedOverview > * { grid-column:1/-1; min-width:0; scroll-margin-top:calc(var(--alc-shell-bar-height) + 14px); }
.alc-shell-ready #sharedOverview > h1 { order:-30; color:var(--alc-shell-ink); font-size:clamp(1.95rem,4vw,2.55rem); letter-spacing:-.055em; padding:0 0 1px; }
.alc-shell-ready #sharedOverview > #alcPaymentOverview { order:-20; }
.alc-shell-ready #sharedOverview > #sharedWorkTracking { order:-12; grid-column:1; }
.alc-shell-ready #sharedOverview > #alcPlanToday { order:-11; grid-column:2; }
.alc-shell-ready #sharedOverview > #sharedWorkChart { order:-10; grid-column:1; }
.alc-shell-ready #sharedOverview > #sharedCalendarLaw { order:-9; grid-column:2; }
.alc-shell-ready #sharedOverview > #sharedFinanceCard { order:0; }
.alc-shell-ready #sharedOverview > #sharedWorkSites { order:6; }
.alc-shell-ready #sharedOverview > #teamAdmin { order:10; }
.alc-shell-ready #sharedOverview>section, .alc-shell-ready #sharedCalendarLaw>section, .alc-shell-ready #alcPayments>section {
  border:1px solid var(--alc-shell-line); border-radius:15px; background:#fff; box-shadow:0 2px 5px #25365305;
}
.alc-shell-ready #sharedOverview h2 { letter-spacing:-.024em; }
.alc-shell-ready #sharedOverview .summary-head, .alc-shell-ready #sharedOverview .alc-payment-head { gap:8px; flex-wrap:wrap; }
.alc-shell-ready #sharedCalendar { max-height:19rem; overflow:auto; }
.alc-shell-ready #alcPaymentOverview .alc-payment-metrics {
  grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px;
}
.alc-shell-ready #alcPaymentOverview .alc-payment-metrics button {
  background:#fff; border:1px solid var(--alc-shell-line); color:var(--alc-shell-muted); font-weight:700;
  min-width:0; padding:12px; text-align:left; border-radius:12px; display:block;
}
.alc-shell-ready #alcPaymentOverview .alc-payment-metrics button:nth-child(2) { background:#edf7f1; border-color:#dcefe3; color:#205a47; }
.alc-shell-ready #alcPaymentOverview .alc-payment-metrics button:nth-child(3) { background:#fff5e2; border-color:#f5e6c7; color:#75490e; }
.alc-shell-ready #alcPaymentOverview .alc-payment-metrics button:hover { border-color:#a96b88; }
.alc-shell-ready #alcPaymentOverview .alc-payment-metrics button strong {
  color:var(--alc-shell-ink); margin-top:4px; font-size:clamp(.98rem,2vw,1.55rem); letter-spacing:-.035em; overflow-wrap:anywhere;
}
.alc-shell-ready #alcPaymentOverview > p:not([id]) { margin-top:10px; }
.alc-shell-ready #alcPaymentOverview > p:not([id]) button { background:#f8edf2; color:#702744; border-color:#e7d3dd; text-align:left; }
.alc-shell-ready #sharedOverview .alc-payment-head > button { border-color:#e7d3dd; color:#702744; }
.alc-shell-ready #workspace > :is(#sharedFinance,#meetingModule,#reportsPage,#alcPlanner,#lawModule,#homePage,#alcPayments){min-width:0;}

.alc-shell-dedicated[hidden] { display:none !important; }
.alc-shell-dedicated { min-width:0; }
.alc-shell-dedicated > h1 {
  color:var(--alc-shell-ink); font-size:clamp(1.9rem,4vw,2.55rem); letter-spacing:-.055em; margin:0 0 15px;
}
.alc-shell-dedicated section { border-color:var(--alc-shell-line); box-shadow:0 2px 5px #25365305; }
#alcShellFleetCards:has(.alc-seyir-card:not([data-alc-seyir]):not([hidden])) [data-alc-seyir] { display:none; }

@media(max-width:1100px) { :root { --alc-shell-width:215px; } }
@media(max-width:950px) {
  .alc-shell-ready #sharedOverview { grid-template-columns:minmax(0,1fr); }
  .alc-shell-ready #sharedOverview > :is(#sharedWorkTracking,#alcPlanToday,#sharedWorkChart,#sharedCalendarLaw) { grid-column:1/-1; }
}
@media(max-width:760px) {
  :root { --alc-shell-bar-height:57px; }
  body.alc-shell-ready > .brandbar { margin-left:0; }
  .alc-shell-ready > main { width:100%; max-width:none; margin:0; padding-top:17px; }
  .alc-shell-ready #alcShellSidebar {
    width:min(87vw,270px); visibility:hidden; transform:translateX(-105%); transition:transform .18s ease;
    box-shadow:0 10px 35px #15213f36;
  }
  .alc-shell-ready.alc-shell-menu-open #alcShellSidebar { visibility:visible; transform:translateX(0); }
  .alc-shell-ready.alc-shell-menu-open #alcShellOverlay { display:block; position:fixed; inset:0; padding:0; border:0; border-radius:0; background:#0f1c32a0; z-index:24; }
  #alcShellSidebar #moduleNav button { min-height:41px; }
  #alcShellMenu { display:block; flex:none; background:#fff; border:1px solid var(--alc-shell-line); padding:5px 9px; font-size:17px; line-height:1.25; }
  .alc-shell-top { padding:0 13px; }
  .alc-shell-context { gap:8px; }
  .alc-shell-ready #alcPaymentOverview .alc-payment-metrics { gap:6px; }
  .alc-shell-ready #alcPaymentOverview .alc-payment-metrics button { padding:8px; font-size:12px; }
  .alc-shell-ready #sharedOverview h1 { font-size:1.85rem; }
}
@media(max-width:400px) {
  .alc-shell-app,.alc-shell-slash { display:none; }
  .alc-shell-ready #alcPaymentOverview .alc-payment-metrics { grid-template-columns:1fr; }
  .alc-shell-ready #alcPaymentOverview .alc-payment-metrics button {
    display:flex; align-items:center; justify-content:space-between; gap:10px;
  }
  .alc-shell-ready #alcPaymentOverview .alc-payment-metrics button strong { margin:0; }
}
@media(prefers-reduced-motion:reduce) { #alcShellSidebar { transition:none !important; } }
