.hey-portal{--navy:#181733;--green:#698fc9;--muted:#6e7c82;max-width:1180px;margin:36px auto 50px;padding:0 28px;color:var(--navy);font-family:inherit}.hey-portal *{box-sizing:border-box}.hey-portal-header{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:20px 0 34px;border-bottom:1px solid #dad7e0}.hey-portal-mark{font-size:31px;line-height:1;font-weight:850;letter-spacing:-2px;color:var(--navy)}.hey-portal-mark span{color:#181733}.hey-portal-eyebrow{margin:10px 0 7px;font-size:10px;letter-spacing:1.8px;font-weight:800;color:#829096}.hey-portal h1{margin:6px 0;font-size:clamp(30px,4vw,42px);line-height:1.1;letter-spacing:-1.6px;color:var(--navy)}.hey-portal-subtitle{margin:10px 0 0;color:var(--muted);font-size:15px}.hey-portal-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:13px 19px;border-radius:5px;background:var(--navy);color:white!important;text-decoration:none!important;font-size:13px;font-weight:700;transition:background .18s}.hey-portal-button:hover{background:#343254;color:white!important}.hey-portal-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:24px 0 30px}.hey-portal-stats article{min-height:120px;padding:21px 24px;border:1px solid #dad7e0;border-radius:7px;background:#fff}.hey-portal-stats span{display:block;color:var(--muted);font-size:13px}.hey-portal-stats strong{display:block;margin-top:9px;font-size:30px;line-height:1.1;letter-spacing:-.7px}.hey-portal-stats small{display:block;margin-top:6px;color:#879398;font-size:11px}.hey-portal-list{border:1px solid #dad7e0;border-radius:7px;overflow:hidden}.hey-portal-list-head{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;border-bottom:1px solid #e8edeb}.hey-portal-list-head .hey-portal-eyebrow{margin:0 0 5px}.hey-portal-list-head h2{margin:0;font-size:18px;letter-spacing:-.3px}.hey-portal-list-head>a{font-size:12px;font-weight:700;color:var(--navy);text-decoration:none}.hey-portal-list-head>a span{color:#88a920}.hey-portal-table-wrap{overflow-x:auto}.hey-portal table{width:100%;border-collapse:collapse;font-size:12px;white-space:nowrap}.hey-portal th{padding:13px 16px;background:#f0eef0;color:#758187;text-align:left;font-size:10px;text-transform:uppercase;letter-spacing:.7px;font-weight:700}.hey-portal td{padding:16px;border-top:1px solid #edf0ef;color:#526168}.hey-portal td.project a{color:var(--navy);font-weight:700;text-decoration:none}.hey-portal td.project a:hover{text-decoration:underline}.hey-portal td.amount,.hey-portal th.amount{text-align:right;font-weight:700;color:var(--navy)}.hey-status{display:inline-flex;align-items:center;gap:7px;padding:6px 9px;border-radius:20px;background:#f0f3f2;color:#516067;font-size:10px;font-weight:700}.hey-status i{width:6px;height:6px;border-radius:50%;background:#92a0a4}.hey-status-nieuw{background:#f0f4df;color:#657a14}.hey-status-nieuw i{background:#9fbd27}.hey-status-verzonden{background:#e9f2f6;color:#356779}.hey-status-verzonden i{background:#5e9caf}.hey-status-opvolgen{background:#fff3df;color:#986918}.hey-status-opvolgen i{background:#e6ab3e}.hey-status-gewonnen{background:#e7f4eb;color:#36764b}.hey-status-gewonnen i{background:#55a96c}.hey-status-verloren{background:#f8eaea;color:#a04d4d}.hey-status-verloren i{background:#cc7373}.hey-portal-empty{padding:56px 20px;text-align:center}.hey-portal-empty-icon{display:grid;place-items:center;width:42px;height:42px;margin:0 auto 12px;border-radius:50%;background:#f1f5df;color:#718d17;font-size:20px}.hey-portal-empty h3{margin:0 0 7px;font-size:17px}.hey-portal-empty p{margin:0 0 19px;color:var(--muted);font-size:13px}.hey-portal-empty .hey-portal-button{font-size:12px;padding:11px 15px}.hey-portal-footer{padding:19px 0;color:#899499;font-size:11px}.hey-portal-footer span{padding:0 5px;color:#b7c0c2}.hey-portal-login{max-width:470px;margin:12vh auto;padding:42px;border:1px solid #dad7e0;border-radius:8px;text-align:center;color:#181733;font-family:inherit}.hey-portal-login h1{margin:20px 0 8px;font-size:28px;letter-spacing:-.7px}.hey-portal-login p{margin:0 0 22px;color:#6e7c82;font-size:14px;line-height:1.6}.hey-portal-login .hey-portal-button{display:inline-block;padding:12px 23px}@media(max-width:700px){.hey-portal{margin:20px auto 35px;padding:0 16px}.hey-portal-header{align-items:flex-start;flex-direction:column;padding:12px 0 24px}.hey-portal-stats{gap:10px}.hey-portal-stats article{min-height:105px;padding:17px 15px}.hey-portal-stats strong{font-size:25px}.hey-portal-list-head{padding:16px}.hey-portal-login{margin:8vh 16px;padding:30px 22px}}
.hey-portal-notice{margin:18px 0;padding:13px 16px;border-radius:5px;font-size:13px}.hey-portal-success{background:#ddf0e9;color:#214c40}.hey-portal-error{background:#fce5e9;color:#742938}.hey-portal-open-modal{border:0;cursor:pointer;font-family:inherit}.hey-portal-modal[hidden]{display:none!important}.hey-portal-modal{position:fixed;inset:0;z-index:999999;display:grid;place-items:center;padding:22px}.hey-portal-modal-backdrop{position:absolute;inset:0;background:rgba(9,28,38,.62);backdrop-filter:blur(2px)}.hey-portal-modal-panel{position:relative;z-index:1;width:min(100%,620px);max-height:min(90vh,820px);overflow:auto;padding:30px;background:#fff;border-radius:9px;box-shadow:0 24px 80px rgba(0,0,0,.22);color:#181733}.hey-portal-modal-panel h2{margin:0;font-size:27px;letter-spacing:-.7px}.hey-portal-modal-intro{margin:7px 0 22px;color:#6e7c82;font-size:13px}.hey-portal-modal-close{position:absolute;top:15px;right:16px;width:34px;height:34px;border:0;border-radius:50%;background:#f2f5f4;color:#29424b;font-size:24px;line-height:1;cursor:pointer}.hey-modal-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 16px}.hey-modal-grid label{display:block;color:#43545b;font-size:12px;font-weight:700}.hey-modal-grid input,.hey-modal-grid select,.hey-modal-grid textarea{display:block;width:100%;margin-top:6px;padding:11px 12px;border:1px solid #d0cdda;border-radius:4px;background:#fff;color:#181733;font:inherit;font-size:13px}.hey-modal-grid input:focus,.hey-modal-grid select:focus,.hey-modal-grid textarea:focus{outline:2px solid #698fc9;outline-offset:1px}.hey-modal-grid .hey-modal-wide{grid-column:1/-1}.hey-modal-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin-top:22px;padding-top:17px;border-top:1px solid #e8edeb}.hey-modal-cancel{padding:12px 16px;border:0;background:transparent;color:#536168;font:inherit;font-size:13px;font-weight:700;cursor:pointer}body.hey-modal-open{overflow:hidden}@media(max-width:560px){.hey-portal-modal{padding:10px}.hey-portal-modal-panel{padding:25px 18px}.hey-modal-grid{grid-template-columns:1fr}.hey-modal-grid .hey-modal-wide{grid-column:auto}.hey-modal-actions{flex-wrap:wrap}.hey-modal-actions .hey-portal-button{flex:1}}/* Keep modal actions visible even when the active theme overrides button styles. */
.hey-portal-modal-panel .hey-modal-actions{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:12px!important}.hey-portal-modal-panel .hey-modal-actions button[type="submit"]{display:inline-flex!important;visibility:visible!important;opacity:1!important;position:static!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;width:auto!important;min-width:168px!important;min-height:46px!important;padding:13px 19px!important;border:0!important;border-radius:5px!important;background:#181733!important;color:#fff!important;font-family:inherit!important;font-size:13px!important;font-weight:700!important;line-height:1.2!important;text-indent:0!important;clip:auto!important;box-shadow:none!important;cursor:pointer!important}.hey-portal-modal-panel .hey-modal-actions button[type="submit"]:hover{background:#343254!important;color:#fff!important}.hey-portal-modal-panel .hey-modal-actions .hey-modal-cancel{display:inline-flex!important;visibility:visible!important;opacity:1!important;flex:0 0 auto!important;width:auto!important}@media(max-width:560px){.hey-portal-modal-panel .hey-modal-actions button[type="submit"]{min-width:0!important;flex:1 1 auto!important}}.hey-customer-search-wrap{position:relative;display:block}.hey-customer-results{position:absolute;z-index:5;top:calc(100% + 4px);left:0;right:0;max-height:220px;overflow:auto;border:1px solid #d0cdda;border-radius:5px;background:#fff;box-shadow:0 8px 24px rgba(16,45,60,.15)}.hey-customer-option{display:block;width:100%;padding:11px 12px;border:0;border-bottom:1px solid #edf0ef;background:#fff;color:#181733;text-align:left;font:inherit;font-size:13px;cursor:pointer}.hey-customer-option:hover,.hey-customer-option:focus{background:#e5edf9}.hey-customer-empty{padding:12px;color:#6e7c82;font-size:12px}.hey-customer-selected{display:block;margin-top:5px;color:#527215;font-size:11px;font-weight:600}.hey-modal-grid label small{display:block;margin-top:5px;color:#7c888e;font-size:10px;font-weight:400}
body:has(.hey-portal-workspace) { overflow: hidden; }

.hey-portal.hey-portal-workspace {
    --navy: #181733;
    --soft-white: #f0eef0;
    --yellow: #f5a323;
    --blue: #698fc9;
    --red: #eb6678;
    --green: #6cbea5;
    --violet: #c98db7;
    --muted: #56536b;
    --border: #dad7e0;
    position: fixed;
    inset: 0;
    z-index: 9990;
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    grid-template-columns: clamp(158px, 19vw, 222px) minmax(0, 1fr);
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    background: var(--soft-white);
    color: var(--navy);
    border: 0;
    border-radius: 0;
    font-family: "Instrument Sans", "Segoe UI", sans-serif;
}

body.admin-bar .hey-portal-workspace { top: 32px; }
@media (max-width: 782px) {
    body.admin-bar .hey-portal-workspace { top: 46px; }
}

.hey-portal-sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 26px 14px 20px;
    background: var(--navy);
    color: white;
}

.hey-portal-sidebar a {
    color: inherit;
    text-decoration: none;
}

.hey-sidebar-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 14px;
    margin: 0 4px;
    border-radius: 9px;
    background: var(--soft-white);
}

.hey-portal-logo { display: block; width: min(100%, 98px); height: auto; }
.hey-sidebar-brand-name { font-size: 13px; font-weight: 700; color: var(--navy); }
.hey-portal-login { --navy: #181733; background: #f0eef0; }
.hey-portal-login .hey-portal-logo { margin: 0 auto; }
.hey-sidebar-nav { display: grid; gap: 4px; }

.hey-sidebar-nav a,
.hey-sidebar-settings summary {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.hey-sidebar-nav a:hover,
.hey-sidebar-settings summary:hover { background: #343254; color: white; }
.hey-sidebar-nav a[aria-current="page"] { background: var(--green); color: var(--navy); }
.hey-portal-sidebar { gap: 16px; }
.hey-sidebar-icon { flex: 0 0 17px; display: block; }
.hey-sidebar-dashboard { gap: 10px; }
.hey-sidebar-nav .hey-sidebar-main-link { gap: 9px; min-height: 42px; font-weight: 650; }
.hey-sidebar-group { margin: 0; padding: 0; }
.hey-sidebar-group summary { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 8px 12px; border-radius: 8px; color: white; font-size: 14px; font-weight: 650; cursor: pointer; list-style: none; }
.hey-sidebar-group summary::-webkit-details-marker { display: none; }
.hey-sidebar-group summary > span, .hey-sidebar-dashboard > span { min-width: 0; overflow-wrap: anywhere; }
.hey-sidebar-group summary::after { content: ""; width: 6px; height: 6px; margin-left: auto; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); opacity: .8; }
.hey-sidebar-group[open] summary::after { transform: rotate(45deg); }
.hey-sidebar-group summary:hover { background: #343254; }
.hey-sidebar-group summary:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.hey-sidebar-submenu { display: grid; gap: 2px; padding: 0 0 5px; }
.hey-sidebar-submenu a { min-height: 34px; padding: 7px 9px 7px 36px; font-size: 13px; font-weight: 400; }
.hey-sidebar-settings { padding-top: 10px; border-top: 1px solid #ffffff30; }
.hey-sidebar-settings summary > span { display: flex; align-items: center; gap: 9px; }
.hey-sidebar-settings { margin-top: auto; }
.hey-sidebar-settings summary {
    justify-content: space-between;
    gap: 6px;
    cursor: pointer;
    list-style: none;
}
.hey-sidebar-settings summary::-webkit-details-marker { display: none; }
.hey-sidebar-settings summary::after {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-135deg);
}
.hey-sidebar-settings[open] summary::after { transform: rotate(45deg); }
.hey-sidebar-settings-nav { margin-top: 4px; padding-inline-start: 8px; border-inline-start: 1px solid #ffffff33; }
.hey-sidebar-settings-nav a { min-height: 40px; font-size: 13px; }
.hey-settings-panel {
    padding: clamp(12px, 3vw, 24px);
    border: 1px solid var(--border);
    border-radius: 12px;
    background: white;
}
.hey-settings-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; margin-bottom: 18px; }
.hey-settings-fields label { display: grid; gap: 5px; font-size: 14px; font-weight: 600; }
.hey-settings-fields input { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid var(--border); border-radius: 6px; }
.hey-settings-panel button { border: 0; cursor: pointer; }
.hey-settings-manage-link { display: inline-block; margin-top: 14px; }

.hey-directory-detail { width: min(100%, 620px); overflow-wrap: anywhere; }
.hey-directory-detail h2 { margin: 0 0 14px; }
.hey-directory-detail h3 { margin: 18px 0 8px; }
.hey-directory-detail dl {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 7px 14px;
    margin: 0;
}
.hey-directory-detail dt { font-weight: 600; }
.hey-directory-detail dd, .hey-directory-detail p { margin: 0; }
.hey-directory-detail ul { margin: 0; padding-inline-start: 20px; }

.hey-portal .hey-portal-button {
    min-height: 36px !important;
    padding: 7px 12px !important;
    border: 0;
    border-radius: 7px !important;
    font: 600 13px/1.4 "Instrument Sans", "Segoe UI", sans-serif !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    cursor: pointer;
}

.hey-portal .hey-portal-button:focus-visible {
    outline: 2px solid var(--navy);
    outline-offset: 2px;
}

.hey-company-photo {
    display: block;
    width: 100%;
    height: clamp(150px, 28vw, 360px);
    margin: 0 0 24px;
    object-fit: cover;
    object-position: 50% 55%;
    border-radius: 12px;
}

.hey-company-location { margin-top: 28px; }
.hey-portal-sidebar a:focus-visible { outline: 2px solid white; outline-offset: 2px; }

.hey-portal-content {
    min-width: 0;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    padding: clamp(16px, 3.3vw, 42px);
}

.hey-portal-content > * { flex-shrink: 0; }
.hey-portal-workspace :focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.hey-portal-workspace .hey-portal-sidebar :focus-visible { outline-color: var(--soft-white); }
.hey-portal-workspace .hey-portal-open-modal {
    background: var(--yellow);
    color: var(--navy) !important;
    border-radius: 999px;
}
.hey-portal-workspace .hey-portal-open-modal:hover { background: #ffba50; }

.hey-portal-workspace .hey-portal-header {
    position: relative;
    z-index: 1100;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 0 0 20px;
    margin-bottom: 22px;
    gap: 12px 20px;
}

.hey-portal-workspace .hey-portal-header:has(.hey-portal-open-modal) {
    grid-template-columns: minmax(0, 1fr) auto auto;
}

.hey-profile-menu { position: relative; grid-column: -2 / -1; grid-row: 1; justify-self: end; }
.hey-header-account-actions { position: relative; display: flex; align-items: center; justify-self: end; gap: 10px; grid-column: -2 / -1; grid-row: 1; }
.hey-notifications-menu summary { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--border); border-radius: 9px; background: white; color: var(--navy); cursor: pointer; list-style: none; }
.hey-notifications-menu summary::-webkit-details-marker { display: none; }
.hey-notifications-menu summary:hover, .hey-notifications-menu[open] summary { background: #e4e2eb; border-color: #c5c1d1; }
.hey-notifications-menu summary:focus-visible, .hey-profile-menu summary:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.hey-portal .hey-notifications-panel { position: absolute; z-index: 2; inset-block-start: calc(100% + 8px); inset-inline-end: 0; width: min(320px, max(150px, calc(100vw - 175px))); margin: 0 !important; padding: 16px !important; border: 1px solid var(--border); border-radius: 10px; background: white; box-shadow: 0 8px 24px #18173326; overflow-wrap: anywhere; }
.hey-portal .hey-notifications-panel h2 { margin: 0 0 10px; font-size: 16px; line-height: 1.4; color: var(--navy); }
.hey-portal .hey-notifications-panel p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.hey-profile-menu summary { display: block; list-style: none; border-radius: 50%; cursor: pointer; }
.hey-profile-menu summary::-webkit-details-marker { display: none; }
.hey-profile-avatar {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    overflow: hidden;
    border-radius: 50%;
    background: #e4e2eb;
    color: var(--navy);
}
.hey-profile-avatar > * { grid-area: 1 / 1; }
.hey-profile-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hey-profile-avatar img[hidden] { display: none; }
.hey-profile-panel {
    position: absolute;
    inset-block-start: calc(100% + 8px);
    inset-inline-end: 0;
    width: min(220px, max(140px, calc(100vw - 150px)));
    padding: 5px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: white;
    box-shadow: 0 8px 24px #18173326;
    overflow-wrap: anywhere;
}
.hey-profile-panel strong { display: block; padding: 9px 10px; font-size: 14px; }
.hey-profile-panel a { display: block; padding: 8px 10px; border-radius: 6px; color: var(--navy); font-size: 14px; text-decoration: none; }
.hey-profile-panel a:hover, .hey-profile-panel a:focus-visible { background: var(--soft-white); }

.hey-portal-workspace h1 {
    font-size: clamp(23px, 4vw, 38px);
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
}

.hey-portal-content > .hey-portal-notice { margin: 0 0 18px; }
.hey-view-description { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.hey-portal-content .hey-portal-footer { margin: auto 0 0; padding: 24px 0 0; }

.hey-map-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.hey-portal-button[data-hey-map-refresh] { margin-bottom: 10px; }
.hey-portal-button[data-hey-map-refresh][hidden] { display: none; }
[data-hey-map-status]:empty { display: none; }
.hey-map-summary > div { display: grid; gap: 5px; padding: 15px 18px; background: white; border: 1px solid var(--border); border-radius: 10px; }
.hey-map-summary > div:first-child { border-left: 4px solid var(--blue); }
.hey-map-summary > div:nth-child(2) { border-left: 4px solid var(--green); }
.hey-map-summary strong { font-size: 27px; line-height: 1.15; }
.hey-map-summary span { color: var(--muted); font-size: 13px; }
.hey-customer-map { height: clamp(340px, 56vh, 640px); border: 1px solid var(--border); border-radius: 12px; background: #e9e6ed; z-index: 0; }
.hey-map-fallback { padding: 12px; font-size: 14px; }
.hey-map-attribution, .hey-map-progress { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.hey-missing-map-deals { margin-top: 16px; }
.hey-missing-map-deals summary { cursor: pointer; font-weight: 700; }
.hey-missing-map-deals[open] summary { margin-bottom: 12px; }
.hey-map-marker-wrap { background: transparent; border: 0; }
.hey-map-marker { display: grid; place-items: center; width: 100%; height: 100%; background: var(--green); color: var(--navy); border: 2px solid white; border-radius: 50%; font-size: 13px; font-weight: 700; box-shadow: 0 2px 8px #18173344; }
.hey-map-marker-cluster { color: white; background: var(--navy); font-size: 14px; }
.hey-map-reader { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hey-map-popup ul { padding-left: 18px; margin: 8px 0 0; max-height: 180px; overflow: auto; }
.hey-map-popup li { margin: 0 0 6px; font-size: 12px; overflow-wrap: anywhere; }

.hey-directory-search { margin: 0 0 18px; }
.hey-directory-search label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.hey-directory-search-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.hey-directory-search input {
    width: min(100%, 310px);
    padding: 9px 12px;
    border: 1px solid #b4afc2;
    border-radius: 6px;
    background: white;
    color: var(--navy);
    font: inherit;
}
.hey-directory-search button { border: 0; cursor: pointer; }
.hey-portal-content .hey-portal-list { background: white; }
.hey-directory-table th[scope="row"] { background: white; color: var(--navy); font-size: 12px; text-transform: none; letter-spacing: normal; border-top: 1px solid #edf0ef; }
.hey-directory-table a, .hey-directory-pages a, .hey-directory-search a { color: var(--navy); text-underline-offset: 3px; }
.hey-directory-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; color: var(--muted); font-size: 13px; }
.hey-directory-pages a { display: inline-block; padding: 8px 11px; border: 1px solid var(--border); border-radius: 6px; background: white; }

.hey-deal-board {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 235px;
    grid-template-rows: 1fr;
    align-items: start;
    gap: 12px;
    overflow-x: auto;
    padding: 3px 3px 14px;
}
.hey-deal-lane { display: flex; flex-direction: column; min-height: 250px; max-height: max(320px, 62vh); border-radius: 10px; background: #e9e6ed; border: 1px solid var(--border); border-top: 4px solid var(--blue); }
.hey-deal-lane[data-lane="installatie"], .hey-deal-lane[data-lane="offerte_laatste_kans"] { border-top-color: var(--yellow); }
.hey-deal-lane[data-lane="webshop"] { border-top-color: var(--violet); }
.hey-deal-lane[data-lane="aanvaard_te_factureren"], .hey-deal-lane[data-lane="aanvaard_gefactureerd"] { border-top-color: var(--green); }
.hey-deal-lane[data-lane="geweigerd"] { border-top-color: var(--red); }
.hey-deal-lane > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 12px; border-bottom: 1px solid var(--border); }
.hey-deal-lane > header h3 { margin: 0; font-size: 13px; line-height: 1.35; }
.hey-deal-lane > header span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.hey-deal-lane > header strong { white-space: nowrap; font-size: 11px; }
.hey-deal-cards { overflow: auto; padding: 8px; }
.hey-deal-card, .hey-project-card { padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: white; overflow-wrap: anywhere; }
.hey-deal-card + .hey-deal-card { margin-top: 8px; }
.hey-deal-customer, .hey-deal-summary, .hey-deal-date { margin: 0 0 6px; color: var(--muted); font-size: 11px; }
.hey-deal-card h4 { margin: 0 0 8px; font-size: 14px; line-height: 1.35; }
.hey-deal-card h4 a { color: var(--navy); text-underline-offset: 3px; }
.hey-deal-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; }
.hey-deal-meta b { color: var(--navy); white-space: nowrap; }
.hey-deal-date { display: block; margin: 8px 0 0; }
.hey-lane-empty { padding: 14px 5px; color: var(--muted); text-align: center; font-size: 12px; }
.hey-project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 225px), 1fr)); gap: 12px; }
.hey-project-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.hey-project-filters a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.hey-project-filters a:hover { border-color: var(--navy); }
.hey-project-filters a[aria-current="page"] { background: var(--green); border-color: var(--green); }
.hey-project-filters a:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.hey-project-card { padding: 17px; }
.hey-project-card h3 { margin: 5px 0 10px; font-size: 17px; }
.hey-project-card p { margin-bottom: 0; }
.hey-project-card .hey-project-customer { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.hey-project-status { display: inline-block; background: #ebe9f1; border-radius: 12px; padding: 4px 9px; font-size: 12px; }
.hey-project-status[data-status="open"] { background: #ddf0e9; }
.hey-project-status[data-status="closed"] { background: #f1e2ed; }
.hey-project-card-link { position: relative; }
.hey-project-card-link h3 a { color: inherit; text-decoration: none; }
.hey-project-card-link h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.hey-project-card-link:hover, .hey-project-card-link:focus-within { border-color: var(--navy); }
.hey-project-card-link:hover h3 a { text-decoration: underline; }
.hey-project-back { display: inline-block; margin-bottom: 14px; color: var(--navy); }
.hey-project-status-form { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.hey-project-description { white-space: pre-line; }
.hey-project-location { margin: 0 0 24px; padding: clamp(16px, 2vw, 24px); background: white; border: 1px solid var(--border); border-radius: 10px; }
.hey-project-location h3 { margin: 0 0 16px; font-size: 17px; line-height: 1.5; }
.hey-project-location .hey-map-attribution { margin: -6px 0 18px; line-height: 1.5; }
.hey-project-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.hey-portal .hey-project-photos figure { margin: 0; padding: 0; min-width: 0; align-self: start; }
.hey-portal .hey-project-photos h4 { margin: 0 0 10px; font-size: 14px; line-height: 1.5; }
.hey-portal .hey-project-photos figcaption { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.hey-project-media { position: relative; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 8px; background: var(--soft-white); }
.hey-portal .hey-project-media img, .hey-portal .hey-project-media iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: inherit;
}
.hey-project-media img { object-fit: cover; }
.hey-project-aerial span { position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; transform: translate(-50%, -50%); border: 2px solid white; border-radius: 50%; outline: 2px solid var(--navy); }
.hey-order-confirmation { margin: 0 0 12px; }
.hey-order-confirmation pre { max-height: 440px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.hey-project-deal-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.hey-project-deal-links a { display: inline-block; padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; background: white; color: var(--navy); }
.hey-map-deal-section { margin-bottom: 14px; }
.hey-map-deal-section .hey-order-confirmation { margin-top: 12px; }
.hey-portal-content .hey-portal-empty { padding: 25px 14px; background: white; border: 1px solid var(--border); border-radius: 10px; }
.hey-portal-content .hey-portal-empty p:last-child { margin-bottom: 0; }

.hey-production-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr));
    align-items: end;
    gap: 12px;
    padding: 14px 14px 0;
    border-bottom: 4px solid var(--blue);
    border-radius: 12px 12px 0 0;
    background: var(--yellow);
}
.hey-production-action { display: flex; flex-wrap: wrap; align-items: stretch; gap: 2px; --action-color: var(--violet); }
.hey-production-action[data-action="installations"] { --action-color: var(--blue); }
.hey-production-action[data-action="deliveries"] { --action-color: var(--green); }
.hey-production-action[data-action="shipments"] { --action-color: #dbe5f5; }
.hey-production-action a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    padding: 9px 12px;
    border-radius: 10px 10px 0 0;
    background: var(--action-color);
    color: var(--navy);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.hey-production-tab { flex: 1 1 auto; }
.hey-production-action a:hover { text-decoration: underline; }
.hey-production-action a[aria-current="page"] { background: var(--navy); color: white; }
.hey-production-action a:focus-visible { outline-offset: -4px; outline-color: currentColor; }
.hey-production-panel { padding: clamp(12px, 3vw, 24px); background: white; border: 1px solid var(--border); border-radius: 0 0 12px 12px; overflow-wrap: anywhere; }
.hey-production-panel h2 { margin-top: 0; }
.hey-production-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px clamp(12px, 3vw, 24px); background: var(--violet); }
.hey-production-heading[data-action="installations"] { background: var(--blue); }
.hey-production-heading[data-action="deliveries"] { background: var(--green); }
.hey-production-heading[data-action="shipments"] { background: #dbe5f5; }
.hey-production-heading h2 { min-width: 0; margin: 0; color: var(--navy); overflow-wrap: anywhere; }
.hey-production-heading .hey-portal-button { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.hey-production-panel .hey-directory-search input { width: 100%; }
.hey-production-panel .hey-directory-search-controls { margin-top: 8px; }
.hey-production-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 0 14px; }
.hey-production-pagination p, .hey-production-pagination nav { margin: 0; }
.hey-production-table-wrap { border: 1px solid var(--border); border-radius: 8px; }
.hey-production-table th, .hey-production-table td { padding: 10px 12px; }
.hey-production-table thead th { color: var(--navy); }
.hey-production-table th[scope="row"] { background: white; border-top: 1px solid var(--border); }
.hey-production-table a { color: var(--navy); }
.hey-production-row-actions a + a { margin-inline-start: 12px; }
.hey-portal .hey-production-table { width: 100%; margin: 0; border-collapse: collapse; font-size: 13px; line-height: 1.5; }
.hey-portal .hey-production-table th, .hey-portal .hey-production-table td { padding: 9px 10px; border: 1px solid var(--border); vertical-align: middle; text-align: left; }
.hey-portal .hey-production-table thead th { padding-block: 10px; background: white; color: var(--blue); font-size: 13px; font-weight: 600; letter-spacing: normal; text-transform: none; white-space: nowrap; }
.hey-portal .hey-production-table td { color: var(--blue); }
.hey-portal .hey-production-table td a { color: var(--blue); }
.hey-production-table-installations { min-width: 1050px; }
.hey-production-table-controls, .hey-production-table-deliveries { min-width: 800px; }
.hey-portal .hey-production-table .hey-production-row-actions a { color: var(--navy); font-weight: 600; text-decoration: none; white-space: nowrap; }
.hey-production-table .hey-production-row-actions a:hover { text-decoration: underline; }
.hey-portal .hey-production-status-cell { width: 48px; text-align: center; }
.hey-portal .hey-production-approval { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; min-height: 0; margin: 0; padding: 0; border: 1px solid transparent; border-radius: 6px; background: transparent; box-shadow: none; font: 700 24px/1 "Segoe UI", sans-serif; vertical-align: middle; }
.hey-portal .hey-production-approval-1 { color: #008535; }
.hey-portal .hey-production-approval-2 { color: #bb3144; }
.hey-portal .hey-production-approval-3 { color: #e7a000; }
.hey-portal button.hey-production-approval { cursor: pointer; }
.hey-portal button.hey-production-approval:hover { border-color: var(--border); background: var(--soft-white); }
.hey-portal button.hey-production-approval:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.hey-portal button.hey-production-approval:disabled { cursor: wait; opacity: .5; }
.hey-production-feedback:empty { display: none; }
.hey-production-feedback { padding: 10px 12px; border-radius: 6px; background: #edf7f3; color: var(--navy); }
.hey-production-feedback.hey-production-error { background: #fff1f1; color: #982539; }
.hey-portal .hey-production-panel { margin: 0 !important; padding: clamp(12px, 2vw, 20px); }
.hey-production-entry-header, .hey-production-entry-header > div:last-child, .hey-production-entry-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.hey-production-entry-header { justify-content: space-between; margin-bottom: 18px; }
.hey-production-entry-header h3, .hey-production-entry-header p { margin: 0; }
.hey-production-entry-header p { font-size: 13px; color: var(--muted); }
.hey-portal .hey-production-entry-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); align-items: start; gap: 14px; margin: 0; padding: 0; }
.hey-portal .hey-production-entry-field { min-width: 0; margin: 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; background: white; }
.hey-portal .hey-production-entry-field > h4 { margin: 0 0 5px !important; padding: 0; color: var(--muted) !important; font-size: 13px !important; line-height: 1.5; font-weight: 600; }
.hey-portal .hey-production-entry-group { grid-column: 1 / -1; min-width: 0; margin: 0 !important; padding: 0 !important; border: 1px solid var(--border); border-radius: 10px; background: white; }
.hey-portal .hey-production-entry-group > .hey-production-entry-section { margin: 0 !important; padding: 13px 16px; border-bottom: 1px solid var(--border); border-radius: 10px 10px 0 0; background: #faf9fb; color: #000 !important; font-size: 18px !important; line-height: 1.4; font-weight: 750 !important; }
.hey-portal .hey-production-entry-questions { display: flex; flex-direction: column; margin: 0; padding: 0; }
.hey-portal .hey-production-entry-questions > .hey-production-entry-field { display: grid; grid-template-columns: minmax(180px, 32%) minmax(0, 1fr); align-items: start; column-gap: 22px; row-gap: 6px; width: 100%; margin: 0 !important; padding: 10px 16px !important; border: 0; border-bottom: 1px solid #eceaf0; border-radius: 0; background: transparent; }
.hey-portal .hey-production-entry-questions > .hey-production-entry-field:last-child { border-bottom: 0; }
.hey-portal .hey-production-entry-questions > .hey-production-entry-field > h4 { margin: 0 !important; }
.hey-portal .hey-production-entry-field > :not(h4) { min-width: 0; }
.hey-production-entry-questions .hey-production-input, .hey-production-entry-questions textarea, .hey-production-entry-questions select { max-width: 760px; }
.hey-portal .hey-production-entry-field:has(.hey-production-photo-gallery) { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.hey-portal .hey-production-photo-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); align-items: start; gap: 12px; max-width: 100%; margin: 0; padding: 0; }
.hey-portal .hey-production-photo-gallery figure { min-width: 0; max-width: 320px; margin: 0 !important; padding: 0 !important; }
.hey-portal .hey-production-photo-gallery a { display: block; color: var(--navy); text-decoration: none; }
.hey-portal .hey-production-photo-gallery img { display: block; width: 100%; height: 180px !important; max-height: none; margin: 0 !important; object-fit: contain; object-position: center; border: 1px solid var(--border); border-radius: 7px; background: #f6f5f8; }
.hey-portal .hey-production-photo-gallery figcaption { margin: 5px 0 0 !important; padding: 0; font-size: 11px; line-height: 1.4; color: var(--muted); }
.hey-production-photo-gallery a:hover figcaption { text-decoration: underline; }
.hey-production-photo-gallery a:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 8px; }
.hey-portal .hey-production-field-value { margin: 0; padding: 0; color: var(--navy); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.hey-portal .hey-production-field-value p, .hey-portal .hey-production-field-value ul, .hey-portal .hey-production-field-value ol { margin-top: 0 !important; margin-bottom: 0 !important; }
.hey-portal .hey-production-readonly { margin: 0 0 5px; color: var(--muted); font-size: 11px; }
.hey-production-field-value img { max-width: 100%; height: auto; }
.hey-production-entry-field input:not([type="checkbox"]), .hey-production-entry-field select, .hey-production-entry-field textarea { box-sizing: border-box; width: 100%; min-width: 0; margin: 0; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; background: white; color: var(--navy); font: inherit; }
.hey-portal .hey-production-input, .hey-portal .hey-production-check { display: block; margin: 0 0 6px; font-size: 14px; line-height: 1.5; }
.hey-production-input:last-child, .hey-production-check:last-child { margin-bottom: 0; }
.hey-production-input span { display: block; margin-bottom: 3px; font-size: 12px; color: var(--muted); }
.hey-production-entry-actions { margin-top: 18px; }
.hey-production-installation-location { margin-top: 18px; }
.hey-portal .hey-production-entry-group .hey-production-installation-location { margin: 14px 16px 16px !important; padding: 0 !important; }
.hey-portal .hey-production-installation-location > h3 { margin: 0 0 10px !important; padding: 0; color: #000 !important; font-size: 16px !important; font-weight: 750 !important; }
.hey-production-installation-location .hey-project-location { margin: 0 !important; padding: 16px; }
@media (max-width: 900px) {
    .hey-portal .hey-production-entry-questions > .hey-production-entry-field { grid-template-columns: minmax(0, 1fr); gap: 5px; }
    .hey-portal .hey-production-entry-group > .hey-production-entry-section { padding: 11px 13px; font-size: 17px !important; }
    .hey-portal .hey-production-entry-questions > .hey-production-entry-field { padding: 10px 13px !important; }
    .hey-portal .hey-production-entry-group .hey-production-installation-location { margin: 12px 13px 13px !important; }
    .hey-portal .hey-production-photo-gallery { grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); gap: 10px; }
    .hey-portal .hey-production-photo-gallery img { height: 160px !important; }
}
.hey-company-contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; margin-bottom: 20px; }
.hey-company-contact { padding: 14px; border: 1px solid var(--border); border-radius: 8px; min-width: 0; }
.hey-company-contact label { display: grid; gap: 4px; margin-bottom: 8px; font-size: 13px; }
.hey-company-contact input { box-sizing: border-box; width: 100%; min-width: 0; padding: 8px; border: 1px solid var(--border); border-radius: 5px; font: inherit; }

.hey-service-toolbar, .hey-service-detail-header, .hey-calendar-toolbar, .hey-calendar-controls, .hey-hr-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.hey-service-toolbar { margin-bottom: 12px; }
.hey-service-toolbar p { margin: 0; color: var(--muted); font-size: 13px; }
.hey-service-warning { padding: 12px 14px; background: #fff4df; border: 1px solid #ecd5a1; border-radius: 8px; }
.hey-service-summary, .hey-hr-balances { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.hey-service-summary > div, .hey-hr-balances > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 16px; background: white; border: 1px solid var(--border); border-radius: 9px; }
.hey-service-summary strong { font-size: 27px; color: #ae3046; }
.hey-service-summary span, .hey-hr-balances span, .hey-hr-balances small { font-size: 13px; color: var(--muted); }
.hey-service-pin { display: grid; place-items: center; width: 32px; height: 32px; border: 2px solid white; border-radius: 50%; background: #ca3c53; color: white; font: 800 19px/1 sans-serif; box-shadow: 0 2px 7px #18173350; }
.hey-service-popup p, .hey-service-popup ul { margin: 6px 0; }
.hey-service-popup ul { padding-left: 18px; }
.hey-service-detail { padding: 20px; margin: 18px 0; background: white; border: 1px solid var(--border); border-radius: 10px; }
.hey-service-detail[hidden] { display: none; }
.hey-service-detail h2 { margin: 0; font-size: 22px; }
.hey-service-detail dl, .hey-hr-ledger { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(0, 2fr); gap: 8px 18px; margin: 18px 0; }
.hey-service-detail dt, .hey-hr-ledger dt { font-weight: 600; }
.hey-service-detail dd, .hey-hr-ledger dd { margin: 0; overflow-wrap: anywhere; }
.hey-service-search { display: grid; gap: 5px; margin: 16px 0; font-size: 13px; }
.hey-service-search input { max-width: 500px; padding: 10px; border: 1px solid var(--border); border-radius: 6px; font: inherit; }
.hey-service-table { min-width: 850px; }
.hey-service-table small { display: block; margin-top: 4px; color: var(--muted); }
.hey-service-table ul { margin: 0; padding-left: 17px; }
.hey-portal .hey-service-table th, .hey-portal .hey-service-table td { padding: 12px; vertical-align: top; font-size: 13px; }
.hey-portal .hey-calendar { margin: 0; padding: 0; }
.hey-calendar-toolbar { margin: 0 0 16px; }
.hey-calendar-controls { justify-content: flex-start; gap: 9px; }
.hey-portal .hey-calendar-controls h2 { min-width: 185px; margin: 0; font-size: 22px; text-transform: capitalize; }
.hey-portal .hey-calendar-nav, .hey-portal .hey-calendar-close { width: 34px; height: 34px; padding: 0; border: 1px solid var(--border); border-radius: 7px; background: white; color: var(--navy); font-size: 24px; cursor: pointer; }
.hey-calendar-filters { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0 0 16px; padding: 0; border: 0; }
.hey-calendar-filters legend { margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.hey-calendar-filters label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.hey-calendar-filters label > span { width: 9px; height: 9px; border-radius: 50%; background: var(--event-color); }
[data-category="installation"] { --event-color: #698fc9; --event-soft: #e8eef9; }
[data-category="fault"] { --event-color: #cf4259; --event-soft: #ffedf0; }
[data-category="appointment"] { --event-color: #329679; --event-soft: #e6f5ee; }
.hey-calendar-filters input { accent-color: var(--event-color); }
.hey-calendar-layout { display: grid; grid-template-columns: minmax(0, 1fr) 275px; align-items: start; gap: 18px; }
.hey-calendar-month { min-width: 0; background: white; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.hey-calendar-weekdays, .hey-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.hey-calendar-weekdays { background: #f8f7fa; }
.hey-calendar-weekdays span { padding: 10px; text-align: center; font-size: 12px; color: var(--muted); font-weight: 600; }
.hey-portal button.hey-calendar-date { display: flex; flex-direction: column; align-items: stretch; gap: 3px; min-width: 0; min-height: 108px; margin: 0; padding: 7px; border: 0; border-top: 1px solid var(--border); border-right: 1px solid var(--border); border-radius: 0; background: white; color: var(--navy); text-align: left; font: inherit; font-size: 12px; cursor: pointer; }
.hey-calendar-date:nth-child(7n) { border-right: 0 !important; }
.hey-calendar-date.is-other-month { color: #aaa6b7 !important; background: #faf9fb !important; }
.hey-calendar-date.is-selected { box-shadow: inset 0 0 0 2px var(--blue); }
.hey-calendar-date-number { align-self: flex-start; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; }
.hey-calendar-date.is-today .hey-calendar-date-number { background: var(--navy); color: white; }
.hey-calendar-chip { display: block; min-width: 0; padding: 3px 5px; border-radius: 4px; border-left: 3px solid var(--event-color); background: var(--event-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--navy); font-size: 10px; }
.hey-portal .hey-calendar-day-panel { margin: 0; padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: white; }
.hey-calendar-day-panel h3 { margin: 0 0 14px; font-size: 16px; text-transform: capitalize; }
.hey-calendar-day-panel p { font-size: 13px; color: var(--muted); }
.hey-portal .hey-calendar-day-event { display: flex; flex-direction: column; gap: 5px; width: 100%; margin: 0 0 10px; padding: 12px; border: 1px solid var(--border); border-left: 4px solid var(--event-color); border-radius: 7px; background: var(--event-soft); color: var(--navy); text-align: left; font: inherit; cursor: pointer; }
.hey-calendar-day-event small { font-size: 11px; }
.hey-calendar-day-event span { font-size: 12px; }
.hey-calendar-dialog { width: min(560px, calc(100vw - 24px)); max-height: 90vh; padding: 22px; border: 1px solid var(--border); border-radius: 12px; color: var(--navy); }
.hey-calendar-dialog::backdrop { background: #18173380; }
.hey-calendar-dialog header, .hey-calendar-dialog-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hey-calendar-dialog header { margin-bottom: 16px; }
.hey-calendar-dialog h2 { margin: 0; font-size: 21px; }
.hey-calendar-dialog label { display: grid; gap: 5px; margin-bottom: 12px; font-size: 13px; }
.hey-calendar-dialog input, .hey-calendar-dialog select, .hey-calendar-dialog textarea { min-width: 0; width: 100%; padding: 9px; border: 1px solid var(--border); border-radius: 6px; background: white; color: var(--navy); font: inherit; }
.hey-calendar-date-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hey-calendar-dialog-actions { justify-content: flex-end; }
.hey-calendar-delete { margin-right: auto; border: 0; background: none; color: #ab2c43; cursor: pointer; font: inherit; }
.hey-hr-employees, .hey-hr-leave-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.hey-hr-avatar { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px; border-radius: 50%; background: var(--green); color: var(--navy); font-weight: 750; }
.hey-hr-employees h2 { font-size: 22px; }
.hey-hr-actions { justify-content: flex-start; }
.hey-hr-period { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.hey-hr-period label { display: grid; gap: 5px; min-width: 100px; font-size: 13px; }
.hey-hr-period select, .hey-hr-period input, .hey-settings-fields select { min-width: 0; padding: 9px; border: 1px solid var(--border); border-radius: 6px; background: white; color: var(--navy); font: inherit; }
.hey-hr-period input { width: 110px; }
.hey-hr-balances strong { font-size: 27px; }
.hey-hr-balances > div:last-child { border-color: var(--green); }
.hey-hr-table { min-width: 780px; }
.hey-hr-table input { width: 110px; min-width: 0; padding: 8px; border: 1px solid var(--border); border-radius: 6px; font: inherit; }
.hey-portal .hey-hr-table th, .hey-portal .hey-hr-table td { padding: 11px; font-size: 13px; }
@media (max-width: 1100px) { .hey-calendar-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
    .hey-service-summary, .hey-hr-balances, .hey-hr-employees, .hey-hr-leave-layout { grid-template-columns: minmax(0, 1fr); }
    .hey-service-detail dl, .hey-hr-ledger { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .hey-service-detail dd, .hey-hr-ledger dd { margin-bottom: 8px; }
    .hey-portal .hey-calendar-controls h2 { min-width: 0; font-size: 18px; }
    .hey-calendar-controls { gap: 5px; }
    .hey-portal button.hey-calendar-date { min-height: 70px; padding: 3px; }
    .hey-calendar-chip { min-height: 4px; height: 4px; padding: 0; border: 0; font-size: 0; background: var(--event-color); }
    .hey-calendar-weekdays span { padding: 9px 0; font-size: 11px; }
    .hey-calendar-date-fields { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

@media (max-width: 680px) {
    .hey-portal.hey-portal-workspace { grid-template-columns: clamp(110px, 28vw, 156px) minmax(0, 1fr); }
    .hey-portal-sidebar { padding: 18px 6px 12px; gap: 20px; }
    .hey-sidebar-brand, .hey-sidebar-nav a, .hey-sidebar-settings summary { padding-left: 7px; padding-right: 7px; font-size: 12px; }
    .hey-sidebar-group summary { gap: 6px; padding: 8px 7px; font-size: 12px; }
    .hey-sidebar-submenu a { padding-left: 20px; font-size: 11px; }
    .hey-sidebar-brand { padding-block: 12px; }
    .hey-sidebar-brand-name { font-size: 11px; }
    .hey-portal-content { padding: 12px; }
    .hey-portal-workspace .hey-portal-header { padding-bottom: 12px; margin-bottom: 14px; }
    .hey-portal-workspace .hey-portal-header:has(.hey-portal-open-modal) { grid-template-columns: minmax(0, 1fr) auto; }
    .hey-portal-header .hey-portal-open-modal { grid-column: 1 / -1; justify-self: start; }
    .hey-map-summary { grid-template-columns: 1fr; gap: 6px; }
    .hey-map-summary > div { padding: 9px 10px; }
    .hey-map-summary strong { font-size: 21px; }
    .hey-deal-board { grid-auto-columns: min(210px, 90%); }
    .hey-deal-lane > header { flex-wrap: wrap; }
}

/* Respect conditional controls in the calendar dialog. */
[data-calendar] [hidden] { display: none !important; }
.hey-portal-users { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 20px; }
.hey-account-form, .hey-account-login form { display: grid; gap: 16px; }
.hey-account-form label, .hey-account-login label { display: grid; gap: 6px; font-size: 14px; }
.hey-account-form input, .hey-account-login input { box-sizing: border-box; width: 100%; min-width: 0; padding: 11px; border: 1px solid #d6d3e1; border-radius: 7px; font: inherit; }
.hey-account-login { --navy: #181733; max-width: 440px; margin: 50px auto; padding: 28px; text-align: left; color: #181733; }
.hey-account-login .hey-portal-button { border: 0; cursor: pointer; }
.hey-account-login .hey-portal-logo { max-width: 180px; height: auto; }
.hey-login-help, .hey-login-alternatives p { color: #787b8d; font-size: 12px; line-height: 1.6; }
.hey-login-help { margin: 0 0 20px; }
.hey-account-login .hey-login-remember { display: flex; align-items: center; gap: 9px; font-size: 12px; }
.hey-account-login .hey-login-remember input { flex: 0 0 auto; width: 16px; height: 16px; accent-color: #181733; }
.hey-login-alternatives { display: grid; gap: 14px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #dcd9e7; font-size: 12px; }
.hey-login-alternatives a { color: #414364; }
.hey-login-alternatives p { margin: 0; }
.hey-login-original { font-weight: 650; }
.hey-login-error { margin: 16px 0; padding: 12px; border: 1px solid #f1cbd3; border-radius: 8px; background: #fff5f7; color: #91354b; font-size: 12px; line-height: 1.6; }
.hey-work-count { display: inline-flex; margin-left: auto; min-width: 24px; justify-content: center; border-radius: 20px; background: #ffffff22; padding: 2px 7px; font-size: 12px; }
.hey-work-open { background: none; color: inherit; font: inherit; font-weight: 600; text-align: left; padding: 0; text-decoration: underline; }
.hey-project-work-action { margin: 16px 0; }
.hey-notifications-menu [hidden] { display: none !important; }
[data-hey-notification-count] { position: absolute; top: -6px; right: -6px; min-width: 19px; border-radius: 20px; padding: 2px 4px; background: #cc344d; color: white; font-size: 11px; text-align: center; }
.hey-notifications-menu summary { position: relative; }
.hey-notifications-panel { max-height: min(70vh, 500px); overflow-y: auto; }
.hey-notifications-panel article { border-top: 1px solid #d6d3e1; padding: 14px 0; }
.hey-notifications-panel article p { margin: 6px 0; font-size: 12px; }
.hey-notifications-panel article button { border: 0; background: none; padding: 0; text-decoration: underline; font: inherit; font-size: 12px; cursor: pointer; }

/* Planning, team and reminders share one compact visual hierarchy. */
.hey-detail-eyebrow { display: block; margin: 0 0 7px; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #6b7583; }
.hey-detail-muted { color: #7b8090; }
.hey-portal .hey-workspace-planning { padding: 0; overflow: hidden; border-radius: 14px; }
.hey-work-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 28px; background: #fff; }
.hey-portal .hey-work-heading h2 { margin: 0; font-size: 24px; line-height: 1.25; letter-spacing: -.65px; color: #181733; }
.hey-work-heading p { margin: 9px 0 0; font-size: 13px; line-height: 1.6; color: #687082; }
.hey-work-total { flex: 0 0 auto; display: grid; gap: 4px; min-width: 112px; padding: 13px 18px; border-radius: 11px; background: #eaf4f0; color: #225a50; text-align: center; }
.hey-work-total strong { font-size: 29px; line-height: 1; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.hey-work-total span { font-size: 10px; font-weight: 600; }
[data-work-status]:empty { display: none; }
[data-work-status]:not(:empty), .hey-workspace-planning > [role=alert] { margin: 0 28px 18px; padding: 12px 15px; border-radius: 8px; background: #edf5f0; font-size: 13px; }
.hey-portal .hey-work-table { table-layout: fixed; white-space: normal; }
.hey-portal .hey-work-table th { padding: 13px 20px; border: 0; background: #f8f9fb; color: #7a7e8c; font-size: 10px; font-weight: 600; line-height: 1.4; }
.hey-work-table th:first-child { width: 37%; }
.hey-work-table th:nth-child(2) { width: 25%; }
.hey-work-table th:nth-child(3) { width: 19%; }
.hey-work-table th:last-child { width: 19%; }
.hey-portal .hey-work-table td { padding: 20px; border: 0; border-top: 1px solid #eeedf3; color: #454a60; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; vertical-align: middle; }
.hey-work-table tbody tr:hover { background: #fbfcfe; }
.hey-work-source { display: table; margin-bottom: 7px; padding: 3px 8px; border-radius: 5px; background: #edf2fb; color: #4e6a9d; font-size: 10px; font-weight: 600; }
.hey-work-source[data-kind=project] { background: #f0edf8; color: #71618f; }
.hey-portal .hey-work-table .hey-work-open { display: block; width: 100%; margin: 0; padding: 0 !important; border: 0; background: transparent; color: #181733; text-align: left; font: 600 14px/1.5 "Instrument Sans", "Segoe UI", sans-serif; letter-spacing: normal !important; text-transform: none !important; text-decoration: none; cursor: pointer; }
.hey-work-open:hover { text-decoration: underline !important; }
.hey-work-person { display: inline-block; padding: 5px 9px; border-radius: 20px; background: #eef5f2; color: #37695c; font-size: 11px; }
.hey-work-person.is-unassigned { background: #f3f3f6; color: #7b7f8d; }
.hey-work-actions .hey-portal-button { width: 100%; gap: 10px; }
.hey-work-actions > a { display: block; margin-top: 7px; color: #74798a; font-size: 11px; text-align: center; text-decoration: none; }
.hey-work-actions > a:hover { color: #181733; text-decoration: underline; }
.hey-users-intro { margin: 0 0 22px; }
.hey-portal .hey-users-intro h2 { margin: 0; font-size: 25px; letter-spacing: -.7px; }
.hey-users-intro > p { margin: 9px 0 0; color: #74798a; font-size: 13px; line-height: 1.6; }
.hey-portal-users { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.hey-portal .hey-user-card { display: flex; flex-direction: column; padding: 24px; min-width: 0; border-radius: 13px; box-shadow: 0 3px 12px #18173303; }
.hey-user-card > header { display: flex; align-items: center; gap: 13px; margin-bottom: 15px; }
.hey-user-avatar { flex: 0 0 46px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: #eaf0f9; color: #5576a5; font-size: 15px; font-weight: 700; letter-spacing: -.3px; }
.hey-portal .hey-user-card h2 { margin: 0 0 5px; font-size: 18px; line-height: 1.3; letter-spacing: -.4px; }
.hey-user-state { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: #858998; }
.hey-user-state::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.hey-user-state.is-active { color: #3a8b6d; }
.hey-user-state.is-pending { color: #af7c2b; }
.hey-user-roles { display: flex; flex-wrap: wrap; gap: 5px; }
.hey-user-roles span { padding: 4px 8px; border-radius: 5px; background: #f1f0f7; color: #635d79; font-size: 10px; line-height: 1.4; }
.hey-user-email { margin: 15px 0 5px; font-size: 13px; overflow-wrap: anywhere; }
.hey-user-access { flex: 1; margin: 0 0 20px; color: #858997; font-size: 12px; line-height: 1.65; }
.hey-user-edit { border-top: 1px solid #eeedf3; }
.hey-user-edit > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 15px; color: #373451; font-size: 12px; font-weight: 600; list-style: none; cursor: pointer; }
.hey-user-edit > summary::-webkit-details-marker { display: none; }
.hey-user-edit[open] > summary { margin-bottom: 18px; }
.hey-user-edit[open] > summary span { transform: rotate(180deg); }
.hey-account-form small { color: #858997; font-size: 11px; line-height: 1.5; font-weight: 400; }
.hey-account-form .hey-portal-button { width: 100%; }
.hey-calendar-dialog { width: min(590px, calc(100vw - 24px)); padding: 26px; border-color: #e3e1eb; box-shadow: 0 24px 90px #18173326; }
.hey-calendar-dialog header { padding-bottom: 17px; margin-bottom: 20px; border-bottom: 1px solid #eeedf3; }
.hey-calendar-dialog label { color: #5d6076; font-size: 12px; gap: 7px; margin-bottom: 16px; }
.hey-calendar-dialog input, .hey-calendar-dialog select, .hey-calendar-dialog textarea { padding: 11px 12px; border-color: #dcd9e7; border-radius: 8px; color: #181733; }
.hey-calendar-dialog :is(input, select, textarea):focus { outline: 2px solid #698fc93b; outline-offset: 1px; border-color: #698fc9; }
.hey-calendar-dialog :disabled { background: #f8f9fb; color: #666a80; opacity: 1; }
.hey-calendar-dialog-actions { padding-top: 17px; border-top: 1px solid #eeedf3; }
.hey-notifications-panel { width: min(380px, calc(100vw - 28px)); padding: 20px; border-radius: 13px; box-shadow: 0 12px 45px #1817331a; }
.hey-notifications-panel article { border: 1px solid #eeedf3; border-radius: 9px; padding: 13px; margin-top: 10px; }
.hey-notifications-panel article.is-unread { background: #f5f8fd; border-color: #e4eaf5; }
.hey-notification-kind { display: block; margin-bottom: 7px; color: #7187aa; font-size: 10px; font-weight: 600; }
.hey-notifications-panel .hey-notification-title { display: block; color: #181733; font-size: 13px; font-weight: 650; text-decoration: none; line-height: 1.5; }
.hey-notifications-panel article > p { color: #858a9a; font-size: 11px; line-height: 1.6; }
.hey-notification-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; }
.hey-notification-actions a { color: #536f9d; font-size: 11px; font-weight: 600; text-decoration: none; }
.hey-notifications-panel .hey-notification-actions button { color: #898d9b; font-size: 10px; }
.hey-notification-empty { padding: 24px 12px; text-align: center; color: #868a99; font-size: 12px; line-height: 1.7; }
.hey-notifications-all { display: block; margin-top: 14px; padding-top: 14px; border-top: 1px solid #eeedf3; color: #536f9d; font-size: 12px; text-decoration: none; }
.hey-message-center > p, .hey-order-flow-status > p { color: #7c8190; font-size: 13px; line-height: 1.6; }
.hey-message-card { margin-top: 18px; padding: 20px; border: 1px solid #e6e5ed; border-radius: 10px; }
.hey-message-card.is-unread { border-left: 4px solid #698fc9; background: #f8faff; }
.hey-message-card:target { outline: 2px solid #698fc9; scroll-margin-top: 20px; }
.hey-portal .hey-message-card h3 { margin: 7px 0 9px; font-size: 18px; color: #181733; }
.hey-message-card p { font-size: 13px; line-height: 1.6; }
.hey-message-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 16px; }
.hey-message-actions form { margin: 0; }
.hey-message-actions form button { border: 0; background: none; padding: 0; font: inherit; font-size: 12px; color: #7c8190; text-decoration: underline; cursor: pointer; }
.hey-order-flow-status { margin-top: 20px; }
.hey-order-flow-status li { padding: 9px 0; font-size: 12px; line-height: 1.6; }
.hey-order-select { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.hey-order-select label { display: grid; gap: 5px; }
.hey-order-select select { max-width: 100%; padding: 9px; border: 1px solid #dcd9e7; border-radius: 6px; font: inherit; }
@media (max-width: 760px) {
    .hey-portal-users { grid-template-columns: minmax(0, 1fr); }
    .hey-work-heading { padding: 20px; gap: 15px; align-items: flex-start; }
    .hey-portal .hey-work-heading h2 { font-size: 20px; }
    .hey-work-total { min-width: 75px; padding: 11px; }
    .hey-work-total strong { font-size: 25px; }
    .hey-work-total span { max-width: 65px; line-height: 1.3; font-size: 9px; }
    .hey-work-table thead { display: none; }
    .hey-work-table, .hey-work-table tbody { display: block; width: 100%; }
    .hey-work-table tr[data-work-row] { display: grid; grid-template-columns: 1fr 1fr; padding: 18px 20px; border-top: 1px solid #eeedf3; gap: 14px; }
    .hey-portal .hey-work-table tr[data-work-row] td { display: block; padding: 0; border: 0; min-width: 0; }
    .hey-work-table td:first-child, .hey-work-table td:last-child { grid-column: 1 / -1; }
    .hey-work-table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 6px; color: #8c8e9c; font-size: 10px; }
    .hey-work-table td:first-child::before { display: none; }
    .hey-work-actions { display: flex !important; align-items: center; justify-content: space-between; gap: 14px; }
    .hey-work-actions .hey-portal-button { width: auto; }
    .hey-work-actions > a { margin: 0; }
    .hey-calendar-dialog { padding: 20px; }
}
