.performance-menu-button{padding:8px 12px;font-size:12px;font-weight:600;white-space:nowrap;color:#a9f3df;border-color:#327260;background:#123d36}
.performance-dashboard{position:fixed;inset:0;margin:0;width:100vw;height:100dvh;max-width:none;max-height:none;box-sizing:border-box;padding:0;border:0;border-radius:0;color:#203347;background:#f3f6fa;font:14px 'IBM Plex Sans Thai',sans-serif;box-shadow:none}
.performance-dashboard::backdrop{background:#f3f6fa}
.performance-dashboard[open]{display:block}
.performance-dashboard [hidden]{display:none!important}
.perf-shell{display:flex;flex-direction:column;height:100%;min-height:0}
.perf-head{display:flex;align-items:flex-start;gap:20px;padding:22px 26px;background:#12283b;color:#e8eef6;flex:none;border-bottom:3px solid #31d0aa}
.perf-head>div{flex:1;min-width:0}.perf-head h1{margin:3px 0 4px;font-size:25px;line-height:1.4}.perf-head p{margin:0;font-size:13px;color:#b1c7d8}.perf-head .perf-eyebrow{font-size:11px;letter-spacing:.6px;color:#83efd2}
.performance-dashboard button,.performance-dashboard input,.performance-dashboard select{font:inherit}
.performance-dashboard button{cursor:pointer;border:1px solid #c5d2de;border-radius:8px;padding:8px 12px;background:#fff;color:#203347}
.performance-dashboard button:disabled{opacity:.6;cursor:wait}
.performance-dashboard button:focus-visible,.performance-dashboard input:focus-visible,.performance-dashboard select:focus-visible,.perf-table-wrap:focus-visible{outline:3px solid #24b895;outline-offset:3px}
.performance-dashboard .perf-close{color:#e8eef6;background:#1b354c;border-color:#426178;white-space:nowrap}
.perf-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding:18px 26px;background:#fff;border-bottom:1px solid #d9e2eb;flex:none}
.perf-filters>label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:600;min-width:140px;flex:1}.perf-filters .perf-search{flex:1.8;min-width:180px}
.perf-filters input:not([type=radio]),.perf-filters select{width:100%;min-height:40px;padding:8px 10px;border:1px solid #c5d2de;border-radius:7px;color:#203347;background:#fff;font-weight:400;color-scheme:light}
.perf-period{display:flex;align-items:center;gap:9px;min-height:62px;flex:none;border:0;padding:0;margin:0}.perf-period legend{font-size:12px;font-weight:600;margin-bottom:5px}.perf-period label{display:flex;align-items:center;gap:6px;min-height:40px;padding:8px 10px;background:#edf6f3;border:1px solid #bedbd2;border-radius:7px;cursor:pointer;white-space:nowrap}.perf-period input{accent-color:#08775e}
.performance-dashboard .perf-refresh{min-height:40px;color:#086c56;background:#edf8f4;border-color:#a9d6c8;font-weight:600}
.perf-content{flex:1;min-height:0;overflow:auto;padding:22px 26px 28px}
.perf-section-title{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:14px}.perf-section-title h2{font-size:18px;margin:0}.perf-section-title span{font-size:12px;color:#5d7285}
.perf-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.perf-cards>div{background:#fff;border:1px solid #dbe4ec;border-radius:10px;padding:14px 16px}.perf-cards span{font-size:12px;color:#617588}.perf-cards b{display:block;font-size:28px;line-height:1.5;color:#126750}.perf-cards b small{font-size:12px;font-weight:400;color:#617588}
.perf-warning{padding:12px 14px;background:#fff2d7;border:1px solid #e4c472;border-radius:9px;color:#774810;margin:0 0 14px;line-height:1.7}
.perf-explanation,.perf-footnote{font-size:12px;color:#566d81;line-height:1.7;margin:0 0 14px}.perf-footnote{margin:14px 0 0}
.perf-table-wrap{width:100%;overflow-x:auto;border:1px solid #d9e3ec;border-radius:10px;background:#fff}.perf-table{width:100%;min-width:900px;border-collapse:collapse;font-size:13px;line-height:1.55;text-align:left}.perf-table th,.perf-table td{padding:13px 14px;border-bottom:1px solid #e1e8ef;vertical-align:top;white-space:normal}.perf-table thead th{background:#eaf0f6;color:#485f73;font-size:11px;font-weight:600;vertical-align:bottom}.perf-table th[scope=row]{font-weight:400;min-width:210px;max-width:280px}.perf-table strong{font-size:14px}.perf-table small{display:block;margin-top:4px;font-size:11px;font-weight:400;color:#61778a}.perf-table .num{text-align:right;font-variant-numeric:tabular-nums;min-width:110px}.perf-table td.num:nth-child(3){min-width:160px}.perf-table td.num b{font-size:16px;color:#15664f}.perf-table tbody>tr:last-child>*{border-bottom:0}.perf-note{max-width:260px;min-width:140px;overflow-wrap:anywhere}
.perf-bar{height:5px;width:100%;min-width:70px;margin-top:8px;border-radius:5px;background:#e7efed;overflow:hidden}.perf-bar span{height:100%;display:block;background:#23a988;border-radius:5px}.perf-bar.distance span{background:#508acf}.perf-bar.distance{background:#e8eff8}
.perf-badge{display:inline-block;padding:4px 7px;border-radius:6px;font-size:11px;white-space:nowrap}.perf-badge.present{background:#e2f5ed;color:#156649}.perf-badge.absent{background:#fae9ed;color:#983951}.perf-badge.unreviewed{background:#eef1f5;color:#637387}.perf-badge.pending{background:#fff0ce;color:#815214}.perf-table .perf-pending-text{color:#905712;font-weight:600}
.performance-dashboard .perf-detail-button{font-size:11px;padding:7px 10px;white-space:nowrap;border-color:#aec9d6;color:#1a6079;background:#f3fafc}.perf-detail-row>td{padding:18px!important;background:#edf3f7}.perf-detail-row h3{font-size:14px;margin:0 0 10px}.perf-day-table{min-width:850px}.perf-day-table td{font-size:12px}.perf-day-table th{font-size:11px}
.perf-empty{min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px;padding:32px;color:#63778a}.perf-empty h2{font-size:18px;color:#314a5f}.perf-empty p{font-size:13px;line-height:1.7;max-width:460px}.perf-error h2{color:#923e53}
@media(max-width:900px){.perf-head,.perf-filters,.perf-content{padding:16px}.perf-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.perf-filters>label{min-width:130px}.perf-head h1{font-size:22px}.perf-section-title{align-items:flex-start;flex-direction:column;gap:4px}.performance-menu-button{padding:8px;font-size:11px}}
@media(max-width:540px){.perf-head{gap:8px}.perf-head p{font-size:11px}.perf-head h1{font-size:20px}.performance-dashboard .perf-close{font-size:12px;padding:7px 9px}.perf-filters{gap:9px}.perf-period{width:100%;min-height:auto}.perf-period label{flex:1;justify-content:center}.perf-period legend{float:left;width:100%}.perf-filters .perf-search{min-width:100%;order:2}.perf-cards{gap:8px}.perf-cards>div{padding:10px}.perf-cards b{font-size:24px}.perf-filters{max-height:40vh;overflow:auto}.perf-content{padding:14px 12px}.perf-explanation{font-size:11px}}
@media print{.performance-dashboard{display:none!important}}
