/* =========================================================
   CLEANOPRO PARTNER PORTAL
   FRONT-END PORTAL / OWNER + TEAM
   ========================================================= */

:root{
  --cp-green:#24e07b;
  --cp-green-dark:#10b963;
  --cp-ink:#071417;
  --cp-ink-2:#0b2026;
  --cp-ink-3:#102c34;
  --cp-bg:#f4f7f5;
  --cp-card:#ffffff;
  --cp-text:#15242a;
  --cp-muted:#6e7d83;
  --cp-line:#e1e8e4;
  --cp-soft:#eef5f1;
  --cp-soft-green:#e9fbf2;
  --cp-warning:#f2a43a;
  --cp-danger:#e15b64;
  --cp-blue:#4d86d9;
  --cp-purple:#8b6ad9;
  --cp-shadow:0 14px 38px rgba(7,20,23,.08);
  --cp-radius:18px;
  --cp-radius-sm:12px;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  color:var(--cp-text);
  background:var(--cp-bg);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing:antialiased;
}

button,
input,
select,
textarea{
  font:inherit;
}

button{
  cursor:pointer;
}

a{
  color:inherit;
  text-decoration:none;
}

img{
  max-width:100%;
}

.hidden{
  display:none !important;
}

.cp-portal{
  min-height:100vh;
  background:
    linear-gradient(180deg,#eff5f2 0,#f7faf8 240px,#f4f7f5 100%);
}

/* =========================================================
   TOP
   ========================================================= */

.cp-topbar{
  position:sticky;
  top:0;
  z-index:5000;
  color:#fff;
  background:
    radial-gradient(circle at 0 0,rgba(36,224,123,.12),transparent 32%),
    linear-gradient(135deg,#071417,#0b2329);
  box-shadow:0 10px 30px rgba(0,0,0,.14);
}

.cp-topbar-inner{
  width:min(1500px,calc(100% - 34px));
  min-height:74px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:0 auto;
}

.cp-brand{
  display:flex;
  align-items:center;
  gap:13px;
  min-width:0;
}

.cp-brand-mark{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  flex:none;
  border-radius:12px;
  color:#07140d;
  background:linear-gradient(135deg,var(--cp-green),#18cf6e);
  font-weight:1000;
  box-shadow:0 10px 22px rgba(36,224,123,.18);
}

.cp-brand-copy{
  min-width:0;
}

.cp-brand-copy strong{
  display:block;
  color:#fff;
  font-size:15px;
  font-weight:950;
  line-height:1.1;
}

.cp-brand-copy span{
  display:block;
  margin-top:3px;
  color:rgba(255,255,255,.58);
  font-size:10px;
  font-weight:750;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.cp-top-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.cp-role-switch{
  display:flex;
  gap:4px;
  padding:4px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px;
  background:rgba(255,255,255,.055);
}

.cp-role-btn{
  min-height:34px;
  padding:0 11px;
  border:0;
  border-radius:9px;
  color:rgba(255,255,255,.72);
  background:transparent;
  font-size:11px;
  font-weight:900;
}

.cp-role-btn.active{
  color:#07140d;
  background:var(--cp-green);
}

.cp-icon-btn{
  position:relative;
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.10);
  border-radius:11px;
  color:#fff;
  background:rgba(255,255,255,.055);
}

.cp-notify-dot{
  position:absolute;
  top:7px;
  right:7px;
  width:8px;
  height:8px;
  border:2px solid var(--cp-ink);
  border-radius:50%;
  background:var(--cp-green);
}

.cp-user-chip{
  min-height:42px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:4px 7px 4px 5px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:13px;
  background:rgba(255,255,255,.055);
}

.cp-avatar{
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  flex:none;
  border-radius:10px;
  color:#082016;
  background:var(--cp-green);
  font-size:11px;
  font-weight:1000;
}

.cp-user-chip div{
  min-width:0;
}

.cp-user-chip strong{
  display:block;
  color:#fff;
  font-size:11px;
  font-weight:900;
}

.cp-user-chip span{
  display:block;
  margin-top:1px;
  color:rgba(255,255,255,.55);
  font-size:9px;
  font-weight:700;
}

/* =========================================================
   LAYOUT
   ========================================================= */

.cp-shell{
  width:min(1500px,calc(100% - 34px));
  display:grid;
  grid-template-columns:235px minmax(0,1fr);
  gap:22px;
  margin:22px auto 38px;
}

.cp-sidebar{
  position:sticky;
  top:96px;
  align-self:start;
  padding:14px;
  border:1px solid var(--cp-line);
  border-radius:20px;
  background:rgba(255,255,255,.94);
  box-shadow:var(--cp-shadow);
}

.cp-nav-label{
  margin:8px 9px 8px;
  color:#95a19d;
  font-size:9px;
  font-weight:950;
  letter-spacing:.10em;
  text-transform:uppercase;
}

.cp-nav{
  display:grid;
  gap:5px;
}

.cp-nav-btn{
  min-height:44px;
  display:flex;
  align-items:center;
  gap:11px;
  padding:0 12px;
  border:0;
  border-radius:12px;
  color:#46575d;
  background:transparent;
  text-align:left;
  font-size:12px;
  font-weight:850;
  transition:.15s ease;
}

.cp-nav-btn:hover{
  color:#163128;
  background:#f0f6f2;
}

.cp-nav-btn.active{
  color:#082016;
  background:linear-gradient(135deg,var(--cp-soft-green),#f0fbf5);
  box-shadow:inset 0 0 0 1px rgba(36,224,123,.18);
}

.cp-nav-icon{
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  flex:none;
  border-radius:9px;
  color:#385048;
  background:#edf3ef;
  font-size:12px;
  font-weight:1000;
}

.cp-nav-btn.active .cp-nav-icon{
  color:#07140d;
  background:var(--cp-green);
}

.cp-sidebar-card{
  margin-top:16px;
  padding:14px;
  border-radius:15px;
  color:#fff;
  background:
    radial-gradient(circle at 0 0,rgba(36,224,123,.16),transparent 38%),
    linear-gradient(145deg,#0a1d22,#102e35);
}

.cp-sidebar-card strong{
  display:block;
  font-size:12px;
  font-weight:950;
}

.cp-sidebar-card p{
  margin:6px 0 0;
  color:rgba(255,255,255,.63);
  font-size:10px;
  line-height:1.45;
}

.cp-sidebar-card button{
  width:100%;
  min-height:38px;
  margin-top:12px;
  border:0;
  border-radius:10px;
  color:#07140d;
  background:var(--cp-green);
  font-size:10px;
  font-weight:950;
}

.cp-main{
  min-width:0;
}

.cp-view{
  display:none;
}

.cp-view.active{
  display:block;
}

.cp-page-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin:0 0 18px;
}

.cp-page-title h1{
  margin:0;
  color:#12272e;
  font-size:clamp(26px,3vw,38px);
  font-weight:950;
  letter-spacing:-.045em;
  line-height:1.02;
}

.cp-page-title p{
  margin:7px 0 0;
  color:var(--cp-muted);
  font-size:12px;
  line-height:1.55;
}

.cp-page-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.cp-btn{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 14px;
  border:1px solid transparent;
  border-radius:11px;
  font-size:11px;
  font-weight:900;
  transition:.15s ease;
}

.cp-btn:hover{
  transform:translateY(-1px);
}

.cp-btn-primary{
  color:#06150d;
  background:linear-gradient(135deg,var(--cp-green),#18cf6e);
  box-shadow:0 9px 22px rgba(36,224,123,.18);
}

.cp-btn-dark{
  color:#fff;
  background:#0a2026;
}

.cp-btn-soft{
  color:#29453d;
  border-color:#dce7e1;
  background:#fff;
}

.cp-btn-danger{
  color:#a83640;
  border-color:#f1ccd0;
  background:#fff5f6;
}

.cp-btn-small{
  min-height:34px;
  padding:0 10px;
  border-radius:9px;
  font-size:10px;
}

/* =========================================================
   CARDS + GRID
   ========================================================= */

.cp-card{
  border:1px solid var(--cp-line);
  border-radius:var(--cp-radius);
  background:rgba(255,255,255,.96);
  box-shadow:var(--cp-shadow);
}

.cp-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:17px 18px 13px;
}

.cp-card-head h2,
.cp-card-head h3{
  margin:0;
  color:#193038;
  font-size:14px;
  font-weight:950;
  letter-spacing:-.02em;
}

.cp-card-head p{
  margin:4px 0 0;
  color:var(--cp-muted);
  font-size:10px;
}

.cp-card-body{
  padding:0 18px 18px;
}

.cp-grid{
  display:grid;
  gap:14px;
}

.cp-grid-4{
  grid-template-columns:repeat(4,minmax(0,1fr));
}

.cp-grid-3{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.cp-grid-2{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.cp-dashboard-grid{
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(330px,.75fr);
  gap:16px;
  margin-top:16px;
}

.cp-stat{
  position:relative;
  overflow:hidden;
  min-height:118px;
  padding:18px;
  border:1px solid var(--cp-line);
  border-radius:17px;
  background:#fff;
  box-shadow:var(--cp-shadow);
}

.cp-stat::after{
  position:absolute;
  right:-22px;
  top:-22px;
  width:84px;
  height:84px;
  content:"";
  border-radius:50%;
  background:rgba(36,224,123,.07);
}

.cp-stat-label{
  color:#76867f;
  font-size:10px;
  font-weight:850;
}

.cp-stat-value{
  margin-top:8px;
  color:#12282f;
  font-size:29px;
  font-weight:1000;
  letter-spacing:-.045em;
}

.cp-stat-note{
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:8px;
  color:#86938e;
  font-size:9.5px;
  font-weight:750;
}

.cp-stat-note b{
  color:#0e9456;
}

/* =========================================================
   OWNER INTAKE
   ========================================================= */

.cp-intake-list{
  display:grid;
  gap:10px;
}

.cp-intake{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr) auto;
  gap:14px;
  align-items:center;
  padding:14px;
  border:1px solid #e4ebe7;
  border-radius:14px;
  background:#fbfdfc;
}

.cp-intake-main{
  min-width:0;
}

.cp-intake-main strong{
  display:flex;
  align-items:center;
  gap:8px;
  color:#20383f;
  font-size:12px;
  font-weight:950;
}

.cp-intake-main p{
  margin:5px 0 0;
  color:#74837f;
  font-size:10.5px;
  line-height:1.45;
}

.cp-intake-meta{
  display:grid;
  gap:5px;
  color:#596b65;
  font-size:10px;
  font-weight:750;
}

.cp-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:24px;
  padding:0 8px;
  border-radius:999px;
  font-size:9px;
  font-weight:950;
  white-space:nowrap;
}

.cp-pill-green{
  color:#097b47;
  background:#e6f9ef;
}

.cp-pill-orange{
  color:#9a6112;
  background:#fff3df;
}

.cp-pill-blue{
  color:#3268a7;
  background:#eaf2ff;
}

.cp-pill-red{
  color:#a33e47;
  background:#ffebed;
}

.cp-pill-gray{
  color:#64736e;
  background:#edf2ef;
}

.cp-pill-purple{
  color:#6749ac;
  background:#f0eafe;
}

/* =========================================================
   WEEK PLANNER
   ========================================================= */

.cp-planner-tools{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.cp-week-nav{
  display:flex;
  align-items:center;
  gap:7px;
}

.cp-week-label{
  min-width:180px;
  color:#22393f;
  font-size:12px;
  font-weight:950;
  text-align:center;
}

.cp-filter-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.cp-input,
.cp-select,
.cp-textarea{
  width:100%;
  min-height:42px;
  padding:0 12px;
  border:1px solid #dce5e1;
  border-radius:11px;
  outline:none;
  color:#21383f;
  background:#fff;
  font-size:11px;
  font-weight:750;
  transition:border-color .15s ease,box-shadow .15s ease;
}

.cp-textarea{
  min-height:92px;
  padding:11px 12px;
  resize:vertical;
}

.cp-input:focus,
.cp-select:focus,
.cp-textarea:focus{
  border-color:rgba(36,224,123,.75);
  box-shadow:0 0 0 3px rgba(36,224,123,.10);
}

.cp-filter-row .cp-input{
  width:210px;
}

.cp-filter-row .cp-select{
  width:155px;
}

.cp-week-grid{
  display:grid;
  grid-template-columns:repeat(7,minmax(170px,1fr));
  gap:9px;
  overflow-x:auto;
  padding-bottom:4px;
}

.cp-day{
  min-width:170px;
  min-height:450px;
  border:1px solid var(--cp-line);
  border-radius:16px;
  background:rgba(255,255,255,.88);
  box-shadow:0 8px 24px rgba(7,20,23,.045);
}

.cp-day.today{
  border-color:rgba(36,224,123,.60);
  box-shadow:0 0 0 3px rgba(36,224,123,.08);
}

.cp-day-head{
  position:sticky;
  top:0;
  z-index:2;
  padding:12px 12px 10px;
  border-bottom:1px solid #edf1ef;
  border-radius:16px 16px 0 0;
  background:#fff;
}

.cp-day-head strong{
  display:block;
  color:#263d44;
  font-size:11px;
  font-weight:950;
  text-transform:capitalize;
}

.cp-day-head span{
  display:block;
  margin-top:2px;
  color:#93a09b;
  font-size:9px;
  font-weight:750;
}

.cp-day-list{
  display:grid;
  gap:8px;
  padding:9px;
}

.cp-job-mini{
  position:relative;
  padding:10px;
  border:1px solid #e3eae6;
  border-left:4px solid var(--cp-blue);
  border-radius:12px;
  background:#fff;
  box-shadow:0 5px 14px rgba(7,20,23,.04);
  cursor:pointer;
}

.cp-job-mini[data-status="nieuw"],
.cp-job-mini[data-status="te_plannen"]{
  border-left-color:var(--cp-warning);
}

.cp-job-mini[data-status="gepland"]{
  border-left-color:var(--cp-blue);
}

.cp-job-mini[data-status="onderweg"],
.cp-job-mini[data-status="gestart"]{
  border-left-color:var(--cp-purple);
}

.cp-job-mini[data-status="afgerond"]{
  border-left-color:var(--cp-green-dark);
}

.cp-job-mini[data-status="probleem"]{
  border-left-color:var(--cp-danger);
}

.cp-job-mini-time{
  color:#71817c;
  font-size:9px;
  font-weight:900;
}

.cp-job-mini strong{
  display:block;
  margin-top:4px;
  color:#263e45;
  font-size:10.5px;
  font-weight:950;
  line-height:1.25;
}

.cp-job-mini span{
  display:block;
  margin-top:4px;
  color:#7b8985;
  font-size:9px;
  line-height:1.35;
}

.cp-job-mini-person{
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:7px;
  color:#546862;
  font-size:8.5px;
  font-weight:850;
}

.cp-person-dot{
  width:18px;
  height:18px;
  display:grid;
  place-items:center;
  flex:none;
  border-radius:6px;
  color:#072116;
  background:#dff7ea;
  font-size:7px;
  font-weight:1000;
}

/* =========================================================
   JOB TABLE
   ========================================================= */

.cp-table-wrap{
  overflow:auto;
}

.cp-table{
  width:100%;
  border-collapse:collapse;
  min-width:980px;
}

.cp-table th{
  padding:11px 12px;
  border-bottom:1px solid var(--cp-line);
  color:#8b9994;
  background:#fbfdfc;
  font-size:9px;
  font-weight:950;
  letter-spacing:.06em;
  text-align:left;
  text-transform:uppercase;
}

.cp-table td{
  padding:13px 12px;
  border-bottom:1px solid #edf1ef;
  color:#3c5157;
  font-size:10.5px;
  vertical-align:middle;
}

.cp-table tr:last-child td{
  border-bottom:0;
}

.cp-table tr:hover td{
  background:#fbfdfc;
}

.cp-table strong{
  display:block;
  color:#233b42;
  font-size:11px;
  font-weight:950;
}

.cp-table small{
  display:block;
  margin-top:3px;
  color:#8b9894;
  font-size:9px;
}

.cp-table-actions{
  display:flex;
  gap:6px;
  justify-content:flex-end;
}

/* =========================================================
   TEAM
   ========================================================= */

.cp-team-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:13px;
}

.cp-team-card{
  padding:15px;
  border:1px solid var(--cp-line);
  border-radius:16px;
  background:#fff;
  box-shadow:0 8px 24px rgba(7,20,23,.045);
}

.cp-team-top{
  display:flex;
  align-items:center;
  gap:11px;
}

.cp-team-avatar{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  flex:none;
  border-radius:13px;
  color:#072116;
  background:linear-gradient(135deg,var(--cp-green),#baf4d6);
  font-size:12px;
  font-weight:1000;
}

.cp-team-top strong{
  display:block;
  color:#223940;
  font-size:12px;
  font-weight:950;
}

.cp-team-top span{
  display:block;
  margin-top:2px;
  color:#8b9894;
  font-size:9.5px;
}

.cp-team-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:7px;
  margin-top:14px;
}

.cp-team-stat{
  padding:9px 7px;
  border-radius:10px;
  background:#f5f8f6;
  text-align:center;
}

.cp-team-stat b{
  display:block;
  color:#253e44;
  font-size:12px;
  font-weight:1000;
}

.cp-team-stat span{
  display:block;
  margin-top:2px;
  color:#8d9995;
  font-size:8px;
  font-weight:750;
}

.cp-team-availability{
  display:flex;
  justify-content:space-between;
  gap:8px;
  margin-top:12px;
  color:#687873;
  font-size:9px;
  font-weight:800;
}

/* =========================================================
   FORMS
   ========================================================= */

.cp-form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.cp-form-grid-3{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}

.cp-field label{
  display:block;
  margin:0 0 6px 2px;
  color:#60716b;
  font-size:9px;
  font-weight:900;
  letter-spacing:.02em;
}

.cp-field.full{
  grid-column:1 / -1;
}

.cp-help{
  margin-top:5px;
  color:#9aa5a1;
  font-size:8.5px;
  line-height:1.35;
}

.cp-divider{
  height:1px;
  margin:16px 0;
  background:var(--cp-line);
}

/* =========================================================
   CHECKLIST
   ========================================================= */

.cp-checklist{
  display:grid;
  gap:7px;
}

.cp-check{
  display:grid;
  grid-template-columns:22px minmax(0,1fr) auto;
  gap:8px;
  align-items:center;
  padding:9px 10px;
  border:1px solid #e5ebe8;
  border-radius:11px;
  background:#fff;
}

.cp-check input{
  width:17px;
  height:17px;
  accent-color:var(--cp-green-dark);
}

.cp-check span{
  color:#3a504f;
  font-size:10px;
  font-weight:800;
}

.cp-check small{
  color:#96a19d;
  font-size:8.5px;
}

/* =========================================================
   TEAM MOBILE JOBS
   ========================================================= */

.cp-my-day{
  display:grid;
  gap:12px;
}

.cp-my-job{
  overflow:hidden;
  border:1px solid var(--cp-line);
  border-radius:17px;
  background:#fff;
  box-shadow:var(--cp-shadow);
}

.cp-my-job-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:15px;
  border-bottom:1px solid #eef2f0;
}

.cp-my-job-head strong{
  color:#203940;
  font-size:13px;
  font-weight:950;
}

.cp-my-job-head p{
  margin:4px 0 0;
  color:#7b8985;
  font-size:10px;
  line-height:1.45;
}

.cp-my-job-body{
  padding:14px 15px 15px;
}

.cp-job-info-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  margin-bottom:13px;
}

.cp-info-tile{
  padding:9px;
  border-radius:10px;
  background:#f4f7f5;
}

.cp-info-tile span{
  display:block;
  color:#8b9894;
  font-size:8px;
  font-weight:850;
}

.cp-info-tile b{
  display:block;
  margin-top:3px;
  color:#2c444a;
  font-size:10px;
  font-weight:950;
}

.cp-job-notice{
  margin:12px 0;
  padding:10px 11px;
  border:1px solid #e7edea;
  border-radius:11px;
  color:#536762;
  background:#fbfdfc;
  font-size:9.5px;
  line-height:1.5;
}

.cp-job-notice strong{
  color:#29453d;
}

.cp-job-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:13px;
}

/* =========================================================
   ACTIVITY / TIMELINE
   ========================================================= */

.cp-activity{
  display:grid;
  gap:0;
}

.cp-activity-item{
  position:relative;
  display:grid;
  grid-template-columns:28px minmax(0,1fr);
  gap:9px;
  padding:9px 0;
}

.cp-activity-item:not(:last-child)::after{
  position:absolute;
  left:13px;
  top:31px;
  bottom:-5px;
  width:1px;
  content:"";
  background:#e4eae7;
}

.cp-activity-dot{
  width:27px;
  height:27px;
  display:grid;
  place-items:center;
  border-radius:9px;
  color:#173a2d;
  background:#e9f8f0;
  font-size:9px;
  font-weight:950;
}

.cp-activity-copy strong{
  display:block;
  color:#354b50;
  font-size:10px;
  font-weight:900;
}

.cp-activity-copy span{
  display:block;
  margin-top:3px;
  color:#93a09b;
  font-size:8.5px;
  line-height:1.4;
}

/* =========================================================
   EMPTY
   ========================================================= */

.cp-empty{
  padding:34px 18px;
  text-align:center;
}

.cp-empty-icon{
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  margin:0 auto 11px;
  border-radius:16px;
  color:#0a6f42;
  background:#e8f8f0;
  font-size:20px;
}

.cp-empty strong{
  display:block;
  color:#31474d;
  font-size:12px;
  font-weight:950;
}

.cp-empty p{
  max-width:360px;
  margin:6px auto 0;
  color:#8a9793;
  font-size:10px;
  line-height:1.5;
}

/* =========================================================
   MODALS
   ========================================================= */

.cp-modal-backdrop{
  position:fixed;
  z-index:10000;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(3,12,15,.66);
  backdrop-filter:blur(6px);
}

.cp-modal-backdrop.open{
  display:flex;
}

.cp-modal{
  width:min(760px,100%);
  max-height:min(90vh,900px);
  overflow:auto;
  border:1px solid rgba(255,255,255,.20);
  border-radius:20px;
  background:#fff;
  box-shadow:0 30px 90px rgba(0,0,0,.28);
}

.cp-modal.wide{
  width:min(980px,100%);
}

.cp-modal-head{
  position:sticky;
  top:0;
  z-index:3;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:17px 18px;
  border-bottom:1px solid var(--cp-line);
  background:#fff;
}

.cp-modal-head h3{
  margin:0;
  color:#1d353c;
  font-size:15px;
  font-weight:950;
  letter-spacing:-.02em;
}

.cp-modal-close{
  width:35px;
  height:35px;
  border:0;
  border-radius:10px;
  color:#4f615c;
  background:#f1f5f2;
  font-size:17px;
}

.cp-modal-body{
  padding:18px;
}

.cp-modal-foot{
  position:sticky;
  bottom:0;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  padding:13px 18px;
  border-top:1px solid var(--cp-line);
  background:#fff;
}

/* =========================================================
   TOAST
   ========================================================= */

.cp-toast-wrap{
  position:fixed;
  z-index:20000;
  right:18px;
  bottom:18px;
  display:grid;
  gap:8px;
}

.cp-toast{
  min-width:250px;
  max-width:360px;
  padding:12px 13px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:13px;
  color:#fff;
  background:#0b2026;
  box-shadow:0 18px 40px rgba(0,0,0,.22);
  animation:cpToastIn .18s ease;
}

.cp-toast strong{
  display:block;
  font-size:10.5px;
  font-weight:950;
}

.cp-toast span{
  display:block;
  margin-top:3px;
  color:rgba(255,255,255,.68);
  font-size:9px;
  line-height:1.4;
}

@keyframes cpToastIn{
  from{opacity:0;transform:translateY(8px);}
  to{opacity:1;transform:none;}
}

/* =========================================================
   OWNER ONLY / TEAM ONLY
   ========================================================= */

body[data-role="team"] .owner-only{
  display:none !important;
}

body[data-role="owner"] .team-only{
  display:none !important;
}

/* =========================================================
   MOBILE NAV
   ========================================================= */

.cp-mobile-nav{
  display:none;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media(max-width:1180px){

  .cp-grid-4{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .cp-team-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .cp-dashboard-grid{
    grid-template-columns:1fr;
  }

}

@media(max-width:900px){

  body{
    padding-bottom:76px;
  }

  .cp-topbar-inner{
    width:calc(100% - 22px);
  }

  .cp-user-chip div{
    display:none;
  }

  .cp-shell{
    width:calc(100% - 22px);
    display:block;
    margin-top:14px;
  }

  .cp-sidebar{
    display:none;
  }

  .cp-page-head{
    align-items:flex-start;
    flex-direction:column;
  }

  .cp-page-actions{
    width:100%;
    justify-content:flex-start;
  }

  .cp-grid-3,
  .cp-grid-2{
    grid-template-columns:1fr;
  }

  .cp-form-grid-3{
    grid-template-columns:1fr 1fr;
  }

  .cp-team-grid{
    grid-template-columns:1fr;
  }

  .cp-mobile-nav{
    position:fixed;
    z-index:7000;
    left:10px;
    right:10px;
    bottom:calc(8px + env(safe-area-inset-bottom));
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:4px;
    padding:5px;
    border:1px solid rgba(255,255,255,.10);
    border-radius:16px;
    background:rgba(7,20,23,.97);
    box-shadow:0 18px 45px rgba(0,0,0,.24);
    backdrop-filter:blur(15px);
  }

  .cp-mobile-nav button{
    min-height:52px;
    display:grid;
    place-items:center;
    gap:2px;
    padding:4px 2px;
    border:0;
    border-radius:11px;
    color:rgba(255,255,255,.62);
    background:transparent;
    font-size:8px;
    font-weight:850;
  }

  .cp-mobile-nav button b{
    font-size:13px;
  }

  .cp-mobile-nav button.active{
    color:#07140d;
    background:var(--cp-green);
  }

}

@media(max-width:640px){

  .cp-role-switch{
    display:none;
  }

  .cp-topbar-inner{
    min-height:65px;
  }

  .cp-brand-copy span{
    display:none;
  }

  .cp-brand-copy strong{
    font-size:13px;
  }

  .cp-page-title h1{
    font-size:28px;
  }

  .cp-grid-4{
    grid-template-columns:1fr 1fr;
    gap:9px;
  }

  .cp-stat{
    min-height:105px;
    padding:14px;
  }

  .cp-stat-value{
    font-size:24px;
  }

  .cp-card-head,
  .cp-card-body{
    padding-left:13px;
    padding-right:13px;
  }

  .cp-intake{
    grid-template-columns:1fr;
  }

  .cp-intake-actions{
    display:flex;
    gap:7px;
  }

  .cp-filter-row{
    width:100%;
  }

  .cp-filter-row .cp-input,
  .cp-filter-row .cp-select{
    width:100%;
  }

  .cp-week-label{
    min-width:145px;
  }

  .cp-form-grid,
  .cp-form-grid-3{
    grid-template-columns:1fr;
  }

  .cp-job-info-grid{
    grid-template-columns:1fr 1fr;
  }

  .cp-modal-backdrop{
    align-items:flex-end;
    padding:0;
  }

  .cp-modal,
  .cp-modal.wide{
    width:100%;
    max-height:94vh;
    border-radius:20px 20px 0 0;
  }

  .cp-toast-wrap{
    left:12px;
    right:12px;
    bottom:86px;
  }

  .cp-toast{
    min-width:0;
    max-width:none;
  }

}

@media(max-width:420px){

  .cp-grid-4{
    grid-template-columns:1fr;
  }

  .cp-mobile-nav{
    left:6px;
    right:6px;
  }

}

/* =========================================================
   WORDPRESS PLUGIN ADDITIONS
   Houdt de originele Partner Portal-vormgeving intact.
   ========================================================= */

html,
body.cpoh-standalone{
  min-height:100%;
  margin:0 !important;
  padding:0 !important;
}

body.cpoh-standalone{
  background:var(--cp-bg) !important;
}

.cp-logout-icon{
  text-decoration:none;
  font-size:14px;
  font-weight:1000;
}

.cp-role-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
}

.cp-module-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:23px;
  padding:0 8px;
  border-radius:999px;
  font-size:8.5px;
  font-weight:950;
  white-space:nowrap;
}

.cp-module-chip--business{
  color:#0a6f42;
  background:#e7f9ef;
}

.cp-module-chip--airbnb{
  color:#35679f;
  background:#eaf2ff;
}

.cp-module-card{
  padding:18px;
}

.cp-module-card h3{
  margin:11px 0 0;
  color:#213a41;
  font-size:13px;
  font-weight:950;
}

.cp-module-card p{
  margin:7px 0 0;
  color:#74827e;
  font-size:10px;
  line-height:1.55;
}

.cp-module-icon{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border-radius:12px;
  color:#062014;
  background:linear-gradient(135deg,var(--cp-green),#baf4d6);
  font-size:15px;
  font-weight:1000;
}

.cp-assignee-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}

.cp-assignee{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:42px;
  padding:8px 10px;
  border:1px solid #e0e8e4;
  border-radius:11px;
  background:#fbfdfc;
  color:#40554f;
  font-size:10px;
  font-weight:850;
}

.cp-assignee input{
  width:16px;
  height:16px;
  accent-color:var(--cp-green-dark);
}

.cp-job-mini[data-status="planned"],
.cp-job-mini[data-status="gepland"]{
  border-left-color:var(--cp-blue);
}

.cp-job-mini[data-status="enroute"],
.cp-job-mini[data-status="started"],
.cp-job-mini[data-status="onderweg"],
.cp-job-mini[data-status="gestart"]{
  border-left-color:var(--cp-purple);
}

.cp-job-mini[data-status="ready"],
.cp-job-mini[data-status="approved"],
.cp-job-mini[data-status="afgerond"]{
  border-left-color:var(--cp-green-dark);
}

.cp-job-mini[data-status="inbox"],
.cp-job-mini[data-status="te_plannen"]{
  border-left-color:var(--cp-warning);
}

.cp-job-mini[data-status="problem"],
.cp-job-mini[data-status="rework"],
.cp-job-mini[data-status="probleem"]{
  border-left-color:var(--cp-danger);
}

.cp-card-note{
  padding:11px 12px;
  border:1px solid #e6ece9;
  border-radius:11px;
  color:#536762;
  background:#fbfdfc;
  font-size:9.5px;
  line-height:1.5;
}

.cp-progress{
  height:7px;
  overflow:hidden;
  border-radius:999px;
  background:#e9efec;
}

.cp-progress span{
  display:block;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,var(--cp-green-dark),var(--cp-green));
}

.cp-loading{
  display:grid;
  place-items:center;
  min-height:160px;
  color:#85938e;
  font-size:11px;
  font-weight:800;
}

/* LOGIN */

.cp-login-wrap{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:28px;
  background:
    radial-gradient(circle at 12% 8%,rgba(36,224,123,.14),transparent 30%),
    linear-gradient(140deg,#061115,#0b252c);
}

.cp-login-card{
  width:min(440px,100%);
  padding:32px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:22px;
  color:#fff;
  background:rgba(8,27,32,.94);
  box-shadow:0 30px 90px rgba(0,0,0,.30);
}

.cp-login-brand{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:23px;
}

.cp-login-brand .cp-brand-copy strong{
  font-size:16px;
}

.cp-login-kicker{
  margin:0 0 8px;
  color:var(--cp-green);
  font-size:9px;
  font-weight:950;
  letter-spacing:.10em;
  text-transform:uppercase;
}

.cp-login-card h1{
  margin:0;
  color:#fff;
  font-size:31px;
  font-weight:950;
  letter-spacing:-.045em;
  line-height:1.04;
}

.cp-login-intro{
  margin:11px 0 21px;
  color:rgba(255,255,255,.64);
  font-size:11px;
  line-height:1.6;
}

.cp-login-card label{
  display:block;
  margin:12px 0 6px;
  color:rgba(255,255,255,.78);
  font-size:10px;
  font-weight:850;
}

.cp-login-card input[type="text"],
.cp-login-card input[type="password"]{
  width:100%;
  min-height:46px;
  padding:0 12px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:11px;
  outline:none;
  color:#fff;
  background:rgba(255,255,255,.055);
}

.cp-login-card input:focus{
  border-color:rgba(36,224,123,.75);
  box-shadow:0 0 0 3px rgba(36,224,123,.09);
}

.cp-login-card .login-remember label{
  display:flex;
  align-items:center;
  gap:8px;
}

.cp-login-card .button-primary{
  width:100%;
  min-height:47px;
  margin-top:12px;
  border:0;
  border-radius:11px;
  color:#06150d;
  background:linear-gradient(135deg,var(--cp-green),#18cf6e);
  font-weight:950;
  cursor:pointer;
}

.cp-login-lost{
  display:inline-block;
  margin-top:17px;
  color:rgba(255,255,255,.60);
  font-size:9.5px;
  font-weight:800;
}

/* WP login fallback compatibility from older markup */
.cpoh-login-wrap{min-height:100vh;display:grid;place-items:center;padding:28px;background:linear-gradient(140deg,#061115,#0b252c)}
.cpoh-login-card{width:min(440px,100%);padding:32px;border-radius:22px;color:#fff;background:#0a2026}
.cpoh-login-card h1{color:#fff}
.cpoh-login-card input{width:100%;min-height:46px}
.cpoh-login-card .button-primary{width:100%;min-height:46px;margin-top:12px;border:0;border-radius:11px;background:var(--cp-green);font-weight:950}

/* AIRBNB detail links */

.cp-airbnb-open{
  color:#0a6f42;
  font-weight:950;
}

.cp-mobile-nav a{
  min-height:52px;
  display:grid;
  place-items:center;
  gap:2px;
  padding:4px 2px;
  border-radius:11px;
  color:rgba(255,255,255,.62);
  font-size:8px;
  font-weight:850;
  text-decoration:none;
}

.cp-mobile-nav a b{
  font-size:13px;
}

.cp-mobile-nav--team{
  grid-template-columns:repeat(5,1fr);
}

@media(max-width:900px){
  .cp-assignee-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:640px){
  .cp-assignee-grid{
    grid-template-columns:1fr;
  }

  .cp-role-switch{
    display:none;
  }

  .cp-top-actions{
    gap:6px;
  }

  .cp-logout-icon{
    display:none;
  }
}


/* =========================================================
   V1.2 – AANVRAGEN + STRIKTE SCHEIDING AIRBNB
   ========================================================= */

.cp-nav-separator{
  height:1px;
  margin:11px 7px;
  background:var(--cp-line);
}

.cp-nav-btn--airbnb{
  color:#334c55;
  background:#f4f7f5;
}

.cp-nav-btn--airbnb .cp-nav-icon{
  color:#173d31;
  background:#e5f7ed;
}

.cp-lead-list{
  display:grid;
  gap:10px;
}

.cp-lead-card{
  grid-template-columns:minmax(0,1.15fr) minmax(240px,.75fr) auto;
}

.cp-lead-toolbar{
  align-items:flex-end;
}

.cp-lead-toolbar .cp-filter-row{
  justify-content:flex-end;
}

.cp-lead-detail-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px;
}

.cp-lead-detail{
  min-height:76px;
  padding:12px;
  border:1px solid var(--cp-line);
  border-radius:12px;
  background:#f8fbf9;
}

.cp-lead-detail--wide{
  grid-column:span 2;
}

.cp-lead-detail span{
  display:block;
  color:#87958f;
  font-size:8.5px;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.cp-lead-detail strong{
  display:block;
  margin-top:5px;
  color:#263f45;
  font-size:10.5px;
  font-weight:950;
  line-height:1.4;
  overflow-wrap:anywhere;
}

.cp-lead-contact-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}

.cp-lead-workflow-title{
  margin-bottom:13px;
}

.cp-lead-workflow-title span{
  display:block;
  color:#0b8d50;
  font-size:9px;
  font-weight:950;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.cp-lead-workflow-title strong{
  display:block;
  margin-top:4px;
  color:#173238;
  font-size:16px;
  font-weight:950;
}

.cp-modal-subtitle{
  margin:4px 0 0;
  color:#85938e;
  font-size:9px;
  font-weight:800;
}

.cp-airbnb-leads-card{
  margin-bottom:0;
}

@media(max-width:1180px){
  .cp-lead-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}

@media(max-width:900px){
  #cp-owner-app .cp-mobile-nav{
    grid-template-columns:repeat(6,1fr);
  }

  .cp-lead-card{
    grid-template-columns:1fr;
  }

  .cp-lead-toolbar{
    align-items:flex-start;
    flex-direction:column;
  }

  .cp-lead-toolbar .cp-filter-row{
    width:100%;
    justify-content:flex-start;
  }
}

@media(max-width:640px){
  .cp-lead-detail-grid{grid-template-columns:1fr 1fr;}
  .cp-lead-detail--wide{grid-column:1/-1;}
  #cp-owner-app .cp-mobile-nav button,
  #cp-owner-app .cp-mobile-nav a{
    font-size:7px;
  }
}

@media(max-width:420px){
  .cp-lead-detail-grid{grid-template-columns:1fr;}
  .cp-lead-detail--wide{grid-column:auto;}
}

/* =========================================================
   V1.4 – DYNAMISCHE LOCATIE-INSPECTIE + CALCULATOR
   ========================================================= */

.cp-inspection-launch{
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(300px,.8fr) auto;
  gap:16px;
  align-items:center;
  margin-top:16px;
  padding:16px;
  border:1px solid rgba(36,224,123,.22);
  border-radius:16px;
  background:
    radial-gradient(circle at 0 0,rgba(36,224,123,.08),transparent 36%),
    linear-gradient(145deg,#fbfefc,#f0f8f4);
}

.cp-inspection-launch-copy strong{
  display:block;
  margin-top:7px;
  color:#173238;
  font-size:14px;
  font-weight:950;
}

.cp-inspection-launch-copy p{
  margin:5px 0 0;
  color:#6d7e78;
  font-size:10px;
  line-height:1.5;
}

.cp-inspection-launch-stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;
}

.cp-inspection-launch-stats div{
  min-width:0;
  padding:10px;
  border:1px solid #dfe9e3;
  border-radius:11px;
  background:#fff;
}

.cp-inspection-launch-stats span{
  display:block;
  color:#8b9994;
  font-size:8px;
  font-weight:850;
}

.cp-inspection-launch-stats b{
  display:block;
  margin-top:4px;
  color:#29443d;
  font-size:10px;
  font-weight:950;
  overflow-wrap:anywhere;
}

.cp-inspection-modal-shell{
  width:min(1180px,calc(100vw - 32px));
  max-height:94vh;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.cp-inspection-head{
  flex:none;
  background:
    radial-gradient(circle at 5% 0,rgba(36,224,123,.12),transparent 35%),
    linear-gradient(135deg,#08161b,#0d2930);
  border-bottom-color:rgba(255,255,255,.08);
}

.cp-inspection-head h3{
  color:#fff;
  font-size:17px;
}

.cp-inspection-head .cp-modal-subtitle{
  color:rgba(255,255,255,.58);
}

.cp-inspection-head .cp-modal-close{
  color:#fff;
  background:rgba(255,255,255,.08);
}

.cp-inspection-kicker{
  margin-bottom:4px;
  color:var(--cp-green);
  font-size:8px;
  font-weight:950;
  letter-spacing:.10em;
  text-transform:uppercase;
}

.cp-inspection-progress{
  position:relative;
  z-index:5;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  flex:none;
  padding:8px 14px;
  border-bottom:1px solid var(--cp-line);
  background:#fff;
}

.cp-inspection-progress button{
  min-height:52px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:5px 8px;
  border:0;
  border-radius:11px;
  color:#7b8a84;
  background:transparent;
  font-size:10px;
  font-weight:900;
}

.cp-inspection-progress button span{
  width:27px;
  height:27px;
  display:grid;
  place-items:center;
  flex:none;
  border-radius:9px;
  color:#63756d;
  background:#edf3ef;
  font-size:8px;
  font-weight:1000;
}

.cp-inspection-progress button.is-active{
  color:#0d3325;
  background:#ecf9f2;
}

.cp-inspection-progress button.is-active span{
  color:#06140c;
  background:var(--cp-green);
}

.cp-inspection-body{
  flex:1;
  overflow:auto;
  padding:22px;
  background:#f7faf8;
}

.cp-inspection-step{
  display:none;
  animation:cpInspectionFade .16s ease;
}

.cp-inspection-step.is-active{
  display:block;
}

@keyframes cpInspectionFade{
  from{opacity:.35;transform:translateY(5px)}
  to{opacity:1;transform:none}
}

.cp-inspection-step-head{
  margin-bottom:17px;
}

.cp-inspection-step-head > span{
  display:inline-flex;
  padding:5px 8px;
  border-radius:999px;
  color:#087a48;
  background:#e5f8ee;
  font-size:8px;
  font-weight:950;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.cp-inspection-step-head h4{
  margin:7px 0 0;
  color:#173138;
  font-size:22px;
  font-weight:950;
  letter-spacing:-.035em;
}

.cp-inspection-step-head p{
  max-width:760px;
  margin:7px 0 0;
  color:#71817b;
  font-size:10.5px;
  line-height:1.55;
}

.cp-inspection-hint{
  margin:0 0 16px;
  padding:11px 13px;
  border:1px solid #dce8e1;
  border-left:4px solid var(--cp-green);
  border-radius:11px;
  color:#536761;
  background:#fff;
  font-size:9.5px;
  line-height:1.5;
}

.cp-inspection-hint strong,
.cp-inspection-hint b{
  color:#244239;
}

.cp-field--span2{
  grid-column:span 2;
}

.cp-service-module-banner{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:4px 10px;
  align-items:center;
  margin-bottom:16px;
  padding:14px 15px;
  border:1px solid rgba(36,224,123,.20);
  border-radius:14px;
  background:
    radial-gradient(circle at 0 0,rgba(36,224,123,.10),transparent 45%),
    #fff;
}

.cp-service-module-banner > span{
  grid-row:1/3;
  min-height:33px;
  display:grid;
  place-items:center;
  padding:0 10px;
  border-radius:10px;
  color:#072116;
  background:var(--cp-green);
  font-size:8px;
  font-weight:950;
  text-transform:uppercase;
}

.cp-service-module-banner strong{
  color:#1e3a33;
  font-size:12px;
  font-weight:950;
}

.cp-service-module-banner p{
  margin:0;
  color:#80908a;
  font-size:9px;
}

.cp-inspection-choice-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.cp-inspection-choice-card{
  display:grid;
  gap:8px;
  padding:14px;
  border:1px solid var(--cp-line);
  border-radius:14px;
  background:#fff;
}

.cp-inspection-choice-card > strong{
  margin-bottom:2px;
  color:#263f45;
  font-size:11px;
  font-weight:950;
}

.cp-inspection-choice-card label{
  display:flex;
  align-items:center;
  gap:8px;
  color:#566a63;
  font-size:9.5px;
  font-weight:800;
}

.cp-inspection-choice-card input{
  width:16px;
  height:16px;
  accent-color:var(--cp-green-dark);
}

.cp-upload-box{
  min-height:84px;
  display:flex;
  align-items:center;
  gap:13px;
  padding:13px;
  border:1px dashed #b8cbc1;
  border-radius:13px;
  background:#fff;
}

.cp-upload-box input[type="file"]{
  max-width:240px;
  font-size:9px;
}

.cp-upload-box strong{
  display:block;
  color:#2a443c;
  font-size:10px;
  font-weight:950;
}

.cp-upload-box span{
  display:block;
  margin-top:3px;
  color:#899690;
  font-size:8.5px;
}

.cp-inspection-files{
  display:grid;
  gap:6px;
  margin-top:8px;
}

.cp-inspection-file{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:8px 9px;
  border:1px solid #e3eae6;
  border-radius:10px;
  background:#fff;
}

.cp-inspection-file a{
  min-width:0;
  display:flex;
  align-items:center;
  gap:7px;
  color:#2d4a41;
}

.cp-inspection-file strong{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:9.5px;
  font-weight:900;
}

.cp-calculator-layout{
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  gap:14px;
  align-items:start;
}

.cp-calculator-settings{
  box-shadow:none;
}

.cp-calculator-note{
  margin-top:13px;
  padding:10px 11px;
  border-radius:10px;
  color:#62766e;
  background:#edf7f1;
  font-size:8.5px;
  line-height:1.5;
}

.cp-calculator-results{
  display:grid;
  gap:10px;
}

.cp-calculator-hero{
  padding:19px;
  border-radius:17px;
  color:#fff;
  background:
    radial-gradient(circle at 0 0,rgba(36,224,123,.18),transparent 38%),
    linear-gradient(135deg,#07171c,#103139);
  box-shadow:0 15px 38px rgba(7,20,23,.16);
}

.cp-calculator-hero span{
  display:block;
  color:rgba(255,255,255,.60);
  font-size:9px;
  font-weight:850;
}

.cp-calculator-hero strong{
  display:block;
  margin-top:7px;
  color:var(--cp-green);
  font-size:30px;
  font-weight:1000;
  letter-spacing:-.045em;
}

.cp-calculator-hero small{
  display:block;
  margin-top:5px;
  color:rgba(255,255,255,.72);
  font-size:9px;
  font-weight:800;
}

.cp-calculator-stats{
  gap:7px;
}

.cp-calc-stat{
  padding:10px;
  border:1px solid var(--cp-line);
  border-radius:11px;
  background:#fff;
}

.cp-calc-stat span{
  display:block;
  color:#87958f;
  font-size:8px;
  font-weight:850;
}

.cp-calc-stat b{
  display:block;
  margin-top:4px;
  color:#2a443c;
  font-size:10.5px;
  font-weight:950;
}

.cp-calculator-breakdown{
  display:grid;
  gap:0;
  padding:4px 13px;
  border:1px solid var(--cp-line);
  border-radius:13px;
  background:#fff;
}

.cp-calculator-breakdown > div{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  padding:9px 0;
  border-bottom:1px solid #edf1ef;
  color:#6a7b75;
  font-size:9px;
}

.cp-calculator-breakdown > div:last-child{
  border-bottom:0;
}

.cp-calculator-breakdown b{
  color:#2d463f;
  font-weight:950;
  text-align:right;
}

.cp-inspection-complete-box{
  display:flex;
  align-items:flex-start;
  gap:11px;
  margin-top:15px;
  padding:14px;
  border:1px solid rgba(36,224,123,.32);
  border-radius:14px;
  background:#ecfbf3;
  cursor:pointer;
}

.cp-inspection-complete-box input{
  width:19px;
  height:19px;
  margin-top:1px;
  accent-color:var(--cp-green-dark);
}

.cp-inspection-complete-box strong{
  display:block;
  color:#173e2e;
  font-size:10.5px;
  font-weight:950;
}

.cp-inspection-complete-box small{
  display:block;
  margin-top:4px;
  color:#678076;
  font-size:8.7px;
  line-height:1.45;
}

.cp-inspection-foot{
  flex:none;
}

.cp-inspection-foot-spacer{
  flex:1;
}

@media(max-width:1000px){
  .cp-inspection-launch{
    grid-template-columns:1fr;
  }
  .cp-calculator-layout{
    grid-template-columns:1fr;
  }
}

@media(max-width:760px){
  .cp-inspection-modal-shell{
    width:100%;
    max-height:96vh;
    border-radius:20px 20px 0 0;
  }

  .cp-inspection-progress{
    padding:6px;
  }

  .cp-inspection-progress button{
    min-height:48px;
    display:grid;
    justify-items:center;
    gap:3px;
    font-size:7px;
  }

  .cp-inspection-progress button span{
    width:24px;
    height:24px;
    font-size:7px;
  }

  .cp-inspection-body{
    padding:15px 12px;
  }

  .cp-inspection-step-head h4{
    font-size:19px;
  }

  .cp-inspection-choice-grid{
    grid-template-columns:1fr;
  }

  .cp-inspection-launch-stats{
    grid-template-columns:1fr 1fr 1fr;
  }

  .cp-upload-box{
    align-items:flex-start;
    flex-direction:column;
  }

  .cp-inspection-foot{
    display:grid;
    grid-template-columns:1fr 1fr;
  }

  .cp-inspection-foot-spacer{
    display:none;
  }

  .cp-inspection-foot .cp-btn{
    width:100%;
  }
}

@media(max-width:520px){
  .cp-inspection-launch-stats{
    grid-template-columns:1fr;
  }

  .cp-inspection-launch > .cp-btn{
    width:100%;
  }

  .cp-field--span2{
    grid-column:auto;
  }

  .cp-calculator-hero strong{
    font-size:25px;
  }

  .cp-calculator-stats{
    grid-template-columns:1fr 1fr;
  }
}


/* =========================================================
   V1.5 WERKPAKKET / MEDEWERKER FLOW / VOORSTEL
   ========================================================= */

.cp-workplan-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}

.cp-workplan-editor{
  display:grid;
  gap:8px;
}

.cp-workplan-row{
  grid-template-columns:22px minmax(135px,.42fr) minmax(240px,1fr) auto !important;
}

.cp-workplan-section{
  color:#4a625b;
  background:#f4f8f5;
  font-size:10px;
  font-weight:850;
}

.cp-worker-running{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:13px;
  padding:12px 13px;
  border:1px solid rgba(36,224,123,.30);
  border-radius:13px;
  background:linear-gradient(145deg,#f0fff6,#e8f9ef);
}

.cp-worker-running-dot{
  width:11px;
  height:11px;
  flex:none;
  border-radius:50%;
  background:#10b963;
  box-shadow:0 0 0 5px rgba(16,185,99,.10);
}

.cp-worker-running strong{
  display:block;
  color:#164331;
  font-size:11px;
  font-weight:950;
}

.cp-worker-running span{
  display:block;
  margin-top:2px;
  color:#5b746a;
  font-size:9px;
}

.cp-worker-instruction{
  margin:12px 0;
  padding:13px 14px;
  border-radius:13px;
  color:#fff;
  background:linear-gradient(145deg,#0a2026,#123239);
}

.cp-worker-instruction strong{
  display:block;
  color:#24e07b;
  font-size:10px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.cp-worker-instruction p{
  margin:7px 0 0;
  color:rgba(255,255,255,.82);
  font-size:10px;
  line-height:1.5;
}

.cp-worker-detail-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
}

.cp-worker-workplan{
  margin-top:15px;
  padding:13px;
  border:1px solid #e2eae6;
  border-radius:15px;
  background:#fbfdfc;
}

.cp-worker-workplan-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}

.cp-worker-workplan-head strong{
  display:block;
  color:#203a31;
  font-size:12px;
  font-weight:950;
}

.cp-worker-workplan-head span:not(.cp-pill){
  display:block;
  margin-top:3px;
  color:#7b8b85;
  font-size:8.8px;
}

.cp-worker-workgroup + .cp-worker-workgroup{
  margin-top:11px;
}

.cp-worker-workgroup-title{
  margin:0 0 6px 2px;
  color:#0b8d50;
  font-size:8.5px;
  font-weight:950;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.cp-worker-task{
  grid-template-columns:22px minmax(0,1fr) auto;
  background:#fff;
}

.cp-job-notice--problem{
  border-color:#f2c9cd;
  background:#fff6f7;
}

.cp-proposal-summary{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}

.cp-proposal-summary > div{
  padding:10px;
  border-radius:11px;
  background:#f4f7f5;
}

.cp-proposal-summary span{
  display:block;
  color:#86958f;
  font-size:8px;
  font-weight:850;
}

.cp-proposal-summary strong{
  display:block;
  margin-top:3px;
  color:#29413a;
  font-size:10px;
  font-weight:950;
}

.cp-end-round-intro{
  padding:14px;
  border:1px solid #e1e9e5;
  border-radius:14px;
  background:#fbfdfc;
}

.cp-end-round-intro strong{
  display:block;
  margin-top:8px;
  color:#213b32;
  font-size:13px;
  font-weight:950;
}

.cp-end-round-intro p{
  margin:5px 0 0;
  color:#75857f;
  font-size:9.5px;
  line-height:1.5;
}

.cp-end-round-checks{
  display:grid;
  gap:8px;
  margin-top:12px;
}

.cp-end-round-checks label{
  display:grid;
  grid-template-columns:22px minmax(0,1fr);
  gap:10px;
  align-items:flex-start;
  padding:12px;
  border:1px solid #e2e9e5;
  border-radius:12px;
  background:#fff;
  cursor:pointer;
}

.cp-end-round-checks input{
  width:18px;
  height:18px;
  margin-top:1px;
  accent-color:#10b963;
}

.cp-end-round-checks strong{
  display:block;
  color:#29413a;
  font-size:10.5px;
  font-weight:950;
}

.cp-end-round-checks small{
  display:block;
  margin-top:3px;
  color:#83918c;
  font-size:8.7px;
  line-height:1.4;
}

@media(max-width:720px){
  .cp-workplan-head{
    flex-direction:column;
  }

  .cp-workplan-row{
    grid-template-columns:22px 1fr auto !important;
  }

  .cp-workplan-row .cp-workplan-section{
    grid-column:2 / 3;
  }

  .cp-workplan-row [data-edit-check-label]{
    grid-column:2 / 3;
  }

  .cp-workplan-row .cp-btn-danger{
    grid-column:3;
    grid-row:1 / span 2;
  }

  .cp-worker-detail-grid,
  .cp-proposal-summary{
    grid-template-columns:1fr 1fr;
  }
}

@media(max-width:460px){
  .cp-worker-detail-grid,
  .cp-proposal-summary{
    grid-template-columns:1fr;
  }

  .cp-worker-workplan-head{
    flex-direction:column;
  }
}


/* =========================================================
   INSPECTIE V2.0 — MULTI-LOCATIE / PLANNING / CALCULATOR
   ========================================================= */
.cp-inspection-v2 .cp-inspection-body{background:linear-gradient(180deg,#f7faf8,#f2f6f3)}
.cp-location-workspace{position:sticky;top:0;z-index:14;margin:-18px -18px 18px;padding:13px 18px 12px;border-bottom:1px solid #dfe8e2;background:rgba(255,255,255,.96);backdrop-filter:blur(12px)}
.cp-location-workspace.is-calc{position:relative;top:auto}
.cp-location-workspace-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.cp-location-workspace-head strong{display:block;margin-top:2px;color:#193038;font-size:13px;font-weight:950}
.cp-location-eyebrow{color:#8a9893;font-size:8px;font-weight:950;letter-spacing:.09em;text-transform:uppercase}
.cp-location-tabs{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px;scrollbar-width:thin}
.cp-location-tab{min-width:170px;display:grid;grid-template-columns:28px minmax(0,1fr);grid-template-rows:auto auto;column-gap:8px;align-items:center;padding:9px 10px;border:1px solid #dfe8e2;border-radius:12px;color:#455952;background:#fff;text-align:left;box-shadow:0 5px 15px rgba(7,20,23,.035)}
.cp-location-tab>span{grid-row:1/3;width:28px;height:28px;display:grid;place-items:center;border-radius:8px;background:#edf4f0;color:#466058;font-size:8px;font-weight:950}
.cp-location-tab b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#29423a;font-size:10.5px;font-weight:950}.cp-location-tab small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#8a9893;font-size:8.5px}
.cp-location-tab.is-active{border-color:rgba(36,224,123,.7);background:linear-gradient(145deg,#f3fff7,#eaf9f0);box-shadow:0 0 0 3px rgba(36,224,123,.08)}.cp-location-tab.is-active>span{color:#07140d;background:#24e07b}
.cp-location-editor-card{padding:16px;border:1px solid #e0e8e3;border-radius:17px;background:#fff;box-shadow:0 12px 34px rgba(7,20,23,.05)}
.cp-location-editor-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.cp-location-editor-title span{display:block;color:#8a9893;font-size:8px;font-weight:950;letter-spacing:.09em;text-transform:uppercase}.cp-location-editor-title h5{margin:3px 0 0;color:#1e373e;font-size:16px;font-weight:950;letter-spacing:-.02em}
.cp-field-full{grid-column:span 2}.cp-specific-grid{margin-top:13px}
.cp-frequency-badge{display:inline-flex;align-items:center;min-height:28px;padding:0 9px;border-radius:999px;color:#087444;background:#e6f9ef;font-size:9px;font-weight:950}
.cp-schedule-grid{display:grid;gap:8px}.cp-schedule-day{display:grid;grid-template-columns:150px 135px 135px minmax(180px,1fr);gap:9px;align-items:end;padding:10px;border:1px solid #e4ebe7;border-radius:13px;background:#f9fbfa;opacity:.68}.cp-schedule-day.is-enabled{opacity:1;border-color:#d2e9dc;background:#fff}
.cp-day-toggle{min-height:42px;display:flex;align-items:center;gap:9px;color:#475c55;font-size:10px;font-weight:900}.cp-day-toggle input{position:absolute;opacity:0}.cp-day-toggle span{position:relative;width:34px;height:20px;flex:none;border-radius:999px;background:#d8e0dc;transition:.15s}.cp-day-toggle span:after{position:absolute;top:3px;left:3px;width:14px;height:14px;content:"";border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(0,0,0,.15);transition:.15s}.cp-day-toggle input:checked+span{background:#24e07b}.cp-day-toggle input:checked+span:after{left:17px}.cp-schedule-time label,.cp-schedule-worker label{display:block;margin:0 0 5px 2px;color:#788781;font-size:8px;font-weight:900}.cp-schedule-time label small,.cp-schedule-worker label small{font-weight:700;color:#9aa6a1}
.cp-custom-visits{display:grid;gap:8px;margin-bottom:9px}.cp-custom-visit-row{display:grid;grid-template-columns:1.2fr .8fr .8fr 1.2fr 36px;gap:8px;align-items:end;padding:10px;border:1px solid #e3eae6;border-radius:12px;background:#fff}
.cp-calculator-layout-v2{grid-template-columns:minmax(340px,.72fr) minmax(0,1.28fr)}.cp-calc-warning{margin:12px 0;padding:12px 14px;border:1px solid #f0d5a6;border-radius:12px;color:#8a5a13;background:#fff8eb;font-size:10px;line-height:1.5}.cp-calc-warning strong{display:block;margin-bottom:5px}.cp-calc-warning ul{margin:0;padding-left:17px}
.cp-location-calc-list{display:grid;gap:9px;margin-top:12px}.cp-location-calc-card{padding:13px 14px;border:1px solid #e1e8e4;border-radius:14px;background:#fff}.cp-location-calc-card.is-ready{border-color:#cfe9da}.cp-location-calc-card.is-incomplete{background:#fbfcfb}.cp-location-calc-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.cp-location-calc-head span{display:block;color:#93a09b;font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}.cp-location-calc-head strong{display:block;margin-top:2px;color:#203a40;font-size:12px;font-weight:950}.cp-location-calc-head>b{color:#0b8d50;font-size:12px;font-weight:950}.cp-location-calc-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:10px}.cp-location-calc-grid div{padding:8px;border-radius:9px;background:#f4f7f5}.cp-location-calc-grid span{display:block;color:#8b9894;font-size:7.5px;font-weight:850}.cp-location-calc-grid b{display:block;margin-top:2px;color:#2d454b;font-size:9.5px;font-weight:950}.cp-minimum-note{margin-top:9px;padding:7px 9px;border-radius:9px;color:#7c5b20;background:#fff5df;font-size:8.5px;font-weight:750}
@media(max-width:900px){.cp-schedule-day{grid-template-columns:1fr 1fr}.cp-day-toggle{grid-column:1/-1}.cp-custom-visit-row{grid-template-columns:1fr 1fr}.cp-custom-visit-row>.cp-btn{align-self:end}.cp-calculator-layout-v2{grid-template-columns:1fr}.cp-location-calc-grid{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.cp-location-workspace{margin:-13px -13px 15px;padding:10px 13px}.cp-location-workspace-head{align-items:flex-start}.cp-location-tabs{margin-right:-13px}.cp-location-tab{min-width:145px}.cp-location-editor-card{padding:12px}.cp-field-full{grid-column:auto}.cp-schedule-day{grid-template-columns:1fr}.cp-day-toggle{grid-column:auto}.cp-custom-visit-row{grid-template-columns:1fr}.cp-location-calc-grid{grid-template-columns:1fr 1fr}}


/* =========================================================
   V1.6 – HANDMATIGE AANVRAAG / MODERNE INTAKE
   ========================================================= */

.cp-manual-intake-modal{
  width:min(1080px,100%);
}

.cp-modal-kicker{
  margin-bottom:5px;
  color:var(--cp-green-dark);
  font-size:9px;
  font-weight:950;
  letter-spacing:.10em;
  text-transform:uppercase;
}

.cp-modal-subtitle{
  margin:5px 0 0;
  color:#84918d;
  font-size:10px;
  line-height:1.45;
}

.cp-intake-flow{
  display:grid;
  gap:14px;
}

.cp-intake-panel{
  padding:17px;
  border:1px solid var(--cp-line);
  border-radius:17px;
  background:linear-gradient(180deg,#fff,#fbfdfc);
  box-shadow:0 8px 24px rgba(7,20,23,.035);
}

.cp-intake-panel-head{
  display:flex;
  align-items:flex-start;
  gap:11px;
  margin-bottom:15px;
}

.cp-intake-panel-head > span{
  width:35px;
  height:35px;
  display:grid;
  place-items:center;
  flex:none;
  border-radius:11px;
  color:#07140d;
  background:linear-gradient(135deg,var(--cp-green),#74efaa);
  font-size:9px;
  font-weight:1000;
}

.cp-intake-panel-head h4{
  margin:1px 0 0;
  color:#1b343b;
  font-size:13px;
  font-weight:950;
  letter-spacing:-.02em;
}

.cp-intake-panel-head p{
  margin:4px 0 0;
  color:#8b9793;
  font-size:9.5px;
  line-height:1.45;
}

.cp-intake-service-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;
}

.cp-intake-service{
  position:relative;
  cursor:pointer;
}

.cp-intake-service input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.cp-intake-service > span{
  min-height:96px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:3px;
  padding:11px;
  border:1px solid #dfe7e3;
  border-radius:13px;
  background:#fff;
  transition:.16s ease;
}

.cp-intake-service b{
  width:29px;
  height:29px;
  display:grid;
  place-items:center;
  margin-bottom:3px;
  border-radius:9px;
  color:#0b8250;
  background:#e8f8ef;
  font-size:8px;
  font-weight:1000;
}

.cp-intake-service strong{
  color:#2c4248;
  font-size:10px;
  font-weight:950;
  line-height:1.2;
}

.cp-intake-service small{
  color:#8e9a96;
  font-size:8px;
  line-height:1.3;
}

.cp-intake-service:hover > span{
  transform:translateY(-1px);
  border-color:rgba(36,224,123,.48);
}

.cp-intake-service input:checked + span{
  border-color:var(--cp-green-dark);
  background:linear-gradient(145deg,#f3fff7,#e9fbf0);
  box-shadow:0 0 0 3px rgba(36,224,123,.08);
}

.cp-intake-service input:checked + span b{
  color:#07140d;
  background:var(--cp-green);
}

.cp-intake-note{
  display:flex;
  align-items:flex-start;
  gap:9px;
  margin-top:14px;
  padding:11px 12px;
  border:1px solid #dfe8e2;
  border-radius:12px;
  background:#f4f8f5;
  color:#65746f;
  font-size:9px;
  line-height:1.45;
}

.cp-intake-note strong{
  color:#244139;
  white-space:nowrap;
}

@media(max-width:1050px){
  .cp-intake-service-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media(max-width:680px){
  .cp-intake-panel{
    padding:13px;
    border-radius:14px;
  }

  .cp-intake-service-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .cp-intake-service > span{
    min-height:88px;
  }

  .cp-intake-note{
    display:block;
  }

  .cp-intake-note strong{
    display:block;
    margin-bottom:3px;
  }
}


/* =========================================================
   V1.7 – COMPACTE ZIJBALK + INKOMSTEN + CALCULATOR
   ========================================================= */
@media(min-width:901px){
  #cp-owner-app .cp-shell{grid-template-columns:190px minmax(0,1fr);gap:17px}
  #cp-owner-app .cp-sidebar{padding:10px;border-radius:16px}
  #cp-owner-app .cp-nav{gap:4px}
  #cp-owner-app .cp-nav-label{margin:7px 7px 6px;font-size:8px}
  #cp-owner-app .cp-nav-btn{min-height:39px;gap:8px;padding:0 9px;border-radius:10px;background:transparent!important;color:#46575d!important;font-size:10.5px;font-weight:850}
  #cp-owner-app .cp-nav-btn:hover{background:#f0f6f2!important}
  #cp-owner-app .cp-nav-btn.active{color:#082016!important;background:linear-gradient(135deg,#dff8e9,#ecfbf3)!important;box-shadow:inset 0 0 0 1px rgba(36,224,123,.28)!important}
  #cp-owner-app .cp-nav-icon{width:25px;height:25px;border-radius:8px;font-size:10px}
  #cp-owner-app .cp-sidebar-card{padding:11px;border-radius:12px}
  #cp-owner-app .cp-sidebar-card p{font-size:9px}
}
.cp-finance-month{width:155px}
.cp-price-breakdown{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:9px}
.cp-price-breakdown span{display:block;padding:7px 8px;border-radius:9px;color:#788780;background:#f4f7f5;font-size:7.5px;font-weight:800}
.cp-price-breakdown b{display:block;margin-top:3px;color:#29453d;font-size:9px;font-weight:950}
.cp-history-note{margin-top:8px;padding:7px 9px;border-radius:9px;color:#315f4b;background:#eaf8f0;font-size:8.5px;font-weight:750}
.cp-calc-explain{margin-top:13px;padding:13px 14px;border:1px solid #dfe9e3;border-radius:13px;background:linear-gradient(145deg,#fbfdfc,#eef8f2)}
.cp-calc-explain strong{display:block;color:#213b33;font-size:10px;font-weight:950}
.cp-calc-explain p{margin:5px 0 0;color:#718079;font-size:9px;line-height:1.5}
@media(max-width:900px){
  #cp-owner-app .cp-mobile-nav{display:flex;overflow-x:auto;grid-template-columns:none}
  #cp-owner-app .cp-mobile-nav button,#cp-owner-app .cp-mobile-nav a{min-width:68px;flex:0 0 68px}
}
@media(max-width:700px){
  .cp-price-breakdown{grid-template-columns:1fr 1fr}
  .cp-finance-month{width:100%}
}


/* =========================================================
   V1.8 — SIDEBAR, LOCATIES, AGENDA-TOEWIJZING, MOBIEL, BOEKHOUDING
   ========================================================= */

/* Strakkere en rustigere beheerzijbalk */
@media(min-width:901px){
  #cp-owner-app .cp-shell{
    grid-template-columns:176px minmax(0,1fr);
    gap:18px;
  }
  #cp-owner-app .cp-sidebar{
    padding:10px 9px 11px;
    border:1px solid #dce7e1;
    border-radius:18px;
    background:linear-gradient(180deg,#fff,#fbfdfc);
    box-shadow:0 12px 34px rgba(7,20,23,.065);
  }
  #cp-owner-app .cp-nav-label{
    margin:8px 8px 7px;
    color:#9aa6a1;
    font-size:7.5px;
    letter-spacing:.13em;
  }
  #cp-owner-app .cp-nav{gap:3px}
  #cp-owner-app .cp-nav-btn{
    position:relative;
    min-height:39px;
    gap:8px;
    padding:0 9px 0 8px;
    border:1px solid transparent!important;
    border-radius:11px;
    color:#40554f!important;
    background:transparent!important;
    font-size:10px;
    font-weight:900;
    line-height:1.15;
  }
  #cp-owner-app .cp-nav-btn::before{
    position:absolute;
    left:-1px;
    top:8px;
    bottom:8px;
    width:3px;
    content:"";
    border-radius:0 999px 999px 0;
    background:transparent;
  }
  #cp-owner-app .cp-nav-btn:hover{
    border-color:#e4ece7!important;
    background:#f5f9f7!important;
  }
  #cp-owner-app .cp-nav-btn.active{
    color:#0d3c2a!important;
    border-color:rgba(36,224,123,.34)!important;
    background:linear-gradient(135deg,#effcf5,#e6f9ef)!important;
    box-shadow:0 5px 14px rgba(16,185,99,.07)!important;
  }
  #cp-owner-app .cp-nav-btn.active::before{background:#24e07b}
  #cp-owner-app .cp-nav-icon{
    width:27px;
    height:27px;
    border:1px solid #e2e9e5;
    border-radius:9px;
    color:#597068;
    background:#f3f6f4;
  }
  #cp-owner-app .cp-nav-icon svg{
    width:14px;
    height:14px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
  }
  #cp-owner-app .cp-nav-btn.active .cp-nav-icon{
    color:#062516;
    border-color:#24e07b;
    background:#24e07b;
    box-shadow:0 5px 12px rgba(36,224,123,.17);
  }
  #cp-owner-app .cp-nav-btn--airbnb{
    margin-top:5px;
    border-color:#e1ece5!important;
    background:#f6fbf8!important;
  }
  #cp-owner-app .cp-sidebar-card{
    margin-top:13px;
    padding:11px;
    border-radius:13px;
  }
}

/* Locatietabs: verwijderen altijd direct naast de locatie */
.cp-location-tabs{align-items:stretch}
.cp-location-tab-wrap{
  position:relative;
  display:flex;
  flex:0 0 auto;
  min-width:170px;
}
.cp-location-tab-wrap .cp-location-tab{
  min-width:0;
  width:100%;
  padding-right:31px;
}
.cp-location-tab-remove{
  position:absolute;
  z-index:3;
  top:7px;
  right:7px;
  width:23px;
  height:23px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid #eadcdf;
  border-radius:8px;
  color:#a34d56;
  background:#fff7f8;
  font-size:14px;
  font-weight:900;
  line-height:1;
  cursor:pointer;
}
.cp-location-tab-remove:hover{border-color:#e1aeb4;background:#ffecef}
.cp-owner-agenda-note{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-bottom:13px;
  padding:11px 12px;
  border:1px solid #d7e9df;
  border-radius:12px;
  background:linear-gradient(135deg,#f3fff7,#edf9f2);
}
.cp-owner-agenda-note b{
  flex:none;
  color:#087746;
  font-size:9px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.cp-owner-agenda-note span{color:#60736b;font-size:9px;line-height:1.45}

/* Planner: afspraak eerst voor beheer, medewerker selecteerbaar vanuit de kaart */
.cp-job-mini-open{
  width:100%;
  display:block;
  padding:0;
  border:0;
  color:inherit;
  background:transparent;
  text-align:left;
  cursor:pointer;
}
.cp-quick-assign-wrap{
  display:grid;
  grid-template-columns:20px minmax(0,1fr);
  gap:6px;
  align-items:center;
  margin-top:8px;
  padding-top:7px;
  border-top:1px solid #edf2ef;
}
.cp-quick-assign{
  width:100%;
  min-width:0;
  height:29px;
  padding:0 5px;
  border:1px solid #dce6e1;
  border-radius:8px;
  outline:none;
  color:#40564f;
  background:#f8fbf9;
  font-size:7.8px;
  font-weight:850;
}
.cp-quick-assign:focus{border-color:#24e07b;box-shadow:0 0 0 2px rgba(36,224,123,.09)}

/* Boekhouding / periodes */
.cp-finance-filter-card{overflow:visible}
.cp-finance-filter-body{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding-top:16px;
}
.cp-finance-period-copy span{
  display:block;
  color:#8c9994;
  font-size:8px;
  font-weight:950;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.cp-finance-period-copy strong{
  display:block;
  margin-top:3px;
  color:#213b42;
  font-size:13px;
  font-weight:950;
}
.cp-finance-period-controls{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:7px;
}
.cp-finance-period-controls>.cp-select{width:125px}
.cp-finance-context{width:160px}
.cp-finance-quarter{
  display:grid;
  grid-template-columns:80px 96px;
  gap:6px;
  width:auto;
}
.cp-finance-quarter .cp-select,.cp-finance-quarter .cp-input{width:100%}
.cp-worker-finance-table{min-width:780px}

/* Inspectiemodal mag op telefoon nooit de hele pagina horizontaal duwen. */
#cp-inspection-modal,
.cp-inspection-modal-shell,
.cp-inspection-body,
.cp-inspection-step,
.cp-location-workspace,
.cp-location-editor-card,
.cp-specific-grid,
.cp-schedule-grid,
.cp-calculator-layout-v2{
  min-width:0;
  max-width:100%;
}

@media(max-width:760px){
  html,body{max-width:100%;overflow-x:hidden!important}
  .cp-portal{max-width:100vw;overflow-x:hidden}
  #cp-inspection-modal{
    width:100vw;
    max-width:100vw;
    padding:0!important;
    overflow-x:hidden!important;
  }
  .cp-inspection-modal-shell{
    width:100vw!important;
    max-width:100vw!important;
    margin:0!important;
    border-radius:18px 18px 0 0;
    overflow:hidden!important;
  }
  .cp-inspection-body{
    width:100%;
    overflow-x:hidden!important;
    overscroll-behavior-x:none;
  }
  .cp-location-workspace{
    width:auto;
    max-width:calc(100% + 24px);
    overflow:hidden;
  }
  .cp-location-tabs{
    width:100%;
    max-width:100%;
    margin-right:0!important;
    padding-right:1px;
    overflow-x:auto;
    overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;
  }
  .cp-location-tab-wrap{min-width:148px}
  .cp-form-grid-3,.cp-form-grid,.cp-fields,.cp-specific-grid{min-width:0}
  .cp-field,.cp-field-full{min-width:0!important;max-width:100%}
  .cp-input,.cp-select,.cp-textarea{min-width:0!important;max-width:100%!important}
  .cp-owner-agenda-note{display:block}
  .cp-owner-agenda-note b{display:block;margin-bottom:4px}
  .cp-finance-filter-body{align-items:stretch;flex-direction:column}
  .cp-finance-period-controls{justify-content:flex-start}
  .cp-finance-period-controls>.cp-select,.cp-finance-context{width:100%}
  .cp-finance-quarter{grid-template-columns:1fr 1fr;width:100%}
}

@media(max-width:900px){
  #cp-owner-app .cp-mobile-nav b svg{
    width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
  }
}

/* =========================================================
   V1.8.1 – PLANNING BEVESTIGEN / MEDEWERKER KIEZEN
   ========================================================= */
.cp-schedule-confirm-modal{width:min(920px,100%)}
.cp-schedule-confirm-summary{display:grid;gap:12px}
.cp-schedule-confirm-location{overflow:hidden;border:1px solid var(--cp-line);border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(7,20,23,.04)}
.cp-schedule-confirm-location-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;border-bottom:1px solid #eaf0ec;background:linear-gradient(180deg,#fbfefc,#f5faf7)}
.cp-schedule-confirm-location-head span:first-child{display:block;color:#8d9a95;font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.cp-schedule-confirm-location-head strong{display:block;margin-top:2px;color:#1f383f;font-size:12px;font-weight:950}
.cp-schedule-confirm-list{display:grid}
.cp-schedule-confirm-row{display:grid;grid-template-columns:minmax(180px,.9fr) minmax(220px,1.1fr);gap:14px;align-items:center;padding:12px 14px;border-top:1px solid #eef2f0}
.cp-schedule-confirm-row:first-child{border-top:0}
.cp-schedule-confirm-when strong{display:block;color:#243d43;font-size:11px;font-weight:950}
.cp-schedule-confirm-when span{display:block;margin-top:3px;color:#82908b;font-size:9px}
.cp-schedule-confirm-worker label{display:block;margin-bottom:5px;color:#60716b;font-size:9px;font-weight:900}
.cp-schedule-confirm-worker label small{color:#9aa6a2;font-weight:700}
@media(max-width:680px){
  .cp-schedule-confirm-row{grid-template-columns:1fr;gap:8px}
  .cp-schedule-confirm-location-head{align-items:flex-start}
}


/* =========================================================
   V1.9 — ZIJBALK MET KAARTJES + KLANTREACTIE + MAIL
   ========================================================= */

@media(min-width:901px){
  #cp-owner-app .cp-shell{
    grid-template-columns:198px minmax(0,1fr);
    gap:18px;
  }

  #cp-owner-app .cp-sidebar{
    padding:11px;
    border:1px solid #dfe7e1;
    border-radius:19px;
    background:linear-gradient(180deg,#ffffff,#f9fcfa);
    box-shadow:0 14px 38px rgba(7,20,23,.07);
  }

  #cp-owner-app .cp-nav{
    gap:6px;
  }

  #cp-owner-app .cp-nav-label{
    margin:8px 7px 7px;
  }

  #cp-owner-app .cp-nav-btn{
    position:relative;
    min-height:45px;
    display:grid!important;
    grid-template-columns:31px minmax(0,1fr);
    align-items:center;
    gap:9px;
    width:100%;
    padding:6px 10px 6px 7px!important;
    border:1px solid #e0e8e4!important;
    border-radius:13px!important;
    color:#40544e!important;
    background:#fff!important;
    box-shadow:0 4px 12px rgba(7,20,23,.025)!important;
    font-size:10.4px!important;
    font-weight:900!important;
    line-height:1.2;
    text-align:left;
  }

  #cp-owner-app .cp-nav-btn::before{
    display:none!important;
  }

  #cp-owner-app .cp-nav-btn:hover{
    transform:translateY(-1px);
    border-color:#cfe0d7!important;
    background:#fbfefc!important;
    box-shadow:0 7px 16px rgba(7,20,23,.05)!important;
  }

  #cp-owner-app .cp-nav-btn.active{
    color:#0b3927!important;
    border-color:rgba(36,224,123,.52)!important;
    background:linear-gradient(135deg,#effdf5,#e3f8ed)!important;
    box-shadow:0 7px 18px rgba(16,185,99,.08),inset 0 0 0 1px rgba(36,224,123,.12)!important;
  }

  #cp-owner-app .cp-nav-icon{
    width:31px!important;
    height:31px!important;
    display:grid!important;
    place-items:center!important;
    margin:0!important;
    border:1px solid #dfe8e3!important;
    border-radius:10px!important;
    color:#4f665e!important;
    background:#f3f7f5!important;
  }

  #cp-owner-app .cp-nav-icon svg{
    width:15px!important;
    height:15px!important;
    display:block;
  }

  #cp-owner-app .cp-nav-btn.active .cp-nav-icon{
    color:#082016!important;
    border-color:#24e07b!important;
    background:#24e07b!important;
    box-shadow:0 5px 13px rgba(36,224,123,.18)!important;
  }

  #cp-owner-app .cp-nav-btn--airbnb{
    margin-top:4px;
    border-color:#d9e7df!important;
    background:linear-gradient(180deg,#fff,#f5faf7)!important;
  }

  #cp-owner-app .cp-nav-separator{
    margin:8px 2px 2px;
  }
}

.cp-proposal-response-box{
  display:flex;
  align-items:flex-start;
  gap:11px;
  margin:14px 0;
  padding:15px 16px;
  border:1px solid rgba(36,224,123,.34);
  border-radius:14px;
  background:linear-gradient(135deg,#effcf5,#e7f9ef);
}

.cp-proposal-response-box::before{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  flex:none;
  content:"✓";
  border-radius:10px;
  color:#07140d;
  background:#24e07b;
  font-size:13px;
  font-weight:1000;
}

.cp-proposal-response-box span{
  display:block;
  color:#5f716a;
  font-size:8.5px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.cp-proposal-response-box strong{
  display:block;
  margin-top:3px;
  color:#15392b;
  font-size:12px;
  font-weight:950;
}

.cp-proposal-response-box p{
  margin:5px 0 0;
  color:#61736c;
  font-size:10px;
  line-height:1.5;
}

.cp-mail-status{
  margin-top:15px;
  padding:13px 14px;
  border:1px solid #e0e8e4;
  border-radius:13px;
  background:#f7faf8;
}

.cp-mail-status p{
  margin:7px 0 0;
  color:#718079;
  font-size:9.5px;
  line-height:1.5;
}

/* Bevestigingsvenster planning: per dag duidelijke medewerkerkeuze */
.cp-schedule-confirm-row{
  grid-template-columns:minmax(0,1fr) minmax(220px,.72fr);
}

.cp-schedule-confirm-worker label{
  display:block;
  margin-bottom:5px;
  color:#66766f;
  font-size:8.5px;
  font-weight:900;
}

.cp-schedule-confirm-worker label small{
  color:#98a29e;
  font-weight:700;
}

/* Mobiel: absoluut geen horizontaal meeschuivende pagina */
@media(max-width:900px){
  html,body{
    max-width:100%!important;
    overflow-x:hidden!important;
  }

  #cp-owner-app,
  #cp-worker-app,
  .cp-portal,
  .cp-shell,
  .cp-main,
  .cp-view,
  .cp-card,
  .cp-modal-backdrop,
  .cp-modal{
    max-width:100%!important;
  }

  .cp-modal-body,
  .cp-inspection-layout,
  .cp-inspection-content{
    min-width:0!important;
    max-width:100%!important;
    overflow-x:hidden!important;
  }

  .cp-location-tabs,
  .cp-week-grid,
  .cp-table-wrap{
    max-width:100%;
  }

  .cp-schedule-confirm-row{
    grid-template-columns:1fr;
  }
}


/* =========================================================
   V1.10 – KLANTGROEPEN + DAGGERICHT TEAM/DASHBOARD
   ========================================================= */
.cp-owner-portal,.cp-main,.cp-view{max-width:100%;min-width:0;overflow-x:hidden}
.cp-dashboard-grid-v2{grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr)}
.cp-live-team-grid{display:grid;gap:9px}
.cp-worker-live-card{border:1px solid #e2e9e5;border-radius:15px;background:#fff;overflow:hidden;box-shadow:0 7px 20px rgba(7,20,23,.035)}
.cp-worker-live-card.is-live{border-color:rgba(36,224,123,.55);box-shadow:0 0 0 3px rgba(36,224,123,.07),0 10px 25px rgba(7,20,23,.05)}
.cp-worker-live-head{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:9px;padding:11px 12px;border-bottom:1px solid #edf2ef}
.cp-worker-live-head .cp-team-avatar{width:38px;height:38px;border-radius:11px}
.cp-worker-live-name strong{display:block;color:#243b42;font-size:11px;font-weight:950}.cp-worker-live-name span{display:block;margin-top:2px;color:#8b9894;font-size:8.5px}
.cp-worker-live-jobs{display:grid}.cp-worker-live-job{width:100%;display:grid;grid-template-columns:48px minmax(0,1fr) 18px;align-items:center;gap:8px;padding:9px 11px;border:0;border-bottom:1px solid #f0f3f1;background:#fff;text-align:left}.cp-worker-live-job:last-child{border-bottom:0}.cp-worker-live-job:hover{background:#f8fbf9}.cp-worker-live-time{color:#0c8d53;font-size:9px;font-weight:950}.cp-worker-live-copy b{display:block;color:#31474d;font-size:9.5px;font-weight:900}.cp-worker-live-copy small{display:block;margin-top:2px;color:#8e9996;font-size:8px}.cp-worker-live-arrow{color:#91a09a;font-weight:900}.cp-worker-no-job{padding:12px;color:#9aa5a1;font-size:9px}.cp-worker-more{padding:7px 11px;color:#7e8e88;background:#f9fbfa;font-size:8.5px;font-weight:800}
.cp-day-plan-head{align-items:center}.cp-day-switcher{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.cp-day-switch-btn,.cp-day-today-btn{min-height:36px;border:1px solid #dce6e1;border-radius:10px;background:#fff;color:#39504a;font-size:9px;font-weight:900}.cp-day-switch-btn{width:36px}.cp-day-today-btn{padding:0 11px}.cp-day-date{min-height:36px;padding:0 9px;border:1px solid #dce6e1;border-radius:10px;background:#fff;color:#29413a;font-size:9px;font-weight:800}.cp-day-table td{padding-top:11px;padding-bottom:11px}
.cp-contract-toolbar{align-items:center}.cp-contract-toolbar .cp-filter-row{justify-content:flex-end}.cp-contract-list{display:grid;gap:10px}.cp-contract-card{display:grid;grid-template-columns:minmax(230px,1fr) minmax(430px,1.5fr) auto;gap:14px;align-items:center;padding:14px;border:1px solid #e0e8e4;border-radius:16px;background:linear-gradient(180deg,#fff,#fbfdfc);box-shadow:0 7px 20px rgba(7,20,23,.035)}.cp-contract-main{min-width:0}.cp-contract-title-row{display:flex;align-items:center;gap:10px}.cp-contract-icon{width:39px;height:39px;display:grid;place-items:center;flex:none;border-radius:12px;color:#072116;background:linear-gradient(135deg,var(--cp-green),#a7f3cd);font-size:10px;font-weight:1000}.cp-contract-title-row strong{display:block;color:#213a41;font-size:12px;font-weight:950}.cp-contract-title-row span{display:block;margin-top:2px;color:#8b9894;font-size:8.5px}.cp-contract-locations{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}.cp-contract-locations span{padding:5px 7px;border-radius:8px;background:#f0f5f2;color:#61716c;font-size:8px}.cp-contract-meta{display:grid;grid-template-columns:1.2fr 1fr 1fr .8fr;gap:8px}.cp-contract-meta>div{min-width:0;padding:8px 9px;border-radius:10px;background:#f5f8f6}.cp-contract-meta small{display:block;color:#92a09b;font-size:7.5px;font-weight:850}.cp-contract-meta b{display:block;margin-top:3px;overflow:hidden;color:#334b50;font-size:8.5px;font-weight:900;text-overflow:ellipsis;white-space:nowrap}.cp-contract-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.cp-job-group-modal-card{width:min(1020px,100%)}.cp-group-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:14px}.cp-group-summary{padding:11px;border:1px solid #e2e9e5;border-radius:12px;background:#f8fbf9}.cp-group-summary span{display:block;color:#8c9995;font-size:8px;font-weight:850}.cp-group-summary b{display:block;margin-top:4px;color:#284139;font-size:10px;font-weight:950}.cp-group-locations{display:grid;gap:11px}.cp-group-location-card{overflow:hidden;border:1px solid #e0e8e4;border-radius:14px;background:#fff}.cp-group-location-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:12px 13px;border-bottom:1px solid #edf2ef;background:#fbfdfc}.cp-group-location-head strong{display:block;color:#233d43;font-size:11px;font-weight:950}.cp-group-location-head span,.cp-group-location-head small{display:block;margin-top:3px;color:#8b9894;font-size:8.5px}.cp-group-location-head>div:last-child{text-align:right}.cp-group-location-head b{color:#0b8d50;font-size:10px}.cp-group-date-list{display:grid}.cp-group-date-row{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:center;padding:9px 12px;border-bottom:1px solid #f0f3f1}.cp-group-date-row:last-child{border-bottom:0}.cp-group-date-row strong,.cp-group-date-row span{display:block;color:#324a50;font-size:9px;font-weight:900}.cp-group-date-row small{display:block;margin-top:2px;color:#909c98;font-size:8px}
.cp-team-day-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.cp-team-directory{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.cp-team-directory-card{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:9px;padding:11px;border:1px solid #e2e9e5;border-radius:13px;background:#fff}.cp-team-directory-card strong{display:block;color:#2b4248;font-size:10px;font-weight:950}.cp-team-directory-card span:not(.cp-pill){display:block;margin-top:2px;color:#929e9a;font-size:8px}
@media(max-width:1200px){.cp-dashboard-grid-v2{grid-template-columns:1fr}.cp-contract-card{grid-template-columns:1fr}.cp-contract-meta{grid-template-columns:repeat(2,minmax(0,1fr))}.cp-contract-actions{justify-content:flex-start}.cp-team-directory{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.cp-day-plan-head{align-items:flex-start}.cp-day-switcher{width:100%}.cp-day-date{flex:1;min-width:130px}.cp-team-day-grid,.cp-team-directory{grid-template-columns:1fr}.cp-contract-meta,.cp-group-summary-grid{grid-template-columns:1fr 1fr}.cp-contract-card{padding:11px}.cp-group-date-row{grid-template-columns:1fr auto}.cp-group-date-row>div:nth-child(2){grid-column:1/2}.cp-group-date-row button{grid-column:2;grid-row:1/3}.cp-contract-toolbar{align-items:flex-start}.cp-contract-toolbar .cp-filter-row{width:100%;justify-content:flex-start}}
@media(max-width:480px){.cp-contract-meta,.cp-group-summary-grid{grid-template-columns:1fr}.cp-worker-live-head{grid-template-columns:36px minmax(0,1fr)}.cp-worker-live-head>.cp-pill{grid-column:2}.cp-day-switcher{display:grid;grid-template-columns:36px 1fr 36px}.cp-day-today-btn{display:none}.cp-day-date{width:100%;grid-column:2}.cp-day-switch-btn:first-child{grid-column:1;grid-row:1}.cp-day-switch-btn:last-child{grid-column:3;grid-row:1}}


/* V1.11 – medewerkerpreview en facturatie */
.cp-owner-preview-banner{display:flex;gap:10px;align-items:flex-start;margin-bottom:14px;padding:12px 13px;border:1px solid rgba(36,224,123,.32);border-radius:12px;background:linear-gradient(135deg,#effcf5,#f9fffb)}
.cp-owner-preview-banner strong{color:#173c2d;font-size:10.5px;font-weight:950}
.cp-owner-preview-banner span{color:#71827b;font-size:9.5px;line-height:1.4}
.cp-money-flow-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:14px}
.cp-money-flow-grid>div{padding:13px;border:1px solid #e1e9e5;border-radius:13px;background:#fbfdfc}
.cp-money-flow-grid>div>span{width:27px;height:27px;display:grid;place-items:center;margin-bottom:7px;border-radius:9px;color:#07140d;background:var(--cp-green);font-size:9px;font-weight:1000}
.cp-money-flow-grid strong{display:block;color:#263f45;font-size:10.5px;font-weight:950}
.cp-money-flow-grid small{display:block;margin-top:4px;color:#88958f;font-size:8.5px;line-height:1.4}
.cp-invoice-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 14px}
.cp-invoice-summary>span{padding:11px;border-radius:11px;background:#f3f7f4}
.cp-invoice-summary small{display:block;color:#85928d;font-size:8px;font-weight:850}
.cp-invoice-summary b{display:block;margin-top:4px;color:#203c35;font-size:15px;font-weight:1000}
.cp-billing-status{min-height:42px;display:flex;align-items:center;padding:0 12px;border:1px solid #dce5e1;border-radius:11px;background:#f7faf8;color:#4d635c;font-size:10px;font-weight:850}
@media(max-width:720px){.cp-money-flow-grid,.cp-invoice-summary{grid-template-columns:1fr}}

/* =========================================================
   V1.13 – FACTURATIE / BOEKHOUDING / MOBIEL PRAKTISCHER
   ========================================================= */

.cp-accounting-explain{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin:0 0 14px;
  padding:12px 14px;
  border:1px solid #dce9e2;
  border-radius:13px;
  background:linear-gradient(135deg,#f5fbf7,#eef8f2);
}
.cp-accounting-explain strong{
  color:#173d31;
  font-size:10.5px;
  font-weight:950;
}
.cp-accounting-explain span{
  max-width:620px;
  color:#70807a;
  font-size:9px;
  line-height:1.5;
}
.cp-invoice-summary--accounting{
  grid-template-columns:repeat(5,minmax(0,1fr));
}
.cp-invoice-edit-banner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
  padding:13px 14px;
  border:1px solid #dce8e2;
  border-radius:13px;
  background:#f5f9f6;
}
.cp-invoice-edit-banner strong{
  color:#183b31;
  font-size:12px;
  font-weight:950;
}
.cp-invoice-edit-banner span{
  color:#81908a;
  font-size:8.5px;
  line-height:1.4;
  text-align:right;
}

/* Owner mobile: 4 hoofdacties + Meer, dus geen rommelige tweede rij. */
.cp-mobile-nav--owner{
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
}

.cp-mobile-more-backdrop{
  position:fixed;
  z-index:6999;
  inset:0;
  display:none;
  align-items:flex-end;
  padding:18px 10px calc(82px + env(safe-area-inset-bottom));
  background:rgba(3,12,15,.50);
  backdrop-filter:blur(4px);
}
.cp-mobile-more-backdrop.open{
  display:flex;
}
.cp-mobile-more-card{
  width:100%;
  max-width:520px;
  margin:0 auto;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  border-radius:19px;
  background:#0a1c21;
  box-shadow:0 24px 70px rgba(0,0,0,.32);
}
.cp-mobile-more-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:15px 16px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.cp-mobile-more-head strong{
  display:block;
  color:#fff;
  font-size:14px;
  font-weight:950;
}
.cp-mobile-more-head span{
  display:block;
  margin-top:2px;
  color:rgba(255,255,255,.55);
  font-size:9px;
}
.cp-mobile-more-head button{
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  flex:none;
  border:1px solid rgba(255,255,255,.12);
  border-radius:10px;
  color:#fff;
  background:rgba(255,255,255,.05);
  font-size:21px;
  cursor:pointer;
}
.cp-mobile-more-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  padding:13px;
}
.cp-mobile-more-grid button,
.cp-mobile-more-grid a{
  min-height:78px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
  padding:12px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:13px;
  color:#fff !important;
  background:rgba(255,255,255,.045);
  font:inherit;
  text-decoration:none;
  cursor:pointer;
}
.cp-mobile-more-grid b{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:9px;
  color:#07140d;
  background:var(--cp-green);
  font-size:12px;
  font-weight:1000;
}
.cp-mobile-more-grid span{
  color:rgba(255,255,255,.86);
  font-size:9px;
  font-weight:900;
}
.cp-mobile-more-logout{
  display:flex;
  min-height:43px;
  align-items:center;
  justify-content:center;
  margin:0 13px 13px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:11px;
  color:rgba(255,255,255,.70) !important;
  background:rgba(255,255,255,.035);
  font-size:9.5px;
  font-weight:900;
  text-decoration:none;
}

@media(min-width:901px){
  .cp-mobile-more-backdrop{display:none !important;}
}

@media(max-width:760px){
  .cp-invoice-summary--accounting{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .cp-accounting-explain{
    display:block;
  }
  .cp-accounting-explain span{
    display:block;
    margin-top:4px;
  }
  .cp-invoice-edit-banner{
    display:block;
  }
  .cp-invoice-edit-banner span{
    display:block;
    margin-top:4px;
    text-align:left;
  }

  /* Op telefoon blijft de geldstroom compact horizontaal in plaats van 3 lange kaarten onder elkaar. */
  .cp-money-flow-grid{
    display:flex !important;
    gap:8px !important;
    overflow-x:auto;
    padding-bottom:4px;
    scroll-snap-type:x proximity;
    -webkit-overflow-scrolling:touch;
  }
  .cp-money-flow-grid>div{
    min-width:205px;
    flex:0 0 205px;
    scroll-snap-align:start;
  }

  .cp-table-actions{
    min-width:150px;
    justify-content:flex-end;
    flex-wrap:wrap;
  }
}

@media(max-width:640px){
  .cp-topbar-inner{
    min-height:60px;
  }
  #cp-owner-app .cp-brand-copy strong{
    font-size:11.5px;
  }
  #cp-owner-app .cp-brand-mark{
    width:37px;
    height:37px;
    border-radius:10px;
    font-size:11px;
  }
  #cp-owner-app .cp-icon-btn{
    width:38px;
    height:38px;
  }
  #cp-owner-app .cp-user-chip{
    padding:3px;
  }
  #cp-owner-app .cp-avatar{
    width:34px;
    height:34px;
  }

  .cp-page-title h1{
    font-size:24px;
    line-height:1.08;
  }
  .cp-page-title p{
    font-size:9.5px;
    line-height:1.5;
  }
  .cp-page-actions{
    gap:7px;
  }
  .cp-page-actions .cp-btn{
    min-height:40px;
    padding-inline:11px;
    font-size:9px;
  }

  .cp-invoice-summary--accounting>span{
    min-height:72px;
    padding:11px;
  }
  .cp-invoice-summary--accounting b{
    font-size:14px;
  }

  .cp-mobile-more-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}


/* =========================================================
   V1.14 – MOBIEL MEER-MENU: COMPACTE RECHTERLADE
   ========================================================= */
@media(max-width:900px){
  .cp-mobile-more-backdrop{
    align-items:flex-start !important;
    justify-content:flex-end !important;
    padding:76px 10px calc(86px + env(safe-area-inset-bottom)) !important;
    background:rgba(3,12,15,.28) !important;
    backdrop-filter:blur(2px) !important;
  }
  .cp-mobile-more-card{
    width:min(330px,calc(100vw - 28px)) !important;
    max-width:330px !important;
    max-height:calc(100dvh - 175px) !important;
    margin:0 !important;
    overflow:auto !important;
    border-radius:16px !important;
    box-shadow:0 22px 55px rgba(0,0,0,.34) !important;
  }
  .cp-mobile-more-head{padding:12px 13px !important;position:sticky;top:0;z-index:2;background:#0a1c21}
  .cp-mobile-more-head strong{font-size:13px !important}
  .cp-mobile-more-head span{font-size:8.5px !important}
  .cp-mobile-more-head button{width:32px !important;height:32px !important;border-radius:9px !important;font-size:18px !important}
  .cp-mobile-more-grid{grid-template-columns:1fr !important;gap:0 !important;padding:6px 10px !important}
  .cp-mobile-more-grid button,.cp-mobile-more-grid a{
    min-height:48px !important;
    display:grid !important;
    grid-template-columns:34px minmax(0,1fr) !important;
    align-items:center !important;
    justify-content:initial !important;
    gap:10px !important;
    padding:7px 8px !important;
    border:0 !important;
    border-bottom:1px solid rgba(255,255,255,.07) !important;
    border-radius:0 !important;
    background:transparent !important;
  }
  .cp-mobile-more-grid b{width:30px !important;height:30px !important;margin:0 !important}
  .cp-mobile-more-grid span{font-size:9.5px !important}
  .cp-mobile-more-logout{margin:7px 10px 10px !important;min-height:40px !important}
}

/* Factuur maken / eenmalige projecten */
.cp-invoice-create-note{
  display:flex;align-items:flex-start;justify-content:space-between;gap:16px;
  margin:15px 0;padding:12px 14px;border:1px solid #dce9e2;border-radius:13px;background:#f4faf6;
}
.cp-invoice-create-note strong{color:#173d31;font-size:10.5px;font-weight:950}
.cp-invoice-create-note span{max-width:620px;color:#70807a;font-size:9px;line-height:1.5}
.cp-oneoff-intake-note{
  margin-top:12px;padding:12px 14px;border:1px solid #cce9d7;border-radius:12px;background:#f2fbf6;color:#335e4e;
}
.cp-oneoff-intake-note strong{display:block;font-size:10px;font-weight:950}
.cp-oneoff-intake-note span{display:block;margin-top:3px;font-size:9px;line-height:1.5;color:#658076}
@media(max-width:700px){
  .cp-invoice-create-note{display:block}
  .cp-invoice-create-note span{display:block;margin-top:4px}
}


/* =========================================================
   V1.15 – FACTUREN EERST + MOLLIE + RUSTIGERE FINANCE
   ========================================================= */
.cp-billing-panel-priority{margin-top:0 !important;margin-bottom:16px}
.cp-billing-panel-priority .cp-card-head{background:linear-gradient(135deg,#fbfefc,#f1faf5)}
.cp-invoice-summary--accounting{grid-template-columns:repeat(4,minmax(0,1fr)) !important}
.cp-billing-mini-note{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 12px;padding:10px 12px;border:1px solid #e1eae5;border-radius:11px;background:#fafcfb}
.cp-billing-mini-note strong{color:#244039;font-size:9px;font-weight:950}
.cp-billing-mini-note span{color:#82908b;font-size:8.5px;line-height:1.45;text-align:right}
.cp-finance-subhead{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:20px 0 10px;padding:14px 15px;border:1px solid #dfe8e3;border-radius:14px;background:#f7faf8}
.cp-finance-subhead span{display:block;color:#0b8d50;font-size:8px;font-weight:950;letter-spacing:.09em;text-transform:uppercase}
.cp-finance-subhead strong{display:block;margin-top:4px;color:#233d43;font-size:12px;font-weight:950}
.cp-finance-subhead small{display:block;max-width:720px;margin-top:4px;color:#7e8c87;font-size:8.5px;line-height:1.5}
.cp-mollie-box{margin-top:3px;padding:14px;border:1px solid rgba(36,224,123,.30);border-radius:14px;background:linear-gradient(135deg,#f2fcf6,#fbfffc)}
.cp-mollie-box>div:first-child>strong{display:block;color:#173d31;font-size:11px;font-weight:950}
.cp-mollie-box>div:first-child>span{display:block;max-width:760px;margin:4px 0 12px;color:#697d75;font-size:9px;line-height:1.5}
.cp-invoice-table-v15 td:first-child strong{color:#213c43}
.cp-invoice-table-v15 td:first-child small{max-width:330px}
@media(max-width:760px){
  .cp-invoice-summary--accounting{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
  .cp-billing-mini-note,.cp-finance-subhead{display:block}
  .cp-billing-mini-note span{display:block;margin-top:4px;text-align:left}
  .cp-finance-subhead .cp-btn{width:100%;margin-top:10px}
  .cp-invoice-table-v15 th:nth-child(2),.cp-invoice-table-v15 td:nth-child(2){min-width:145px}
  .cp-invoice-table-v15 th:nth-child(5),.cp-invoice-table-v15 td:nth-child(5){min-width:200px}
}

.cp-inspection-optional{margin-top:24px;border-top:1px solid #dce5df;padding-top:18px}.cp-inspection-optional summary{cursor:pointer;font-weight:650}.cp-inspection-optional p{font-size:13px;color:#65766b}
