/* AutoFlow W005. Presentation only; scope never reaches another module. */
body.af-w005 {
  --bg-body:#19191c; --glass-bg:#232326; --glass-border:#3b3b42;
  --text-main:#f6f5f3; --text-muted:#b7b6c0; --accent-color:#ffab05;
  --af-header:#151518; --af-dialog:#242427; --af-border:#3b3b42;
  color-scheme:dark; background:#19191c; background-image:none; animation:none;
  font-family:Inter,'Segoe UI',Arial,sans-serif; line-height:1.45;
}
.af-w005 * { scrollbar-color:#56545d #1b1b1f; }
.af-w005 ::-webkit-scrollbar-track { background:#1b1b1f; }
.af-w005 ::-webkit-scrollbar-thumb { background:#56545d; }
.af-w005 ::-webkit-scrollbar-thumb:hover { background:#a9751d; }
.af-w005 :is(button,input,select,textarea,a,[tabindex]):focus-visible {
  outline:2px solid #ffca62; outline-offset:3px;
}
.af-w005 button { font-family:inherit; }
.af-w005 .sidebar {
  width:272px; height:100dvh; padding:22px 16px 16px; overflow-y:auto;
  background:#151518; border-right:1px solid #35343b; backdrop-filter:none;
}
.af-w005 .logo { display:block; padding:0; margin-bottom:22px; }
.af-w005 .af-brand-home { display:block; width:216px; max-width:100%; border-radius:8px; }
.af-w005 .af-module-logo { display:block; width:216px; height:57px; max-width:100%; object-fit:contain; }
.af-w005 .af-brand-signature {
  display:flex; align-items:center; gap:14px; padding:14px 2px 16px;
  margin-top:10px; border-bottom:1px solid #3b3037;
}
.af-w005 .logo img.mokadi-logo { width:74px; height:54px; object-fit:contain; opacity:1; }
.af-w005 .af-brand-signature span { font-size:11px; line-height:1.7; letter-spacing:.06em; color:#b7b6c0; }
.af-w005 .af-brand-signature strong { color:#f6f5f3; font-size:12px; font-weight:600; }
.af-w005 .nav-links { gap:6px; }
.af-w005 .nav-item {
  width:100%; text-align:left; min-height:44px; padding:11px 12px;
  background:transparent; border:1px solid transparent; color:#c5c3cd;
  font-size:13px; font-weight:550; line-height:1.4; transition:background .15s,border-color .15s;
}
.af-w005 .nav-item svg { width:18px; height:18px; flex-shrink:0; }
.af-w005 .nav-item:hover { background:#28272c; border-color:#44414a; color:#f6f5f3; }
.af-w005 .nav-item.active { color:#ffbe3c; background:#ffab0514; border-color:#a7762c; box-shadow:inset 3px 0 #ffab05; }
.af-w005 .sidebar-profile { margin-top:22px; padding:10px; gap:9px; background:#232326; border-color:#3b3b42; }
.af-w005 .profile-avatar { width:34px; height:34px; background:#ffab05; color:#211a0c; font-size:12px; border-color:#715729; }
.af-w005 .profile-name { font-size:12px; color:#f6f5f3; }
.af-w005 .profile-role { color:#b7b6c0; font-size:11px; }
.af-w005 :is(.back-to-portal,.profile-logout-btn) { min-width:32px; min-height:34px; color:#c5c3cd; border-radius:7px; }
.af-w005 .main-content { min-width:0; margin-left:272px; padding:30px 30px 90px; }
.af-w005 main>header { min-height:86px; margin-bottom:24px; padding-bottom:20px; border-bottom:1px solid #3b3b42; }
.af-w005 main>header h1 { font-size:27px; line-height:1.25; font-weight:650; letter-spacing:-.03em; color:#f6f5f3; }
.af-w005 main>header p { font-size:13px; }
.af-w005 main>header .af-eyebrow { color:#ffbf43; font-size:10px; letter-spacing:.14em; text-transform:uppercase; margin-bottom:10px; font-weight:650; }
.af-w005 :is(.vehicles-grid,.vehicles-grid--8,.vehicles-grid--wide) {
  grid-template-columns:repeat(auto-fill,minmax(216px,1fr)); gap:16px; align-items:start;
}
.af-w005 .vehicle-card { background:#232326; border-color:#404047; border-radius:12px; backdrop-filter:none; transition:border-color .15s,box-shadow .15s; }
.af-w005 .vehicle-card:hover { transform:none; border-color:#ad7b33; box-shadow:0 8px 24px #0003; }
.af-w005 .v-header-img { background-color:#1d1d21; }
.af-w005 .v-header-overlay { background:linear-gradient(to top,#17171bf2,transparent); }
.af-w005 .v-body { padding:12px; gap:8px; }
.af-w005 .v-title { color:#f6f5f3; font-size:14px; font-weight:650; }
.af-w005 .v-meta { font-size:11px; color:#b7b6c0; border-color:#424148; gap:6px; flex-wrap:wrap; }
.af-w005 .v-footer { background:#1e1e22; padding:10px 12px; border-color:#3b3b42; }
.af-w005 .caretaker { color:#c6c3cd; }
.af-w005 .avatar-circle { background:#ffab0526; color:#ffca62; }
.af-w005 .vehicle-card.vehicle-wide .caretaker-pill { background:#1d1d21; border-color:#3b3b42; }
.af-w005 .vehicle-card.vehicle-wide .caretaker-pill .avatar-circle { background:#ffab0526; border-color:#8a652c; }
.af-w005 .progress-label { color:#c5c3cd; gap:6px; }
.af-w005 .date-secondary { color:#aaa6b3; }
.af-w005 .history-btn { min-height:32px; padding:6px 8px; font-size:11px; line-height:1.3; background:#303035; color:#e0dde5; border-color:#51505b; border-radius:7px; }
.af-w005 .history-btn:hover { color:#ffca62; background:#3c3427; border-color:#a47732; }
.af-w005 .history-btn.danger { background:#53132530; border-color:#a54359; color:#ffc0c8; }
.af-w005 .history-btn.danger:hover { background:#531325; color:#ffe4e8; }
.af-w005 :is(.btn-save,.fab,.lock-unlock-btn) { background:#ffab05; color:#211a0c; font-weight:700; box-shadow:none; }
.af-w005 :is(.btn-save,.fab,.lock-unlock-btn):hover { background:#ffc354; color:#17130b; }
.af-w005 .fab { bottom:24px; right:24px; width:52px; height:52px; border-radius:15px; box-shadow:0 8px 22px #0005; }
.af-w005 .modal-overlay { padding:18px; background:#08080bd6; backdrop-filter:blur(4px); }
.af-w005 .modal-card { background:#242427; color:#f6f5f3; border-color:#51505b; border-top:2px solid #a8752b; border-radius:14px; padding:24px; max-height:calc(100dvh - 36px); box-shadow:0 24px 72px #0008; min-width:0; }
.af-w005 .modal-card :is(h2,h3) { line-height:1.35; }
.af-w005 .modal-card h2 { font-size:21px; color:#f6f5f3; font-weight:650; padding-bottom:14px; border-bottom:1px solid #46434d; }
.af-w005 .modal-card h3 { color:#d5d1da; }
.af-w005 .form-group label { color:#c9c5d1; font-size:12px; margin-bottom:6px; }
.af-w005 :is(input,select,textarea) { font:inherit; color:#f6f5f3; accent-color:#ffab05; min-width:0; }
.af-w005 :is(input:not([type=checkbox]):not([type=radio]),select,textarea) {
  background:#19191c!important; border:1px solid #55525e!important; border-radius:7px; min-height:40px;
  padding:9px 10px; color:#f6f5f3!important; color-scheme:dark; max-width:100%;
}
.af-w005 :is(input,textarea)::placeholder { color:#9f9aa8; opacity:1; }
.af-w005 :is(input,select,textarea):focus { border-color:#ffab05!important; box-shadow:0 0 0 3px #ffab0526; }
.af-w005 input[type=file] { font-size:12px; }
.af-w005 input::file-selector-button { background:#353239; border:1px solid #66606e; border-radius:4px; padding:4px 6px; color:#f6f5f3; margin-right:8px; }
.af-w005 .row-2>* { min-width:0; }
.af-w005 .modal-card [style*="display:grid"]>* { min-width:0; }
.af-w005 :is(#drvCategories,#edrvCategories) label { background:#303035!important; border-color:#625a6b!important; color:#d8d1df!important; }
.af-w005 :is(#drvCategories,#edrvCategories) label:has(input:checked) { background:#ffab0524!important; border-color:#ffab05!important; color:#ffca62!important; }
.af-w005 .btn-cancel { color:#d8d4df; border-color:#615b6b; min-height:40px; }
.af-w005 .btn-save { min-height:40px; }
.af-w005 .modal-actions { flex-wrap:wrap; }
.af-w005 .history-list { padding-right:3px; max-width:100%; overflow-x:auto; }
.af-w005 .history-item { background:#1d1d21; border-color:#49444f; padding:10px; flex-wrap:wrap; overflow-wrap:anywhere; }
.af-w005 .history-item span { max-width:100%; }
.af-w005 .delete-mini { background:#531325; color:#ffb6c2; border-color:#b25168; }
.af-w005 .vehicle-card:focus-within .delete-mini { opacity:1; pointer-events:auto; }
.af-w005 [style*="background:#0f172a"], .af-w005 [style*="background: #0f172a"],
.af-w005 [style*="background:#1e293b"], .af-w005 [style*="background: #1e293b"] { background:#232326!important; }
.af-w005 [style*="background:var(--accent-color)"], .af-w005 [style*="background: var(--accent-color)"] { color:#211a0c!important; }
.af-w005 .lock-overlay { background:#111114ed; }
.af-w005 .lock-overlay::before { background:radial-gradient(ellipse at 20% 50%,#811c3718,transparent 70%); animation:none; }
.af-w005 .lock-container { background:#242427; border-color:#6c5535; box-shadow:0 24px 72px #0008; min-width:0; width:min(440px,calc(100% - 32px)); padding:32px; }
.af-w005 .lock-icon-wrapper { background:#ffab0514; border-color:#98702f; color:#ffbf43; animation:none; }
.af-w005 .lock-pin-input { border-color:#72613e; }
.af-w005 .lock-pin-input:focus { box-shadow:0 0 0 3px #ffab0526; }
.af-w005 .lock-footer-text { color:#b0a8b8; }
@media(max-width:1000px) {
  .af-w005 .sidebar { width:240px; padding:18px 12px; }
  .af-w005 .main-content { margin-left:240px; padding:24px 20px 84px; }
  .af-w005 .af-brand-home,.af-w005 .af-module-logo { width:208px; }
}
@media(max-width:760px) {
  body.af-w005 { display:block; }
  .af-w005 .sidebar { position:relative; width:100%; height:auto; padding:14px 16px; border-right:0; border-bottom:1px solid #3b3b42; }
  .af-w005 .logo { display:flex; align-items:center; gap:12px; justify-content:space-between; margin-bottom:14px; }
  .af-w005 .af-brand-home,.af-w005 .af-module-logo { width:180px; height:47px; }
  .af-w005 .af-brand-signature { margin:0; padding:0 0 0 14px; border:0; border-left:1px solid #49343f; }
  .af-w005 .logo img.mokadi-logo { width:60px; height:44px; }
  .af-w005 .af-brand-signature span { display:none; }
  .af-w005 .nav-links { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
  .af-w005 .nav-item { margin:0!important; padding:9px!important; min-height:40px; font-size:11px; border-top:1px solid transparent!important; }
  .af-w005 .nav-item.active { border-color:#a7762c!important; }
  .af-w005 .sidebar-profile { margin-top:12px; padding:7px 10px; }
  .af-w005 .main-content { margin-left:0; padding:20px 16px 90px; }
  .af-w005 main>header { margin-bottom:18px; padding-bottom:16px; min-height:0; }
  .af-w005 main>header h1 { font-size:23px; }
  .af-w005 :is(.vehicles-grid,.vehicles-grid--8,.vehicles-grid--wide) { grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:14px; }
  .af-w005 .modal-overlay { padding:12px; }
  .af-w005 .modal-card { padding:18px; width:100%; max-height:calc(100dvh - 24px); }
  .af-w005 .vehicle-card.vehicle-wide { flex-direction:column; }
  .af-w005 .vehicle-card.vehicle-wide .v-right { flex:auto; border-left:0; }
}
@media(max-width:420px) {
  .af-w005 .row-2 { grid-template-columns:minmax(0,1fr); }
  .af-w005 .modal-card [style*="grid-template-columns:1fr"] { grid-template-columns:minmax(0,1fr)!important; }
  .af-w005 .doc-block [style*="display:flex"] { flex-wrap:wrap; gap:8px; }
  .af-w005 .doc-block .form-group>div[style*="display:flex"] { flex-direction:column; }
  .af-w005 :is(.vehicles-grid,.vehicles-grid--8,.vehicles-grid--wide) { grid-template-columns:minmax(0,1fr); }
  .af-w005 .af-brand-home,.af-w005 .af-module-logo { width:170px; height:44px; }
}
@media(prefers-reduced-motion:reduce) {
  .af-w005 *, .af-w005 *::before { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
}
