/* Eazyfleet OS — Flottensteuerung */
:root {
  --blue: #89b4e3;
  --blue-deep: #4a7fc1;
  --blue-ink: #2c5282;
  --ink: #16212e;
  --ink-2: #46566a;
  --ink-3: #8295aa;
  --line: #e3eaf2;
  --bg: #f3f6fa;
  --card: #ffffff;
  --green: #15803d;
  --red: #b91c1c;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(22, 33, 46, .05), 0 8px 24px -12px rgba(22, 33, 46, .12);
  --font: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.45; }
a { color: var(--blue-deep); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--ink); }

.app { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }

/* ---------- Sidebar ---------- */
.sidebar {
  background: #0f1b2a;
  color: #c8d6e6;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  padding: 20px 14px;
}
.sidebar .logo { padding: 4px 10px 18px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 14px; }
.sidebar .logo .logo-tile {
  background: var(--blue); border-radius: 12px; padding: 12px 16px;
  display: flex; align-items: center; justify-content: center;
}
.sidebar .logo img { width: 130px; display: block; }
.sidebar .logo .sub { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: #6d84a0; margin-top: 7px; font-weight: 600; }
.nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 10px;
  color: #b7c7da; font-weight: 500; font-size: 14.5px;
  margin-bottom: 2px;
}
.nav a svg { width: 18px; height: 18px; flex: none; opacity: .8; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a.active { background: var(--blue); color: #0f1b2a; font-weight: 700; }
.nav a.active svg { opacity: 1; }
.sidebar .foot { margin-top: auto; padding: 12px 10px 2px; font-size: 12px; color: #5c7288; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar .foot b { color: #93a9c0; display: block; font-size: 12.5px; }

/* ---------- Main ---------- */
.main { min-width: 0; }
.topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 28px; background: rgba(255,255,255,.85); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40;
}
.topbar h1 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.topbar .spacer { flex: 1; }
.topbar .search { position: relative; }
.topbar .search input {
  width: 300px; padding: 9px 13px 9px 36px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg); outline: none;
}
.topbar .search input:focus { border-color: var(--blue); background: #fff; }
.topbar .search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-3); }

.content { padding: 26px 28px 60px; max-width: 1340px; }

.eyebrow { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-deep); font-weight: 700; margin-bottom: 6px; }
.page-head { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h2 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.page-head p { color: var(--ink-2); margin-top: 4px; }
.page-head .actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 14px;
  transition: all .15s;
}
.btn:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: #1f2f42; }
.btn.blue { background: var(--blue); border-color: var(--blue); color: #0f1b2a; }
.btn.danger { color: var(--red); }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: default; }

/* ---------- KPI Grid ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
@media (max-width: 1100px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
.kpi {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow); cursor: pointer; transition: transform .12s;
  position: relative; overflow: hidden;
}
.kpi:hover { transform: translateY(-2px); }
.kpi .num { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.kpi .lbl { color: var(--ink-2); font-size: 13.5px; font-weight: 600; margin-top: 2px; }
.kpi .dot { position: absolute; top: 16px; right: 16px; width: 10px; height: 10px; border-radius: 50%; }
.kpi.hero { background: linear-gradient(135deg, #0f1b2a 0%, #1c3450 100%); }
.kpi.big .num { font-size: 34px; }

.money-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
@media (max-width: 1100px) { .money-grid { grid-template-columns: 1fr; } }
.money {
  border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow);
  background: var(--card); border: 1px solid var(--line);
}
.money.dark { background: #0f1b2a; color: #fff; border-color: #0f1b2a; }
.money .lbl { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--ink-3); }
.money.dark .lbl { color: #7d94ad; }
.money .num { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }
.money .hint { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.money.dark .hint { color: #7d94ad; }
.money .num.pos { color: var(--green); }
.money.dark .num.pos { color: #6ee7a0; }

/* ---------- Cards / Panels ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; }
.panel .panel-head { display: flex; align-items: center; gap: 12px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.panel .panel-head h3 { font-size: 15.5px; font-weight: 700; }
.panel .panel-head .count { background: var(--bg); border-radius: 999px; padding: 2px 10px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.panel .panel-head .actions { margin-left: auto; display: flex; gap: 8px; }
.panel .panel-body { padding: 18px 20px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th {
  text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--line);
  white-space: nowrap; cursor: pointer; user-select: none;
}
table.data th .arrow { font-size: 10px; }
table.data td { padding: 11px 14px; border-bottom: 1px solid #eef2f7; vertical-align: middle; }
table.data tbody tr { cursor: pointer; }
table.data tbody tr:hover { background: #f7fafd; }
table.data td.empty { text-align: center; color: var(--ink-3); padding: 34px; cursor: default; }

.plate {
  display: inline-flex; align-items: center; font-family: var(--mono); font-weight: 700; font-size: 13px;
  border: 1.5px solid var(--ink); border-radius: 5px; padding: 1px 8px 1px 4px; background: #fff; white-space: nowrap;
}
.plate::before { content: 'D'; background: #1d4ed8; color: #fff; font-size: 8px; padding: 3px 3px; border-radius: 2px; margin-right: 6px; }
.mono { font-family: var(--mono); font-size: 12.5px; }

.chip {
  display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap;
}

/* Status-Tabs */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs button {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
}
.tabs button .n { color: var(--ink-3); font-weight: 700; margin-left: 5px; font-size: 12px; }
.tabs button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.tabs button.active .n { color: #9db4cc; }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar input[type="search"] {
  padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; min-width: 280px; outline: none; background: #fff;
}
.toolbar input[type="search"]:focus { border-color: var(--blue); }

/* ---------- Detail-Formulare ---------- */
.field-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px 16px; }
.field label { display: block; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin-bottom: 4px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(137,180,227,.25); }
.field .ro { padding: 9px 11px; background: var(--bg); border-radius: 9px; font-weight: 600; min-height: 38px; }
.field.wide { grid-column: 1 / -1; }
.calc { background: #f0f6ff; border: 1px dashed var(--blue); border-radius: 9px; padding: 9px 11px; font-weight: 800; }
.calc.pos { color: var(--green); }
.calc.neg { color: var(--red); }

/* Fahrzeug-Detail Kopf */
.vhead { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
.vhead .plate.big { font-size: 22px; padding: 4px 14px 4px 8px; border-width: 2.5px; border-radius: 8px; }
.vhead .plate.big::before { font-size: 11px; padding: 5px 4px; }
.vhead h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.vhead .sub { color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.vhead select.status-select { border-radius: 999px; padding: 8px 14px; font-weight: 700; border: 1.5px solid var(--line); }

/* Upload-Slots */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.slot { border: 1.5px dashed var(--line); border-radius: 12px; padding: 13px 14px; background: #fbfdff; }
.slot .slot-label { font-weight: 700; font-size: 13.5px; margin-bottom: 8px; display: flex; align-items: center; gap: 7px; }
.slot .files { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.slot .file-row { display: flex; align-items: center; gap: 7px; font-size: 12.5px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; }
.slot .file-row a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; cursor: pointer; }
.slot .file-row button { border: 0; background: none; color: var(--ink-3); font-size: 14px; padding: 0 2px; }
.slot .file-row button:hover { color: var(--red); }
.slot .add { font-size: 12.5px; font-weight: 700; color: var(--blue-deep); background: none; border: 0; padding: 0; }

/* Formular-Liste */
.formcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.formcard { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; cursor: pointer; transition: all .12s; }
.formcard:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.formcard .t { font-weight: 700; }
.formcard .m { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }

/* Ablage */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.doc-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; display: flex; gap: 12px; align-items: center; }
.doc-card .ic { width: 38px; height: 44px; border-radius: 6px; background: #eef4fb; color: var(--blue-deep); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 10px; flex: none; }
.doc-card .nm { font-weight: 700; font-size: 13.5px; line-height: 1.3; word-break: break-word; }
.doc-card .mt { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.doc-card .del { margin-left: auto; border: 0; background: none; color: var(--ink-3); font-size: 15px; }
.doc-card .del:hover { color: var(--red); }
.doc-card a { cursor: pointer; }

/* Listen im Dashboard */
.mini-list { display: flex; flex-direction: column; }
.mini-row { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid #eef2f7; cursor: pointer; }
.mini-row:last-child { border-bottom: 0; }
.mini-row:hover { background: #f7fafd; }
.mini-row .grow { flex: 1; min-width: 0; }
.mini-row .nm { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-row .sb { font-size: 12.5px; color: var(--ink-3); }
.badge-days { font-size: 12px; font-weight: 800; border-radius: 999px; padding: 3px 10px; background: var(--bg); color: var(--ink-2); white-space: nowrap; }
.badge-days.warn { background: #fef3c7; color: #b45309; }
.badge-days.late { background: #fee2e2; color: #b91c1c; }

/* Toast */
#toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 11px 22px; border-radius: 999px; font-weight: 600; font-size: 14px;
  opacity: 0; pointer-events: none; transition: all .25s; z-index: 300; box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Modal */
.modal-back { position: fixed; inset: 0; background: rgba(15,27,42,.5); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: #fff; border-radius: 16px; padding: 24px; width: 100%; max-width: 520px; box-shadow: 0 30px 80px rgba(0,0,0,.35); max-height: 90vh; overflow: auto; }
.modal h3 { font-size: 18px; font-weight: 800; margin-bottom: 16px; }
.modal .row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

.muted { color: var(--ink-3); }
.hidden { display: none !important; }

/* Inline-Status in der Fahrzeugtabelle */
select.status-inline {
  border: 0; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700;
  cursor: pointer; appearance: none; -webkit-appearance: none; font-family: inherit;
}
select.status-inline:focus { outline: 2px solid var(--blue); }

/* Neuer Vertrag: Chooser */
.chooser { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 900px; margin-bottom: 22px; }
@media (max-width: 900px) { .chooser { grid-template-columns: 1fr; } }
.choose-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 26px; cursor: pointer; box-shadow: var(--shadow); transition: all .15s;
}
.choose-card:hover, .choose-card.drag { border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 12px 34px -14px rgba(22,33,46,.3); }
.choose-card .ch-ic {
  width: 52px; height: 52px; border-radius: 15px; background: #f1f5fa;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.choose-card .ch-ic svg { width: 26px; height: 26px; }
.choose-card .ch-ic.sparkle { background: #fdefe4; }
.choose-card .ch-t { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.choose-card .ch-s { color: var(--ink-2); margin-top: 6px; font-size: 14px; }
.choose-card .ch-hint { color: var(--ink-3); margin-top: 12px; font-size: 13px; }

/* Vertrag-anlegen-Modal */
.link-sec { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.link-sec .link-title { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--ink-3); margin-bottom: 8px; }
.link-sec .radio { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 14px; cursor: pointer; }

/* Analytics */
.stackbar { display: flex; height: 18px; border-radius: 999px; overflow: hidden; background: var(--bg); }
.stackbar .seg { min-width: 3px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.legend .leg { display: inline-flex; align-items: center; gap: 6px; }
.legend .leg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.ana-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.ana-nums .an-num { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.ana-nums .an-lbl { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.hbar-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 10px; align-items: center; margin-bottom: 9px; font-size: 13.5px; }
.hbar-row .hbar-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar { height: 12px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.hbar-fill { height: 100%; background: linear-gradient(90deg, var(--blue-deep), var(--blue)); border-radius: 999px; }
.hbar-val { font-weight: 700; white-space: nowrap; font-size: 12.5px; }
.mchart { display: flex; gap: 12px; align-items: flex-end; padding: 8px 4px 0; }
.mcol { flex: 1; text-align: center; }
.mcol .mbar { background: linear-gradient(180deg, var(--blue), var(--blue-deep)); border-radius: 6px 6px 2px 2px; }
.mcol .mval { font-size: 12.5px; font-weight: 800; margin-bottom: 3px; color: var(--ink-2); min-height: 17px; }
.mcol .mlbl { font-size: 12px; color: var(--ink-3); margin-top: 6px; font-weight: 600; }

/* ---------- Kalender ---------- */
.cal-wrap { display: grid; gap: 18px; }
.cal-wrap.cols-1 { grid-template-columns: minmax(0, 560px); }
.cal-wrap.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .cal-wrap.cols-3 { grid-template-columns: 1fr; max-width: 560px; } }
.cal-month { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.cal-month-title { font-weight: 800; font-size: 15px; margin-bottom: 12px; letter-spacing: -.01em; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-wd { font-size: 10.5px; font-weight: 700; color: var(--ink-3); text-align: center; text-transform: uppercase; letter-spacing: .06em; padding-bottom: 4px; }
.cal-cell {
  position: relative; aspect-ratio: 1; border-radius: 8px; background: #f7fafd;
  font-size: 12px; padding: 4px 5px; min-height: 34px;
}
.cal-cell.empty { background: transparent; }
.cal-cell .d { color: var(--ink-3); font-weight: 600; font-size: 11px; }
.cal-cell.today { outline: 2px solid var(--blue); outline-offset: -2px; background: #eef4fb; }
.cal-cell.today .d { color: var(--blue-deep); }
.cal-cell.has { cursor: pointer; background: #fff; border: 1px solid var(--line); }
.cal-cell.has:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.cnt {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 17px; height: 17px; border-radius: 999px; font-size: 10.5px; font-weight: 800; color: #fff; padding: 0 4px;
}
.cal-cell .cnt { position: absolute; }
.cal-cell .cnt.lief { background: #15803d; bottom: 4px; left: 5px; }
.cal-cell .cnt.rueck { background: #b91c1c; bottom: 4px; right: 5px; }
.cnt.lief { background: #15803d; }
.cnt.rueck { background: #b91c1c; }

/* ---------- Login ---------- */
.login-screen {
  position: fixed; inset: 0; z-index: 500;
  background: linear-gradient(150deg, #0f1b2a 0%, #1d3550 55%, #4a7fc1 130%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  font-family: var(--font);
}
.login-card {
  background: #fff; border-radius: 20px; padding: 36px 38px 32px; width: 100%; max-width: 400px;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.6);
}
.login-logo {
  background: var(--blue); border-radius: 14px; padding: 16px 20px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
}
.login-logo img { width: 170px; display: block; }
.login-card h1 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.login-sub { color: var(--ink-3); font-size: 14px; margin: 4px 0 20px; }
.login-card label { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: var(--ink-3); margin: 12px 0 5px; }
.login-card input[type="email"], .login-card input[type="password"] {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 11px; outline: none; font-size: 15px;
}
.login-card input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(137,180,227,.3); }
.login-remember { display: flex !important; align-items: center; gap: 8px; text-transform: none !important; letter-spacing: 0 !important; font-size: 13.5px !important; font-weight: 600 !important; color: var(--ink-2) !important; margin-top: 14px !important; cursor: pointer; }
.login-error { background: #fee2e2; color: #b91c1c; border-radius: 9px; padding: 9px 13px; font-size: 13.5px; font-weight: 600; margin-top: 12px; }
.login-btn {
  width: 100%; margin-top: 16px; background: var(--ink); color: #fff; border: 0; border-radius: 999px;
  padding: 13px; font-size: 15px; font-weight: 700; cursor: pointer;
}
.login-btn:hover { background: #1f2f42; }
.login-foot { color: #7d94ad; font-size: 12.5px; }
.login-card.shake { animation: shake .35s; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-7px); } 75% { transform: translateX(7px); } }

.logout-btn {
  margin-top: 10px; background: none; border: 1px solid rgba(255,255,255,.15); color: #93a9c0;
  border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 600; cursor: pointer; display: block;
}
.logout-btn:hover { border-color: var(--blue); color: #fff; }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; flex-direction: row; align-items: center; overflow-x: auto; }
  .sidebar .logo { border: 0; margin: 0; padding-right: 16px; }
  .nav { display: flex; }
  .sidebar .foot { display: none; }
  .topbar .search input { width: 160px; }
}

@media print {
  .sidebar, .topbar, .no-print { display: none !important; }
  .app { display: block; }
  .content { padding: 0; max-width: none; }
  body { background: #fff; }
}
