/* DNP layout extends the original VKR components and theme tokens. */
a{color:var(--orange)}h1{font-size:clamp(28px,4vw,42px);letter-spacing:-.035em;line-height:1.15}.dnp-nav,.dnp-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.dnp-nav{margin-bottom:32px}.dnp-actions form,.topbar form{margin:0}.dnp-space{margin-top:22px}.dnp-row{display:flex;flex-direction:column;gap:5px;padding:18px 0;border-bottom:1px solid var(--border);text-decoration:none;color:var(--text);overflow-wrap:anywhere}.dnp-row:last-child{border-bottom:0}.dnp-row span{color:var(--muted);font-size:14px}.dnp-row:hover strong{color:var(--orange)}.dnp-list .dnp-row{flex-direction:row;justify-content:space-between;align-items:center}.dnp-row>div{display:flex;flex-direction:column;gap:5px}.dnp-search{margin-bottom:22px}.dnp-search>div{display:flex;gap:10px;margin-top:8px}.dnp-search input{flex:1;min-width:0}.dnp-pagination{display:flex;justify-content:center;align-items:center;gap:20px;margin-top:22px}.dnp-columns{display:grid;grid-template-columns:2fr 1fr;gap:20px;align-items:start}.dnp-event{padding:18px 0;border-bottom:1px solid var(--border);overflow-wrap:anywhere}.dnp-event:last-child{border:0}input,select,textarea{background:var(--bg);color:var(--text);border:1px solid var(--border);border-radius:10px;padding:12px;font:inherit;max-width:100%}textarea{width:100%;min-height:120px}.form-stack p{margin:0 0 14px}.form-stack label{display:block;margin-bottom:7px}.form-stack input:not([type=checkbox]){width:100%}.form-stack input[type=checkbox]{width:22px;min-height:22px}.helptext{display:block;color:var(--muted);font-size:13px;margin-top:5px}.errorlist{color:#ed745f}input:focus,select:focus,textarea:focus{outline:2px solid var(--orange);outline-offset:2px}dd{margin:0 0 12px;overflow-wrap:anywhere}dt{font-size:13px;color:var(--muted)}progress{display:block;width:100%;height:20px;margin:12px 0 18px;accent-color:var(--orange)}button:disabled{opacity:.55;cursor:default}.section-heading{align-items:center}.section-heading h1{margin:0}.activity-grid{align-items:start}.dnp-actions .button{height:auto} @media(max-width:760px){.dnp-columns{grid-template-columns:1fr}.section-heading{flex-wrap:wrap}.dnp-list .dnp-row{align-items:flex-start;flex-direction:column}.topbar{position:static}.brand span{display:none}.topbar-right{gap:8px}.user-label{max-width:110px}}

/* Compact company directory; keep the original VKR palette and typography. */
.company-directory .directory-heading{margin-bottom:14px;gap:12px}
.company-directory h1{font-size:26px;line-height:1.2}
.directory-count{display:inline-block;margin-left:8px;font-size:14px;font-weight:400;color:var(--muted);vertical-align:middle}
.company-directory .directory-search{margin-bottom:16px}
.directory-search label{font-size:13px}
.directory-search>div{margin-top:5px}
.directory-search input{padding:8px 11px;font-size:14px}
.company-directory .button{min-height:36px;padding:7px 12px;font-size:14px}
.directory-companies{list-style:none;padding:0;margin:0;font-size:13px;line-height:1.4}
.directory-companies li{margin:0;border:0}
.directory-companies a{display:block;padding:6px 8px;border-radius:5px;color:var(--text);text-decoration:none;overflow-wrap:anywhere}
.directory-companies strong{font-weight:700}
.directory-separator{padding:0 6px;color:var(--muted)}
.directory-location{color:var(--muted)}
.directory-companies a:hover{background:var(--panel-2)}
.directory-companies a:hover strong{color:var(--orange)}
.directory-companies a:focus-visible{outline:2px solid var(--orange);outline-offset:1px}
.directory-companies .directory-empty{padding:16px 8px;color:var(--muted)}
.company-directory .directory-pagination{margin-top:12px;justify-content:space-between;gap:12px;font-size:13px;flex-wrap:wrap}
.directory-page-controls,.directory-page-jump{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.directory-page-jump{margin:0}
.directory-page-jump input[type=number]{width:64px;padding:7px;font-size:13px;min-height:36px}
@media(max-width:760px){.company-directory h1{font-size:23px}.directory-page-controls{gap:6px}.directory-pagination>.muted{width:100%}}

/* Customer card: dense information, generous touch targets. */
.customer-page .page-shell{padding-top:14px;padding-bottom:24px}
.customer-page .dnp-nav{margin-bottom:10px;gap:8px}
.customer-card{font-size:14px;line-height:1.4}
.customer-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.customer-title{min-width:0}
.customer-back{display:inline-flex;align-items:center;min-height:44px;text-decoration:none;font-size:13px}
.customer-title h1{font-size:26px;line-height:1.15;margin:0;overflow-wrap:anywhere}
.customer-address{margin:5px 0 0;font-size:13px;overflow-wrap:anywhere}
.customer-actions{display:flex;gap:8px;flex-wrap:wrap;flex-shrink:0}
.customer-card .button{min-height:44px;padding:9px 12px;font-size:14px;white-space:normal}
.customer-overview{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start}
.customer-card .panel{padding:12px 16px;border-radius:10px;box-shadow:none}
.customer-card h2{font-size:17px;line-height:1.3;margin:0}
.customer-section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;margin-bottom:2px}
.customer-company>h2{margin:0 0 8px;min-height:44px;display:flex;align-items:center}
.customer-facts{display:grid;grid-template-columns:68px minmax(0,1fr);gap:6px 8px;margin:0;align-items:baseline}
.customer-facts dt{font-size:13px}
.customer-facts dd{margin:0;font-size:14px;overflow-wrap:anywhere}
.customer-phone{color:var(--text);text-decoration:none}
.customer-phone:hover{text-decoration:underline;color:var(--orange)}
.customer-facts .customer-phone{display:inline-flex;align-items:center;min-height:44px;margin:-8px 0}
.customer-details{margin-top:8px;font-size:13px}
.customer-details summary{min-height:44px;align-content:center;cursor:pointer;color:var(--muted)}
.customer-details p{margin:8px 0;overflow-wrap:anywhere}
.customer-details .button{margin-top:6px}
.customer-person{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:7px 0}
.customer-person-copy{min-width:0;overflow-wrap:anywhere}
.customer-person-copy strong{display:block;font-size:14px}
.customer-position{display:block;font-size:12px;margin-top:1px}
.customer-person-contact{display:flex;align-items:center;column-gap:14px;flex-wrap:wrap}
.customer-person-contact a{display:inline-flex;align-items:center;min-height:44px;font-size:13px;overflow-wrap:anywhere;max-width:100%}
.customer-person>.button{flex-shrink:0}
.customer-empty{margin:6px 0;color:var(--muted);font-size:13px}
.customer-threads{margin-top:12px}
.customer-thread{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:48px;padding:8px 0;color:var(--text);text-decoration:none;overflow-wrap:anywhere}
.customer-thread:hover strong{color:var(--orange)}
.customer-thread-meta{flex-shrink:0;color:var(--muted);font-size:12px}
.customer-live{color:var(--green)}
.customer-configurator{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:10px;font-size:12px}
.customer-card a:focus-visible,.customer-card summary:focus-visible{outline:2px solid var(--orange);outline-offset:3px}
@media(max-width:900px){.customer-heading{align-items:flex-start;flex-wrap:wrap}.customer-actions{width:100%}.customer-title h1{font-size:24px}}
@media(max-width:680px){.customer-overview{grid-template-columns:1fr}.customer-card .panel{padding:10px 12px}.customer-thread{align-items:flex-start;flex-direction:column;gap:3px}.customer-configurator{align-items:flex-start;flex-wrap:wrap}.customer-actions .button{flex:1}.customer-person-contact{column-gap:10px}}

.customer-right-column{display:grid;gap:12px;min-width:0}
.customer-matrix .matrix-scroll{max-height:280px;overflow:auto;scrollbar-gutter:stable}
.matrix-table{width:100%;border-collapse:separate;border-spacing:0;font-size:13px;table-layout:fixed}
.matrix-table thead th{position:sticky;top:0;z-index:1;background:var(--panel);height:28px;color:var(--muted);font-weight:500}
.matrix-table th:first-child{text-align:left;width:auto;overflow-wrap:anywhere;padding-right:8px}
.matrix-table thead th:not(:first-child){width:70px;text-align:center}
.matrix-table tbody th{font-weight:500;font-size:12px}
.matrix-table td{text-align:center;vertical-align:middle;padding:0}
.matrix-check{display:flex;align-items:center;justify-content:center;min-height:28px;width:100%;cursor:pointer}
.matrix-check input[type=checkbox]{width:14px;height:14px;padding:0;margin:0;accent-color:var(--orange);cursor:pointer}
.matrix-check input:disabled{opacity:.35;cursor:default}
.matrix-table .errorlist{font-size:12px;padding:0;list-style:none;overflow-wrap:anywhere}
.matrix-notes{margin-top:8px}
.matrix-notes label{display:block;font-size:13px;margin-bottom:5px}
.customer-matrix textarea{min-height:64px;font-size:13px;padding:6px;width:100%;display:block}
.matrix-save{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:8px;flex-wrap:wrap}
.matrix-status{font-size:12px}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:420px){.matrix-table thead th:not(:first-child){width:62px}.customer-matrix .customer-section-heading{flex-wrap:wrap}}
.directory-technology-filters{margin-top:8px;font-size:13px}
.directory-technology-filters summary{cursor:pointer;min-height:44px;align-content:center;color:var(--muted)}
.technology-filter-fields{display:flex;gap:8px;align-items:flex-end;flex-wrap:wrap}
.technology-filter-fields p{margin:0}
.technology-filter-fields label{display:block;margin-bottom:4px}
.technology-filter-fields select{font-size:13px;padding:8px;min-height:44px}
.company-directory .technology-filter-fields .button{min-height:44px}
.technology-edit-row{margin-bottom:12px;align-items:center}
.technology-edit-row input[type=number]{width:90px}
.technology-active{display:flex!important;align-items:center;gap:8px;min-height:44px;cursor:pointer}
.technology-active input{width:22px;height:22px;accent-color:var(--orange)}
.contact-sources{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin:5px 0 0}
.contact-source{display:inline-block;padding:2px 7px;font-size:11px;line-height:1.4;vertical-align:middle;white-space:normal;overflow-wrap:anywhere}
.directory-companies .contact-source{font-size:10px;margin-left:6px}
.contact-channels{display:flex;flex-wrap:wrap;align-items:center;column-gap:12px;row-gap:0}
.contact-channel{display:inline-flex;align-items:center;min-height:44px;color:var(--text);font-size:13px;gap:5px;max-width:100%;overflow-wrap:anywhere}
.contact-channel[href]{text-decoration:none}
.contact-channel[href]:hover{color:var(--orange);text-decoration:underline}
.contact-review{color:var(--orange);font-size:11px}
.customer-facts:has(.contact-channels){align-items:center;row-gap:0}

.customer-card .customer-matrix{padding:9px 12px}
.customer-matrix .customer-section-heading{min-height:32px;margin-bottom:0}
.customer-matrix .customer-section-heading h2{font-size:16px}
.customer-card .customer-matrix .button{min-height:34px;padding:6px 10px;font-size:13px}
.customer-matrix .matrix-notes{margin-top:5px}
.customer-matrix .matrix-notes label{font-size:12px;margin-bottom:3px}
.customer-matrix .matrix-save{margin-top:5px}

/* Primary navigation shares the top bar instead of occupying the content area. */
.topbar{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:14px;padding:10px clamp(14px,2.5vw,32px)}
.topbar .brand{font-size:15px;white-space:nowrap}
.topbar .brand span{display:inline;font-size:13px;padding-left:10px}
.topbar .dnp-nav{display:flex;justify-content:flex-start;align-items:center;gap:6px;margin:0;flex-wrap:nowrap;min-width:0}
.topbar .button{min-height:36px;padding:7px 10px;font-size:13px;white-space:nowrap}
.topbar .dnp-nav .button{flex-shrink:0}
.topbar .dnp-nav>:first-child{margin-inline-start:auto}
.topbar .topbar-right{gap:8px;flex-wrap:nowrap}
.topbar .user-label{font-size:12px;white-space:nowrap}
.topbar:not(:has(.dnp-nav)){grid-template-columns:1fr auto}
@media(max-width:1380px){.topbar{grid-template-columns:auto minmax(0,1fr);gap:8px}.topbar .topbar-right{grid-column:2;grid-row:1;justify-content:flex-end}.topbar .dnp-nav{grid-column:1/-1;grid-row:2;justify-content:flex-start;overflow-x:auto;padding:1px 2px;scrollbar-width:thin}}
@media(max-width:560px){.topbar .brand span{display:none}.topbar .user-label{display:none}.topbar .button{padding:7px 9px}}
@media(pointer:coarse){.topbar .button{min-height:44px}}

.turbo-button,.topbar .turbo-button{background:#c51924;color:#fff!important;border:1px solid #c51924;font-weight:700!important}
.turbo-button:hover,.topbar .turbo-button:hover{background:#a80e18;border-color:#a80e18}
.critical-task{border-left:3px solid #df3945;padding-left:12px}
.critical-task strong{color:#df3945}
.turbo-shell{max-width:820px;margin:0 auto}
.turbo-shell h1{font-size:28px;margin:0}
.turbo-shell .panel{padding:16px}
.turbo-shell .activity-grid{gap:10px}
.turbo-shell .form-stack input{min-height:44px;padding:10px}
.turbo-shell .form-stack p{margin-bottom:10px}
.turbo-shell summary{min-height:44px;align-content:center;cursor:pointer}
#turbo-suggestions{display:flex;flex-wrap:wrap;gap:6px}
#turbo-match{font-size:13px;margin:5px 0 10px}

/* Dense dashboard: one linked line per item, scoped away from customer cards. */
.dashboard-page .dashboard-heading{margin-bottom:14px;gap:10px}
.dashboard-heading h1{font-size:26px;line-height:1.2}
.dashboard-heading .eyebrow{margin:0 0 4px;font-size:11px}
.dashboard-heading .muted{margin:5px 0 0;font-size:13px}
.dashboard-heading .button{min-height:36px;padding:7px 12px;font-size:14px}
.dashboard-grid{gap:10px}
.dashboard-page .dashboard-panel{padding:10px 12px;min-width:0}
.dashboard-panel h2{margin:0 0 5px;color:var(--orange);font-size:14px;font-weight:700!important;line-height:1.3;letter-spacing:.035em}
.dashboard-row{display:flex;align-items:center;gap:5px;min-height:26px;padding:3px 2px;color:var(--text);font-size:13px;line-height:1.4;text-decoration:none;white-space:nowrap;min-width:0}
.dashboard-row strong,.dashboard-contact{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dashboard-row strong{font-weight:700;flex:0 1 auto}
.dashboard-contact{font-weight:400;flex:0 1 auto}
.dashboard-separator{flex:none;font-weight:400}
.dashboard-row.dashboard-critical{color:#d72c3a}
[data-theme="dark"] .dashboard-row.dashboard-critical{color:#ff717b}
.dashboard-row:hover,.dashboard-row:focus-visible,.dashboard-row.dashboard-critical:hover,.dashboard-row.dashboard-critical:focus-visible{color:var(--orange)}
.dashboard-row:focus-visible{outline:2px solid var(--orange);outline-offset:1px;border-radius:3px}
.dashboard-empty{margin:3px 0 0;color:var(--muted);font-size:13px;line-height:1.5}
@media(max-width:760px){.dashboard-grid{grid-template-columns:1fr}}
@media(pointer:coarse){.dashboard-row{min-height:32px}}
.contact-scanner{margin:0 0 14px;padding:10px 12px;border:1px solid var(--border);border-radius:8px}
.contact-scanner h2{margin:0 0 7px;color:var(--orange);font-size:14px;font-weight:700!important}
.contact-scanner .button{min-height:36px;padding:7px 10px;font-size:13px}
.contact-scanner p{margin:8px 0 0;font-size:13px}
.contact-scanner input[type=file]{padding:6px;min-height:36px}
.contact-scanner video{display:block;width:100%;max-width:560px;margin:8px 0}
.contact-scanner #readBusinessCardButton{margin-top:8px}
.turbo-shell details .contact-scanner{margin-top:6px;margin-bottom:0}
.contact-scanner [hidden]{display:none!important}
/* Match Configurator branding; the shared theme reverses the white wordmark in light mode. */
.topbar .brand img{display:block;width:104px;height:auto;max-height:45px;flex:none;object-fit:contain;object-position:left center}

/* Compact customer thread and timeline for tablet use. */
.thread-page .page-heading{margin:8px 0 10px}
.thread-page .page-heading h1{font-size:26px;line-height:1.2;margin:0}
.thread-page .page-heading .eyebrow{font-size:11px;margin:0 0 3px}
.thread-page .page-heading .muted{font-size:12px;margin:4px 0 0}
.thread-page .dnp-actions{gap:6px}
.thread-page .dnp-actions .button,.thread-tasks .button{min-height:34px;padding:6px 10px;font-size:12px}
.thread-columns{margin-top:10px;gap:10px}
.thread-columns>.panel{padding:10px 12px;min-width:0}
.thread-columns h2{margin:0 0 5px;color:var(--orange);font-size:14px;line-height:1.3;font-weight:700!important;letter-spacing:.035em}
.thread-columns .dnp-event{padding:5px 0;border:0;font-size:13px;line-height:1.4}
.thread-timeline .event-meta{margin:0 0 2px;color:var(--muted);font-size:11px;line-height:1.3}
.event-text p{margin:0 0 3px;overflow-wrap:anywhere}
.event-text p:last-child{margin-bottom:0}
.event-attachments{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin-top:4px}
.event-attachments:not(:has(a)){display:none}
.document-pill{display:inline-flex;align-items:center;gap:4px;max-width:100%;min-height:24px;padding:3px 8px;border:1px solid rgba(77,159,227,.35);border-radius:999px;background:rgba(77,159,227,.09);color:var(--blue);font-size:11px;line-height:1.3;text-decoration:none;font-weight:500}
.document-pill>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:240px}
.document-pill .document-icon{width:13px;height:13px;flex:none}
.document-pill .document-lock{width:10px;height:10px;flex:none;opacity:.8}
.document-pill:hover{color:var(--orange);border-color:var(--orange)}
.document-pill:focus-visible{outline:2px solid var(--orange);outline-offset:2px}
.thread-tasks .dnp-event p{margin:2px 0 4px}
.thread-tasks>p{font-size:12px;margin:3px 0;color:var(--muted)}
.thread-tasks .state-tag{padding:2px 6px;font-size:10px}
@media(pointer:coarse){.document-pill{min-height:30px;padding:4px 9px}.thread-page .dnp-actions .button{min-height:40px}}
