/* Stijl van Line-up, zelfde familie als Begrotingen. Overgenomen uit het klikmodel. */
/* Dezelfde stijl als Begrotingen, zodat de apps familie van elkaar zijn. */
body { margin: 0; background: #f6f3eb; color: #1d1711; font-family: "Segoe UI", system-ui, -apple-system, sans-serif; font-size: 14px; }
a { color: #e6532e; text-decoration: none; cursor: pointer; } a:hover { color: #bf3918; }
input, select, textarea { font-family: inherit; font-size: 14px; color: #1d1711; background: #fffaf0; border: 1px solid #c9bba4; border-radius: 6px; height: 40px; padding: 0 12px; box-sizing: border-box; width: 100%; }
textarea { height: auto; padding: 10px 12px; min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid #e6532e; outline-offset: 0; border-color: #e6532e; }
button { font-family: inherit; cursor: pointer; }
table { border-collapse: separate; border-spacing: 0; width: 100%; }
th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #5c5047; background: #ebe5d7; padding: 14px 16px; border-bottom: 1px solid #dfd3c0; white-space: nowrap; }
td { padding: 12px 16px; border-bottom: 1px solid #dfd3c0; vertical-align: top; background: #fffaf0; }
tr:last-child td { border-bottom: none; }
.tab { height: 40px; padding: 0 16px; border-radius: 6px; border: 1px solid #c9bba4; background: #fffaf0; color: #5c5047; font-weight: 700; font-size: 14px; white-space: nowrap; display: inline-flex; align-items: center; }
.navtab { font-size: 13px; padding: 0 9px; }
.tab-active { border-color: #e6532e; background: #fbeae4; color: #e6532e; }
.btn { height: 40px; padding: 0 16px; border-radius: 6px; border: 1px solid #c9bba4; background: #fffaf0; color: #1d1711; font-weight: 700; font-size: 14px; white-space: nowrap; display: inline-flex; align-items: center; }
.btn-primary { background: #e6532e; border-color: #e6532e; color: #ffffff; } .btn-primary:hover { background: #bf3918; color: #fff; }
.btn-small { height: 32px; padding: 0 12px; font-size: 13px; }
.label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #5c5047; margin-bottom: 6px; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 6px; font-weight: 700; font-size: 13px; white-space: nowrap; }
.pill-green { background: #d9efe0; color: #1e6b45; } .pill-grey { background: #ebe5d7; color: #5c5047; } .pill-orange { background: #fbeae4; color: #bf3918; } .pill-red { background: #fbe4e4; color: #bf3918; } .pill-blue { background: #e1ebf7; color: #24507a; }
.muted { color: #5c5047; } .small { font-size: 12px; } .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; } .neg { color: #bf3918; } .pos { color: #1e6b45; } .nowrap { white-space: nowrap; }
.card { background: #fffaf0; border: 1px solid #dfd3c0; border-radius: 6px; } .card.pad { padding: 24px; }
.kpi { background: #fffaf0; border: 1px solid #dfd3c0; border-radius: 6px; padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; } .kpi-v { font-size: 28px; font-weight: 800; } .kpi .label { margin-bottom: 4px; }
.kpi.attentie { border-color: #e6532e; } .let-op { color: #bf3918; font-weight: 700; font-size: 12.5px; }
.banner { background: #fbe4e4; border: 1px solid #e6532e; border-radius: 6px; padding: 12px 16px; color: #bf3918; display: flex; align-items: center; gap: 12px; } .banner-ok { background: #d9efe0; border-color: #1e6b45; color: #1e6b45; }
h1 { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -0.02em; } h2 { margin: 0; font-size: 18px; font-weight: 800; }
.dense td, .dense th { padding: 9px 8px; font-size: 12.5px; } .dense { overflow-x: auto; }
.shell { max-width: 1440px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { height: 76px; background: #fffaf0; border-bottom: 1px solid #dfd3c0; display: flex; align-items: center; padding: 0 52px; gap: 24px; }
.logo { display: flex; align-items: baseline; gap: 2px; color: #1d1711; } .logo span:first-child { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; } .logo .dot { width: 8px; height: 8px; border-radius: 50%; background: #85c16f; display: inline-block; }
.navbar { padding: 20px 52px 0 52px; display: flex; gap: 6px; flex-wrap: wrap; }
.page { padding: 28px 52px 52px 52px; display: flex; flex-direction: column; gap: 20px; }
.pagehead { display: flex; align-items: flex-end; gap: 16px; }
.tabs { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .sep { width: 1px; height: 28px; background: #dfd3c0; margin: 0 6px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; } .grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 24px; } .grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stack { display: flex; flex-direction: column; gap: 16px; } .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.crumbs a { color: #e6532e; font-weight: 700; }
tr.klik { cursor: pointer; } tr.klik:hover td { background: #f8f2e6; } .kpi.klik { cursor: pointer; } .kpi.klik:hover { border-color: #e6532e; }
.overlay { position: fixed; inset: 0; background: rgba(29, 23, 17, 0.45); z-index: 40; }
.modal { position: fixed; top: 40px; left: 50%; transform: translateX(-50%); width: 900px; max-width: calc(100vw - 32px); max-height: calc(100vh - 80px); overflow: auto; background: #fffaf0; border: 1px solid #c9bba4; border-radius: 8px; padding: 24px; display: flex; flex-direction: column; gap: 18px; z-index: 41; box-shadow: 0 12px 40px rgba(29, 23, 17, 0.25); box-sizing: border-box; }
.kanban { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; align-items: start; }
.kolom { background: #f3eee2; border-radius: 6px; padding: 8px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.kolom .label { display: flex; justify-content: space-between; }
.kaart { background: #fffaf0; border: 1px solid #dfd3c0; border-radius: 6px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.kaart b { font-size: 13.5px; }
.kaart[draggable="true"] { cursor: grab; } .kaart.sleept { opacity: 0.4; }
.kolom.doel { outline: 2px dashed #e6532e; outline-offset: -2px; background: #fdf3ee; } .kolom.over { background: #fbeae4; outline-style: solid; }
.kaart .acties { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.kaart .acties button { height: 26px; padding: 0 7px; font-size: 11.5px; border-radius: 5px; border: 1px solid #c9bba4; background: #fffaf0; font-weight: 700; }
.kaart .acties button:hover { border-color: #e6532e; color: #e6532e; }
details.uitklap summary { list-style: none; cursor: pointer; padding: 14px 18px; } details.uitklap summary::-webkit-details-marker { display: none; }
details.uitklap .pijl { display: inline-block; color: #5c5047; transition: transform 0.15s; } details.uitklap[open] .pijl { transform: rotate(90deg); }
details.uitklap .uitklap-inhoud { padding: 0 18px 18px 42px; display: flex; flex-direction: column; gap: 10px; }
.tijdlijn { display: flex; flex-direction: column; gap: 8px; } .tijdlijn div { padding: 8px 12px; background: #f3eee2; border-radius: 6px; display: flex; gap: 12px; align-items: baseline; }
.editor-bar { display: flex; gap: 4px; flex-wrap: wrap; padding: 6px; background: #f3eee2; border: 1px solid #c9bba4; border-bottom: 0; border-radius: 6px 6px 0 0; }
.editor-bar button { height: 28px; min-width: 28px; padding: 0 8px; font-size: 12.5px; font-weight: 700; border-radius: 5px; border: 1px solid #c9bba4; background: #fffaf0; color: #1d1711; }
.editor-bar button:hover { border-color: #e6532e; color: #e6532e; } .editor-bar .sep { width: 1px; height: 20px; background: #c9bba4; margin: 4px 4px; }
.editor { min-height: 140px; padding: 10px 12px; background: #fffaf0; border: 1px solid #c9bba4; border-radius: 0 0 6px 6px; font-size: 14px; line-height: 1.5; box-sizing: border-box; overflow: auto; }
.editor:focus { outline: 2px solid #e6532e; outline-offset: 0; border-color: #e6532e; }
.rijk { line-height: 1.5; } .rijk p { margin: 0 0 10px; } .rijk p:last-child { margin-bottom: 0; } .rijk h3 { font-size: 15px; font-weight: 800; margin: 12px 0 6px; } .rijk h3:first-child { margin-top: 0; }
.rijk ul, .rijk ol { margin: 0 0 10px 22px; padding: 0; } .rijk li { margin: 2px 0; } .rijk a { color: #e6532e; font-weight: 700; text-decoration: underline; } .rijk a.btn { color: #fff; text-decoration: none; } .rijk b, .rijk strong { font-weight: 800; }
.chip { display: inline-block; padding: 2px 8px; border-radius: 4px; background: #ebe5d7; font-size: 12px; margin: 2px 4px 2px 0; }
.klikmodel { position: fixed; right: 16px; bottom: 16px; background: #1d1711; color: #fffaf0; padding: 8px 14px; border-radius: 6px; font-size: 12px; opacity: 0.85; z-index: 50; }

.menu-knop { display: none; }
.kanban.week { grid-template-columns: repeat(7, minmax(0, 1fr)); }
/* Agenda: de weekknoppen, en de dagenstrook die alleen op de telefoon te zien is. */
.weeknav { display: flex; gap: 8px; }
.weekstrook { display: none; }
.weekstrook .dag { background: #f3eee2; border-radius: 6px; padding: 7px 2px; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.weekstrook .dagnaam { font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #5c5047; }
.weekstrook .dagnr { font-size: 15px; font-weight: 800; line-height: 1.2; }
.weekstrook .stip { width: 5px; height: 5px; border-radius: 50%; background: #e6532e; margin-top: 1px; }
.weekstrook .stip.uit { background: transparent; }
.weekstrook .dag.nu { background: #fbeae4; outline: 2px solid #e6532e; outline-offset: -2px; }
.weekstrook .dag.nu .dagnaam, .weekstrook .dag.nu .dagnr { color: #bf3918; }
.alleen-mobiel { display: none; }
/* Het stappenfilter in de pipeline: dezelfde labels als in de kolom Stap, maar klikbaar. */
a.stapfilter { cursor: pointer; }
a.stapfilter:hover { filter: brightness(0.93); }
a.stapfilter.actief { outline: 2px solid currentColor; outline-offset: 1px; }
a.stapfilter .aantal { opacity: 0.65; font-weight: 400; }

/* ---------- kleine schermen (telefoon) ---------- */
@media (max-width: 700px) {
  .topbar { padding: 10px 16px; height: auto; flex-wrap: wrap; gap: 4px 12px; }
  /* Het menu klapt in: alleen de Menu-knop en het actieve tabblad blijven staan. */
  .menu-knop { display: inline-flex; }
  .navbar .navtab { display: none; }
  .navbar .navtab.tab-active { display: inline-flex; }
  .navbar.open .navtab { display: inline-flex; }
  /* De agenda toont op de telefoon de week als strook, en daaronder alleen de dagen waar iets staat. */
  .kolom.leeg { display: none; }
  .kanban.week .kolom { min-height: 0; }  /* een dag is zo hoog als wat erin staat */
  .weekstrook { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-bottom: 14px; }
  .weeknav { width: 100%; }
  .weeknav .btn { flex: 1; justify-content: center; padding: 0 8px; }
  .weekwoord { display: none; }  /* "Vorige week" wordt "Vorige", zo passen drie knoppen op één regel */
  .alleen-mobiel { display: inline; }
  .ondertitel { display: none; }
  .navbar { padding: 12px 16px 0 16px; }
  .page { padding: 16px 16px 40px 16px; }
  h1 { font-size: 26px; }
  .pagehead { flex-wrap: wrap; align-items: flex-start; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kanban, .kanban.week { grid-template-columns: 1fr; }
  .kpi { padding: 14px 16px; } .kpi-v { font-size: 24px; }
  input, select, textarea { font-size: 16px; } /* voorkomt automatisch inzoomen op de iPhone */
  .card.pad { padding: 16px; }
  .uitklap-inhoud { padding: 0 16px 16px 16px; }
  .modal { top: 8px; }
  .banner { flex-wrap: wrap; }
  /* Compactere tabbladen, zodat rijtjes als alle/Concept/Open/Ingevuld/Gesloten op één regel passen. */
  .tabs { gap: 6px; }
  .tabs .tab { height: 34px; padding: 0 10px; font-size: 13px; }
  /* Een tabel met class "stapel" wordt op de telefoon een lijst kaartjes: korte velden twee naast
     elkaar, lange velden (class "breed", en de eerste en laatste cel) over de volle breedte. */
  table.stapel thead { display: none; }
  table.stapel, table.stapel tbody { display: block; width: 100%; }
  table.stapel tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 16px; border: 1px solid #dfd3c0; border-radius: 6px; margin-bottom: 10px; background: #fffaf0; padding: 12px 14px; box-sizing: border-box; }
  table.stapel td { display: block; width: auto; border: none; padding: 4px 0; text-align: left; white-space: normal; background: none; }
  table.stapel td:first-child, table.stapel td:last-child, table.stapel td.breed { grid-column: 1 / -1; }
  table.stapel td:empty { display: none; }
  table.stapel td[data-kop]::before { content: attr(data-kop); display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #5c5047; margin-bottom: 2px; }
}
