:root {
    --cp-ink: #153647;
    --cp-muted: #647d89;
    --cp-line: #cddde3;
    --cp-soft: #edf5f5;
    --cp-surface: #ffffff;
    --cp-teal: #0e756b;
    --cp-teal-dark: #07544f;
    --cp-blue: #176f9f;
    --cp-coral: #d14a48;
    --cp-amber: #d7922f;
    --cp-green: #17825f;
    --cp-shadow: 0 16px 42px rgba(24, 58, 72, .10);
    --cp-radius: 18px;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: #eaf1f2; }
body { margin: 0; color: var(--cp-ink); font-family: "Avenir Next", "Trebuchet MS", sans-serif; }
button, input, select, textarea { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.customer-kicker { margin: 0; color: var(--cp-teal); font-size: .69rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }

/* Customer authentication is intentionally isolated from the employee ERP shell. */
.customer-auth-page { min-height: 100vh; background: radial-gradient(circle at 18% 12%, rgba(44, 154, 145, .24), transparent 32%), linear-gradient(135deg, #0a3443 0%, #0e5260 50%, #dceceb 50%, #eef5f3 100%); }
.customer-auth-shell { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(390px, .85fr); min-height: 100vh; }
.customer-auth-story { display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: clamp(32px, 6vw, 90px); color: #fff; }
.customer-auth-logo { width: min(285px, 55%); max-height: 110px; object-fit: contain; object-position: left center; filter: drop-shadow(0 8px 20px rgba(0,0,0,.12)); }
.customer-auth-story .customer-kicker { color: #8fe0d0; }
.customer-auth-story h1 { margin: 12px 0 18px; font: 900 clamp(2.8rem, 6.2vw, 6.8rem)/.87 "Avenir Next Condensed", "Franklin Gothic Condensed", sans-serif; letter-spacing: -.045em; }
.customer-auth-story h1 span { color: #ffd18a; }
.customer-auth-story p:not(.customer-kicker) { max-width: 670px; margin: 0; color: #d7e9e8; font-size: clamp(.95rem, 1.5vw, 1.25rem); line-height: 1.6; }
.customer-auth-proof { display: flex; flex-wrap: wrap; gap: 9px; }
.customer-auth-proof span { padding: 8px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(255,255,255,.08); font-size: .72rem; font-weight: 800; backdrop-filter: blur(8px); }
.customer-auth-panel { display: grid; place-items: center; padding: clamp(20px, 5vw, 70px); background: rgba(245, 250, 248, .9); backdrop-filter: blur(18px); }
.customer-auth-card { width: min(100%, 460px); padding: clamp(26px, 4vw, 48px); border: 1px solid rgba(170, 198, 199, .8); border-radius: 28px; background: rgba(255,255,255,.94); box-shadow: 0 34px 80px rgba(10, 53, 65, .18); }
.customer-auth-card h2 { margin: 7px 0 4px; color: #103b4e; font: 900 clamp(1.9rem, 3vw, 2.7rem)/1 "Avenir Next Condensed", sans-serif; }
.customer-auth-muted, .customer-auth-security { color: #718792; font-size: .82rem; line-height: 1.5; }
.customer-auth-form { display: grid; gap: 15px; margin-top: 24px; }
.customer-auth-form label, .customer-form-grid label { display: grid; gap: 5px; min-width: 0; color: #3c5e6c; font-size: .75rem; font-weight: 800; }
.customer-auth-form input, .customer-form-grid input, .customer-form-grid select, .customer-form-grid textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #b9ced5; border-radius: 11px; outline: 0; background: #f9fcfc; transition: border-color .2s, box-shadow .2s, background .2s; }
.customer-auth-form input:focus, .customer-form-grid input:focus, .customer-form-grid select:focus, .customer-form-grid textarea:focus { border-color: #218c9e; background: var(--look-card, #fff); box-shadow: 0 0 0 4px rgba(33, 140, 158, .13); }
.customer-password-field { position: relative; display: block; }
.customer-password-field input { padding-right: 62px; }
.customer-password-field button { position: absolute; top: 7px; right: 7px; min-height: 34px; padding: 0 9px; border: 0; border-radius: 8px; color: var(--cp-teal); background: #e3f2ef; cursor: pointer; font-size: .7rem; font-weight: 900; }
.customer-auth-submit, .customer-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 45px; padding: 10px 16px; border: 0; border-radius: 11px; color: #fff; background: linear-gradient(135deg, #0f8979, #08675f); box-shadow: 0 10px 22px rgba(8, 103, 95, .2); cursor: pointer; font-weight: 900; text-decoration: none; }
.customer-auth-submit span { margin-left: auto; font-size: 1.1rem; }
.customer-auth-submit-link { margin-top: 18px; }
.customer-auth-link { display: inline-block; margin-top: 18px; color: #15738b; font-size: .8rem; font-weight: 850; }
.customer-auth-alert { margin: 17px 0 -7px; padding: 10px 12px; border-radius: 10px; font-size: .78rem; font-weight: 750; }
.customer-auth-alert.is-error { color: #9c2932; background: #ffe5e5; }
.customer-auth-alert.is-info { color: #155d55; background: #dff3ec; }
.customer-form-hint { margin: -6px 0 2px; color: #738993; font-size: .7rem; }
.customer-otp-input { text-align: center; font-size: 1.7rem!important; font-weight: 900; letter-spacing: .35em; }
.customer-login-captcha { display: grid; gap: 9px; min-width: 0; margin: 0; padding: 11px; border: 1px solid #c6dcdd; border-radius: 13px; background: linear-gradient(145deg,#f5fbfa,#eaf4f1); }
.customer-login-captcha legend { padding: 0 6px; color: #255f66; font-size: .73rem; font-weight: 900; }
.customer-login-captcha .login-captcha-visual { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 9px; }
.customer-login-captcha .login-captcha-visual img { display: block; width: 100%; max-width: 220px; height: 68px; border: 1px solid #bdd5d6; border-radius: 11px; background: #f4faf9; user-select: none; }
.customer-login-captcha .login-captcha-visual button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 38px; padding: 7px 10px; border: 1px solid #b9d5d7; border-radius: 9px; color: var(--cp-teal); background: var(--look-card, #fff); cursor: pointer; font-size: .7rem; font-weight: 900; }
.customer-login-captcha .login-captcha-visual button:hover,.customer-login-captcha .login-captcha-visual button:focus-visible { border-color: #3b9b90; outline: 0; box-shadow: 0 0 0 3px rgba(59,155,144,.13); }
.customer-login-captcha .login-captcha-visual button.is-loading span { animation: customer-captcha-spin .7s linear infinite; }
.customer-login-captcha .login-captcha-answer { margin: 0; }
.customer-login-captcha .login-captcha-answer input { letter-spacing: .24em; text-transform: uppercase; font-weight: 900; }
.customer-login-captcha > small { color: #6d858b; font-size: .66rem; line-height: 1.35; }
@keyframes customer-captcha-spin { to { transform: rotate(360deg); } }

/* Portal shell */
.customer-portal-page { height: 100vh; overflow: hidden; background: linear-gradient(145deg, #e8f0f1 0%, #f8fbfa 48%, #e8f2ef 100%); }
.customer-app-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); height: 100vh; }
.customer-sidebar { position: relative; z-index: 20; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: 0; padding: 18px 14px 14px; color: #e9f7f4; background: linear-gradient(180deg, #103e4d 0%, #0a5860 58%, #08736c 100%); box-shadow: 14px 0 40px rgba(12, 58, 69, .12); }
.customer-sidebar::after { position: absolute; inset: auto -45px 10% auto; width: 150px; height: 150px; border: 34px solid rgba(255,255,255,.035); border-radius: 50%; content: ""; pointer-events: none; }
.customer-brand { display: flex; align-items: center; gap: 10px; padding: 3px 7px 20px; color: #fff; text-decoration: none; }
.customer-brand img { width: 61px; height: 47px; padding: 4px; border-radius: 12px; object-fit: contain; background: var(--look-card, #fff); }
.customer-brand span { display: grid; line-height: 1; }
.customer-brand strong { font-size: 1.35rem; letter-spacing: .02em; }
.customer-brand small { margin-top: 5px; color: #9fdad3; font-size: .63rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.customer-navigation { min-height: 0; overflow: auto; padding: 3px 0; scrollbar-width: thin; }
.customer-navigation button { position: relative; display: grid; grid-template-columns: 32px 1fr auto; align-items: center; width: 100%; min-height: 43px; margin: 2px 0; padding: 6px 9px; border: 0; border-radius: 11px; color: #cce3e0; background: transparent; cursor: pointer; text-align: left; font-size: .78rem; font-weight: 800; transition: transform .18s, background .18s, color .18s; }
.customer-navigation button:hover { color: #fff; background: rgba(255,255,255,.09); transform: translateX(2px); }
.customer-navigation button.is-active { color: #123e4a; background: #f5fbf9; box-shadow: 0 9px 22px rgba(1, 35, 43, .2); }
.customer-navigation button b { min-width: 21px; padding: 2px 5px; border-radius: 999px; color: #fff; background: #db5450; font-size: .62rem; text-align: center; }
.customer-nav-icon { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; color: #b8e2dc; background: rgba(255,255,255,.08); font-size: .95rem; }
.customer-navigation button.is-active .customer-nav-icon { color: #fff; background: #16877a; }
.customer-sidebar-foot { display: flex; align-items: center; gap: 9px; padding: 11px 8px; border-top: 1px solid rgba(255,255,255,.12); }
.customer-sidebar-foot div { display: grid; }
.customer-sidebar-foot strong { font-size: .68rem; }
.customer-sidebar-foot small { margin-top: 2px; color: #a8ceca; font-size: .58rem; }
.customer-live-dot { width: 9px; height: 9px; border-radius: 50%; background: #58e0a7; box-shadow: 0 0 0 5px rgba(88,224,167,.13); }
.customer-main-shell { display: grid; grid-template-rows: 66px minmax(0, 1fr); min-width: 0; min-height: 0; }
.customer-topbar { position: relative; z-index: 15; display: flex; align-items: center; gap: 14px; padding: 10px 22px; border-bottom: 1px solid rgba(177, 202, 207, .75); background: rgba(251,253,252,.86); backdrop-filter: blur(14px); }
.customer-mobile-menu { display: none; border: 0; color: var(--cp-ink); background: transparent; font-size: 1.4rem; }
.customer-global-search { position: relative; display: flex; align-items: center; flex: 1 1 420px; max-width: 710px; min-height: 43px; border: 1px solid #c3d6dc; border-radius: 13px; background: var(--look-card, #fff); box-shadow: 0 7px 22px rgba(25, 64, 78, .06); }
.customer-global-search > span { padding-left: 13px; color: #468194; font-size: 1.15rem; }
.customer-global-search input { flex: 1; min-width: 0; height: 41px; padding: 8px 10px; border: 0; outline: 0; background: transparent; font-size: .78rem; }
.customer-global-search kbd { margin-right: 8px; padding: 4px 7px; border: 1px solid #cddcdf; border-radius: 6px; color: #72858c; background: #f0f5f5; font-size: .59rem; }
.customer-account-switch { position: relative; margin-left: auto; }
.customer-account-switch > button { display: flex; align-items: center; gap: 9px; min-width: 220px; padding: 5px 8px; border: 1px solid transparent; border-radius: 12px; background: transparent; cursor: pointer; text-align: left; }
.customer-account-switch > button:hover { border-color: #c8dadd; background: var(--look-card, #fff); }
.customer-account-switch > button > span:not(.customer-avatar) { display: grid; flex: 1; min-width: 0; }
.customer-account-switch strong, .customer-account-switch small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-account-switch strong { font-size: .74rem; }.customer-account-switch small { color: #738991; font-size: .62rem; }
.customer-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff; background: linear-gradient(135deg, #1c8298, #0f6d61); font-weight: 900; }
.customer-account-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 100; display: grid; width: 220px; padding: 7px; border: 1px solid #c8dadd; border-radius: 12px; background: var(--look-card, #fff); box-shadow: var(--cp-shadow); }
.customer-account-menu a, .customer-account-menu button { padding: 9px 10px; border: 0; border-radius: 8px; color: #315664; background: transparent; cursor: pointer; text-align: left; text-decoration: none; font-size: .73rem; font-weight: 800; }
.customer-account-menu a:hover, .customer-account-menu button:hover { background: #ecf5f4; }.customer-account-menu .is-danger { color: #a5343c; }
.customer-workspace { min-width: 0; min-height: 0; overflow: auto; padding: 18px 21px 32px; scrollbar-gutter: stable; }
.customer-view { display: none; max-width: 1750px; margin: 0 auto; animation: customerReveal .28s ease both; }
.customer-view.is-active { display: block; }
@keyframes customerReveal { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.customer-view-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 15px; }
.customer-view-heading h1 { margin: 3px 0 4px; color: #143f50; font: 900 clamp(1.7rem, 2.6vw, 2.65rem)/.98 "Avenir Next Condensed", sans-serif; letter-spacing: -.025em; }
.customer-view-heading h1 span { color: #167b72; }
.customer-view-heading p:last-child { margin: 0; color: #6e848d; font-size: .77rem; }
.customer-welcome-heading { padding: 6px 4px 0; }
.customer-heading-actions { display: flex; align-items: center; gap: 8px; }
.customer-heading-actions > span { display: grid; min-width: 160px; padding: 7px 10px; border: 1px solid #c4d7dc; border-radius: 11px; background: rgba(255,255,255,.72); }
.customer-heading-actions small { color: #789099; font-size: .57rem; font-weight: 800; text-transform: uppercase; }.customer-heading-actions strong { margin-top: 2px; font-size: .75rem; }
.customer-heading-actions button, .customer-card header button, .customer-table-tools button, .customer-report-controls button, .customer-pagination button, .customer-dialog footer button { min-height: 34px; padding: 7px 11px; border: 1px solid #bcd2d8; border-radius: 9px; color: #2f6172; background: var(--look-card, #fff); cursor: pointer; font-size: .69rem; font-weight: 850; }
.customer-heading-actions button:hover, .customer-card header button:hover { border-color: #4b96a6; }
.customer-button.is-secondary { color: #276477; border: 1px solid #b6d1d7; background: var(--look-card, #fff); box-shadow: none; }
.customer-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.customer-kpi-card, .customer-skeleton-card { position: relative; min-height: 105px; overflow: hidden; padding: 14px; border: 1px solid #c8dbdf; border-radius: 16px; background: rgba(255,255,255,.88); box-shadow: 0 10px 24px rgba(21, 63, 78, .06); }
.customer-skeleton-card { background: linear-gradient(100deg, #e7efef 20%, #f8fbfa 40%, #e7efef 60%); background-size: 300% 100%; animation: customerSkeleton 1.3s infinite; }
@keyframes customerSkeleton { to { background-position-x: -150%; } }
.customer-kpi-card::after { position: absolute; right: -22px; bottom: -28px; width: 90px; height: 90px; border-radius: 50%; background: rgba(23, 130, 95, .08); content: ""; }
.customer-kpi-card:nth-child(4n+2)::after { background: rgba(23,111,159,.09); }.customer-kpi-card:nth-child(4n+3)::after { background: rgba(209,74,72,.08); }.customer-kpi-card:nth-child(4n+4)::after { background: rgba(215,146,47,.1); }
.customer-kpi-card button { position: relative; z-index: 1; display: grid; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; text-align: left; }
.customer-kpi-card small { color: #6c858e; font-size: .65rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.customer-kpi-card strong { margin-top: 7px; color: #174658; font: 900 clamp(1.35rem, 2vw, 2rem)/1 "Avenir Next Condensed", sans-serif; }
.customer-kpi-card span { align-self: end; color: #16806f; font-size: .64rem; font-weight: 850; }
.customer-dashboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.customer-card { min-width: 0; overflow: hidden; border: 1px solid #c7dadd; border-radius: var(--cp-radius); background: rgba(255,255,255,.9); box-shadow: 0 9px 25px rgba(22, 62, 76, .055); }
.customer-card-wide { grid-column: span 2; }
.customer-card > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 14px 9px; }
.customer-card h2 { margin: 3px 0 0; color: #173f4e; font-size: .94rem; }
.customer-compact-list { display: grid; padding: 0 10px 10px; }
.customer-compact-row { display: grid; grid-template-columns: minmax(90px,.72fr) minmax(0,1.25fr) minmax(75px,.7fr) auto; align-items: center; gap: 8px; min-height: 48px; padding: 7px 6px; border-top: 1px solid #e0eaec; color: #446571; font-size: .68rem; }
.customer-compact-row strong { color: #174c60; }.customer-compact-row small { display: block; color: #80949b; }
.customer-compact-row button, .customer-link-button { padding: 4px 7px; border: 0; color: #14766f; background: transparent; cursor: pointer; font-size: .67rem; font-weight: 900; text-decoration: underline; }
.customer-status { display: inline-flex; width: fit-content; padding: 3px 7px; border-radius: 999px; color: #8a6518; background: #fff0c9; font-size: .6rem; font-weight: 900; }
.customer-status.is-success, .customer-status[data-status*="delivered" i], .customer-status[data-status*="available" i], .customer-status[data-status*="paid" i], .customer-status[data-status*="completed" i] { color: #087151; background: #dff3e8; }
.customer-status.is-danger, .customer-status[data-status*="overdue" i], .customer-status[data-status*="cancel" i], .customer-status[data-status*="failed" i] { color: #9a3038; background: #ffe1e3; }
.customer-status.is-info, .customer-status[data-status*="transit" i], .customer-status[data-status*="processing" i] { color: #155f83; background: #dceefa; }
.customer-action-list { display: grid; gap: 7px; padding: 3px 11px 12px; }
.customer-action-item { padding: 9px 10px; border-left: 3px solid #df9c37; border-radius: 7px; color: #5a6f76; background: #fff8e9; font-size: .7rem; }
.customer-empty-state { padding: 24px 12px; color: #7c9098; text-align: center; font-size: .73rem; }
.customer-filter-card { display: grid; grid-template-columns: repeat(6, minmax(120px,1fr)); gap: 8px; margin-bottom: 11px; padding: 11px; overflow: visible; }
.customer-filter-card label, .customer-report-controls label { display: grid; gap: 3px; color: #5a7480; font-size: .62rem; font-weight: 850; }
.customer-filter-card input, .customer-filter-card select, .customer-report-controls input { width: 100%; min-height: 36px; padding: 6px 8px; border: 1px solid #bdd1d7; border-radius: 8px; background: var(--look-card, #fff); font-size: .7rem; }
.customer-filter-actions { display: flex; align-items: end; gap: 6px; }
.customer-filter-actions button { flex: 1; min-height: 36px; border: 1px solid #adcad1; border-radius: 8px; color: #fff; background: #147a72; cursor: pointer; font-size: .68rem; font-weight: 900; }.customer-filter-actions button:last-child { color: #426574; background: var(--look-card, #fff); }
.customer-table-wrap { max-width: 100%; overflow: auto; border-top: 1px solid #d6e4e7; scrollbar-width: thin; }
.customer-table-wrap table { width: 100%; min-width: 960px; border-collapse: collapse; }
.customer-table-wrap th { position: sticky; top: 0; z-index: 2; padding: 8px 9px; color: #315d6d; background: #e7f1f3; font-size: .6rem; letter-spacing: .055em; text-align: left; text-transform: uppercase; }
.customer-table-wrap td { max-width: 260px; padding: 8px 9px; border-top: 1px solid #dfebed; color: #476773; font-size: .68rem; vertical-align: middle; }
.customer-table-wrap tbody tr:nth-child(even) { background: #f8fbfb; }.customer-table-wrap tbody tr:hover { background: #ebf7f3; }
.customer-table-wrap td strong { color: #174b5d; }
.customer-table-tools { display: flex; gap: 6px; }.customer-table-tools button.is-primary { color: #fff; border-color: #0b7167; background: #138175; }.customer-table-tools button:disabled { opacity: .45; cursor: not-allowed; }
.customer-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-height: 43px; padding: 6px 11px; color: #70868e; font-size: .66rem; }
.customer-pagination button:disabled { opacity: .4; }
.customer-job-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; padding: 2px 11px 12px; }
.customer-job-card { display: grid; gap: 6px; padding: 10px; border: 1px solid #d0e0e3; border-radius: 11px; background: #f7fbfa; }
.customer-job-card header { display: flex; justify-content: space-between; }.customer-job-card h3 { margin: 0; font-size: .75rem; }.customer-job-card p { margin: 0; color: #6d858d; font-size: .64rem; }.customer-job-actions { display: flex; gap: 5px; flex-wrap: wrap; }.customer-job-actions a { padding: 5px 7px; border-radius: 7px; color: #fff; background: #167a70; font-size: .62rem; font-weight: 850; text-decoration: none; }
.customer-report-controls { display: flex; align-items: end; gap: 9px; margin-bottom: 11px; padding: 11px; }
.customer-date-pills { display: flex; gap: 5px; flex: 1; }.customer-date-pills button.is-active { color: #fff; border-color: #0f756d; background: #137f74; }
.customer-report-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.customer-report-card { display: grid; min-height: 122px; padding: 13px; border: 1px solid #cbdde0; border-radius: 15px; background: var(--look-card, #fff); box-shadow: 0 8px 20px rgba(25,67,80,.05); }
.customer-report-card h3 { margin: 6px 0 4px; font-size: .84rem; }.customer-report-card p { margin: 0; color: #71878e; font-size: .66rem; }.customer-report-actions { display: flex; align-self: end; gap: 5px; flex-wrap: wrap; margin-top: 10px; }.customer-report-card a { width: fit-content; padding: 5px 7px; border: 1px solid #abd0ca; border-radius: 7px; color: #11766d; background: #f1faf8; font-size: .62rem; font-weight: 900; text-decoration: none; }
.customer-notification-list { display: grid; gap: 8px; }
.customer-notification-card { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 11px 13px; border: 1px solid #cbdde0; border-radius: 13px; background: var(--look-card, #fff); }
.customer-notification-card.is-unread { border-left: 4px solid #147c72; }.customer-notification-card > span { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; color: #fff; background: #1a8391; }.customer-notification-card h3,.customer-notification-card p { margin: 1px 0; }.customer-notification-card h3 { font-size: .76rem; }.customer-notification-card p,.customer-notification-card time { color: #71868e; font-size: .65rem; }
.customer-profile-grid { display: grid; grid-template-columns: minmax(280px,.8fr) minmax(0,1.2fr); gap: 11px; }.customer-profile-grid > .customer-card { padding: 14px; }.customer-profile-details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }.customer-profile-detail { padding: 8px; border: 1px solid #dae7e9; border-radius: 9px; background: #f8fbfb; }.customer-profile-detail small,.customer-profile-detail strong { display: block; }.customer-profile-detail small { color: #7a9097; font-size: .59rem; text-transform: uppercase; }.customer-profile-detail strong { margin-top: 3px; font-size: .72rem; }.customer-profile-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: end; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #dce8ea; }.customer-profile-form label { display: grid; gap: 4px; color: #5c737c; font-size: .62rem; font-weight: 850; }.customer-profile-form input { width: 100%; min-height: 36px; padding: 7px 9px; border: 1px solid #bdd1d7; border-radius: 8px; }.customer-profile-form button { min-height: 36px; }
.customer-inline-message { min-height: 16px; margin: 0; color: #687f88; font-size: .68rem; }.customer-inline-message.is-error { color: #a52e37; }.customer-inline-message.is-success { color: #087259; }

/* Dialogs */
.customer-dialog { width: min(1040px, 96vw); max-width: 96vw; max-height: 92vh; padding: 0; border: 0; border-radius: 20px; color: var(--cp-ink); background: #f5f9f9; box-shadow: 0 32px 90px rgba(8,38,48,.35); }
.customer-dialog::backdrop { background: rgba(7,35,44,.72); backdrop-filter: blur(5px); }
.customer-lr-dialog { width: min(1260px, 97vw); }
.customer-dialog-shell { display: grid; grid-template-rows: auto minmax(0,1fr) auto; max-height: 92vh; margin: 0; }
.customer-dialog-shell > header { display: flex; align-items: center; justify-content: space-between; padding: 12px 15px; border-bottom: 1px solid #cedee2; background: var(--look-card, #fff); }
.customer-dialog-shell > header h2 { margin: 3px 0 0; font-size: 1.15rem; }.customer-dialog-shell > header button { width: 34px; height: 34px; border: 0; border-radius: 50%; color: #fff; background: #bd4046; cursor: pointer; font-size: 1.2rem; }
.customer-dialog-body { min-height: 0; overflow: auto; padding: 14px; }
.customer-dialog-shell > footer { display: flex; justify-content: flex-end; gap: 7px; padding: 10px 14px; border-top: 1px solid #cedee2; background: var(--look-card, #fff); }.customer-dialog footer button.is-primary { color: #fff; border-color: #0e6c63; background: #147f74; }
.customer-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }.customer-form-grid .is-wide { grid-column: 1/-1; }.customer-form-grid textarea { resize: vertical; }
.customer-check-field { display: flex!important; align-items: center; align-self: end; min-height: 48px; padding: 9px; border: 1px solid #c7dadd; border-radius: 10px; background: var(--look-card, #fff); }.customer-check-field input { width: auto!important; min-height: 0!important; }
.customer-lr-summary { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 7px; margin-bottom: 11px; }.customer-lr-summary > div { padding: 9px; border: 1px solid #d1e1e4; border-radius: 10px; background: var(--look-card, #fff); }.customer-lr-summary small,.customer-lr-summary strong { display: block; }.customer-lr-summary small { color: #7b9198; font-size: .57rem; text-transform: uppercase; }.customer-lr-summary strong { margin-top: 3px; font-size: .72rem; }
.customer-lr-summary > .is-primary { border-color: #a8d5ce; background: #f1fbf8; }.customer-lr-summary > .is-primary strong { color: #0d665d; font-size: .82rem; }.customer-lr-summary > .is-estimate { border-color: #bfd2ec; background: #f4f8fe; }.customer-lr-summary > .is-estimate strong { color: #315f96; }
.customer-timeline { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 7px; }.customer-timeline-item { position: relative; min-height: 105px; padding: 10px; border: 1px solid #cae0dc; border-radius: 11px; background: #f5fbf8; }.customer-timeline-item::before { display: block; width: 10px; height: 10px; margin-bottom: 7px; border-radius: 50%; background: #18a17d; box-shadow: 0 0 0 4px #ddf4eb; content: ""; }.customer-timeline-item h4,.customer-timeline-item p { margin: 2px 0; }.customer-timeline-item h4 { font-size: .7rem; }.customer-timeline-item p,.customer-timeline-item time { color: #71878f; font-size: .59rem; }.customer-timeline-class { position: absolute; top: 8px; right: 8px; padding: 2px 6px; border-radius: 999px; color: #187657; background: #ddf4eb; font-size: .48rem; font-weight: 800; text-transform: uppercase; }.customer-timeline-day { display: inline-flex; margin-right: 4px; padding: 2px 5px; border-radius: 999px; color: #536d78; background: #e8eff1; font-size: .48rem; font-weight: 800; line-height: 1.2; text-transform: uppercase; }.customer-timeline-item.is-estimated { border-color: #cfdff4; background: #f7faff; }.customer-timeline-item.is-estimated::before { background: #4a79bd; box-shadow: 0 0 0 4px #e5eefb; }.customer-timeline-item.is-estimated .customer-timeline-class { color: #315f96; background: #e5eefb; }.customer-timeline-item.is-exception { border-color: #efd9ab; background: #fffaf1; }.customer-timeline-item.is-exception::before { background: #dc9226; box-shadow: 0 0 0 4px #fff0d2; }.customer-timeline-item.is-exception .customer-timeline-class { color: #8d5905; background: #fff0d2; }
.customer-search-section + .customer-search-section { margin-top: 14px; }.customer-search-section h3 { margin: 0 0 7px; font-size: .83rem; }
.customer-toast { position: fixed; right: 18px; bottom: 18px; z-index: 15000; max-width: min(420px,calc(100vw - 36px)); padding: 11px 14px; border-radius: 11px; color: #fff; background: #146e63; box-shadow: 0 17px 40px rgba(0,0,0,.25); font-size: .74rem; font-weight: 850; }.customer-toast.is-error { background: #ac343d; }

@media (max-width: 1180px) {
    .customer-app-shell { grid-template-columns: 205px minmax(0,1fr); }
    .customer-kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .customer-filter-card { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .customer-report-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .customer-job-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 820px) {
    .customer-auth-shell { grid-template-columns: 1fr; }
    .customer-auth-story { min-height: 310px; padding: 30px; }
    .customer-auth-story h1 { font-size: clamp(2.6rem, 12vw, 4.4rem); }.customer-auth-proof { display: none; }.customer-auth-logo { width: 190px; }
    .customer-auth-panel { padding: 18px; }.customer-auth-card { border-radius: 20px; }
    .customer-app-shell { grid-template-columns: 1fr; }
    .customer-sidebar { position: fixed; inset: 0 auto 0 0; width: 238px; transform: translateX(-105%); transition: transform .22s; }
    .customer-sidebar.is-open { transform: none; }.customer-mobile-menu { display: block; }
    .customer-topbar { padding: 9px 12px; }.customer-account-switch > button { min-width: 0; }.customer-account-switch > button > span:not(.customer-avatar), .customer-account-switch i { display: none; }
    .customer-workspace { padding: 14px 12px 28px; }.customer-dashboard-grid { grid-template-columns: 1fr 1fr; }.customer-card-wide { grid-column: 1/-1; }
    .customer-report-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.customer-profile-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .customer-main-shell { grid-template-rows: 58px minmax(0,1fr); }.customer-topbar { gap: 6px; }.customer-global-search kbd { display: none; }.customer-avatar { width: 31px; height: 31px; }
    .customer-view-heading { align-items: flex-start; flex-direction: column; }.customer-heading-actions { width: 100%; flex-wrap: wrap; }.customer-heading-actions > * { flex: 1; }
    .customer-kpi-grid, .customer-dashboard-grid, .customer-filter-card, .customer-job-grid, .customer-report-grid, .customer-form-grid { grid-template-columns: 1fr; }
    .customer-card-wide, .customer-form-grid .is-wide { grid-column: auto; }.customer-compact-row { grid-template-columns: 1fr auto; }.customer-compact-row > :nth-child(2) { grid-row: 2; }.customer-compact-row > :nth-child(3) { grid-column: 2; grid-row: 1; }
    .customer-report-controls { align-items: stretch; flex-direction: column; }.customer-date-pills { overflow-x: auto; }.customer-date-pills button { white-space: nowrap; }
    .customer-profile-details, .customer-lr-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }.customer-profile-form { grid-template-columns: 1fr; }
    .customer-dialog { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; }.customer-dialog-shell { height: 100vh; max-height: 100vh; }
}
@media print {
    .customer-sidebar, .customer-topbar, .customer-heading-actions, button { display: none!important; }
    .customer-app-shell, .customer-main-shell { display: block; height: auto; }.customer-workspace { overflow: visible; padding: 0; }.customer-view { display: none!important; }.customer-view.is-active { display: block!important; }
}
