
/* V12 – bedriftsportal, lokal demonstrasjon */
#hms12{--n:#11344d;--g:#188668;--m:#627b89;--l:#dce7ec;display:grid;grid-template-columns:244px minmax(0,1fr);min-height:100%;font-size:14px;color:#193547;background:#f3f7f9}
#hms12 *{box-sizing:border-box}#hms12 [hidden]{display:none!important}#hms12 button,#hms12 input,#hms12 textarea,#hms12 select{font:inherit}#hms12 button{cursor:pointer}#hms12 button:disabled{cursor:not-allowed;opacity:.55}#hms12 button:focus-visible,#hms12 input:focus-visible,#hms12 select:focus-visible,#hms12 textarea:focus-visible{outline:3px solid #58aaab;outline-offset:2px}
.h12-side{background:white;border-right:1px solid var(--l);padding:24px 14px;position:sticky;top:0;align-self:start;min-height:calc(100dvh - 67px)}.h12-company{padding:0 9px 16px;border-bottom:1px solid var(--l);margin-bottom:18px}.h12-company strong{font-size:16px;color:var(--n)}.h12-company small{display:block;color:var(--m);margin-top:3px}.h12-navlabel{font-size:10px;letter-spacing:.11em;font-weight:800;color:#8296a2;padding:14px 10px 5px}.h12-nav{display:flex;align-items:center;width:100%;gap:11px;border:0;background:transparent;text-align:left;color:#425e70;font-weight:650!important;padding:10px 11px;border-radius:9px;margin:2px 0;min-height:42px}.h12-nav svg{width:19px;height:19px;flex:none;stroke-width:1.7}.worker-menu{display:grid;width:100%;gap:2px}.worker-menu .h12-nav{width:100%;margin:0}.h12-nav .h12-lock{width:14px;height:14px;margin-left:auto;color:#92a5ae}.h12-nav:hover{background:#f1f6f7}.h12-nav[aria-current=page]{background:#e3f2ed;color:#126d58}.h12-nav[aria-current=page] svg{color:var(--g)}.h12-sidefoot{margin:23px 9px 0;padding:13px 0;border-top:1px solid var(--l);font-size:11px;color:var(--m)}
.h12-main{min-width:0;padding:28px 34px 50px;max-width:1440px;width:100%;margin:0 auto}.h12-top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.h12-account{display:flex;align-items:center;gap:10px;color:var(--m);font-size:12px}.h12-avatar{width:35px;height:35px;background:#dcebe6;border-radius:50%;display:grid;place-items:center;color:#176f5c;font-weight:800}.h12-testing{display:flex;align-items:center;gap:10px;padding:7px 9px;background:#fff;border:1px solid var(--l);border-radius:10px;color:var(--m);font-size:12px}.h12-testing select{border:0;background:#edf4f7;border-radius:6px;padding:7px;color:var(--n);font-weight:700;max-width:210px}.h12-pill{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:750;border-radius:99px;background:#e9eef2;color:#556c7b;padding:4px 9px;white-space:nowrap}.h12-pill.green{background:#dff3ea;color:#176b50}.h12-pill.orange{background:#fff0df;color:#98601b}.h12-pill.red{background:#fce4e3;color:#a33e3b}.h12-kicker{color:var(--g);font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.h12-pagehead{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:22px}.h12-pagehead h1,#hms12 h1{margin:5px 0 5px;font-size:clamp(25px,3vw,34px);line-height:1.18;letter-spacing:-.045em;color:var(--n);font-weight:820}.h12-pagehead p,.h12-muted{margin:5px 0;color:var(--m)}.h12-panel{background:#fff;border:1px solid var(--l);border-radius:15px;padding:20px;min-width:0}.h12-panel h2{font-size:18px;margin:0 0 13px;color:var(--n);letter-spacing:-.025em}.h12-panel h3{font-size:15px;color:var(--n);margin:0 0 7px}.h12-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}
/* V30: dashboard shortcuts */
#hms12 button
/* V31 staffing calendar */
#hms12 .h31-toolbar{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-bottom:16px}#hms12 .h31-toolbar .h12-field{margin-left:auto;min-width:145px}#hms12 .h31-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}#hms12 .h31-scroll{max-width:100%;overflow:auto;border:1px solid #dce6ec;border-radius:12px;isolation:isolate}#hms12 .h31-grid{width:100%;min-width:960px;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:12px}#hms12 .h31-grid th,#hms12 .h31-grid td{padding:6px;border-bottom:1px solid #e4eaf0;vertical-align:top;text-align:left}#hms12 .h31-grid thead th{background:#eff5f7;text-align:center;padding:12px 6px;color:#11344d}#hms12 .h31-grid tr>th:first-child{position:sticky;left:0;z-index:1;width:160px;background:#fff;border-right:1px solid #dce6ec;padding:12px}#hms12 .h31-grid thead tr>th:first-child{background:#eff5f7}#hms12 .h31-grid th small{display:block;font-weight:400;color:#526d7b}#hms12 .h31-grid .h31-today{background:#d7ebe5}#hms12 .h31-cell{width:100%;min-height:65px;padding:8px 6px;display:flex;flex-direction:column;gap:5px;align-items:flex-start;text-align:left;border:1px solid transparent;border-radius:7px;font:inherit;line-height:1.3;cursor:pointer;overflow-wrap:anywhere;font-weight:650}#hms12 .h31-cell small{display:block;font-size:10px;font-weight:400;margin-top:3px}#hms12 .h31-cell span+span{padding-top:5px;border-top:1px solid #ffffff70;width:100%}#hms12 .h31-cell:hover,#hms12 .h31-cell:focus-visible{outline:2px solid #11344d;outline-offset:1px}#hms12 .h31-cell.free,#hms12 .h31-legend .free{background:#e6f3eb;color:#276044}#hms12 .h31-cell.busy,#hms12 .h31-legend .busy{background:#dceaf5;color:#194c73}#hms12 .h31-cell.absence,#hms12 .h31-legend .absence{background:#e7e7eb;color:#53535d}#hms12 .h31-cell.conflict,#hms12 .h31-legend .conflict{background:#fbe6dc;color:#993e20}#hms12 .h31-legend{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}#hms12 .h31-legend span{padding:5px 10px;border-radius:6px;font-size:12px;font-weight:600}@media(max-width:760px){#hms12 .h31-filters{grid-template-columns:1fr 1fr}#hms12 .h31-toolbar .h12-field{margin-left:0}#hms12 .h31-grid tr>th:first-child{width:125px}#hms12 .h31-grid{min-width:850px}}
/* V32 equipment */
#hms12 .h32-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(215px,1fr));gap:14px;margin-top:18px}#hms12 .h32-grid .h21-workcard{display:flex;flex-direction:column;align-items:flex-start;min-width:0}#hms12 .h32-grid .h12-btn{margin-top:auto}#hms12 .h32-skills{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px;max-height:270px;overflow:auto;border:1px solid #dce6ec;border-radius:10px;padding:12px}#hms12 .h32-grid h3{margin:12px 0 2px}#hms12 .h32-grid p{margin:5px 0 12px}@media(max-width:600px){#hms12 .h32-grid{grid-template-columns:1fr}}
/* V33 project equipment */#hms12 .h33-equipment{margin:18px 0;padding:16px;border:1px solid #dce6ec;border-radius:14px;background:#f7fafb}#hms12 .h33-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px}#hms12 .h33-item{background:white;border:1px solid #dce6ec;border-radius:10px;padding:12px;min-width:0}#hms12 .h33-item small{display:block;margin-top:4px;overflow-wrap:anywhere}#hms12 .h33-item.h33-blocked{background:#fff7f3}#hms12 .h33-item [hidden]{display:none!important}#hms12 .h33-item select{width:100%;min-width:0}@media(max-width:600px){#hms12 .h33-list{grid-template-columns:minmax(0,1fr)}}
.h12-tile{position:relative;text-align:left;color:inherit;font:inherit;cursor:pointer;transition:border-color .15s,box-shadow .15s,background .15s;padding-right:32px;width:100%}#hms12 button.h12-tile:hover{background:#f5fbf9;border-color:#188668;box-shadow:0 3px 12px #11344d12}#hms12 button.h12-tile:focus-visible{outline:3px solid #188668;outline-offset:3px}#hms12 .h30-arrow{position:absolute;right:12px;bottom:17px;font-size:20px;color:#188668;font-weight:600}#hms12 .h30-filter{margin:0 0 16px;display:flex;gap:8px;flex-wrap:wrap}
.h12-tile{background:#fff;border:1px solid var(--l);border-radius:13px;padding:17px;min-width:0}.h12-tile svg{width:21px;height:21px;color:var(--g)}.h12-tile small{display:block;color:var(--m);font-weight:650;margin:8px 0 2px}.h12-tile strong{display:block;font-size:30px;letter-spacing:-.05em;color:var(--n)}.h12-two{display:grid;grid-template-columns:1.15fr .85fr;gap:18px;margin-bottom:18px}.h12-three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.h12-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.h12-btn{min-height:41px;padding:9px 14px;border-radius:8px;border:1px solid #ccdce3;background:white;color:var(--n);font-weight:700!important;display:inline-flex;align-items:center;justify-content:center;gap:7px;text-decoration:none}.h12-btn svg{width:17px;height:17px}.h12-btn:hover{background:#f1f7f8}.h12-btn.primary{background:var(--g);border-color:var(--g);color:white}.h12-btn.primary:hover{background:#126c56}.h12-btn.danger{color:#9a4342}.h12-btn.small{min-height:32px;padding:5px 9px;font-size:12px!important}.h12-btn[disabled]{background:#edf2f4;color:#6f8590;border-color:#dce6eb}.h12-list{display:grid;gap:0}.h12-row{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid #e5edf1;min-width:0}.h12-row:last-child{border-bottom:0}.h12-row>div:first-child{min-width:0}.h12-row strong{display:block;color:var(--n);overflow-wrap:anywhere}.h12-row small{display:block;color:var(--m);margin-top:3px;overflow-wrap:anywhere}.h12-row .h12-actions,.h12-row .h12-pill{margin-left:auto;flex-shrink:0}.h12-row p{margin:5px 0;white-space:pre-wrap;overflow-wrap:anywhere}.h12-project{display:flex;flex-direction:column;gap:7px;min-height:165px}.h12-project .h12-actions{margin-top:auto}.h12-project .h12-pill{align-self:flex-start}.h12-iconbox{width:41px;height:41px;border-radius:10px;background:#e5f3ef;color:var(--g);display:grid;place-items:center;flex:none}.h12-iconbox svg{width:23px;height:23px}.h12-lockedpanel{padding:35px;text-align:center;max-width:700px;margin:25px auto}.h12-lockedpanel .h12-iconbox{margin:0 auto 14px}.h12-notice{background:#eef4f8;border:1px solid #d6e4ec;color:#4a6678;padding:12px 15px;border-radius:9px;font-size:12px;margin:14px 0}.h12-warn{background:#fff6e7;border-color:#f0d9ac;color:#78531c}.h12-course-wrap .hms11-dashboard{margin:0;width:100%;max-width:none}.h12-course-wrap .hms11-dashboard>h1,.h12-course-wrap .hms11-dashboard>.preview-kicker,.h12-course-wrap .hms11-intro{display:none}.h12-form{display:grid;gap:13px}.h12-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.h12-field{display:flex;flex-direction:column;gap:5px;min-width:0}.h12-field>span{font-size:12px;color:#385568;font-weight:750}#hms12 input:not([type=checkbox]):not([type=radio]),#hms12 select,#hms12 textarea{width:100%;max-width:100%;border:1px solid #c9d9e1;border-radius:8px;background:#fff;color:#193547;padding:10px 11px;min-height:42px}#hms12 .h12-testing select{width:auto;background:#edf4f7;padding:5px 9px;min-height:32px;border:0}#hms12 textarea{resize:vertical;min-height:84px}#hms12 input[type=checkbox]{accent-color:#188668;width:17px;height:17px;flex:none}.h12-check{display:flex;align-items:flex-start;gap:9px;color:#385568;padding:8px 0}.h12-empty{padding:20px 0;text-align:center;color:var(--m)}.h12-formhead{display:flex;justify-content:space-between;gap:12px;align-items:center}.h12-formhead h2{margin:0}.h12-risk{border:1px solid var(--l);border-radius:10px;padding:13px;display:grid;gap:10px}.h12-riskgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.h12-riskgrid select{padding:8px!important}.h12-risknums{display:flex;gap:8px;flex-wrap:wrap}.h12-stepbar{display:flex;gap:5px;margin:12px 0 20px}.h12-stepbar span{height:5px;background:#dce6ec;flex:1;border-radius:99px}.h12-stepbar span.on{background:var(--g)}.h12-photo{width:120px;height:88px;object-fit:cover;border-radius:7px;border:1px solid var(--l)}.h12-photo-grid{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.h12-timeline .h12-row{align-items:flex-start}.h12-timeline .h12-row>:first-child{flex:none;width:75px;font-size:12px;color:var(--m)}.h12-timeline .h12-row>div:nth-child(2){flex:1;min-width:0}.h12-progress{height:6px;background:#e8eff2;border-radius:99px;overflow:hidden;margin:9px 0}.h12-progress div{height:100%;background:var(--g)}.h12-toast{position:fixed;bottom:20px;right:20px;max-width:calc(100% - 40px);z-index:401;background:#17384b;color:white;border-radius:10px;padding:12px 16px;box-shadow:0 6px 25px #1234;font-size:13px}.h12-detailnav{margin-bottom:16px}.h12-activity{display:flex;flex-direction:column;gap:10px}.h12-preview-status{font-size:11px;color:var(--m);margin:9px 0}.h12-tbl{width:100%;border-collapse:collapse;font-size:13px}.h12-tbl td,.h12-tbl th{text-align:left;border-bottom:1px solid var(--l);padding:10px 8px;vertical-align:top;overflow-wrap:anywhere}.h12-tbl th{color:var(--m);font-size:11px}.h12-tablewrap{overflow:auto}.h12-matrix{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;max-width:260px;margin:8px 0}.h12-matrix span{display:grid;place-items:center;height:26px;border-radius:4px;font-size:11px;font-weight:750}.h12-mobile-label{display:none}
@media(max-width:1000px){.h12-main{padding:22px}.h12-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.h12-three{grid-template-columns:repeat(2,minmax(0,1fr))}.h12-two{grid-template-columns:1fr}.h12-top{align-items:flex-start}.h12-account{display:none}}
@media(max-width:700px){#hms12{display:block}.h12-side{min-height:0;position:static;border-right:0;border-bottom:1px solid var(--l);padding:7px 10px;display:flex;gap:4px;overflow-x:auto;align-items:center;white-space:nowrap}.h12-company,.h12-navlabel,.h12-sidefoot{display:none}.h12-nav{width:auto;flex:none;padding:9px 10px;font-size:12px!important;min-height:40px}.h12-nav svg{width:17px;height:17px}.h12-main{padding:17px 13px 38px}.h12-top{margin-bottom:18px}.h12-testing{font-size:10px;gap:6px}.h12-testing select{font-size:11px!important;max-width:175px}.h12-pagehead{flex-direction:column;gap:9px;margin-bottom:16px}.h12-tiles{gap:9px}.h12-tile{padding:11px}.h12-tile strong{font-size:25px}.h12-panel{padding:14px}.h12-three{grid-template-columns:1fr}.h12-fields{grid-template-columns:1fr}.h12-riskgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.h12-row{flex-wrap:wrap}.h12-row .h12-actions{margin-left:0}.h12-timeline .h12-row>:first-child{width:100%}.h12-tile small{font-size:11px}.h12-lockedpanel{padding:24px 15px}.h12-course-wrap .hms11-dashboard{margin:0}.h12-mobile-label{display:block}.h12-tablewrap{max-width:100%}.h12-account{display:none}}

