:root{--bg: #ffffff;--text: #111111;--muted: #6b7280;--border: #e5e7eb;--brand: #16a34a;--brand-dark: #15803d;--surface: #f8fafc;--danger: #dc2626;--success: #166534;--focus-ring: rgba(22, 163, 74, .2);--sidebar-bg: #111827;--sidebar-text: #f9fafb;--sidebar-muted: #9ca3af;--warning: #f59e0b;--info: #2563eb}*{box-sizing:border-box}html,body,#app{min-height:100%}body{margin:0;font-family:Inter,Segoe UI,Roboto,Arial,sans-serif;color:var(--text);background:var(--surface);line-height:1.4}a{color:inherit;text-decoration:none}button,input,select{font:inherit}.app-shell{display:grid;grid-template-columns:260px 1fr;min-height:100vh;background:var(--surface)}.sidebar{border-right:1px solid #1f2937;background:var(--sidebar-bg);color:var(--sidebar-text);padding:20px}.sidebar-header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.brand{font-size:1.25rem;font-weight:800;color:#dcfce7}.brand-sub{margin-top:4px;font-size:.8rem;color:var(--sidebar-muted)}.nav-list{margin-top:24px;display:grid;gap:8px}.nav-link{display:block;padding:10px 12px;border-radius:10px;font-weight:600;color:var(--sidebar-text);transition:background-color .15s ease,color .15s ease}.nav-link.active,.nav-link:hover{background:#16a34a33;color:#dcfce7}.main-content{background:var(--surface);min-width:0}.topbar{padding:12px 24px;border-bottom:1px solid var(--border);background:#ffffffe6;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:0;z-index:5}.topbar-left{display:flex;align-items:center;gap:10px}.topbar-right{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}.topbar-meta{display:inline-flex;align-items:center;gap:8px;font-size:.82rem;color:var(--muted)}.meta-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border-radius:999px;background:#eef2f7;border:1px solid #e5e7eb}.user-role{margin-left:8px;color:var(--muted);font-size:.9rem}.user-menu,.notifications-menu,.notifications-trigger{position:relative}.notifications-badge{position:absolute;top:-5px;right:-5px;min-width:18px;height:18px;border-radius:999px;background:#dc2626;color:#fff;font-size:.68rem;font-weight:700;display:inline-flex;align-items:center;justify-content:center;padding:0 5px;line-height:1}.notifications-panel{position:absolute;right:0;top:calc(100% + 8px);width:min(420px,100vw - 24px);background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:0 12px 24px #0f172a24;padding:10px;display:grid;gap:8px;z-index:40}.notifications-panel-header{display:flex;align-items:center;justify-content:space-between;gap:10px}.notifications-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.notifications-unread-toggle{display:inline-flex;align-items:center;gap:6px;font-size:.82rem;color:#334155}.notifications-mark-all{width:100%}.notifications-list{display:grid;gap:8px;max-height:340px;overflow-y:auto}.notifications-item{border:1px solid #e5e7eb;border-radius:10px;background:#fff;padding:9px 10px;text-align:left;display:grid;gap:4px;cursor:pointer}.notifications-item:hover{border-color:#cbd5e1;background:#f8fafc}.notifications-item.unread{border-left:4px solid #2563eb;background:#eff6ff}.notifications-item-title{font-size:.86rem;font-weight:700;color:#0f172a}.notifications-item-message{font-size:.8rem;color:#334155}.notifications-item-meta{font-size:.72rem;color:#64748b}.notifications-empty{border:1px dashed var(--border);border-radius:10px;padding:12px;text-align:center;color:var(--muted);font-size:.82rem}.user-menu-trigger{display:inline-flex;align-items:center;gap:8px}.user-name{font-weight:700}.user-role-badge{max-width:170px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-menu-panel{position:absolute;right:0;top:calc(100% + 8px);min-width:180px;background:#fff;border:1px solid var(--border);border-radius:10px;box-shadow:0 10px 20px #1118271f;padding:6px;display:grid;gap:4px;z-index:30}.user-menu-panel .user-role-badge{justify-self:center;width:fit-content}.user-menu-item{border:none;background:transparent;text-align:left;border-radius:8px;padding:8px 10px;font-weight:600;color:#111827;cursor:pointer}.user-menu-item:hover{background:#f3f4f6}.user-menu-item.danger{color:var(--danger)}.mobile-menu-btn,.close-menu-btn,.sidebar-overlay{display:none}.page{padding:24px;max-width:1400px;width:100%}.page h1,.page-header{margin-top:0;margin-bottom:6px;font-size:1.5rem}.page-subtitle{margin:0 0 18px;color:var(--muted);font-size:.95rem}.module-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:16px}.module-span-4{grid-column:span 4}.module-span-6{grid-column:span 6}.module-span-8{grid-column:span 8}.module-span-12{grid-column:span 12}.kpi-line{margin-top:10px;display:flex;align-items:center;gap:10px;font-size:.82rem;color:var(--muted)}.delta{font-weight:700;padding:4px 8px;border-radius:999px;font-size:.75rem}.delta-positive{color:#166534;background:#dcfce7}.delta-warning{color:#92400e;background:#fef3c7}.delta-danger{color:#991b1b;background:#fee2e2}.badge{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;font-size:.72rem;font-weight:700}.badge-info{color:#1e40af;background:#dbeafe}.badge-warning{color:#92400e;background:#fef3c7}.badge-danger{color:#991b1b;background:#fee2e2}.module-list{display:grid;gap:10px}.module-row{display:flex;justify-content:space-between;align-items:center;border:1px solid var(--border);border-radius:10px;padding:10px 12px;background:#fff}.module-row strong{font-size:.92rem}.module-row p{margin:2px 0 0;color:var(--muted);font-size:.82rem}.quick-actions{display:grid;gap:10px}.quick-link{border:1px solid var(--border);border-radius:10px;padding:10px 12px;background:#fff;transition:border-color .15s ease,background-color .15s ease}.quick-link:hover{border-color:#c7d2fe;background:#f8fafc}.quick-title{font-weight:700;font-size:.9rem}.quick-subtitle{margin-top:4px;color:var(--muted);font-size:.8rem}.timeline{display:grid;gap:10px}.timeline-item{display:grid;grid-template-columns:8px 1fr;gap:10px;align-items:start}.timeline-dot{width:8px;height:8px;margin-top:6px;border-radius:999px;background:var(--info)}.timeline-content{border:1px solid var(--border);border-radius:10px;padding:8px 10px}.timeline-title{font-size:.87rem;font-weight:700}.timeline-meta{margin-top:2px;font-size:.78rem;color:var(--muted)}.empty-state,.error-state,.loading-state{border:1px dashed var(--border);border-radius:12px;padding:14px;color:var(--muted);background:#fff}.error-state{border-color:#fecaca;color:#991b1b;background:#fff1f2}.skeleton{display:block;width:100%;border-radius:8px;background:linear-gradient(90deg,#f3f4f6 25%,#e5e7eb 37%,#f3f4f6 63%);background-size:400% 100%;animation:shimmer 1.2s infinite}.skeleton-line{height:12px}.skeleton-title{height:20px;width:180px;margin-bottom:10px}@keyframes shimmer{0%{background-position:100% 0}to{background-position:0 0}}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px;margin-bottom:20px}.card{background:#fff;border:1px solid var(--border);border-radius:14px;padding:16px;box-shadow:0 10px 18px #1118270a;position:relative;overflow:hidden}.card:before{content:"";position:absolute;left:0;top:0;width:100%;height:3px;background:linear-gradient(90deg,var(--brand),var(--brand-dark))}.card-title{color:var(--muted);font-size:.85rem}.card-value{margin-top:8px;font-size:1.55rem;font-weight:700}.panel{background:#fff;border:1px solid var(--border);border-radius:14px;padding:16px;box-shadow:0 10px 20px #1118270a}.section-stack{margin-bottom:14px}.section-title{margin-top:0;margin-bottom:12px;font-size:1.05rem}.section-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.section-header .section-title{margin-bottom:0}.fuel-stats-page .table-wrap{border:1px solid var(--border);border-radius:12px;background:#fff}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;border-radius:10px;overflow:hidden}th,td{border-bottom:1px solid var(--border);text-align:left;padding:10px;font-size:.9rem;vertical-align:middle}th{color:#374151;font-weight:700;background:#f9fafb}tbody tr:hover{background:#f9fafb}.toolbar{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:12px;align-items:end}.toolbar-end{justify-content:flex-end}.field-group{display:grid;gap:6px}.form-actions{display:flex;align-items:center;gap:10px}.actions-inline{display:flex;gap:6px;flex-wrap:wrap}.input,.select{border:1px solid var(--border);background:#fff;border-radius:10px;padding:9px 11px;min-width:180px;min-height:40px;transition:border-color .15s ease,box-shadow .15s ease}.input:focus,.select:focus,.btn:focus-visible,.nav-link:focus-visible{outline:none;box-shadow:0 0 0 3px var(--focus-ring)}.btn{border:none;border-radius:10px;padding:9px 12px;cursor:pointer;font-weight:600;transition:background-color .15s ease,color .15s ease,opacity .15s ease}.btn-content{display:inline-flex;align-items:center;gap:8px}.btn-icon{width:16px;height:16px;flex-shrink:0}.btn:disabled{opacity:.6;cursor:not-allowed}.btn-primary{background:var(--brand);color:#fff}.btn-primary:hover:not(:disabled){background:var(--brand-dark)}.btn-ghost{background:#eef2f7;color:#1f2937}.btn-danger{background:#fee2e2;color:var(--danger)}.status{padding:4px 8px;border-radius:999px;font-size:.75rem;font-weight:700}.status-ok{color:#166534;background:#dcfce7}.status-off{color:#991b1b;background:#fee2e2}.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.error-text{color:var(--danger);font-size:.85rem}.success-text{color:var(--success);font-size:.9rem}.text-muted{color:var(--muted)}.profile-panel{max-width:680px}.profile-form{display:grid;gap:10px}.auth-page{min-height:100vh;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at top,#ecfdf3 0%,var(--surface) 45%)}.auth-panel{width:min(460px,100%)}.auth-title{margin-top:0;margin-bottom:6px;font-size:1.4rem}.auth-subtitle{margin-top:0;margin-bottom:14px;color:var(--muted)}.auth-form{display:grid;gap:10px}.password-field{position:relative}.password-input{width:100%;padding-right:42px}.password-toggle-btn{position:absolute;top:50%;right:10px;transform:translateY(-50%);border:none;background:transparent;padding:0;width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;color:var(--muted);cursor:pointer}.password-toggle-btn:hover{color:#111827}.password-toggle-btn:focus-visible{outline:none;border-radius:999px;box-shadow:0 0 0 3px var(--focus-ring)}.pager{display:flex;align-items:center;gap:8px;margin-top:12px;flex-wrap:wrap}.global-alert{position:fixed;top:12px;right:12px;z-index:1000;background:#111;color:#fff;border:1px solid #1f2937;border-left:4px solid var(--brand);border-radius:10px;padding:10px 12px;font-weight:600}@media(max-width:960px){.app-shell{grid-template-columns:1fr;position:relative}.sidebar{display:none;position:fixed;top:0;left:0;width:280px;height:100vh;border-right:1px solid var(--border);z-index:20;overflow-y:auto}.app-shell.sidebar-open .sidebar{display:block}.app-shell.sidebar-open .sidebar-overlay{display:block;position:fixed;inset:0;border:none;background:#11182759;z-index:10;padding:0;margin:0}.mobile-menu-btn,.close-menu-btn{display:inline-block}.grid-2{grid-template-columns:1fr}.module-span-4,.module-span-6,.module-span-8,.module-span-12{grid-column:span 12}.page{padding:16px}.topbar{padding:12px 16px;align-items:center;flex-direction:row}.topbar-left,.topbar-right{width:auto;justify-content:space-between}.topbar-left{min-width:0;flex:1}.user-menu-panel{left:auto;right:0}th,td{padding:8px;font-size:.85rem}.fuel-stats-page .module-row{align-items:flex-start;gap:8px}}@media(max-width:640px){.topbar-meta{width:auto;overflow-x:visible;white-space:nowrap}.user-name,.user-role-badge{display:none}.user-menu-trigger{min-width:40px;justify-content:center;padding:9px}.notifications-panel{position:fixed;top:62px;right:8px;left:8px;width:auto;max-height:calc(100dvh - 74px)}.notifications-list{max-height:calc(100dvh - 260px)}.toolbar{align-items:stretch}.toolbar .input,.toolbar .select{width:100%}.toolbar .btn{width:auto;min-width:40px;padding:9px}.form-actions{width:100%;flex-direction:column;align-items:flex-start}.form-actions .btn{min-width:40px;padding:9px}.btn-content{gap:0}.btn-content>span{display:none}.fuel-stats-page .section-header{align-items:stretch;flex-direction:column}.fuel-stats-page .section-header .btn{width:100%}.fuel-stats-page .btn-content{gap:8px}.fuel-stats-page .btn-content>span{display:inline}.fuel-stats-page th,.fuel-stats-page td{white-space:nowrap}}
