:root{--bg:#f4f6f8;--ink:#20333c;--muted:#73838b;--teal:#167e7a;--line:#e6ecef;--white:#fff;--dark:#183a3a;--radius:16px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'Segoe UI',Arial,sans-serif;font-size:14px}button,input,select,textarea{font:inherit}button{cursor:pointer;transition:background .15s,transform .15s}button:disabled{cursor:default;opacity:.45}button:not(:disabled):active{transform:translateY(1px)}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1{font-size:30px;letter-spacing:-1px;line-height:1.2}h2{font-size:20px;letter-spacing:-.5px}p{line-height:1.6}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.8px;color:var(--teal);display:block;margin-bottom:9px}.muted{color:var(--muted)}.workspace{display:grid;grid-template-columns:210px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--dark);color:#d7e4e2;padding:26px 18px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.side-logo{background:#fff;border-radius:14px;height:140px;display:grid;place-items:center;margin:0 8px 36px}.side-logo img{width:150px;max-height:132px;object-fit:contain}.side-section{font-size:9px;letter-spacing:1.7px;color:#91aaa7;padding:0 12px;margin-bottom:14px}.nav-current{background:#2a5350;color:#fff;border-radius:10px;padding:14px 12px;font-size:12px;font-weight:600;display:flex;gap:12px;align-items:center}.nav-current span{font-size:20px}.side-bottom{margin-top:auto;padding:20px 10px 0}.local-pill{font-size:10px;letter-spacing:.3px;display:flex;align-items:center;gap:7px}.dot{width:7px;height:7px;border-radius:50%;background:#77cabb;display:inline-block}.side-bottom p{font-size:12px;color:#9ab1ae;margin:16px 0}.side-logout{background:transparent;border:1px solid #476660;color:#ecf4f2;border-radius:8px;padding:10px;width:100%;text-align:left;font-size:12px}.side-logout:hover{background:#2a5350}.main{padding:30px 34px 20px;max-width:1700px;width:100%;margin:auto}.page-header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:26px}.page-header .muted{margin-top:7px;font-size:13px}.account{display:flex;gap:10px;align-items:center}.avatar{background:#dcece7;color:var(--teal);font-weight:700;width:38px;height:38px;border-radius:50%;display:grid;place-items:center}.account strong{font-size:12px;display:block;max-width:155px;overflow:hidden;text-overflow:ellipsis}.account small{font-size:10px;color:var(--muted);display:block;margin-top:3px}.icon-button{border:0;background:transparent;color:var(--muted);font-size:24px;min-width:32px;border-radius:6px}.icon-button:hover{background:#eaf1ef}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:24px}.stats article{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:21px;display:flex;align-items:flex-start;gap:16px}.stat-icon{width:44px;height:44px;border-radius:12px;background:#e5f2ee;color:#23887e;display:grid;place-items:center;font-size:24px}.peach{background:#fbefe3;color:#b68148}.lavender{background:#eeecf8;color:#8270a8}.stats p{font-size:11px;color:var(--muted)}.stats strong{font-size:28px;line-height:1.4;display:block;letter-spacing:-1px}.stats small{font-size:10px;color:#95a1a6}.work-grid{display:grid;grid-template-columns:365px minmax(0,1fr);gap:22px;align-items:start}.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:0 3px 12px #183a3a03}.editor{padding:22px}.card-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.card-heading .eyebrow{font-size:9px;margin-bottom:6px}.required-hint{font-size:10px;color:var(--muted);margin:11px 0 20px}.text-button{border:0;background:transparent;color:var(--teal);font-size:12px;font-weight:600;padding:6px;white-space:nowrap}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 12px}label{display:flex;flex-direction:column;gap:7px;font-size:11px;font-weight:600;color:#596e76}.wide{grid-column:1/-1}input,select,textarea{width:100%;min-width:0;background:#fbfcfd;border:1px solid #dfe7ea;border-radius:8px;color:var(--ink);padding:10px 11px;outline:none;font-size:12px;line-height:1.3}input:focus,select:focus,textarea:focus{border-color:#71b7aa;box-shadow:0 0 0 3px #167e7a10;background:#fff}input::placeholder,textarea::placeholder{color:#a0acb2;font-size:11px}textarea{resize:vertical;min-height:76px}input[type=date],input[type=time]{padding-left:8px;font-size:11px}.primary,.secondary{border-radius:8px;padding:11px 16px;font-size:12px;font-weight:600}.primary{border:1px solid var(--teal);background:var(--teal);color:white}.primary:hover{background:#116b67}.secondary{border:1px solid #dfe7ea;background:#fff;color:#597078}.secondary:hover{background:#f0f6f4}.small{padding:8px 10px;font-size:11px}.form-actions{display:flex;gap:10px;border-top:1px solid var(--line);margin-top:16px;padding-top:18px}.form-actions .primary{flex:1}.case-list>.card-heading{padding:24px 22px 18px}.count{border-radius:6px;background:#edf3f1;color:#68847c;font-size:11px;padding:4px 7px;margin-left:4px;vertical-align:middle}.exports{display:flex;gap:6px}.search-row{padding:0 22px 20px;display:flex;gap:10px;align-items:center;justify-content:space-between}.search-label{display:flex;flex-direction:row;align-items:center;gap:7px;background:#f7f9fa;border:1px solid var(--line);border-radius:8px;padding:0 10px;flex:1}.search-label span{font-size:22px;color:#8b9aa0}.search-label input{background:transparent;border:0;padding:10px 0;box-shadow:none}.order-hint{font-size:9px;color:#8a999f;max-width:80px;text-align:right;line-height:1.5}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}th{background:#f7f9fa;border-top:1px solid var(--line);border-bottom:1px solid var(--line);color:#839399;font-size:9px;letter-spacing:.7px;text-transform:uppercase;font-weight:600;padding:13px 16px}td{padding:17px 16px;border-bottom:1px solid #eff3f4;font-size:12px}td:first-child,th:first-child{padding-left:22px}td strong{display:block;font-size:12px;font-weight:600;margin-bottom:5px;max-width:240px;overflow:hidden;text-overflow:ellipsis}td small{display:block;font-size:10px;color:#8b9aa0;margin-top:4px}.case-number{font-size:9px;letter-spacing:.5px;color:var(--teal);margin-bottom:5px;display:block}.badge{background:#edf5f1;color:#408278;border:1px solid #deece5;border-radius:5px;padding:4px 7px;font-size:10px;display:inline-block}.badge.emax{background:#f1eef9;color:#8a75aa;border-color:#e9e2f3}.row-actions{display:flex;gap:5px}.row-actions button{border:1px solid var(--line);background:#fff;padding:7px 9px;border-radius:6px;font-size:10px;color:#687e84}.row-actions button:hover{background:#f1f6f5}.row-actions button.danger{color:#b15c61}.pagination{padding:18px 22px;display:flex;align-items:center;justify-content:space-between;color:#8b9aa0;font-size:10px}.pagination>div{display:flex;gap:6px}.list-foot{border-top:1px solid var(--line);padding:13px 22px;font-size:10px;color:#96a3a8;background:#fcfdfd}.empty{padding:58px 22px;text-align:center;color:#92a5a7}.empty>span{font-size:34px;color:#85aaa0}.empty h3{font-size:15px;color:#587570;margin:16px 0 8px}.empty p{font-size:12px}.page-foot{display:flex;justify-content:space-between;color:#9eaaaf;font-size:10px;padding-top:22px}.notice{background:#e7f3ec;color:#3b7664;padding:14px 18px;border-radius:10px;font-size:12px;margin-bottom:22px}.error{color:#b14e55;font-size:12px;margin:12px 0;min-height:0}.error:empty{display:none}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#214d44;color:#fff;padding:14px 22px;border-radius:12px;box-shadow:0 8px 32px #0002;z-index:10;max-width:90vw;font-size:13px}.access{display:grid;grid-template-columns:1fr 1fr;min-height:100vh}.access-brand{background:#183a3a;color:#fff;padding:70px 14%;display:flex;flex-direction:column;justify-content:center}.access-brand img{width:170px;max-height:140px;object-fit:contain;background:#fff;border-radius:12px;margin-bottom:42px}.access-brand .eyebrow{color:#87b9ac}.access-brand h1{font-size:42px;letter-spacing:-1.5px;line-height:1.15;margin:10px 0 22px}.access-brand p{color:#abc4bb;font-size:14px;max-width:350px;margin-bottom:32px}.access-panel{display:grid;place-items:center;padding:36px}.login-card{width:100%;max-width:360px}.login-card h2{font-size:30px;margin-bottom:12px}.login-card>.muted{margin-bottom:32px}.login-card label{margin-bottom:20px}.login-card input{background:#fff;padding:13px;font-size:14px}.login-card .primary{width:100%;display:flex;justify-content:space-between;padding:14px;font-size:13px}.access-foot{text-align:center;color:#95a5a8;font-size:11px;margin-top:24px}dialog{border:1px solid var(--line);border-radius:18px;padding:30px;width:430px;max-width:calc(100% - 32px);color:var(--ink);box-shadow:0 20px 70px #10322a33}dialog::backdrop{background:#14362d70}dialog h2{margin-bottom:10px}dialog>.muted{font-size:12px;margin-bottom:20px}.dialog-close{position:absolute;top:10px;right:12px}.dialog-close button{font-size:24px}dialog form:not(.dialog-close) label{margin:16px 0}dialog .primary{width:100%;margin-top:10px}.checkbox{flex-direction:row;align-items:center}.checkbox input{width:16px;height:16px;box-shadow:none}.account-options{display:flex;flex-direction:column;gap:10px}body:has(dialog[open]){overflow:hidden}:focus-visible{outline:2px solid #75b6a6;outline-offset:3px}
@media(min-width:1500px){.work-grid{grid-template-columns:400px minmax(0,1fr)}.main{padding:40px 45px}.editor{padding:26px}}
@media(max-width:1200px){.sidebar{padding:24px 12px}.workspace{grid-template-columns:165px minmax(0,1fr)}.side-logo{height:115px;margin-left:0;margin-right:0}.side-logo img{width:130px;max-height:110px}.nav-current{font-size:11px;gap:6px}.main{padding:26px 22px}.work-grid{grid-template-columns:320px minmax(0,1fr);gap:16px}.editor{padding:18px}.case-list>.card-heading{align-items:flex-start;flex-direction:column;gap:12px}td,th{padding:15px 12px}.stats article{padding:17px}.stat-icon{width:35px;height:35px;font-size:20px}}
@media(max-width:1000px){.workspace{grid-template-columns:1fr}.sidebar{display:none}.main{padding:24px}.work-grid{grid-template-columns:330px minmax(0,1fr)}.page-header h1{font-size:26px}.order-hint{display:none}}
@media(max-width:740px){.main{padding:20px 14px}.page-header{align-items:flex-start}.page-header h1{font-size:23px}.page-header .eyebrow{font-size:8px}.account strong,.account small{display:none}.stats{gap:8px}.stats article{padding:14px 10px;gap:0}.stat-icon{display:none}.stats strong{font-size:25px}.stats p,.stats small{font-size:9px}.work-grid{grid-template-columns:1fr}.editor{padding:22px}.case-list>.card-heading{flex-direction:row}.access{grid-template-columns:1fr}.access-brand{display:none}.access-panel{padding:32px 24px}.page-foot span:last-child{display:none}.exports{gap:4px}}
.recovery-link{display:block;width:100%;background:transparent;border:0;color:#167e7a;font-size:12px;margin-top:16px;padding:9px;text-decoration:underline;text-underline-offset:4px}.recovery-help{font-size:11px;color:#73838b;margin-top:18px;border-top:1px solid #e6ecef;padding-top:16px}#recovery-code{font-family:monospace;font-size:12px}#recovery-code-note{margin-top:14px;font-size:12px}

.password-wrap{display:block;position:relative;width:100%;min-width:0}.password-wrap input{padding-right:44px!important}.password-eye{position:absolute;right:5px;top:50%;transform:translateY(-50%);width:34px;height:34px;border:0;background:transparent;border-radius:6px;color:#657f7b;display:grid;place-items:center}.password-eye:hover{background:#e8f2ee}.password-eye[aria-pressed=true]{color:#167e7a;background:#e8f2ee}
body{background:#e7eef3}.work-grid{grid-template-columns:minmax(0,1fr)}.editor{background:#eaf4f2;border:1px solid #abc8c3}.fields{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.fields .wide{grid-column:1/-1}.fields label{font-size:12px;color:#334f58}input,select,textarea{border-color:#aec3cd;background:#fff;font-size:13px}.required-hint,.muted{color:#526975}.card{border-color:#b7cbd3}.text-button{background:#167e7a;color:#fff;border-radius:8px;padding:10px 18px}.table-scroll{max-height:600px;overflow:auto;border-top:1px solid #9eb8c3;scrollbar-color:#6b9498 #d9e5e9;scrollbar-width:auto}table{min-width:1900px;white-space:normal}th{background:#245553;color:#fff;font-size:11px;letter-spacing:0;text-transform:none;padding:15px 12px;position:sticky;top:0;z-index:2;min-width:105px}td{font-size:13px;color:#20343e;min-width:105px;border-bottom:1px solid #bdcfd8;vertical-align:top;overflow-wrap:anywhere}tbody tr:nth-child(even){background:#edf3f7}tbody tr:hover{background:#d8ece7}td:first-child,th:first-child{position:sticky;left:0;z-index:1;background:#dbece9;min-width:115px;color:#174e4a;font-weight:700}th:first-child{z-index:3;background:#245553;color:#fff}.notes-cell{min-width:230px;white-space:pre-wrap}.order-hint{max-width:300px;font-size:11px;color:#49666e}.case-list>.card-heading{flex-direction:row}.form-actions{max-width:460px}.stats article{border-color:#b7cbd3;background:#f6fafc}.pagination{color:#3f5e67;font-size:12px}.list-foot{color:#506d77;background:#edf4f6}@media(max-width:1000px){.fields{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:500px){.fields{grid-template-columns:repeat(2,minmax(0,1fr))}.case-list>.card-heading{flex-wrap:wrap}.order-hint{display:block;max-width:140px}}

.search-label{min-width:0;transition:border-color .15s,box-shadow .15s}.search-label:focus-within{border-color:#167e7a;box-shadow:0 0 0 2px #167e7a33}.search-label input{flex:1;min-width:0}.search-label input:focus,.search-label input:focus-visible{outline:none!important;box-shadow:none!important;border:0!important}.exports{flex-wrap:wrap}.editor[hidden]{display:none!important}

.side-logo,.access-brand img{background:transparent}.side-logo img,.access-brand img{filter:invert(1)}

/* Vista compacta: todos los campos sin un ancho mínimo forzado. */
table{table-layout:fixed;min-width:0;width:100%;white-space:normal}th,td{min-width:0!important;padding:10px 5px;font-size:11px;overflow-wrap:anywhere;word-break:normal}th{font-size:10px;line-height:1.3}td:first-child,th:first-child{padding-left:8px;min-width:0}.notes-cell{min-width:0;white-space:pre-wrap}.row-actions{flex-direction:column;gap:4px}.row-actions button{padding:5px 3px;font-size:10px;width:100%}.table-scroll{max-width:100%}th:nth-child(1){width:5%}th:nth-child(2){width:12%}th:nth-child(3){width:4%}th:nth-child(4){width:6%}th:nth-child(5){width:5%}th:nth-child(6){width:4%}th:nth-child(7),th:nth-child(8){width:7%}th:nth-child(9){width:5%}th:nth-child(10){width:8%}th:nth-child(11){width:6%}th:nth-child(12){width:5%}th:nth-child(13){width:16%}th:nth-child(14){width:8%}@media(max-width:750px){table{min-width:850px}}

/* Encabezados y filas solicitados. */
th,td{padding:7px 6px;font-size:11px;line-height:1.3}th{font-size:11px;border-right:1px solid #6e9995;vertical-align:middle}th:last-child{border-right:0}td{vertical-align:middle}th:nth-child(1){width:5%}th:nth-child(2){width:13%}th:nth-child(3){width:4%}th:nth-child(4){width:6%}th:nth-child(5){width:5%}th:nth-child(6){width:4%}th:nth-child(7),th:nth-child(8){width:7%}th:nth-child(9){width:6%}th:nth-child(10){width:8%}th:nth-child(11){width:6%}th:nth-child(12){width:5%}th:nth-child(13){width:12%}th:nth-child(14){width:12%}.row-actions{flex-direction:row;flex-wrap:nowrap;gap:4px;min-width:96px}.row-actions button{width:auto;flex:1;padding:5px 6px;white-space:nowrap}.note-text{white-space:pre-wrap;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.note-expand{border:0;background:transparent;color:#146d68;font-size:10px;padding:2px 0;display:block;cursor:pointer;text-decoration:underline}.note-open .note-text{display:block;overflow:visible;-webkit-line-clamp:unset;min-width:240px}.notes-cell{white-space:normal}.note-open{min-width:240px!important}td:first-child,th:first-child{padding-left:7px}

.table-scroll:has(.note-open) table{min-width:1700px}.table-scroll:has(.note-open) th:nth-child(13){width:30%}.note-open .note-text{min-width:0}

/* Encabezados centrados en cada columna. */
thead th{text-align:center;vertical-align:middle}

/* Datos centrados, incluidas las notas y acciones. */
tbody td{text-align:center;vertical-align:middle}.note-text,.note-expand{text-align:center}.note-expand{margin-left:auto;margin-right:auto}.row-actions{justify-content:center}

input::-ms-reveal,input::-ms-clear{display:none!important}input::-webkit-credentials-auto-fill-button{visibility:hidden}
/* Móviles: ficha legible por caso y controles táctiles. */
.mobile-brand,.mobile-login-logo{display:none}
@media(max-width:740px){
 body{background:#edf3f4;font-size:14px}
 .main{padding:0 14px max(22px,env(safe-area-inset-bottom));margin:0;min-width:0}
 .mobile-brand{display:flex;align-items:center;justify-content:space-between;background:#183a3a;margin:0 -14px 22px;padding:14px 18px;padding-top:max(14px,env(safe-area-inset-top));color:#c6ded8;gap:12px}
 .mobile-brand img{width:108px;height:62px;object-fit:contain;filter:invert(1)}
 .mobile-brand span{font-size:11px;white-space:nowrap}.mobile-brand .dot{margin-right:5px}
 .page-header{gap:10px;margin-bottom:18px}.page-header h1{font-size:24px;letter-spacing:-.6px}.page-header .muted{font-size:12px;max-width:230px}.page-header .eyebrow{font-size:9px;letter-spacing:1px}
 .account{gap:4px}.avatar{width:34px;height:34px}.icon-button{min-width:44px;min-height:44px}
 .stats{gap:8px;margin-bottom:20px}.stats article{padding:13px 9px;border-radius:12px;background:#fff;min-width:0}.stats strong{font-size:26px}.stats p{font-size:11px;line-height:1.4}.stats small{font-size:10px;line-height:1.4}
 .case-list{overflow:visible;background:transparent;border:0;box-shadow:none}.case-list>.card-heading{padding:0;display:flex;align-items:flex-start;flex-direction:column;gap:14px}.case-list h2{font-size:21px}.exports{display:grid;grid-template-columns:1fr auto auto;width:100%;gap:8px}.exports button{min-height:44px;padding:10px 12px;font-size:12px}.exports #new-case{font-size:14px}
 .search-row{padding:14px 0;display:block}.search-label{background:#fff;border-color:#b7cbd3;min-height:48px;padding:0 12px}.search-label input{font-size:16px;padding:12px 0}.order-hint{display:block;max-width:none;text-align:left;margin-top:8px;font-size:11px}
 .table-scroll{overflow:visible;max-height:none;border:0;outline:none;max-width:100%}.table-scroll table,.table-scroll:has(.note-open) table{display:block;min-width:0!important;width:100%;table-layout:auto}.table-scroll thead{display:none}.table-scroll tbody{display:grid;gap:14px;width:100%}
 .table-scroll tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));background:#fff!important;border:1px solid #c4d7da;border-radius:14px;overflow:hidden;box-shadow:0 4px 14px #183a3a08}
 .table-scroll tbody td{display:block;position:static!important;width:auto!important;min-width:0!important;padding:10px 14px;text-align:left;font-size:13px;line-height:1.45;overflow-wrap:anywhere;border-bottom:1px solid #edf1f3;background:transparent;color:#20333c;font-weight:400}
 .table-scroll td::before{content:attr(data-label);display:block;font-size:10px;font-weight:600;color:#627e86;margin-bottom:4px;letter-spacing:.2px}
 .table-scroll td:first-child{background:#e3f1ed;font-size:16px;font-weight:700;color:#146a64}.table-scroll td:nth-child(2){background:#e3f1ed;font-size:15px;font-weight:600}
 .table-scroll .notes-cell,.table-scroll .actions-cell{grid-column:1/-1}.table-scroll .notes-cell{padding-top:12px;padding-bottom:12px}.note-text{text-align:left;-webkit-line-clamp:2;min-width:0!important;font-size:13px}.note-expand{margin:5px 0 0;text-align:left;min-height:36px;font-size:12px}.note-open .note-text{white-space:pre-wrap}
 .table-scroll .actions-cell{background:#f5f9fa;border:0}.actions-cell::before{display:none!important}.row-actions{gap:10px;width:100%;justify-content:stretch}.row-actions button{min-height:42px;padding:10px;font-size:13px;border-color:#bdd2d7}.row-actions button.danger{background:#fff6f5;border-color:#edd4d1;color:#a54747}
 .pagination{padding:16px 0;gap:10px;font-size:11px}.pagination button{min-width:44px;min-height:44px}.list-foot{border:0;border-radius:9px;padding:12px;font-size:11px}.empty{background:#fff;border:1px dashed #b7cbd3;border-radius:14px;padding:40px 18px}
 .editor{padding:18px;background:#fff;scroll-margin-top:12px}.fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}.fields label{font-size:12px}.fields label:has(input[name=paciente]){grid-column:1/-1}input,select,textarea,input[type=date],input[type=time]{font-size:16px;min-height:46px;padding:11px 10px;border-radius:9px}textarea{min-height:100px}.form-actions{max-width:none;padding-top:16px;gap:8px}.primary,.secondary{min-height:44px;font-size:13px}.form-actions .primary{font-size:14px}.form-actions .secondary{padding:11px 12px}
 .access{min-height:100svh;background:linear-gradient(165deg,#183a3a 0,#245553 220px,#edf3f4 220px)}.access-panel{padding:28px 18px;align-items:start}.login-card{max-width:430px;background:#fff;border:1px solid #d9e6e7;padding:24px;border-radius:20px;box-shadow:0 16px 40px #12332e18}.mobile-login-logo{display:block;width:150px;height:112px;object-fit:contain;margin:0 auto 18px}.login-card .eyebrow{text-align:center;font-size:9px;letter-spacing:1.2px}.login-card h2{font-size:27px;letter-spacing:-.7px}.login-card>.muted{font-size:13px;margin-bottom:24px}.login-card label{font-size:12px;margin-bottom:17px}.login-card input{font-size:16px;min-height:48px}.password-eye{width:42px;height:42px;right:3px}.password-wrap input{padding-right:50px!important}.login-card .primary{min-height:48px;font-size:14px;border-radius:10px}.recovery-link{min-height:44px;font-size:13px}.access-foot{font-size:11px;line-height:1.5}
 dialog{padding:26px 20px 22px;width:430px;max-width:calc(100% - 24px);max-height:calc(100svh - 32px);overflow-y:auto;border-radius:16px}dialog h2{font-size:22px;padding-right:28px}dialog .dialog-close{top:6px;right:6px}dialog label{font-size:12px}dialog .secondary{width:100%;margin-top:10px}.checkbox input{min-height:18px;width:18px;height:18px}.toast{bottom:max(16px,env(safe-area-inset-bottom));width:max-content;max-width:calc(100% - 28px);padding:13px 16px;font-size:13px}
}
@media(max-width:360px){.main{padding-left:10px;padding-right:10px}.mobile-brand{margin-left:-10px;margin-right:-10px}.login-card{padding:20px 18px}.exports{gap:5px}.exports button{padding:10px 8px}.fields{gap:14px 8px}.stats p{font-size:10px}.table-scroll tbody td{padding:9px 11px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.sort-heading{border:0;background:transparent;color:inherit;font:inherit;font-weight:600;padding:3px 0;width:100%;display:flex;align-items:center;justify-content:center;gap:4px}.sort-heading:hover{background:#ffffff16}.sort-arrow{font-size:12px;flex-shrink:0}.mobile-sort{display:none}@media(max-width:740px){.mobile-sort{display:flex;margin:0 0 16px;gap:7px;font-size:12px;color:#476873}.mobile-sort select{background:#fff;border-color:#b7cbd3;font-size:14px;min-height:46px}}
