.teacher-record-tabs{display:flex;gap:10px;overflow-x:auto;padding-bottom:18px;border-bottom:1px solid #e2e8f0}
.teacher-record-tabs button{flex-shrink:0;border:1px solid #e2e8f0;background:#fff;color:#334155;border-radius:14px;padding:13px 18px;font-size:16px;font-weight:800;min-height:48px}
.teacher-record-tabs button i{margin-right:7px}
.teacher-record-tabs button[aria-selected=true]{background:linear-gradient(110deg,#ff7019,#ff902b);color:white;border-color:#ff791b;box-shadow:0 5px 14px #f9731626}
.teacher-record-tabs button:focus-visible,.record-pager button:focus-visible{outline:3px solid #2454f5;outline-offset:3px}
.teacher-records>.teacher-record-panel{border:0!important;background:transparent!important;box-shadow:none!important;padding:22px 0 0!important;margin:0!important}
.teacher-record-panel[hidden],.record-pager[hidden],.teacher-record-panel tr[hidden]{display:none!important}
.record-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;font-weight:700;color:#475569}
.record-pager>div{display:flex;gap:8px}.record-pager button{border:1px solid #dbe3ee;background:#fff;color:#2454f5;border-radius:12px;min-width:46px;min-height:46px}.record-pager button:disabled{opacity:.4}
@media(max-width:600px){.teacher-records{padding:18px!important}.teacher-record-tabs button{padding:12px 14px}.record-pager{font-size:14px}}
/* Compact record workspace */
.teacher-record-tabs{background:#eef2f6;border:1px solid #e2e8f0;border-radius:17px;padding:5px;gap:4px;width:max-content;max-width:100%;margin-bottom:6px}
.teacher-record-tabs button{border:0;background:transparent;border-radius:12px;box-shadow:none;min-height:48px;padding:12px 20px;color:#475569}
.teacher-record-tabs button[aria-selected=true]{box-shadow:0 3px 8px #f9731620}
.teacher-records>.teacher-record-panel{background:none!important;border-radius:0!important}
.records-toolbar{display:flex;gap:10px;align-items:center;margin:0 0 20px;position:relative}.records-toolbar #historySearch{flex:1;max-width:540px;min-width:0;font-size:16px;min-height:48px}
.records-filter-button,.records-more summary{display:flex;align-items:center;justify-content:center;gap:9px;border:1px solid #dbe3ee;border-radius:12px;background:#fff;padding:12px 17px;min-height:48px;font-weight:800;color:#334155;cursor:pointer}.records-more summary{list-style:none}.records-more summary::-webkit-details-marker{display:none}.records-more{position:relative;margin-left:auto}.records-more[open] #historyExportCsvBtn{position:absolute;right:0;top:55px;white-space:nowrap;z-index:5;background:white;box-shadow:0 8px 24px #17203320;padding:14px}
.records-filter-panel{padding:18px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;margin-bottom:20px}.records-filter-panel[hidden],.history-meta-row[hidden],#historyStats[hidden]{display:none!important}.records-filter-panel .history-top-chips{margin-bottom:14px}.records-filter-panel .history-main-filters>div:first-child:empty{display:none}.records-filter-panel .history-main-filters>div{flex:1 1 180px;max-width:none}.records-filter-panel .history-advanced{margin-top:12px}
#records-panel-0>div:first-of-type:empty{display:none}.history-meta-row{background:#fff7ed;border-radius:12px;padding:12px!important;margin-bottom:14px}.teacher-record-panel table{margin-top:0}
@media(max-width:600px){.teacher-record-tabs{width:100%}.teacher-record-tabs button{padding:12px;font-size:15px}.records-toolbar{flex-wrap:wrap}.records-toolbar #historySearch{flex-basis:100%;max-width:none}.records-more{margin-left:0}.records-filter-panel{padding:12px}}
.teacher-records>.teacher-record-panel::before,.teacher-records>.teacher-record-panel::after{content:none!important;display:none!important}.teacher-records>.teacher-record-panel{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;overflow:visible!important}
.teacher-record-tabs{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible}
.teacher-record-tabs button{width:100%;display:flex;align-items:center;justify-content:center;gap:9px;white-space:normal;text-align:center}
.teacher-record-tabs button i{margin-right:0;flex-shrink:0}
@media(max-width:600px){.teacher-record-tabs button{font-size:14px;padding:12px 8px;gap:6px;line-height:1.4}}
.records-more{margin-left:0;flex-shrink:0}
.records-more[open] #historyExportCsvBtn{position:static;box-shadow:none;padding:12px 14px}
.records-action-menu{position:absolute;right:0;top:calc(100% + 8px);min-width:240px;z-index:30;padding:8px;background:#fff;border:1px solid #e2e8f0;border-radius:16px;box-shadow:0 12px 32px #17203326;display:flex;flex-direction:column;gap:4px}
.records-more:not([open]) .records-action-menu{display:none}
.records-action-menu .btn{position:static!important;width:100%;text-align:left;border:0;border-radius:10px;padding:12px 14px!important;font-size:15px;font-weight:800;white-space:nowrap;background:#fff;box-shadow:none!important}
.records-action-menu .btn:hover{background:#f1f5f9}.records-action-menu #historyBulkDeleteBtn{color:#dc2626}.records-action-menu .btn:disabled{opacity:.4;cursor:not-allowed}
.records-toolbar #historySearch{max-width:none}
.teacher-record-panel .records-toolbar{position:relative;z-index:50}.teacher-record-panel>.table-responsive{position:relative;z-index:1}
#submissionHistoryTable th:first-child,#submissionHistoryTable td:first-child{width:54px!important;min-width:54px!important;text-align:center!important;padding-left:14px!important;padding-right:14px!important}
#submissionHistoryTable td:first-child>input{margin-left:0}
#submissionHistoryTable .record-number-column{width:55px;min-width:55px;text-align:center;color:#64748b}

.records-toolbar .records-search{flex:1;min-width:0;min-height:48px;font-size:16px}.teacher-record-panel .record-pager{padding-top:16px;border-top:1px solid #e2e8f0}
.records-legacy-meta[hidden]{display:none!important}
