
/* Shared shell for the unified HayKingdom facility application. */
:root{--hk-green:#355f4e;--hk-green-dark:#2e5547;--hk-soft:#eef8f2;--hk-line:#a9d0bd;--hk-amber:#f0c36d}
html,body,.app-shell{touch-action:pan-x pan-y pinch-zoom!important}
button,input,select,textarea,a{-webkit-text-fill-color:currentColor}
a[x-apple-data-detectors],a[href^="tel:"],a[href^="sms:"]{
  color:inherit!important;
  text-decoration:none!important;
  font:inherit!important;
  -webkit-text-fill-color:currentColor!important;
}
.topbar{background:var(--hk-green)!important;background-image:none!important}
.topbar .brand,.topbar .app-home{margin-right:0!important;flex:0 0 auto!important}
.topbar .search-wrap,.topbar .top-search{display:none!important}
.topbar .brand-logo,.topbar .logo-link img{object-fit:contain!important;max-width:64px!important;max-height:64px!important}
.hk-facility-switch,.facility-switch{order:2!important;flex:0 0 auto!important}
.search-wrap,.top-search{order:3!important}
.top-actions{order:4!important}
.hk-build-badge,[data-version-badge],.version-badge{display:none!important}
.hk-inspector-action{border:1px solid var(--hk-line);background:var(--hk-soft);border-radius:8px;padding:11px;color:#315f4d}
.hk-inspector-action-row{display:flex;align-items:center;gap:10px;justify-content:space-between}
.hk-inspector-action-copy{min-width:0}
.hk-inspector-action strong{display:block;font-size:12px;font-weight:850}
.hk-inspector-action span{display:block;font-size:10px;margin-top:4px;line-height:1.35}
.hk-green-btn{border:1px solid #74a78e!important;background:#fff!important;color:#245b47!important;border-radius:7px!important;padding:8px 12px!important;font-weight:800!important;cursor:pointer!important;white-space:nowrap}
.hk-green-btn:hover{background:#e5f3eb!important;border-color:#4d8b6e!important}
.hk-green-btn:disabled{opacity:.45!important;cursor:not-allowed!important;background:#f6f8f7!important}
.hk-order-buttons{display:flex;gap:8px;margin-top:9px}
.hk-order-buttons .hk-green-btn{flex:1}
.hk-placement-preview{margin-top:7px;font-size:10px;color:#315f4d;min-height:14px}
.hk-winters-lines-row{
  display:grid;grid-template-columns:auto minmax(0,1fr);
  gap:9px;align-items:center;padding:7px 9px;border:1px solid #c9ddd2;
  border-radius:6px;background:#f7fbf9;color:#275d40;
}
.hk-winters-lines-row label{display:flex;align-items:center;gap:7px;min-width:0;font-size:11px;font-weight:750}
.hk-winters-lines-input{
  width:82px;min-width:0;min-height:34px;border:1px solid #89b09b;
  border-radius:5px;background:#fff;padding:6px 7px;color:#173d31;
}
.hk-winters-lines-note{min-width:0;font-size:9.5px;line-height:1.3}
@media(max-width:420px){
  .hk-winters-lines-row{grid-template-columns:1fr;gap:5px}
  .hk-winters-lines-note{padding-left:0}
}
@media(max-width:1180px){.topbar .search-wrap,.topbar .top-search{order:5!important;flex-basis:100%!important;width:100%!important;margin-left:0!important}}
@media(max-width:760px){.hk-facility-switch,.facility-switch{order:3!important}.top-actions{order:4!important}.topbar .search-wrap,.topbar .top-search{order:5!important}}


/* Unified inventory alerts */
.hk-alert-dialog{
  width:min(760px,calc(100vw - 32px));
  max-height:min(680px,calc(100vh - 48px));
  padding:0;
  border:0;
  border-radius:14px;
  box-shadow:0 24px 70px rgba(15,34,27,.28);
  color:#17251f;
}
.hk-alert-dialog::backdrop{background:rgba(12,28,22,.48)}
.hk-alert-dialog>header{
  display:flex;align-items:center;justify-content:space-between;
  gap:18px;padding:18px 20px 14px;border-bottom:1px solid #dce5e0;
}
.hk-alert-dialog>header small{display:block;color:#6d7d75;font-weight:800;letter-spacing:.12em}
.hk-alert-dialog>header h2{margin:4px 0 0;font-size:22px}
.hk-alert-dialog>header button{
  width:38px;height:38px;border:1px solid #1d2d26;border-radius:50%;
  background:#fff;font-size:24px;cursor:pointer;
}
.hk-alert-dialog>p{margin:0;padding:16px 20px;color:#65766e;border-bottom:1px solid #edf1ef}
.hk-alert-list{max-height:500px;overflow:auto;padding:10px 16px 16px}
.hk-alert-row{
  display:grid;grid-template-columns:minmax(160px,1fr) minmax(220px,1.5fr) auto;
  gap:16px;align-items:center;padding:12px 10px;margin:8px 0;
  border:1px solid #ead2cb;border-radius:10px;background:#fffaf8;
}
.hk-alert-row>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.hk-alert-row strong,.hk-alert-row small,.hk-alert-row span{overflow:hidden;text-overflow:ellipsis}
.hk-alert-row strong{font-size:14px}.hk-alert-row small{color:#738078}
.hk-alert-row span{font-size:13px}
.hk-alert-row button{
  padding:8px 14px;border:1px solid #c9d8d0;border-radius:7px;background:#fff;cursor:pointer;
}
.hk-alert-row button:hover{border-color:#4b8b70;background:#f1f8f4}
.hk-alert-empty{padding:24px;text-align:center;color:#6b7b73}
#metric-known,#metric-available{font-size:clamp(17px,1.5vw,23px)}
.metric-strip{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.metric-strip>.metric:first-child,.metric-strip>.metric.hk-capacity-hidden{display:none!important}
.metric-strip.hk-summary-three>.metric{border-right:1px solid var(--line,#d7e0e6)!important}
.metric-strip.hk-summary-three>.metric:last-child{border-right:0!important}
.hk-count-status{position:relative!important;cursor:pointer!important;text-align:left}.hk-count-status:hover{background:#f7fbf8!important}.hk-count-status>span:last-child{display:grid!important;gap:1px!important;min-width:230px!important}.hk-count-status small{margin-bottom:2px!important;font-weight:800!important}.hk-count-status strong,.hk-count-status em,.hk-count-updated-by{display:grid!important;grid-template-columns:78px minmax(0,1fr)!important;align-items:baseline!important;gap:8px!important;font-size:12px!important;line-height:1.4!important;color:#173d31!important;font-style:normal!important;font-weight:800!important}.hk-count-status strong::before,.hk-count-status em::before,.hk-count-updated-by::before{font-size:10px!important;color:#6a7d8c!important;font-weight:700!important}.hk-count-status strong::before{content:"Count Date"}.hk-count-status em::before{content:"Update Date"}.hk-count-updated-by::before{content:"Updated By"}.hk-count-status::after{content:"Edit";position:absolute;right:10px;top:9px;color:#2d6652;font-size:10px;font-weight:800}.hk-count-dialog{position:fixed!important;inset:auto!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important;margin:0!important;border:0;border-radius:12px;padding:0;width:min(440px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;color:#173d31;box-shadow:0 22px 70px rgba(8,34,25,.35)}.hk-count-dialog::backdrop{background:rgba(9,30,23,.55)}.hk-count-dialog form{padding:20px;display:grid;gap:14px}.hk-count-dialog h2{margin:0;font-size:21px}.hk-count-dialog p{margin:0;color:#60756b;font-size:13px}.hk-count-dialog label{display:grid;gap:6px;font-weight:800;font-size:12px}.hk-count-dialog input{width:100%;min-height:44px;border:1px solid #b9cdc3;border-radius:7px;padding:9px 11px;font:inherit}.hk-count-dialog menu{display:flex;justify-content:flex-end;gap:8px;margin:2px 0 0;padding:0}.hk-count-dialog button{min-height:42px;border:1px solid #b9cdc3;border-radius:7px;background:#fff;padding:8px 15px;font-weight:800;cursor:pointer}.hk-count-dialog button[type=submit]{background:#245f4b;border-color:#245f4b;color:#fff}.hk-count-error{color:#b43b32!important;font-weight:700}.hk-count-audit{border-top:1px solid #e0e9e4;padding-top:10px!important}
.topbar .secondary-action,.topbar .primary-action,.topbar #import-btn,.topbar #export-btn{display:none!important}
.hk-tonnage-metric{position:relative!important;cursor:pointer!important;outline-offset:-3px}
.metric-strip.hk-tonnage-menu-open{overflow:visible!important;position:relative;z-index:70}
.hk-tonnage-metric::after{content:"▾";position:absolute;right:12px;top:12px;color:#2d6652;font-size:12px}
.hk-tonnage-metric.hk-tonnage-open::after{content:"▴"}
.hk-tonnage-breakdown{
  display:none;position:absolute;z-index:90;top:calc(100% + 8px);left:50%;
  width:min(620px,calc(100vw - 24px));max-height:min(560px,70vh);overflow:auto;
  transform:translateX(-50%);padding:0;border:1px solid #bdd0c6;border-radius:12px;
  background:#fff;color:#173d31;box-shadow:0 18px 45px rgba(21,55,43,.2);text-align:left;
}
.hk-tonnage-open>.hk-tonnage-breakdown{display:grid;grid-template-columns:1fr 1fr}
.hk-tonnage-breakdown>header{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;background:#edf6f1;border-bottom:1px solid #d5e3dc}
.hk-tonnage-breakdown>header strong{font-size:14px}.hk-tonnage-breakdown>header span{font-size:12px;color:#527064}
.hk-tonnage-breakdown section{min-width:0;padding:13px 15px}.hk-tonnage-breakdown section+section{border-left:1px solid #e2ebe7}
.hk-tonnage-breakdown h3{margin:0 0 8px;font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:#61766c}
.hk-tonnage-breakdown ul{list-style:none;margin:0;padding:0}.hk-tonnage-breakdown li{display:flex;justify-content:space-between;gap:10px;padding:7px 0;border-bottom:1px solid #edf2ef;font-size:12px}
.hk-tonnage-breakdown li span{min-width:0;overflow-wrap:anywhere}.hk-tonnage-breakdown li strong{white-space:nowrap;color:#1f654a}
.hk-tonnage-commodity-button{display:grid;grid-template-columns:minmax(0,1fr) auto 12px;align-items:center;gap:9px;width:100%;margin:0;padding:7px 8px;border:0;border-radius:7px;background:transparent;color:inherit;text-align:left;cursor:pointer}
.hk-tonnage-commodity-button:hover,.hk-tonnage-commodity-button.selected{background:#e7f3ed}.hk-tonnage-commodity-button.selected{box-shadow:inset 3px 0 #2d7659}.hk-tonnage-commodity-button i{font-size:18px;font-style:normal;color:#527064}.hk-tonnage-commodities li{padding:0}
@media(max-width:700px){
  .hk-alert-row{grid-template-columns:1fr auto}
  .hk-alert-row>span{grid-column:1/-1;grid-row:2}
  .hk-tonnage-breakdown{position:fixed;top:12px;left:12px;right:12px;width:auto;max-height:calc(100vh - 24px);transform:none}
  .hk-tonnage-open>.hk-tonnage-breakdown{grid-template-columns:1fr}.hk-tonnage-breakdown section+section{border-left:0;border-top:1px solid #e2ebe7}
}
@media(max-width:700px){
  .metric-strip.hk-summary-three{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .metric-strip.hk-summary-three>.metric:last-child{grid-column:1/-1;border-top:1px solid var(--line,#d7e0e6)!important}
}

/* v2.3 centered Winters alert dialog */
.hk-alert-dialog{
  position:fixed!important;
  inset:auto!important;
  top:50%!important;
  left:50%!important;
  transform:translate(-50%,-50%)!important;
  margin:0!important;
}

/* One shared Find My Hay layout and result model for every facility */
body .find-hay{
  display:grid!important;
  grid-template-columns:300px minmax(320px,1fr)!important;
  gap:14px!important;
  align-items:center!important;
  padding:13px!important;
}
body .find-hay>.find-results{
  grid-column:1/-1!important;
  width:100%!important;
  max-height:280px!important;
  overflow:auto!important;
}
.hk-find-my-hay .find-hay-heading{display:flex;align-items:center;gap:12px}.hk-find-my-hay .find-hay-heading>span{width:39px;height:39px;border-radius:8px;background:#315f4d;color:#fff;display:grid;place-items:center}.hk-find-my-hay h2{margin:0 0 3px;font-size:18px}.hk-find-my-hay p{margin:0;color:#66788a;font-size:12px}.hk-find-my-hay label small{display:block;font-size:9px;font-weight:850;letter-spacing:.06em;margin-bottom:5px}.hk-find-my-hay input{width:100%;border:1px solid #c8d3dc;border-radius:6px;background:#fff;padding:10px;outline:none}.hk-find-my-hay input:focus{border-color:#5f917c;box-shadow:0 0 0 3px #3c7b6120}.hk-find-my-hay .find-results{grid-column:1/-1;display:flex;flex-direction:column;gap:7px;max-height:270px;overflow:auto}.hk-find-my-hay .search-result{display:grid;grid-template-columns:30px minmax(130px,.8fr) minmax(230px,1.5fr) minmax(180px,1.15fr) minmax(120px,.7fr) 64px;align-items:center;gap:12px;width:100%;min-height:56px;padding:8px 12px;border:1px solid #c8d8cd;border-radius:8px;background:#f8fbf9;color:#174c3c;text-align:left;cursor:pointer}.hk-find-my-hay .search-result:hover{background:#edf6f0}.hk-find-my-hay .search-result small{display:block;font-size:9px;letter-spacing:.06em;color:#6a7e8f;font-weight:800}.hk-find-my-hay .search-result strong{font-size:15px}.hk-find-my-hay .search-result b{font-size:13px}.hk-find-my-hay .search-result em{font-style:normal;font-weight:800}.hk-find-my-hay .result-icon{width:27px;height:27px;border-radius:50%;display:grid;place-items:center;background:#dff4e7;color:#1a9661;font-size:16px}.hk-find-my-hay .location-result{grid-template-columns:30px 1fr auto}.hk-find-my-hay .no-results{color:#66788a;padding:10px}
.hay-search-highlight{position:relative;z-index:8!important;outline:2px solid rgba(196,138,47,.78)!important;box-shadow:0 0 0 4px rgba(196,138,47,.16),0 6px 18px rgba(196,138,47,.18)!important;transition:box-shadow .22s ease,outline-color .22s ease}@keyframes hayBuddySoftPulse{0%{box-shadow:0 0 0 0 rgba(196,138,47,0),0 3px 10px rgba(196,138,47,.12)}50%{box-shadow:0 0 0 5px rgba(196,138,47,.14),0 8px 20px rgba(196,138,47,.16)}100%{box-shadow:0 0 0 4px rgba(196,138,47,.12),0 6px 18px rgba(196,138,47,.18)}}.hay-search-highlight.hay-search-pulse{animation:hayBuddySoftPulse 1.2s ease 2}
.hk-wim-shipment{
  color:#275d40;
  background:#f0f8f3;
  border:1px solid #b9d5c3;
  border-radius:6px;
  padding:10px 11px;
}
.hk-wim-shipment>span{display:flex;flex-direction:column;gap:3px}
.hk-wim-shipment b{font-size:11px}
.hk-wim-shipment small{color:#527663;font-size:9px}
.hk-wim-shipment-controls{
  display:grid;
  grid-template-columns:minmax(0,1fr) 90px auto;
  gap:7px;
  margin-top:9px;
}
.hk-wim-shipment-controls input,.hk-wim-shipment-controls select{
  min-width:0;
  min-height:36px;
  border:1px solid #78a88a;
  border-radius:5px;
  background:#fff;
  padding:7px 8px;
}
.hk-wim-shipment-controls button{
  color:#275d40;
  background:#fff;
  border:1px solid #78a88a;
  border-radius:5px;
  padding:0 12px;
  font-weight:750;
  cursor:pointer;
}
@media(max-width:900px){
  body .find-hay{grid-template-columns:1fr!important}
  body .find-hay>.find-results{grid-column:1!important}
  .hk-find-my-hay .search-result{grid-template-columns:28px 1fr 1fr}.hk-find-my-hay .search-result>span:nth-of-type(3),.hk-find-my-hay .search-result>span:nth-of-type(4),.hk-find-my-hay .search-result em{display:none}
}
@media(max-width:600px){.hk-find-my-hay .search-result{grid-template-columns:27px 1fr}.hk-find-my-hay .search-result>span:nth-of-type(n+3),.hk-find-my-hay .search-result em{display:none}.hk-find-my-hay input{font-size:16px}}

.hk-find-my-hay .result-tonnage{display:block!important;color:#21704e!important;font-size:11px!important;margin-top:2px}
.hk-company-overview-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}.hk-company-overview-grid>div{min-width:0}.hk-company-overview-grid h3{margin:8px 0 6px;color:#63766f;font-size:10px;letter-spacing:.06em;text-transform:uppercase;overflow-wrap:anywhere}.hk-company-commodity-list{display:grid;gap:4px}.hk-company-commodity{display:grid!important;grid-template-columns:minmax(0,1fr) max-content 12px!important;align-items:center!important;gap:8px!important;min-height:42px!important;padding:8px!important;border:0!important;border-left:3px solid transparent!important;background:#fff!important}.hk-company-commodity.selected{border-left-color:#2f855a!important;background:#eaf4ee!important}.hk-company-commodity span{min-width:0!important;line-height:1.25!important;overflow-wrap:anywhere!important}.hk-company-commodity strong,.hk-company-overview-grid li strong{color:#1e6d4c;white-space:nowrap!important;text-align:right!important}.hk-company-commodity i{font-style:normal}.hk-company-overview-grid ul{list-style:none;margin:0;padding:0}.hk-company-overview-grid li{display:grid;grid-template-columns:minmax(0,1fr) max-content;align-items:start;gap:10px;padding:7px 0;border-bottom:1px solid #e5ebe7;font-size:11px}.hk-company-overview-grid li span{min-width:0;overflow-wrap:anywhere}.hk-company-overview-note{color:#6a7d75;font-size:10px;margin:8px 0 0}.hk-company-overview .overview-total{margin-bottom:8px!important}
@media(max-width:600px){.hk-company-overview-grid{grid-template-columns:1fr}.hk-company-overview{font-size:13px}}


/* Version 1 unified enterprise topbar
   Logo → WIM/EIM → Undo/Redo → Facility → Language
   → Import/Export → Connection → Save status → User */
.topbar .main-nav{display:none!important}
.topbar .hk-cloud-ui{display:contents!important}

@media(min-width:1581px){
  .topbar{
    box-sizing:border-box!important;
    display:flex!important;
    align-items:center!important;
    flex-wrap:nowrap!important;
    width:100%!important;
    min-width:0!important;
    gap:9px!important;
    padding:7px 18px!important;
    overflow:visible!important;
  }

  .topbar .logo-link{
    order:1!important;
    flex:0 0 auto!important;
  }

  .topbar .app-home{
    order:2!important;
    flex:0 0 auto!important;
    min-width:0!important;
    max-width:none!important;
    overflow:visible!important;
  }

  .topbar .app-home #app-title{
    display:block!important;
    overflow:visible!important;
    text-overflow:clip!important;
    white-space:nowrap!important;
  }

  /* Winters keeps its logo and title together inside .brand. */
  .topbar .brand{
    order:1!important;
    flex:0 0 auto!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
    overflow:visible!important;
  }

  .topbar .brand span:last-child{
    display:block!important;
    min-width:0!important;
    overflow:visible!important;
    text-overflow:clip!important;
    white-space:nowrap!important;
  }

  /* Flatten the action wrapper so every control participates in one layout. */
  .topbar .top-actions{display:contents!important}

  /* Action classes/IDs are stable when the visible labels are translated. */
  .topbar .icon-action,
  .topbar #undo-btn,
  .topbar #redo-btn{
    order:3!important;
    flex:0 0 auto!important;
    min-width:48px!important;
    padding-inline:6px!important;
    white-space:nowrap!important;
  }

  .topbar .hk-facility-switch,
  .topbar .facility-switch{
    order:4!important;
    flex:0 0 auto!important;
    margin:0!important;
  }

  .topbar .language-picker{
    order:7!important;
    flex:0 0 auto!important;
    margin-left:auto!important;
  }

  .topbar .search-wrap,
  .topbar .top-search{
    order:6!important;
    flex:1 1 320px!important;
    min-width:190px!important;
    max-width:none!important;
    margin:0!important;
  }

  .topbar .secondary-action,
  .topbar #import-btn,
  .topbar .primary-action,
  .topbar #export-btn{
    order:7!important;
    flex:0 0 auto!important;
    white-space:nowrap!important;
  }

  .topbar .hk-cloud-state{order:8!important;flex:0 0 auto!important;margin-left:0!important}
  .topbar .hk-save-state{order:9!important;flex:0 0 auto!important}
  .topbar .hk-account-wrap{order:10!important;flex:0 0 auto!important}
}

@media(min-width:761px) and (max-width:1580px){
  .topbar{
    box-sizing:border-box!important;
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    width:100%!important;
    min-width:0!important;
    height:auto!important;
    gap:8px!important;
    padding:8px 12px!important;
    overflow:visible!important;
  }

  .topbar .brand{
    order:1!important;
    flex:1 1 430px!important;
    min-width:390px!important;
    max-width:none!important;
    overflow:visible!important;
  }
  .topbar .brand span:last-child{
    min-width:0!important;
    overflow:visible!important;
    text-overflow:clip!important;
    white-space:nowrap!important;
  }
  .topbar .logo-link{order:1!important;flex:0 0 auto!important}
  .topbar .app-home{
    order:2!important;
    flex:1 1 360px!important;
    min-width:320px!important;
    max-width:none!important;
    overflow:visible!important;
  }
  .topbar .app-home #app-title{
    overflow:visible!important;
    text-overflow:clip!important;
    white-space:nowrap!important;
  }
  .topbar .top-actions{display:contents!important}
  .topbar .icon-action,.topbar #undo-btn,.topbar #redo-btn{order:3!important}
  .topbar .hk-facility-switch,.topbar .facility-switch{order:4!important;margin:0!important}
  .topbar .language-picker{order:7!important;margin-left:auto!important}
  .topbar .search-wrap,.topbar .top-search{
    order:6!important;
    flex:1 1 300px!important;
    min-width:220px!important;
    max-width:none!important;
    margin:0!important;
  }
  .topbar .secondary-action,.topbar #import-btn,
  .topbar .primary-action,.topbar #export-btn{order:7!important}
  .topbar .hk-cloud-state{order:8!important}
  .topbar .hk-save-state{order:9!important}
  .topbar .hk-account-wrap{order:10!important;margin-left:0!important}
}

@media(max-width:760px){
  html,body,.app-shell{
    min-width:0!important;
    touch-action:pan-x pan-y!important;
  }
  html,body{
    max-width:100%!important;
    overflow-x:hidden!important;
  }
  .app-shell{
    width:100%!important;
    min-width:0!important;
  }
  .topbar{
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    grid-auto-flow:row!important;
    align-items:center!important;
    width:100%!important;
    min-width:0!important;
    height:auto!important;
    min-height:0!important;
    gap:7px 6px!important;
    padding:7px 9px!important;
    position:relative!important;
    top:auto!important;
    overflow:visible!important;
  }

  .topbar .brand{
    grid-column:1/6!important;
    grid-row:1!important;
    order:1!important;
    display:flex!important;
    align-items:center!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    gap:8px!important;
    padding:0!important;
    overflow:hidden!important;
  }
  .topbar .brand-logo,
  .topbar .logo-link img{
    width:42px!important;
    height:42px!important;
    max-width:42px!important;
    max-height:42px!important;
  }
  .topbar .brand span:last-child,
  .topbar .app-home #app-title{
    display:block!important;
    min-width:0!important;
    max-width:100%!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
    font-size:0!important;
    line-height:1.2!important;
  }
  .topbar .brand span:last-child::after,
  .topbar .app-home #app-title::after{
    content:attr(data-hk-mobile-title);
    font-size:16px!important;
    font-weight:850!important;
    white-space:nowrap!important;
  }
  .topbar .logo-link{
    grid-column:1!important;
    grid-row:1!important;
    order:1!important;
    flex:0 0 auto!important;
  }
  .topbar .app-home{
    grid-column:2/6!important;
    grid-row:1!important;
    order:1!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    padding:4px 0!important;
    font-size:14px!important;
  }
  .topbar .hk-facility-switch,
  .topbar .facility-switch{
    grid-column:1/7!important;
    grid-row:2!important;
    order:3!important;
    width:100%!important;
    min-width:150px!important;
    max-width:none!important;
    margin:0!important;
  }
  .topbar .hk-facility-switch select,
  .topbar .facility-switch select{
    min-width:0!important;
    width:100%!important;
    height:34px!important;
    font-size:12px!important;
  }
  .topbar .hk-facility-label,
  .topbar .facility-label{
    display:none!important;
  }
  .topbar .language-picker{
    grid-column:1/3!important;
    grid-row:3!important;
    order:4!important;
    width:100%!important;
    margin-left:0!important;
    justify-content:center!important;
  }
  .topbar .language-picker select{
    max-width:70px!important;
    min-width:0!important;
  }
  .topbar .search-wrap,.topbar .top-search{
    display:none!important;
  }
  .topbar .top-actions{
    display:contents!important;
  }
  .topbar .top-actions button,
  .topbar .top-actions .language-picker{
    height:34px!important;
    min-height:34px!important;
    padding:0 9px!important;
    font-size:12px!important;
    white-space:nowrap!important;
  }
  .topbar .icon-action,
  .topbar #undo-btn,
  .topbar #redo-btn{
    order:4!important;
    min-width:0!important;
    width:100%!important;
    padding:0!important;
    justify-content:center!important;
  }
  .topbar .icon-action span,
  .topbar #undo-btn span,
  .topbar #redo-btn span{
    display:none!important;
  }
  .topbar .secondary-action,
  .topbar #import-btn,
  .topbar .primary-action,
  .topbar #export-btn{
    order:4!important;
    min-width:0!important;
    width:100%!important;
    padding-inline:8px!important;
  }
  .topbar #undo-btn{grid-column:3!important;grid-row:3!important}
  .topbar #redo-btn{grid-column:4!important;grid-row:3!important}
  .topbar #import-btn{grid-column:5!important;grid-row:3!important}
  .topbar #export-btn{grid-column:6!important;grid-row:3!important}
  .topbar .hk-cloud-state,
  .topbar .hk-save-state{
    display:none!important;
  }
  .topbar .hk-account-wrap{
    grid-column:6!important;
    grid-row:1!important;
    order:1!important;
    flex:0 0 auto!important;
    margin-left:auto!important;
  }
  .workspace,
  body .find-hay{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
  }
  .map-scroll,
  .map-viewport{
    box-sizing:border-box!important;
    width:100%!important;
    max-width:100%!important;
    overflow:auto!important;
    touch-action:pan-x pan-y!important;
    overscroll-behavior:contain!important;
  }
  .map-panel{
    max-width:100%!important;
    overflow:hidden!important;
  }
  .map-scroll>.facility-map.hk-mobile-layout-zoom{
    transform:none!important;
    transform-origin:top left!important;
    zoom:var(--hk-mobile-map-scale,1);
    transition:none!important;
  }
  .map-scroll>.facility-map.hk-mobile-readable-map .building-title,
  .map-viewport .map-stage.hk-mobile-readable-map .building-title{
    box-sizing:border-box!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    gap:4px!important;
    overflow:hidden!important;
    font-size:var(--hk-mobile-map-title-size,14px)!important;
    line-height:1.05!important;
  }
  .map-scroll>.facility-map.hk-mobile-readable-map .building-title b,
  .map-viewport .map-stage.hk-mobile-readable-map .building-title b{
    flex:0 0 auto!important;
    min-width:0!important;
    max-width:100%!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .map-scroll>.facility-map.hk-mobile-readable-map .building-title small,
  .map-scroll>.facility-map.hk-mobile-readable-map .pack-inline-capacity,
  .map-scroll>.facility-map.hk-mobile-readable-map .building-capacity,
  .map-viewport .map-stage.hk-mobile-readable-map .building-capacity{
    min-width:0!important;
    max-width:100%!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:var(--hk-mobile-map-meta-size,10px)!important;
    line-height:1.05!important;
  }
  .map-scroll>.facility-map.hk-mobile-readable-map .pack-inline-capacity{
    flex:1 1 0!important;
  }
  .map-scroll>.facility-map.hk-mobile-readable-map .pack-color-marker{
    width:var(--hk-mobile-map-marker-width,9px)!important;
    height:var(--hk-mobile-map-marker-height,17px)!important;
  }
  .map-scroll>.facility-map.hk-mobile-readable-map .capacity-track,
  .map-viewport .map-stage.hk-mobile-readable-map .capacity-track{
    height:var(--hk-mobile-map-track-height,4px)!important;
  }
  .map-scroll>.facility-map.hk-mobile-readable-map .building-title small,
  .map-viewport .map-stage.hk-mobile-readable-map .building-title small{display:none!important}
  .map-scroll>.facility-map.hk-mobile-readable-map .building-card.hk-compact-map-label .pack-inline-capacity,
  .map-scroll>.facility-map.hk-mobile-readable-map .building-card.hk-compact-map-label .building-capacity{display:block!important}
  .map-scroll>.facility-map.hk-mobile-readable-map.hk-map-overview-zoom .pack-inline-capacity,
  .map-scroll>.facility-map.hk-mobile-readable-map.hk-map-overview-zoom .building-capacity{display:block!important}
  .zoom-controls .hk-map-fit-button{
    display:block!important;
    width:44px!important;
    font-size:11px!important;
    font-weight:800!important;
  }
  .overview-panel{
    display:none!important;
  }
  .map-layout{
    display:block!important;
  }
  .detail-sticky{
    top:0!important;
  }
  html.hk-route-winters .topbar .brand{
    display:grid!important;
    grid-template-columns:42px minmax(0,1fr)!important;
    align-items:center!important;
    gap:8px!important;
    height:42px!important;
    margin:0!important;
    border:0!important;
    background:transparent!important;
    color:#fff!important;
    text-align:left!important;
  }
  html.hk-route-winters .topbar .brand span:last-child{
    width:100%!important;
    min-width:0!important;
    height:42px!important;
    line-height:0!important;
  }
  html.hk-route-winters .topbar .brand span:last-child::after{
    display:block!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    line-height:42px!important;
  }
  html.hk-route-winters .metric-strip{
    margin:9px!important;
    grid-template-columns:1fr 1fr!important;
  }
  html.hk-route-winters .metric{
    min-width:0!important;
    padding:10px!important;
    justify-content:flex-start!important;
  }
  html.hk-route-winters .metric span:last-child{min-width:0!important}
  html.hk-route-winters .metric-icon{width:32px!important;height:32px!important}
  html.hk-route-winters .metric strong{font-size:17px!important}
  html.hk-route-winters .workspace{padding:9px!important}
  html.hk-route-winters .map-toolbar{align-items:flex-start!important;flex-direction:column!important}
  html.hk-route-winters .zoom-controls{width:100%!important;justify-content:flex-end!important}
}

.hk-page-zoom-controls{
  display:none;
}
@media(max-width:760px){
  .hk-page-zoom-controls{
    position:fixed;
    right:calc(10px + env(safe-area-inset-right));
    bottom:calc(10px + env(safe-area-inset-bottom));
    z-index:99990;
    display:none;
    align-items:center;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.3);
    border-radius:999px;
    background:#315c4b;
    box-shadow:0 5px 18px rgba(22,48,38,.25);
  }
  .hk-page-zoom-controls button{
    min-width:36px;
    height:34px;
    padding:0 8px;
    border:0;
    border-right:1px solid rgba(255,255,255,.18);
    background:transparent;
    color:#fff;
    font:800 14px/1 Arial,Helvetica,sans-serif;
    touch-action:manipulation;
  }
  .hk-page-zoom-controls button:last-child{
    border-right:0;
  }
  .hk-page-zoom-controls .hk-page-zoom-value{
    min-width:54px;
    font-size:11px;
  }
  html.hk-custom-page-zoom .hk-page-zoom-controls{
    display:flex;
  }
}
