:root {
  --ink: #17211f;
  --muted: #6e7976;
  --line: #e4e9e7;
  --paper: #ffffff;
  --canvas: #f5f7f6;
  --green: #153f37;
  --green-2: #226453;
  --mint: #e9f3ef;
  --orange: #e98a3d;
  --red: #d6574d;
  --shadow: 0 12px 40px rgba(24, 49, 42, .08);
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: "DM Sans", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.auth-hidden { display: none !important; }
.app-shell { min-height: 100vh; display: flex; --sidebar-width: 244px; }
.login-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, .9fr) minmax(500px, 1.1fr); background: white; }
.login-screen.auth-hidden { display: none; }
.login-visual { min-height: 100vh; padding: 42px 52px; display: flex; flex-direction: column; color: white; background: radial-gradient(circle at 20% 20%, rgba(72,143,117,.34), transparent 30%), linear-gradient(145deg, #0d332b, #174a3e); }
.login-brand { display: flex; align-items: center; gap: 12px; font: 800 20px Manrope; letter-spacing: -.65px; }
.login-visual-content { max-width: 520px; margin: auto 0; }
.login-kicker { color: #eeb071; font-size: 10px; font-weight: 800; letter-spacing: 1.6px; }
.login-visual-content h1 { max-width: 500px; margin: 13px 0 17px; font-size: clamp(35px, 4.2vw, 58px); line-height: 1.08; letter-spacing: -2px; }
.login-visual-content p { max-width: 470px; color: #b9cec8; font-size: 15px; line-height: 1.65; }
.login-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.login-demo-cta { min-height: 48px; padding: 0 21px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: #153a33; background: linear-gradient(145deg, #ffc074, #ed9650); font-size: 13px; font-weight: 900; text-decoration: none; box-shadow: 0 12px 30px rgba(5,28,23,.24); transition: transform .16s, box-shadow .16s; }
.login-demo-cta:hover { transform: translateY(-1px); box-shadow: 0 16px 34px rgba(5,28,23,.3); }
.login-hero-actions span { max-width: 240px; color: #a8c3bb; font-size: 11px; line-height: 1.45; }
.login-features { display: grid; gap: 11px; margin-top: 32px; color: #dce9e5; font-size: 12px; }
.login-features span::first-letter { color: #eeb071; }
.login-visual > small { color: #83a69c; font-size: 10px; }
.login-panel { display: grid; place-items: center; padding: 40px; }
.login-card { width: min(420px, 100%); }
.login-card h2 { margin: 7px 0 7px; font-size: 29px; letter-spacing: -.6px; }
.login-card > p { color: var(--muted); font-size: 12px; margin-bottom: 28px; }
.login-card > label { display: block; color: var(--ink); font-size: 10px; font-weight: 700; margin-bottom: 17px; }
.login-input { height: 47px; margin-top: 8px; padding: 0 12px; border: 1px solid #d9e0de; border-radius: 8px; display: flex; align-items: center; gap: 9px; transition: .15s; }
.login-input:focus-within { border-color: #4e8b78; box-shadow: 0 0 0 3px #edf5f2; }
.login-input svg { width: 17px; color: #7b8985; }
.login-input input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; font-size: 12px; }
.toggle-password { padding: 4px; border: 0; background: transparent; color: #7b8985; cursor: pointer; }
.login-options { display: flex; justify-content: space-between; align-items: center; margin: -2px 0 22px; }
.remember-option { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; cursor: pointer; }
.text-button { border: 0; background: transparent; color: var(--green-2); font-size: 10px; font-weight: 700; cursor: pointer; }
.login-submit { width: 100%; min-height: 48px; }
.login-divider { margin: 16px 0; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; }
.login-divider::before, .login-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.google-login-button, .apple-login-button, .microsoft-login-button { width: 100%; min-height: 46px; border: 1px solid #d8e1de; border-radius: 8px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--ink); background: white; font-size: 12px; font-weight: 800; cursor: pointer; transition: .16s; }
.apple-login-button { margin-top: 9px; color: #fff; border-color: #111; background: #111; }
.microsoft-login-button { margin-top: 9px; }
.google-login-button:hover, .apple-login-button:hover, .microsoft-login-button:hover { border-color: #b9ccc5; box-shadow: 0 8px 22px rgba(24,49,42,.07); }
.apple-login-button:hover { border-color: #111; background: #222; }
.google-login-button:disabled, .apple-login-button:disabled, .microsoft-login-button:disabled { opacity: .6; cursor: wait; box-shadow: none; }
.apple-mark { font-size: 18px; line-height: 1; }
.google-mark { width: 24px; height: 24px; border: 1px solid #dfe6e3; border-radius: 50%; display: grid; place-items: center; color: #4285f4; background: #fff; font: 800 13px Arial, sans-serif; }
.microsoft-mark { width: 20px; height: 20px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
.microsoft-mark i:nth-child(1) { background: #f25022; }
.microsoft-mark i:nth-child(2) { background: #7fba00; }
.microsoft-mark i:nth-child(3) { background: #00a4ef; }
.microsoft-mark i:nth-child(4) { background: #ffb900; }
.login-demo-access { margin-top: 16px; padding: 12px; border: 1px solid #d5e4de; border-radius: 9px; background: #f2f8f5; text-align: center; }
.login-demo-access strong, .login-demo-access small, .login-demo-access code { display: block; }
.login-demo-access strong { color: var(--green); font-size: 10px; }
.login-demo-access small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.login-demo-access button { margin-top: 9px; padding: 7px 10px; border: 1px solid #bcd4cb; border-radius: 6px; color: var(--green); background: white; font-size: 9px; font-weight: 800; cursor: pointer; }
.login-demo-access code { margin-top: 8px; color: #71807c; font: 8px "DM Sans", sans-serif; }
.login-error { display: none; padding: 10px 12px; margin: 0 0 16px; border-radius: 7px; color: #9b3e38; background: #fbe9e7; font-size: 10px; }
.login-error.show { display: block; }
.login-mobile-brand { display: none; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); padding: 28px 20px 22px; color: #dfeae7; background: #12362f; display: flex; flex-direction: column; z-index: 20; transition: width .22s ease, padding .22s ease; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 29px; color: white; text-decoration: none; font-family: Manrope, sans-serif; font-size: 16px; font-weight: 800; letter-spacing: -.55px; white-space: nowrap; }
.brand-mark { width: 38px; height: 38px; flex: none; border: 1px solid rgba(255,255,255,.2); border-radius: 11px; color: #153a33; background: linear-gradient(145deg, #ffc074, #ed9650); box-shadow: 0 7px 18px rgba(5,28,23,.22), inset 0 1px rgba(255,255,255,.36); display: grid; place-items: center; }
.brand-mark svg { width: 25px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark .logo-check { stroke: #fffaf4; stroke-width: 2.4; }
.brand-wordmark { display: inline-flex; align-items: baseline; }
.brand-wordmark b { color: #f3aa65; font: inherit; }
.login-mobile-brand .brand-wordmark b { color: #d97e36; }
.sidebar-collapse-toggle { position: absolute; top: 34px; right: -14px; width: 28px; height: 28px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; display: grid; place-items: center; color: white; background: #17483f; box-shadow: 0 8px 22px rgba(5,28,23,.24); cursor: pointer; transition: transform .22s ease, background .2s; }
.sidebar-collapse-toggle:hover { background: #226453; }
.sidebar-collapse-toggle svg { width: 16px; transition: transform .22s ease; }
.main-nav { display: grid; gap: 6px; }
.nav-group { display: grid; gap: 3px; }
.nav-item { width: 100%; border: 0; background: transparent; color: #b9cac5; padding: 12px 13px; border-radius: 9px; display: flex; align-items: center; gap: 13px; text-align: left; font-weight: 600; cursor: pointer; transition: .2s; }
.nav-item:focus { outline: none; }
.nav-item:focus-visible { outline: 2px solid rgba(238, 176, 113, .9); outline-offset: 2px; }
.nav-item:hover { color: white; background: rgba(255,255,255,.06); }
.nav-item.active { color: white; background: rgba(255,255,255,.11); }
.nav-item svg { width: 19px; }
.nav-badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: grid; place-items: center; font-size: 11px; background: #f0a45d; color: #173c34; }
.nav-submenu { position: relative; margin: 0 0 2px 22px; padding-left: 13px; }
.nav-submenu::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 7px; width: 1px; background: rgba(213, 231, 225, .22); }
.nav-subitem { min-height: 38px; padding: 8px 11px; gap: 10px; border-radius: 7px; font-size: 13px; }
.nav-subitem svg { width: 16px; }
.nav-subitem.active { color: white; background: rgba(255,255,255,.09); }
.inspection-nav-group.child-active > .nav-parent { color: white; background: rgba(255,255,255,.055); }
.inspection-nav-group.child-active > .nav-parent:not(.active) {
  color: #b9cac5;
  background: transparent;
  outline: 0;
  box-shadow: none;
}

@media (max-width: 700px) {
  .progress-drawings-card { padding: 16px; }
  .progress-drawings-heading { display: block; }
  .progress-drawings-actions { margin-top: 12px; }
  .progress-drawings-actions .button { width: 100%; }
  .progress-drawing-item { grid-template-columns: 1fr; }
  .progress-drawing-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .progress-drawing-buttons .button { width: 100%; }
  .finding-drawing-controls { grid-template-columns: 1fr; }
  .finding-drawing-controls .button { width: 100%; }
  .drawing-viewer-modal { width: calc(100vw - 12px); max-height: calc(100dvh - 12px); padding: 12px; }
  .drawing-viewer-toolbar { align-items: stretch; gap: 7px; }
  .drawing-page-controls, .drawing-zoom-controls { width: 100%; justify-content: center; }
  .drawing-viewer-toolbar .button { padding: 0 9px; font-size: 8px; }
  .drawing-canvas-stage { min-height: 230px; }
  .finding-drawing-previews, .report-finding-drawing-grid { grid-template-columns: 1fr; }
}
.inspection-nav-group.child-active > .nav-parent:not(.active):hover {
  color: white;
  background: rgba(255,255,255,.06);
}
.sidebar-bottom { margin-top: auto; }
.user-card { position: relative; border-top: 1px solid rgba(255,255,255,.11); margin-top: 13px; padding: 20px 7px 0; display: flex; align-items: center; gap: 10px; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #173c34; background: #efd1ac; font-size: 12px; font-weight: 800; }
.user-card strong, .user-card span { display: block; }
.user-card strong { color: white; font-size: 13px; }
.user-card span { color: #9eb4ae; font-size: 11px; margin-top: 3px; }
.user-card button { margin-left: auto; border: 0; background: transparent; color: #9eb4ae; cursor: pointer; }
.user-menu { position: absolute; left: 0; right: 0; bottom: 56px; display: none; padding: 12px; border-radius: 9px; color: var(--ink); background: white; box-shadow: 0 15px 45px rgba(0,0,0,.22); }
.user-menu.open { display: block; }
.user-menu > div { padding: 2px 3px 11px; border-bottom: 1px solid var(--line); }
.user-menu strong, .user-menu span { display: block; }
.user-menu strong { color: var(--ink); font-size: 11px; }
.user-menu span { color: var(--muted); font-size: 8px; word-break: break-all; }
.user-menu button { width: 100%; margin: 9px 0 0; padding: 7px 3px; display: flex; align-items: center; gap: 7px; color: var(--green); font-size: 10px; text-align: left; }
.app-shell.sidebar-collapsed { --sidebar-width: 78px; }
.app-shell.sidebar-collapsed .sidebar { width: 78px; padding: 28px 13px 20px; }
.app-shell.sidebar-collapsed .main { width: calc(100% - 78px); margin-left: 78px; }
.app-shell.sidebar-collapsed .brand { justify-content: center; padding: 0 0 29px; }
.app-shell.sidebar-collapsed .brand-wordmark,
.app-shell.sidebar-collapsed .nav-item:not(.nav-parent) > span,
.app-shell.sidebar-collapsed .nav-parent { font-size: 0; }
.app-shell.sidebar-collapsed .nav-item { justify-content: center; gap: 0; padding: 12px 10px; font-size: 0; }
.app-shell.sidebar-collapsed .nav-item svg { width: 20px; }
.app-shell.sidebar-collapsed .nav-badge { position: absolute; top: 5px; right: 5px; min-width: 17px; height: 17px; padding: 0 4px; font-size: 9px; }
.app-shell.sidebar-collapsed .nav-parent { position: relative; }
.app-shell.sidebar-collapsed .nav-submenu { margin: 4px 0 6px; padding: 0; display: grid; gap: 4px; }
.app-shell.sidebar-collapsed .nav-submenu::before { display: none; }
.app-shell.sidebar-collapsed .nav-subitem { min-height: 36px; padding: 9px; }
.app-shell.sidebar-collapsed .sidebar-bottom .nav-item { margin-bottom: 8px; }
.app-shell.sidebar-collapsed .user-card { justify-content: center; padding: 18px 0 0; }
.app-shell.sidebar-collapsed .user-card > div:not(.avatar):not(.user-menu),
.app-shell.sidebar-collapsed #user-menu-button { display: none; }
.app-shell.sidebar-collapsed .user-menu { left: 68px; right: auto; bottom: 0; width: 210px; }
.app-shell.sidebar-collapsed .sidebar-collapse-toggle svg { transform: rotate(180deg); }
.app-shell.sidebar-collapsed .sidebar-collapse-toggle { right: -13px; }
.user-menu #logout-button { color: #a44740; }
.user-menu button svg { width: 15px; }

.main { width: calc(100% - var(--sidebar-width)); margin-left: var(--sidebar-width); min-height: 100vh; transition: width .22s ease, margin-left .22s ease; }
.demo-mode-bar { min-height: 46px; padding: 8px 36px; color: #624018; background: #fff2df; border-bottom: 1px solid #efd4ad; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.demo-mode-bar[hidden] { display: none; }
.demo-mode-bar strong, .demo-mode-bar div > span { display: block; }
.demo-mode-bar strong { font-size: 10px; }
.demo-mode-bar div > span { margin-top: 2px; font-size: 9px; }
.demo-usage { display: flex; gap: 7px; flex: none; }
.demo-usage span { margin: 0 !important; padding: 5px 8px; border-radius: 99px; color: #624018; background: rgba(255,255,255,.7); font-size: 8px !important; font-weight: 800; }
.topbar { height: 68px; padding: 0 36px; background: white; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 15; }
.breadcrumbs { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.breadcrumbs span { color: var(--muted); }
.breadcrumbs b { color: #c8cfcd; font-weight: 400; }
.breadcrumbs strong { font-weight: 600; }
.top-actions { display: flex; align-items: center; gap: 18px; }
.new-inspection-button { white-space: nowrap; }
.button-plus { font-size: 18px; font-weight: 500; line-height: 1; margin-top: -2px; }
.sync-status { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 7px; }
.sync-status i { width: 7px; height: 7px; border-radius: 50%; background: #56a281; box-shadow: 0 0 0 3px #e7f2ed; }
.icon-button, .mobile-menu { position: relative; border: 0; background: transparent; cursor: pointer; }
.icon-button i { position: absolute; right: 1px; top: 0; width: 6px; height: 6px; border: 1px solid white; border-radius: 50%; background: var(--orange); }
.mobile-menu { display: none; }

.content { max-width: 1440px; margin: auto; padding: 34px 38px 48px; }
.view { display: none; }
.view.active { display: block; }
.inspection-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 25px; }
.eyebrow, .section-label { color: var(--green-2); font-size: 10px; font-weight: 800; letter-spacing: 1.2px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Manrope, sans-serif; }
.inspection-heading h1 { font-size: 30px; letter-spacing: -.7px; margin: 5px 0 5px; }
.inspection-heading p { color: var(--muted); font-size: 13px; margin: 0; }
.heading-actions { display: flex; gap: 10px; }
.finding-cta { color: var(--green); border-color: #b8d2c8; background: var(--mint); }
.finding-cta:hover { background: #deede7; }
.button { min-height: 42px; padding: 0 17px; border-radius: 8px; border: 1px solid transparent; font-size: 13px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 9px; transition: transform .15s, box-shadow .15s, background .15s; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: white; background: var(--green); box-shadow: 0 6px 15px rgba(21,63,55,.16); }
.button.primary:hover { background: #1a4b41; }
.button.secondary { border-color: #dbe2df; background: white; }
.button svg { width: 17px; }

.progress-card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; min-height: 104px; padding: 19px 24px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 2px 8px rgba(18,54,47,.025); margin-bottom: 18px; }
.progress-info { display: flex; align-items: center; gap: 16px; }
.progress-info[hidden] { display: none; }
.progress-info strong, .progress-info span { display: block; }
.progress-info strong { font-family: Manrope; font-size: 15px; }
.progress-info span { color: var(--muted); font-size: 12px; margin-top: 4px; }
.progress-info span b { color: var(--ink); }
.progress-ring { --size: 60px; width: var(--size); height: var(--size); border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--green-2) calc(var(--progress) * 1%), #e5ece9 0); position: relative; }
.progress-ring::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: white; }
.progress-ring span { color: var(--green); font-size: 12px; font-weight: 800; z-index: 1; margin: 0; }
.inspection-meta { display: flex; }
.inspection-meta > div { padding: 2px 27px; border-left: 1px solid var(--line); min-width: 150px; }
.inspection-meta span, .inspection-meta strong { display: block; }
.inspection-meta span { color: var(--muted); font-size: 10px; margin-bottom: 7px; }
.inspection-meta strong { font-size: 12px; font-weight: 700; }
.progress-card.metadata-only .inspection-meta { width: 100%; justify-content: flex-end; }
.progress-card.metadata-only .inspection-meta > div:first-child { border-left: 0; }
.progress-card.metadata-only { min-height: 0; }
.progress-card.metadata-only .inspection-meta { border-top: 0; padding-top: 0; }
.inspection-origin { display: inline-block; margin: 9px 0 0; padding: 5px 9px; border-radius: 12px; color: var(--green); background: var(--mint); font-size: 9px; font-weight: 700; }
.inspection-origin[hidden], .report-origin[hidden], #create-progress-follow-up[hidden], #convert-to-pre-delivery[hidden], #convert-to-completion[hidden] { display: none; }
.progress-history-panel { margin: 0 0 18px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.progress-history-panel[hidden] { display: none; }
.progress-history-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.progress-history-heading h2 { margin: 4px 0 4px; font-size: 16px; }
.progress-history-heading p { margin: 0; color: var(--muted); font-size: 9px; }
.progress-history-heading > strong { padding: 6px 9px; border-radius: 12px; color: var(--green); background: var(--mint); font-size: 9px; white-space: nowrap; }
.progress-history-list { display: grid; gap: 8px; margin-top: 14px; }
.progress-history-item { display: grid; grid-template-columns: 34px minmax(180px, 1fr) minmax(120px, .65fr) auto; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1px solid #dce5e2; border-radius: 9px; background: #fbfcfc; color: var(--ink); text-align: left; cursor: pointer; }
.progress-history-item:hover { border-color: #8eb8ad; background: #f3f8f6; }
.progress-history-item.current { border-color: var(--green-2); background: var(--mint); }
.progress-history-number { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: white; background: var(--green); font-size: 10px; font-weight: 800; }
.progress-history-main strong, .progress-history-main span, .progress-history-progress strong, .progress-history-progress span { display: block; }
.progress-history-main strong { font-size: 10px; }
.progress-history-main span, .progress-history-progress span { margin-top: 3px; color: var(--muted); font-size: 8px; }
.progress-history-progress { text-align: right; }
.progress-history-progress strong { color: var(--green); font-size: 10px; }
.progress-history-state { padding: 5px 8px; border-radius: 11px; color: #8d5b2b; background: #f7eadc; font-size: 8px; font-weight: 800; white-space: nowrap; }
.progress-history-item.current .progress-history-state { color: var(--green); background: white; }
.handover-panel { margin: 0 0 18px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.handover-panel[hidden], .report-contractor[hidden] { display: none; }
.handover-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.handover-heading h2 { margin: 4px 0 0; font-size: 17px; }
.handover-heading p { max-width: 720px; margin: 6px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.signature-status { padding: 5px 9px; border-radius: 12px; color: #8b5a28; background: #f7eadc; font-size: 9px; font-weight: 700; }
.signature-status.signed { color: var(--green); background: var(--mint); }
.handover-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 14px; }
.handover-grid label { position: relative; display: block; color: var(--muted); font-size: 10px; font-weight: 700; }
.handover-grid input { width: 100%; min-height: 38px; margin-top: 7px; padding: 0 11px; border: 1px solid #dbe2df; border-radius: 7px; background: white; color: var(--ink); }
.handover-grid label > small { position: absolute; right: 10px; bottom: 12px; color: var(--muted); font-size: 8px; }
.handover-closing-panel { margin-top: 18px; margin-bottom: 0; }
.contractor-relation-picker { padding: 15px; border: 1px solid #d8e3df; border-radius: 10px; background: #f4f8f6; }
.contractor-relation-picker label { display: block; color: var(--muted); font-size: 10px; font-weight: 700; }
.contractor-relation-picker select { width: 100%; min-height: 40px; margin-top: 7px; padding: 0 11px; border: 1px solid #cfdcd7; border-radius: 7px; background: white; color: var(--ink); }
.contractor-relation-picker .inline-add-button { margin-top: 9px; }
.contractor-relation-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 12px; overflow: hidden; border: 1px solid #dce4e1; border-radius: 9px; background: #dce4e1; }
.contractor-relation-summary > div { min-width: 0; padding: 12px; background: white; }
.contractor-relation-summary span, .contractor-relation-summary strong { display: block; }
.contractor-relation-summary span { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .35px; }
.contractor-relation-summary strong { margin-top: 4px; font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; }
.repair-term-field { max-width: 360px; margin-top: 14px; }
.repair-term-field label { color: var(--muted); font-size: 10px; font-weight: 700; }
.repair-term-field label > div { position: relative; margin-top: 7px; }
.repair-term-field input { width: 100%; min-height: 40px; padding: 0 90px 0 11px; border: 1px solid #d6e0dc; border-radius: 7px; color: var(--ink); background: white; }
.repair-term-field label > div span { position: absolute; right: 11px; top: 50%; color: var(--muted); font-size: 8px; transform: translateY(-50%); }
.signatures-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.signatures-grid .signature-block { min-width: 0; margin: 0; padding: 14px; border: 1px solid #dce4e1; border-radius: 10px; background: #fbfdfc; }
.signatures-grid .signature-block label { display: block; margin-top: 10px; color: var(--muted); font-size: 9px; font-weight: 700; }
.signatures-grid .signature-block input { width: 100%; min-height: 36px; margin-top: 6px; padding: 0 9px; border: 1px solid #d6e0dc; border-radius: 6px; color: var(--ink); background: white; }
.signatures-grid .clear-party-signature { margin-top: 9px; }
.construction-progress-card { margin: 0 0 18px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.construction-progress-card[hidden] { display: none; }
.progress-drawings-card { margin: 0 0 18px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.progress-drawings-card[hidden] { display: none; }
.progress-drawings-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.progress-drawings-heading h2 { margin: 5px 0 4px; font-size: 19px; }
.progress-drawings-heading p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.progress-drawings-actions { flex: 0 0 auto; }
.progress-drawings-list { display: grid; gap: 8px; margin-top: 17px; }
.progress-drawing-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid #d8e2de; border-radius: 9px; background: #f8fbfa; }
.progress-drawing-main { min-width: 0; display: flex; align-items: center; gap: 11px; }
.progress-drawing-icon { width: 37px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 6px; color: #b4483c; background: #faebe8; font-size: 9px; font-weight: 800; }
.progress-drawing-main div { min-width: 0; }
.progress-drawing-main strong { display: block; overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.progress-drawing-main span { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.progress-drawing-main small { display: block; margin-top: 4px; overflow: hidden; color: #526a63; font-size: 9px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.progress-drawing-buttons { display: flex; gap: 7px; }
.progress-drawing-buttons .button { min-height: 34px; padding: 0 12px; }
.progress-drawing-buttons .remove-progress-drawing { color: #a74438; }
.progress-drawings-empty { margin: 15px 0 0; padding: 13px; border: 1px dashed #c7d5d0; border-radius: 8px; color: var(--muted); background: #fbfdfc; font-size: 9px; text-align: center; }
.progress-drawings-empty[hidden] { display: none; }
.construction-progress-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.construction-progress-heading h2 { margin: 4px 0 5px; font-size: 18px; }
.construction-progress-heading p { max-width: 760px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.construction-progress-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.construction-progress-settings { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1.2fr; gap: 12px; margin-top: 19px; padding: 15px; border: 1px solid #dce5e2; border-radius: 10px; background: #f7faf9; }
.construction-progress-settings label, .construction-import-source { display: flex; flex-direction: column; gap: 7px; color: var(--muted); font-size: 9px; font-weight: 700; }
.construction-progress-settings input { width: 100%; min-height: 39px; padding: 0 11px; border: 1px solid #d4dfdc; border-radius: 7px; background: white; color: var(--ink); font: inherit; font-size: 11px; }
.construction-progress-settings .currency-input { position: relative; }
.construction-progress-settings .currency-input span { position: absolute; top: 50%; left: 11px; transform: translateY(-50%); color: var(--muted); font-size: 11px; }
.construction-progress-settings .currency-input input { padding-left: 26px; }
.construction-import-source { justify-content: center; padding: 0 4px; }
.construction-import-source strong { color: var(--ink); font-size: 10px; overflow-wrap: anywhere; }
.construction-progress-dashboard { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 24px; margin-top: 18px; }
.construction-progress-circle { --progress: 0; width: 138px; height: 138px; padding: 11px; border-radius: 50%; background: conic-gradient(var(--green) calc(var(--progress) * 1%), #e7eeeb 0); box-shadow: inset 0 0 0 1px rgba(22,61,53,.05); }
.construction-progress-circle > div { display: flex; width: 100%; height: 100%; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; background: white; text-align: center; }
.construction-progress-circle strong { font-family: Manrope, sans-serif; font-size: 29px; line-height: 1; }
.construction-progress-circle span { max-width: 70px; margin-top: 7px; color: var(--muted); font-size: 8px; line-height: 1.3; text-transform: uppercase; letter-spacing: .05em; }
.construction-progress-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.construction-progress-kpis > div { min-height: 88px; padding: 15px; border: 1px solid #dce5e2; border-radius: 9px; background: #fbfcfc; }
.construction-progress-kpis span, .construction-progress-kpis strong, .construction-progress-kpis small { display: block; }
.construction-progress-kpis span { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .04em; }
.construction-progress-kpis strong { margin-top: 8px; font-family: Manrope, sans-serif; font-size: 17px; }
.construction-progress-kpis small { margin-top: 5px; color: var(--muted); font-size: 8px; }
.construction-schedule-comparison { display: grid; grid-template-columns: 1fr; gap: 6px; margin-top: 18px; padding: 14px 16px; border-radius: 9px; background: #edf5f2; }
.construction-schedule-comparison > div { display: flex; justify-content: space-between; color: #31574f; font-size: 9px; }
.construction-schedule-comparison i { display: block; height: 8px; overflow: hidden; border-radius: 99px; background: #d4e1dd; }
.construction-schedule-comparison i b { display: block; height: 100%; border-radius: inherit; background: var(--green); transition: width .2s ease; }
.construction-schedule-comparison i.time b { background: #f1a33a; }
.construction-work-table-wrap { margin-top: 18px; overflow-x: auto; border: 1px solid #dce5e2; border-radius: 9px; }
.construction-work-table { width: 100%; min-width: 940px; border-collapse: collapse; }
.construction-work-table th { padding: 10px 9px; background: #f2f6f5; color: #60736e; font-size: 8px; text-align: left; text-transform: uppercase; letter-spacing: .035em; }
.construction-work-table td { padding: 8px 7px; border-top: 1px solid #e3e9e7; color: var(--ink); font-size: 9px; vertical-align: middle; }
.construction-work-table input { width: 100%; min-height: 34px; padding: 0 8px; border: 1px solid #d7e0dd; border-radius: 6px; background: white; color: var(--ink); font: inherit; }
.construction-work-table input[type="number"] { min-width: 86px; }
.construction-work-table input[type="date"] { min-width: 122px; }
.construction-work-table .progress-entry { position: relative; }
.construction-work-table .progress-entry input { padding-right: 23px; }
.construction-work-table .progress-entry span { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); color: var(--muted); }
.construction-work-table .work-share, .construction-work-table .work-completed { white-space: nowrap; font-weight: 700; }
.construction-work-table .remove-construction-item { width: 30px; height: 30px; border: 1px solid #ead8d4; border-radius: 6px; background: #fff8f6; color: #a74736; cursor: pointer; }
.construction-progress-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 13px; }
.construction-progress-footer p { margin: 0; color: var(--muted); font-size: 9px; }
.construction-invoices { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.construction-invoices-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.construction-invoices-heading h3 { margin: 4px 0 5px; font-size: 15px; }
.construction-invoices-heading p { max-width: 780px; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.construction-invoice-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 15px; }
.construction-invoice-kpis > div { padding: 12px 13px; border: 1px solid #dce5e2; border-radius: 8px; background: #f8faf9; }
.construction-invoice-kpis span, .construction-invoice-kpis strong { display: block; }
.construction-invoice-kpis span { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .04em; }
.construction-invoice-kpis strong { margin-top: 6px; font: 800 14px Manrope, sans-serif; }
.construction-invoice-kpis strong.negative { color: #a8433c; }
.construction-invoice-table-wrap { margin-top: 13px; overflow-x: auto; border: 1px solid #dce5e2; border-radius: 9px; }
.construction-invoice-table { width: 100%; min-width: 1320px; border-collapse: collapse; }
.construction-invoice-table th { padding: 10px 8px; background: #f2f6f5; color: #60736e; font-size: 8px; text-align: left; text-transform: uppercase; letter-spacing: .035em; }
.construction-invoice-table td { padding: 8px 7px; border-top: 1px solid #e3e9e7; font-size: 9px; vertical-align: middle; }
.construction-invoice-table input, .construction-invoice-table select { width: 100%; min-height: 34px; padding: 0 8px; border: 1px solid #d7e0dd; border-radius: 6px; background: white; color: var(--ink); font: inherit; }
.construction-invoice-table input[type="date"] { min-width: 122px; }
.construction-invoice-table select { min-width: 185px; }
.construction-invoice-table .currency-input { position: relative; min-width: 115px; }
.construction-invoice-table .currency-input span { position: absolute; left: 9px; top: 50%; color: var(--muted); transform: translateY(-50%); }
.construction-invoice-table .currency-input input { padding-left: 23px; }
.construction-invoice-table .invoice-cumulative { white-space: nowrap; font-weight: 800; }
.construction-invoice-table input:disabled { color: #89938f; background: #f0f3f2; }
.invoice-advice { display: inline-flex; min-width: 105px; padding: 6px 8px; border-radius: 11px; flex-direction: column; align-items: flex-start; gap: 2px; font-size: 8px; font-weight: 800; white-space: nowrap; }
.invoice-advice small { font-size: 7px; font-weight: 700; }
.invoice-advice.payable { color: #34785e; background: #e4f1ec; }
.invoice-advice.partial { color: #8d5b2b; background: #f7eadc; }
.invoice-advice.not-payable { color: #a8433c; background: #f9e6e4; }
.construction-invoice-disclaimer { margin: 9px 0 0; color: var(--muted); font-size: 8px; line-height: 1.45; }
.signature-block { margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); }
.signature-block > div:first-child strong, .signature-block > div:first-child span { display: block; }
.signature-block > div:first-child strong { font-size: 11px; }
.signature-block > div:first-child span { margin-top: 3px; color: var(--muted); font-size: 9px; }
#contractor-signature, #client-signature, #inspector-signature { width: 100%; height: 120px; margin-top: 10px; border: 1px dashed #aebdb7; border-radius: 8px; background: white; cursor: crosshair; touch-action: none; }
.signature-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }

.workspace { display: grid; grid-template-columns: minmax(440px, .94fr) minmax(400px, .86fr); gap: 18px; align-items: start; }
.checklist-panel, .details-panel { background: white; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.panel-heading { padding: 21px 23px 18px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.panel-heading h2, .details-heading h2 { margin: 0 0 4px; font-size: 17px; letter-spacing: -.25px; }
.panel-heading p { color: var(--muted); font-size: 11px; margin: 0; }
.panel-actions { display: flex; gap: 7px; }
.filter-button { background: white; border: 1px solid var(--line); border-radius: 7px; padding: 8px 11px; font-size: 11px; display: flex; gap: 6px; align-items: center; cursor: pointer; }
.filter-button svg { width: 14px; }
.category { border-bottom: 1px solid var(--line); }
.category:last-child { border-bottom: 0; }
.category-header { width: 100%; min-height: 74px; padding: 14px 20px; display: flex; align-items: center; gap: 13px; border: 0; background: white; cursor: pointer; text-align: left; }
.category-header:hover { background: #fafcfb; }
.category-icon { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.category-icon svg { width: 19px; }
.exterior { background: #e5f1ed; color: #246651; }
.interior { background: #f5ecdf; color: #9b6739; }
.install { background: #e9edf5; color: #516889; }
.sustainability { background: #eaf2df; color: #668847; }
.category-title { min-width: 160px; }
.category-title strong { display: block; }
.category-title strong { font-family: Manrope; font-size: 13px; }
.chevron { width: 16px; color: #8d9794; transition: transform .2s; }
.category.open .chevron { transform: rotate(180deg); }
.category-items { display: none; border-top: 1px solid var(--line); background: #fbfcfc; padding: 7px 0; }
.category.open .category-items { display: block; }
.inspection-item { border: 0; width: 100%; background: transparent; min-height: 62px; padding: 9px 20px 9px 27px; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 10px; text-align: left; cursor: pointer; border-left: 3px solid transparent; }
.inspection-item:hover { background: #f7faf9; }
.inspection-item.active { background: #eef5f2; border-left-color: var(--green-2); }
.inspection-item strong, .inspection-item small { display: block; }
.inspection-item strong { font-size: 12px; font-weight: 600; }
.inspection-item small { color: var(--muted); font-size: 10px; margin-top: 4px; }
.status-check { width: 19px; height: 19px; border-radius: 50%; background: #4f9278; color: white; display: grid; place-items: center; font-size: 10px; font-weight: 800; }
.status-check.empty { border: 1.5px solid #cbd4d1; background: white; }
.condition { border-radius: 10px; padding: 4px 9px; font-size: 9px; font-weight: 700; }
.condition.good { color: #34785e; background: #e4f1ec; }
.condition.attention { color: #a85c24; background: #fbeadd; }
.condition.pending { color: #7c8783; background: #edf0ef; }
.condition.nen-1 { color: white; background: #2f8d48; }
.condition.nen-2 { color: white; background: #28c900; }
.condition.nen-3 { color: white; background: #ffa500; }
.condition.nen-4 { color: white; background: #ff8700; }
.condition.nen-5 { color: white; background: #ff5a3d; }
.condition.nen-6 { color: white; background: #f90808; }
.condition.nen-8, .condition.nen-9 { color: white; background: #84cbe4; }

.details-panel { position: sticky; top: 86px; box-shadow: var(--shadow); }
.details-heading { padding: 20px 22px 16px; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); }
.details-heading h2 { margin-top: 5px; }
.close-details { display: none; border: 0; background: transparent; font-size: 24px; color: var(--muted); cursor: pointer; }
.condition-select { padding: 16px 22px; border-bottom: 1px solid var(--line); }
.condition-select label, .findings-heading label, .modal label { display: block; font-size: 10px; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.condition-select label small { margin-left: 4px; font-weight: 500; }
.condition-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.condition-options button { min-height: 48px; display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: white; border-radius: 7px; padding: 7px 8px; font-size: 9px; font-weight: 600; cursor: pointer; text-align: left; }
.condition-options button b { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 50%; color: white; background: #2f8d48; font-size: 10px; }
.condition-options button:nth-child(2) b { background: #28c900; }
.condition-options button:nth-child(3) b { background: #ffa500; }
.condition-options button:nth-child(4) b { background: #ff8700; }
.condition-options button:nth-child(5) b { background: #ff5a3d; }
.condition-options button:nth-child(6) b { background: #f90808; }
.condition-options .condition-not-applicable { grid-column: 1 / -1; }
.condition-options .condition-not-applicable b { width: auto; min-width: 38px; padding: 0 7px; background: #6f7b78; }
.condition-options button.selected { border-color: var(--green); color: var(--green); background: var(--mint); box-shadow: 0 0 0 1px var(--green) inset; }
.condition.not-applicable { color: #52615e; background: #e6ecea; }
.nen-applicability-field { display: grid; gap: 6px; margin: 14px 0; }
.nen-calculation-section.nen-not-applicable .nen-calculation-grid { opacity: .48; }
.nen-help { margin: 9px 0 0; color: var(--muted); font-size: 8px; line-height: 1.45; }
.severity i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #57a184; margin-right: 6px; }
.findings-heading { padding: 16px 22px 10px; display: flex; justify-content: space-between; align-items: center; }
.findings-heading > div { display: flex; align-items: center; gap: 7px; }
.findings-heading label { margin: 0; color: var(--ink); font-size: 11px; }
.count-badge { width: 19px; height: 19px; display: grid; place-items: center; background: #edf1ef; border-radius: 50%; font-size: 9px; }
.findings-heading .add-finding-button { min-height: 34px; padding: 0 11px; color: white; font-size: 10px; }
.findings-list { padding: 0 22px; max-height: 465px; overflow: auto; }
.empty-findings { min-height: 145px; border: 1px dashed #ced8d4; border-radius: 9px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 25px; color: var(--muted); }
.empty-findings strong { color: var(--ink); font-size: 11px; margin-bottom: 5px; }
.empty-findings span { max-width: 220px; font-size: 9px; line-height: 1.5; }
.finding { border: 1px solid var(--line); border-radius: 9px; padding: 13px 14px; margin-bottom: 10px; }
.finding[hidden] { display: none; }
.finding-review { margin-top: 12px; padding: 10px; border-radius: 8px; background: #f3f6f5; }
.finding-review label { display: block; margin: 0 0 6px; color: var(--muted); font-size: 9px; font-weight: 700; }
.finding-review select, .finding-review textarea { width: 100%; border: 1px solid #d5dedb; border-radius: 6px; background: white; color: var(--ink); font: inherit; }
.finding-review select { min-height: 34px; padding: 0 9px; }
.finding-review textarea { min-height: 52px; margin-top: 7px; padding: 8px 9px; resize: vertical; }
.finding-status-badge { padding: 4px 8px; border-radius: 10px; font-size: 8px; font-weight: 800; }
.finding-status-badge.open { color: #a85c24; background: #fbeadd; }
.finding-status-badge.resolved { color: #34785e; background: #e4f1ec; }
.finding-status-badge.partly { color: #516889; background: #e9edf5; }
.finding-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.finding-actions { display: flex; gap: 6px; align-items: center; }
.severity { border-radius: 10px; padding: 4px 8px; font-size: 9px; font-weight: 700; display: inline-flex; align-items: center; white-space: nowrap; }
.severity i { margin-right: 5px; width: 5px; height: 5px; }
.severity.urgent { color: #a8433c; background: #f9e6e4; }
.severity.urgent i { background: var(--red); }
.severity.planned { color: #9b622f; background: #f9ecdf; }
.severity.planned i { background: var(--orange); }
.severity.advice { color: #456b87; background: #e7f0f5; }
.severity.advice i { background: #5b8da9; }
.more-button, .edit-finding-button, .delete-finding-button { border: 0; background: transparent; color: #5f756f; cursor: pointer; }
.edit-finding-button, .delete-finding-button { padding: 5px 8px; border-radius: 6px; font-size: 8px; font-weight: 800; }
.edit-finding-button { background: #eef5f2; }
.edit-finding-button:hover { color: #174c3f; background: #dfece7; }
.delete-finding-button { color: #8c4a3c; background: #fff1ed; }
.delete-finding-button:hover { color: #6f2418; background: #ffe2db; }
.finding h3 { font-size: 12px; margin: 9px 0 5px; }
.finding p { color: var(--muted); font-size: 10px; line-height: 1.5; margin-bottom: 11px; }
.finding-nen-meta { margin: -3px 0 10px; padding: 6px 8px; border-radius: 6px; color: var(--green); background: var(--mint); font-size: 8px; font-weight: 700; }
.finding-nen-meta[hidden] { display: none; }
.photo-row { display: flex; gap: 7px; margin-bottom: 11px; }
.photo-placeholder { width: 61px; height: 52px; border-radius: 6px; overflow: hidden; position: relative; display: grid; place-items: end center; background: linear-gradient(145deg, #a9b8b3, #536e65); }
.window-photo::before { content: ""; position: absolute; inset: 6px 13px 8px; border: 3px solid #e2d0b8; background: linear-gradient(90deg, #819790 48%, #c1ccc8 49% 52%, #819790 53%); box-shadow: 0 9px 0 -6px #704c3d; }
.photo-placeholder span { position: relative; z-index: 1; width: 100%; padding: 3px; text-align: center; background: rgba(0,0,0,.35); color: white; font-size: 7px; }
.add-photo { width: 52px; height: 52px; border-radius: 6px; border: 1px dashed #c4ceca; background: #fafcfb; color: var(--green-2); cursor: pointer; }
.add-photo svg { width: 17px; }
.cost-row { padding-top: 10px; border-top: 1px solid #edf0ef; display: flex; justify-content: space-between; font-size: 9px; color: var(--muted); }
.cost-row strong { color: var(--ink); }
.details-footer { border-top: 1px solid var(--line); padding: 15px 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: #fbfcfc; }
.details-footer span, .details-footer strong { display: block; }
.details-footer span { color: var(--muted); font-size: 9px; margin-bottom: 3px; }
.details-footer strong { font-size: 11px; }
.details-footer .button { min-height: 38px; font-size: 10px; padding: 0 13px; }

.placeholder-view { min-height: calc(100vh - 68px); display: none; align-items: center; justify-content: center; }
.placeholder-view.active { display: flex; }
.placeholder-card { width: min(560px, 100%); padding: 55px; background: white; border: 1px solid var(--line); border-radius: 16px; text-align: center; box-shadow: var(--shadow); }
.placeholder-card > span { margin: auto; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: var(--green-2); font: 800 18px Manrope; }
.placeholder-card h1 { margin: 20px 0 8px; }

.report-settings-view { display: none; padding: 34px 40px 60px; }
.report-settings-view.active { display: block; }
.report-settings-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.report-settings-heading h1 { margin: 5px 0 7px; }
.report-settings-heading p { max-width: 720px; margin: 0; color: var(--muted); }
.report-settings-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; align-items: start; }
.report-template-sidebar, .report-editor-card { background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.report-template-sidebar { padding: 20px; position: sticky; top: 88px; }
.report-template-sidebar > strong { font: 800 14px Manrope; color: var(--ink); }
.report-template-sidebar > p { margin: 7px 0 17px; color: var(--muted); font-size: 11px; line-height: 1.55; }
#report-template-types { display: grid; gap: 7px; }
.report-template-type { width: 100%; padding: 11px 12px; border: 1px solid transparent; border-radius: 8px; background: #f6f8f7; color: var(--ink); text-align: left; font: 700 11px Manrope; cursor: pointer; }
.report-template-type:hover { border-color: #bad7ca; }
.report-template-type.active { background: var(--mint); border-color: #91c5ad; color: var(--green); }
.report-settings-main { display: grid; gap: 20px; }
.report-editor-card { padding: 25px; }
.report-editor-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }
.report-editor-heading h2 { margin: 4px 0 0; font-size: 22px; }
.report-editor-card > p { color: var(--muted); font-size: 11px; line-height: 1.6; margin: 10px 0 17px; }
.saved-indicator { flex: none; padding: 6px 9px; border-radius: 99px; background: #eef4f1; color: var(--green); font-size: 9px; font-weight: 800; }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 5px; padding: 8px; border: 1px solid var(--line); border-bottom: 0; border-radius: 9px 9px 0 0; background: #f7f9f8; }
.editor-toolbar button { min-height: 31px; padding: 0 10px; border: 1px solid var(--line); border-radius: 5px; background: white; color: var(--ink); font-size: 10px; cursor: pointer; }
.editor-toolbar button:hover { border-color: var(--green-2); color: var(--green); }
.rich-text-editor { min-height: 230px; padding: 18px; border: 1px solid var(--line); border-radius: 0 0 9px 9px; background: white; color: var(--ink); font-size: 12px; line-height: 1.75; outline: none; }
.rich-text-editor:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(42, 121, 85, .08); }
.rich-text-editor p:first-child, .rich-text-editor h3:first-child { margin-top: 0; }
.rich-text-editor h3 { margin: 18px 0 7px; font-size: 14px; }
.report-editor-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 16px; }
.terms-editor-card textarea { width: 100%; min-height: 420px; resize: vertical; padding: 16px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); font: 10px/1.55 Arial, sans-serif; }
.terms-editor-card textarea:focus { border-color: var(--green-2); outline: none; box-shadow: 0 0 0 3px rgba(42, 121, 85, .08); }
.terms-ai-disclaimer { margin: 10px 0 0; padding: 11px 13px; border: 1px solid #f4d2a8; border-radius: 10px; background: #fff8ef; color: #6d4a1e; font-size: 12px; line-height: 1.5; }
.terms-ai-disclaimer strong { color: #3b2a12; }
.wws-template-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 15px; }
.wws-template-tabs button { min-height: 36px; padding: 0 13px; border: 1px solid var(--line); border-radius: 8px; background: #f7f9f8; color: var(--ink); font-size: 11px; font-weight: 800; cursor: pointer; }
.wws-template-tabs button.active { border-color: #8ac6b0; background: #eef8f4; color: var(--green); }
.wws-template-current { display: flex; justify-content: space-between; gap: 14px; align-items: flex-end; margin: 0 0 8px; }
.wws-template-current strong { font-size: 14px; color: var(--ink); }
.wws-template-current span { color: var(--muted); font-size: 11px; }
.wws-rich-text-editor { min-height: 230px; }
.clients-view { display: none; padding: 34px 40px 60px; }
.clients-view.active { display: block; }
.quotes-view { display: none; padding: 34px 40px 60px; }
.quotes-view.active { display: block; }
.quotes-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 24px; }
.quotes-heading h1 { margin: 5px 0 7px; }
.quotes-heading p { margin: 0; color: var(--muted); }
.quote-workspace { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 20px; align-items: start; }
.quote-form-card, .quote-preview-card, .quote-email-card, .quote-archive-card { border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 5px 18px rgba(34,58,50,.04); }
.quote-form-card { padding: 22px; }
.quote-form-heading, .quote-email-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.quote-form-heading h2, .quote-email-heading h2 { margin: 4px 0 0; font-size: 17px; }
.quote-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 16px; align-items: start; }
.quote-form-grid > label:not(.quote-checkbox) { min-width: 0; margin: 0; display: grid; grid-template-rows: 17px auto; align-content: start; color: #66746f; font-size: 9px; font-weight: 700; line-height: 1.2; }
.quote-form-grid > .quote-client-label { grid-template-rows: 17px auto auto; }
.quote-client-label .inline-add-button { width: fit-content; margin-top: 8px; }
.quote-form-grid .wide { grid-column: 1 / -1; }
.quote-form-section-heading { margin-top: 4px; padding: 12px 0 2px; display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); }
.quote-form-section-heading:first-child { margin-top: -6px; padding-top: 0; border-top: 0; }
.quote-form-section-heading > span { width: 25px; height: 25px; flex: none; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--green); font-size: 9px; font-weight: 800; }
.quote-form-section-heading strong, .quote-form-section-heading small { display: block; }
.quote-form-section-heading strong { color: var(--ink); font-size: 11px; }
.quote-form-section-heading small { margin-top: 2px; color: var(--muted); font-size: 8px; font-weight: 500; }
.quote-form-grid input:not([type="checkbox"]), .quote-form-grid select, .quote-form-grid textarea {
  width: 100%;
  min-width: 0;
  margin: 0;
  border: 1px solid #d7e1dd;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.quote-form-grid input:not([type="checkbox"]), .quote-form-grid select { height: 43px; padding: 0 12px; }
.quote-form-grid textarea { min-height: 88px; padding: 11px 12px; line-height: 1.5; resize: vertical; }
.quote-form-grid input:focus, .quote-form-grid select:focus, .quote-form-grid textarea:focus { border-color: #58917f; box-shadow: 0 0 0 3px #edf5f2; }
.quote-form-grid input::placeholder, .quote-form-grid textarea::placeholder { color: #a4afab; }
.quote-objectdata-lookup { min-height: 62px; margin: 1px 0 0; padding: 11px 13px; border-radius: 8px; }
.quote-objectdata-lookup .button { min-width: 118px; }
.quote-form-grid > .objectdata-status { margin: -4px 0 0; }
.quote-travel-calculation { min-height: 62px; padding: 11px 13px; border: 1px solid #d4e2dc; border-radius: 8px; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #f3f8f6; }
.quote-travel-calculation strong, .quote-travel-calculation small { display: block; }
.quote-travel-calculation strong { color: var(--ink); font-size: 10px; }
.quote-travel-calculation small { margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.quote-travel-calculation small.error { color: #a44136; }
.currency-input { position: relative; }
.currency-input span { position: absolute; left: 12px; top: 50%; z-index: 1; color: var(--muted); transform: translateY(-50%); pointer-events: none; }
.currency-input input { padding-left: 30px !important; }
.quote-form-grid .currency-input input { padding-left: 29px; }
.quote-checkbox { min-height: 58px; margin: 0; padding: 11px 13px; border: 1px solid #d4e2dc; border-radius: 8px; display: flex !important; align-items: center; gap: 10px; background: #f7faf9; cursor: pointer; }
.quote-checkbox input { width: 17px; height: 17px; margin: 0; accent-color: var(--green); }
.quote-checkbox strong, .quote-checkbox small { display: block; }
.quote-checkbox strong { color: var(--ink); font-size: 10px; }
.quote-checkbox small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.quote-form-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); }
.heading-actions > [hidden] { display: none !important; }
.quote-preview-card { position: sticky; top: 20px; overflow: hidden; }
.quote-preview-top { min-height: 88px; padding: 15px 22px; color: white; background: var(--green); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.quote-preview-top.logo-right { flex-direction: row-reverse; }
.quote-preview-title { min-width: 0; display: flex; align-items: center; gap: 12px; }
.quote-preview-top.logo-right .quote-preview-title { flex-direction: row-reverse; }
.quote-preview-title img { width: 62px; height: 42px; padding: 5px; border-radius: 6px; object-fit: contain; background: white; }
.quote-preview-top span { color: #f3aa65; font-size: 10px; font-weight: 800; letter-spacing: 1.5px; }
.quote-preview-top strong { font-size: 9px; }
.quote-preview-company, .quote-preview-client, .quote-preview-service { padding: 17px 22px; border-bottom: 1px solid var(--line); }
.quote-preview-company strong, .quote-preview-company span, .quote-preview-client span, .quote-preview-client strong, .quote-preview-client small, .quote-preview-service span, .quote-preview-service strong { display: block; }
.quote-preview-company strong { color: var(--green); font-size: 12px; }
.quote-preview-company span, .quote-preview-client span, .quote-preview-service span { margin-top: 3px; color: var(--muted); font-size: 8px; }
.quote-preview-client strong, .quote-preview-service strong { margin-top: 5px; font-size: 11px; }
.quote-preview-client small { margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.quote-preview-service p { margin: 6px 0 0; color: #4b5a54; font-size: 8px; line-height: 1.5; }
.quote-preview-breakdown { padding: 12px 22px; }
.quote-preview-breakdown div { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; color: var(--muted); font-size: 8px; }
.quote-preview-breakdown strong { color: var(--ink); }
.quote-preview-total { padding: 16px 22px; color: white; background: #1b4b40; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.quote-preview-total span { color: #c4d7d1; font-size: 8px; }
.quote-preview-total strong { font-size: 18px; }
.quote-preview-card > small { display: block; padding: 12px 22px 17px; color: var(--muted); font-size: 7px; line-height: 1.5; }
.quote-email-card { margin-top: 20px; padding: 22px; }
.quote-email-card label { display: grid; gap: 7px; margin-bottom: 14px; color: #66746f; font-size: 9px; font-weight: 700; }
.quote-email-card input, .quote-email-card textarea { width: 100%; margin: 0; padding: 11px 12px; border: 1px solid #d7e1dd; border-radius: 8px; color: var(--ink); background: white; outline: none; }
.quote-email-card input { height: 43px; }
.quote-email-card textarea { min-height: 190px; line-height: 1.55; resize: vertical; }
.quote-email-card input:focus, .quote-email-card textarea:focus { border-color: #58917f; box-shadow: 0 0 0 3px #edf5f2; }
.quote-archive-card { margin-top: 20px; padding: 22px; }
.quote-archive-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.quote-archive-heading h2 { margin: 4px 0 5px; font-size: 17px; }
.quote-archive-heading p { margin: 0; color: var(--muted); font-size: 9px; }
.quote-archive-heading label { width: min(330px, 100%); color: var(--muted); font-size: 8px; font-weight: 700; }
.quote-archive-heading input { width: 100%; height: 40px; margin-top: 5px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; outline: none; }
.quote-archive-list { display: grid; gap: 10px; margin-top: 17px; }
.quote-archive-item { padding: 14px 15px; border: 1px solid var(--line); border-radius: 9px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; align-items: center; gap: 18px; background: #fbfcfc; }
.quote-archive-main strong, .quote-archive-main span, .quote-archive-meta span, .quote-archive-meta strong { display: block; }
.quote-archive-main strong { font-size: 11px; }
.quote-archive-main span, .quote-archive-meta span { margin-top: 3px; color: var(--muted); font-size: 8px; }
.quote-archive-meta strong { margin-top: 3px; color: var(--green); font-size: 11px; }
.quote-archive-actions { display: flex; gap: 7px; }
.quote-archive-actions button { min-height: 34px; padding: 0 10px; border: 1px solid #d2ded9; border-radius: 7px; color: var(--green); background: white; font-size: 8px; font-weight: 800; cursor: pointer; }
.quote-archive-actions .quote-archive-open { color: white; border-color: var(--green); background: var(--green); }
.quote-archive-empty { padding: 35px 15px; border: 1px dashed #c9d5d1; border-radius: 9px; color: var(--muted); text-align: center; font-size: 9px; }
.clients-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 24px; }
.clients-heading h1 { margin: 5px 0 7px; }
.clients-heading p { margin: 0; color: var(--muted); }
.clients-toolbar { padding: 16px 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.clients-search { width: min(520px, 100%); margin: 0; display: block; color: var(--muted); font-size: 9px; font-weight: 700; }
.clients-search input { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: white; outline: none; }
.clients-search input:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(42, 121, 85, .08); }
.clients-stat { flex: none; text-align: right; }
.clients-stat span, .clients-stat strong { display: block; }
.clients-stat span { color: var(--muted); font-size: 9px; }
.clients-stat strong { margin-top: 3px; color: var(--green); font: 800 22px Manrope; }
.clients-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.client-card { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: var(--shadow); }
.client-card-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.client-card-identity { min-width: 0; display: flex; align-items: center; gap: 11px; }
.client-card-logo { width: 44px; height: 44px; flex: none; border: 1px solid #d8e2de; border-radius: 9px; overflow: hidden; display: grid; place-items: center; color: var(--green); background: #f1f6f4; font: 800 11px Manrope; }
.client-card-logo img { width: 100%; height: 100%; padding: 4px; object-fit: contain; background: white; }
.client-card-name { min-width: 0; }
.client-card-heading h3 { margin: 0; font-size: 15px; }
.client-card-heading small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.client-type-badge { padding: 5px 8px; border-radius: 99px; color: var(--green); background: var(--mint); font-size: 8px; font-weight: 800; }
.client-card-contact { display: grid; gap: 5px; margin-top: 14px; color: var(--muted); font-size: 9px; }
.client-card-contact strong { color: var(--ink); }
.client-card-footer { margin-top: 15px; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); }
.client-card-footer span { color: var(--muted); font-size: 8px; }
.client-card-actions { display: flex; gap: 7px; }
.client-card-footer button { min-height: 30px; padding: 0 9px; border: 1px solid #d7e0dd; border-radius: 6px; background: white; color: var(--green); font-size: 8px; font-weight: 800; cursor: pointer; }
.client-card-footer .client-delete { color: #9b3f38; border-color: #e5c8c5; }
.client-card-footer .client-delete:hover:not(:disabled) { color: white; border-color: #9b3f38; background: #9b3f38; }
.client-card-footer button:disabled { color: #9aa6a2; border-color: #e3e8e6; background: #f3f6f5; cursor: not-allowed; opacity: .8; }
.client-card-footer .client-new-inspection { color: white; border-color: var(--green); background: var(--green); }
.clients-empty { grid-column: 1 / -1; padding: 55px 20px; border: 1px dashed #c8d3cf; border-radius: 12px; background: #f8faf9; color: var(--muted); text-align: center; }
.client-modal { width: min(760px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 26px 28px; }
.client-form-section-heading { grid-column: 1 / -1; margin-bottom: 2px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.client-form-section-heading strong, .client-form-section-heading span { display: block; }
.client-form-section-heading strong { color: var(--ink); font-size: 12px; }
.client-form-section-heading span { margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.client-logo-field { margin: 18px 0; padding: 14px 16px; border: 1px solid #d7e1dd; border-radius: 10px; display: grid; grid-template-columns: 78px minmax(0, 1fr); align-items: center; gap: 16px; background: #f7faf9; }
.client-logo-preview { width: 78px; height: 62px; border: 1px dashed #bdccc6; border-radius: 8px; overflow: hidden; display: grid; place-items: center; color: var(--muted); background: white; font-size: 8px; }
.client-logo-preview img { width: 100%; height: 100%; padding: 7px; object-fit: contain; }
.client-logo-controls { min-width: 0; display: grid; gap: 4px; }
.client-logo-controls strong { font-size: 11px; }
.client-logo-controls small { color: var(--muted); font-size: 8px; line-height: 1.4; }
.client-logo-controls > div { margin-top: 4px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.client-logo-upload { min-height: 34px; margin: 0 !important; padding: 0 11px; display: inline-flex !important; align-items: center; cursor: pointer; }
.client-logo-upload input, #client-logo-input { display: none !important; }
.delivery-modal { width: min(760px, 100%); max-height: calc(100vh - 40px); overflow: auto; }
.delivery-summary { margin-bottom: 17px; padding: 14px 16px; border: 1px solid #d4e2dc; border-radius: 9px; background: #f3f8f6; display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; }
.delivery-summary strong, .delivery-summary span { display: block; }
.delivery-summary strong { font-size: 12px; }
.delivery-summary span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.delivery-summary b { align-self: center; color: var(--green); font-size: 16px; }
.delivery-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.delivery-form-grid .wide { grid-column: 1 / -1; }
.delivery-modal > label, .delivery-form-grid label { display: grid; gap: 6px; margin-bottom: 13px; color: #66746f; font-size: 9px; font-weight: 700; }
.delivery-modal input, .delivery-modal textarea { width: 100%; padding: 10px 11px; border: 1px solid #d7e1dd; border-radius: 8px; color: var(--ink); background: white; outline: none; }
.delivery-modal input { height: 42px; }
.delivery-modal textarea { min-height: 155px; line-height: 1.5; resize: vertical; }
.delivery-email-heading { margin: 5px 0 12px; padding-top: 15px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.delivery-email-heading strong, .delivery-email-heading small { display: block; }
.delivery-email-heading strong { font-size: 12px; }
.delivery-email-heading small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.client-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 16px; }
.client-form-grid label { min-width: 0; margin: 0; }
.client-form-grid input, .client-form-grid select { height: 42px; margin-top: 6px; }
.client-form-grid .client-notes-field { grid-column: 1 / -1; }
.client-form-grid .client-notes-field textarea { min-height: 84px; margin-top: 6px; line-height: 1.5; }
.inline-add-button { margin-top: 7px; padding: 0; border: 0; background: transparent; color: var(--green); font-size: 8px; font-weight: 800; cursor: pointer; text-align: left; }
.placeholder-card p { color: var(--muted); }
.placeholder-actions { display: flex; justify-content: center; gap: 9px; margin-top: 24px; }
.dashboard-view { display: none; min-height: calc(100vh - 68px); padding: 34px 38px; }
.dashboard-view.active { display: block; }
.dashboard-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; margin-bottom: 22px; }
.dashboard-heading h1 { margin: 5px 0 6px; font-size: 27px; }
.dashboard-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.commercial-dashboard { margin-bottom: 25px; }
.commercial-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.commercial-kpi { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: flex-start; gap: 14px; color: var(--ink); background: white; box-shadow: 0 5px 18px rgba(34,58,50,.045); cursor: pointer; text-align: left; transition: transform .15s, border-color .15s, box-shadow .15s; }
.commercial-kpi:hover { transform: translateY(-2px); border-color: #aac9bd; box-shadow: 0 8px 24px rgba(34,58,50,.08); }
.commercial-kpi-icon { width: 34px; height: 34px; flex: none; border-radius: 9px; display: grid; place-items: center; color: var(--green); background: var(--mint); font-size: 9px; font-weight: 900; }
.commercial-kpi.quotes .commercial-kpi-icon { color: #8a5a25; background: #fbeddc; }
.commercial-kpi.invoiced .commercial-kpi-icon { color: #28566f; background: #e7f2f7; }
.commercial-kpi.clients .commercial-kpi-icon { color: #654b7b; background: #f0eaf5; }
.commercial-kpi.mjop .commercial-kpi-icon { color: #9a611d; background: #fff0d9; }
.commercial-kpi.wws .commercial-kpi-icon { color: #17636d; background: #e3f3f4; }
.commercial-kpi.scenarios .commercial-kpi-icon { color: #276c5b; background: #e5f3ee; }
.commercial-kpi div { min-width: 0; flex: 1; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2px 12px; }
.commercial-kpi small { grid-column: 1 / -1; color: var(--muted); font-size: 9px; font-weight: 700; }
.commercial-kpi strong { margin-top: 7px; color: var(--ink); font: 800 26px Manrope; }
.commercial-kpi b { color: var(--green); font: 800 15px Manrope; white-space: nowrap; }
.commercial-overview-card { margin-top: 13px; padding: 19px 20px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 5px 18px rgba(34,58,50,.04); }
.commercial-map-card { margin-top: 13px; padding: 19px 20px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 5px 18px rgba(34,58,50,.04); }
.commercial-overview-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.commercial-overview-heading h2 { margin: 4px 0 0; font-size: 16px; }
.commercial-overview-heading > span { padding: 7px 10px; border-radius: 8px; color: var(--green); background: var(--mint); font-size: 9px; font-weight: 800; }
.commercial-map-layout { height: 420px; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .65fr); gap: 16px; margin-top: 15px; align-items: stretch; }
.commercial-map-preview { position: relative; min-height: 0; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #edf3f0; }
.commercial-google-map { width: 100%; min-height: 0; height: 100%; display: block; }
.commercial-google-map[hidden] { display: none; }
.commercial-map-preview > img { width: 100%; height: 100%; min-height: 0; display: block; object-fit: cover; }
.commercial-map-placeholder { position: absolute; inset: 0; display: grid; place-content: center; gap: 7px; padding: 22px; color: var(--muted); text-align: center; background: linear-gradient(135deg, #edf5f1, #f8faf9); }
.commercial-map-placeholder[hidden] { display: none; }
.commercial-map-placeholder strong { color: var(--green); font-size: 14px; }
.commercial-map-placeholder span { max-width: 320px; font-size: 10px; line-height: 1.55; }
.commercial-map-side { min-width: 0; min-height: 0; height: 100%; display: flex; flex-direction: column; gap: 10px; align-self: stretch; overflow: hidden; }
.commercial-map-legend { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 8px; font-weight: 800; }
.commercial-map-legend span { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; display: inline-flex; align-items: center; gap: 6px; background: #fbfcfc; }
.commercial-map-legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.commercial-map-legend i.active { background: #f29f45; }
.commercial-map-legend i.completed { background: #1d6655; }
.commercial-map-list { min-height: 0; flex: 1; overflow: auto; display: grid; align-content: start; gap: 8px; padding-right: 2px; }
.commercial-map-item { padding: 8px; border: 1px solid var(--line); border-radius: 11px; display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 9px; background: #fbfcfc; cursor: pointer; transition: border-color .18s, background .18s, box-shadow .18s; }
.commercial-map-item:hover, .commercial-map-item.is-selected { border-color: #1d6655; background: #f3f8f6; box-shadow: 0 8px 20px rgba(23, 54, 46, .07); }
.commercial-map-item-thumb { position: relative; width: 58px; height: 46px; overflow: hidden; border-radius: 8px; background: linear-gradient(135deg, #dfeae6, #f7faf9); }
.commercial-map-item-thumb::after { content: ""; position: absolute; left: 6px; bottom: 6px; width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%; background: #f29f45; box-shadow: 0 2px 5px rgba(0,0,0,.14); }
.commercial-map-item.completed .commercial-map-item-thumb::after { background: #1d6655; }
.commercial-map-item-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.commercial-map-item-thumb.is-empty { display: grid; place-items: center; }
.commercial-map-item-thumb.is-empty::before { content: "Geen foto"; color: #7b8984; font-size: 7px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.commercial-map-item-main { min-width: 0; }
.commercial-map-item strong, .commercial-map-item span, .commercial-map-item small { display: block; }
.commercial-map-item strong { color: var(--ink); font-size: 9px; line-height: 1.25; }
.commercial-map-item span { margin-top: 2px; color: var(--muted); font-size: 7px; line-height: 1.4; }
.commercial-map-item small { margin-top: 4px; color: var(--green); font-size: 7px; font-weight: 900; letter-spacing: .4px; text-transform: uppercase; }
.commercial-map-item em { grid-column: 2; width: fit-content; margin-top: -2px; padding: 3px 6px; border-radius: 999px; color: #8a5a25; background: #fbeddc; font-size: 6px; font-style: normal; font-weight: 900; }
.commercial-map-item.completed em { color: #1d6655; background: #e7f2ee; }
.commercial-map-item a { grid-column: 3; grid-row: 1 / span 2; align-self: end; padding: 5px 7px; border: 1px solid var(--line); border-radius: 7px; color: var(--green); background: white; font-size: 7px; font-weight: 900; text-decoration: none; white-space: nowrap; cursor: pointer; }
.commercial-map-empty { padding: 20px 12px; border: 1px dashed #cbd5d1; border-radius: 9px; color: var(--muted); text-align: center; font-size: 9px; background: #fbfcfc; }
.commercial-map-info { width: 220px; color: #172420; font-family: "DM Sans", Arial, sans-serif; }
.commercial-map-info-thumb { width: 100%; height: 86px; margin-bottom: 9px; overflow: hidden; border-radius: 8px; background: #eef3f1; }
.commercial-google-map .commercial-map-info-thumb img,
.commercial-map-info-thumb img { width: 100% !important; height: 100% !important; min-height: 0 !important; max-width: 100% !important; display: block; object-fit: cover !important; }
.commercial-map-info-thumb.is-empty { display: none; }
.commercial-map-info strong, .commercial-map-info span, .commercial-map-info small { display: block; }
.commercial-map-info strong { margin-bottom: 4px; font-size: 13px; }
.commercial-map-info span { color: #5d6b66; font-size: 11px; }
.commercial-map-info small { margin-top: 6px; color: #1d6655; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.commercial-activity-list { display: grid; gap: 0; margin-top: 14px; border-top: 1px solid var(--line); }
.commercial-activity-item { min-width: 0; padding: 11px 2px; display: grid; grid-template-columns: 92px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); }
.commercial-activity-item:last-child { border-bottom: 0; }
.commercial-activity-type { width: fit-content; padding: 5px 7px; border-radius: 6px; color: var(--green); background: var(--mint); font-size: 7px; font-weight: 900; letter-spacing: .5px; }
.commercial-activity-type.quote { color: #8a5a25; background: #fbeddc; }
.commercial-activity-type.invoice { color: #28566f; background: #e7f2f7; }
.commercial-activity-main strong, .commercial-activity-main span { display: block; }
.commercial-activity-main strong { font-size: 10px; }
.commercial-activity-main span { margin-top: 3px; color: var(--muted); font-size: 8px; }
.commercial-activity-status { color: var(--muted); font-size: 8px; font-weight: 700; }
.commercial-activity-amount { color: var(--ink); font-size: 10px; font-weight: 900; white-space: nowrap; }
.commercial-activity-empty { padding: 24px 5px 10px; color: var(--muted); font-size: 9px; text-align: center; }
.dashboard-section-heading { margin: 0 0 11px; display: flex; justify-content: space-between; align-items: flex-end; }
.dashboard-section-heading h2 { margin: 4px 0 0; font-size: 16px; }
.inspection-overview-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 11px; margin-bottom: 14px; }
.inspection-overview-stats div { padding: 15px 17px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.inspection-overview-stats span, .inspection-overview-stats strong { display: block; }
.inspection-overview-stats span { color: var(--muted); font-size: 9px; }
.inspection-overview-stats strong { margin-top: 6px; color: var(--green); font: 800 22px Manrope; }
.inspection-overview-filters { display: flex; gap: 7px; margin-bottom: 14px; }
.overview-filter { min-height: 34px; padding: 0 13px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: white; font-size: 9px; font-weight: 800; cursor: pointer; }
.overview-filter.active { border-color: var(--green); color: white; background: var(--green); }
.overview-filter span { display: inline-grid; min-width: 17px; height: 17px; margin-left: 5px; padding: 0 4px; place-items: center; border-radius: 9px; color: inherit; background: rgba(255,255,255,.18); }
.inspection-overview-list { display: grid; gap: 10px; }
.overview-empty { padding: 45px; border: 1px dashed #cbd5d1; border-radius: 12px; text-align: center; color: var(--muted); background: white; }
.inspection-overview-card { display: grid; grid-template-columns: minmax(280px, 1fr) 250px minmax(460px, 520px); gap: 20px; align-items: center; padding: 17px 19px; border: 1px solid var(--line); border-radius: 11px; background: white; box-shadow: 0 4px 14px rgba(34,58,50,.035); }
.overview-main h3 { margin: 3px 0 5px; font-size: 14px; }
.overview-main p, .overview-meta span { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.overview-type { color: var(--green-2); font-size: 8px; font-weight: 800; letter-spacing: .7px; }
.overview-meta { --overview-label-width: 96px; width: 250px; display: grid; gap: 5px; align-content: center; }
.overview-meta > span { display: grid; grid-template-columns: var(--overview-label-width) minmax(0, 1fr); align-items: center; column-gap: 8px; }
.overview-meta strong { min-width: 0; color: var(--ink); overflow-wrap: anywhere; }
.overview-meta .overview-status { display: inline-block; width: fit-content; padding: 4px 8px; border-radius: 10px; color: #8d5b2b; background: #f7eadc; font-size: 8px; font-weight: 800; }
.overview-status.completed { color: var(--green); background: var(--mint); }
.overview-status.archived { color: #58645f; background: #e8ecea; }
.overview-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.overview-actions .button { min-height: 35px; padding: 0 11px; font-size: 9px; }
.overview-archive { color: #765326; border-color: #decba9; background: #fffaf1; }
.overview-restore { color: var(--green); border-color: #b8d5c8; background: #f2faf6; }
.overview-delete { color: #a23f38; border-color: #e7bbb6; background: #fff7f6; }

@media (max-width: 1300px) {
  .inspection-overview-card { grid-template-columns: minmax(260px, 1fr) 250px; }
  .overview-actions { grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid var(--line); }
}

.modal-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(9,30,25,.57); display: none; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(3px); }
.modal-backdrop.open { display: flex; }
.modal { width: min(520px, 100%); border-radius: 13px; padding: 24px; background: white; box-shadow: 0 25px 80px rgba(0,0,0,.25); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; }
.modal-header h2 { font-size: 20px; margin: 5px 0 0; }
.modal-header p { max-width: 410px; color: var(--muted); font-size: 11px; line-height: 1.5; margin: 6px 0 0; }
.modal-close { border: 0; background: transparent; color: var(--muted); font-size: 25px; cursor: pointer; }
.button.danger { color: white; border-color: #a64038; background: #a64038; }
.button.danger:hover { border-color: #8f352f; background: #8f352f; }
.delete-inspection-modal { width: min(520px, 100%); }
.delete-inspection-modal > label { display: grid; gap: 7px; color: #66746f; font-size: 9px; font-weight: 700; }
.delete-inspection-modal input { width: 100%; height: 43px; padding: 0 12px; border: 1px solid #d7e1dd; border-radius: 8px; color: var(--ink); outline: none; }
.delete-inspection-modal input:focus { border-color: #a64038; box-shadow: 0 0 0 3px #fbecea; }
.delete-inspection-summary { margin-bottom: 18px; padding: 14px 15px; border: 1px solid #ead2cf; border-radius: 9px; background: #fff8f7; }
.delete-inspection-summary strong, .delete-inspection-summary span { display: block; }
.delete-inspection-summary strong { color: var(--ink); font-size: 12px; }
.delete-inspection-summary span { margin-top: 4px; color: var(--muted); font-size: 9px; }
.delete-inspection-error { min-height: 17px; margin: 7px 0 0; color: #a23f38; font-size: 9px; font-weight: 700; }
.modal label { margin: 0 0 16px; }
.modal input, .modal textarea, .modal select { display: block; width: 100%; margin-top: 7px; border: 1px solid #dbe2df; border-radius: 7px; padding: 11px 12px; color: var(--ink); background: white; outline: none; }
.field-help { display: block; margin-top: 5px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.inline-ai-button { margin-top: 7px; padding: 7px 10px; border: 1px solid #bed4e1; border-radius: 7px; color: #28566f; background: #eef7fb; font-size: 9px; font-weight: 800; cursor: pointer; }
.inline-ai-button span { display: inline-grid; width: 21px; height: 21px; margin-right: 5px; place-items: center; border-radius: 50%; color: white; background: #397594; font-size: 7px; }
.inline-ai-button:disabled { opacity: .6; cursor: wait; }
.finding-location-section { margin: 0 0 16px; padding: 13px; border: 1px solid #cfe0d9; border-radius: 9px; background: #f5faf8; }
.finding-location-section legend { padding: 0 5px; color: var(--green); font-size: 11px; font-weight: 800; }
.finding-location-section > p { margin: 0 0 11px; color: #527068; font-size: 8px; line-height: 1.45; }
.finding-drawing-section { margin: 0 0 16px; padding: 13px; border: 1px solid #cfe0d9; border-radius: 9px; background: #f5faf8; }
.finding-drawing-section[hidden] { display: none; }
.finding-drawing-section legend { padding: 0 5px; color: var(--green); font-size: 11px; font-weight: 800; }
.finding-drawing-section > p { margin: 0 0 11px; color: #527068; font-size: 8px; line-height: 1.45; }
.finding-drawing-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.finding-drawing-controls label { margin: 0; }
.finding-drawing-controls .button { min-height: 40px; }
.finding-drawing-selection { margin-top: 10px; padding: 10px 11px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid #bdd4cb; border-radius: 7px; background: white; }
.finding-drawing-selection[hidden] { display: none; }
.finding-drawing-selection strong { display: block; color: var(--ink); font-size: 10px; }
.finding-drawing-selection span { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.finding-drawing-reference { margin-top: 10px; padding: 11px; border-left: 3px solid #4e86a4; background: #eef6fa; color: #344c58; font-size: 9px; }
.finding-drawing-reference > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.finding-drawing-reference strong { color: #24556d; font-size: 8px; text-transform: uppercase; letter-spacing: .5px; }
.finding-drawing-reference button { padding: 0; border: 0; color: var(--green); background: transparent; cursor: pointer; font: inherit; font-weight: 800; }
.finding-drawing-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 12px; }
.finding-drawing-actions .change-linked-drawing-position { color: #2f718d; }
.finding-drawing-previews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 10px; }
.finding-drawing-previews[hidden] { display: none; }
.finding-drawing-previews figure { margin: 0; overflow: hidden; border: 1px solid #c8d9d2; border-radius: 7px; background: white; }
.finding-drawing-previews img { width: 100%; aspect-ratio: 3 / 2; display: block; object-fit: contain; background: white; }
.finding-drawing-previews figcaption { padding: 6px 8px; color: #4f655f; font-size: 8px; font-weight: 700; }

.drawing-viewer-backdrop { z-index: 120; }
.drawing-viewer-modal { width: min(1120px, calc(100vw - 32px)); max-height: calc(100vh - 24px); padding: 18px; display: flex; flex-direction: column; }
.drawing-metadata-modal { width: min(620px, calc(100vw - 24px)); }
.drawing-metadata-modal label { display: block; margin-top: 13px; }
.drawing-metadata-modal input, .drawing-metadata-modal textarea { width: 100%; margin-top: 6px; }
.drawing-metadata-modal textarea { min-height: 105px; resize: vertical; }
.drawing-metadata-file { margin-top: 13px; padding: 10px 12px; border-radius: 7px; color: #49625b; background: #f0f5f3; font-size: 9px; }
.drawing-viewer-toolbar { margin: 8px 0 10px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.drawing-page-controls, .drawing-zoom-controls { display: flex; align-items: center; gap: 8px; }
.drawing-viewer-toolbar .button { min-height: 34px; }
.drawing-viewer-toolbar strong { min-width: 110px; color: var(--green); font-size: 10px; text-align: center; }
.drawing-zoom-controls strong { min-width: 58px; }
.drawing-canvas-stage { position: relative; min-height: 280px; flex: 1 1 auto; overflow: auto; display: block; border: 1px solid #ccd8d4; border-radius: 8px; background: #e8ecea; touch-action: none; cursor: grab; }
.drawing-canvas-stage.dragging { cursor: grabbing; }
.drawing-sheet { position: relative; width: max-content; height: max-content; margin: 12px auto; background: white; box-shadow: 0 3px 18px rgba(12, 46, 38, .12); }
.drawing-canvas-stage canvas { display: block; max-width: none; background: white; cursor: inherit; }
.drawing-loading { position: absolute; z-index: 3; padding: 9px 13px; border-radius: 999px; color: white; background: rgba(15, 66, 54, .88); font-size: 9px; }
.drawing-loading[hidden] { display: none; }
.drawing-location-marker { position: absolute; z-index: 4; width: 30px; height: 30px; margin: -15px 0 0 -15px; padding: 0; border: 3px solid white; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); color: white; background: #dc493d; box-shadow: 0 2px 9px rgba(0, 0, 0, .35); pointer-events: none; }
.drawing-location-marker[hidden] { display: none; }
.drawing-location-marker span { position: absolute; width: 8px; height: 8px; top: 8px; left: 8px; border-radius: 50%; background: white; }
.drawing-focus-frame { position: absolute; z-index: 2; border: 3px solid #7ebd3c; background: rgba(126, 189, 60, .06); box-shadow: 0 0 0 1px rgba(255, 255, 255, .8); pointer-events: none; }
.drawing-focus-frame[hidden] { display: none; }
.drawing-viewer-status { padding: 9px 2px 0; color: var(--muted); font-size: 9px; text-align: center; }
.drawing-viewer-modal .modal-actions { margin-top: 10px; }
.finding-location-grid { display: grid; grid-template-columns: .9fr 1.25fr 1fr; gap: 9px; }
.finding-location-grid label { margin: 0; }
.finding-location-detail { margin: 10px 0 0 !important; }
.finding-location-preview { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; margin-top: 11px; padding: 9px 11px; border-radius: 7px; background: var(--mint); }
.finding-location-preview span { color: var(--muted); font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .45px; }
.finding-location-preview strong { color: var(--green); font-size: 10px; }
.work-description-section { margin: 0 0 15px; padding: 13px; border: 1px solid #d9dfdc; border-radius: 9px; background: #fafcfb; }
.work-description-heading strong, .work-description-heading span { display: block; }
.work-description-heading strong { color: var(--green); font-size: 11px; }
.work-description-heading span { margin-top: 3px; color: var(--muted); font-size: 8px; }
.work-description-search-label { margin: 10px 0 0 !important; font-size: 10px; }
.work-description-search-label input { font-size: 10px; font-weight: 400; }
.work-description-suggestions { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
.work-description-option { padding: 7px 9px; border: 1px solid #d8e2de; border-radius: 7px; color: #35584e; background: white; font-size: 8px; cursor: pointer; text-align: left; }
.work-description-option:hover { border-color: var(--green-2); background: var(--mint); }
.save-work-description-option { margin: 8px 0 0; display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 8px; font-weight: 700; }
.modal .save-work-description-option input { width: auto; margin: 0; }
.modal input:focus, .modal textarea:focus, .modal select:focus { border-color: #58917f; box-shadow: 0 0 0 3px #edf5f2; }
.modal textarea { min-height: 90px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 6px; }
.finding-modal .modal-actions { position: sticky; bottom: 0; z-index: 4; margin: 12px -1px -1px; padding: 13px 0 1px; border-top: 1px solid var(--line); background: white; }
.finding-modal { width: min(650px, 100%); max-height: calc(100vh - 40px); overflow: auto; }
.defect-picker { padding: 13px; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 9px; background: #f8faf9; }
.defect-picker-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 10px; }
.defect-picker-heading strong, .defect-picker-heading span { display: block; }
.defect-picker-heading strong { font-size: 11px; }
.defect-picker-heading span { color: var(--muted); font-size: 9px; margin-top: 2px; }
.defect-picker-heading input { width: 180px; border: 1px solid var(--line); border-radius: 7px; padding: 8px 10px; font-size: 10px; outline: none; }
.defect-suggestions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; max-height: 150px; overflow: auto; }
.defect-option { padding: 10px; border: 1px solid #dce4e1; border-radius: 7px; background: white; text-align: left; cursor: pointer; }
.defect-option:hover { border-color: #73a392; background: #f1f7f4; }
.defect-option strong, .defect-option span { display: block; }
.defect-option strong { font-size: 10px; }
.defect-option span { color: var(--muted); font-size: 8px; margin-top: 3px; }
.defect-empty { grid-column: 1 / -1; padding: 18px; text-align: center; color: var(--muted); font-size: 10px; }
.quantity-section { padding: 13px; margin: 0 0 16px; border: 1px solid #cfe0d9; border-radius: 9px; background: #f0f7f4; }
.nen-calculation-section { margin: 0 0 16px; padding: 13px; border: 1px solid #d7ddd9; border-radius: 9px; background: #f8faf9; }
.nen-calculation-section legend { padding: 0 5px; color: var(--green); font-size: 11px; font-weight: 800; }
.nen-calculation-section > p { margin: 0 0 11px; color: var(--muted); font-size: 8px; }
.nen-calculation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.nen-calculation-grid label { margin: 0; }
.nen-calculation-grid select { margin-top: 7px; }
.nen-calculation-result { margin-top: 11px; padding: 10px 12px; display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; align-items: center; border-radius: 7px; color: var(--green); background: var(--mint); }
.nen-calculation-result span { font-size: 9px; font-weight: 700; }
.nen-calculation-result strong { grid-row: 1 / 3; grid-column: 2; font-size: 14px; }
.nen-calculation-result small { color: var(--muted); font-size: 8px; }
.quantity-heading { margin-bottom: 11px; }
.quantity-heading strong, .quantity-heading span { display: block; }
.quantity-heading strong { color: var(--green); font-size: 11px; }
.quantity-heading span { color: var(--muted); font-size: 9px; margin-top: 3px; }
.quantity-section.optional { border-color: #dce5e2; background: #f7faf9; }
.quantity-section.optional .quantity-heading strong::after { content: " (optioneel)"; color: var(--muted); font-weight: 600; }
.finding-cost-category-field[hidden], .finding-measure[hidden], .finding-cost-category[hidden], .cost-row[hidden], .report-finding-cost[hidden], .report-cost-breakdown[hidden], .report-cost-totals-chapter[hidden], .report-nen-section[hidden], .nen-calculation-section[hidden], .condition-select[hidden] { display: none !important; }
.quantity-fields { display: grid; grid-template-columns: 1fr 1.45fr; gap: 10px; }
.quantity-fields label { margin-bottom: 0; }
.unit-price-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.unit-price-fields label { margin-bottom: 0; }
.money-input { display: flex; align-items: center; margin-top: 7px; border: 1px solid #dbe2df; border-radius: 7px; background: white; overflow: hidden; }
.money-input > span { padding: 0 0 0 11px; color: var(--muted); font-size: 11px; }
.modal .money-input input { margin: 0; border: 0; box-shadow: none; }
.cost-share-field { margin-top: 10px; }
.cost-share-field > small { display: block; margin-top: 5px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.percentage-input { width: 150px; display: flex; align-items: center; margin-top: 7px; border: 1px solid #dbe2df; border-radius: 7px; background: white; overflow: hidden; }
.modal .percentage-input input { margin: 0; border: 0; box-shadow: none; }
.percentage-input > span { padding-right: 11px; color: var(--muted); font-size: 11px; }
.calculation-preview { margin-top: 12px; padding: 11px 12px; border-radius: 7px; background: var(--green); color: white; display: flex; justify-content: space-between; gap: 15px; }
.calculation-preview > div:last-child { text-align: right; }
.calculation-preview span, .calculation-preview strong { display: block; }
.calculation-preview span { color: #b9d0c9; font-size: 8px; margin-bottom: 4px; }
.calculation-preview strong { font-size: 11px; }
.calculation-preview small { display: block; margin-top: 3px; color: #b9d0c9; font-size: 8px; }
.library-rate-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.library-rate-fields label { margin: 0; }
.cost-row { align-items: flex-end; }
.cost-row span small { display: block; margin-top: 3px; color: #8b9692; }
.finding-measure { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; margin-bottom: 10px; border-radius: 6px; background: var(--mint); color: var(--green); font-size: 9px; font-weight: 800; }
.finding-cost-category { display: inline-flex; margin: 0 0 10px 6px; padding: 5px 8px; border-radius: 6px; color: #655023; background: #f7efdc; font-size: 9px; font-weight: 800; }
.finding-work-description { margin: 0 0 11px; padding: 9px 10px; border-left: 3px solid var(--green-2); background: #f2f7f5; }
.finding-work-description strong, .finding-work-description span { display: block; }
.finding-work-description strong { margin-bottom: 3px; color: var(--green); font-size: 8px; text-transform: uppercase; letter-spacing: .5px; }
.finding-work-description span { color: #46534f; font-size: 9px; line-height: 1.5; }
.finding-location { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 11px; padding: 8px 10px; border-radius: 7px; background: #edf5f2; color: #46534f; font-size: 9px; line-height: 1.45; }
.finding-location strong { flex: 0 0 auto; color: var(--green); font-size: 8px; text-transform: uppercase; letter-spacing: .5px; }
.finding-measure svg { width: 13px; }
.finding-photo-section { padding: 13px; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 9px; background: #fafcfb; }
.finding-photo-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.finding-photo-heading strong, .finding-photo-heading span { display: block; }
.finding-photo-heading strong { font-size: 11px; }
.finding-photo-heading > div span { color: var(--muted); font-size: 9px; margin-top: 3px; }
.photo-count { flex: none; padding: 4px 7px; border-radius: 10px; background: var(--mint); color: var(--green); font-size: 8px; font-weight: 800; }
.finding-photo-dropzone { min-height: 72px; margin-bottom: 10px; padding: 13px 16px; border: 1.5px dashed #aebfba; border-radius: 8px; display: flex; align-items: center; justify-content: center; gap: 11px; color: var(--green); background: white; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease; }
.finding-photo-dropzone svg { width: 24px; flex: none; stroke-width: 1.7; }
.finding-photo-dropzone strong, .finding-photo-dropzone span { display: block; }
.finding-photo-dropzone strong { font-size: 10px; }
.finding-photo-dropzone span { margin-top: 3px; color: var(--muted); font-size: 8px; }
.finding-photo-dropzone.is-dragging { border-color: var(--green-2); background: var(--mint); box-shadow: 0 0 0 3px rgba(31, 112, 91, .1); transform: translateY(-1px); }
.finding-photo-dropzone.is-dragging strong { color: var(--green-2); }
.finding-photo-previews { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.upload-preview { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 7px; background: #e8eeeb; }
.upload-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.remove-upload-photo { position: absolute; top: 5px; right: 5px; width: 23px; height: 23px; border: 0; border-radius: 50%; display: grid; place-items: center; color: white; background: rgba(15,35,30,.75); cursor: pointer; font-size: 15px; }
.photo-upload-actions { display: flex; gap: 8px; margin-top: 9px; }
.photo-upload-button { flex: 1; min-height: 42px; margin: 0; border: 1px dashed #aebfba; border-radius: 7px; display: flex !important; align-items: center; justify-content: center; gap: 7px; color: var(--green); background: white; cursor: pointer; font-size: 10px !important; }
.photo-upload-button:hover { border-color: var(--green-2); background: var(--mint); }
.photo-upload-button svg { width: 16px; }
.photo-upload-button input { display: none !important; }
.photo-help { display: block; color: var(--muted); font-size: 8px; margin-top: 7px; }
.ai-analyze-button { width: 100%; min-height: 56px; margin-top: 11px; padding: 9px 11px; border: 1px solid #c8d8e5; border-radius: 8px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; color: #254f67; background: #f0f7fb; text-align: left; cursor: pointer; }
.ai-analyze-button:disabled { opacity: .52; cursor: not-allowed; }
.ai-analyze-button:not(:disabled):hover { border-color: #6f9ab3; background: #e8f3f8; }
.ai-analyze-button > span:nth-child(2) strong, .ai-analyze-button > span:nth-child(2) small { display: block; }
.ai-analyze-button > span:nth-child(2) strong { font-size: 10px; }
.ai-analyze-button > span:nth-child(2) small { color: #648092; font-size: 8px; margin-top: 3px; }
.ai-analyze-button > svg { width: 15px; }
.ai-spark { min-width: 28px; height: 28px; padding: 0 5px; border-radius: 7px; display: grid; place-items: center; color: white; background: linear-gradient(145deg, #316b87, #714a91); font-size: 9px; font-weight: 800; letter-spacing: .3px; }
.ai-analysis-panel { display: none; margin-top: 9px; border: 1px solid #cbdce7; border-radius: 9px; overflow: hidden; background: white; }
.ai-analysis-panel.open { display: block; }
.ai-analysis-loading { min-height: 105px; padding: 18px; display: flex; align-items: center; justify-content: center; gap: 13px; color: #365d72; }
.ai-analysis-loading strong, .ai-analysis-loading small { display: block; }
.ai-analysis-loading strong { font-size: 10px; }
.ai-analysis-loading small { color: var(--muted); font-size: 8px; margin-top: 4px; }
.ai-loader { width: 25px; height: 25px; flex: none; border: 3px solid #d7e6ed; border-top-color: #3d7895; border-radius: 50%; animation: ai-spin .8s linear infinite; }
@keyframes ai-spin { to { transform: rotate(360deg); } }
.ai-analysis-result { display: none; padding: 14px; }
.ai-analysis-panel.complete .ai-analysis-loading { display: none; }
.ai-analysis-panel.complete .ai-analysis-result { display: block; }
.ai-result-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; }
.ai-result-heading > div { display: flex; align-items: center; gap: 8px; }
.ai-result-heading .ai-spark { min-width: 25px; height: 25px; }
.ai-result-heading strong { font-size: 11px; }
.ai-confidence { padding: 4px 7px; border-radius: 10px; color: #356b50; background: #e7f2ed; font-size: 8px; font-weight: 800; }
.ai-confidence.unavailable { color: #76542d; background: #fff0dc; }
.ai-actions .button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.ai-result-element { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 6px; background: #f4f7f8; font-size: 8px; }
.ai-result-element span { color: var(--muted); }
.ai-analysis-result h3 { margin: 12px 0 5px; font-size: 12px; }
.ai-analysis-result p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.ai-result-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ai-result-meta span { padding: 4px 7px; border-radius: 9px; color: #365d72; background: #edf4f7; font-size: 8px; font-weight: 700; }
.ai-warning { margin-top: 11px; padding: 8px 10px; border-radius: 6px; color: #76542d; background: #fff5e8; font-size: 8px; line-height: 1.45; }
.ai-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 11px; }
.ai-actions .button { min-height: 35px; font-size: 9px; }
.finding-photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin-bottom: 11px; }
.finding-photos button { position: relative; padding: 0; border: 0; border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3; background: #e5ebe8; cursor: zoom-in; }
.finding-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.finding-photos button::after { content: "Vergroot"; position: absolute; inset: auto 0 0; padding: 4px; color: white; background: linear-gradient(transparent, rgba(0,0,0,.65)); font-size: 7px; text-align: center; }
.photo-lightbox { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; padding: 30px; background: rgba(5,18,15,.88); }
.photo-lightbox.open { display: flex; }
.photo-lightbox img { max-width: min(1000px, 95vw); max-height: 88vh; border-radius: 9px; box-shadow: 0 20px 80px rgba(0,0,0,.45); }
.photo-lightbox button { position: absolute; top: 20px; right: 24px; width: 40px; height: 40px; border: 0; border-radius: 50%; color: white; background: rgba(255,255,255,.14); font-size: 25px; cursor: pointer; }
.save-to-library-option { display: flex !important; align-items: flex-start; gap: 10px; padding: 12px 13px; margin: 0 0 17px !important; border: 1px solid #d7e4df; border-radius: 9px; background: #f8fbfa; cursor: pointer; }
.save-to-library-option input { position: absolute; opacity: 0; pointer-events: none; }
.custom-checkbox { width: 20px; height: 20px; flex: none; border: 1.5px solid #aebdb8; border-radius: 5px; display: grid; place-items: center; color: transparent; background: white; font-size: 11px; transition: .15s; }
.save-to-library-option input:checked + .custom-checkbox { color: white; border-color: var(--green-2); background: var(--green-2); }
.save-to-library-option input:disabled + .custom-checkbox { color: white; border-color: #9aa7a3; background: #9aa7a3; }
.save-to-library-option strong, .save-to-library-option small { display: block; }
.save-to-library-option strong { color: var(--ink); font-size: 10px; }
.save-to-library-option small { color: var(--muted); font-size: 8px; line-height: 1.45; margin-top: 3px; }
.no-defect-option { display: flex !important; align-items: flex-start; gap: 10px; padding: 13px; margin: 4px 0 15px !important; border: 1px solid #bfd9cf; border-radius: 9px; background: #f1f8f5; cursor: pointer; }
.no-defect-option input { position: absolute; opacity: 0; pointer-events: none; }
.no-defect-option input:checked + .custom-checkbox { color: white; border-color: var(--green-2); background: var(--green-2); }
.no-defect-option strong, .no-defect-option small { display: block; }
.no-defect-option strong { color: var(--green); font-size: 10px; }
.no-defect-option small { margin-top: 3px; color: #587068; font-size: 8px; line-height: 1.45; }
.no-defect-option[hidden],
.no-defect-improvement-option[hidden],
.save-to-library-option[hidden],
.finding-title-field[hidden],
.finding-description-field[hidden],
.finding-location-section[hidden],
.finding-severity-field[hidden],
.defect-picker[hidden],
.work-description-section[hidden],
.quantity-section[hidden] { display: none !important; }
.finding.no-defect-assessment { border-color: #bcd8ce; background: #fbfefd; }
.report-finding.no-defect-assessment { border-color: #bcd8ce; background: #fbfefd; }
.report-finding.no-defect-assessment .report-finding-header { background: #f0f8f5; }
.severity.assessed { color: #17634f; background: #e5f3ee; }
.severity.assessed i { background: #2b8b70; }
.no-defect-improvement-option { border-color: #d6e3de; background: #f8fbfa; }
.no-defect-improvement-option strong { color: var(--ink); }
.library-modal { width: min(760px, 100%); max-height: calc(100vh - 40px); overflow: auto; }
.library-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 15px 0; border-top: 1px solid var(--line); }
.library-toolbar label { flex: 1; max-width: 320px; margin: 0; }
.library-list { display: grid; gap: 8px; max-height: 390px; overflow: auto; padding-right: 3px; }
.library-card { display: grid; grid-template-columns: 1fr auto; gap: 15px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 9px; }
.library-card h3 { font-size: 12px; margin: 0 0 5px; }
.library-card p { color: var(--muted); font-size: 9px; line-height: 1.45; margin: 0; }
.library-card-work { margin-top: 9px; padding: 9px 10px; border-left: 3px solid var(--green-2); background: #f3f8f6; border-radius: 0 7px 7px 0; }
.library-card-work strong, .library-card-work span { display: block; }
.library-card-work strong { margin-bottom: 3px; color: var(--green); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.library-card-work span { color: #40514c; font-size: 9px; line-height: 1.45; }
.library-card-meta { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.library-card-meta > span:last-child { color: var(--muted); font-size: 9px; }
.library-card .button { align-self: center; min-height: 34px; font-size: 9px; padding: 0 11px; }
.library-footer { display: flex; justify-content: space-between; margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.custom-defect-form { display: none; margin-bottom: 14px; padding: 14px; border-radius: 9px; background: #f3f7f5; border: 1px solid #dce7e2; }
.custom-defect-form.open { display: block; }
.library-ai-button { margin: 4px 0 6px; }
.inspection-modal { width: min(700px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 27px; }
.company-modal { width: min(820px, 100%); max-height: calc(100vh - 40px); overflow: auto; }
.company-form-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; padding-top: 17px; border-top: 1px solid var(--line); }
.company-form-layout h3 { margin: 0 0 15px; font-size: 13px; }
.company-branding-fields { padding-left: 23px; border-left: 1px solid var(--line); }
.company-logo-preview { min-height: 130px; border: 1px dashed #c5d0cc; border-radius: 9px; display: grid; place-items: center; overflow: hidden; background: #f8faf9; }
.company-logo-preview img { max-width: 85%; max-height: 105px; object-fit: contain; }
.company-logo-placeholder { display: grid; justify-items: center; gap: 8px; color: var(--muted); font-size: 9px; }
.company-logo-upload { min-height: 40px; margin: 10px 0 0 !important; border: 1px solid #cbd7d3; border-radius: 7px; display: flex !important; align-items: center; justify-content: center; gap: 7px; color: var(--green) !important; background: white; cursor: pointer; }
.company-logo-upload svg { width: 16px; }
.company-logo-upload input { display: none !important; }
.remove-company-logo { display: block; margin: 8px auto 0; }
.company-branding-fields > small { display: block; margin: 7px 0 15px; color: var(--muted); font-size: 8px; line-height: 1.4; text-align: center; }
.logo-position-field { padding: 0; border: 0; }
.logo-position-field legend { margin-bottom: 7px; color: var(--muted); font-size: 9px; font-weight: 700; }
.logo-position-field label { display: inline-flex; align-items: center; gap: 5px; margin: 0 14px 0 0; color: var(--ink); cursor: pointer; }
.affiliation-logo-settings { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.affiliation-logo-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.affiliation-logo-heading strong, .affiliation-logo-heading small { display: block; }
.affiliation-logo-heading strong { font-size: 10px; }
.affiliation-logo-heading small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.affiliation-logo-heading > span { padding: 4px 7px; border-radius: 99px; background: var(--mint); color: var(--green); font-size: 8px; font-weight: 800; }
.affiliation-logo-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 11px; }
.affiliation-logo-item { min-width: 0; padding: 7px; border: 1px solid var(--line); border-radius: 7px; background: #f9fbfa; text-align: center; }
.affiliation-logo-item img { width: 100%; height: 46px; object-fit: contain; }
.affiliation-logo-item span { display: block; overflow: hidden; margin-top: 4px; color: var(--muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.affiliation-logo-item button { margin-top: 5px; padding: 0; border: 0; background: transparent; color: #a3483d; font-size: 7px; cursor: pointer; }
.affiliation-logo-upload { margin-top: 9px !important; }
.affiliation-logo-upload.disabled { opacity: .45; pointer-events: none; }
.company-report-preview { margin: 20px 0; padding: 12px; border-radius: 9px; background: #f1f4f3; }
.quote-pricing-settings { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.quote-pricing-settings-heading h3 { margin: 4px 0 5px; font-size: 15px; }
.quote-pricing-settings-heading p { margin: 0; color: var(--muted); font-size: 9px; }
.quote-pricing-settings-grid, .travel-band-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 15px; }
.quote-pricing-settings label { min-width: 0; color: #66746f; font-size: 8px; font-weight: 700; }
.quote-pricing-settings input { width: 100%; height: 39px; margin-top: 5px; padding: 0 10px; border: 1px solid #d7e1dd; border-radius: 7px; color: var(--ink); background: white; outline: none; }
.quote-pricing-settings .currency-input input { padding-left: 27px; }
.travel-band-settings { margin-top: 17px; padding: 15px; border-radius: 9px; background: #f3f8f6; }
.travel-band-settings > strong, .travel-band-settings > small { display: block; }
.travel-band-settings > strong { font-size: 11px; }
.travel-band-settings > small { margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.travel-band-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 13px 0 11px; }
.company-report-preview > span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 8px; font-weight: 700; }
.mini-report-header { min-height: 68px; padding: 11px 13px; display: flex; align-items: center; justify-content: space-between; gap: 13px; border-radius: 6px; background: white; }
.mini-report-header > div:last-child { flex: 1; text-align: right; }
.mini-report-header.right { flex-direction: row-reverse; }
.mini-report-header.right > div:last-child { text-align: left; }
.mini-logo { min-width: 75px; height: 43px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: 8px; }
.mini-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.mini-report-header strong, .mini-report-header small { display: block; }
.mini-report-header strong { font-size: 10px; }
.mini-report-header small { color: var(--muted); font-size: 8px; margin-top: 3px; }
.cover-photo-modal { width: min(760px, 100%); max-height: calc(100vh - 40px); overflow: auto; }
.cover-photo-editor { padding-top: 17px; border-top: 1px solid var(--line); }
.cover-main-photo-slot { position: relative; aspect-ratio: 16 / 8.5; border: 1px dashed #bdcbc5; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: #f6f9f7; cursor: pointer; }
.cover-main-photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.cover-photo-placeholder { display: grid; justify-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.cover-photo-placeholder svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.visually-hidden-file { position: fixed; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cover-photo-action { position: absolute; inset: auto 12px 12px; padding: 8px 11px; border-radius: 6px; color: white; background: rgba(17, 57, 48, .82); font-size: 9px; font-weight: 800; text-align: center; transition: background .15s; }
.cover-main-photo-slot:hover .cover-photo-action, .cover-detail-photo:hover .cover-photo-action { background: rgba(17, 57, 48, .95); }
.cover-detail-heading { display: flex; justify-content: space-between; align-items: flex-start; margin-top: 18px; }
.cover-detail-heading strong, .cover-detail-heading div span { display: block; }
.cover-detail-heading strong { font-size: 11px; }
.cover-detail-heading div span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.cover-detail-heading > span { padding: 4px 7px; border-radius: 99px; background: var(--mint); color: var(--green); font-size: 8px; font-weight: 800; }
.cover-detail-photo-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 11px; }
.cover-detail-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 1px dashed #bdcbc5; border-radius: 8px; display: grid; place-items: center; background: #f6f9f7; color: var(--muted); font-size: 9px; cursor: pointer; }
.cover-detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.cover-detail-photo .cover-photo-action { inset: auto 7px 7px; padding: 6px 8px; font-size: 8px; }
.cover-detail-photo button, .cover-main-photo-slot button { position: absolute; top: 7px; right: 7px; width: 25px; height: 25px; border: 0; border-radius: 50%; display: grid; place-items: center; color: white; background: rgba(22, 38, 32, .75); cursor: pointer; }
.form-section { display: grid; grid-template-columns: 30px 1fr; gap: 13px; padding: 18px 0; border-top: 1px solid var(--line); }
.form-section-number { width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--green); font-size: 10px; font-weight: 800; }
.form-section-content h3 { margin: 3px 0 16px; font-size: 13px; }
.form-section-content > label:last-child { margin-bottom: 0; }
.inspection-type-field { margin: 0 0 16px; padding: 0; border: 0; }
.inspection-type-field legend { margin-bottom: 8px; color: var(--ink); font-size: 10px; font-weight: 700; }
.inspection-type-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.inspection-type-options label { position: relative; display: block; margin: 0; cursor: pointer; }
.inspection-type-options input { position: absolute; opacity: 0; pointer-events: none; }
.inspection-type-options label > span { min-height: 66px; padding: 11px 12px; display: block; border: 1px solid var(--line); border-radius: 8px; background: white; transition: .18s ease; }
.inspection-type-options strong, .inspection-type-options small { display: block; }
.inspection-type-options strong { color: var(--ink); font-size: 10px; }
.inspection-type-options small { margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.inspection-type-options input:checked + span { border-color: var(--green-2); background: var(--mint); box-shadow: 0 0 0 1px var(--green-2); }
.inspection-type-options .coming-soon { grid-column: 1 / -1; cursor: not-allowed; }
.inspection-type-options .coming-soon > span { min-height: auto; opacity: .65; background: #f3f5f4; }
.inspection-type-options em { margin-left: 5px; padding: 2px 5px; border-radius: 8px; color: var(--green); background: #dcebe4; font-size: 7px; font-style: normal; white-space: nowrap; }
.nhg-option { display: grid !important; grid-template-columns: 18px minmax(0, 1fr); align-items: start; gap: 10px; margin: 4px 0 15px !important; padding: 12px 14px; border: 1px solid #cfe0d9; border-radius: 8px; background: #f0f7f4; cursor: pointer; }
.nhg-option[hidden] { display: none !important; }
.nhg-option input[type="checkbox"] { width: 16px; height: 16px; margin: 1px 0 0; padding: 0; accent-color: var(--green); }
.nhg-option span, .nhg-option strong, .nhg-option small { display: block; }
.nhg-option strong { color: var(--green); font-size: 10px; line-height: 1.35; }
.nhg-option small { max-width: 440px; margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.nhg-price-field { margin: 4px 0 12px; display: grid; grid-template-columns: minmax(180px, .8fr) minmax(260px, 1.2fr); align-items: end; gap: 12px; }
.nhg-price-field[hidden] { display: none !important; }
.nhg-price-field label { margin: 0 !important; }
.nhg-threshold-advice { min-height: 56px; padding: 10px 12px; border: 1px solid #d7e2de; border-radius: 8px; display: flex; justify-content: center; flex-direction: column; background: #f7faf9; }
.nhg-threshold-advice strong, .nhg-threshold-advice small { display: block; }
.nhg-threshold-advice strong { color: #344b44; font-size: 9px; }
.nhg-threshold-advice small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.nhg-threshold-advice.eligible { border-color: #b9d9cd; background: #edf7f3; }
.nhg-threshold-advice.eligible strong { color: #236451; }
.nhg-threshold-advice.above { border-color: #ead5c5; background: #fff7ef; }
.nhg-threshold-advice.above strong { color: #8a542a; }
.address-row { grid-template-columns: 2fr 1fr; }
.objectdata-lookup { margin: -3px 0 13px; padding: 10px 12px; border: 1px solid #d5e2dd; border-radius: 8px; background: #f6faf8; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.objectdata-lookup strong, .objectdata-lookup small { display: block; }
.objectdata-lookup strong { font-size: 9px; }
.objectdata-lookup small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.objectdata-lookup .button { min-height: 34px; flex: none; font-size: 9px; }
.objectdata-status { margin: -5px 0 13px; padding: 8px 10px; border-radius: 7px; color: #356b50; background: #e7f2ed; font-size: 8px; }
.objectdata-status.error { color: #9b3e38; background: #fbe9e7; }
.address-autocomplete { position: relative; }
.address-autocomplete-results { position: absolute; z-index: 35; top: calc(100% + 5px); left: 0; right: 0; display: none; overflow: hidden; border: 1px solid #cfdcd7; border-radius: 9px; background: white; box-shadow: 0 14px 32px rgba(21, 55, 46, .16); }
.address-autocomplete-results.open { display: block; }
.address-suggestion { width: 100%; padding: 11px 13px; border: 0; border-bottom: 1px solid #edf1ef; display: flex; align-items: flex-start; gap: 10px; color: var(--ink); background: white; text-align: left; cursor: pointer; }
.address-suggestion:last-child { border-bottom: 0; }
.address-suggestion:hover, .address-suggestion.active { background: #eef6f3; }
.address-suggestion-pin { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 50%; color: #1d6655; background: #e4f1ec; font-size: 11px; }
.address-suggestion strong, .address-suggestion small { display: block; }
.address-suggestion strong { font-size: 10px; }
.address-suggestion small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.address-autocomplete-message { padding: 11px 13px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.form-section-content label { position: relative; }
.input-suffix { position: absolute; right: 11px; bottom: 13px; color: var(--muted); font-size: 9px; pointer-events: none; }
.creation-summary { display: flex; gap: 11px; align-items: center; padding: 13px 15px; margin: 2px 0 18px; border-radius: 8px; background: var(--mint); color: var(--green); }
.summary-icon { width: 25px; height: 25px; flex: none; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--green-2); font-size: 10px; }
.creation-summary strong, .creation-summary small { display: block; }
.creation-summary strong { font-size: 11px; }
.creation-summary small { color: #59756d; font-size: 9px; margin-top: 3px; }
.energy-label-help { display: flex; align-items: center; gap: 9px; margin-top: -7px; padding: 9px 11px; border-radius: 7px; color: var(--muted); background: #f6f8f7; font-size: 9px; }
.ep-online-result { margin: 7px 0 0; padding: 9px 11px; border-left: 3px solid var(--green-2); color: #426158; background: #f1f7f4; font-size: 8px; line-height: 1.5; }
.ep-online-result[hidden] { display: none; }
.energy-badge { min-width: 36px; height: 23px; padding: 0 8px; border-radius: 4px 12px 12px 4px; display: grid; place-items: center; color: white; background: #72807b; font-size: 10px; font-weight: 800; }
.energy-badge.label-a { background: #158449; }
.energy-badge.label-b { background: #50a746; }
.energy-badge.label-c { background: #9cba37; }
.energy-badge.label-d { background: #e2c52d; color: #3d3b20; }
.energy-badge.label-e { background: #e89d27; }
.energy-badge.label-f { background: #df672c; }
.energy-badge.label-g { background: #c83d32; }
.energy-badge.none { min-width: 58px; border-radius: 12px; background: #8a9692; }
.object-location-preview { margin-top: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: white; }
.object-location-map { position: relative; min-height: 150px; background: #edf2f0; }
.object-location-map img { width: 100%; height: 180px; display: block; object-fit: cover; }
.object-location-map img[hidden], .object-location-placeholder[hidden] { display: none !important; }
.object-location-placeholder { min-height: 150px; padding: 24px; display: grid; place-items: center; align-content: center; gap: 8px; color: var(--muted); text-align: center; font-size: 9px; }
.object-location-placeholder svg { width: 27px; height: 27px; fill: none; stroke: var(--green-2); stroke-width: 1.6; }
.object-location-caption { min-height: 52px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); }
.object-location-caption strong, .object-location-caption small { display: block; }
.object-location-caption strong { font-size: 10px; }
.object-location-caption small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.object-location-caption a { color: var(--green); font-size: 8px; font-weight: 800; text-decoration: none; }
.object-streetview-map { border-top: 1px solid var(--line); }
.object-location-upload { padding: 10px 12px 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border-top: 1px solid var(--line); background: #fbfdfc; }
.object-location-upload .button { min-height: 34px; }
.object-location-upload small { flex: 1 1 220px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.report-location-section { margin: 28px 0; break-inside: avoid; }
.report-location-section[hidden] { display: none; }
.report-section-heading { margin-bottom: 11px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.report-section-heading span { color: var(--green-2); font-size: 8px; font-weight: 800; letter-spacing: 1px; }
.report-section-heading h2 { margin: 3px 0 0; }
.report-section-heading > strong { max-width: 45%; font-size: 9px; text-align: right; }
.report-location-section > img { width: 100%; aspect-ratio: 2 / 1; display: block; object-fit: cover; border: 1px solid var(--line); }
.report-location-section > img[hidden] { display: none; }
.report-location-section > small { display: block; margin-top: 6px; color: var(--muted); font-size: 7px; }
.report-location-streetview { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); break-inside: avoid; }
.report-location-streetview[hidden] { display: none; }
.report-location-streetview h3 { margin: 0 0 8px; font-size: 13px; }
.report-location-streetview img { width: 100%; aspect-ratio: 2 / 1; display: block; object-fit: cover; border: 1px solid var(--line); }
.report-location-streetview small { display: block; margin-top: 6px; color: var(--muted); font-size: 7px; }

.report-backdrop { overflow: auto; align-items: flex-start; }
.report-sheet { width: min(850px, 100%); margin: 20px auto; }
.report-toolbar { padding: 12px 16px; border-radius: 10px 10px 0 0; background: #f3f6f5; display: flex; justify-content: space-between; align-items: center; }
.report-toolbar > div { display: flex; gap: 8px; }
.report-document { background: white; min-height: 900px; padding: 55px 65px; }
.report-cover { min-height: 1092px; display: flex; flex-direction: column; break-after: page; page-break-after: always; }
.report-cover { position: relative; margin-bottom: 24px; }
.report-cover::after { content: ""; position: absolute; left: -65px; right: -65px; bottom: -24px; height: 24px; background: #dfe5e2; box-shadow: inset 0 1px 2px rgba(20, 55, 46, .08); }
.pdf-render-clone .report-cover { margin-bottom: 0; }
.pdf-render-clone .report-cover::after { display: none; }
.report-letterhead { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.report-letterhead.logo-right { flex-direction: row-reverse; }
.report-logo { width: 130px; height: 65px; flex: none; display: grid; place-items: center; }
.report-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.report-logo .brand-mark { width: 42px; height: 42px; }
.report-company-details { flex: 1; text-align: right; }
.report-letterhead.logo-right .report-company-details { text-align: left; }
.report-company-details strong, .report-company-details span { display: block; }
.report-company-details strong { color: var(--green); font: 800 17px Manrope; margin-bottom: 5px; }
.report-company-details span { color: var(--muted); font-size: 8px; line-height: 1.5; }
.report-hero { padding: 75px 0 18px; }
.report-hero span { color: var(--green-2); font-size: 11px; letter-spacing: 1.4px; font-weight: 800; }
.report-hero h1 { font-size: 38px; margin: 8px 0 4px; }
.report-hero p { color: var(--muted); }
.report-hero .report-origin { margin-top: 10px; color: var(--green); font-size: 9px; font-weight: 700; }
.report-property-photos { width: min(590px, 100%); margin: 16px auto 0; }
.report-property-photos[hidden] { display: none; }
.report-property-main { aspect-ratio: 16 / 8.5; overflow: hidden; border-radius: 2px; background: #eef2f0; }
.report-property-main img { width: 100%; height: 100%; object-fit: cover; }
.report-property-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.report-property-details img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.report-property-details:empty { display: none; }
.report-details-page { min-height: 982px; padding-top: 0; break-after: page; page-break-after: always; }
.pdf-body-clone .report-details-page { min-height: 0; }
.report-details-title { padding-bottom: 18px; border-bottom: 2px solid var(--green); }
.report-details-title > span { color: var(--green-2); font-size: 9px; font-weight: 800; letter-spacing: 1.2px; }
.report-details-title h1 { margin: 7px 0 5px; font: 800 28px Manrope; }
.report-details-title p { margin: 0; color: var(--muted); font-size: 10px; }
.report-details-block { margin-top: 18px; }
.report-details-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 9px; }
.report-details-heading > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); font: 800 10px Manrope; }
.report-details-heading small { color: var(--green-2); font-size: 7px; font-weight: 800; letter-spacing: 1px; }
.report-details-heading h2 { margin: 2px 0 0; font-size: 17px; }
.report-details-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.report-details-grid > div { min-height: 44px; padding: 8px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fbfcfb; }
.report-details-grid > div[hidden] { display: none !important; }
.report-details-grid > div.wide { grid-column: 1 / -1; }
.report-details-grid span, .report-details-grid strong { display: block; }
.report-details-grid span { margin-bottom: 3px; color: var(--muted); font-size: 7px; text-transform: uppercase; letter-spacing: .5px; }
.report-details-grid strong { color: var(--ink); font-size: 10px; line-height: 1.45; }
.report-details-location { margin: 18px 0 0; }
.report-details-location .report-details-heading > strong { max-width: 45%; margin-left: auto; font-size: 9px; text-align: right; }
.report-details-location > img { width: 100%; height: 170px; aspect-ratio: auto; display: block; object-fit: cover; border: 1px solid var(--line); }
.report-details-location > small { display: block; margin-top: 5px; color: var(--muted); font-size: 7px; }
.report-details-note { margin-top: 14px; padding: 11px 14px; border-left: 3px solid var(--green-2); background: var(--mint); }
.report-details-note strong { font-size: 9px; }
.report-details-note p { margin: 4px 0 0; color: #46554f; font-size: 8px; line-height: 1.45; }
.report-introduction { break-before: page; page-break-before: always; }
.report-introduction { padding: 34px 0 5px; }
.report-introduction h2 { margin: 0 0 12px; }
.report-introduction div { color: #48554f; font-size: 10px; line-height: 1.75; }
.report-introduction p { margin: 0 0 10px; }
.report-introduction h3 { margin: 15px 0 6px; font-size: 13px; color: var(--ink); }
.report-introduction ul, .report-introduction ol { margin: 6px 0 12px; padding-left: 20px; }
.report-cost-breakdown { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 18px 0 0; }
.report-cost-breakdown div { padding: 12px 14px; border: 1px solid var(--line); background: #f8faf9; }
.report-cost-breakdown span, .report-cost-breakdown strong { display: block; }
.report-cost-breakdown span { color: var(--muted); font-size: 8px; }
.report-cost-breakdown strong { margin-top: 5px; color: var(--green); font-size: 12px; }
.report-contractor { margin: 38px 0; padding: 18px; border: 1px solid var(--line); background: #fbfcfc; break-before: page; page-break-before: always; }
.report-contractor h2 { margin: 0 0 14px; font-size: 16px; }
.report-contractor-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.report-contractor-grid span, .report-contractor-grid strong { display: block; }
.report-contractor-grid span, .report-signature > span { color: var(--muted); font-size: 8px; }
.report-contractor-grid strong { margin-top: 4px; font-size: 10px; }
.report-construction-progress { margin: 0 0 38px; break-before: page; page-break-before: always; }
.report-construction-progress[hidden] { display: none; }
.report-progress-heading { margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--green); }
.report-progress-heading h2 { margin: 4px 0 5px; }
.report-progress-heading p { margin: 0; color: var(--muted); font-size: 9px; }
.report-progress-overview { display: grid; grid-template-columns: 145px 1fr; align-items: center; gap: 22px; }
.report-progress-circle { --progress: 0; width: 132px; height: 132px; padding: 10px; border-radius: 50%; background: conic-gradient(var(--green) calc(var(--progress) * 1%), #e5ece9 0); }
.report-progress-circle > div { display: flex; width: 100%; height: 100%; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; background: white; text-align: center; }
.report-progress-circle strong { font-family: Manrope, sans-serif; font-size: 27px; }
.report-progress-circle span { max-width: 70px; margin-top: 5px; color: var(--muted); font-size: 7px; line-height: 1.3; text-transform: uppercase; }
.report-progress-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.report-progress-kpis > div { min-height: 64px; padding: 12px; border: 1px solid var(--line); background: #f8faf9; }
.report-progress-kpis span, .report-progress-kpis strong { display: block; }
.report-progress-kpis span { color: var(--muted); font-size: 7px; text-transform: uppercase; }
.report-progress-kpis strong { margin-top: 7px; font-size: 12px; }
.report-progress-bars { margin: 17px 0 22px; padding: 13px 15px; background: #edf5f2; }
.report-progress-bars > div { display: flex; justify-content: space-between; margin: 4px 0; color: #31574f; font-size: 8px; }
.report-progress-bars i { display: block; height: 7px; overflow: hidden; border-radius: 99px; background: #d4e1dd; }
.report-progress-bars i b { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.report-progress-bars i.time b { background: #f1a33a; }
.report-construction-progress > h3 { margin: 0 0 10px; font-size: 13px; }
.report-progress-table { width: 100%; border-collapse: collapse; font-size: 7px; }
.report-progress-table th { padding: 8px 7px; color: white; background: var(--green); text-align: left; text-transform: uppercase; }
.report-progress-table td { padding: 8px 7px; border-bottom: 1px solid var(--line); vertical-align: top; }
.report-progress-table td:nth-child(n+2) { white-space: nowrap; }
.report-invoice-section { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.report-invoice-section > h3 { margin: 0 0 5px; font-size: 13px; }
.report-invoice-section > p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.report-invoice-section > h3, .report-invoice-section > p, .report-invoice-kpis { break-inside: avoid; page-break-inside: avoid; }
.report-invoice-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin: 12px 0; }
.report-invoice-kpis > div { padding: 10px; border: 1px solid var(--line); background: #f8faf9; }
.report-invoice-kpis span, .report-invoice-kpis strong { display: block; }
.report-invoice-kpis span { color: var(--muted); font-size: 6px; text-transform: uppercase; }
.report-invoice-kpis strong { margin-top: 5px; font-size: 10px; }
.report-invoice-kpis strong.negative { color: #a8433c; }
.report-invoice-table { font-size: 6px; }
.report-invoice-table thead { display: table-header-group; }
.report-invoice-table tr { break-inside: avoid; page-break-inside: avoid; }
.report-invoice-advice { font-weight: 800; }
.report-invoice-advice.payable { color: #34785e; }
.report-invoice-advice.partial { color: #8d5b2b; }
.report-invoice-advice.not-payable { color: #a8433c; }
.report-invoice-section > small { display: block; margin-top: 8px; color: var(--muted); font-size: 6px; line-height: 1.45; }
.report-signatures-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.report-signature { min-height: 145px; padding: 12px; border: 1px solid var(--line); background: white; break-inside: avoid; page-break-inside: avoid; }
.report-signature img { display: block; width: 100%; height: 62px; margin-top: 7px; object-fit: contain; object-position: left center; }
.report-signature strong { display: block; margin-top: 7px; color: var(--muted); font-size: 9px; }
.report-signature .report-signature-name { min-height: 14px; color: var(--ink); }
.report-signature .report-signature-missing { min-height: 62px; display: flex; align-items: center; color: var(--muted); font-weight: 600; }
.report-signature small { display: block; margin-top: 7px; color: var(--muted); font-size: 7px; }
.report-signature [hidden],
.report-signature img:not([src]) { display: none !important; }
.report-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0 35px; }
.report-summary div { padding: 15px; background: #f3f7f5; }
.report-summary span, .report-summary strong { display: block; }
.report-summary span { color: var(--muted); font-size: 9px; margin-bottom: 6px; }
.report-summary strong { font-size: 12px; }
.report-affiliation-logos { min-height: 58px; margin: auto 0 48px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: flex-end; gap: 22px; }
.report-affiliation-logos[hidden] { display: none; }
.report-affiliation-logos img { max-width: 78px; max-height: 48px; object-fit: contain; }
.report-document h2 { font-size: 20px; }
.report-terms-appendix { break-before: page; page-break-before: always; margin: 45px -65px -55px; padding: 32px 65px 55px; border-top: 0; color: #39433f; }
.pdf-body-clone .report-terms-appendix { margin-top: 0; padding-top: 28px; }
.report-terms-appendix h1 { margin: 8px 0 24px; font-size: 25px; }
.report-appendix-label { color: var(--green-2); font-size: 9px; font-weight: 800; letter-spacing: 1.3px; }
.report-terms-appendix #report-terms-content { column-count: 2; column-gap: 32px; font-size: 6.5px; line-height: 1.45; }
.report-terms-appendix p { margin: 0 0 7px; break-inside: avoid-column; white-space: pre-line; }
.report-findings-title { margin: 34px 0 16px; padding-bottom: 12px; border-bottom: 2px solid var(--green); break-before: page; page-break-before: always; }
.report-findings-title > span { color: var(--green-2); font-size: 8px; font-weight: 800; letter-spacing: 1.1px; }
.report-findings-title h2 { margin: 4px 0 5px; }
.report-findings-title p { margin: 0; color: var(--muted); font-size: 9px; }
.report-findings-list { display: block; }
.report-finding { margin: 0 0 24px; padding: 18px; border: 1px solid #dce4e1; border-radius: 8px; background: white; break-inside: avoid; page-break-inside: avoid; }
.report-finding-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.report-finding-number { color: var(--green-2); font: 800 10px Manrope; }
.report-finding-heading { flex: 1; }
.report-finding-element { display: block; margin-bottom: 3px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.report-finding-heading strong { display: block; font-size: 15px; line-height: 1.3; }
.report-finding-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.report-finding-body { margin-top: 13px; }
.report-finding-description { margin: 0; color: #3f4c47; font-size: 10px; line-height: 1.65; }
.report-finding-location { display: flex; gap: 8px; margin-top: 9px; padding: 8px 10px; border-radius: 6px; background: #edf5f2; color: #3f4c47; font-size: 9px; line-height: 1.5; }
.report-finding-location strong { flex: 0 0 auto; color: var(--green); font-size: 8px; text-transform: uppercase; letter-spacing: .5px; }
.report-finding-work { margin-top: 10px; padding: 10px 12px; border-left: 3px solid var(--green-2); background: #f2f7f5; color: #3f4c47; font-size: 9px; line-height: 1.55; }
.report-finding-work strong { display: block; margin-bottom: 3px; color: var(--green); font-size: 8px; text-transform: uppercase; letter-spacing: .5px; }
.report-finding-meta { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.report-finding-meta > div { min-height: 51px; padding: 9px 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fafcfb; }
.report-finding-meta span, .report-finding-meta strong { display: block; }
.report-finding-meta span { margin-bottom: 4px; color: var(--muted); font-size: 7px; text-transform: uppercase; letter-spacing: .45px; }
.report-finding-meta strong { font-size: 9px; line-height: 1.4; }
.report-finding-cost { margin-top: 12px; padding: 11px 13px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: white; background: var(--green); }
.report-finding-cost span, .report-finding-cost strong { display: block; }
.report-finding-cost span { color: #bdd1ca; font-size: 8px; }
.report-finding-cost small { display: block; margin-top: 3px; color: #dce8e4; font-size: 7px; }
.report-finding-cost strong { font-size: 13px; text-align: right; }
.report-finding-drawing { margin-top: 11px; padding: 10px; border: 1px solid #cedbd6; border-radius: 6px; background: #f8fbfa; break-inside: avoid; page-break-inside: avoid; }
.report-finding-drawing > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.report-finding-drawing strong { color: var(--green); font-size: 8px; text-transform: uppercase; letter-spacing: .5px; }
.report-finding-drawing span { color: var(--muted); font-size: 8px; }
.report-finding-drawing-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 !important; }
.report-finding-drawing figure { position: relative; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: white; }
.report-finding-drawing img { width: 100%; aspect-ratio: 3 / 2; display: block; object-fit: contain; }
.report-finding-drawing figcaption { padding: 5px 7px; color: var(--muted); font-size: 7px; font-weight: 700; }
.report-finding-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 13px; }
.report-finding-photos figure { margin: 0; height: 125px; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: #eef2f0; }
.report-finding-photos img { width: 100%; height: 100%; display: block; object-fit: cover; }
.report-finding-no-photo { margin-top: 12px; padding: 10px 12px; border: 1px dashed #cbd5d1; color: var(--muted); background: #fafcfb; font-size: 8px; text-align: center; }
.report-finding-note { margin-top: 11px; padding: 9px 11px; border-left: 3px solid #d9b56d; background: #fbf6e9; color: #5b4c2f; font-size: 8px; line-height: 1.5; }
.pdf-page-spacer { width: 100%; margin: 0; padding: 0; border: 0; }
.report-nen-section { margin-top: 35px; padding: 18px; border: 1px solid var(--line); background: #fbfcfc; break-inside: avoid; page-break-inside: avoid; }
.report-section-label { display: block; margin-bottom: 5px; color: var(--green-2); font-size: 8px; font-weight: 800; letter-spacing: 1.1px; }
.report-nen-section h2 { margin: 0 0 10px; }
.report-nen-section > p { margin: -5px 0 12px; color: var(--muted); font-size: 8px; }
.report-nen-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 12px; }
.report-nen-item { display: grid; grid-template-columns: 25px 1fr auto; align-items: center; gap: 7px; padding: 8px 9px; background: #f3f7f5; }
.report-nen-item b { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green-2); font-size: 9px; }
.report-nen-item.nen-1 b { background: #2f8d48; }
.report-nen-item.nen-2 b { background: #28c900; }
.report-nen-item.nen-3 b { background: #ffa500; }
.report-nen-item.nen-4 b { background: #ff8700; }
.report-nen-item.nen-5 b { background: #ff5a3d; }
.report-nen-item.nen-6 b { background: #f90808; }
.report-nen-item.nen-8 b,
.report-nen-item.nen-9 b { background: #84cbe4; }
.report-nen-item span { font-size: 9px; }
.report-nen-item small { color: var(--muted); font-size: 8px; }
.report-findings-summary { margin-top: 38px; padding-top: 0; border-top: 0; break-before: page; page-break-before: always; }
.pdf-body-clone .report-findings-summary { margin-top: 0; padding-top: 24px; }
.report-cost-totals-chapter { margin-top: 38px; padding-top: 0; border-top: 0; break-before: page; page-break-before: always; break-inside: avoid; page-break-inside: avoid; }
.pdf-body-clone .report-cost-totals-chapter { margin-top: 0; padding-top: 24px; }
.report-cost-totals-chapter .report-cost-breakdown { margin-top: 18px; }
.report-summary-heading > span { color: var(--green-2); font-size: 8px; font-weight: 800; letter-spacing: 1.1px; }
.report-summary-heading h2 { margin: 4px 0 5px; }
.report-summary-heading p { margin: 0 0 16px; color: var(--muted); font-size: 9px; }
.report-chapter-heading { align-items: center; margin-bottom: 12px; }
.report-chapter-heading > div { min-width: 0; color: inherit; font-size: inherit; line-height: normal; }
.report-introduction .report-chapter-heading h2,
.report-nen-section .report-chapter-heading h2,
.report-findings-title .report-chapter-heading h2,
.report-summary-heading .report-chapter-heading h2 { margin: 2px 0 0; }
.report-findings-title .report-chapter-heading,
.report-summary-heading .report-chapter-heading { margin-bottom: 7px; }
.report-summary-table-wrap { overflow: hidden; border: 1px solid var(--line); }
.report-findings-summary-table { width: 100%; border-collapse: collapse; font-size: 8px; }
.report-findings-summary-table th { padding: 8px 9px; color: white; background: var(--green); text-align: left; font-size: 7px; text-transform: uppercase; letter-spacing: .35px; }
.report-findings-summary-table td { padding: 8px 9px; border-bottom: 1px solid var(--line); vertical-align: top; }
.report-findings-summary-table tr:last-child td { border-bottom: 0; }
.report-findings-summary-table td:first-child { width: 34px; color: var(--green-2); font-weight: 800; }
.report-findings-summary-table td:nth-child(3), .report-findings-summary-table td:nth-child(4) { white-space: nowrap; }
.report-findings-summary-table td:last-child { white-space: nowrap; text-align: right; font-weight: 800; }
.report-summary-finding strong, .report-summary-finding small { display: block; }
.report-summary-finding strong { color: var(--ink); font-size: 8px; }
.report-summary-finding small { margin-top: 3px; color: var(--muted); font-size: 7px; }
.nhg-appendix { margin: 65px -65px -55px; padding: 55px 65px; border-top: 8px solid var(--green); page-break-before: always; break-before: page; }
.nhg-appendix[hidden] { display: none; }
.nhg-title { padding-bottom: 20px; border-bottom: 2px solid var(--green); }
.nhg-title > span { color: var(--green-2); font-size: 10px; font-weight: 800; letter-spacing: 1.3px; }
.nhg-title h1 { margin: 6px 0; font-size: 28px; }
.nhg-title p { margin: 0; color: var(--muted); font-size: 9px; }
.nhg-appendix h2 { margin: 28px 0 12px; font-size: 15px; }
.nhg-admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nhg-admin-grid div { min-height: 64px; padding: 11px 12px; background: #f3f7f5; }
.nhg-admin-grid span, .nhg-admin-grid strong { display: block; }
.nhg-admin-grid span { color: var(--muted); font-size: 8px; }
.nhg-admin-grid strong { margin-top: 5px; font-size: 10px; line-height: 1.45; }
.nhg-appendix table { width: 100%; border-collapse: collapse; font-size: 8px; }
.nhg-appendix th, .nhg-appendix td { padding: 8px 7px; border: 1px solid #cfd8d4; text-align: left; vertical-align: top; }
.nhg-appendix thead th { color: white; background: var(--green); font-weight: 700; }
.nhg-appendix td:nth-last-child(-n+2), .nhg-totals td { text-align: right; white-space: nowrap; }
.nhg-results th:first-child { width: 45px; }
.nhg-results th:nth-child(3) { width: 38px; }
.nhg-results th:nth-child(4) { width: 34px; }
.nhg-notes { margin-top: 18px; padding: 13px; background: #f3f7f5; }
.nhg-notes strong, .nhg-notes p, .nhg-notes small { display: block; }
.nhg-notes strong { font-size: 10px; }
.nhg-notes p { min-height: 26px; margin: 5px 0 8px; font-size: 9px; }
.nhg-notes small { color: var(--muted); font-size: 7px; line-height: 1.45; }
.toast { position: fixed; right: 26px; bottom: 25px; z-index: 80; min-width: 295px; padding: 14px 17px; background: #163d35; color: white; border-radius: 10px; box-shadow: 0 15px 45px rgba(0,0,0,.2); display: flex; align-items: center; gap: 12px; transform: translateY(100px); opacity: 0; transition: .3s; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast > span { width: 25px; height: 25px; border-radius: 50%; background: #4b8b73; display: grid; place-items: center; }
.toast strong, .toast small { display: block; }
.toast strong { font-size: 12px; }
.toast small { color: #b9cec7; margin-top: 3px; font-size: 9px; }
.pip-chat { position: fixed; right: 24px; bottom: 24px; z-index: 250; display: block !important; pointer-events: none; font-family: "DM Sans", sans-serif; }
.pip-chat .pip-toggle, .pip-chat .pip-panel { pointer-events: auto; }
.pip-toggle { width: 86px; height: 58px; border: 0; border-radius: 18px; display: grid; place-content: center; gap: 2px; color: white; background: var(--green); box-shadow: 0 16px 42px rgba(21,58,51,.28); cursor: pointer; }
.pip-toggle span { font: 800 17px Manrope; }
.pip-toggle small { color: #dce9e4; font-size: 8px; font-weight: 700; }
.pip-panel { position: absolute; right: 0; bottom: 72px; width: min(380px, calc(100vw - 32px)); overflow: hidden; border: 1px solid #d6e1dd; border-radius: 16px; background: white; box-shadow: 0 24px 70px rgba(19,41,35,.23); }
.pip-panel[hidden] { display: none; }
.pip-panel header { padding: 16px 17px; display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; color: white; background: var(--green); }
.pip-panel header h2 { margin: 4px 0 0; font-size: 16px; }
.pip-panel header .section-label { color: #f4aa65; }
#pip-close { width: 30px; height: 30px; border: 0; border-radius: 50%; color: white; background: rgba(255,255,255,.12); font-size: 18px; cursor: pointer; }
.pip-messages { max-height: 330px; min-height: 180px; padding: 14px; overflow: auto; display: grid; align-content: start; gap: 10px; background: #f7faf9; }
.pip-message { max-width: 88%; padding: 10px 12px; border-radius: 12px; color: #3f4c47; background: white; border: 1px solid var(--line); font-size: 10px; line-height: 1.55; white-space: pre-line; }
.pip-message.user { justify-self: end; color: white; background: var(--green); border-color: var(--green); }
.pip-message.loading { color: var(--muted); font-style: italic; }
.pip-suggestions { padding: 10px 12px 0; display: flex; flex-wrap: wrap; gap: 6px; background: white; }
.pip-suggestions button { padding: 7px 9px; border: 1px solid #d6e1dd; border-radius: 999px; color: var(--green); background: #f7faf9; font-size: 8px; font-weight: 800; cursor: pointer; }
.pip-form { padding: 12px; display: grid; grid-template-columns: 1fr auto; gap: 8px; background: white; }
.pip-form input { height: 40px; padding: 0 11px; border: 1px solid #d7e1dd; border-radius: 9px; outline: none; font: 500 10px "DM Sans", sans-serif; }
.pip-form input:focus { border-color: #58917f; box-shadow: 0 0 0 3px #edf5f2; }
.pip-form button { min-width: 76px; border: 0; border-radius: 9px; color: white; background: var(--green); font-size: 9px; font-weight: 800; cursor: pointer; }
.pip-form button:disabled { opacity: .55; cursor: wait; }

@media (max-width: 1100px) {
  .inspection-meta > div { padding: 2px 15px; min-width: 120px; }
  .workspace { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-panel { min-height: 100vh; padding: 30px; background: #f4f7f5; }
  .login-card { padding: 30px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow); }
  .login-mobile-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; color: var(--green); font: 800 18px Manrope; }
  .sidebar { transform: translateX(-100%); transition: transform .25s; box-shadow: 10px 0 40px rgba(0,0,0,.18); }
  .sidebar.open { transform: translateX(0); }
  .main { width: 100%; margin: 0; }
  .mobile-menu { display: block; margin-right: 15px; }
  .topbar { justify-content: flex-start; }
  .top-actions { margin-left: auto; }
  .top-actions .new-inspection-button { min-height: 36px; padding: 0 12px; }
  .progress-card { align-items: flex-start; }
  .inspection-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 0; }
  .inspection-meta > div { border: 0; }
  .workspace { grid-template-columns: 1fr; }
  .details-panel { position: static; }
  .commercial-map-layout { height: auto; grid-template-columns: minmax(0, 1fr); }
  .commercial-map-preview { width: 100%; min-height: 360px; height: 360px; }
  .commercial-google-map { width: 100%; min-height: 360px; height: 360px; }
  .commercial-map-preview > img { width: 100%; min-height: 360px; height: 360px; }
  .commercial-map-side { width: 100%; height: auto; overflow: visible; }
  .commercial-map-list { max-height: none; overflow: visible; padding-right: 0; }
}

@media (max-width: 620px) {
  .finding-modal .modal-actions { flex-direction: column-reverse; }
  .finding-modal .modal-actions .button { width: 100%; }
  .finding-location-grid { grid-template-columns: 1fr; }
  .finding-location-preview { grid-template-columns: 1fr; gap: 3px; }
}
@media (max-width: 620px) {
  .login-panel { padding: 0; background: white; }
  .login-card { width: 100%; min-height: 100vh; padding: 35px 24px; border: 0; border-radius: 0; box-shadow: none; }
  .content { padding: 24px 16px 35px; }
  .commercial-map-card { padding: 15px 14px; }
  .commercial-overview-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .commercial-map-layout { gap: 13px; margin-top: 13px; }
  .commercial-map-preview,
  .commercial-google-map,
  .commercial-map-preview > img { min-height: 310px; height: 310px; }
  .commercial-map-legend { gap: 6px; }
  .commercial-map-item { grid-template-columns: 64px minmax(0, 1fr) auto; padding: 9px; }
  .commercial-map-item-thumb { width: 64px; height: 52px; }
  .topbar { height: 60px; padding: 0 16px; }
  .breadcrumbs span, .breadcrumbs b, .sync-status { display: none; }
  .top-actions { gap: 8px; }
  .top-actions .new-inspection-button { font-size: 0; width: 36px; padding: 0; border-radius: 50%; }
  .top-actions .new-inspection-button .button-plus { font-size: 21px; margin: 0; }
  .inspection-heading { align-items: flex-start; flex-direction: column; }
  .heading-actions { width: 100%; }
  .heading-actions .button { flex: 1; padding: 0 10px; }
  .heading-actions { flex-wrap: wrap; }
  .heading-actions .finding-cta { flex-basis: 100%; }
  .panel-heading { align-items: flex-start; }
  .panel-actions { flex-direction: column; }
  .panel-actions .filter-button:first-child { font-size: 0; }
  .panel-actions .filter-button:first-child svg { margin: 0; }
  .progress-card { padding: 16px; flex-direction: column; gap: 20px; }
  .inspection-meta { width: 100%; border-top: 1px solid var(--line); padding-top: 13px; }
  .inspection-meta > div { padding-left: 0; }
  .workspace { display: block; }
  .checklist-panel { margin-bottom: 15px; }
  .details-panel { display: none; }
  .details-panel.mobile-open { display: block; position: fixed; inset: 0; z-index: 30; overflow: auto; border: 0; border-radius: 0; }
  .details-panel.mobile-open .close-details { display: block; }
  .findings-list { max-height: none; }
  .details-footer { position: sticky; bottom: 0; }
  .form-row, .address-row, .report-summary { grid-template-columns: 1fr; }
  .handover-grid, .contractor-relation-summary, .signatures-grid, .report-contractor-grid, .report-signatures-grid, .construction-progress-settings, .construction-progress-kpis, .construction-invoice-kpis, .report-invoice-kpis { grid-template-columns: 1fr; }
  .handover-heading { align-items: stretch; flex-direction: column; }
  .handover-heading .signature-status { width: fit-content; }
  .construction-progress-heading, .construction-progress-footer { align-items: stretch; flex-direction: column; }
  .construction-invoices-heading { align-items: stretch; flex-direction: column; }
  .construction-progress-actions { justify-content: flex-start; }
  .construction-progress-dashboard { grid-template-columns: 1fr; justify-items: center; }
  .construction-progress-kpis { width: 100%; }
  .inspection-modal { max-height: 100vh; height: 100%; border-radius: 0; padding: 22px 18px; }
  .company-modal { max-height: 100vh; height: 100%; border-radius: 0; padding: 22px 18px; }
  .cover-photo-modal { max-height: 100vh; height: 100%; border-radius: 0; padding: 22px 18px; }
  #company-modal { padding: 0; align-items: stretch; }
  #cover-photo-modal { padding: 0; align-items: stretch; }
  .company-form-layout { grid-template-columns: 1fr; }
  .company-branding-fields { padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .finding-modal, .library-modal { max-height: 100vh; height: 100%; border-radius: 0; padding: 22px 18px; }
  #finding-modal, #library-modal { padding: 0; align-items: stretch; }
  .defect-picker-heading { align-items: stretch; flex-direction: column; }
  .defect-picker-heading input { width: 100%; }
  .defect-suggestions { grid-template-columns: 1fr; }
  .quantity-fields { grid-template-columns: 1fr; }
  .finding-photo-previews, .finding-photos { grid-template-columns: repeat(3, 1fr); }
  .photo-upload-actions { flex-direction: column; }
  .ai-actions .button { flex: 1; }
  .unit-price-fields, .library-rate-fields { grid-template-columns: 1fr; }
  .nen-calculation-grid { grid-template-columns: 1fr; }
  .calculation-preview { flex-direction: column; }
  .calculation-preview > div:last-child { text-align: left; }
  .library-toolbar { align-items: stretch; flex-direction: column; }
  .library-toolbar label { max-width: none; }
  .library-card { grid-template-columns: 1fr; }
  .library-footer { flex-direction: column; gap: 5px; }
  #inspection-modal { padding: 0; align-items: stretch; }
  .form-section { grid-template-columns: 25px 1fr; gap: 10px; }
  .inspection-type-options { grid-template-columns: 1fr; }
  .inspection-type-options .coming-soon { grid-column: auto; }
  .inspection-modal .modal-actions { position: sticky; bottom: -22px; margin: 10px -18px -22px; padding: 13px 18px; border-top: 1px solid var(--line); background: white; }
  .inspection-modal .modal-actions .button { flex: 1; padding: 0 10px; }
  .placeholder-actions { flex-direction: column; }
  .dashboard-view { padding: 22px 18px; }
  .dashboard-heading { flex-direction: column; }
  .commercial-kpis { grid-template-columns: 1fr; }
  .commercial-activity-item { grid-template-columns: 82px minmax(0, 1fr) auto; gap: 10px; }
  .commercial-activity-status { grid-column: 2; }
  .commercial-activity-amount { grid-column: 3; grid-row: 1 / 3; }
  .report-settings-view { padding: 22px 18px 40px; }
  .report-settings-heading { flex-direction: column; }
  .report-settings-layout { grid-template-columns: 1fr; }
  .report-template-sidebar { position: static; }
  #report-template-types { grid-template-columns: 1fr 1fr; }
  .report-editor-card { padding: 19px; }
  .report-editor-heading { flex-direction: column; }
  .wws-template-tabs { display: grid; grid-template-columns: 1fr; }
  .wws-template-current { align-items: flex-start; flex-direction: column; }
  .report-editor-actions { flex-direction: column-reverse; }
  .report-editor-actions .button { width: 100%; }
  .clients-view { padding: 22px 18px 40px; }
  .quotes-view { padding: 22px 18px 40px; }
  .quotes-heading { align-items: stretch; flex-direction: column; }
  .quote-workspace { grid-template-columns: 1fr; }
  .quote-preview-card { position: static; }
  .quote-archive-heading { align-items: stretch; flex-direction: column; }
  .quote-archive-heading label { width: 100%; }
  .quote-archive-item { grid-template-columns: 1fr; gap: 10px; }
  .quote-archive-actions { justify-content: flex-end; }
  .quote-pricing-settings-grid, .travel-band-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clients-heading, .clients-toolbar { align-items: stretch; flex-direction: column; }
  .clients-heading .button { width: 100%; }
  .clients-stat { text-align: left; }
  .clients-list, .client-form-grid { grid-template-columns: 1fr; }
  .client-modal { max-height: 100vh; height: 100%; border-radius: 0; padding: 22px 18px; }
  #client-modal { padding: 0; align-items: stretch; }
  .delivery-modal { max-height: 100vh; height: 100%; border-radius: 0; padding: 22px 18px; }
  #delivery-modal { padding: 0; align-items: stretch; }
  .delivery-form-grid { grid-template-columns: 1fr; }
  .delivery-form-grid .wide { grid-column: auto; }
  .delivery-summary { grid-template-columns: 1fr; }
  .delivery-email-heading { align-items: stretch; flex-direction: column; }
  .inspection-overview-stats { grid-template-columns: repeat(2, 1fr); }
  .inspection-overview-filters { overflow-x: auto; }
  .inspection-overview-card { grid-template-columns: 1fr; gap: 12px; }
  .progress-history-item { grid-template-columns: 34px 1fr auto; }
  .progress-history-progress { display: none; }
  .overview-meta { --overview-label-width: 88px; width: 100%; }
  .overview-actions .button { flex: 1; }
  .report-document { padding: 35px 25px; }
  .nhg-appendix { margin: 45px -25px -35px; padding: 35px 25px; }
  .report-terms-appendix { margin: 45px -25px -35px; padding: 35px 25px; }
  .report-terms-appendix #report-terms-content { column-count: 1; font-size: 7px; }
  .nhg-admin-grid { grid-template-columns: 1fr; }
  .report-toolbar { align-items: flex-start; }
  .report-toolbar > strong { display: none; }
  .report-toolbar > div { width: 100%; }
  .report-toolbar .button { flex: 1; }
  .report-finding-header { flex-direction: column; }
  .report-finding-badges { justify-content: flex-start; }
  .report-finding-meta { grid-template-columns: repeat(2, 1fr); }
  .report-finding-photos { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .commercial-overview-heading { align-items: stretch; flex-direction: column; }
  .commercial-overview-heading > span { width: fit-content; }
  .commercial-activity-item { grid-template-columns: 1fr auto; }
  .commercial-activity-type { grid-column: 1; }
  .commercial-activity-main { grid-column: 1 / -1; }
  .commercial-activity-status { grid-column: 1; }
  .commercial-activity-amount { grid-column: 2; grid-row: 1; }
  .quote-form-grid { grid-template-columns: 1fr; }
  .quote-form-grid .wide { grid-column: auto; }
  .quote-travel-calculation { align-items: stretch; flex-direction: column; }
  .quote-pricing-settings-grid, .travel-band-grid { grid-template-columns: 1fr; }
  .quote-archive-actions { justify-content: stretch; }
  .quote-archive-actions button { flex: 1; }
  .quote-form-actions { flex-direction: column; }
  .quote-form-actions .button { width: 100%; }
  .quote-email-heading { flex-direction: column; }
}

@media print {
  body * { visibility: hidden; }
  .report-document, .report-document * { visibility: visible; }
  .report-document { position: absolute; inset: 0; padding: 30px; }
  .report-terms-appendix { margin: 45px -30px -30px; padding: 35px 30px; }
  .report-toolbar { display: none; }
}

.admin-view { padding: 42px 46px 70px; background: #f6f8f7; min-height: calc(100vh - 72px); }
.admin-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; margin-bottom: 24px; }
.admin-heading h1 { margin: 5px 0 8px; font: 800 30px Manrope, sans-serif; color: #17231f; }
.admin-heading p { max-width: 720px; margin: 0; color: #66736f; }
.admin-secure-badge { padding: 9px 13px; border: 1px solid #bdd8cf; border-radius: 999px; color: #276c5b; background: #edf7f3; font-size: 11px; font-weight: 800; white-space: nowrap; }
.admin-notice { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; padding: 17px 20px; border: 1px solid #cfe0da; border-radius: 11px; color: #37534b; background: #edf5f2; }
.admin-notice strong { flex: none; color: #173f35; }
.admin-notice span { font-size: 12px; line-height: 1.6; }
.admin-notice code { padding: 2px 5px; border-radius: 5px; color: #17473c; background: #dcece6; font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; }
.admin-overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.admin-overview-grid article { padding: 16px 18px; border: 1px solid #d5e2dd; border-radius: 12px; background: #fff; box-shadow: 0 8px 26px rgba(26, 57, 49, .04); }
.admin-overview-grid span, .admin-overview-grid small { display: block; color: #74807d; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.admin-overview-grid strong { display: block; margin: 7px 0 5px; color: #173f35; font: 900 16px Manrope, sans-serif; }
.admin-overview-grid small { font-weight: 700; letter-spacing: 0; text-transform: none; }
.admin-service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.admin-service-card { padding: 22px; border: 1px solid #dce5e2; border-radius: 13px; background: #fff; box-shadow: 0 8px 26px rgba(26, 57, 49, .04); }
.admin-service-heading { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: start; gap: 13px; margin-bottom: 20px; }
.admin-service-heading h2 { margin: 1px 0 4px; font: 800 16px Manrope, sans-serif; color: #1b2925; }
.admin-service-heading p { margin: 0; color: #74807d; font-size: 11px; line-height: 1.5; }
.admin-service-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: #183f36; font-size: 11px; font-weight: 900; }
.admin-service-icon.maps { background: #39815f; }
.admin-service-icon.apple { background: #111; font-size: 18px; }
.admin-service-icon.microsoft { background: #2f6fd6; font-size: 11px; }
.admin-service-icon.altum { background: #d18443; }
.admin-service-icon.ep { background: #446b91; }
.admin-status { padding: 6px 9px; border-radius: 999px; color: #7a6854; background: #f4eee7; font-size: 9px; font-weight: 800; white-space: nowrap; }
.admin-status.configured { color: #256653; background: #e6f3ee; }
.admin-status.missing { color: #995044; background: #faebe8; }
.admin-status.testing { color: #755e35; background: #faf1dd; }
.admin-service-card label { display: grid; gap: 7px; margin-top: 12px; color: #4e5c58; font-size: 10px; font-weight: 800; }
.admin-service-card input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #d5dedb; border-radius: 8px; color: #26332f; background: #fbfcfc; font: 12px "DM Sans", sans-serif; }
.admin-service-card input:focus { outline: 2px solid rgba(39, 108, 91, .15); border-color: #4d8a7a; }
.admin-current-key { min-height: 35px; margin-top: 13px; padding: 10px 12px; border-radius: 8px; color: #64716d; background: #f4f7f6; font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; }
.admin-card-actions { display: flex; justify-content: flex-end; margin-top: 16px; }
.admin-card-actions .button { min-width: 130px; }
.admin-save-bar { position: sticky; bottom: 18px; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 22px; padding: 16px 18px; border: 1px solid #cbdad5; border-radius: 12px; color: #fff; background: #173f35; box-shadow: 0 14px 35px rgba(14, 45, 37, .2); }
.admin-save-bar strong, .admin-save-bar span { display: block; }
.admin-save-bar span { margin-top: 3px; color: #b9cbc6; font-size: 10px; }
.admin-library-card { margin-top: 24px; padding: 22px; border: 1px solid #d5e2dd; border-radius: 13px; background: #fff; box-shadow: 0 8px 26px rgba(26, 57, 49, .04); }
.admin-library-heading { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: start; gap: 13px; }
.admin-service-icon.library { background: #b97535; font-size: 8px; letter-spacing: .04em; }
.admin-library-heading h2 { margin: 4px 0 5px; font: 800 17px Manrope, sans-serif; color: #1b2925; }
.admin-library-heading p { max-width: 760px; margin: 0; color: #74807d; font-size: 11px; line-height: 1.55; }
.admin-library-notice { display: flex; align-items: center; gap: 16px; margin-top: 20px; padding: 13px 15px; border-radius: 9px; color: #53625e; background: #f4f7f6; font-size: 11px; }
.admin-library-notice strong { color: #253b35; white-space: nowrap; }
.admin-library-notice code { padding: 2px 4px; border-radius: 4px; color: #245d4f; background: #e5efeb; }
.admin-library-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; margin-top: 17px; }
.subscription-admin-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.subscription-admin-summary article, .subscription-api-item, .subscription-admin-item { padding: 14px; border: 1px solid #dce5e2; border-radius: 10px; background: #f8fbfa; }
.subscription-admin-summary span, .subscription-api-item span, .subscription-admin-item span { display: block; color: #71807b; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.subscription-admin-summary strong { display: block; margin-top: 4px; color: #153b32; font: 900 22px Manrope, sans-serif; }
.subscription-admin-pricing { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: end; margin-top: 18px; }
.subscription-admin-pricing label { display: grid; gap: 7px; color: #4e5c58; font-size: 10px; font-weight: 800; }
.subscription-admin-pricing input { height: 42px; padding: 0 12px; border: 1px solid #d5dedb; border-radius: 8px; background: #fbfcfc; }
.subscription-admin-columns { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; margin-top: 22px; }
.subscription-admin-columns h3 { margin: 0 0 10px; font: 800 14px Manrope, sans-serif; color: #1b2925; }
.subscription-admin-list-empty { padding: 14px; border-radius: 10px; color: #71807b; background: #f4f7f6; font-size: 12px; }
.subscription-admin-item { margin-bottom: 9px; }
.subscription-admin-item strong, .subscription-api-item strong { display: block; margin-top: 4px; color: #1c302b; }
.subscription-admin-item small, .subscription-api-item small { display: block; margin-top: 4px; color: #71807b; }
.subscription-modal { width: min(980px, 100%); max-height: calc(100vh - 40px); overflow: auto; }
.subscription-plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0; }
.subscription-plan-card { position: relative; padding: 18px; border: 1px solid #d9e4df; border-radius: 14px; background: #f9fbfa; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.subscription-plan-card:hover { transform: translateY(-1px); border-color: #79aa9b; box-shadow: 0 12px 28px rgba(22, 63, 53, .08); }
.subscription-plan-card.selected { border-color: #1d6f5c; background: #eef8f4; box-shadow: 0 0 0 3px rgba(29, 111, 92, .12); }
.subscription-plan-card input { position: absolute; opacity: 0; pointer-events: none; }
.subscription-plan-card h3 { margin: 0; font: 900 17px Manrope, sans-serif; color: #142b25; }
.subscription-plan-price { display: block; margin: 12px 0 4px; color: #123e34; font: 900 28px Manrope, sans-serif; }
.subscription-plan-price small { font-size: 12px; font-weight: 700; color: #6c7a76; }
.subscription-plan-card p { min-height: 48px; margin: 8px 0 12px; color: #66736f; font-size: 12px; line-height: 1.5; }
.subscription-plan-card ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; color: #2d4f47; font-size: 11px; font-weight: 700; }
.subscription-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.subscription-form-grid label { display: grid; gap: 7px; color: #4e5c58; font-size: 10px; font-weight: 800; }
.subscription-form-grid input, .subscription-form-grid select { height: 42px; padding: 0 12px; border: 1px solid #d5dedb; border-radius: 8px; background: #fbfcfc; font: 12px "DM Sans", sans-serif; }
.subscription-checkout-note { margin-top: 16px; padding: 13px 15px; border: 1px solid #cfe0da; border-radius: 10px; color: #37534b; background: #edf5f2; font-size: 12px; line-height: 1.5; }
.admin-mode .main-nav .nav-item:not(#admin-console-nav), .admin-mode #company-settings-button, .admin-mode #profile-company-settings, .admin-mode .top-actions { display: none; }
.admin-mode .breadcrumbs b { display: none; }
body:not(.admin-mode) #admin-console-nav { display: none !important; }

@media (max-width: 900px) {
  .admin-view { padding: 25px 20px 45px; }
  .admin-service-grid { grid-template-columns: 1fr; }
  .admin-heading, .admin-notice, .admin-save-bar { align-items: stretch; flex-direction: column; }
  .admin-secure-badge { width: fit-content; }
  .admin-save-bar .button { width: 100%; }
  .admin-library-heading { grid-template-columns: 42px minmax(0, 1fr); }
  .admin-library-heading .admin-status { grid-column: 2; width: fit-content; }
  .admin-library-notice { align-items: flex-start; flex-direction: column; gap: 5px; }
  .admin-library-actions { align-items: stretch; flex-direction: column; }
  .admin-library-actions .button { width: 100%; }
  .admin-overview-grid, .subscription-admin-summary, .subscription-admin-pricing, .subscription-admin-columns, .subscription-plan-grid, .subscription-form-grid { grid-template-columns: 1fr; }
}
