
/* Contracten.cc — werkgeversportaal mobile first */

body:has(#account:not([hidden])) {
  background:
    radial-gradient(ellipse at 100% 0%, #c9e7ff 0%, transparent 38%),
    linear-gradient(145deg, #e8f4ff 0%, #f5f9ff 52%, #e9f2fd 100%);
  color: #10244a;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

body:has(#account:not([hidden])) main.workspace {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  padding: 16px 16px 110px;
  margin: 0 auto;
}

#account {
  --cc-blue: #0866f5;
  --cc-navy: #10244a;
  --cc-border: #dbe9f9;
  --cc-muted: #69809d;
  --cc-card: #ffffff;
  width: 100%;
  max-width: 1180px;
  box-sizing: border-box;
  margin: 0 auto;
  color: var(--cc-navy);
}

#account [hidden] {
  display: none !important;
}

#account h1,
#account h2,
#account h3,
#account h4 {
  color: var(--cc-navy);
  letter-spacing: -.035em;
  line-height: 1.25;
}

#account h1 {
  font-size: clamp(1.65rem, 5vw, 2.35rem);
  font-weight: 800;
  margin: 0 0 .55rem;
}

#account h2 {
  font-size: 1.2rem;
  font-weight: 750;
}

#account p {
  line-height: 1.6;
}

#account a {
  color: var(--cc-blue);
}

#account button,
#account input,
#account select,
#account textarea {
  font-family: inherit;
}

#account button,
#account .btn {
  border-radius: 13px;
  min-height: 44px;
  font-weight: 700;
}

#account .btn:not(.secondary) {
  background: var(--cc-blue);
  color: white;
  border-color: var(--cc-blue);
  box-shadow: 0 5px 13px #0866f51d;
}

#account .btn.secondary {
  background: #eff6ff;
  color: #155ab9;
  border: 1px solid var(--cc-border);
}

#account input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
#account select,
#account textarea {
  box-sizing: border-box;
  max-width: 100%;
  min-height: 47px;
  border-radius: 13px;
  border: 1.5px solid #d4e4f7;
  background: #fff;
  color: var(--cc-navy);
  padding: 11px 13px;
}

#account :is(input, select, textarea, button, a):focus-visible {
  outline: 3px solid #88bcff;
  outline-offset: 2px;
}

#account label {
  color: var(--cc-navy);
  font-weight: 600;
}

#account .cc-employer-view {
  min-width: 0;
  padding: 0;
}

#account .cc-employer-view[hidden] {
  display: none !important;
}

#account .cc-employer-view > section,
#account .cc-employer-view > div,
#account .cc-employer-view > form,
#account .cc-employer-view > details {
  box-sizing: border-box;
  max-width: 100%;
}

#account #cc-dashboard {
  background: transparent;
  padding: 0;
  margin: 0;
}

#account .cc-dashboard-subtitle {
  color: var(--cc-muted);
  font-size: .93rem;
  margin-top: 0;
}

#account #cc-dashboard-primary {
  margin: 19px 0 22px;
}

#account #new-contract {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 57px;
  background: var(--cc-blue);
  color: #fff;
  border-radius: 16px;
  padding: 12px 20px;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 9px 20px #0866f525;
}

#account .cc-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin: 20px 0;
}

#account .cc-stat-card {
  min-width: 0;
  background: white;
  border: 1.5px solid var(--cc-border);
  border-radius: 19px;
  padding: 17px 14px;
  box-shadow: 0 5px 17px #153c7010;
}

#account .cc-stat-card span {
  display: block;
  color: #526b88;
  font-size: .78rem;
  font-weight: 650;
  line-height: 1.45;
}

#account .cc-stat-card strong {
  display: block;
  color: var(--cc-navy);
  font-size: 2.1rem;
  letter-spacing: -.055em;
  font-weight: 800;
  margin-top: 9px;
}

#account .cc-stat-card:nth-child(3) {
  background: #fff7e9;
  border-color: #ffe5b6;
}

#account .cc-stat-card:nth-child(3) strong {
  color: #b57315;
}

#account .cc-dashboard-finance,
#account #employee-alerts,
#account #active-drafts,
#account #open-contracts,
#account #employees,
#account #financien,
#account #employer-settings,
#account #branch-form,
#account #manager-form,
#account #private-templates {
  background: var(--cc-card);
  border: 1px solid var(--cc-border);
  border-radius: 22px;
  padding: 19px;
  box-shadow: 0 7px 25px #153c700d;
  margin-bottom: 17px;
}

#account #employee-alerts {
  background: #fff9ed;
  border-color: #ffe6ba;
}

#account details {
  border-radius: 15px;
}

#account summary {
  cursor: pointer;
  font-weight: 700;
  padding: 10px 0;
}

#account #employee-list > details {
  padding: 12px 15px;
  border: 1px solid var(--cc-border);
  background: #f8fbff;
  margin: 9px 0;
}

#account #employee-list > details > summary {
  color: var(--cc-navy);
}

#account .cc-template-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0;
}

#account .cc-template-tabs button {
  background: #eff6ff;
  color: #426286;
  border: 1px solid var(--cc-border);
  border-radius: 13px;
  padding: 11px 15px;
}

#account .cc-template-tabs button[aria-selected="true"] {
  background: var(--cc-blue);
  color: white;
  border-color: var(--cc-blue);
}

#account #cc-panel-employment,
#account #cc-panel-termination {
  background: white;
  border: 1px solid var(--cc-border);
  border-radius: 22px;
  padding: 19px;
  box-shadow: 0 7px 25px #153c700d;
}

#account #organization-label,
#account #branch-catalog > label {
  display: block;
  margin: 0 0 12px;
}

#account #branches {
  color: var(--cc-muted);
  font-size: .88rem;
  margin: 0 0 15px;
}

#account .cc-employer-nav {
  position: fixed;
  z-index: 50;
  bottom: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  margin: 0;
  padding: 9px 7px calc(9px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--cc-border);
  box-shadow: 0 -6px 25px #153c7014;
  overflow: visible;
}

#account .cc-employer-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  padding: 8px 2px;
  color: #617995;
  background: transparent;
  border-radius: 13px;
  text-decoration: none;
  font-size: .67rem;
  font-weight: 700;
  white-space: nowrap;
}

#account .cc-employer-nav a[aria-current="page"] {
  background: #e7f2ff;
  color: var(--cc-blue);
}

#account .cc-employer-nav .cc-nav-icon {
  width: 22px;
  height: 22px;
  flex: none;
}

@media (min-width: 700px) {
  body:has(#account:not([hidden])) main.workspace {
    padding: 36px 30px 70px 112px;
  }

  #account .cc-employer-nav {
    top: 34px;
    bottom: 34px;
    right: auto;
    left: 22px;
    width: 74px;
    border: 1px solid var(--cc-border);
    border-radius: 24px;
    padding: 16px 7px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 14px;
    box-shadow: 0 9px 25px #153c7010;
  }

  #account .cc-employer-nav a {
    min-height: 55px;
    font-size: .58rem;
    padding: 10px 2px;
    white-space: normal;
    text-align: center;
  }

  #account .cc-dashboard-stats {
    gap: 16px;
  }

  #account .cc-stat-card {
    padding: 23px;
  }
}

@media (min-width: 1000px) {
  #account .cc-dashboard-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #account .cc-stat-card strong {
    font-size: 2.55rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  #account .btn,
  #account .cc-employer-nav a,
  #account .cc-stat-card {
    transition: background .18s ease, box-shadow .18s ease;
  }
}


/* iPhone / mobiele breedtecorrectie */
@media (max-width: 699px) {
  html {
    width: 100%;
    overflow-x: clip;
  }

  body {
    width: 100%;
    min-width: 0 !important;
    margin: 0;
    overflow-x: clip;
  }

  body:has(#account:not([hidden])) main.workspace {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 16px 16px 110px;
  }

  #account,
  #branch-catalog,
  #cc-dashboard,
  #cc-dashboard-primary,
  #account .cc-employer-view {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  #account .cc-dashboard-stats {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #account .cc-stat-card {
    min-width: 0;
    overflow-wrap: break-word;
  }

  #account #new-contract {
    width: 100%;
    box-sizing: border-box;
  }

  #account .cc-employer-nav {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}


/* CC MOBILE LAYOUT FIX V2 */

/* Achtergrond alleen voor de ingelogde werkgeversomgeving */
html:has(#account:not([hidden])),
html:has(#account:not([hidden])) body {
  background: #edf6ff !important;
  background-image: none !important;
  min-width: 0 !important;
  max-width: 100%;
}

/* Oude workspace-breedte overrulen */
body:has(#account:not([hidden])) main.workspace {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 auto !important;
  box-sizing: border-box;
}

/* Inhoud mag nooit breder worden dan het scherm */
#account:not([hidden]),
#account:not([hidden]) #branch-catalog,
#account:not([hidden]) .cc-employer-view,
#account:not([hidden]) #cc-dashboard {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

/* Voorkom uitrekken door kaarten, formulieren en tekst */
#account .cc-dashboard-stats,
#account #cc-dashboard-primary,
#account .cc-dashboard-finance {
  min-width: 0;
  max-width: 100%;
}

#account .cc-stat-card {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 699px) {
  body:has(#account:not([hidden])) main.workspace {
    padding: 16px 15px 115px !important;
  }

  #account .cc-dashboard-stats {
    display: grid !important;
    grid-template-columns:
      minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 10px;
  }

  #account .cc-stat-card {
    padding: 15px 12px;
    border-radius: 18px;
  }

  #account .cc-stat-card span {
    font-size: .76rem;
    line-height: 1.4;
  }

  #account .cc-stat-card strong {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  #account .cc-employer-nav {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100% !important;
    max-width: 100% !important;
  }

  #account #new-contract {
    max-width: 100%;
  }
}

/* CC COMPACT ORGANIZATION SELECTOR V1 */

/* Twee compacte regels met label en select naast elkaar */
#account #organization-label,
#account #branch-catalog > label {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
}

/* Selectie vult alleen de beschikbare breedte */
#account #organization,
#account #catalog-branch {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
}

/* De dubbele vestigingslijst niet tonen */
#account #branches {
  display: none !important;
}

/* Geen extra witruimte boven het vestigingsmenu */
#account #branch-catalog {
  margin-top: 0;
  padding-top: 0;
}

/* CC MOBILE CENTRAL CONTRACT ACTION V1 */
@media (max-width: 699px) {
  #account .cc-employer-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    gap: 0;
  }

  #account .cc-employer-nav .cc-nav-create {
    white-space: normal;
    text-align: center;
    gap: 4px;
    padding: 2px 0 5px;
    color: var(--cc-blue);
    font-size: .65rem;
    line-height: 1.15;
  }

  #account .cc-nav-create-circle {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--cc-blue);
    color: white;
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
    box-shadow: 0 3px 10px #153c7020;
  }
}

@media (min-width: 700px) {
  #account .cc-employer-nav .cc-nav-create {
    display: none !important;
  }
}

#account .cc-employer-nav .cc-nav-create[hidden] {
  display: none !important;
}


/* CC FLOATING CURVED NAV V1 */
@media (max-width: 699px) {

  #account .cc-employer-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    gap: 0;
    padding: 5px 7px calc(5px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #e1e8f0;
    box-shadow: 0 -3px 16px #153c7010;
    overflow: visible;
    isolation: isolate;
  }

  /* Vloeiende witte verhoging rond de centrale actie */
  #account .cc-employer-nav::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 94px;
    height: 43px;
    left: 50%;
    top: -27px;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #e1e8f0;
    border-bottom: 0;
    border-radius: 52px 52px 0 0;
    box-sizing: border-box;
    pointer-events: none;
  }

  /* Rustige navigatie zonder grote selectieblokken */
  #account .cc-employer-nav a {
    min-height: 54px;
    padding: 4px 1px;
    gap: 3px;
    border-radius: 0;
    font-size: .62rem;
    font-weight: 600;
    line-height: 1.2;
  }

  #account .cc-employer-nav a[aria-current="page"] {
    background: transparent;
    color: var(--cc-blue);
  }

  #account .cc-employer-nav .cc-nav-icon {
    width: 21px;
    height: 21px;
  }

  #account .cc-employer-nav .cc-nav-create {
    position: relative;
    z-index: 1;
    padding: 0 1px 3px;
    gap: 3px;
    min-height: 67px;
    line-height: 1.1;
    color: var(--cc-blue);
  }

  #account .cc-nav-create-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    box-shadow: 0 3px 10px #153c7018;
  }

  #account .cc-employer-nav .cc-nav-create[hidden] {
    display: none !important;
  }
}


/* CC COMPACT DASHBOARD HEADING V1 */
#account .cc-dashboard-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  font-size: 1.25rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -.025em;
  color: #16345b;
}

#account .cc-dashboard-heading svg {
  width: 21px;
  height: 21px;
  flex: none;
}

/* Oude grote contractknop verbergen.
   De bestaande JS-link blijft beschikbaar. */
#account #new-contract {
  display: none !important;
}


/* CC DASHBOARD HEADER LAYOUT V1 */

#account .cc-dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

#account .cc-dashboard-heading {
  margin: 0;
}

#account #cc-dashboard-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 8px;
  border: 1px solid #dce6f1;
  border-radius: 10px;
  background: #fff;
  color: #607895;
  cursor: pointer;
}

#account #cc-dashboard-logout svg {
  width: 20px;
  height: 20px;
}

#account #cc-dashboard-selectors {
  margin-bottom: 16px;
}

#account #cc-dashboard-selectors label {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

#account #cc-dashboard-selectors select {
  width: 100%;
  min-width: 0;
}

#account #logout,
#account #reauth {
  display: none !important;
}

/* CC FIX BRANCH SELECTOR POSITION V1 */
#account #cc-dashboard-selectors {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#account #cc-dashboard-selectors > label {
  margin: 0 !important;
}

/* CC DASHBOARD COMPACT SELECTORS V2 START */

/* Organisatie en vestiging naast elkaar */
#account #cc-dashboard-selectors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 8px;
}

/* Labels boven hun dropdown */
#account #cc-dashboard-selectors > label,
#account #cc-dashboard-selectors > #branch-catalog > label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  min-width: 0;
  margin: 0 !important;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 500;
  color: #526b89;
}

/* Compacte dropdowns met precies één pijl */
#account #cc-dashboard-selectors select {
  display: block;
  width: 100%;
  min-width: 0;
  height: 40px;
  min-height: 40px;
  padding: 0 30px 0 11px;
  margin: 0;
  border: 1px solid #d2e2f5;
  border-radius: 9px;
  background-color: #fff;
  background-image: none !important;
  appearance: auto !important;
  -webkit-appearance: menulist !important;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  color: #17345b;
  box-sizing: border-box;
}

/* Geen overbodige ruimte rond de vestigingscontainer */
#account #cc-dashboard-selectors > #branch-catalog {
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0;
}

/* Statistiekkaarten dichter bij de selecties */
#account #cc-dashboard .cc-dashboard-stats {
  margin-top: 10px;
}

/* Op heel smalle schermen blijven velden leesbaar */
@media (max-width: 380px) {
  #account #cc-dashboard-selectors {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* CC DASHBOARD COMPACT SELECTORS V2 END */


/* CC FIX DUBBELE DROPDOWNPIJLTJES */
#organization,
#catalog-branch {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: none !important;
}


/* Contracten.cc — compacte personeelslijst */
#employee-list {
  width: 100%;
  min-width: 0;
}

#employee-list .cc-employee-row {
  display: grid;
  grid-template-columns: minmax(120px, 2fr) minmax(90px, 1fr)
                         minmax(100px, 1.3fr) 20px;
  align-items: center;
  gap: 10px;
  padding: 14px 10px;
  border-bottom: 1px solid #e5eaf1;
  font-size: 13px;
}

#employee-list .cc-employee-table-header {
  color: #66758a;
  font-size: 12px;
  font-weight: 700;
}

#employee-list .cc-employee-details {
  border: 0;
  margin: 0;
}

#employee-list .cc-employee-details > summary {
  cursor: pointer;
  list-style: none;
}

#employee-list .cc-employee-details > summary::-webkit-details-marker {
  display: none;
}

#employee-list .cc-employee-name {
  font-weight: 600;
}

#employee-list .cc-employee-status {
  font-weight: 600;
}

#employee-list .cc-status-complete,
#employee-list .cc-status-signed {
  color: #16803d;
}

#employee-list .cc-status-sent {
  color: #0066eb;
}

#employee-list .cc-status-refused {
  color: #c62828;
}

#employee-list .cc-status-expired {
  color: #b36b00;
}

#employee-list .cc-status-ended {
  color: #66758a;
}

#employee-list .cc-employee-arrow {
  font-size: 22px;
  color: #66758a;
}

#employee-list .cc-employee-details[open] .cc-employee-arrow {
  transform: rotate(90deg);
}

@media (max-width: 600px) {
  #employee-list .cc-employee-row {
    grid-template-columns: minmax(90px, 1.5fr) 85px
                           minmax(85px, 1fr) 14px;
    gap: 5px;
    padding: 12px 3px;
    font-size: 11px;
  }
}


/* Contracten.cc - statusiconen werknemers */
#employee-list .cc-employee-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
  color: inherit;
  font-weight: 400;
}

#employee-list .cc-employee-status svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

#employee-list .cc-employee-status-label {
  color: #253247;
}

#employee-list .cc-status-complete svg,
#employee-list .cc-status-signed svg {
  color: #00b85a;
}

#employee-list .cc-status-sent svg {
  color: #299bff;
}

#employee-list .cc-status-refused svg {
  color: #ef4444;
}

#employee-list .cc-status-expired svg {
  color: #f97316;
}

#employee-list .cc-status-ended svg,
#employee-list .cc-status-unknown svg {
  color: #9ca3af;
}


/* CC PERSONEEL LAYOUT V2 */
#account.cc-personnel-layout {
  background: #f3f7fd;
}

#account.cc-personnel-layout #cc-view-employees {
  display: block;
}

#account.cc-personnel-layout #cc-view-employees[hidden] {
  display: none !important;
}

#account.cc-personnel-layout .cc-dashboard-header {
  margin-bottom: 0;
  padding: 24px 26px 18px;
  background: #fff;
  border-radius: 18px 18px 0 0;
}

#account.cc-personnel-layout #cc-dashboard-selectors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 18px 26px 24px;
  margin-bottom: 22px;
  background: #fff;
  border-top: 1px solid #e8eef6;
  border-radius: 0 0 18px 18px;
}

#account.cc-personnel-layout #cc-dashboard-selectors label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
  font-weight: 600;
}

#account.cc-personnel-layout #branch-catalog {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

#account.cc-personnel-layout #employees {
  padding: 24px 26px;
  background: #fff;
  border: 1px solid #e8eef6;
  border-radius: 18px;
}

#account.cc-personnel-layout #employees > h2 {
  margin: 0 0 20px;
  color: #19365a;
}

#account.cc-personnel-layout #employee-list .cc-employee-row {
  padding-top: 16px;
  padding-bottom: 16px;
}

@media (max-width: 600px) {
  #account.cc-personnel-layout .cc-dashboard-header {
    padding: 18px 16px;
  }

  #account.cc-personnel-layout #cc-dashboard-selectors {
    padding: 16px;
    gap: 10px;
  }

  #account.cc-personnel-layout #employees {
    padding: 18px 12px;
  }
}


/* CC PERSONEEL HEADER FIX V3 */
#account.cc-personnel-layout .cc-dashboard-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #19365a;
}

#account.cc-personnel-layout .cc-dashboard-heading svg {
  width: 24px;
  height: 24px;
}

#account.cc-personnel-layout #cc-dashboard-logout {
  display: flex;
  align-items: center;
  justify-content: center;
}

#account.cc-personnel-layout #cc-dashboard-selectors > label,
#account.cc-personnel-layout #branch-catalog > label {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

#account.cc-personnel-layout #branch-catalog:not([hidden]) {
  display: block;
}
