.equipment-passport-workspace { --ep-surface:var(--menu-surface,#fff); --ep-subtle:var(--menu-subtle,#f4f7fb); --ep-ink:var(--menu-ink,#1d293b); --ep-muted:var(--menu-muted,#607087); --ep-line:var(--menu-border,#dbe4ef); width:min(1180px,calc(100vw - 32px)); height:min(850px,calc(100dvh - 32px)); max-width:none; max-height:none; padding:0; border:1px solid var(--ep-line); border-radius:16px; background:var(--ep-surface); color:var(--ep-ink); font:13px/1.5 Inter,system-ui,sans-serif; box-shadow:0 20px 80px #0d1f3a40; overflow:hidden; }
.equipment-passport-workspace[open] { display:flex; flex-direction:column; }
.equipment-passport-workspace::backdrop { background:#0d1f3a66; backdrop-filter:blur(3px); }
.equipment-passport-workspace * { box-sizing:border-box; }
.equipment-passport-workspace :is(h2,h3,h4,p) { margin:0; }
.equipment-passport-workspace :is(button,input,select,textarea) { font:inherit; color:var(--ep-ink); min-width:0; min-height:36px; border:1px solid var(--ep-line); border-radius:8px; background:var(--ep-surface); padding:7px 10px; box-shadow:none; }
.equipment-passport-workspace button { font-weight:600; cursor:pointer; }
.equipment-passport-workspace button:hover:not(:disabled),.ep-file-button:hover { background:var(--ep-subtle); border-color:#8fbef5; }
.equipment-passport-workspace :is(button,input,select,textarea,summary):focus-visible,.ep-file-button:focus-within { outline:2px solid #1479ef; outline-offset:2px; }
.equipment-passport-workspace :disabled { opacity:.5; cursor:default; }
.equipment-passport-workspace small { display:block; font-size:11px; font-weight:400; color:var(--ep-muted); }
.ep-header { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; padding:18px 22px; background:var(--ep-subtle); border-bottom:1px solid var(--ep-line); }
.ep-header small { font-size:10px; font-weight:700; color:#1676db; letter-spacing:.08em; }
.ep-header h2 { font-size:23px; font-weight:750; letter-spacing:-.5px; }
.ep-header p { color:var(--ep-muted); font-size:12px; }
.ep-header button { flex:0 0 36px; font-size:22px; line-height:1; }
.ep-layout { display:grid; grid-template-columns:330px minmax(0,1fr); min-height:0; flex:1; }
.ep-sidebar { min-height:0; overflow:auto; border-right:1px solid var(--ep-line); background:var(--ep-subtle); padding:16px; }
.ep-search,.ep-filters label { display:grid; gap:5px; font-size:11px; font-weight:650; }
.ep-filters { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:8px; margin:10px 0; }
.ep-filters :is(input,select) { width:100%; font-size:12px; }
.ep-wide { grid-column:1/-1; }
.ep-list-meta { display:flex; align-items:center; justify-content:space-between; gap:5px; color:var(--ep-muted); font-size:11px; margin:10px 0; }
.ep-list-meta button { font-size:11px; min-height:28px; padding:4px 7px; background:transparent; }
.ep-equipment-list { display:grid; gap:7px; }
.ep-equipment-list>button { display:grid; grid-template-columns:36px minmax(0,1fr); align-items:start; gap:5px 8px; text-align:left; padding:10px; background:var(--ep-surface); }
.ep-equipment-list>button[aria-pressed=true] { border-color:#3287ed; box-shadow:inset 3px 0 #1479ef; }
.ep-list-reference { display:flex; align-items:center; justify-content:center; min-height:32px; font-size:11px; border-radius:6px; color:#1676db; background:color-mix(in srgb,#1479ef 10%,var(--ep-surface)); overflow-wrap:anywhere; }
.ep-equipment-list strong { display:block; font-size:12px; font-weight:650; overflow-wrap:anywhere; }
.ep-equipment-list small { font-size:10px; margin-top:3px; overflow-wrap:anywhere; }
.ep-equipment-list .ep-pill { grid-column:2; justify-self:start; }
.ep-main { min-width:0; padding:18px 22px; overflow:auto; }
.ep-asset-head,.ep-section-head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; flex-wrap:wrap; }
.ep-asset-head h3 { font-size:20px; line-height:1.3; margin:4px 0; overflow-wrap:anywhere; }
.ep-reference { color:#1676db; font-weight:700; font-size:12px; }
.ep-asset-head p { font-size:12px; color:var(--ep-muted); }
.ep-asset-head>button { font-size:12px; }
.ep-tabs { display:flex; gap:5px; overflow:auto; padding:16px 0 12px; border-bottom:1px solid var(--ep-line); margin-bottom:16px; }
.equipment-passport-workspace nav.ep-tabs { flex-wrap:nowrap; overscroll-behavior-x:contain; }
.ep-tabs>button { flex:0 0 auto; white-space:nowrap; font-size:12px; background:transparent; border-color:transparent; }
.ep-tabs>button[aria-pressed=true] { background:color-mix(in srgb,#1479ef 10%,var(--ep-surface)); color:#1676db; border-color:color-mix(in srgb,#1479ef 30%,var(--ep-line)); }
.ep-stats { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-bottom:14px; }
.ep-stats article,.ep-card { border:1px solid var(--ep-line); background:var(--ep-surface); border-radius:10px; padding:14px; min-width:0; }
.ep-stats article { background:var(--ep-subtle); }
.ep-stats strong { display:block; font-size:18px; font-weight:700; margin:5px 0; overflow-wrap:anywhere; }
.ep-stats button { padding:3px 0; min-height:25px; font-size:11px; color:#1676db; border:0; background:transparent; }
.ep-card { margin-bottom:14px; }
.ep-card h4 { font-size:13px; font-weight:700; margin-bottom:10px; }
.ep-card dl { display:grid; grid-template-columns:minmax(100px,.7fr) minmax(0,1.3fr); gap:7px 12px; margin:10px 0 0; font-size:12px; }
.ep-card dt { color:var(--ep-muted); overflow-wrap:anywhere; }
.ep-card dd { margin:0; overflow-wrap:anywhere; }
.ep-hint,.ep-notice { font-size:12px; line-height:1.5; color:var(--ep-muted); margin:8px 0!important; }
.ep-notice { padding:10px; background:var(--ep-subtle); border-radius:8px; }
.ep-pill { display:inline-block; font-size:10px; line-height:1.5; padding:3px 7px; border-radius:5px; background:var(--ep-subtle); color:var(--ep-muted); font-weight:550; }
.ep-pill.is-warning { background:#fff1d6; color:#805015; }.ep-pill.is-success { background:#e0f7ea; color:#236441; }
.ep-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:14px; }
.ep-form label,.ep-scanner label { display:grid; gap:5px; font-size:12px; font-weight:600; }
.ep-form :is(input,select,textarea) { width:100%; }.ep-form textarea { min-height:90px; resize:vertical; }
.ep-form-actions { grid-column:1/-1; display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.equipment-passport-workspace .ep-primary { background:#1479ef; border-color:#1479ef; color:#fff; }
.equipment-passport-workspace .ep-primary:hover:not(:disabled) { background:#0565ce; }
.equipment-passport-workspace summary { cursor:pointer; font-weight:600; font-size:12px; }
.ep-upload-actions { display:flex; gap:8px; flex-wrap:wrap; margin:12px 0; }
.equipment-passport-workspace .ep-file-button { display:inline-flex; align-items:center; position:relative; border:1px solid var(--ep-line); border-radius:8px; padding:8px 12px; font-size:12px; font-weight:600; cursor:pointer; }
.ep-file-button input { position:absolute; inset:0; opacity:0; width:100%; cursor:pointer; }
.ep-photo-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:12px; margin:12px 0; }
.ep-photo-grid figure { margin:0; border:1px solid var(--ep-line); border-radius:9px; overflow:hidden; min-width:0; }
.ep-photo-grid img { display:block; width:100%; height:160px; object-fit:contain; background:var(--ep-subtle); }
.ep-photo-grid figcaption { padding:9px; font-size:12px; overflow-wrap:anywhere; }.ep-photo-grid input { width:100%; }
.ep-photo-grid button { font-size:11px; margin-top:8px; }.ep-photo-grid figcaption small { margin-top:5px; }
.ep-activities,.ep-checks,.ep-timeline { list-style:none; padding:0; margin:10px 0; }
.ep-activities li,.ep-checks li { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; border-bottom:1px solid var(--ep-line); padding:10px 0; font-size:12px; }
.ep-activities li>div { flex:1; min-width:130px; }.ep-activities button { font-size:11px; }.ep-activities small { margin-top:4px; }
.ep-timeline li { position:relative; padding:0 0 18px 18px; border-left:2px solid var(--ep-line); overflow-wrap:anywhere; }.ep-timeline li::before { content:''; position:absolute; left:-5px; top:6px; width:8px; height:8px; background:#1479ef; border-radius:50%; }.ep-timeline small { margin:4px 0; }.ep-timeline details { margin-top:8px; }
.ep-scanner { padding:12px; margin-top:10px; border-radius:8px; background:var(--ep-subtle); }.ep-scanner img { max-width:100%; max-height:180px; object-fit:contain; }.ep-scanner pre { white-space:pre-wrap; max-height:150px; overflow:auto; font-size:11px; }.ep-scanner [data-scan-result] { display:grid; gap:8px; }
.ep-empty { padding:18px 8px; color:var(--ep-muted); font-size:12px; }
.ep-footer { display:flex; justify-content:space-between; align-items:center; gap:15px; border-top:1px solid var(--ep-line); padding:12px 20px; background:var(--ep-subtle); }.ep-footer p { font-size:12px; }.ep-footer>small { white-space:nowrap; font-size:10px; }
/* Direct passport access stays visible; only record checks collapse. */
.dashboard-commissioning-workspace .dashboard-equipment-access{margin:0 0 14px;min-width:0;border:1px solid color-mix(in srgb,var(--blue) 30%,var(--line));border-left:3px solid var(--blue);border-radius:10px;background:var(--surface);box-shadow:none;overflow:hidden}
.dashboard-equipment-head{display:flex;align-items:center;gap:12px;padding:14px;background:color-mix(in srgb,var(--blue) 5%,var(--surface));min-width:0}
.dashboard-equipment-heading{flex:1;min-width:0}
.dashboard-equipment-head h3{margin:0;color:var(--text);font-size:14px;font-weight:700;line-height:1.4}
.dashboard-equipment-head p{margin:3px 0 0;color:var(--muted);font-size:11px;font-weight:450;line-height:1.45;overflow-wrap:anywhere}
.dashboard-equipment-count{flex:0 0 auto;border:1px solid var(--line);border-radius:20px;padding:3px 8px;color:var(--muted);background:var(--surface);font-size:11px;font-weight:600}
.dashboard-equipment-access .dashboard-equipment-open{flex:0 0 auto;min-height:36px;padding:7px 12px;border:1px solid #0866d6;border-radius:7px;background:#0866d6;color:#fff;box-shadow:none;font-size:12px;font-weight:650;line-height:1.4;white-space:normal}
.dashboard-equipment-access .dashboard-equipment-open:hover:not(:disabled){background:#0758b8;border-color:#0758b8;color:#fff}
.dashboard-equipment-access .dashboard-equipment-open:disabled{opacity:.55;cursor:not-allowed}
.dashboard-equipment-strip{min-width:0;border:0;border-top:1px solid var(--line);border-radius:0;background:var(--surface);box-shadow:none;margin:0}
.dashboard-equipment-strip>summary{display:flex;align-items:center;gap:8px;min-height:36px;padding:7px 14px;box-sizing:border-box;list-style:none;cursor:pointer;color:var(--text)}
.dashboard-equipment-strip>summary::-webkit-details-marker{display:none}
.dashboard-equipment-strip>summary strong{font-size:12px;font-weight:650;line-height:1.4}
.dashboard-equipment-strip>summary small{font-size:11px;color:var(--muted);font-weight:450;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.dashboard-equipment-strip>summary strong{flex:0 0 auto}
.dashboard-equipment-icon{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:9px;background:var(--blue-soft);color:var(--blue)}.dashboard-equipment-icon svg{width:21px;height:21px}
.dashboard-equipment-chevron{display:grid;place-items:center;flex:0 0 18px;height:18px;margin-left:auto;color:var(--muted);transition:transform .15s}.dashboard-equipment-chevron::before{content:'';width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg)}.dashboard-equipment-strip[open] .dashboard-equipment-chevron{transform:rotate(180deg)}
.dashboard-equipment-strip>summary:hover{background:var(--blue-soft)}
.dashboard-equipment-access :is(summary,button):focus-visible{outline:2px solid var(--blue);outline-offset:-3px;border-radius:6px}
.dashboard-equipment-access .dashboard-equipment-open:focus-visible{outline-color:var(--text);outline-offset:3px}
.dashboard-equipment-body{padding:0 14px 12px;min-width:0}
.dashboard-equipment-strip button{min-height:30px;padding:5px 8px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--text);box-shadow:none;font-size:11px;font-weight:550;line-height:1.4;white-space:normal}
.dashboard-equipment-strip button:hover:not(:disabled){border-color:var(--blue);color:var(--blue)}
.dashboard-equipment-metrics{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.dashboard-equipment-metrics button{display:inline-flex;align-items:baseline;gap:5px;text-align:left}
.dashboard-equipment-metrics strong{font-size:12px;font-weight:650}.dashboard-equipment-metrics span{font-size:11px;color:var(--muted)}
.dashboard-equipment-upcoming{display:grid;gap:6px;margin-top:10px;padding-top:8px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}
.dashboard-equipment-upcoming button{display:flex;justify-content:space-between;gap:4px 12px;flex-wrap:wrap;text-align:left;overflow-wrap:anywhere}
.dashboard-equipment-upcoming strong{font-size:11px;font-weight:550}.dashboard-equipment-upcoming small{font-size:11px;color:var(--muted)}
@media(max-width:620px){.dashboard-equipment-head{flex-wrap:wrap;gap:9px;padding:12px}.dashboard-equipment-heading{flex:1 1 calc(100% - 50px)}.dashboard-equipment-access .dashboard-equipment-open{margin-left:auto;min-height:40px}.dashboard-equipment-count{margin-left:43px}.dashboard-equipment-strip>summary{min-height:40px;padding:8px 12px}}
@media(pointer:coarse){.dashboard-equipment-access .dashboard-equipment-open,.dashboard-equipment-strip button,.dashboard-equipment-strip>summary{min-height:44px}}
@media(prefers-reduced-motion:reduce){.dashboard-equipment-chevron{transition:none}}
@media(max-width:760px){.equipment-passport-workspace{width:calc(100vw - 12px);height:calc(100dvh - 12px);border-radius:12px}.ep-layout{display:flex;flex-direction:column}.ep-sidebar{max-height:300px;min-height:230px;border-right:0;border-bottom:1px solid var(--ep-line);padding:10px 12px}.ep-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.ep-filters .ep-wide{grid-column:auto}.ep-equipment-list{display:flex;overflow:auto;gap:8px}.ep-equipment-list>button{flex:0 0 240px}.ep-main{flex:1;padding:14px 12px;min-height:0}.ep-header{padding:12px}.ep-header h2{font-size:20px}.ep-footer{padding:9px 12px;flex-wrap:wrap;gap:4px}.ep-footer>small{display:none}.ep-form{grid-template-columns:minmax(0,1fr)}.ep-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ep-photo-grid img{height:120px}.ep-card{padding:11px}.ep-stats strong{font-size:16px}}
@media(pointer:coarse){.equipment-passport-workspace :is(button,input,select,.ep-file-button){min-height:44px}.ep-sidebar{max-height:300px}.ep-tabs>button{min-height:44px}}
