/* DRIVER TOOLBOX — app-specifični stilovi.
   Pravilo: ovde SAMO ono što je jedinstveno za Driver.
   Zajedničko ide u ../core/css/core.css. Boje iz config/driver_v1.json.  */

/* Onboarding banner "Dodaj početno stanje" */
.onboard {
  background: var(--c-surface); border: 1px dashed var(--c-primary);
  border-radius: 12px; padding: 12px 14px; margin: 8px 0;
}
.onboard b { color: var(--c-primary); }

/* Rok — bojenje po hitnosti (isti prag kao podsetnici) */
.due-ok   { color: var(--c-ok, #1E8A4C); }
.due-soon { color: #B45309; }
.due-over { color: #B91C1C; }

/* Vehicle switcher kad ima više vozila */
.vehswitch { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; }
.vehswitch .chip {
  white-space: nowrap; padding: 6px 12px; border-radius: 20px;
  border: 1px solid var(--c-locked); background: var(--c-surface); font-size: .9rem;
}
.vehswitch .chip.active { border-color: var(--c-primary); color: var(--c-primary); font-weight: 600; }

/* Slike na događaju / dokumentima */
.photostrip { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.photocell { position: relative; width: 72px; height: 54px; }
.photocell img { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; }
.photodel {
  position: absolute; top: -6px; right: -6px; width: 20px; height: 20px;
  border-radius: 50%; border: none; background: #B91C1C; color: #fff; font-size: .7rem; line-height: 1;
}
.docrow { display: flex; align-items: center; gap: 10px; }
.docthumb { width: 48px; height: 36px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; }
.docthumb.big { width: 100%; height: auto; max-height: 260px; object-fit: contain; margin-top: 8px; border-radius: 8px; }

/* Notification bell */
.topbar-right { display: flex; align-items: center; gap: .5rem; }
.bell-btn { position: relative; background: none; border: none; color: #fff; font-size: 1.25rem; cursor: pointer; padding: .2rem .3rem; line-height: 1; }
.bell-count { position: absolute; top: -3px; right: -5px; min-width: 16px; height: 16px; background: #ef4444; border-radius: 999px; font-size: 10px; font-weight: 700; color: #fff; display: flex; align-items: center; justify-content: center; padding: 0 3px; border: 2px solid var(--c-accent, #0F766E); }

/* Notification sheet */
.notif-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.45); }
.notif-sheet { position: fixed; bottom: 0; left: 0; right: 0; z-index: 101; background: var(--c-surface, #fff); border-radius: 1rem 1rem 0 0; max-height: 80vh; display: flex; flex-direction: column; }
.notif-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1rem .6rem; border-bottom: 1px solid var(--c-border, #e5e7eb); }
.notif-sheet-head h3 { margin: 0; font-size: 1rem; font-weight: 700; }
.notif-sheet-readall { background: none; border: none; color: var(--c-primary, #0F766E); font-size: .82rem; font-weight: 600; cursor: pointer; padding: 0; }
.notif-list { overflow-y: auto; flex: 1; }
.notif-row { padding: .7rem 1rem; border-bottom: 1px solid var(--c-border, #e5e7eb); }
.notif-row.unread { border-left: 3px solid var(--c-primary, #0F766E); background: rgba(15,118,110,.04); }
.notif-row-title { font-size: .88rem; font-weight: 600; margin-bottom: .15rem; }
.notif-row-body { font-size: .8rem; color: var(--c-muted, #6b7280); line-height: 1.35; }
.notif-row-time { font-size: .7rem; color: var(--c-muted, #6b7280); margin-top: .2rem; }
.notif-empty { padding: 2.5rem 1rem; text-align: center; color: var(--c-muted, #6b7280); font-size: .9rem; }
