/* nw_ClientWeb — styling in de geest van de klassieke WinForms-client:
   Segoe UI, grijze werkruimte, menubalk boven en statusbalk onder. */

/* Themakleur: was blauw (#2b579a e.a.), op verzoek omgezet naar oranje. Alle chrome-accenten
   (titelbalk, menu-hover, selectie, knop-hover, tabbladbalk) gaan via deze variabelen, zodat de
   kleur op één plek aan te passen is; semantische kleuren (foutmeldingen, module-licentie-status)
   blijven bewust ongemoeid. */
:root {
    --accent: #c1590a;
    --accent-dark: #973f00;
    --accent-tint: #ffe6cc;
    --accent-tint-strong: #ffd2a3;
    --accent-border: #e0a066;
}

* { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
    font-family: "Segoe UI", Tahoma, sans-serif;
    font-size: 13px;
    color: #1a1a1a;
    background: #d4d0c8; /* SystemColors.AppWorkspace-gevoel */
}

/* ---------------------------------------------------------------- hoofdvenster */

.shell {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.titlebar {
    background: var(--accent);
    color: #fff;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    user-select: none;
}

.workspace {
    flex: 1;
    background: #808080; /* leeg MDI-werkgebied zoals origineel */
}

.statusbar {
    display: flex;
    justify-content: space-between;
    background: #f0f0f0;
    border-top: 1px solid #c8c8c8;
    padding: 4px 10px;
    font-size: 12px;
    color: #333;
}

.status-session { color: #555; }

/* ---------------------------------------------------------------- menubalk */

.menubar {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-bottom: 1px solid #c8c8c8;
    padding: 0 4px;
    user-select: none;
}

.menubar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-root {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
}

.menu-top { position: relative; }

.menu-top-caption {
    display: block;
    padding: 7px 12px;
    cursor: default;
}

.menu-top:hover { background: var(--accent-tint); }
.menu-top:hover > .menu-drop { display: block; }

.menu-drop {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    max-height: 75vh;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #b5b5b5;
    box-shadow: 2px 3px 8px rgba(0, 0, 0, .25);
    z-index: 100;
    padding: 3px 0;
}

.menu-item { position: relative; }

.menu-caption {
    display: block;
    padding: 5px 26px 5px 14px;
    white-space: nowrap;
    cursor: default;
}

.menu-item:not(.disabled):hover > .menu-caption { background: var(--accent-tint); }
.menu-item.disabled > .menu-caption { color: #9a9a9a; }

.menu-item.has-children > .menu-caption::after {
    content: "▸";
    position: absolute;
    right: 8px;
    color: #666;
}

.menu-fly {
    top: -4px;
    left: 100%;
}

.menu-item.has-children:hover > .menu-fly { display: block; }

.menu-sep {
    height: 1px;
    margin: 3px 8px;
    background: #ddd;
}

/* zoekveld rechts, zoals in de ribbon */

.menu-search {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    padding: 3px 6px;
}

.menu-search label { color: #444; }

.menu-search input {
    width: 190px;
    padding: 3px 6px;
    border: 1px solid #b5b5b5;
    font: inherit;
}

.search-results {
    display: block;
    top: 100%;
    right: 0;
    left: auto;
}

/* ---------------------------------------------------------------- dialoogvensters */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
}

.modal {
    background: #f0f0f0;
    border: 1px solid #6d6d6d;
    box-shadow: 4px 6px 16px rgba(0, 0, 0, .35);
    max-width: 95vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #d5d5d5;
    padding: 7px 12px;
    font-weight: 600;
}

.modal-close {
    border: none;
    background: none;
    font-size: 16px;
    line-height: 1;
    padding: 2px 6px;
    cursor: pointer;
    color: #444;
}

.modal-close:hover { background: #e81123; color: #fff; }

.modal-body {
    padding: 12px;
    overflow: auto;
}

.modal-buttons {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    border-top: 1px solid #d5d5d5;
}

.modal-buttons .spacer { flex: 1; }

.modal-buttons button {
    min-width: 88px;
    padding: 5px 14px;
    font: inherit;
    background: #e1e1e1;
    border: 1px solid #adadad;
    cursor: pointer;
}

.modal-buttons button:hover:not(:disabled) { background: var(--accent-tint-strong); border-color: var(--accent); }
.modal-buttons button.default { border-color: var(--accent); }
.modal-buttons button:disabled { color: #9a9a9a; cursor: default; }

.dialog-status {
    margin-top: 8px;
    color: #696969;
    font-size: 12px;
}

.dialog-status.error { color: #b22222; }

/* ---------------------------------------------------------------- tabellen (ListView-vervanger) */

.grid {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #c8c8c8;
}

.grid th, .grid td {
    border: 1px solid #e2e2e2;
    padding: 4px 8px;
    text-align: left;
    white-space: nowrap;
}

.grid th {
    background: #f5f5f5;
    font-weight: 600;
}

.grid tbody tr { cursor: default; }
.grid tbody tr:hover { background: var(--accent-tint); }
.grid tbody tr.selected { background: var(--accent-tint-strong); }

.grid .num { text-align: right; }
.grid.slim th, .grid.slim td { border-left: none; border-right: none; }

/* Alias van .grid: gebruikt door de nieuwe beheerschermen (Fases, Toegangsgebieden,
   Segmentvelden/Roostervelden, Segmenten/Roosters, Script server/client). */
.data-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #c8c8c8; }
.data-table th, .data-table td { border: 1px solid #e2e2e2; padding: 4px 8px; text-align: left; }
.data-table th { background: #f5f5f5; font-weight: 600; }
.data-table tbody tr:hover { background: var(--accent-tint); }
.data-table tbody tr.selected { background: var(--accent-tint-strong); }

/* ---------------------------------------------------------------- formulieren */

.form-grid {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 8px 10px;
    align-items: center;
}

.form-grid label { color: #333; }

.form-grid input, .form-grid select, .form-stack input, .form-stack select {
    padding: 4px 6px;
    border: 1px solid #adadad;
    font: inherit;
    width: 100%;
}

.form-stack { display: flex; flex-direction: column; gap: 6px; }
.form-stack > label { margin-top: 4px; }

.form-stack fieldset, .info-columns fieldset {
    border: 1px solid #c8c8c8;
    margin-top: 10px;
    padding: 8px 10px;
}

.form-stack fieldset:disabled { color: #9a9a9a; }

.connection-preview {
    border: 1px inset #c8c8c8;
    background: #f0f0f0;
    padding: 4px 6px;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.form-warning { color: #a31515; font-size: 12px; }

/* ---------------------------------------------------------------- master-detail (Segmenten e.d.) */

.md-layout { display: flex; gap: 10px; height: 520px; }

.md-list-panel {
    width: 210px;
    display: flex;
    flex-direction: column;
    border: 1px solid #c8c8c8;
    background: #fff;
}

.md-list { flex: 1; overflow-y: auto; margin: 0; padding: 0; list-style: none; }

.md-list li {
    padding: 5px 8px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.md-list li:hover { background: var(--accent-tint); }
.md-list li.selected { background: var(--accent-tint-strong); font-weight: 600; }

.md-list-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px;
    border-top: 1px solid #d5d5d5;
    background: #f5f5f5;
}

.md-list-toolbar button { padding: 4px 8px; font-size: 12px; }

.md-detail-panel {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #c8c8c8;
    background: #fff;
    padding: 10px 14px;
}

.md-detail-panel:disabled,
.md-detail-panel.disabled { opacity: .6; }

.md-empty { color: #888; padding: 20px; }

.md-check-row { display: flex; align-items: center; gap: 8px; margin: 3px 0; }
.md-check-row select, .md-check-row input[type="number"] { width: 160px; padding: 2px 4px; }
.md-check-row .md-extra-label { color: #444; font-size: 12px; }

/* ---------------------------------------------------------------- info-venster */

.info-header {
    display: flex;
    gap: 24px;
    margin-bottom: 12px;
}

.info-logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
}

.info-versions div { margin-bottom: 4px; }
.info-versions .info-caption { display: inline-block; width: 150px; }
.info-copyright { margin-top: 12px; }

.info-columns {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.info-modules { flex: 2; max-height: 260px; overflow-y: auto; }
.info-holder { flex: 1; }

.module-check { color: #4169e1; text-align: center !important; }
.module-licensed { color: #003ca5; }
.module-unlicensed { color: #9a9a9a; }

.info-license { margin-top: 12px; grid-template-columns: 180px 1fr; }

/* ---------------------------------------------------------------- disclaimer */

.disclaimer-body {
    background: #fff;
    border: 1px solid #c8c8c8;
    padding: 14px;
    max-height: 55vh;
    overflow-y: auto;
    font-size: 12px;
}

/* ---------------------------------------------------------------- startscherm na aanmelden */

.home-view {
    max-width: 760px;
    margin: 28px auto;
    background: #f7f7f7;
    border: 1px solid #b5b5b5;
    box-shadow: 2px 3px 10px rgba(0, 0, 0, .3);
    padding: 20px 26px 26px;
}

.home-view h2 { margin: 0 0 4px; font-size: 20px; }
.home-view h3 { margin: 20px 0 8px; font-size: 14px; }

.home-session { color: #555; font-size: 12px; }

.home-projects { max-width: 100%; }

.home-hint {
    margin-top: 18px;
    color: #696969;
    font-size: 12px;
}

.mono { font-family: Consolas, monospace; font-size: 12px; }

/* ---------------------------------------------------------------- werkbladen (tabs) */

.workspace { display: flex; }

.ws-tabs {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    background: #f0f0f0;
}

.ws-tabstrip {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 4px 6px 0;
    background: var(--accent-tint);
    border-bottom: 1px solid #b5b5b5;
}

.ws-tab {
    padding: 5px 16px;
    border: 1px solid #b5b5b5;
    border-bottom: none;
    background: #fff3e8;
    cursor: pointer;
    font: inherit;
    border-radius: 4px 4px 0 0;
}

.ws-tab.active { background: #fff; font-weight: 600; }

.ws-tabbody { flex: 1; overflow: auto; padding: 10px 12px; background: #fff; }

.ws-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 2px 10px;
    font-size: 12px;
}

.ws-toolbar select { padding: 3px 6px; border: 1px solid #adadad; font: inherit; }
.ws-toolbar button { padding: 3px 10px; border: 1px solid #adadad; background: #e6e6e6; cursor: pointer; font: inherit; }
.ws-toolbar button:hover { background: var(--accent-tint-strong); }
.ws-week { font-weight: 600; }
.ws-status { color: #666; margin-left: auto; }

.ws-grid { width: 100%; }
.ws-grid th { position: sticky; top: 0; z-index: 1; }
.ws-grid .col-color { width: 42px; text-align: center; }

/* Gegevens-tab, "Bewerken"-modus: cel-editor die opgaat in de tabel tot je erin klikt. */
.ws-cell-input {
    width: 100%;
    border: 1px solid transparent;
    background: transparent;
    font: inherit;
    padding: 2px 4px;
    box-sizing: border-box;
}
.ws-cell-input:hover { border-color: #d5d5d5; }
.ws-cell-input:focus { border-color: var(--accent, #3b6ea5); background: #fff; outline: none; }
.ws-cell-input:disabled { color: inherit; background: transparent; }

.color-swatch {
    display: inline-block;
    width: 22px;
    height: 12px;
    border: 1px solid #999;
    vertical-align: middle;
}

/* werkblad-panelen (diensten + personen) */
.worksheet { display: flex; flex-direction: column; gap: 16px; }
.ws-pane { border: 1px solid #c8c8c8; }
.ws-pane-title {
    background: var(--accent);
    color: #fff;
    padding: 4px 10px;
    font-weight: 600;
    font-size: 12px;
}

.ws-rowhead { min-width: 200px; background: #f7f9fc; }
.ws-name { font-weight: 600; }
.ws-sub { color: #666; font-size: 11px; }
.ws-day { background: #fff3e8; text-align: center; white-space: nowrap; }
.ws-cell { min-width: 96px; height: 30px; vertical-align: top; padding: 2px !important; }
.ws-cell-num { text-align: right; color: #333; }

/* Klik-om-te-bewerken: roosterregels aanmaken/wijzigen/verwijderen via ScheduleCellDialog. */
.ws-cell-editable { cursor: pointer; }
.ws-cell-editable:hover { background: var(--accent-tint); }

.ws-chip {
    display: inline-block;
    margin: 1px;
    padding: 1px 5px;
    background: var(--accent-tint);
    border: 1px solid var(--accent-border);
    border-radius: 3px;
    font-size: 11px;
    white-space: nowrap;
}
.ws-chip-h { color: #555; margin-left: 4px; }

/* werkblad-dagbalken (HorizontalBars: TaakPersoon dg, PersoonTaak dg) */
.ws-daybar-hours { position: relative; height: 16px; margin-left: 210px; }
.ws-daybar-hourlabel { position: absolute; transform: translateX(-50%); color: #666; font-size: 11px; }
.ws-daybar-rows { display: flex; flex-direction: column; }
.ws-daybar-row { display: flex; align-items: stretch; border-top: 1px solid #e2e2e2; min-height: 30px; }
.ws-daybar-row .ws-rowhead { width: 200px; flex: 0 0 200px; padding: 4px 8px; }
.ws-daybar-track { position: relative; flex: 1; background: repeating-linear-gradient(to right, #f3f3f3 0, #f3f3f3 1px, transparent 1px, transparent calc(100% / 12)); cursor: pointer; }
.ws-daybar-item {
    position: absolute;
    top: 3px;
    bottom: 3px;
    background: var(--accent-tint-strong);
    border: 1px solid var(--accent-border);
    border-radius: 3px;
    font-size: 11px;
    padding: 2px 4px;
    overflow: hidden;
    white-space: nowrap;
    cursor: pointer;
}
.ws-daybar-item:hover { border-color: var(--accent); }

/* Scroll-container om de gegevenslijst (SegmentGridView): de kolomkoppen blijven staan terwijl
   de rijen scrollen. Ontbrak nog, waardoor een lange lijst de hele pagina liet scrollen. */
.ws-grid-host { overflow: auto; max-height: calc(100vh - 210px); }
.ws-grid-host .ws-grid thead th { position: sticky; top: 0; z-index: 1; }

/* ================================================================================
   Tabblad "Bewerken" (port van nw_ClientHost): celselectie in de werkbladen, de zes
   Bewerken-dialogen, de melding/vraag-modal en de tijdlijn-editor.
   ================================================================================ */

/* ---------------------------------------------------------------- celselectie in werkbladen
   Blokselectie zoals DataGridViewSelectionMode.CellSelect + MultiSelect in nw_ClientHost:
   klik = cel, shift-klik = blok, ctrl-klik = los toevoegen, klik op regel-/kolomkop = hele
   rij/kolom. Eén klik selecteert, DUBBELklikken opent de cel-dialoog. */

.ws-phase-label { margin-left: 12px; color: #444; }

.ws-cell-sel, .ws-grid tbody tr:hover .ws-cell-sel {
    background: var(--accent-tint-strong) !important;
    box-shadow: inset 0 0 0 1px var(--accent);
}

.ws-rowhead-click, .ws-day-click { cursor: pointer; user-select: none; }
.ws-rowhead-click:hover, .ws-day-click:hover { background: var(--accent-tint); }
.ws-rowhead-sel { background: var(--accent-tint) !important; }

/* De dagbalk-werkbladen hebben geen tabelcellen maar een spoor per rij. */
.ws-daybar-track.ws-cell-sel { box-shadow: inset 0 0 0 1px var(--accent); }

/* ---------------------------------------------------------------- melding/vraag (MessageDialog)
   Vervangt MessageBox.Show(...). De tekst uit EditCommands bevat "\n"-regelovergangen (o.a. de
   overtredingenlijst), vandaar white-space: pre-line. */

.msg-body { display: flex; gap: 12px; align-items: flex-start; }

.msg-icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-weight: 700;
    color: #fff;
}

.msg-icon.info { background: #4a7ebb; }
.msg-icon.question { background: var(--accent); }
.msg-icon.warning { background: #d79b00; }
.msg-icon.error { background: #b22222; }

.msg-text { flex: 1; white-space: pre-line; }

/* ---------------------------------------------------------------- Bewerken-dialogen */

/* Groepsvakken naast elkaar (WinForms: twee kolommen in hetzelfde venster). */
.dialog-columns { display: flex; gap: 12px; align-items: flex-start; }
.dialog-columns > .dialog-column { flex: 1; min-width: 0; }

/* Eén regel met besturingselementen naast elkaar; width:auto haalt de 100%-breedte
   van ".form-stack input/select" weer weg. */
.dialog-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dialog-row input, .dialog-row select { width: auto; }
.dialog-row label { color: #333; }

/* Aankruislijst (WinForms CheckedListBox). */
.check-list {
    border: 1px solid #adadad;
    background: #fff;
    max-height: 180px;
    overflow-y: auto;
    padding: 2px 4px;
}
.check-list label { display: flex; align-items: center; gap: 6px; padding: 1px 0; white-space: nowrap; }
.check-list input[type="checkbox"] { width: auto; }
.check-list .check-list-empty { color: #888; padding: 4px; }

/* Voorbeeldmatrix (WinForms DataGridView, alleen-lezen). */
.preview-scroll { max-height: 200px; overflow: auto; border: 1px solid #c8c8c8; background: #fff; }
.preview-scroll.disabled { opacity: .6; }

/* Radio-/vinkregel (WinForms RadioButton- en CheckBox-groepen). */
.radio-row { display: flex; align-items: center; gap: 6px; padding: 2px 0; }
.radio-row input { width: auto; }

/* ---------------------------------------------------------------- tijdlijn-editor
   (Components/Editing/TimeLineEditDialog.razor + wwwroot/timeline.js): de webvervanger van
   de DevExpress-XtraScheduler-tijdlijn uit nw_ClientHost/Forms/TimeLineEditForm.cs — één rij
   per code van het basissegment, horizontale as = tijd.
   LET OP: .cas-tl-track mag geen padding/linkerrand krijgen; de balkposities die C# rendert en
   de minuten die timeline.js terugrekent gaan beide uit van x=0 op de linkerrand van het spoor. */

.cas-tl-header { color: #444; font-size: 12px; padding: 0 2px 4px; }
.cas-tl { border: 1px solid #c8c8c8; background: #fff; outline: none; }
.cas-tl-scroll { overflow: auto; max-height: 52vh; }
.cas-tl-inner { position: relative; }

/* tijdschalen: dag boven, uur onder (legacy TimeScaleDay + TimeScaleHour) */
.cas-tl-scales {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 3;
    background: #f5f5f5;
    border-bottom: 1px solid #b5b5b5;
}

.cas-tl-corner {
    position: sticky;
    left: 0;
    z-index: 4;
    flex: 0 0 auto;
    background: #f5f5f5;
    border-right: 1px solid #c8c8c8;
    padding: 4px 8px;
    font-weight: 600;
}

.cas-tl-scale-body { flex: 0 0 auto; }
.cas-tl-dayscale { display: flex; }

.cas-tl-dayhead {
    flex: 0 0 auto;
    box-sizing: border-box;
    border-right: 1px solid #b5b5b5;
    border-bottom: 1px solid #e2e2e2;
    padding: 3px 6px;
    font-size: 11px;
    font-weight: 600;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
}

/* dag binnen de geselecteerde periode; de dag ervóór en erná zijn alleen sleepruimte */
.cas-tl-dayhead.cas-tl-inperiod { background: var(--accent-tint); color: #1a1a1a; }

.cas-tl-hourscale { position: relative; height: 16px; }

.cas-tl-hourhead {
    position: absolute;
    top: 1px;
    padding-left: 2px;
    border-left: 1px solid #e2e2e2;
    line-height: 14px;
    color: #888;
    font-size: 10px;
    pointer-events: none;
}

/* één resource-rij = één code */
.cas-tl-row { display: flex; border-bottom: 1px solid #e2e2e2; }

.cas-tl-rowhead {
    position: sticky;
    left: 0;
    z-index: 2;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f7f9fc;
    border-right: 1px solid #c8c8c8;
    padding: 2px 4px 2px 8px;
}

.cas-tl-rowlabel {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    font-size: 12px;
}

.cas-tl-add {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    line-height: 1;
    border: 1px solid #adadad;
    background: #e6e6e6;
    cursor: pointer;
    font: inherit;
}

.cas-tl-add:hover { background: var(--accent-tint-strong); border-color: var(--accent); }

/* het tijdspoor; --cas-tl-hour en --cas-tl-day zet de component inline */
.cas-tl-track {
    position: relative;
    flex: 0 0 auto;
    cursor: crosshair;
    touch-action: none;   /* zonder dit slikt de browser de pointer-events op als paginascroll */
    background:
        repeating-linear-gradient(to right, #ececec 0, #ececec 1px, transparent 1px, var(--cas-tl-hour, 40px)),
        repeating-linear-gradient(to right, #b5b5b5 0, #b5b5b5 1px, transparent 1px, var(--cas-tl-day, 960px));
}

.cas-tl-track.cas-tl-track-active { background-color: #fffdf8; }
.cas-tl-track.cas-tl-track-target { background-color: var(--accent-tint); }   /* doelrij tijdens slepen (timeline.js) */

/* gekozen tijdvak waarop "Toevoegen" werkt (legacy SelectedInterval) */
.cas-tl-timesel {
    position: absolute;
    top: 0;
    bottom: 0;
    background: var(--accent-tint-strong);
    border-left: 1px solid var(--accent);
    border-right: 1px solid var(--accent);
    opacity: .55;
    pointer-events: none;
}

/* één roosterregel */
.cas-tl-bar {
    position: absolute;
    display: flex;
    align-items: center;
    background: #dfe8f5;
    border: 1px solid #7f9db9;
    border-radius: 3px;
    font-size: 11px;
    overflow: hidden;
    white-space: nowrap;
    cursor: move;
    touch-action: none;
    user-select: none;
}

.cas-tl-bar:hover { border-color: var(--accent); }
.cas-tl-bar.cas-tl-bar-selected { border-color: var(--accent-dark); box-shadow: inset 0 0 0 1px var(--accent-dark); }
.cas-tl-bar.cas-tl-bar-new { background: #e6f4e6; border-color: #4f8f4f; }
.cas-tl-bar.cas-tl-bar-changed { background: #fff3e8; border-color: var(--accent-border); }
.cas-tl-bar.cas-tl-bar-dragging { opacity: .75; z-index: 5; }   /* gezet door timeline.js */

.cas-tl-barlabel { flex: 1; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; pointer-events: none; }

.cas-tl-grip { flex: 0 0 5px; align-self: stretch; cursor: ew-resize; background: rgba(0, 0, 0, .10); }
.cas-tl-grip:hover { background: var(--accent); }

.cas-tl-hint { color: #696969; font-size: 12px; margin-top: 6px; }

/* bevestiging voor regels buiten de periode (legacy MessageBox Ja/Nee; confirm() mag niet) */
.cas-tl-confirm {
    margin-top: 8px;
    background: #ffffe0;
    border: 1px solid var(--accent-border);
    padding: 8px 10px;
}

.cas-tl-confirm-buttons { display: flex; gap: 8px; margin-top: 6px; }

.cas-tl-confirm-buttons button {
    min-width: 88px;
    padding: 4px 12px;
    font: inherit;
    background: #e1e1e1;
    border: 1px solid #adadad;
    cursor: pointer;
}

.cas-tl-confirm-buttons button.default { border-color: var(--accent); }

/* ---------------------------------------------------------------- foutpagina/reconnect */

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffe0;
    border-top: 1px solid #c8c8c8;
    padding: 8px 16px;
    z-index: 1000;
}
