.hhe-wrap{--bg:#09111b;--panel:#121e2c;--panel2:#17283a;--line:#2a3d52;--text:#eef5fb;--muted:#98aabd;--accent:#38c5b0;color:var(--text);background:var(--bg);padding:clamp(14px,2.8vw,30px);border:1px solid var(--line);border-radius:18px;width:100%;max-width:100%;margin:18px 0;border-radius:0;position:relative;left:0;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;box-sizing:border-box}.hhe-wrap *{box-sizing:border-box}.hhe-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:22px}.hhe-head>div:first-child>span{font-size:10px;letter-spacing:2px;color:var(--accent);font-weight:800}.hhe-head h1{color:#fff;font-size:clamp(27px,4vw,38px);letter-spacing:-1px;margin:5px 0}.hhe-head p,.hhe-muted{color:var(--muted);font-size:13px;line-height:1.6;margin:0}.hhe-account,.hhe-plan{border:1px solid var(--line);background:var(--panel2);padding:9px 13px;border-radius:30px;font-size:12px;color:#d5e2ee}.hhe-companyline{display:flex;justify-content:space-between;align-items:center;gap:12px;background:linear-gradient(120deg,#142b3b,#142b31);border:1px solid #2d5b5a;border-radius:14px;padding:17px 19px;margin-bottom:14px}.hhe-companyline h2{margin:0 0 5px;color:#fff;font-size:20px}.hhe-companyline span{font-size:11px;color:#a8c0cc}.hhe-plan{color:var(--accent);font-weight:800}.hhe-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin-bottom:14px}.hhe-stats>div{background:linear-gradient(145deg,#17283a,#111c29);border:1px solid var(--line);border-radius:12px;padding:15px}.hhe-stats small{display:block;color:var(--muted);font-size:11px;margin-bottom:8px}.hhe-stats strong{font-size:25px;color:#fff}.hhe-nav{display:flex;gap:7px;flex-wrap:wrap;padding:8px;background:#0e1925;border:1px solid var(--line);border-radius:12px;margin-bottom:14px}.hhe-nav a{color:#c6d5e3;text-decoration:none;font-size:12px;font-weight:750;padding:10px 12px;border-radius:8px}.hhe-nav a:hover{background:#1d3942;color:#fff}.hhe-grid{display:grid;gap:14px;margin-bottom:14px}.hhe-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.hhe-card{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:19px;min-width:0;scroll-margin-top:18px}.hhe-card h2{color:#fff;font-size:18px;margin:0 0 13px}.hhe-card p{font-size:13px;line-height:1.6}.hhe-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.hhe-title h2{margin:0}.hhe-title>span{color:var(--accent);font-size:11px;font-weight:800}.hhe-form{display:grid;gap:10px;border-top:1px solid var(--line);padding-top:14px;margin-top:14px}.hhe-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.hhe-form label,.hhe-switch label{display:grid;gap:5px;color:#bdcbd9;font-size:11px;font-weight:700;min-width:0}.hhe-form input,.hhe-form select,.hhe-form textarea,.hhe-switch select{width:100%;min-width:0;background:#0b1520!important;border:1px solid #33495f!important;border-radius:8px!important;color:#eff6fc!important;padding:10px 11px!important;font:inherit;font-size:13px;box-shadow:none!important}.hhe-form input:focus,.hhe-form select:focus,.hhe-form textarea:focus{outline:2px solid #38c5b044;border-color:var(--accent)!important}.hhe-form select option,.hhe-switch option{background:#111e2c;color:#fff}.hhe-btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:8px;background:linear-gradient(100deg,#2db7a4,#347ec2);color:#04151a!important;font-size:12px;font-weight:850;padding:11px 16px;cursor:pointer;text-decoration:none}.hhe-btn:hover{filter:brightness(1.1)}.hhe-list{display:grid;gap:7px;margin-top:13px}.hhe-list article{display:flex;align-items:center;gap:10px;min-width:0;background:#0d1824;border:1px solid #26394d;border-radius:10px;padding:10px}.hhe-icon{width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;border-radius:9px;background:#173c42;color:var(--accent);font-weight:800}.hhe-list article>div:nth-child(2){display:grid;gap:3px;min-width:0;flex:1}.hhe-list strong{font-size:12px;color:#edf4fa;overflow-wrap:anywhere}.hhe-list small{font-size:10px;color:var(--muted);overflow-wrap:anywhere}.hhe-list article>b{font-size:10px;color:#c5d4e2;text-align:right;overflow-wrap:anywhere}.hhe-empty{color:#8195aa;text-align:center;padding:18px 8px;background:#0e1925;border-radius:9px}.hhe-wide{margin-bottom:14px}.hhe-table-wrap{overflow-x:auto;margin-top:14px}.hhe-table{width:100%;border-collapse:collapse;min-width:620px}.hhe-table th,.hhe-table td{text-align:left;padding:11px 9px;border-bottom:1px solid var(--line);font-size:11px;color:#d8e4ee}.hhe-table th{color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.6px}.hhe-table td small{display:block;color:var(--muted);margin-top:4px;max-width:300px}.hhe-status{display:inline-block;padding:5px 8px;background:#173b3b;color:#a9eee0;border-radius:20px;font-size:10px}.hhe-notice{background:#173b34;border:1px solid #2d806e;color:#c5f5e8;padding:12px 14px;border-radius:9px;margin-bottom:14px;font-size:12px}.hhe-switch{display:flex;justify-content:flex-end;margin-bottom:12px}.hhe-switch label{display:flex;align-items:center;gap:9px}.hhe-switch select{width:auto}.hhe-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 4px 0;color:#71869a;font-size:10px}.hhe-powered-by{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;opacity:.72;transition:opacity .2s ease}.hhe-powered-by:hover{opacity:1}.hhe-powered-by img{display:block;width:104px;height:auto;max-height:54px;object-fit:contain}.hhe-wrap ul{color:#c2d0dd;font-size:13px;line-height:1.9}
@media(max-width:850px){.hhe-grid-2{grid-template-columns:1fr}.hhe-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.hhe-wrap{width:100%;max-width:100%;padding:12px;border-radius:0;margin:8px 0;position:relative;left:0}.hhe-head{align-items:flex-start}.hhe-head h1{font-size:25px}.hhe-account{font-size:10px;padding:7px 9px}.hhe-companyline{align-items:flex-start;padding:13px}.hhe-companyline h2{font-size:17px}.hhe-stats{gap:7px}.hhe-stats>div{padding:11px}.hhe-stats strong{font-size:21px}.hhe-stats small{font-size:10px}.hhe-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.hhe-nav a{text-align:center;background:#142333;padding:10px 6px;font-size:11px}.hhe-card{padding:14px}.hhe-fields{grid-template-columns:1fr}.hhe-btn{width:100%;min-height:42px}.hhe-list article{align-items:flex-start}.hhe-list article>b{max-width:105px}.hhe-switch label{width:100%;display:grid}.hhe-switch select{width:100%}}
@media print{.hhe-wrap{background:#fff;color:#111;border:0}.hhe-head,.hhe-nav,.hhe-form,.hhe-btn{display:none!important}.hhe-card{break-inside:avoid;background:#fff;color:#111;border:1px solid #ddd}.hhe-card h2,.hhe-list strong{color:#111}.hhe-list small,.hhe-muted{color:#555}}

/* Public enterprise registration and sign-in */
.hhe-public-section{max-width:1180px;margin:64px auto;padding:clamp(20px,4vw,42px);border:1px solid #294154;border-radius:22px;background:linear-gradient(145deg,#0d1b28,#111f2c);color:#eef5fb;scroll-margin-top:24px}.hhe-public-heading{max-width:760px;margin:0 auto 24px;text-align:center}.hhe-public-heading h2{font-size:clamp(25px,4vw,36px);line-height:1.15;color:#fff;margin:9px 0}.hhe-public-heading p{font-size:14px;line-height:1.7;color:#a9bac9}.hhe-public-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.hhe-public-card{padding:22px;border:1px solid #2a4054;border-radius:15px;background:#142333;min-width:0}.hhe-public-card h3{margin:0 0 7px;color:#fff;font-size:20px}.hhe-public-card>p{margin:0 0 16px;color:#a9bac9;font-size:13px;line-height:1.6}.hhe-public-form{display:grid;gap:11px}.hhe-public-form label{display:grid;gap:6px;color:#c7d5e2;font-size:12px;font-weight:700}.hhe-public-form input:not([type=checkbox]){width:100%;min-height:43px;padding:10px 12px;border:1px solid #385067;border-radius:8px;background:#0a1622;color:#fff;font:inherit;font-size:14px;box-sizing:border-box}.hhe-public-form input:focus{outline:2px solid #38c5b055;border-color:#38c5b0}.hhe-public-form .hh-button{width:100%;margin-top:4px}.hhe-public-form small{font-size:11px;line-height:1.5;color:#91a6b8}.hhe-public-form .hhe-remember{display:flex;align-items:center;gap:8px}.hhe-public-form .hhe-remember input{width:17px;height:17px}.hhe-lost-password{font-size:12px;color:#80d9ce;text-decoration:none}.hhe-public-error{padding:12px 14px;border:1px solid #a94d55;border-radius:9px;background:#351c26;color:#ffd9dc;font-size:13px}@media(max-width:720px){.hhe-public-section{margin:38px 12px;padding:17px;border-radius:15px}.hhe-public-grid{grid-template-columns:1fr}.hhe-public-card{padding:16px}.hhe-public-heading{text-align:left}}

/* Company portal section navigation: show one workspace at a time. */
.hhe-nav a[aria-current=page]{background:#1b4146;color:#fff;box-shadow:inset 0 0 0 1px #38c5b055}
.hhe-card.hhe-tab-hidden,.hhe-grid.hhe-tab-hidden{display:none!important}
.hhe-nav{position:static!important;top:auto!important;z-index:auto;align-self:auto;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;scroll-margin-top:0}
.hhe-wrap .hhe-card[id^="hhe-"]{scroll-margin-top:18px}
@media(max-width:782px){.hhe-nav{gap:4px;padding:6px}.hhe-nav a{padding:9px 10px}}
@media(max-width:560px){.hhe-nav{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* Enterprise plan pricing shown in the public package accordion. */
.hh-business-package-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.hh-business-package-card{display:flex;flex-direction:column;min-width:0}
.hh-business-package-card .hh-business-vat{display:block;margin:-5px 0 12px;color:var(--hh-muted,#93a8ba);font-size:10px;line-height:1.55}
.hh-business-package-card ul{flex:1}
.hh-business-package-card .hh-package-order-button{margin-top:auto}
@media(max-width:900px){.hh-business-package-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.hh-business-package-grid{grid-template-columns:1fr}}

/* Company inventory and reporting */
.hhe-report-actions{display:flex;gap:9px;flex-wrap:wrap;margin:12px 0 18px}.hhe-report-subtitle{margin:20px 0 8px;color:#dce9f3;font-size:14px}.hhe-report-actions .hhe-btn{width:auto}.hhe-table td .hhe-status{white-space:nowrap}@media(max-width:560px){.hhe-report-actions{display:grid;grid-template-columns:1fr}.hhe-report-actions .hhe-btn{width:100%}}

/* Yrityksen huoltosuunnitelmat ja huollot */
.hhe-check{display:flex!important;align-items:center;gap:9px!important;padding:11px 12px;background:#0d1824;border:1px solid #2a4054;border-radius:8px}.hhe-check input{width:18px!important;height:18px;accent-color:#38c5b0}.hhe-subheading{margin:20px 0 10px;color:#e7f0f7;font-size:14px}.hhe-maintenance-cards{display:grid;gap:10px;margin:10px 0 18px}.hhe-maintenance-card{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px;background:#0d1824;border:1px solid #2a4054;border-radius:12px}.hhe-maintenance-card.is-overdue{border-color:#a85b57;background:linear-gradient(110deg,#281d25,#111c29)}.hhe-maintenance-card h3{margin:8px 0 4px;color:#fff;font-size:15px}.hhe-maintenance-card p{margin:0 0 5px;color:#a8bac9;font-size:12px}.hhe-maintenance-card small{color:#8fa4b7;font-size:11px}.hhe-maintenance-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.hhe-maintenance-actions form{margin:0}.hhe-btn-quiet{background:#253649;color:#dbe7f0!important}.hhe-modal{width:min(620px,calc(100% - 24px));max-height:90vh;overflow:auto;padding:0;border:1px solid #36516a;border-radius:16px;background:#121e2c;color:#eef5fb;box-shadow:0 25px 90px #000a}.hhe-modal::backdrop{background:#020811c9;backdrop-filter:blur(3px)}.hhe-modal-form{display:grid;gap:12px;padding:22px}.hhe-modal-form h2{margin:0;color:#fff;font-size:20px}.hhe-modal-form p{margin:0;color:#9fb3c5;font-size:13px}.hhe-modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:5px}.hhe-history-filter{display:flex;justify-content:flex-start;margin:14px 0}.hhe-history-filter label{display:grid;gap:6px;color:#bdcbd9;font-size:11px;font-weight:700;min-width:min(100%,340px)}.hhe-history-filter select{width:100%;background:#0b1520!important;border:1px solid #33495f!important;border-radius:8px!important;color:#eff6fc!important;padding:10px 11px!important;font:inherit;font-size:13px}.hhe-maintenance-actions .hhe-btn{width:auto}.hhe-tab-hidden{display:none!important}
@media(max-width:600px){.hhe-maintenance-card{align-items:flex-start;flex-direction:column}.hhe-maintenance-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.hhe-maintenance-actions .hhe-btn{width:100%}.hhe-modal-form{padding:16px}.hhe-modal-actions{display:grid;grid-template-columns:1fr 1fr}}

/* Stock parts linked to planned and completed maintenance */
.hhe-parts-picker{display:grid;gap:9px;padding:13px;background:#0d1824;border:1px solid #2a4054;border-radius:11px;margin-top:10px;min-width:0}.hhe-parts-picker>strong,.hhe-modal-parts h3{color:#eaf3fa;font-size:13px}.hhe-parts-picker>.hhe-muted,.hhe-modal-parts>.hhe-muted{font-size:11px;margin:0}.hhe-part-search{width:100%;min-height:40px;padding:9px 11px!important;background:#08131e!important;border:1px solid #344b61!important;border-radius:8px!important;color:#eff6fc!important;font:inherit;font-size:12px!important}.hhe-part-list{display:grid;gap:6px;max-height:260px;overflow:auto}.hhe-part-row{display:flex!important;align-items:center;justify-content:space-between;gap:12px;padding:9px 10px;background:#142333;border:1px solid #263c50;border-radius:8px;min-width:0}.hhe-part-main{display:flex;align-items:center;gap:9px;min-width:0;flex:1}.hhe-part-main>input{width:17px!important;height:17px;flex:0 0 17px;accent-color:#38c5b0}.hhe-part-main>span{display:grid;gap:3px;min-width:0}.hhe-part-main b{font-size:11px;color:#eef5fb;overflow-wrap:anywhere}.hhe-part-main small,.hhe-part-qty small{font-size:10px;color:#91a6b8}.hhe-part-qty{display:grid;gap:3px;width:94px;flex:0 0 94px}.hhe-part-qty input{padding:7px!important;font-size:12px!important}.hhe-modal-parts{display:grid;gap:8px}.hhe-modal-parts h3{margin:0}.hhe-part-row[hidden]{display:none!important}
@media(max-width:560px){.hhe-part-row{align-items:flex-start}.hhe-part-qty{width:76px;flex-basis:76px}.hhe-part-main b{font-size:10px}}

.hhe-report-filters{margin:14px 0 20px;padding:14px;border:1px solid rgba(130,160,185,.2);border-radius:12px;background:rgba(10,22,34,.35)}.hhe-report-filters .hhe-fields{margin-bottom:12px}.hhe-report-filters .hhe-btn{width:auto}

/* Kaluston korttimainen lista ja avautuvat lomakkeet */
.hhe-collapsible-form{margin:14px 0 8px;border:1px solid #2b4658;border-radius:11px;background:#0e1a27;overflow:hidden}
.hhe-collapsible-form>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 15px;cursor:pointer;list-style:none;color:#eaf4fb}
.hhe-collapsible-form>summary::-webkit-details-marker,.hhe-asset-item>summary::-webkit-details-marker{display:none}
.hhe-collapsible-form>summary span{display:grid;gap:4px}.hhe-collapsible-form>summary strong{font-size:13px}.hhe-collapsible-form>summary small{font-size:11px;color:#91a7ba}
.hhe-collapsible-form>summary i,.hhe-chevron{width:10px;height:10px;border-right:2px solid #55d3c1;border-bottom:2px solid #55d3c1;transform:rotate(45deg);transition:transform .18s;flex:0 0 10px;margin:0 5px 5px}
.hhe-collapsible-form[open]>summary i{transform:rotate(225deg);margin-bottom:0}
.hhe-collapsible-form>.hhe-form{margin:0;padding:15px;border-top:1px solid #263d50}
.hhe-fleet-list{display:grid;gap:9px;margin-top:14px}
.hhe-asset-item{border:1px solid #2a4055;border-radius:12px;background:linear-gradient(120deg,#101e2c,#0c1722);overflow:hidden}
.hhe-asset-item>summary{display:flex;align-items:center;gap:12px;padding:13px;cursor:pointer;list-style:none;min-width:0}
.hhe-asset-symbol{width:39px;height:39px;display:grid;place-items:center;flex:0 0 39px;border-radius:10px;background:#173b42;color:#58d3c1;font-size:18px}
.hhe-asset-main{display:grid;gap:4px;min-width:0;flex:1}.hhe-asset-main strong{font-size:13px;color:#f1f7fb}.hhe-asset-main small{font-size:10px;color:#91a7ba;overflow-wrap:anywhere}
.hhe-asset-notices{display:flex;flex-wrap:wrap;gap:5px;margin-top:3px}.hhe-asset-notice{display:inline-flex;align-items:center;border-radius:5px;padding:3px 7px;font-size:9px;font-style:normal;font-weight:800;line-height:1.35;white-space:normal}.hhe-notice-warning{background:#4a3518;color:#ffd58a;border:1px solid #80602c}.hhe-notice-danger{background:#4b2228;color:#ffb0b6;border:1px solid #85414a}
.hhe-asset-meter{font-size:11px;font-weight:800;color:#c8e5e3;white-space:nowrap}.hhe-asset-item[open]>summary{background:#142b38;border-bottom:1px solid #2b4658}.hhe-asset-item[open] .hhe-chevron{transform:rotate(225deg);margin-bottom:0}
.hhe-asset-detail{padding:16px}.hhe-asset-detail-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px}.hhe-asset-detail-head>div:first-child>span{font-size:10px;color:#57d1bf;font-weight:800;text-transform:uppercase;letter-spacing:.7px}.hhe-asset-detail-head h3{margin:4px 0;color:#fff;font-size:20px}.hhe-asset-detail-head p{margin:0;color:#9eb2c4}.hhe-asset-current-meter{text-align:right;display:grid;gap:5px}.hhe-asset-current-meter small,.hhe-asset-facts small{font-size:10px;color:#91a7ba}.hhe-asset-current-meter strong{font-size:17px;color:#62d6c3}
.hhe-asset-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:15px}.hhe-asset-facts>div{padding:10px;background:#0b1621;border:1px solid #25394b;border-radius:8px;min-width:0}.hhe-asset-facts strong{display:block;margin-top:5px;color:#e4edf5;font-size:11px;overflow-wrap:anywhere}
.hhe-asset-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.hhe-asset-detail-grid section{min-width:0;padding:12px;background:#0b1621;border:1px solid #25394b;border-radius:9px}.hhe-asset-detail-grid h4{margin:0 0 9px;color:#e9f2f8;font-size:12px}.hhe-asset-mini-list{display:grid;gap:8px}.hhe-asset-mini-list>div{padding-bottom:8px;border-bottom:1px solid #203244}.hhe-asset-mini-list>div:last-child{padding-bottom:0;border:0}.hhe-asset-mini-list strong{display:block;color:#eaf3f8;font-size:11px}.hhe-asset-mini-list small{display:block;margin-top:4px;color:#91a7ba;font-size:10px}.hhe-asset-mini-list p{margin:5px 0 0;color:#b6c5d1;font-size:11px}.hhe-asset-actions{margin-top:13px}
@media(max-width:650px){.hhe-asset-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.hhe-asset-detail-grid{grid-template-columns:1fr}.hhe-asset-detail{padding:11px}.hhe-asset-detail-head{display:grid}.hhe-asset-current-meter{text-align:left}.hhe-asset-meter{font-size:10px}.hhe-asset-item>summary{gap:8px;padding:11px}.hhe-asset-symbol{width:34px;height:34px;flex-basis:34px}}

/* Company fuel tracking */
.hhe-fuel-consumption{display:flex;flex-direction:column;gap:3px;margin:8px 0;padding:10px 12px;border:1px solid var(--hhe-border,#263746);border-radius:10px;background:rgba(20,38,52,.45)}
.hhe-fuel-consumption small{color:var(--hhe-muted,#9aabb8);font-size:12px}
#hhe-fuel .hhe-stats{margin:14px 0 18px}
#hhe-fuel .hhe-collapsible-form{margin:14px 0}
#hhe-fuel input[type=file]{display:block;width:100%;max-width:100%;padding:10px;border:1px solid var(--hhe-border,#334756);border-radius:9px;background:rgba(0,0,0,.12);color:inherit}
#hhe-fuel .hhe-table td small{display:block;margin-top:3px}
@media(max-width:700px){#hhe-fuel .hhe-fields{grid-template-columns:1fr!important}#hhe-fuel .hhe-stats{grid-template-columns:repeat(2,minmax(0,1fr))}#hhe-fuel .hhe-table-wrap{overflow-x:auto}}


/* Kalusto ja huoltosuunnitelma ovat omia täysleveitä työpöytänäkymiään. */
.hhe-assets-plans-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) !important;
  width:100%;
  max-width:100%;
  align-items:start;
}
.hhe-assets-plans-grid > #hhe-assets,
.hhe-assets-plans-grid > #hhe-plans {
  width:100%;
  max-width:none;
  min-width:0;
  grid-column:1/-1;
}


/* Huollon kuittausikkuna: selkeä lomake, tasalevyiset kentät ja siisti varaosalista. */
.hhe-modal {
  width:min(760px,calc(100vw - 32px));
  max-width:760px;
  max-height:min(88vh,900px);
  margin:auto;
  overflow:auto;
}
.hhe-modal[open] {display:block}
.hhe-modal-form {gap:16px;padding:24px}
.hhe-modal-form h2 {font-size:22px;line-height:1.25}
.hhe-modal-form #hhe-modal-plan-title {padding-bottom:12px;border-bottom:1px solid #2a4054}
.hhe-modal-form .hhe-fields {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px 16px;
}
.hhe-modal-form .hhe-fields > label {
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:7px;
  min-width:0;
  color:#d5e1ec;
  font-size:13px;
  font-weight:700;
  line-height:1.35;
}
.hhe-modal-form .hhe-fields input,
.hhe-modal-form .hhe-fields select,
.hhe-modal-form textarea {
  display:block;
  width:100% !important;
  max-width:100%;
  min-width:0;
  min-height:43px;
  padding:10px 12px !important;
  border:1px solid #354b60 !important;
  border-radius:9px !important;
  background:#0b1520 !important;
  color:#eff6fc !important;
  font:inherit;
  font-size:14px;
  box-shadow:none !important;
}
.hhe-modal-form textarea {
  min-height:104px;
  resize:vertical;
  line-height:1.5;
}
.hhe-modal-parts {
  display:grid;
  gap:9px;
  min-width:0;
  padding:15px;
  border:1px solid #2a4054;
  border-radius:12px;
  background:#0d1824;
}
.hhe-modal-parts h3 {margin:0;font-size:14px}
.hhe-modal-parts #hhe-complete-parts {display:grid;gap:8px;min-width:0}
.hhe-modal-parts .hhe-part-row {
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(100px,130px);
  align-items:center;
  gap:12px;
  width:100%;
  min-width:0;
  padding:11px 12px;
}
.hhe-modal-parts .hhe-part-main {min-width:0;overflow-wrap:anywhere}
.hhe-modal-parts .hhe-part-main > span {min-width:0}
.hhe-modal-parts .hhe-part-main b {display:block;line-height:1.4}
.hhe-modal-parts .hhe-part-main small {display:block;line-height:1.4}
.hhe-modal-parts .hhe-part-qty {display:grid;gap:5px;min-width:0}
.hhe-modal-parts .hhe-part-qty input {width:100%;min-width:0;max-width:100%;box-sizing:border-box}
.hhe-modal-actions {display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.hhe-modal-actions .hhe-btn {min-width:130px}
@media(max-width:600px) {
  .hhe-modal {width:calc(100vw - 20px);max-height:90vh}
  .hhe-modal-form {padding:16px;gap:13px}
  .hhe-modal-form .hhe-fields {grid-template-columns:minmax(0,1fr);gap:12px}
  .hhe-modal-parts {padding:11px}
  .hhe-modal-parts .hhe-part-row {grid-template-columns:minmax(0,1fr) 88px;gap:8px;padding:9px}
  .hhe-modal-actions {display:grid;grid-template-columns:1fr 1fr}
  .hhe-modal-actions .hhe-btn {width:100%;min-width:0}
}

@media(max-width:560px){.hhe-footer{align-items:flex-start;flex-wrap:wrap}.hhe-powered-by{margin-left:auto}.hhe-powered-by img{width:92px}}


/* Kalustoyksikön dokumenttiarkisto */
.hhe-asset-documents{margin:18px 0;padding:18px;border:1px solid #2b4055;border-radius:13px;background:#0f1b29}
.hhe-asset-documents .hhe-title{display:flex;align-items:center;justify-content:space-between;gap:12px}
.hhe-asset-documents .hhe-title h4{margin:0}
.hhe-asset-doc-upload{margin:12px 0 16px;padding:14px;border:1px solid #2b4055;border-radius:10px;background:#142235}
.hhe-asset-doc-list{display:grid;gap:8px;margin-top:12px}
.hhe-asset-doc-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px;border:1px solid #2b4055;border-radius:10px;background:#142235}
.hhe-doc-icon{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:9px;background:#1b3d45;color:#43d2c1;font-size:10px;font-weight:800}
.hhe-asset-doc-info{display:flex;flex:1 1 220px;min-width:0;flex-direction:column;gap:4px}
.hhe-asset-doc-info small{color:#91a7bd;font-size:11px}
.hhe-asset-doc-row form{margin:0}
@media(max-width:600px){.hhe-asset-doc-row{align-items:flex-start}.hhe-asset-doc-row>a,.hhe-asset-doc-row>form{width:100%}.hhe-asset-doc-row .hhe-btn{width:100%;text-align:center}}


/* Tiivis kaluston dokumenttilista ja erillinen lisäysikkuna */
.hhe-asset-documents{margin:14px 0 8px;padding:12px 14px;border:1px solid #2b4055;border-radius:10px;background:#101d2b}
.hhe-doc-heading{display:flex;align-items:center;gap:8px;color:#9fb4c9;font-size:12px;font-weight:700}
.hhe-doc-heading small{color:#718ba5;font-size:10px;font-weight:500}
.hhe-doc-empty{margin:7px 0;color:#718ba5;font-size:11px}
.hhe-asset-doc-list{display:grid;gap:5px;margin:7px 0}
.hhe-asset-doc-row{display:flex;align-items:center;gap:8px;min-height:34px;padding:5px 8px;border:1px solid #263c50;border-radius:7px;background:#142235}
.hhe-doc-icon{width:25px;height:25px;flex:0 0 25px;font-size:8px}
.hhe-asset-doc-info{gap:1px}
.hhe-asset-doc-info strong{font-size:11px}
.hhe-asset-doc-info small{font-size:9px}
.hhe-asset-doc-row .hhe-btn{padding:5px 9px;font-size:10px}
.hhe-asset-doc-row form{margin:0}
.hhe-doc-delete{border:0;background:transparent;color:#9fb4c9;font-size:19px;line-height:1;cursor:pointer;padding:2px 5px}
.hhe-doc-add-trigger{display:inline-flex;align-items:center;margin-top:5px;padding:3px 0;border:0;background:none;color:#46cfc1;font-size:11px;font-weight:600;cursor:pointer}
.hhe-doc-add-trigger:hover{text-decoration:underline;color:#83e7dc}
.hhe-doc-limit-note{display:block;margin-top:5px;color:#718ba5;font-size:10px}
.hhe-doc-dialog{width:min(560px,calc(100% - 28px));max-width:560px;max-height:calc(100% - 32px);padding:0;border:1px solid #34516b;border-radius:15px;background:#132235;color:#edf5ff;box-shadow:0 24px 80px rgba(0,0,0,.55)}
.hhe-doc-dialog::backdrop{background:rgba(2,8,15,.78);backdrop-filter:blur(3px)}
.hhe-doc-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding:20px 22px 12px}
.hhe-doc-dialog-head h3{margin:0;color:#fff;font-size:19px}
.hhe-doc-dialog-head p{margin:4px 0 0;color:#91a9c0;font-size:12px}
.hhe-doc-dialog-close{border:0;background:#20354a;color:#d9e8f7;border-radius:8px;width:32px;height:32px;font-size:22px;cursor:pointer}
.hhe-doc-dialog .hhe-asset-doc-upload{margin:0;padding:8px 22px 22px;border:0;background:transparent}
.hhe-doc-dialog .hhe-fields{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.hhe-doc-dialog .hhe-fields label{display:flex;flex-direction:column;gap:5px;font-size:11px}
.hhe-doc-dialog .hhe-fields input,.hhe-doc-dialog .hhe-fields select{width:100%;min-width:0}
.hhe-doc-help{margin:10px 0;color:#91a9c0;font-size:10px}
.hhe-doc-dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:15px}
@media(max-width:600px){
 .hhe-asset-doc-row{align-items:center}
 .hhe-doc-dialog .hhe-fields{grid-template-columns:1fr}
 .hhe-doc-dialog-head{padding:16px 16px 8px}
 .hhe-doc-dialog .hhe-asset-doc-upload{padding:8px 16px 16px}
 .hhe-doc-dialog-actions{flex-direction:column-reverse}
 .hhe-doc-dialog-actions .hhe-btn{width:100%}
}


/* Dokumenttien poistopainike ja voimassaolohuomiot */
.hhe-asset-doc-row .hhe-doc-delete-form{display:block!important;flex:0 0 auto!important;margin:0!important}
.hhe-asset-doc-row .hhe-doc-delete{
  display:inline-flex!important;align-items:center;justify-content:center;
  min-height:30px;padding:6px 11px!important;border:1px solid #65404a!important;
  border-radius:7px;background:#38232d!important;color:#ffb5bd!important;
  font-size:11px!important;font-weight:700;cursor:pointer
}
.hhe-asset-doc-row .hhe-doc-delete:hover{background:#512b37!important;color:#fff!important}
.hhe-doc-expiry{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:4px;font-size:10px;line-height:1.35}
.hhe-doc-expiry i{width:7px;height:7px;border-radius:50%;display:inline-block;flex:0 0 7px}
.hhe-doc-expiry strong{font-weight:700}
.hhe-doc-expiry-valid{color:#52d49a}.hhe-doc-expiry-valid i{background:#25bd7c}
.hhe-doc-expiry-soon{color:#ffb45f}.hhe-doc-expiry-soon i{background:#f59b32}
.hhe-doc-expiry-expired{color:#ff7f89}.hhe-doc-expiry-expired i{background:#ed5362}
@media(max-width:600px){
 .hhe-asset-doc-row .hhe-doc-delete-form{width:auto!important}
 .hhe-asset-doc-row .hhe-doc-delete{width:auto!important}
 .hhe-doc-expiry{font-size:10px}
}


/* HuoltoHub Yritys 1.68.1 – Yleiskatsaus */
.hhe-overview{margin:0 0 14px;min-width:0;overflow:hidden}
.hhe-overview-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:14px 0}
.hhe-overview-stats>div{display:flex;flex-direction:column;gap:4px;min-width:0;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:#0e1a27}
.hhe-overview-stats strong{font-size:23px;line-height:1.1;color:#eaf3fb}
.hhe-overview-stats strong.is-danger{color:#ff818b}.hhe-overview-stats strong.is-warning{color:#ffbd69}
.hhe-overview-stats small{font-size:10px;color:var(--muted)}
.hhe-alert-list{display:grid;gap:7px}
.hhe-alert{display:flex;align-items:center;gap:10px;min-width:0;padding:11px 12px;border:1px solid var(--line);border-radius:9px;background:#101e2c}
.hhe-alert-dot{width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:#8aa1b7}
.hhe-alert-danger{border-color:#603642;background:#261c27}.hhe-alert-danger .hhe-alert-dot{background:#f06a78}
.hhe-alert-warning{border-color:#5c4930;background:#28251f}.hhe-alert-warning .hhe-alert-dot{background:#e9a94f}
.hhe-alert>div{display:flex;flex:1 1 auto;flex-direction:column;gap:3px;min-width:0}
.hhe-alert>div strong{font-size:12px;color:#edf5fc;overflow-wrap:anywhere}
.hhe-alert>div small{font-size:10px;color:var(--muted);overflow-wrap:anywhere}
.hhe-alert>a{flex:0 0 auto;color:var(--accent);font-size:10px;font-weight:750;text-decoration:none;white-space:nowrap}
.hhe-overview-empty{display:flex;flex-direction:column;gap:4px;padding:24px;border-radius:10px;background:#0e1a27;text-align:center}
.hhe-overview-empty strong{color:#55d5a1}.hhe-overview-empty span{color:var(--muted);font-size:12px}

/* Estä koko portaalisivun vaakavieritys. Taulukoiden omat vieritysalueet säilyvät. */
.hhe-wrap{min-width:0!important;max-width:100%!important;width:100%!important;overflow-x:clip!important}
.hhe-wrap>*{min-width:0;max-width:100%}
.hhe-wrap .hhe-card,.hhe-wrap .hhe-grid,.hhe-wrap .hhe-stats,.hhe-wrap .hhe-nav,
.hhe-wrap .hhe-companyline,.hhe-wrap .hhe-overview,.hhe-wrap .hhe-alert{min-width:0;max-width:100%}
.hhe-wrap .hhe-fields>*{min-width:0;max-width:100%}
.hhe-wrap input,.hhe-wrap select,.hhe-wrap textarea{max-width:100%;min-width:0}
.hhe-wrap .hhe-table-wrap,.hhe-wrap .hhe-table-scroll{max-width:100%;overflow-x:auto}
.hhe-nav{flex-wrap:wrap;min-width:0}
@media(max-width:900px){.hhe-overview-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){
 .hhe-overview-stats{gap:6px}
 .hhe-overview-stats>div{padding:10px}
 .hhe-overview-stats strong{font-size:20px}
 .hhe-alert{align-items:flex-start;flex-wrap:wrap}
 .hhe-alert>a{margin-left:18px}
}


/* Yritysasetukset */
.hhe-settings .hhe-fields{margin:16px 0}
.hhe-settings .hhe-fields label{display:flex;flex-direction:column;gap:6px}
.hhe-settings .hhe-fields label small{font-size:10px;color:var(--muted);font-weight:400}
.hhe-settings .hhe-fields .hhe-check{flex-direction:row;align-items:center;gap:9px}
.hhe-settings .hhe-fields .hhe-check input{width:auto}
.hhe-settings{scroll-margin-top:18px}
.hhe-wrap section[id^="hhe-"]{scroll-margin-top:18px}


/* 1.68.7 – yritysasetusten ja raporttisuodattimien yhtenäinen tumma käyttöliittymä */
.hhe-wrap #hhe-settings{
  width:100%;max-width:none;min-width:0;
  background:linear-gradient(145deg,#142231 0%,#101c29 100%);
  border-color:#30465b;padding:clamp(18px,2vw,26px);
}
.hhe-wrap #hhe-settings .hhe-title{margin-bottom:8px}
.hhe-wrap #hhe-settings>p{max-width:900px;margin:0 0 18px}
.hhe-wrap #hhe-settings .hhe-fields{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px;margin:18px 0 20px;
}
.hhe-wrap #hhe-settings .hhe-fields>label,
.hhe-wrap .hhe-report-filters .hhe-fields>label{
  display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:7px;
  min-width:0;color:#dce8f2;font-size:13px;font-weight:700;line-height:1.4;
}
.hhe-wrap #hhe-settings input:not([type=checkbox]),
.hhe-wrap #hhe-settings select,
.hhe-wrap .hhe-report-filters input,
.hhe-wrap .hhe-report-filters select{
  display:block;width:100%;min-width:0;min-height:42px;padding:9px 12px!important;
  border:1px solid #38536b!important;border-radius:8px!important;
  background:#0b1723!important;color:#edf5fb!important;
  color-scheme:dark;font:inherit;font-size:13px;line-height:1.4;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.18)!important;
}
.hhe-wrap #hhe-settings select option,
.hhe-wrap .hhe-report-filters select option{background:#101e2c;color:#edf5fb}
.hhe-wrap #hhe-settings input:focus,
.hhe-wrap #hhe-settings select:focus,
.hhe-wrap .hhe-report-filters input:focus,
.hhe-wrap .hhe-report-filters select:focus{
  outline:2px solid rgba(56,197,176,.22);border-color:#38c5b0!important;
}
.hhe-wrap #hhe-settings .hhe-fields label small{font-size:11px;line-height:1.45;color:#91a8bb}
.hhe-wrap #hhe-settings .hhe-fields .hhe-check{
  min-height:74px;display:flex;flex-direction:row;align-items:center;gap:12px;
  padding:13px 15px;border:1px solid #30485d;border-radius:10px;background:#0e1a27;
  line-height:1.5;
}
.hhe-wrap #hhe-settings .hhe-fields .hhe-check input{
  width:18px;height:18px;flex:0 0 18px;margin:0;accent-color:#38c5b0;
}
.hhe-wrap #hhe-settings .hhe-btn{min-width:160px;min-height:42px}
.hhe-wrap #hhe-reports .hhe-report-filters{
  padding:18px;background:#0e1a27;border:1px solid #2b4054;border-radius:12px;
}
.hhe-wrap #hhe-reports .hhe-report-filters .hhe-fields{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 16px;
}
.hhe-wrap #hhe-reports .hhe-report-filters .hhe-fields label{font-size:12px}
.hhe-wrap #hhe-reports .hhe-report-filters .hhe-btn{min-width:174px;min-height:42px}
.hhe-wrap #hhe-reports .hhe-stats{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
.hhe-wrap #hhe-reports .hhe-report-subtitle{margin-top:22px}
@media(max-width:900px){
 .hhe-wrap #hhe-reports .hhe-report-filters .hhe-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
 .hhe-wrap #hhe-settings .hhe-fields,
 .hhe-wrap #hhe-reports .hhe-report-filters .hhe-fields{grid-template-columns:1fr}
 .hhe-wrap #hhe-settings .hhe-btn,
 .hhe-wrap #hhe-reports .hhe-report-filters .hhe-btn{width:100%}
 .hhe-wrap #hhe-settings .hhe-title{align-items:flex-start;flex-direction:column}
}

/* Kaluston poistotoiminto */
.hhe-asset-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.hhe-asset-actions form{margin:0}
.hhe-btn-danger{border:1px solid rgba(255,100,100,.45)!important;background:rgba(160,45,55,.16)!important;color:#ff9b9b!important}
.hhe-btn-danger:hover{background:rgba(190,55,65,.28)!important}
.hhe-single-submit button[disabled]{opacity:.7;cursor:wait}

/* Company portal: keep sign-out visible in the account header. */
.hhe-companyline .hhe-logout{margin-left:auto;white-space:nowrap;align-self:center}
@media(max-width:700px){.hhe-companyline{flex-wrap:wrap;gap:10px}.hhe-companyline .hhe-logout{margin-left:0}}


/* 1.68.14 – Ajopäiväkirjan suodattimet ja vientipainikkeet mobiilissa */
.hhe-wrap #hhe-driving .hhe-history-filter{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;
  align-items:end;gap:10px;width:100%;min-width:0;
}
.hhe-wrap #hhe-driving .hhe-history-filter label{
  min-width:0;width:100%;max-width:100%;
}
.hhe-wrap #hhe-driving .hhe-history-filter select{min-width:0;width:100%;max-width:100%}
.hhe-wrap #hhe-driving .hhe-history-filter .hhe-btn{width:auto;white-space:nowrap}
.hhe-wrap #hhe-driving .hhe-driving-actions{
  display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 18px;min-width:0;
}
.hhe-wrap #hhe-driving .hhe-driving-actions .hhe-btn{width:auto;max-width:100%}
@media(max-width:600px){
  .hhe-wrap #hhe-driving .hhe-history-filter{
    grid-template-columns:minmax(0,1fr);gap:10px;
  }
  .hhe-wrap #hhe-driving .hhe-history-filter label{
    min-width:0;width:100%;font-size:12px;
  }
  .hhe-wrap #hhe-driving .hhe-history-filter .hhe-btn{width:100%;min-width:0}
  .hhe-wrap #hhe-driving .hhe-driving-actions{
    display:grid;grid-template-columns:minmax(0,1fr);gap:8px;width:100%;
  }
  .hhe-wrap #hhe-driving .hhe-driving-actions .hhe-btn{
    display:flex;width:100%;min-width:0;white-space:normal;text-align:center;
  }
}

/* Compact company subscription update dialog */
.hhe-companyline .hhe-subscription-open{margin-left:auto;white-space:nowrap}
.hhe-subscription-modal{width:min(820px,calc(100% - 24px))}
.hhe-modal-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.hhe-modal-heading .hhe-btn{width:auto}
.hhe-subscription-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.hhe-subscription-option{display:flex;flex-direction:column;gap:9px;padding:15px;border:1px solid #2c4358;border-radius:12px;background:#0d1824;min-width:0}
.hhe-subscription-option h3{margin:0;color:#fff;font-size:17px}
.hhe-subscription-option p{margin:0;line-height:1.5}
.hhe-subscription-option .hhe-btn{display:block;text-align:center;width:100%;box-sizing:border-box;text-decoration:none}
@media(max-width:700px){.hhe-subscription-options{grid-template-columns:1fr}.hhe-companyline{flex-wrap:wrap}.hhe-companyline .hhe-subscription-open{margin-left:0}}

.hhe-subscription-features{margin:0 0 5px;padding-left:19px;color:#d5e1ec;font-size:12px;line-height:1.55}
.hhe-subscription-features li{margin:0 0 5px}
.hhe-subscription-option{align-self:stretch}
.hhe-subscription-option .hhe-btn{margin-top:auto}

/* Owner-only company receipt area */
.hhe-wrap #hhe-receipts{margin:18px 0 22px;scroll-margin-top:24px}
.hhe-wrap #hhe-receipts h2{margin:0 0 8px}
.hhe-wrap #hhe-receipts>p{margin:0 0 16px;color:var(--hhe-muted,#9fb2c5)}
.hhe-receipt-list{display:grid;gap:10px}
.hhe-receipt-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 15px;border:1px solid var(--hhe-border,#2c4358);border-radius:10px;background:rgba(10,20,31,.35)}
.hhe-receipt-row>div{display:grid;gap:5px;min-width:0}
.hhe-receipt-row>div span{font-size:13px;color:var(--hhe-muted,#9fb2c5)}
.hhe-receipt-row .hhe-btn{flex:0 0 auto;white-space:nowrap}
@media(max-width:600px){.hhe-receipt-row{align-items:stretch;flex-direction:column}.hhe-receipt-row .hhe-btn{width:100%;text-align:center}}

/* 1.68.48: viimeistelty yrityksen otsake */
.hhe-companyline{align-items:center;gap:24px;padding:20px 22px;min-height:112px}
.hhe-company-identity{min-width:0;flex:1}
.hhe-company-title{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:10px}
.hhe-companyline .hhe-company-title h2{margin:0;font-size:21px;letter-spacing:-.35px}
.hhe-companyline .hhe-plan{display:inline-flex;align-items:center;padding:6px 11px;font-size:11px;line-height:1;border-radius:20px;white-space:nowrap}
.hhe-company-meta{display:flex;align-items:center;gap:7px 18px;flex-wrap:wrap;color:#a8c0cc;font-size:11px;line-height:1.5}
.hhe-company-meta>span{white-space:nowrap}
.hhe-company-meta .hhe-company-status{color:#70c9bd;font-weight:750}
.hhe-company-meta .hhe-company-expiry{color:#d5e2e9}
.hhe-company-actions{display:flex;align-items:center;gap:9px;flex:0 0 auto;padding-left:20px;border-left:1px solid rgba(133,171,190,.2)}
.hhe-company-actions .hhe-btn{min-height:40px;display:inline-flex;align-items:center;justify-content:center;padding:0 16px;white-space:nowrap}
.hhe-company-actions .hhe-logout{background:rgba(255,255,255,.045);border:1px solid rgba(160,190,210,.18);color:#c9d8e4}
.hhe-company-actions .hhe-logout:hover{background:rgba(255,255,255,.09);color:#fff}
@media(max-width:760px){.hhe-companyline{align-items:stretch;flex-direction:column;gap:15px;padding:17px}.hhe-company-meta{gap:5px 12px}.hhe-company-meta>span{white-space:normal}.hhe-company-actions{border-left:0;border-top:1px solid rgba(133,171,190,.2);padding:13px 0 0;justify-content:flex-start;flex-wrap:wrap}.hhe-company-actions .hhe-btn{flex:1 1 auto}}

/* 1.68.49: varmistetaan yrityksen yläkortin tietojen selkeät välit myös teemoissa, joissa flex-gap yliajetaan. */
.hhe-company-meta{column-gap:22px!important;row-gap:9px!important}
.hhe-company-meta>span{display:inline-block;margin-right:8px}
.hhe-company-meta .hhe-company-status{margin-right:10px}
.hhe-company-meta .hhe-company-expiry{margin-left:2px}

/* Kalustorekisterin suodattimet: suljettu oletuksena ja avataan nuolesta. */
.hhe-fleet-filters{margin:14px 0 10px;border:1px solid #2b4658;border-radius:11px;background:#0e1a27;overflow:hidden}
.hhe-fleet-filters>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;cursor:pointer;list-style:none;color:#eaf4fb}
.hhe-fleet-filters>summary::-webkit-details-marker{display:none}
.hhe-fleet-filters>summary span{display:grid;gap:4px}
.hhe-fleet-filters>summary strong{font-size:13px}
.hhe-fleet-filters>summary small{font-size:11px;color:#91a7ba}
.hhe-fleet-filters>summary i{width:10px;height:10px;border-right:2px solid #55d3c1;border-bottom:2px solid #55d3c1;transform:rotate(45deg);transition:transform .18s;flex:0 0 10px;margin:0 5px 5px}
.hhe-fleet-filters[open]>summary i{transform:rotate(225deg);margin-bottom:0}
.hhe-fleet-filter-form{padding:14px;border-top:1px solid #263d50}
.hhe-fleet-filter-form .hhe-fields{margin:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.hhe-fleet-filter-form label{min-width:0}
.hhe-fleet-filter-form .hhe-fleet-search{grid-column:1/-1}
.hhe-fleet-filter-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px}
.hhe-fleet-filter-actions>span{margin-left:auto;color:#91a7ba;font-size:12px}
@media(min-width:760px){.hhe-fleet-filter-form .hhe-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.hhe-fleet-filter-form .hhe-fleet-search{grid-column:auto}}
@media(max-width:420px){.hhe-fleet-filter-form{padding:11px}.hhe-fleet-filter-form .hhe-fields{grid-template-columns:1fr}.hhe-fleet-filter-form .hhe-fleet-search{grid-column:auto}.hhe-fleet-filter-actions>span{width:100%;margin-left:0}}

/* Compact maintenance work-order actions shown for plans approaching or past due. */
.hhe-asset-order-actions{display:flex;flex-wrap:wrap;gap:7px;padding:9px 12px 0}
.hhe-asset-order-actions .hhe-print-work-order{display:inline-flex;align-items:center;gap:6px;font-size:11px;padding:7px 10px}
.hhe-asset-order-actions .hhe-print-work-order:before{content:"↗";font-size:12px;line-height:1}

/* Huoltojen työnjohtajan tiivis tarkistuslista */
.hhe-maintenance-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) minmax(160px,220px);gap:10px;margin:14px 0}.hhe-maintenance-toolbar label{display:grid;gap:5px;color:#bdcbd9;font-size:11px;font-weight:700}.hhe-maintenance-toolbar input,.hhe-maintenance-toolbar select{width:100%;min-width:0;background:#0b1520!important;border:1px solid #33495f!important;border-radius:8px!important;color:#eff6fc!important;padding:10px 11px!important;font:inherit;font-size:13px}.hhe-maintenance-card{display:block}.hhe-maintenance-summary{display:flex;align-items:center;justify-content:space-between;gap:14px}.hhe-maintenance-primary{min-width:0;flex:1}.hhe-maintenance-meta{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.hhe-maintenance-meta code{color:#9eb4c8;font-size:11px;background:#17283a;padding:4px 7px;border-radius:5px}.hhe-maintenance-card.is-started{border-color:#547da2;background:linear-gradient(110deg,#14283b,#111c29)}.hhe-maintenance-details{margin-top:12px;padding:12px 14px;background:#09131e;border:1px solid #263c50;border-radius:9px}.hhe-maintenance-details>summary{cursor:pointer}.hhe-maintenance-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.hhe-maintenance-detail-grid>div{display:grid;gap:4px}.hhe-maintenance-detail-grid small{color:#8fa4b7;font-size:10px}.hhe-maintenance-detail-grid strong{color:#e7f0f7;font-size:12px}.hhe-maintenance-checklist{grid-column:1/-1}.hhe-maintenance-checklist p{white-space:normal;line-height:1.55;margin:4px 0 0}.hhe-maintenance-card[hidden]{display:none!important}.hhe-visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:600px){.hhe-maintenance-toolbar{grid-template-columns:1fr}.hhe-maintenance-summary{align-items:flex-start;flex-direction:column}.hhe-maintenance-detail-grid{grid-template-columns:1fr}.hhe-maintenance-checklist{grid-column:auto}.hhe-maintenance-toggle{width:100%}}

/* HuoltoHub 1.68.69 – kompakti työnjohtajan huoltotyöjono */
#hhe-jobs .hhe-maintenance-toolbar{grid-template-columns:minmax(240px,1fr) minmax(150px,190px);align-items:end;margin:12px 0 14px}
#hhe-jobs .hhe-subheading{margin:16px 0 7px;font-size:13px;font-weight:700;letter-spacing:.01em;color:#c9d7e3}
#hhe-jobs .hhe-maintenance-cards{display:grid;gap:0;margin:0 0 18px;border-top:1px solid #2a4054;border-bottom:1px solid #2a4054;border-radius:9px;overflow:hidden}
#hhe-jobs .hhe-maintenance-card{display:block;padding:10px 13px;border:0;border-bottom:1px solid #26394b;border-radius:0;background:#0d1824;box-shadow:none;transition:background .15s ease}
#hhe-jobs .hhe-maintenance-card:last-child{border-bottom:0}
#hhe-jobs .hhe-maintenance-card:hover{background:#142437}
#hhe-jobs .hhe-maintenance-card.is-overdue{border-left:3px solid #d66c68;background:#211d27;padding-left:10px}
#hhe-jobs .hhe-maintenance-card.is-started{border-left:3px solid #6398c4;background:#142437;padding-left:10px}
#hhe-jobs .hhe-maintenance-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px}
#hhe-jobs .hhe-maintenance-primary{display:grid;grid-template-columns:minmax(0,1fr);gap:2px}
#hhe-jobs .hhe-maintenance-meta{gap:7px;margin-bottom:1px}
#hhe-jobs .hhe-maintenance-meta code{font-size:10px;padding:2px 6px;border-radius:4px;letter-spacing:.02em}
#hhe-jobs .hhe-maintenance-card h3{margin:1px 0 0;font-size:13px;line-height:1.35;font-weight:700}
#hhe-jobs .hhe-maintenance-card p{margin:0;color:#b7c6d3;font-size:11px;line-height:1.4}
#hhe-jobs .hhe-maintenance-card .hhe-maintenance-primary>small{display:block;margin-top:2px;color:#91a5b7;font-size:10px;line-height:1.4}
#hhe-jobs .hhe-maintenance-toggle{white-space:nowrap;min-width:104px;padding:7px 10px;font-size:11px;border-radius:7px}
#hhe-jobs .hhe-maintenance-details{margin:9px 0 1px;padding:12px 13px;border-radius:7px;background:#09131e}
#hhe-jobs .hhe-maintenance-actions{padding-top:10px;margin-top:10px;border-top:1px solid #26394b;gap:7px}
#hhe-jobs .hhe-maintenance-actions .hhe-btn{padding:8px 11px;font-size:11px}
#hhe-jobs .hhe-maintenance-actions form{display:inline-flex}
@media(max-width:600px){
 #hhe-jobs .hhe-maintenance-toolbar{grid-template-columns:1fr;gap:8px}
 #hhe-jobs .hhe-maintenance-card{padding:10px}
 #hhe-jobs .hhe-maintenance-summary{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:7px}
 #hhe-jobs .hhe-maintenance-toggle{width:auto;min-width:0;padding:7px 8px;font-size:10px}
 #hhe-jobs .hhe-maintenance-card h3{font-size:12px}
 #hhe-jobs .hhe-maintenance-card p{font-size:10px}
 #hhe-jobs .hhe-maintenance-card .hhe-maintenance-primary>small{font-size:9px}
 #hhe-jobs .hhe-maintenance-actions{display:flex;flex-wrap:wrap}
 #hhe-jobs .hhe-maintenance-actions .hhe-btn{width:auto;flex:1 1 130px}
}

/* Huollot: kompakti työjono – korvaa aiemman korttimaisen esityksen. */
#hhe-jobs .hhe-maintenance-cards{display:block;margin:8px 0 18px;border:1px solid #2a4054;border-radius:8px;overflow:hidden;background:#0b1520}
#hhe-jobs .hhe-maintenance-card{display:block!important;margin:0!important;padding:9px 12px!important;border:0!important;border-bottom:1px solid #26394b!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
#hhe-jobs .hhe-maintenance-card:last-child{border-bottom:0!important}
#hhe-jobs .hhe-maintenance-card:hover{background:#142437!important}
#hhe-jobs .hhe-maintenance-card.is-overdue{border-left:3px solid #d66c68!important;padding-left:9px!important;background:#211d27!important}
#hhe-jobs .hhe-maintenance-card.is-started{border-left:3px solid #6398c4!important;padding-left:9px!important;background:#142437!important}
#hhe-jobs .hhe-maintenance-summary{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:12px!important}
#hhe-jobs .hhe-maintenance-primary{display:flex!important;flex-direction:column!important;gap:2px!important;min-width:0}
#hhe-jobs .hhe-maintenance-meta{display:flex!important;align-items:center!important;gap:7px!important;margin:0!important}
#hhe-jobs .hhe-maintenance-meta .hhe-status{padding:3px 8px!important;font-size:10px!important;line-height:1.35!important;border-radius:20px!important}
#hhe-jobs .hhe-maintenance-meta code{padding:2px 6px!important;font-size:10px!important;line-height:1.4!important}
#hhe-jobs .hhe-maintenance-card h3{margin:1px 0 0!important;font-size:13px!important;line-height:1.35!important}
#hhe-jobs .hhe-maintenance-card p{margin:0!important;font-size:11px!important;line-height:1.4!important}
#hhe-jobs .hhe-maintenance-card .hhe-maintenance-primary>small{display:block!important;margin:1px 0 0!important;font-size:10px!important;line-height:1.4!important}
#hhe-jobs .hhe-maintenance-toggle{width:auto!important;min-width:0!important;padding:7px 10px!important;font-size:11px!important;line-height:1.3!important;border-radius:6px!important;white-space:nowrap!important}
#hhe-jobs .hhe-maintenance-details:not([open]){display:none!important}
#hhe-jobs .hhe-maintenance-details[open]{display:block!important;margin:9px 0 1px!important;padding:11px 12px!important;border:1px solid #263c50!important;border-radius:7px!important;background:#09131e!important}
#hhe-jobs .hhe-maintenance-details>summary.hhe-visually-hidden{display:none!important}
#hhe-jobs .hhe-maintenance-actions{display:flex!important;flex-wrap:wrap!important;gap:7px!important;padding-top:10px!important;margin-top:10px!important;border-top:1px solid #26394b!important}
#hhe-jobs .hhe-maintenance-actions .hhe-btn{width:auto!important;flex:0 1 auto!important;padding:8px 11px!important;font-size:11px!important}
@media(max-width:600px){
 #hhe-jobs .hhe-maintenance-toolbar{grid-template-columns:1fr!important;gap:8px!important}
 #hhe-jobs .hhe-maintenance-card{padding:9px 10px!important}
 #hhe-jobs .hhe-maintenance-summary{grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:7px!important}
 #hhe-jobs .hhe-maintenance-primary{min-width:0!important}
 #hhe-jobs .hhe-maintenance-card h3{font-size:12px!important}
 #hhe-jobs .hhe-maintenance-card p{font-size:10px!important}
 #hhe-jobs .hhe-maintenance-card .hhe-maintenance-primary>small{font-size:9px!important}
 #hhe-jobs .hhe-maintenance-toggle{padding:7px 8px!important;font-size:10px!important}
 #hhe-jobs .hhe-maintenance-detail-grid{grid-template-columns:1fr!important}
 #hhe-jobs .hhe-maintenance-checklist{grid-column:auto!important}
 #hhe-jobs .hhe-maintenance-actions .hhe-btn{flex:1 1 125px!important}
}


/* Company message centre: responsive, consistently styled compose and reply forms. */
#hhe-messages .hhe-title { flex-wrap:wrap; align-items:flex-start; margin-bottom:10px; }
#hhe-messages .hhe-title h2 { font-size:clamp(20px,2.2vw,25px); line-height:1.25; }
#hhe-messages .hhe-title > span { font-size:12px; }
#hhe-messages > .hhe-muted { margin:0 0 16px; max-width:850px; }
#hhe-messages .hhe-message-form,
#hhe-messages .hhe-message-reply-form { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; padding:16px; margin:0; border-top:1px solid #263d50; }
#hhe-messages .hhe-message-form label,
#hhe-messages .hhe-message-reply-form label { display:grid; grid-template-columns:minmax(0,1fr); gap:7px; width:100%; color:#c4d2df; font-size:12px; font-weight:750; line-height:1.4; }
#hhe-messages .hhe-message-form input:not([type=hidden]),
#hhe-messages .hhe-message-form textarea,
#hhe-messages .hhe-message-reply-form textarea { display:block; width:100%; min-width:0; max-width:100%; background:#091521!important; border:1px solid #344b61!important; border-radius:9px!important; color:#edf5fb!important; padding:12px 13px!important; font:inherit; font-size:14px!important; line-height:1.5; box-shadow:none!important; }
#hhe-messages .hhe-message-form input::placeholder,
#hhe-messages .hhe-message-form textarea::placeholder,
#hhe-messages .hhe-message-reply-form textarea::placeholder { color:#8296aa; opacity:1; }
#hhe-messages .hhe-message-form input:focus,
#hhe-messages .hhe-message-form textarea:focus,
#hhe-messages .hhe-message-reply-form textarea:focus { outline:2px solid #38c5b044; border-color:#38c5b0!important; }
#hhe-messages .hhe-message-form textarea { min-height:130px; resize:vertical; }
#hhe-messages .hhe-message-form .hhe-btn,
#hhe-messages .hhe-message-reply-form .hhe-btn { justify-self:start; width:auto; min-width:210px; }
#hhe-messages .hhe-message-section-title { margin:26px 0 12px; color:#eaf3fa; font-size:19px; line-height:1.3; }
#hhe-messages .hhe-collapsible-form > form:not(.hhe-form) { display:grid; gap:12px; padding:15px; border-top:1px solid #263d50; }
#hhe-messages .hh-message-thread { display:grid; gap:9px; padding:14px; }
#hhe-messages .hh-message-bubble { max-width:92%; padding:11px 13px; border:1px solid #2b4358; border-radius:11px; background:#0b1723; }
#hhe-messages .hh-message-bubble.is-mine { justify-self:end; background:#12302f; border-color:#285b55; }
#hhe-messages .hh-message-bubble small { display:block; color:#91a7ba; font-size:10px; }
#hhe-messages .hh-message-bubble p { margin:6px 0 0; color:#e7f0f7; font-size:13px; line-height:1.55; overflow-wrap:anywhere; }
@media(max-width:600px){
 #hhe-messages .hhe-title { display:grid; grid-template-columns:1fr; gap:5px; }
 #hhe-messages .hhe-title > span { justify-self:start; }
 #hhe-messages .hhe-message-form,
 #hhe-messages .hhe-message-reply-form { padding:13px; }
 #hhe-messages .hhe-message-form .hhe-btn,
 #hhe-messages .hhe-message-reply-form .hhe-btn { width:100%; min-width:0; }
 #hhe-messages .hh-message-bubble { max-width:100%; }
}

/* HuoltoHub brand logo in company portal header */
.hhe-brand-block{min-width:0}.hhe-header-logo{display:block;width:76px;height:76px;max-width:100%;object-fit:contain;border-radius:16px;flex:0 0 76px;margin:0 0 12px}.hhe-brand-block>span{display:block;color:var(--accent);font-size:10px;font-weight:800;letter-spacing:2px;margin-bottom:4px}
@media(max-width:560px){.hhe-header-logo{width:60px;height:60px;flex-basis:60px;border-radius:13px;margin-bottom:9px}.hhe-head{align-items:flex-start}}


/* HuoltoHub 1.68.132 – puhdas kalustopiha yritysportaaliin */
.hhe-wrap{
  background-color:#07111b!important;
  background-image:linear-gradient(180deg,rgba(3,10,18,.58) 0%,rgba(4,12,21,.72) 52%,rgba(4,11,19,.86) 100%),url("../images/company-fleet-bg-1-68-137.jpg")!important;
  background-size:cover!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
  background-attachment:fixed;
  border-color:rgba(55,190,205,.2)!important;
}
.hhe-wrap .hhe-card,.hhe-wrap .hhe-stats>div,.hhe-wrap .hhe-nav,.hhe-wrap .hhe-companyline{
  background-color:rgba(9,20,31,.91);
  backdrop-filter:blur(7px);
}
.hhe-header-logo{width:76px!important;height:76px!important;object-fit:contain!important;border-radius:16px!important}
@media(max-width:700px){.hhe-wrap{background-attachment:scroll!important;background-position:58% top!important}.hhe-header-logo{width:60px!important;height:60px!important;border-radius:13px!important}}

/* 1.68.132: square site icon in the enterprise header */
.hhe-header-logo{display:block!important;width:76px!important;height:76px!important;max-width:76px!important;min-width:76px!important;object-fit:contain!important;aspect-ratio:1/1!important;border-radius:15px!important;flex:0 0 76px!important}
@media(max-width:560px){.hhe-header-logo{width:60px!important;height:60px!important;max-width:60px!important;min-width:60px!important;flex-basis:60px!important}}


/* HuoltoHub 1.68.137 – pidä yritysportaali keskitettynä */
.hhe-wrap {
  box-sizing: border-box !important;
  width: calc(100% - 48px) !important;
  max-width: 1800px !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
@media (max-width: 700px) {
  .hhe-wrap {
    width: calc(100% - 24px) !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}


/* HuoltoHub 1.68.139 – yritysportaalin muistilaput */
.hhe-notes{margin-top:18px;padding:16px;background:rgba(7,18,29,.72);border:1px solid rgba(69,103,128,.48);border-radius:12px}
.hhe-notes .hhe-title{margin-bottom:12px}
.hhe-note-create{margin:0 0 14px;padding:12px 14px;border:1px solid #29465c;border-radius:10px;background:rgba(14,29,43,.78)}
.hhe-note-create>summary,.hhe-note-edit>summary{cursor:pointer;color:#dceaf4;font-weight:750;list-style:none}
.hhe-note-create>summary::-webkit-details-marker,.hhe-note-edit>summary::-webkit-details-marker{display:none}
.hhe-note-create>summary:after{content:'＋';float:right;color:#4bd1bd;font-size:18px;line-height:1}
.hhe-note-create[open]>summary:after{content:'−'}
.hhe-note-create>summary small{display:block;margin-top:4px;color:#91a8bb;font-size:11px;font-weight:500}
.hhe-note-fields{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(260px,1.6fr);gap:10px;margin:14px 0}
.hhe-note-fields label{display:grid;gap:6px;color:#c3d2df;font-size:12px;font-weight:700;min-width:0}
.hhe-note-fields input,.hhe-note-fields textarea{box-sizing:border-box;width:100%;min-width:0;max-width:100%;padding:10px 11px;border:1px solid #344d62;border-radius:8px;background:#0a1723;color:#edf5fb;font:inherit;font-size:13px}
.hhe-note-fields textarea{resize:vertical;min-height:76px;line-height:1.5}
.hhe-note-share{display:flex;align-items:center;gap:9px;margin:10px 0 12px;color:#d9e6ef;font-size:12px;cursor:pointer}
.hhe-note-share input{width:17px;height:17px;flex:0 0 17px;accent-color:#29b9a8}
.hhe-note-share span{display:grid;gap:2px}.hhe-note-share small{color:#91a8bb;font-size:10px;font-weight:500}
.hhe-note-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:10px}
.hhe-note{min-width:0;padding:13px;border:1px solid #30485d;border-radius:10px;background:rgba(17,32,47,.9)}
.hhe-note-top{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}.hhe-note-top>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.hhe-note h3{margin:0;color:#edf5fb;font-size:14px;line-height:1.35}.hhe-note-visibility{padding:3px 7px;border-radius:20px;background:#25394b;color:#a9c0d1;font-size:10px;font-weight:700}.hhe-note-visibility.is-shared{background:rgba(35,151,132,.18);color:#58d5bd}
.hhe-note-author{color:#91a8bb;font-size:10px;white-space:nowrap}
.hhe-note-content{margin:10px 0;color:#d0dce6;font-size:13px;line-height:1.55;overflow-wrap:anywhere}
.hhe-note-meta{color:#8299ad;font-size:10px}
.hhe-note-edit{margin-top:10px;padding-top:8px;border-top:1px solid rgba(116,145,168,.2)}
.hhe-note-edit>summary{font-size:11px;color:#55cbbb}
.hhe-note-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.hhe-note-delete{color:#ffaaa5!important;border-color:rgba(220,100,100,.35)!important}
.hhe-notes-empty{margin:0;padding:14px}
@media(max-width:700px){.hhe-note-fields{grid-template-columns:minmax(0,1fr)}.hhe-note-list{grid-template-columns:minmax(0,1fr)}.hhe-notes{padding:12px}}


/* HuoltoHub 1.68.141 – vakauta keskitys WordPress-sivupohjan tasolla.
   Rajaa vain yritysportaalin sisältöketju; älä muuta sivun korkeutta tai footeria. */
html:has(body.hh-has-enterprise),
body.hh-has-enterprise {
  max-width: 100% !important;
  overflow-x: clip !important;
}
body.hh-has-enterprise .site-content:has(.hhe-wrap),
body.hh-has-enterprise .content-area:has(.hhe-wrap),
body.hh-has-enterprise .site-main:has(.hhe-wrap),
body.hh-has-enterprise main:has(.hhe-wrap),
body.hh-has-enterprise article:has(.hhe-wrap),
body.hh-has-enterprise .entry-content:has(.hhe-wrap),
body.hh-has-enterprise .wp-block-post-content:has(.hhe-wrap) {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
body.hh-has-enterprise .hhe-wrap {
  display: block !important;
  position: relative !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  box-sizing: border-box !important;
  float: none !important;
  width: calc(100% - 48px) !important;
  max-width: 1800px !important;
  min-width: 0 !important;
  margin: 18px auto !important;
}
@media (max-width: 700px) {
  body.hh-has-enterprise .hhe-wrap {
    width: calc(100% - 24px) !important;
    max-width: none !important;
    margin: 12px auto !important;
  }
}


/* HuoltoHub 1.68.142 – yrityskalenteri */
.hhe-calendar{margin-top:14px}
.hhe-calendar-create{margin:0 0 16px;padding:12px;border:1px solid #2c465b;border-radius:10px;background:#101e2b}
.hhe-calendar-create>summary{cursor:pointer;display:flex;flex-direction:column;gap:3px;color:#eaf4fb}
.hhe-calendar-create>summary small{color:#91a7ba;font-size:11px}
.hhe-calendar-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin:14px 0}
.hhe-calendar-fields label{display:grid;gap:6px;min-width:0;color:#c3d2df;font-size:12px;font-weight:700}
.hhe-calendar-fields input,.hhe-calendar-fields select,.hhe-calendar-fields textarea{box-sizing:border-box;width:100%;min-width:0;max-width:100%;padding:10px 11px;border:1px solid #344d62;border-radius:8px;background:#0a1723;color:#edf5fb;font:inherit;font-size:13px}
.hhe-calendar-fields .hhe-calendar-description{grid-column:1/-1}
.hhe-calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:14px 0}
.hhe-calendar-toolbar>strong{text-transform:capitalize;color:#eef5fb}
.hhe-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
.hhe-calendar-weekday{text-align:center;padding:7px 2px;color:#8fa6ba;font-size:11px;font-weight:800}
.hhe-calendar-day{min-width:0;min-height:86px;padding:7px;border:1px solid #293f54;border-radius:8px;background:#0d1925;overflow:hidden}
.hhe-calendar-day>strong{display:block;margin-bottom:5px;color:#eaf3fa;font-size:12px}
.hhe-calendar-day.is-empty{background:rgba(10,20,30,.35);border-color:rgba(41,63,84,.4)}
.hhe-calendar-day.is-today{border-color:#38c5b0;box-shadow:inset 0 0 0 1px rgba(56,197,176,.2)}
.hhe-calendar-event{margin:3px 0;padding:4px 5px;border-radius:5px;background:#203b52;color:#d8eafa;font-size:10px;line-height:1.3;overflow-wrap:anywhere}
.hhe-calendar-event.is-shared{background:#16453f;color:#c5f5eb}
.hhe-calendar-event-list{margin-top:20px}
.hhe-calendar-event-list h3{font-size:15px;color:#eaf3fa}
.hhe-calendar-item{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin:8px 0;padding:11px;border:1px solid #2b4258;border-radius:9px;background:#101d2a}
.hhe-calendar-item-main{display:flex;flex-direction:column;gap:4px;min-width:0}
.hhe-calendar-item-main>strong{color:#eff6fb;font-size:13px}
.hhe-calendar-item-main>span,.hhe-calendar-item-main>small{color:#91a7ba;font-size:11px}
.hhe-calendar-item-main p{margin:4px 0;color:#cbd8e3;font-size:12px;line-height:1.5}
.hhe-calendar-item-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;flex:0 0 auto}
.hhe-calendar-item-actions details>summary{cursor:pointer;color:#49cbb8;font-size:12px;font-weight:700}
.hhe-calendar-item-actions form{margin:0}
@media(max-width:700px){.hhe-calendar-fields{grid-template-columns:minmax(0,1fr)}.hhe-calendar-fields .hhe-calendar-description{grid-column:auto}.hhe-calendar-day{min-height:64px;padding:4px}.hhe-calendar-event{font-size:9px;padding:3px}.hhe-calendar-item{flex-direction:column}.hhe-calendar-item-actions{width:100%}}
@media(max-width:420px){.hhe-calendar-grid{gap:2px}.hhe-calendar-day{min-height:55px;padding:3px}.hhe-calendar-weekday{font-size:9px}.hhe-calendar-event{font-size:8px}}
/* Company contact directory */
.hhe-contact-toolbar{display:grid;grid-template-columns:minmax(180px,1fr) minmax(150px,220px) auto;gap:8px;margin:14px 0}
.hhe-contact-toolbar input,.hhe-contact-toolbar select{min-width:0;width:100%;background:#0b1520!important;border:1px solid #33495f!important;border-radius:8px!important;color:#eff6fc!important;padding:10px 11px!important;font:inherit;font-size:12px}
.hhe-contact-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
.hhe-contact{display:flex;justify-content:space-between;gap:12px;min-width:0;background:#0d1824;border:1px solid #26394d;border-radius:10px;padding:13px}
.hhe-contact-main{display:grid;gap:6px;min-width:0;flex:1}
.hhe-contact-main>div:first-child{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.hhe-contact-main>div:first-child strong{color:#edf4fa;font-size:13px;overflow-wrap:anywhere}
.hhe-contact-main>div:first-child span{font-size:10px;color:#9fe5d9;background:#173b3b;border-radius:20px;padding:4px 7px}
.hhe-contact-main small{font-size:11px;color:#98aabd;overflow-wrap:anywhere}
.hhe-contact-main p{margin:2px 0 0;color:#c6d5e3;font-size:12px;white-space:normal;overflow-wrap:anywhere}
.hhe-contact-links{display:flex;gap:10px;flex-wrap:wrap}
.hhe-contact-links a{font-size:12px;color:#71d8c8;text-decoration:none;overflow-wrap:anywhere}
.hhe-contact-links a:hover{text-decoration:underline}
.hhe-contact-edit{flex:0 0 auto;min-width:74px}
.hhe-contact-edit>summary{cursor:pointer;color:#9fb4c7;font-size:11px}
.hhe-contact-edit .hhe-form{min-width:min(480px,75vw)}
@media(max-width:700px){.hhe-contact-list{grid-template-columns:1fr}.hhe-contact-toolbar{grid-template-columns:1fr}.hhe-contact-edit .hhe-form{min-width:0}}

/* 1.68.145: kompakti yrityksen tilapalkki */
.hhe-wrap .hhe-companyline-compact{align-items:center;gap:16px;padding:10px 14px;min-height:0;margin-bottom:12px}
.hhe-wrap .hhe-companyline-compact .hhe-company-identity{min-width:0;flex:1}
.hhe-wrap .hhe-companyline-compact .hhe-company-title{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.hhe-wrap .hhe-companyline-compact .hhe-company-title h2{font-size:17px;line-height:1.25;margin:0}
.hhe-wrap .hhe-companyline-compact .hhe-plan{padding:5px 9px;font-size:10px}
.hhe-wrap .hhe-company-details{margin-top:5px}
.hhe-wrap .hhe-company-details summary{display:flex;align-items:center;gap:9px;flex-wrap:wrap;cursor:pointer;list-style:none;font-size:10px;color:#a8c0cc;line-height:1.4}
.hhe-wrap .hhe-company-details summary::-webkit-details-marker{display:none}
.hhe-wrap .hhe-company-details summary:after{content:"▾";font-size:11px;color:var(--accent)}
.hhe-wrap .hhe-company-details[open] summary:after{content:"▴"}
.hhe-wrap .hhe-company-details .hhe-company-status{font-size:10px;color:#70c9bd;font-weight:750}
.hhe-wrap .hhe-company-details .hhe-details-label{color:#9db2c3;text-decoration:underline;text-underline-offset:2px}
.hhe-wrap .hhe-company-details .hhe-company-meta{display:flex;gap:5px 14px;flex-wrap:wrap;margin-top:7px;font-size:10px;line-height:1.4}
.hhe-wrap .hhe-company-details .hhe-company-meta>span{white-space:normal;font-size:10px}
.hhe-wrap .hhe-companyline-compact .hhe-company-actions{gap:7px;padding-left:12px}
.hhe-wrap .hhe-companyline-compact .hhe-company-actions .hhe-btn{width:auto;min-height:34px;padding:0 11px;font-size:10px}
@media(max-width:760px){.hhe-wrap .hhe-companyline-compact{flex-direction:row;align-items:center;flex-wrap:wrap;gap:8px 12px;padding:9px 11px}.hhe-wrap .hhe-companyline-compact .hhe-company-identity{flex:1 1 190px}.hhe-wrap .hhe-companyline-compact .hhe-company-title h2{font-size:15px}.hhe-wrap .hhe-companyline-compact .hhe-company-actions{border:0;padding:0;margin-left:auto;flex:0 0 auto;gap:5px}.hhe-wrap .hhe-companyline-compact .hhe-company-actions .hhe-btn{width:auto;min-height:32px;padding:0 9px;font-size:10px}.hhe-wrap .hhe-company-details{margin-top:3px}}
@media(max-width:420px){.hhe-wrap .hhe-companyline-compact .hhe-company-identity{flex-basis:100%}.hhe-wrap .hhe-companyline-compact .hhe-company-actions{margin-left:0}.hhe-wrap .hhe-companyline-compact .hhe-company-actions .hhe-btn{min-height:30px}}

/* Henkilöstöhallinto */
.hhe-employee-card{align-items:flex-start!important;flex-wrap:wrap}.hhe-employee-edit{flex:0 0 100%;margin-left:44px;color:var(--text);font-size:12px}.hhe-employee-edit>summary{display:inline-flex;cursor:pointer;color:var(--accent);font-weight:800;padding:7px 0}.hhe-employee-edit form{display:grid;gap:9px;padding:10px 0}.hhe-employee-edit label{display:grid;gap:5px;color:var(--muted);font-size:11px;font-weight:700}.hhe-employee-edit input,.hhe-employee-edit textarea,.hhe-employee-edit select{width:100%;min-width:0;background:#0b1520!important;border:1px solid #33495f!important;border-radius:8px!important;color:#eff6fc!important;padding:9px!important;font:inherit}.hhe-employee-edit .hhe-btn{margin-top:4px}.hhe-btn-danger{background:#71343d!important;color:#fff!important}
@media(max-width:560px){.hhe-employee-edit{margin-left:0}.hhe-employee-card{gap:8px!important}}

.hhe-employee-search{display:flex;align-items:flex-end;gap:9px;margin:14px 0}.hhe-employee-search label{display:grid;gap:5px;flex:1;color:var(--muted);font-size:11px;font-weight:700}.hhe-employee-search input{width:100%;background:#0b1520!important;border:1px solid #33495f!important;border-radius:8px!important;color:#eff6fc!important;padding:10px!important}@media(max-width:560px){.hhe-employee-search{align-items:stretch;flex-direction:column}.hhe-employee-search .hhe-btn{width:100%}}


/* HuoltoHub beta announcement */
.hh-beta-banner {
  box-sizing:border-box; display:flex; width:100%; margin:0 0 16px; padding:13px 16px;
  border:1px solid #27617a; border-left:4px solid #20c6d4; border-radius:10px;
  background:linear-gradient(105deg,#10283a,#102032); color:#eaf5fb;
  font-family:inherit; line-height:1.5; gap:10px;
}
.hh-beta-banner-copy { display:flex; flex-direction:column; gap:3px; min-width:0; }
.hh-beta-banner strong { color:#ffffff; font-size:14px; font-weight:800; }
.hh-beta-banner span { color:#c6d7e4; font-size:12px; }
.hh-beta-banner a { color:#38d6e4; font-weight:700; text-decoration:underline; overflow-wrap:anywhere; }
.hh-beta-banner .hh-beta-reward { color:#72e4ce; font-weight:700; margin-top:2px; }
@media(max-width:600px) {
 .hh-beta-banner { padding:11px 12px; margin-bottom:12px; border-radius:8px; }
 .hh-beta-banner strong { font-size:13px; }
 .hh-beta-banner span { font-size:11px; }
}

/* 1.68.170 – tärkeä joukkoviesti erottuu yrityksen yleiskatsauksessa */
.hhe-alert-important{border-color:#28618a!important;background:linear-gradient(110deg,#102b43,#102238)!important}
.hhe-alert-important .hhe-alert-dot{background:#55baff!important;box-shadow:0 0 0 4px rgba(85,186,255,.12)}
.hhe-alert-important>div strong{color:#f2f8ff}
.hhe-alert-important>div small{color:#bfd2e2}
