/* A quiet, dense data workspace beneath a single, prominent alert board. */
.main:has(.mt-dashboard){max-width:1800px;padding:26px 28px 38px}
.mt-dashboard{background:#183c3b;color:#f7f9ef;border:1px solid #31504a;border-radius:14px;padding:26px 30px 0;margin-bottom:24px;box-shadow:0 8px 24px #16332e12}
.mt-dashboard-top{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px}
.mt-kicker{font-size:11px;letter-spacing:1px;color:#acc5ba;margin-bottom:9px}
.mt-dashboard h1{font-size:28px;letter-spacing:0;margin:0 0 9px;font-weight:600}
.mt-dashboard-top p{margin:0;color:#a9c0b7;font-size:12px}
.mt-scope{display:flex;gap:10px;max-width:420px;flex:1;justify-content:flex-end}
.mt-scope select{width:auto;max-width:210px;min-width:120px;height:38px;border-color:#55716a;background:#244842;color:#f1f6e9;font-size:12px;padding:0 30px 0 12px}
.mt-alert-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:22px}
.mt-alert{border:1px solid #526c5e;border-radius:9px;padding:18px 22px;text-align:left;transition:transform .15s,background .15s;background:#244943;color:#c7dbd2}
.mt-alert:hover{transform:translateY(-2px);filter:none;background:#31534d}
.mt-alert>div{display:flex;justify-content:space-between;align-items:center;gap:10px}
.mt-alert>div>span{font-size:14px;font-weight:500;letter-spacing:.3px}
.mt-alert strong{font:46px/1 Ops,"Microsoft YaHei",sans-serif;font-variant-numeric:tabular-nums;white-space:nowrap;letter-spacing:-1px}
.mt-alert strong small{font:11px "Microsoft YaHei",sans-serif;letter-spacing:0;margin-left:8px;opacity:.7}
.mt-alert p{display:flex;justify-content:space-between;margin:14px 0 0;font-size:11px;font-weight:400;opacity:.8}
.mt-alert p span{font-size:18px;line-height:12px}
.mt-alert-due{background:#f8e5d9;color:#a63d27;border-color:#f8e5d9}
.mt-alert-due:hover{background:#ffece1}
.mt-alert-warning{background:#f2ecd7;color:#846320;border-color:#f2ecd7}
.mt-alert-warning:hover{background:#fff5db}
.mt-alert-unknown{background:#e0ebe6;color:#376359;border-color:#e0ebe6}
.mt-alert-unknown:hover{background:#edf7ef}
.mt-dashboard-bottom{position:relative;display:flex;gap:18px;justify-content:space-between;align-items:flex-start;border-top:1px solid #416057;padding:13px 0;font-size:11px;color:#adc4b7;line-height:1.6}
.mt-basis{flex-shrink:0;max-width:60%;text-align:right}
.mt-basis summary{cursor:pointer;white-space:nowrap;color:#d2e0d1}
.mt-basis>div{position:absolute;right:0;top:44px;z-index:12;text-align:left;width:min(640px,100%);background:#fffdf5;color:#485f56;box-shadow:0 12px 40px #12352c30;border:1px solid #d3ddd2;border-radius:8px;padding:20px 24px;max-height:340px;overflow:auto}
.mt-basis p{white-space:pre-wrap;margin:0 0 12px;line-height:1.8}
.mt-basis p:last-child{margin:0}
.mt-workbench{min-width:0;border:1px solid #d6e0d8;background:#fffef9;border-radius:12px;box-shadow:0 4px 20px #24433606}
.mt-tabs{display:flex;gap:3px;overflow-x:auto;padding:8px 14px 0;background:#e8eee5;border-radius:12px 12px 0 0;border-bottom:1px solid #d6e0d8;scrollbar-width:thin}
.mt-tabs button{display:flex;align-items:center;gap:10px;white-space:nowrap;padding:14px 17px;font-size:13px;border-radius:7px 7px 0 0;background:none;color:#697e70;border:1px solid transparent;border-bottom:0;position:relative;bottom:-1px}
.mt-tabs button.is-active{background:#fffef9;color:#225f51;border-color:#d6e0d8;box-shadow:inset 0 3px #326e5e}
.mt-tabs small{font:12px Ops,"Microsoft YaHei",sans-serif;border-radius:4px;background:#dce5db;padding:2px 6px;color:#738572}
.mt-tabs button.is-active small{background:#e1eee2;color:#386d54}
.mt-sheet{min-width:0}
.mt-sheet-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px 0}
.mt-views{display:flex;gap:6px;overflow:auto;scrollbar-width:thin}
.mt-views button{padding:6px 10px;white-space:nowrap;font-weight:400;font-size:12px;color:#728477;background:transparent;border:1px solid transparent;border-radius:5px}
.mt-views button span{font:11px Ops,"Microsoft YaHei",sans-serif;margin-left:7px;color:#8e9d8e}
.mt-views button.is-active{background:#e8f0e5;color:#285e49;border-color:#dae5d6;font-weight:600}
.mt-views button.is-active span{color:#285e49}
.mt-sheet-note{color:#9ba496;font-size:11px;white-space:nowrap}
.mt-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 18px 14px;position:relative;z-index:6}
.mt-tools input,.mt-tools select{border:1px solid #dce3d7;border-radius:5px;background:#fffef9;height:32px;font-size:12px;margin:0;padding:0 10px}
.mt-tools select{width:auto;max-width:190px;padding-right:25px}
.mt-search{display:flex;align-items:center;border:1px solid #dce3d7;border-radius:5px;width:265px}
.mt-search input{flex:1;min-width:0;border:0;background:transparent;height:30px}
.mt-search button{font-size:11px;padding:4px 10px;background:#edf2e9;white-space:nowrap;border-radius:3px;margin-right:3px;color:#54705b}
.mt-reset{background:none;color:#84907e;font-size:11px;font-weight:400;padding:7px}
.mt-export{display:inline-flex;align-items:center;gap:6px;background:#2f6b57;color:#fff;font-size:12px;font-weight:500;border-radius:5px;padding:7px 12px;margin-left:auto}
.mt-export .icon{width:15px;height:15px}
.mt-field-menu{position:relative;color:#61745f;font-size:12px}
.mt-field-menu summary{cursor:pointer;border:1px solid #dce3d7;border-radius:5px;padding:7px 10px;white-space:nowrap;list-style:none}
.mt-field-menu summary::after{content:'⌄';padding-left:8px;color:#93a18d}
.mt-field-options{position:absolute;top:38px;right:0;width:245px;max-height:370px;overflow:auto;z-index:15;background:#fffef9;border:1px solid #d4e0ce;box-shadow:0 8px 30px #25492c25;border-radius:8px;padding:14px}
.mt-field-options strong,.mt-field-options small{display:block;font-size:11px;line-height:1.7;margin-bottom:9px;color:#788972}
.mt-field-options label{display:flex;gap:9px;align-items:center;padding:6px 0;font-size:12px;cursor:pointer}
.mt-field-options input{width:14px;height:14px;accent-color:#326e58}
.mt-scroll{overflow:auto;max-height:clamp(380px,calc(100dvh - 270px),900px);min-height:210px;border-top:1px solid #dce4d8;scrollbar-width:thin;scrollbar-color:#b8c8b6 #f5f8f0;border-bottom:1px solid #dce4d8}
.mt-floating-scroll{position:fixed;z-index:8;height:24px;padding-top:4px;overflow-x:scroll;overflow-y:hidden;background:#f4f7efee;border:1px solid #cedbcd;border-radius:6px;box-shadow:0 -3px 12px #26463512}
.mt-floating-scroll::-webkit-scrollbar{height:12px;background:#e9f0e4}
.mt-floating-scroll::-webkit-scrollbar-thumb{background:#91ab95;border:2px solid #e9f0e4;border-radius:8px}
.mt-floating-scroll[hidden]{display:none}
.mt-floating-scroll:focus-visible{outline:2px solid #397661;outline-offset:2px}
.mt-floating-scroll-spacer{height:1px;min-width:100%}
.mt-grid{border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:12px;min-width:100%}
.mt-grid th{position:sticky;top:0;z-index:3;height:40px;background:#f0f4ec;padding:0 12px;color:#718269;border-right:1px solid #dfe6d9;border-bottom:1px solid #d8e1d2;text-align:left;font-weight:500}
.mt-grid th>button{padding:0;background:none;border-radius:0;color:inherit;font-size:11px;font-weight:500;width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px}
.mt-grid th>button span:last-child{color:#98a891;font-size:11px}
.mt-grid td{background:#fffef9;max-width:none;height:46px;padding:10px 12px;border-right:1px solid #edf0e6;border-bottom:1px solid #e7ecdf;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:400}
.mt-grid .mt-row:hover td{background:#f3f7ed}
.mt-grid .mt-index{width:46px;position:sticky;left:0;text-align:center;padding:0 6px;color:#98a390;background:#f9fbf3;z-index:1;font:11px Ops,"Microsoft YaHei",sans-serif}
.mt-grid th.mt-index{z-index:5;background:#f0f4ec}
.mt-grid .mt-identity{position:sticky;left:46px;z-index:1;box-shadow:3px 0 4px #243d2510}
.mt-grid th.mt-identity{z-index:5}
.mt-grid .mt-numeric{text-align:right;font-variant-numeric:tabular-nums;font-family:Ops,"Microsoft YaHei",sans-serif}
.mt-grid .mt-numeric>button{text-align:right;font-family:"Microsoft YaHei",sans-serif}
.mt-grid .mt-overdue{color:#b0432c;font-weight:600}
.mt-row-due .mt-identity{box-shadow:inset 3px 0 #d57a60,3px 0 4px #243d2510}
.mt-row-warning .mt-identity{box-shadow:inset 3px 0 #d7b45e,3px 0 4px #243d2510}
.mt-record{display:flex;justify-content:space-between;align-items:center;gap:8px;width:100%;padding:0;background:none;border-radius:2px;color:#284e41;text-align:left;font-size:12px;font-weight:500;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:1.7}
.mt-record span{flex-shrink:0;color:#9cab93;font-size:13px}
.mt-record:hover{color:#1d7858;filter:none}
.mt-grid .mt-group td{background:#ecf2e7!important;height:38px;padding:0;overflow:visible}
.mt-group button{position:sticky;left:16px;display:inline-flex;align-items:center;gap:10px;border:0;background:none;border-radius:0;font-size:12px;color:#45694f;padding:9px 12px;font-weight:600}
.mt-group small{font-weight:400;color:#8c9a83;margin-left:6px;font-size:11px}
.mt-grid td.mt-empty{height:200px;text-align:left;padding:35px;white-space:normal;max-width:80vw}
.mt-empty strong{font-weight:500;font-size:15px;display:block;margin-bottom:10px}
.mt-empty p{color:#829079;font-size:12px;max-width:500px}
.mt-empty button{font-size:12px}
.mt-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 18px;color:#7a8a71;font-size:11px;border-radius:0 0 12px 12px}
.mt-footer strong{color:#416247;font-family:Ops,"Microsoft YaHei",sans-serif;font-size:13px;margin:0 3px}
.mt-help{color:#a0aa96}
.mt-actions{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:14px;font-size:11px;color:#94a08b}
.mt-actions button{padding:7px 10px;font-size:11px;font-weight:400}
.mt-drawer{inset:0 0 0 auto;margin:0;width:min(620px,95vw);height:100dvh;max-height:100dvh;border-radius:12px 0 0 12px;border:0;border-left:1px solid #cfdaca;background:#fffef9;box-shadow:-12px 0 60px #19392c25;overflow:hidden}
.mt-drawer[open]{display:flex;flex-direction:column}
.mt-drawer::backdrop{background:#142b2638;backdrop-filter:none}
.mt-drawer-head{display:flex;justify-content:space-between;gap:20px;padding:26px;border-bottom:1px solid #e2e8dc;align-items:flex-start}
.mt-drawer-head p{color:#829177;font-size:11px;margin:0 0 10px}
.mt-drawer-head h2{font-size:21px;line-height:1.5;margin:0;overflow-wrap:anywhere}
.mt-drawer-head button{font-size:12px;white-space:nowrap;padding:7px 12px;font-weight:400}
.mt-drawer-body{padding:24px 26px;overflow:auto;flex:1}
.mt-notice{background:#f6f1df;color:#8e7540;border-left:3px solid #c6a85a;padding:12px 15px;font-size:12px;line-height:1.8;margin:16px 0}
.mt-detail-field{display:grid;grid-template-columns:130px minmax(0,1fr);gap:18px;padding:13px 0;border-bottom:1px solid #edf0e5;font-size:12px;line-height:1.8}
.mt-detail-field dt{color:#809075}
.mt-detail-field dd{margin:0;color:#36533b;overflow-wrap:anywhere;white-space:pre-wrap;font-variant-numeric:tabular-nums}
.mt-drawer-foot{display:flex;gap:10px;flex-wrap:wrap;padding:16px 24px;border-top:1px solid #dfe7d6;background:#f8faf2}
.mt-drawer-foot button{font-size:12px;padding:8px 12px}
.mt-detail-entry{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}.mt-detail-entry p{color:#788873;font-size:12px;margin:0;line-height:1.8}.mt-detail-entry button{font-size:12px}
.ma-status-conditional{background:#f1eddf;color:#8c7954}
@media(max-width:1200px){.mt-sheet-note{display:none}.mt-alert{padding:16px}.mt-dashboard{padding:22px 22px 0}.mt-tabs button{padding:13px}.mt-alert strong{font-size:38px}.mt-dashboard h1{font-size:25px}.mt-scope{max-width:320px}.mt-help{display:none}}
@media(max-width:800px){.main:has(.mt-dashboard){padding:20px 16px}.mt-dashboard-top{align-items:flex-start;flex-direction:column;gap:18px}.mt-scope{max-width:100%;width:100%;justify-content:flex-start}.mt-alert-cards{gap:9px}.mt-alert>div{align-items:flex-start;flex-direction:column}.mt-alert strong{font-size:34px}.mt-alert>div>span{font-size:12px}.mt-alert p{line-height:1.7;gap:8px;font-size:10px}.mt-dashboard-bottom{flex-direction:column;gap:5px}.mt-basis{max-width:100%;text-align:left}.mt-basis>div{top:100%}.mt-tools{padding:12px}.mt-search{width:100%}.mt-tools select{max-width:160px;flex:1}.mt-sheet-heading{padding:12px 10px 0}.mt-tabs{padding-left:7px;padding-right:7px}.mt-footer{padding:12px 10px;gap:8px}.ma-pagination{gap:8px}.mt-actions{align-items:flex-start;flex-direction:column}.mt-grid td.mt-empty{padding:25px 14px}.mt-empty p{max-width:260px}.mt-detail-field{grid-template-columns:1fr;gap:5px}.mt-dashboard h1{font-size:24px}.mt-dashboard{padding:18px 16px 0}.mt-alert{padding:13px 10px}.mt-alert p span{display:none}}
@media(max-width:800px){.mt-scroll{max-height:min(65dvh,620px)}}
@media(prefers-reduced-motion:reduce){.mt-alert{transition:none}.mt-alert:hover{transform:none}}
