:root{
  --bg1:#05070b; --bg2:#0a0f18;
  --glass: rgba(255,255,255,.06);
  --stroke: rgba(255,255,255,.12);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.62);
  --orange:#ff7a18;
  --shadow: 0 18px 60px rgba(0,0,0,.45);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  background:
    radial-gradient(900px 600px at 18% 10%, rgba(255,122,24,.16), transparent 55%),
    radial-gradient(1000px 700px at 80% 30%, rgba(255,255,255,.06), transparent 60%),
    linear-gradient(180deg,var(--bg1),var(--bg2));
  overflow-x:hidden;
}

.shell{min-height:100%; display:flex; flex-direction:column}
.topbar{
  position:sticky; top:0; z-index:10;
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 16px; gap:12px;
  border-bottom:1px solid var(--stroke);
  background: rgba(0,0,0,.28);
  backdrop-filter: blur(16px);
}
.brand{display:flex; gap:12px; align-items:center; min-width:0}
.brandLogo{width:42px;height:42px;border-radius:12px;border:1px solid var(--stroke);object-fit:cover}
.brandText{min-width:0}
.brandTitle{font-weight:900; letter-spacing:.10em; text-transform:uppercase; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.brandSub{color:var(--muted); font-size:12px; margin-top:2px}

.actions{display:flex; align-items:center; gap:10px; min-width:0}
.searchWrap{position:relative; width:min(520px, 52vw)}
.searchWrap input{
  width:100%; padding:12px 12px;
  border-radius:12px; border:1px solid var(--stroke);
  background: rgba(0,0,0,.22);
  color:var(--text); outline:none;
}
.searchWrap input:focus{border-color: rgba(255,122,24,.55); box-shadow: 0 0 0 3px rgba(255,122,24,.18);}
.ghost{
  padding:10px 12px; border-radius:12px;
  border:1px solid var(--stroke);
  color:var(--text); text-decoration:none;
  background: rgba(255,255,255,.04);
}

.drop{
  position:absolute; top:46px; left:0; right:0;
  border:1px solid var(--stroke);
  border-radius:14px;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  max-height: 360px;
  overflow:auto;
}
.dropItem{padding:12px 12px; border-bottom:1px solid rgba(255,255,255,.08); cursor:pointer}
.dropItem:last-child{border-bottom:none}
.dropItem .t{font-weight:800}
.dropItem .s{color:var(--muted); font-size:12px; margin-top:2px}
.hidden{display:none !important}

.main{padding:16px; width:100%; max-width: 1400px; margin:0 auto}
.tabs{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  margin-bottom:14px;
}
.tab{
  padding:10px 12px; border-radius:12px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  color:var(--text);
  cursor:pointer;
}
.tab.active{border-color: rgba(255,122,24,.55); box-shadow: 0 0 0 3px rgba(255,122,24,.12);}
.spacer{flex:1 1 auto}
.btn{
  padding:10px 12px; border-radius:12px;
  border:1px solid rgba(255,122,24,.55);
  background: linear-gradient(180deg, rgba(255,122,24,.95), rgba(255,122,24,.75));
  color:#111; font-weight:900; letter-spacing:.04em; text-transform:uppercase;
  cursor:pointer;
}

.panel{
  border:1px solid var(--stroke);
  background: var(--glass);
  border-radius:18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  padding:14px;
}
.panelHead{display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin-bottom:10px}
.kicker{color:var(--muted); font-size:12px; letter-spacing:.08em; text-transform:uppercase}
.title{font-size:18px; font-weight:900; letter-spacing:.02em}
.titleRow{display:flex; align-items:baseline; gap:10px; flex-wrap:wrap}
.muted{color:var(--muted); font-size:12px}
.chip{
  padding:10px 12px; border-radius:12px;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.18);
  color:var(--text); cursor:pointer;
}

.weekGrid{
  display:grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap:10px;
}
.dayCol{
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  background: rgba(0,0,0,.18);
  min-height: 420px;
  display:flex; flex-direction:column;
  overflow:hidden;
}
.dayHead{
  padding:10px 10px;
  border-bottom:1px solid rgba(255,255,255,.08);
  display:flex; align-items:center; justify-content:space-between; gap:8px;
}
.dayName{font-weight:900}
.dayDate{color:var(--muted); font-size:12px}
.dayBody{padding:10px; display:flex; flex-direction:column; gap:8px; flex:1}
.slot{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  border-radius:14px;
  padding:10px;
  cursor:pointer;
}
.slotTop{display:flex; align-items:center; justify-content:space-between; gap:10px}
.badge{
  font-weight:900; letter-spacing:.08em; text-transform:uppercase;
  color:#111; background: rgba(255,122,24,.95);
  padding:6px 8px; border-radius:10px; font-size:11px;
}
.slotMeta{color:var(--muted); font-size:12px; margin-top:6px; line-height:1.35}

.list{display:flex; flex-direction:column; gap:10px; padding-top:6px}
.row{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  border-radius:16px;
  padding:12px;
  cursor:pointer;
}
.row .r1{display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap}
.row .rTitle{font-weight:900}
.row .rSub{color:var(--muted); font-size:12px; margin-top:4px}

.grid2{display:grid; grid-template-columns: 1fr 1fr; gap:12px}
@media (max-width: 980px){
  .grid2{grid-template-columns: 1fr}
  .searchWrap{width: min(520px, 68vw)}
}
@media (max-width: 860px){
  .weekGrid{grid-template-columns: 1fr}
  .dayCol{min-height: 220px}
  .actions{width:100%}
  .topbar{flex-wrap:wrap}
  .searchWrap{width:100%}
}

.card{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  border-radius:18px;
  padding:14px;
}
.cardTitle{font-weight:900; letter-spacing:.06em; text-transform:uppercase; font-size:12px; color:var(--muted); margin-bottom:10px}
.metricRow{display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:10px}
.metric{border:1px solid rgba(255,255,255,.10); border-radius:16px; padding:12px; background: rgba(255,255,255,.04)}
.mLabel{color:var(--muted); font-size:12px}
.mValue{font-size:20px; font-weight:900; margin-top:6px}
.mt{margin-top:12px}

.table{overflow:auto; border:1px solid rgba(255,255,255,.08); border-radius:16px}
.table table{width:100%; border-collapse:collapse; min-width:720px}
.table th,.table td{padding:10px; border-bottom:1px solid rgba(255,255,255,.08); font-size:13px; text-align:left}
.table th{color:var(--muted); font-weight:900; letter-spacing:.06em; text-transform:uppercase; font-size:11px}
.table tr:hover td{background: rgba(255,255,255,.04)}

.modal{
  position:fixed; inset:0; display:flex; align-items:center; justify-content:center;
  background: rgba(0,0,0,.62);
  padding:16px;
}
.modalCard{
  width:min(920px, 100%);
  max-height: min(92vh, 860px);
  overflow:hidden;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(18px);
  border-radius:18px;
  box-shadow: var(--shadow);
  display:flex; flex-direction:column;
}
.modalHead{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 14px;
  border-bottom:1px solid rgba(255,255,255,.10);
}
.modalTitle{font-weight:900; letter-spacing:.06em; text-transform:uppercase}
.x{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color:var(--text);
  border-radius:12px;
  padding:8px 10px;
  cursor:pointer;
}
.modalBody{padding:14px; overflow:auto}
.modalFoot{padding:12px 14px; border-top:1px solid rgba(255,255,255,.10); display:flex; gap:10px; justify-content:flex-end; flex-wrap:wrap}

.formGrid{
  display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:12px;
}
@media (max-width: 820px){ .formGrid{grid-template-columns: 1fr} }
.f label{display:block; color:var(--muted); font-size:12px; margin:0 0 6px}
.f input, .f textarea, .f select{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  color: var(--text);
  outline:none;
}
.f textarea{min-height:92px; resize:vertical}
.f input:focus,.f textarea:focus,.f select:focus{border-color: rgba(255,122,24,.55); box-shadow: 0 0 0 3px rgba(255,122,24,.14);}

.primary{
  padding:10px 12px; border-radius:12px;
  border:1px solid rgba(255,122,24,.55);
  background: linear-gradient(180deg, rgba(255,122,24,.95), rgba(255,122,24,.75));
  color:#111; font-weight:900; letter-spacing:.04em; text-transform:uppercase;
  cursor:pointer;
}
.secondary{
  padding:10px 12px; border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:var(--text); font-weight:800;
  cursor:pointer;
}
.whatsapp{
  border-color: rgba(64, 214, 97, .65);
  background: linear-gradient(180deg, rgba(64,214,97,.95), rgba(64,214,97,.72));
}
.dot{display:inline-block; width:10px; height:10px; border-radius:999px; margin-right:8px}
.dot.o{background: rgba(255,122,24,.95)}
.dot.g{background: rgba(255,255,255,.35)}
.donutWrap{display:flex; align-items:center; gap:12px; flex-wrap:wrap}
.donutLegend{color:var(--muted); font-size:12px; line-height:1.6}


/* DTS: highlight TODAY with orange glow */
.day.today, .today {
  box-shadow: 0 0 0 1px rgba(255,140,0,.45), 0 0 22px rgba(255,140,0,.40);
  border-color: rgba(255,140,0,.65) !important;
}
.day.today .muted, .today .muted { color: rgba(255,200,140,.95) !important; }


/* DTS_TODAY_HL */
[data-day].is-today {
  border-color: rgba(255,140,0,.95) !important;
  background: rgba(255,140,0,.06) !important;
}

/* DTS_TODAY_HL
   - geen glow
   - subtiele oranje rand + lichte achtergrond
DTS_TODAY_HL_END */
.is-today {
  border-color: rgba(255,140,0,.95) !important;
  background: rgba(255,140,0,.06) !important;
}

/* DTS: debug highlight loaded */
}

/* === TODAY highlight (clean, no glow) === */
.day-card.is-today {
  border: 2px solid #ff7a18 !important;
}


/* TODAY = subtiele oranje rand alleen om de dagkaart */
[data-day].is-today {
  border: 2px solid #ff7a18 !important;
  box-shadow: none !important;
}


/* TODAY BORDER */
.is-today {
  border: 2px solid #ff7a18 !important;
  box-shadow: none !important;
}

/* ===== TODAY BORDER ===== */
.dayColumn.today {
  border: 2px solid #ff7a18 !important;
}
