.my-records{max-width:1100px;margin:0 auto;color:#20354c}.my-records h1{font-size:20px;margin:3px 0 9px}.my-records-tools{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-bottom:6px}.my-records-tools select,.my-records-tools input,.my-records-tools button,.my-records-tabs button{font:inherit;font-size:11px;min-height:31px;border:1px solid #b9cbe1;border-radius:5px;background:#f5f8fd;color:#29415e;padding:4px 7px}.my-records-tools select{max-width:190px}.my-records-tools input{width:130px}.my-records-tabs{display:flex;gap:4px;flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;scrollbar-width:thin}.my-records-tabs button{white-space:nowrap;flex:0 0 auto;background:#e6edf7}.my-records-tabs button[aria-pressed=true]{background:#ccdcef;border-color:#6c8abc;color:#1d385b;font-weight:700}.my-records-count{font-size:11px;color:#435975;margin:5px 0}.my-records-row{display:grid;grid-template-columns:78px 68px minmax(0,1fr) auto;align-items:start;gap:7px;border-bottom:1px solid #d4deeb;padding:9px 3px;font-size:12px}.my-records-row time{font-size:10px;color:#425974;padding-top:2px}.my-records-tag{font-size:10px;background:#e2eaf5;padding:3px 5px;border-radius:4px;overflow-wrap:anywhere}.my-records-row strong{font-size:13px;line-height:1.45;overflow-wrap:anywhere}.my-records-row small{display:block;font-size:11px;margin-top:3px;color:#3d526c}.my-records-row details{font-size:11px;margin-top:5px}.my-records-row summary{cursor:pointer;color:#344f75}.my-records-row details p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;margin:5px 0}.my-records-result{font-size:11px;max-width:110px;text-align:right;color:#223e61;font-weight:600}.my-records-empty{padding:20px 5px;font-size:13px}@media(max-width:600px){.my-records-row{grid-template-columns:65px 49px minmax(0,1fr);gap:5px;padding:8px 1px}.my-records-result{grid-column:3;text-align:left;max-width:none;font-size:10px}.my-records-row strong{font-size:12px}.my-records-tools{gap:4px}.my-records-tools select{max-width:150px}}.my-records button:focus-visible,.my-records select:focus-visible,.my-records input:focus-visible{outline:2px solid #557db2;outline-offset:2px}

.card-grant-form{display:flex;flex-wrap:wrap;align-items:end;gap:8px;padding:10px;background:#e8eff9;border-radius:7px}.card-grant-form label{display:flex;flex-direction:column;gap:4px;font-size:12px;min-width:0}.card-grant-form input,.card-grant-form select,.card-grant-form button,.grant-review button{font:inherit;max-width:100%;min-height:34px;padding:5px 8px;border:1px solid #aebfd7;border-radius:5px;background:#fff;color:#233d5e}.card-grant-form input[type=number]{width:60px}.card-grant-form label:has(input[name=reason]){flex:1 1 200px}.grant-status{width:100%;font-size:12px;margin:3px 0;color:#294b76}.grant-review{font-size:13px;padding:5px 0}.grant-review button{background:#d6e4f7}

.access-grid-scroll{max-width:100%;overflow:auto;scrollbar-width:auto;border:1px solid #bfcddc;border-radius:5px}.access-grid{border-collapse:collapse;min-width:800px;width:100%;font-size:12px;text-align:left}.access-grid th{background:#e5edf7;color:#284465;position:sticky;top:0;font-weight:700}.access-grid th,.access-grid td{border-right:1px solid #cbd7e4;border-bottom:1px solid #cbd7e4;padding:8px 10px;white-space:nowrap}.access-grid tr:nth-child(even) td{background:#f7faff}.access-grid td{color:#263c56}.access-grid-scroll::-webkit-scrollbar{height:10px}.access-grid-scroll::-webkit-scrollbar-thumb{background:#7d96b4;border-radius:7px}.access-grid-scroll::-webkit-scrollbar-track{background:#e2eaf3}

/* Teacher access history uses a plain white sheet background. */
body:has(.lms-access-records),body:has(.lms-access-records) .layout,body:has(.lms-access-records) #main,.lms-access-records{background:#fff!important}body:has(.lms-access-records):before{content:none!important}.lms-access-records .access-grid td{background:#fff}.lms-access-records .access-grid tr:nth-child(even) td{background:#fff}

/* Keep the left learning menu in records, including narrow tablet viewports. */
body:has(#main .my-records) .layout{display:grid!important;grid-template-columns:66px minmax(0,1fr)!important}
body:has(#main .my-records) aside{display:flex!important;flex-direction:column!important;position:sticky!important;top:44px!important;width:66px!important;min-width:66px!important;height:calc(100svh - 44px)!important;max-height:calc(100svh - 44px);align-self:start;overflow-y:auto;overflow-x:hidden;padding:10px 5px!important}
body:has(#main .my-records) #nav{display:flex!important;flex-direction:column!important;overflow:visible!important;width:100%;gap:3px}
body:has(#main .my-records) #nav button{min-width:0!important;width:100%;flex-shrink:0;flex-direction:row!important;min-height:44px;padding:9px 4px!important;margin:0!important}
body:has(#main .my-records) #main{min-width:0;margin-top:0}

/* Student records: a concise spreadsheet, with the card room first. */
body:has(.student-record-sheet),body:has(.student-record-sheet) .layout,body:has(.student-record-sheet) #main,.student-record-sheet{background:#fff!important;color:#182636}
body:has(.student-record-sheet):before{content:none!important}.student-record-sheet h1{color:#182636;font-weight:800}
.student-record-sheet .my-records-tools{gap:5px;margin:0 0 9px}.student-record-sheet .my-records-tools button,.student-record-sheet .my-records-tools input,.student-record-sheet .my-records-tools select{color:#1d2c40;background:#fff;border-color:#aebac8}
.record-card-first{display:inline-flex;align-items:center;min-height:32px;padding:5px 10px;border:1px solid #8b9eb8;border-radius:5px;background:#e8effb;color:#142d50;font-size:12px;font-weight:800;text-decoration:none;white-space:nowrap}
.student-record-table-scroll{width:100%;overflow:auto;scrollbar-width:auto;border:1px solid #aebac8;border-radius:4px}.student-record-table{width:100%;min-width:480px;border-collapse:collapse;font-size:12px;color:#162536}.student-record-table th,.student-record-table td{padding:8px;border-right:1px solid #c2cbd6;border-bottom:1px solid #c2cbd6;text-align:left;vertical-align:top;line-height:1.55}.student-record-table th{background:#edf1f6;color:#172a42;font-weight:800;white-space:nowrap}.student-record-table td{white-space:pre-line;background:#fff}.student-record-table th:first-child{width:87px}.student-record-table th:nth-child(3){width:90px}.student-record-table th:last-child{width:74px}.student-record-table-scroll::-webkit-scrollbar{height:9px}.student-record-table-scroll::-webkit-scrollbar-thumb{background:#8295ac;border-radius:6px}
