.hm{display:flex;flex-direction:column;gap:10px;min-width:0}
.hm-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.hm-switch{display:flex;gap:6px}
.hm-switch button{border:1px solid #d5e4db;background:#fff;border-radius:999px;padding:6px 14px;font-weight:700;color:#355347;min-height:34px}
.hm-switch button.on{background:#1f8f55;border-color:#1f8f55;color:#fff}
.hm-bar label{display:flex;align-items:center;gap:8px;color:#355347;font-size:13px;font-weight:650}
.hm-bar input{border:1px solid #d5e4db;border-radius:8px;padding:6px 8px;min-height:34px}
.hm-note{margin:0;color:#5c6f66;font-size:13px;line-height:1.45}
.hm-scroll{overflow:auto;max-height:calc(100dvh - 210px);border:1px solid #e3eee7;border-radius:12px;background:#fff}
.hm-grid{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:12.5px;font-variant-numeric:tabular-nums}
.hm-grid th,.hm-grid td{padding:6px 1px;text-align:center;border-bottom:1px solid #eef3f0;border-right:1px solid #f4f7f5;width:auto;min-width:0;white-space:nowrap}
.hm-grid thead th{position:sticky;top:0;background:#f6faf7;z-index:2;font-weight:700;color:#355347}
.hm-grid tbody th{position:sticky;left:36px;background:#fff;text-align:left;z-index:1;font-weight:600;width:150px;min-width:150px;max-width:150px;padding:6px 10px;font-size:13px;overflow:hidden;text-overflow:ellipsis;color:#163028}
.hm-grid thead th.hm-name{left:36px;z-index:3;text-align:left;width:150px;min-width:150px;max-width:150px}
.hm-grid .hm-no{position:sticky;left:0;z-index:2;width:36px;min-width:36px;max-width:36px;padding:6px 6px;text-align:right;color:#6b7c74;font-weight:650;background:#fff;font-variant-numeric:tabular-nums}
.hm-grid thead .hm-no{z-index:4;background:#f6faf7}
.hm-grid thead th.hm-libur{background:#fde8e4;color:#9a3412}
.hm-grid thead th.hm-libur b{display:block;width:4px;height:4px;border-radius:50%;background:#e25b3a;margin:2px auto 0}

.hm.sites .hm-grid tbody th,.hm.sites .hm-grid thead th.hm-name{width:360px;min-width:360px;max-width:360px;white-space:normal;overflow:visible;text-overflow:clip;line-height:1.3;font-size:12.5px}

.hm-grid td[data-ri]{cursor:pointer}
.hm-grid td.hm-on{outline:2px solid #163028;outline-offset:-2px}
.hm-pop{position:fixed;inset:0;z-index:80;background:rgba(15,23,20,.45);display:flex;align-items:center;justify-content:center;padding:24px}
.hm-card{width:min(480px,100%);background:#fff;border-radius:16px;padding:16px 18px;box-shadow:0 18px 50px rgba(0,0,0,.2)}
.hm-pop-h{display:flex;align-items:center;gap:10px}
.hm-pop-h strong{color:#163028;font-size:15px;line-height:1.3}
.hm-pop-h span{color:#5c6f66;font-size:13px;white-space:nowrap}
.hm-pop-h button{margin-left:auto;border:1px solid #d5e4db;background:#fff;border-radius:999px;padding:4px 12px;font-weight:700;min-height:32px}
.hm-pop ul{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-direction:column;gap:6px;max-height:50vh;overflow:auto}
.hm-pop li{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f6faf7;border-radius:10px;padding:8px 12px;font-size:14px;color:#163028}
.hm-pop li b{font-variant-numeric:tabular-nums}
.hm-pop li.hm-none{background:transparent;color:#5c6f66}
.hm-grid tbody th small{display:block;margin-top:1px;font-weight:500;font-size:11px;line-height:1.2;color:#6b7c74;white-space:normal}

@media(max-width:820px){
  .hm{gap:8px}
  .hm-bar{gap:8px}
  .hm-switch{width:100%}
  .hm-switch button{flex:1;min-height:42px}
  .hm-bar label{width:100%;justify-content:space-between}
  .hm-note{font-size:12px}
  .hm-scroll{max-height:calc(100dvh - 196px);-webkit-overflow-scrolling:touch}
  .hm-grid{width:max-content;min-width:100%;font-size:12px}
  .hm-grid th,.hm-grid td{width:36px;min-width:36px;max-width:36px;padding:8px 0}
  .hm-grid .hm-no{width:28px;min-width:28px;max-width:28px;padding:8px 4px}
  .hm-grid tbody th,.hm-grid thead th.hm-name{left:28px;width:118px;min-width:118px;max-width:118px;padding:6px 8px;font-size:12px;white-space:normal;line-height:1.25;overflow:hidden}
  .hm.sites .hm-grid tbody th,.hm.sites .hm-grid thead th.hm-name{width:146px;min-width:146px;max-width:146px;font-size:11.5px}
  .hm-pop{padding:10px;align-items:flex-end}
  .hm-card{width:100%;max-height:calc(100dvh - 20px);overflow:auto;padding:14px 14px 16px;border-radius:18px 18px 14px 14px}
  .hm-pop-h{flex-wrap:wrap;align-items:flex-start}
  .hm-pop-h strong{flex:1 1 180px;font-size:16px}
  .hm-pop-h button{min-height:40px}
  .hm-pop ul{max-height:48dvh}
  .hm-pop li{min-height:42px;font-size:15px}
}

.hm-card{width:min(560px,100%)}
.hm-axis{display:grid;grid-template-columns:minmax(72px,.9fr) minmax(120px,1.5fr) 34px;gap:8px;align-items:end;margin:12px 0 0;color:#7b8c84;font-size:10px;font-weight:700}
.hm-axis b{display:flex;justify-content:space-between}
.hm-pop ul{margin-top:6px}
.hm-pop li{display:grid;grid-template-columns:minmax(72px,.9fr) minmax(120px,1.5fr) auto;justify-content:initial}
.hm-run{display:block;min-width:0;overflow:hidden}
.hm-run i{display:inline-block;font-style:normal;white-space:nowrap}
.hm-run.on i{animation:hm-run var(--hm-dur,7s) ease-in-out infinite}
@keyframes hm-run{0%,20%{transform:translateX(0)}80%,100%{transform:translateX(calc(-1 * var(--hm-shift)))}}
.hm-track{position:relative;display:block;height:10px;border-radius:99px;background:#e4eee8}
.hm-track i{position:absolute;top:0;bottom:0;background:#1f9d55;border-radius:99px}
.hm-pop li.hm-none{display:flex}

.hm-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap}
.hm-head h1{margin:0;font-size:22px;letter-spacing:-.3px}
.hm-head p{margin:4px 0 0;color:#5c6f66;font-size:13px}
.hm-find input{min-height:34px;border:1px solid #d5e4db;border-radius:8px;padding:6px 10px;background:#fff}
.hm-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.hm-kpi{background:#fff;border:1px solid #e3eee7;border-radius:12px;padding:12px 14px}
.hm-kpi span{display:block;color:#5c6f66;font-size:12px}
.hm-kpi strong{display:block;margin-top:2px;font-size:22px;letter-spacing:-.4px;color:#163028}
.hm-kpi small{display:block;margin-top:2px;color:#6b7c74;font-size:12px}
.hm-board{display:flex;flex-direction:column;gap:8px}
.hm-board-h{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.hm-board-h h2{margin:0;font-size:15px}
.hm-legend{display:flex;align-items:center;gap:4px;flex-wrap:wrap;color:#5c6f66;font-size:11px}
.hm-legend i{min-width:26px;padding:2px 4px;border-radius:4px;text-align:center;font-style:normal;font-weight:650}
.hm-legend .hm-hol{color:#9a3412}
.hm-grid tbody th b{display:block;font-weight:650}
.hm-empty{text-align:left!important;padding:16px!important;color:#5c6f66}
@media(max-width:820px){
  .hm-head{align-items:stretch}
  .hm-kpis{grid-template-columns:1fr 1fr}
  .hm-find,.hm-find input{width:100%}
}
