.admin-scoreboard{color:#17334d;min-width:0}
.admin-scoreboard .admin-view-head{margin-bottom:20px}
.admin-scoreboard .admin-view-head p{max-width:750px}
.scoreboard-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.scoreboard-periods{display:flex;gap:4px;flex-wrap:wrap;padding:4px;border:1px solid #d2e1ee;border-radius:12px;background:#edf4fa}
.scoreboard-period{appearance:none;border:0;border-radius:8px;padding:10px 15px;min-height:40px;background:transparent;color:#335775;font-family:inherit;font-size:14px;font-weight:600;line-height:1.3;cursor:pointer}
.scoreboard-period[aria-pressed=true]{background:#1265bf;color:#fff;box-shadow:0 2px 4px #12447d1c}
.scoreboard-period:focus-visible,.admin-scoreboard button:focus-visible{outline:3px solid #78ade5;outline-offset:3px}
.scoreboard-updated{font-size:12px;color:#647b90;margin:12px 0 20px;min-height:16px}
.scoreboard-message{color:#42617b;font-size:14px;line-height:1.5;margin:10px 0}
.scoreboard-message:empty{display:none}
.scoreboard-message.is-error{padding:14px;border:1px solid #efb8bd;background:#fff3f3;border-radius:10px;color:#922e3b}
.scoreboard-section{margin:0 0 26px}
.scoreboard-section-title{font-size:16px;line-height:1.4;color:#173d60;margin:0 0 12px}
.scoreboard-section-heading{display:flex;justify-content:space-between;gap:8px 18px;align-items:baseline;flex-wrap:wrap;margin-bottom:12px}
.scoreboard-section-heading .scoreboard-section-title{margin:0}
.scoreboard-section-heading>span{font-size:12px;color:#61768a}
.scoreboard-company-grid,.scoreboard-sales-grid{display:grid;gap:12px}
.scoreboard-company-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.scoreboard-sales-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.scoreboard-metric{min-width:0;padding:20px 18px;border:1px solid #d7e5ef;border-radius:13px;background:#fff;box-shadow:0 3px 9px #173a5a05}
.scoreboard-metric h3{margin:0 0 12px;color:#48637a;font-size:13px;line-height:1.35;font-weight:600}
.scoreboard-metric strong{display:block;color:#123f6a;font-size:32px;line-height:1.15;letter-spacing:-.6px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.scoreboard-metric p{margin:10px 0 0;color:#667e90;font-size:12px;line-height:1.5}
.scoreboard-sales-grid .scoreboard-metric{border-color:#bfdfd5;background:#f5fbf8}
.scoreboard-sales-grid .scoreboard-metric strong{color:#077451}
.scoreboard-sales-grid [data-metric=sales-value] strong{font-size:28px}
.scoreboard-note{margin:12px 0 0;font-size:12px;line-height:1.6;color:#637b90}
.scoreboard-pending{margin:12px 0 0;padding:12px 14px;border:1px solid #eadbb8;border-radius:10px;background:#fffaf0;color:#806428;font-size:12px;line-height:1.6}
.scoreboard-pending strong{font-weight:700}
.scoreboard-table{border-collapse:separate;border-spacing:0;table-layout:fixed;width:100%;min-width:0;border:1px solid #d7e5ef;border-radius:12px;overflow:hidden;background:#fff}
.scoreboard-table caption{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.scoreboard-table th{text-align:left;background:#edf4fa;color:#365a77;font-size:12px;padding:13px 14px}
.scoreboard-table td{padding:15px 14px;border-top:1px solid #e4edf4;color:#284a64;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.scoreboard-table th:nth-child(1){width:23%}.scoreboard-table th:nth-child(2){width:31%}.scoreboard-table th:nth-child(3){width:10%}.scoreboard-table th:nth-child(4){width:20%}.scoreboard-table th:nth-child(5){width:16%}
.scoreboard-table td:nth-child(2){font-weight:650}.scoreboard-table td:nth-child(4){font-weight:700;color:#087451;font-variant-numeric:tabular-nums}
.scoreboard-empty{padding:24px;border:1px dashed #bfcedb;border-radius:12px;color:#5a7387;background:#f8fbfd;font-size:14px}
@media(max-width:1200px){.scoreboard-sales-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.scoreboard-metric strong{font-size:30px}}
@media(max-width:600px){
  .admin-scoreboard .admin-view-head h2{font-size:22px}.admin-scoreboard .admin-view-head p{font-size:13px;line-height:1.5}
  .scoreboard-toolbar{gap:10px}.scoreboard-periods{width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px}
  .scoreboard-period{padding:9px 4px;font-size:12px}.scoreboard-toolbar>.btn{margin-left:auto}
  .scoreboard-company-grid{grid-template-columns:minmax(0,1fr)}.scoreboard-sales-grid{gap:8px}
  .scoreboard-metric{padding:15px 13px}.scoreboard-company-grid .scoreboard-metric{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;align-items:center}
  .scoreboard-company-grid .scoreboard-metric h3{margin:0}.scoreboard-company-grid .scoreboard-metric strong{grid-column:2;grid-row:1/3;font-size:28px}
  .scoreboard-company-grid .scoreboard-metric p{margin:0}.scoreboard-metric strong{font-size:27px}.scoreboard-sales-grid [data-metric=sales-value] strong{font-size:23px}
  .scoreboard-metric h3{font-size:12px}.scoreboard-metric p{font-size:11px}
  .scoreboard-table{display:block;border:0;border-radius:0;background:transparent}.scoreboard-table thead{display:none}.scoreboard-table tbody{display:grid;gap:10px}
  .scoreboard-table tr{display:block;border:1px solid #d7e5ef;border-radius:10px;background:#fff;padding:8px 12px}
  .scoreboard-table td{display:grid;grid-template-columns:78px minmax(0,1fr);gap:12px;padding:6px 0;border:0;font-size:13px}
  .scoreboard-table td::before{content:attr(data-label);font-size:11px;color:#647d91;font-weight:500}.scoreboard-table td>span{min-width:0;overflow-wrap:anywhere}
}
