/* Desktop in de stijl van de telefoon (Kwin 2026-10-28, keuze A "Groene band bovenaan"), only from 821px.
   Since huisstijl D (2026-11-06) the band is black to graphite instead of green; the build is unchanged:
   the deep green band of the phone runs behind the top bar and the page head, the main numbers sit as white
   blocks half on the band, search and filters are round pills, lists and charts are white 24px blocks on light grey.
   Phone styles (look.css, max-width:820px) are untouched; the page logic is the same, this file only paints. */
@media (min-width:821px){
  :root{--r1d-top:#0A0A0A;--r1d-bottom:#2C2C2E;--d-bg:#F5F5F7;--d-card:#FFFFFF;--d-ink:#0A0A0A;--d-muted:#6E6E73;--d-hair:#EBEBED;--d-glass:rgba(255,255,255,.14);--d-glass-hover:rgba(255,255,255,.22);--d-on:#FFFFFF;--d-on-soft:rgba(255,255,255,.78);--d-band-h:280px}
  html[data-theme="dark"]{--r1d-top:#000000;--r1d-bottom:#3A3A3C;--d-bg:var(--calm-bg,#0F1214);--d-card:var(--dk-surface,#1A1F23);--d-ink:var(--dk-ink,#E9EDEF);--d-muted:var(--dk-muted,#A7B1B8);--d-hair:var(--dk-line,#2E363C)}

  /* 1. The band: behind the top bar and the page head, down to the middle of the first row of numbers (desktop.js measures it). */
  html body #mainApp#mainApp,html body #mainApp#mainApp#mainApp #appMain{background:var(--d-bg)!important}
  html body #mainApp#mainApp#mainApp #content{background:transparent!important}
  html body #mainApp#mainApp#mainApp #appMain{position:relative;isolation:isolate}
  html body #mainApp#mainApp#mainApp #appMain::before{content:"";position:absolute;inset:0 0 auto 0;height:var(--d-band-h);background:linear-gradient(180deg,var(--r1d-top) 0%,var(--r1d-bottom) 100%);z-index:-1;pointer-events:none}
  html body #mainApp#mainApp#mainApp #appMain>.topbar{background:transparent!important;border-bottom:0!important;box-shadow:none!important;backdrop-filter:none!important}
  html body #mainApp#mainApp#mainApp #appMain>.topbar .page-title{color:var(--d-on-soft)!important;font-weight:600!important}
  html body #mainApp#mainApp#mainApp #appMain>.topbar :is(.icon-btn,#accountAvatar){border:0!important;background:var(--d-glass)!important;color:var(--d-on)!important;box-shadow:none!important}
  html body #mainApp#mainApp#mainApp #appMain>.topbar :is(.icon-btn,#accountAvatar) .icon{color:var(--d-on)!important}
  html body #mainApp#mainApp#mainApp #appMain>.topbar #quickNew{border:0!important;border-radius:999px!important;background:#fff!important;color:var(--r1d-top)!important;box-shadow:none!important;font-weight:650!important}
  html body #mainApp#mainApp#mainApp #appMain>.topbar #quickNew .icon{color:var(--r1d-top)!important}
  html body #mainApp#mainApp#mainApp #appMain>.topbar #cloudSyncBadge{background:transparent!important;border:0!important;color:var(--d-on-soft)!important}

  /* 2. On the band: the page title and its line are white, the period is a glass pill, page buttons are pills. */
  html body #mainApp#mainApp#mainApp #content .page-head :is(h1,h1 *){color:var(--d-on)!important}
  html body #mainApp#mainApp#mainApp #content .page-head :is(.page-status,.page-status *,p){color:var(--d-on-soft)!important}
  html body #mainApp#mainApp#mainApp #content .page-head .period-seg{background:var(--d-glass)!important;border:0!important;box-shadow:none!important;border-radius:999px!important}
  html body #mainApp#mainApp#mainApp #content .page-head .period-seg .period-seg-btn{color:var(--d-on-soft)!important;background:transparent!important;border-radius:999px!important;box-shadow:none!important}
  html body #mainApp#mainApp#mainApp #content .page-head .period-seg .period-seg-btn.on{background:#fff!important;color:var(--r1d-top)!important}
  html body #mainApp#mainApp#mainApp #content :is(.page-head,.product-page-actions) :is(.btn,.page-filter-btn){border:0!important;border-radius:999px!important;background:var(--d-glass)!important;color:var(--d-on)!important;box-shadow:none!important}
  html body #mainApp#mainApp#mainApp #content :is(.page-head,.product-page-actions) :is(.btn,.page-filter-btn) .icon{color:var(--d-on)!important}
  html body #mainApp#mainApp#mainApp #content :is(.page-head,.product-page-actions) .btn.primary{background:#fff!important;color:var(--r1d-top)!important}
  html body #mainApp#mainApp#mainApp #content :is(.page-head,.product-page-actions) .btn.primary .icon{color:var(--r1d-top)!important}
  html body #mainApp#mainApp#mainApp #content :is(.page-head,.product-page-actions) .btn:hover{background:var(--d-glass-hover)!important}
  html body #mainApp#mainApp#mainApp #content :is(.page-head,.product-page-actions) .btn.primary:hover{background:#F1F5F2!important}

  /* Settings: the menu and the form start a little under the band. */
  html body #mainApp#mainApp#mainApp #content .settings-center-layout{margin-top:24px!important}

  /* 3. Blocks: white, 24px corners, no borders or shadows, like the phone's widgets. */
  html body #mainApp#mainApp#mainApp #content :is(.card,.dashboard-kpi,.product-kpi){border:0!important;border-radius:24px!important;background:var(--d-card)!important;box-shadow:none!important}
  html body #mainApp#mainApp#mainApp #content .dashboard-kpi-profit{background:var(--d-card)!important}
  html body #mainApp#mainApp#mainApp #content .metric-icon{background:var(--d-bg)!important;border:0!important;border-radius:50%!important}
  html body #mainApp#mainApp#mainApp #content .metric-value{letter-spacing:-.03em!important}

  /* Buttons in the page: pills; the main one deep green like the phone's "Herinnering sturen". */
  html body #mainApp#mainApp#mainApp #content .btn{border-radius:999px!important}
  html body #mainApp#mainApp#mainApp #content .btn.primary:not(:is(.page-head,.product-page-actions) *){background:var(--r1d-top)!important;border-color:var(--r1d-top)!important;color:#fff!important}
  html body #mainApp#mainApp#mainApp #content .btn.primary:not(:is(.page-head,.product-page-actions) *) .icon{color:#fff!important}
  html[data-theme="dark"] body #mainApp#mainApp#mainApp #content .btn.primary:not(:is(.page-head,.product-page-actions) *){background:var(--r1d-bottom)!important;border-color:var(--r1d-bottom)!important}

  /* 4. Search and filters: round pills on the grey, like the phone's. */
  html body #mainApp#mainApp#mainApp #content :is(.list-toolbar,.list-controls,.toolbar-card){background:transparent!important;border:0!important;box-shadow:none!important;padding-left:0!important;padding-right:0!important}
  html body #mainApp#mainApp#mainApp #content :is(.list-search-box,.list-search,.search-box){border-radius:999px!important;background:var(--d-card)!important;border:0!important;box-shadow:none!important}
  html body #mainApp#mainApp#mainApp #content :is(.list-search-box,.list-search,.search-box) input{background:transparent!important;border:0!important;box-shadow:none!important}
  html body #mainApp#mainApp#mainApp #content :is(.filter-btn,.list-chip-select,.list-chip-more){border:0!important;border-radius:999px!important;background:var(--d-card)!important;color:var(--d-ink)!important;box-shadow:none!important}
  html body #mainApp#mainApp#mainApp #content .filter-btn.active{background:var(--r1d-top)!important;color:#fff!important}

  /* 5. Tables: calm header, hairlines, no boxed action buttons. */
  html body #mainApp#mainApp#mainApp #content .table-card{padding:6px 12px!important;overflow:hidden}
  html body #mainApp#mainApp#mainApp #content .table-card th{background:transparent!important;color:var(--d-muted)!important;text-transform:none!important;letter-spacing:0!important;font-size:13px!important;font-weight:600!important}
  html body #mainApp#mainApp#mainApp #content .table-card :is(td,th){border-color:var(--d-hair)!important}
  html body #mainApp#mainApp#mainApp #content .table-card tr:last-child td{border-bottom:0!important}
  html body #mainApp#mainApp#mainApp #content .table-card .row-menu-btn,html body #mainApp#mainApp#mainApp #content .table-card td:last-child .icon-btn{border:0!important;background:transparent!important;box-shadow:none!important}

  /* 6. Menu: white, the active page a soft green pill. */
  html body #mainApp#mainApp#mainApp #sidebar{background:var(--d-card)!important;border-right:0!important}
  html body #mainApp#mainApp#mainApp #sidebar .nav-item{border-radius:12px!important}
  html body #mainApp#mainApp#mainApp #sidebar .nav-item.active{color:var(--r1d-top)!important;box-shadow:none!important;border:0!important}
  html[data-theme="dark"] body #mainApp#mainApp#mainApp #sidebar .nav-item.active{color:var(--d-ink)!important}
  html body #mainApp#mainApp#mainApp #sidebar .nav-item.active::before{display:none!important}
  /* Huisstijl D (Kwin 2026-11-06): the active page is a soft grey pill, not green. */
  html body #mainApp#mainApp#mainApp #sidebar .nav-item.active{background:#F0F0F2!important}
  html body #mainApp#mainApp#mainApp #sidebar .nav-item.active .icon{color:var(--d-ink)!important}
  html[data-theme="dark"] body #mainApp#mainApp#mainApp #sidebar .nav-item.active{background:#2C2C2E!important}

  /* 7. Popups: the phone's sheet look, centred: light grey, round corners, round close button, white fields. */
  html body #modalRoot#modalRoot#modalRoot .modal:not(.invoice-page){border:0!important;border-radius:28px!important;background:var(--d-bg)!important;box-shadow:0 30px 80px rgba(0,0,0,.25)!important}
  html body #modalRoot#modalRoot#modalRoot .modal:not(.invoice-page) :is(.modal-head,.modal-body,.modal-foot){background:transparent!important;border:0!important}
  html body #modalRoot#modalRoot#modalRoot .modal:not(.invoice-page) .modal-head h3{font-size:24px!important;font-weight:750!important;letter-spacing:-.03em!important}
  html body #modalRoot#modalRoot#modalRoot .modal:not(.invoice-page) .modal-close{width:38px!important;height:38px!important;border:0!important;border-radius:50%!important;background:var(--d-card)!important;box-shadow:none!important}
  html body #modalRoot#modalRoot#modalRoot .modal:not(.invoice-page) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background-color:var(--d-card)!important;border-color:transparent!important;border-radius:14px!important}
  html body #modalRoot#modalRoot#modalRoot .modal:not(.invoice-page) .btn{border-radius:999px!important}
  html body #modalRoot#modalRoot#modalRoot .modal:not(.invoice-page) .btn.primary{background:var(--r1d-top)!important;border-color:var(--r1d-top)!important;color:#fff!important}
  html[data-theme="dark"] body #modalRoot#modalRoot#modalRoot .modal:not(.invoice-page) .btn.primary{background:var(--r1d-bottom)!important;border-color:var(--r1d-bottom)!important}
  html body #modalRoot#modalRoot#modalRoot .modal:not(.invoice-page) :is(label,.field-label)>span:first-child{text-transform:none!important;letter-spacing:0!important}

  /* Donker: no white surfaces (the dark audit forbids them), so the white pills on the band become bright glass. */
  html[data-theme="dark"] body #mainApp#mainApp#mainApp #appMain>.topbar #quickNew,html[data-theme="dark"] body #mainApp#mainApp#mainApp #content :is(.page-head,.product-page-actions) .btn.primary,html[data-theme="dark"] body #mainApp#mainApp#mainApp #content .page-head .period-seg .period-seg-btn.on{background:rgba(255,255,255,.24)!important;color:#fff!important}
  html[data-theme="dark"] body #mainApp#mainApp#mainApp #appMain>.topbar #quickNew .icon,html[data-theme="dark"] body #mainApp#mainApp#mainApp #content :is(.page-head,.product-page-actions) .btn.primary .icon{color:#fff!important}
}
