/* Cohubbd member portal — uses the theme's colour tokens, so dark mode follows the site. */
.cbm-portal {
  --p-navy: var(--cb-navy, #141A2E);
  --p-ink: var(--cb-ink, #3C4258);
  --p-card: var(--cb-white, #FFFFFF);
  --p-cream: var(--cb-cream, #FBF7EE);
  --p-yellow: var(--cb-yellow, #F9C935);
  --p-blue: var(--cb-blue, #1690D2);
  --p-tint: var(--cb-blue-tint, #EAF6FD);
  --p-line: var(--cb-line, #141A2E);
  max-width: none; margin: 0 0 64px; color: var(--p-navy);
  font-family: var(--cb-font-body, system-ui, sans-serif);
}
.cbm-portal *, .cbm-portal *::before, .cbm-portal *::after { box-sizing: border-box; }
.cbm-p-h { font-family: var(--cb-font-display, inherit); font-weight: 800; font-size: clamp(26px, 4vw, 36px); line-height: 1.15; margin: 0 0 8px; }
.cbm-p-sub { margin: 0; color: var(--p-ink); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cbm-p-muted { color: var(--p-ink); font-size: 14px; }
.cbm-p-small { font-size: 14px; color: var(--p-ink); margin-top: 22px; }
.cbm-p-warn { color: #B32D2E; font-weight: 600; font-size: 14px; }
.cbm-p-strong { font-weight: 700; font-size: 17px; margin: 0 0 10px; }

/* The theme keeps page text to 760px; the portal needs the full width. */
.cb-content:has(.cbm-portal) { max-width: none; font-size: 16px; }
.cbm-portal { margin-left: 0; }

/* Login */
.cbm-p-login { max-width: 460px; margin: 8px 0; background: var(--p-card); border: 1.5px solid var(--p-line); border-radius: 24px; padding: clamp(22px, 5vw, 34px); }
.cbm-p-login p { line-height: 1.6; }
.cbm-p-form { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 6px; }
.cbm-p-form label, .cbm-p-add label { font-weight: 600; font-size: 14px; }
.cbm-portal input[type=email], .cbm-portal input[type=text], .cbm-portal input[type=tel], .cbm-portal select {
  width: 100%; min-height: 50px; padding: 10px 16px; border: 1.5px solid var(--p-line); border-radius: 14px;
  background: var(--p-card); color: var(--p-navy); font: inherit; font-size: 16px;
}
.cbm-portal input:focus-visible, .cbm-portal select:focus-visible { outline: 3px solid var(--p-yellow); outline-offset: 1px; }
.cbm-p-code { font-family: var(--cb-font-num, monospace) !important; font-size: 28px !important; letter-spacing: 10px; text-align: center; }
.cbm-p-form .cb-btn { justify-content: center; margin-top: 6px; }
.cbm-p-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.cbm-p-row form { margin: 0; }
.cbm-p-link { background: none; border: 0; padding: 0; color: var(--p-blue); font: inherit; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cbm-p-link--danger { color: #B32D2E; }
.cbm-p-or { display: flex; align-items: center; gap: 12px; color: var(--p-ink); font-size: 13px; margin: 18px 0; }
.cbm-p-or::before, .cbm-p-or::after { content: ""; flex: 1; border-top: 1px solid var(--p-line); opacity: .25; }
.cbm-p-social { display: flex; flex-direction: column; gap: 10px; }
.cbm-p-social__btn { justify-content: center; }
.cbm-p-flash { background: var(--p-tint); border: 1.5px solid var(--p-blue); border-radius: 14px; padding: 12px 16px; font-size: 14px; font-weight: 600; margin: 12px 0; }
.cbm-p-flash--err { background: #FCF0F1; border-color: #D63638; color: #8A2424; }

/* Home */
.cbm-p-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.cbm-p-pill { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--p-navy); color: var(--p-card); font-size: 12px; font-weight: 600; margin: 0; }
.cbm-p-pill--soft { background: var(--p-tint); color: var(--p-navy); }
.cbm-p-pill--day { background: var(--p-yellow); color: #141A2E; }
.cbm-p-pill--night { background: #141A2E; color: #FFFFFF; }
.cbm-p-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.cbm-p-card { background: var(--p-card); border: 1.5px solid var(--p-line); border-radius: 22px; padding: 20px 22px; min-width: 0; }
.cbm-p-card p { margin: 0 0 8px; line-height: 1.55; }
.cbm-p-card--desk { background: var(--p-yellow); color: #141A2E; border-color: #141A2E; }
.cbm-p-card--desk .cbm-p-label { color: #141A2E; }
.cbm-p-card--soon { background: var(--p-cream); border-style: dashed; }
.cbm-p-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--p-ink); margin: 0 0 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cbm-p-label--gap { margin-top: 22px; }
.cbm-p-tag { text-transform: none; letter-spacing: 0; font-weight: 600; background: var(--p-tint); color: var(--p-navy); border-radius: 999px; padding: 2px 10px; }
.cbm-p-big { font-family: var(--cb-font-num, inherit); font-weight: 700; font-size: 64px; line-height: 1; margin: 4px 0 10px !important; letter-spacing: .02em; }
.cbm-p-big--sm { font-size: 40px; }
.cbm-p-bill { width: 100%; border-collapse: collapse; font-size: 15px; margin: 4px 0 10px; }
.cbm-p-bill td, .cbm-p-bill th { padding: 7px 0; border-bottom: 1px solid color-mix(in srgb, var(--p-line) 15%, transparent); text-align: left; vertical-align: top; }
.cbm-p-bill td:last-child, .cbm-p-bill th:last-child { text-align: right; white-space: nowrap; padding-left: 12px; }
.cbm-p-bill__total th { border-bottom: 0; font-size: 17px; }
.cbm-p-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 10px; font-size: 15px; }
.cbm-p-dl dt { color: var(--p-ink); }
.cbm-p-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* Team */
.cbm-p-team { margin-top: 16px; }
.cbm-p-team__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cbm-p-scroll { overflow-x: auto; }
.cbm-p-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cbm-p-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--p-ink); padding: 8px 10px 8px 0; }
.cbm-p-table td { padding: 10px 10px 10px 0; border-top: 1px solid color-mix(in srgb, var(--p-line) 15%, transparent); vertical-align: top; }
.cbm-p-table form { margin: 0; }
.cbm-p-add { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 10px 12px; align-items: end; }
.cbm-p-add label { display: flex; flex-direction: column; gap: 6px; }
.cbm-p-add .cb-btn { justify-content: center; min-height: 50px; }

@media (max-width: 600px) {
  .cbm-p-table thead { display: none; }
  .cbm-p-table tr { display: block; padding: 12px 0; border-top: 1px solid color-mix(in srgb, var(--p-line) 15%, transparent); }
  .cbm-p-table td { display: block; border: 0; padding: 2px 0; }
  .cbm-p-table td[data-l]::before { content: attr(data-l) ": "; color: var(--p-ink); font-size: 13px; }
  .cbm-p-table td:empty { display: none; }
  .cbm-p-big { font-size: 52px; }
}
.cbm-p-wifi { margin-top: 16px; padding-top: 14px; border-top: 1.5px dashed rgba(20,26,46,.35); }
.cbm-p-wifi .cbm-p-label { margin-bottom: 6px; }
.cbm-p-wifi p { margin: 0 0 4px; overflow-wrap: anywhere; }
.cbm-p-wifi code { font-size: 16px; font-weight: 700; background: rgba(255,255,255,.55); padding: 2px 8px; border-radius: 8px; color: #141A2E; user-select: all; }

/* Portal page: our own headings replace the theme's big title */
body.cbm-portal-page .cb-page__title { display: none; }
body.cbm-portal-page .cb-page { padding-top: 28px; }
.cbm-p-flash--paused { background: #FCF9E8; border-color: #DBA617; color: #6B4E00; }

/* Login: artwork left, form right */
.cbm-p-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 0; border: 1.5px solid #141A2E; border-radius: 28px; overflow: hidden; background: var(--p-card); }
.cbm-p-split .cbm-p-login { border: 0; border-radius: 0; margin: 0; max-width: none; align-self: center; padding: clamp(26px, 5vw, 56px); }
.cbm-p-art { background: #141A2E; color: #FFFFFF; padding: clamp(26px, 4.5vw, 52px); display: flex; flex-direction: column; gap: 18px; position: relative; overflow: hidden; }
.cbm-p-art::before { content: ""; position: absolute; width: 340px; height: 340px; right: -120px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(62,190,244,.28), rgba(62,190,244,0) 70%); }
.cbm-p-art__eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #F9C935; }
.cbm-p-art__title { margin: 0; font-family: var(--cb-font-display, inherit); font-weight: 800; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.12; max-width: 15ch; }
.cbm-p-art__pic { position: relative; max-width: 420px; width: 100%; margin: 6px 0; }
.cbm-p-art__pic > svg { display: block; width: 100%; height: auto; }
.cbm-p-art__chip { position: absolute; display: flex; align-items: center; gap: 8px; background: #FFFFFF; color: #141A2E; border: 1.5px solid #141A2E; border-radius: 14px; padding: 8px 12px; font-size: 13px; font-weight: 600; box-shadow: 0 10px 24px rgba(0,0,0,.28); }
.cbm-p-art__chip--wifi { left: -6px; bottom: -14px; }
.cbm-p-art__chip--wifi svg { color: #1690D2; }
.cbm-p-art__chip--bill { right: -8px; top: -12px; flex-direction: column; align-items: flex-start; gap: 0; background: #F9C935; }
.cbm-p-art__chip-l { font-size: 11px; font-weight: 600; opacity: .75; }
.cbm-p-art__list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.cbm-p-art__list li { display: flex; gap: 10px; align-items: flex-start; color: #E6EAF3; }
.cbm-p-art__list li::before { content: ""; flex: 0 0 9px; height: 9px; margin-top: 7px; border-radius: 50%; background: #F9C935; }
@media (max-width: 860px) {
  .cbm-p-split { grid-template-columns: 1fr; }
  .cbm-p-art { padding-bottom: 34px; }
  .cbm-p-art__list { display: none; }
  .cbm-p-art__pic { max-width: 330px; }
}

/* Bills & payments */
.cbm-p-billing { margin-top: 16px; }
.cbm-p-balance { font-family: var(--cb-font-display, inherit); font-weight: 800; font-size: clamp(24px, 3.4vw, 34px); margin: 2px 0 18px !important; line-height: 1.15; }
.cbm-p-balance span { display: block; font-family: var(--cb-font-body, inherit); font-weight: 500; font-size: 15px; color: var(--p-ink); margin-top: 4px; }
.cbm-p-balance--due { color: #B32D2E; }
.cbm-p-balance--ok { color: #00702A; }
html.cb-dark .cbm-p-balance--due { color: #FF8A8A; }
html.cb-dark .cbm-p-balance--ok { color: #6EE7A0; }
.cbm-p-billgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.cbm-p-sub4 { font-size: 15px; font-weight: 700; margin: 0 0 10px; }
.cbm-p-sub4 + .cbm-p-list, .cbm-p-sub4 + .cbm-p-howto { margin-bottom: 22px; }
.cbm-p-list { list-style: none; margin: 0 0 22px; padding: 0; }
.cbm-p-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid color-mix(in srgb, var(--p-line) 14%, transparent); font-size: 15px; }
.cbm-p-list a { color: inherit; text-decoration: none; }
.cbm-p-list a:hover strong { text-decoration: underline; }
.cbm-p-amt { font-weight: 700; white-space: nowrap; }
.cbm-p-st { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.cbm-p-st--paid, .cbm-p-st--confirmed { background: #EDFAEF; color: #00702A; }
.cbm-p-st--unpaid, .cbm-p-st--partly, .cbm-p-st--pending { background: #FCF9E8; color: #6B4E00; }
.cbm-p-st--overdue, .cbm-p-st--rejected { background: #FCF0F1; color: #B32D2E; }
.cbm-p-st--void { background: #F0F0F1; color: #50575E; }
.cbm-p-paybox { background: var(--p-cream); border-radius: 18px; padding: 18px 20px; }
.cbm-p-howto { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.cbm-p-howto figure { margin: 0; text-align: center; }
.cbm-p-howto img { width: 150px; height: 150px; object-fit: contain; background: #FFFFFF; border: 1.5px solid #141A2E; border-radius: 14px; padding: 6px; }
.cbm-p-howto figcaption { font-size: 12px; color: var(--p-ink); margin-top: 6px; max-width: 150px; }
.cbm-p-howto pre { font: inherit; font-size: 14px; white-space: pre-wrap; margin: 0 0 12px; overflow-wrap: anywhere; }
.cbm-p-howto .cbm-p-label { margin: 0 0 4px; }
.cbm-p-payform { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); margin-bottom: 10px; }
.cbm-p-payform .cbm-p-wide { grid-column: 1 / -1; }
.cbm-portal input[type=file] { font: inherit; font-size: 14px; padding: 10px 0; }
.cbm-portal input[type=date], .cbm-portal input[type=number] { width: 100%; min-height: 50px; padding: 10px 16px; border: 1.5px solid var(--p-line); border-radius: 14px; background: var(--p-card); color: var(--p-navy); font: inherit; font-size: 16px; }
@media (max-width: 860px) { .cbm-p-billgrid { grid-template-columns: 1fr; } }

/* ===== Stand-alone screens (no site header/footer) ===== */
body.cbm-login-page { margin: 0; background: var(--cb-cream, #FBF7EE); color: var(--cb-navy, #141A2E); font-family: var(--cb-font-body, system-ui, sans-serif); }
body.cbm-login-page.admin-bar .cbm-app__bar { top: 32px; }
.cbm-lp, .cbm-app { min-height: 100vh; display: flex; flex-direction: column; }

/* Login */
.cbm-lp__main { flex: 1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.cbm-lp__left { padding: 40px clamp(24px, 6vw, 96px); display: flex; flex-direction: column; }
.cbm-lp__logo { display: inline-flex; width: 68px; height: 68px; }
.cbm-lp__logo svg { width: 100%; height: 100%; }
.cbm-lp__hero { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 40px; padding: 32px 0; max-width: 680px; }
.cbm-lp__title { margin: 0; font-family: var(--cb-font-display, inherit); font-weight: 800; font-size: clamp(40px, 5.2vw, 76px); line-height: 1.02; letter-spacing: -.025em; color: var(--cb-navy, #141A2E); }
.cbm-lp__title span { color: var(--cb-blue, #1690D2); }
.cbm-lp__art { width: 100%; max-width: 440px; }
.cbm-lp__right { display: flex; align-items: center; justify-content: center; padding: 48px clamp(24px, 5vw, 80px); border-left: 1px solid rgba(20, 26, 46, .14); background: var(--cb-white, #FFFFFF); }
html.cb-dark .cbm-lp__right { border-left-color: rgba(238, 241, 247, .14); }
.cbm-lp__form { width: 100%; max-width: 420px; margin: 0; }
.cbm-lp__form .cbm-p-login { border: 0; border-radius: 0; padding: 0; margin: 0; max-width: none; background: transparent; }
.cbm-lp__form .cbm-p-h { font-size: clamp(26px, 2.6vw, 32px); }

/* Footer bar (both screens) */
.cbm-lp__foot { border-top: 1px solid rgba(20, 26, 46, .14); padding: 16px clamp(24px, 6vw, 96px); display: flex; justify-content: space-between; align-items: center; gap: 12px 28px; flex-wrap: wrap; font-size: 14px; background: var(--cb-cream, #FBF7EE); }
html.cb-dark .cbm-lp__foot { border-top-color: rgba(238, 241, 247, .14); }
.cbm-lp__langs, .cbm-lp__links { display: flex; gap: 8px 22px; flex-wrap: wrap; align-items: center; }
.cbm-lp__foot a { color: var(--cb-ink, #3C4258); text-decoration: none; }
.cbm-lp__foot a:hover { color: var(--cb-navy, #141A2E); text-decoration: underline; }
.cbm-lp__langs a[aria-current] { color: var(--cb-navy, #141A2E); font-weight: 700; }
.cbm-lp__links span { color: var(--cb-ink, #3C4258); }

@media (max-width: 900px) {
  .cbm-lp__main { grid-template-columns: 1fr; }
  .cbm-lp__left { padding: 22px 20px 0; }
  .cbm-lp__logo { width: 48px; height: 48px; }
  .cbm-lp__hero { padding: 18px 0 8px; gap: 18px; }
  .cbm-lp__title { font-size: clamp(30px, 8vw, 44px); }
  .cbm-lp__art { display: none; }
  .cbm-lp__right { border-left: 0; background: transparent; padding: 10px 20px 36px; align-items: flex-start; }
  .cbm-lp__foot { padding: 16px 20px; }
}

/* Logged-in app */
.cbm-app__bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px 28px; padding: 12px clamp(16px, 4vw, 56px); background: var(--cb-white, #FFFFFF); border-bottom: 1px solid rgba(20, 26, 46, .12); flex-wrap: wrap; }
html.cb-dark .cbm-app__bar { border-bottom-color: rgba(238, 241, 247, .12); }
.cbm-app__brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cb-navy, #141A2E); font-weight: 700; font-size: 16px; }
.cbm-app__brand svg { width: 38px; height: 38px; }
.cbm-app__nav { display: flex; gap: 4px; flex: 1; }
.cbm-app__nav a { padding: 8px 14px; border-radius: 999px; color: var(--cb-ink, #3C4258); text-decoration: none; font-weight: 600; font-size: 14px; }
.cbm-app__nav a:hover, .cbm-app__nav a:focus-visible { background: var(--cb-blue-tint, #EAF6FD); color: var(--cb-navy, #141A2E); }
.cbm-app__side { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.cbm-app__lang { color: var(--cb-ink, #3C4258); text-decoration: none; font-size: 14px; font-weight: 600; }
.cbm-app__out { border: 1.5px solid var(--cb-navy, #141A2E); border-radius: 999px; padding: 7px 16px; color: var(--cb-navy, #141A2E); text-decoration: none; font-weight: 600; font-size: 14px; }
.cbm-app__out:hover { background: var(--cb-navy, #141A2E); color: var(--cb-white, #FFFFFF); }
.cbm-app__main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 40px) 56px; scroll-margin-top: 80px; }
.cbm-app .cbm-portal { margin-bottom: 0; }
.cbm-app .cbm-p-head .cb-btn { display: none; }
.cbm-app .cbm-p-card { scroll-margin-top: 84px; }
.cbm-app__foot { justify-content: flex-end; }
@media (max-width: 700px) {
  .cbm-app__brand span { display: none; }
  .cbm-app__nav { order: 3; flex: 1 1 100%; overflow-x: auto; }
  .cbm-app__main { padding-top: 20px; }
}

/* Login screen: dark-mode button + feature list */
.cbm-lp { position: relative; }
.cbm-lp__mode { position: absolute; top: 40px; right: clamp(24px, 5vw, 80px); z-index: 5; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--cb-navy, #141A2E); background: var(--cb-white, #FFFFFF); color: var(--cb-navy, #141A2E); cursor: pointer; padding: 0; }
.cbm-lp__mode:hover { background: var(--cb-yellow, #F9C935); color: #141A2E; }
.cbm-lp__mode:focus-visible { outline: 3px solid var(--cb-yellow, #F9C935); outline-offset: 2px; }
.cbm-lp__mode .cb-theme-toggle__sun { display: none; }
html.cb-dark .cbm-lp__mode .cb-theme-toggle__sun { display: inline-flex; }
html.cb-dark .cbm-lp__mode .cb-theme-toggle__moon { display: none; }
.cbm-lp__mode span { display: inline-flex; }
.cbm-lp__list { list-style: none; margin: -12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 8px 28px; font-size: 15px; color: var(--cb-ink, #3C4258); }
.cbm-lp__list li { display: flex; gap: 10px; align-items: center; }
.cbm-lp__list li::before { content: ""; flex: 0 0 8px; height: 8px; border-radius: 50%; background: var(--cb-yellow, #F9C935); box-shadow: 0 0 0 1.5px var(--cb-navy, #141A2E); }
@media (max-width: 900px) {
  .cbm-lp__mode { top: 22px; right: 20px; width: 42px; height: 42px; }
  .cbm-lp__list { display: none; }
}

/* ---- My extras (add-ons) ---- */
.cbm-p-extras__grid { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: flex-start; margin-top: 8px; }
.cbm-p-xlist { flex: 999 1 420px; min-width: 0; list-style: none; margin: 0; padding: 0; }
.cbm-p-x { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px dashed color-mix(in srgb, var(--p-line) 25%, transparent); }
.cbm-p-x:last-child { border-bottom: 0; }
.cbm-p-x__txt { flex: 1 1 240px; min-width: 0; line-height: 1.5; }
.cbm-p-x__txt strong { font-size: 16px; margin-right: 6px; }
.cbm-p-x__act { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cbm-p-x__act form { margin: 0; }
.cbm-p-x__qty { display: flex; align-items: center; gap: 8px; }
.cbm-p-x__qty select { min-height: 38px; border-radius: 10px; padding: 0 8px; font: inherit; }
.cbm-p-x.is-on .cbm-p-x__txt strong { color: var(--p-blue); }
.cbm-p-x__bill { flex: 1 1 260px; min-width: 0; padding: 16px 18px; border: 1.5px solid var(--p-line); border-radius: 18px; }
.cbm-p-x__bill .cbm-p-sub4 { margin-top: 0; }

/* ---- Attendance ---- */
.cbm-p-att { margin-top: 16px; }
.cbm-p-att__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 12px; }
.cbm-p-att__top .cbm-p-label { margin: 0; }
.cbm-p-att__filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; margin: 0; }
.cbm-p-att__filter label { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--p-ink); }
.cbm-p-att__filter input[type=date] { min-height: 38px; border: 1.5px solid var(--p-line); border-radius: 10px; padding: 0 8px; font: inherit; font-size: 14px; background: transparent; color: inherit; }
.cbm-p-att__filter .cbm-p-link { font-size: 13px; padding-bottom: 8px; }
.cbm-p-att__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.cbm-p-att__body > * { min-width: 0; }
.cbm-p-att__body.has-team { grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); }
.cbm-p-att__people { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.cbm-p-att__people a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1.5px solid color-mix(in srgb, var(--p-line) 25%, transparent); border-radius: 12px; text-decoration: none; color: inherit; }
.cbm-p-att__people a:hover { border-color: var(--p-line); }
.cbm-p-att__people a.is-on { border-color: var(--p-line); background: color-mix(in srgb, var(--p-blue) 10%, transparent); }
.cbm-p-att__pn { font-weight: 600; font-size: 15px; }
.cbm-p-att__pm { font-size: 13px; color: var(--p-ink); }
.cbm-p-att__pm b { color: #9a6700; font-weight: 600; }
.cbm-p-att__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 12px; }
.cbm-p-att__stats > div { min-width: 0; overflow-wrap: anywhere; border: 1.5px solid var(--p-line); border-radius: 14px; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; }
.cbm-p-att__stats strong { font-size: 20px; }
.cbm-p-att__scroll { max-height: 360px; overflow: auto; border-top: 1px solid color-mix(in srgb, var(--p-line) 15%, transparent); }
.cbm-p-att__days thead th { position: sticky; top: 0; background: var(--p-card); z-index: 1; }
.cbm-p-att__days td { padding: 8px 10px 8px 0; }
.cbm-p-att__foot { margin: 12px 0 0; }
@media (max-width: 760px) {
  .cbm-p-att__body.has-team { grid-template-columns: minmax(0, 1fr); }
  .cbm-p-att__people { flex-direction: row; overflow-x: auto; max-height: none; padding-bottom: 4px; }
  .cbm-p-att__people a { min-width: 170px; }
}
@media (max-width: 640px) {
  .cbm-p-att__days thead { display: table-header-group; }
  .cbm-p-att__days tr { display: table-row; padding: 0; }
  .cbm-p-att__days td { display: table-cell; padding: 8px 8px 8px 0; border-top: 1px solid color-mix(in srgb, var(--p-line) 15%, transparent); font-size: 14px; }
  .cbm-p-att__days td[data-l]::before { content: none; }
  .cbm-p-att__days .cbm-p-st { font-size: 11px; padding: 2px 6px; }
  .cbm-p-att__stats { gap: 6px; }
  .cbm-p-att__stats > div { padding: 6px 8px; font-size: 12px; }
  .cbm-p-att__stats strong { font-size: 16px; }
  .cbm-p-att__days td, .cbm-p-att__days th { font-size: 13px; }
}
.cbm-p-x__no { display: inline-block; margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--p-blue); }
.cbm-p-billing, .cbm-p-extras, .cbm-p-att, .cbm-p-team { margin-top: 16px; }

/* ---- Accordion (lower sections) ---- */
.cbm-p-acc__head { display: flex; align-items: center; gap: 12px; width: 100%; margin: -4px 0 12px; padding: 4px 0; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.cbm-p-acc__t { flex: 1; font-family: inherit; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.cbm-p-acc__h { font-size: 13px; color: var(--p-ink); }
.cbm-p-acc__c { width: 30px; height: 30px; flex: none; border: 1.5px solid var(--p-line); border-radius: 999px; position: relative; }
.cbm-p-acc__c::before { content: ""; position: absolute; left: 50%; top: 45%; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translate(-50%, -50%) rotate(45deg); transition: transform .2s; }
.cbm-p-acc:not(.is-closed) .cbm-p-acc__c::before { top: 55%; transform: translate(-50%, -50%) rotate(-135deg); }
.cbm-p-acc__head:hover .cbm-p-acc__c { background: color-mix(in srgb, var(--p-line) 8%, transparent); }
.cbm-p-acc__head:focus-visible { outline: 2px solid var(--p-blue); outline-offset: 4px; border-radius: 8px; }
.cbm-p-acc .cbm-p-acc__orig { display: none; }
.cbm-p-acc.is-closed { padding-top: 14px; padding-bottom: 14px; }
.cbm-p-acc.is-closed .cbm-p-acc__head { margin: 0; }
.cbm-p-acc.is-closed > :not(.cbm-p-acc__head) { display: none !important; }
.cbm-p-acc:not(.is-closed) .cbm-p-acc__h { display: none; }

/* Admin preview banner */
.cbm-p-viewas{margin:0 0 18px;padding:12px 16px;border:1.5px solid #141A2E;border-radius:14px;background:#F9C935;color:#141A2E;font-size:14px;line-height:1.5}
.cbm-p-viewas a{color:#141A2E;font-weight:600;margin-left:6px}
.cbm-p-viewing form[method=post] :disabled{opacity:.55;cursor:not-allowed}

/* 1.2 discount in My plan */
.cbm-p-bill s{font-weight:400}
.cbm-p-std{font-size:12px}
.cbm-p-bill__save td{color:#137a3a;font-weight:600}
.cbm-p-saving{margin:10px 0 0;display:inline-block;padding:4px 12px;border-radius:999px;background:#DDF3E4;color:#0f5d2c;font-weight:600;font-size:13px}

/* 1.3.2 — remote admin team summary, collapsed pay form, no "Book a desk" tab in the portal */
.cbm-p-teamsum { margin-top: 18px; padding-top: 14px; border-top: 1.5px solid rgba(20, 26, 46, .18); }
.cbm-p-teamsum p { margin: 4px 0; }
.cbm-p-teamsum a { color: inherit; font-weight: 600; }
.cbm-p-paylater { margin-top: 14px; }
.cbm-p-paylater > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; text-decoration: underline; text-underline-offset: 3px; }
.cbm-p-paylater > summary::-webkit-details-marker { display: none; }
.cbm-p-paylater > summary::after { content: "+"; font-weight: 700; text-decoration: none; }
.cbm-p-paylater[open] > summary::after { content: "−"; }
.cbm-p-paylater[open] > summary { margin-bottom: 10px; }
.cb-dock__book { display: none !important; }

/* App (PWA) */
.cbm-install { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1.5px solid var(--cb-navy, #141A2E); border-radius: 999px; background: var(--cb-yellow, #F9C935); color: #141A2E; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.cbm-install:hover, .cbm-install:focus-visible { background: #FFD54F; }
.cbm-p-head .cbm-install { margin-left: auto; margin-right: 8px; }
.cbm-ios-help { max-width: 360px; width: calc(100% - 32px); border: 1.5px solid #141A2E; border-radius: 24px; padding: 24px; background: #FFFFFF; color: #141A2E; }
.cbm-ios-help::backdrop { background: rgba(20, 26, 46, .55); }
.cbm-ios-help h3 { margin: 0 0 12px; font-size: 18px; }
.cbm-ios-help ol { margin: 0 0 18px; padding-left: 20px; line-height: 1.6; }
.cbm-ios-share { display: inline-flex; vertical-align: -3px; color: #1690D2; }
.cbm-standalone .cb-dock { display: none !important; }
.cbm-install--login { margin-top: 16px; }

/* Holidays */
.cbm-hol { list-style: none; margin: 8px 0 14px; padding: 0; }
.cbm-hol__row { display: grid; grid-template-columns: minmax(130px, 190px) 1fr auto; gap: 6px 16px; align-items: baseline; padding: 12px 0 12px 14px; border-bottom: 1px solid rgba(20, 26, 46, .1); border-left: 4px solid #2BB673; }
.cbm-hol__row--closed { border-left-color: #E5484D; }
.cbm-hol__row--nostaff { border-left-color: #F9C935; }
.cbm-hol__when { font-weight: 700; }
.cbm-hol__name small { display: block; font-size: 12px; opacity: .7; }
.cbm-hol__kind { font-size: 13px; font-weight: 600; white-space: nowrap; }
.cbm-hol__row--closed .cbm-hol__kind { color: #C62828; }
.cbm-hol__off { margin: 4px 0 6px; }
.cbm-hol__add { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 6px 0 10px; }
.cbm-hol__add .cbm-p-muted { flex-basis: 100%; }
.cbm-install--ghost { background: transparent; text-decoration: none; color: inherit; }
.cbm-install--ghost:hover { background: rgba(249, 201, 53, .25); }
html.cb-dark .cbm-hol__row { border-bottom-color: rgba(238, 241, 247, .12); }
html.cb-dark .cbm-hol__row--closed .cbm-hol__kind { color: #FF8A8A; }
@media (max-width: 560px) { .cbm-hol__row { grid-template-columns: 1fr; } .cbm-hol__kind { white-space: normal; } }

/* Push notifications card */
.cbm-push__msg, .cbm-push__topics, .cbm-push__btns > * { display: none; }
.cbm-push[data-state="off"] .cbm-push__msg--off, .cbm-push[data-state="on"] .cbm-push__msg--on, .cbm-push[data-state="install"] .cbm-push__msg--install, .cbm-push[data-state="blocked"] .cbm-push__msg--blocked, .cbm-push[data-state="nosupport"] .cbm-push__msg--nosupport { display: block; }
.cbm-push[data-state="off"] .cbm-push__topics, .cbm-push[data-state="on"] .cbm-push__topics { display: flex; }
.cbm-push[data-state="off"] .cbm-push__on { display: inline-flex; }
.cbm-push[data-state="on"] .cbm-push__save, .cbm-push[data-state="on"] .cbm-push__test, .cbm-push[data-state="on"] .cbm-push__off { display: inline-flex; }
.cbm-push__topics { flex-wrap: wrap; gap: 8px 18px; margin: 10px 0 14px; }
.cbm-push__topic { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.cbm-push__topic input { width: 18px; height: 18px; accent-color: #141A2E; }
.cbm-push__btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cbm-push__off { background: none; border: 0; padding: 0 6px; color: #C62828; font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }

/* Same gap between every folding card (holidays, notifications and any new ones). */
.cbm-p-acc { margin-top: 16px; }

/* "Turn on notifications" bar at the top of the portal */
.cbm-pushbar { position: relative; display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin: 0 0 18px; padding: 12px 52px 12px 16px; background: #F9C935; color: #141A2E; border: 1.5px solid #141A2E; border-radius: 18px; font-weight: 600; line-height: 1.4; }
.cbm-pushbar__t { flex: 1 1 200px; }
.cbm-pushbar__on { min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: #141A2E; color: #FBF7EE; font: inherit; font-weight: 700; cursor: pointer; }
.cbm-pushbar__on:hover, .cbm-pushbar__on:focus-visible { background: #2A3352; }
.cbm-pushbar__x { position: absolute; top: 6px; right: 6px; width: 40px; height: 40px; border: 0; border-radius: 999px; background: transparent; color: #141A2E; font: inherit; font-size: 16px; cursor: pointer; }
.cbm-pushbar__x:hover, .cbm-pushbar__x:focus-visible { background: rgba(20, 26, 46, .12); }
