#mail-page .workspace{margin-bottom:24px}#mail-page .toolbar{gap:18px;flex-wrap:wrap}.mail-filters{display:flex;align-items:end;gap:16px;flex-wrap:wrap}.mail-filters label{font-size:12px;color:#63758a;display:flex;flex-direction:column;gap:7px}.mail-filters input,.mail-filters select{font:inherit;color:#283e58;background:white;border:1px solid #dbe4ef;border-radius:7px;padding:8px 10px;height:35px}.mail-filters input{width:220px}.mail-note{font-size:12px;color:#7b8ba1;margin:16px 22px}#mail-error{color:#b34a4a;margin:12px 22px}#mail-page table{min-width:1100px;width:100%}#mail-page th,#mail-page td{white-space:nowrap}#mail-page button,#mail-entry-dialog button{font:inherit;font-size:12px}.mail-status{display:inline-block;border-radius:6px;padding:5px 9px;font-size:12px}.mail-status.pending{background:#fff4d9;color:#9a7019}.mail-status.sent{background:#e7f4ec;color:#34815a}#mail-entry-dialog{width:min(480px,90vw);border:1px solid #e0e7ef;border-radius:14px;padding:26px;color:#263e59}#mail-entry-dialog::backdrop{background:#172c4855}#mail-entry-dialog p{font-size:14px;line-height:1.7}#mail-page .table-scroll{max-height:65vh;overflow:auto}#mail-page thead{position:sticky;top:0;background:#f8fafc;z-index:1}
#mail-page #mail-reset{padding:7px 12px;font-size:12px;line-height:18px}#mail-page .toolbar{min-height:58px}#mail-filter-dialog{width:min(420px,90vw);border:1px solid #d9e2ef;border-radius:16px;padding:24px}#mail-filter-dialog::backdrop{background:#172c4855}
#mail-nav{position:relative}.mail-nav-badge{position:absolute;top:2px;right:1px;min-width:19px;height:19px;padding:0 5px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;background:#df5058;color:white;border:2px solid white;border-radius:12px;font:600 10px/15px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;box-shadow:0 1px 3px #b63f4520}.mail-nav-badge[hidden]{display:none}
#mail-settings-panel[hidden]{display:none}#mail-settings-panel .table-scroll{max-height:65vh;overflow:auto}#mail-settings-panel table{width:100%;min-width:1050px;table-layout:fixed}#mail-settings-panel th:nth-child(1){width:23%}#mail-settings-panel th:nth-child(2){width:20%}#mail-settings-panel th:nth-child(3){width:49%}#mail-settings-panel th:nth-child(4){width:8%}#mail-settings-panel th{position:sticky;top:0;background:#f7f9fc;z-index:1}#mail-settings-panel td{vertical-align:top;white-space:normal;padding:16px}#mail-settings-panel button{font:inherit;font-size:12px;padding:6px 12px}.mail-template-note{font-size:12px;line-height:1.9;color:#73849b;margin:16px 20px}.mail-template-node{display:inline-block;background:#edf3fc;color:#476d9c;border-radius:5px;padding:5px 7px;font-size:12px;line-height:1.7}.mail-template-subject,.mail-template-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.9}.mail-template-dialog{width:min(760px,92vw);max-height:90vh;overflow:auto;border:1px solid #dce5ef;border-radius:14px;padding:26px;color:#273f5a}.mail-template-dialog::backdrop{background:#172c4855}.mail-template-dialog label{display:flex;flex-direction:column;gap:8px;margin:18px 0;font-size:13px;color:#52677f}.mail-template-dialog input,.mail-template-dialog textarea{font:inherit;line-height:1.7;padding:10px 12px;border:1px solid #d9e3ee;border-radius:7px;width:100%;box-sizing:border-box;color:#263e59}.mail-template-dialog textarea{resize:vertical}.mail-template-dialog input[readonly]{background:#f2f5f9;color:#65778e}.mail-template-dialog button{font:inherit;font-size:13px}.mail-template-help{padding:12px 15px;background:#f4f7fc;border-radius:8px;font-size:12px;color:#718399;line-height:1.7}.mail-template-help p{margin:5px 0}
/* Mail compose shares the console's type scale and compact controls. */
#mail-compose{width:min(1060px,94vw);max-height:94vh;padding:24px;border:1px solid #dce5ef;border-radius:18px;color:#20334b;box-sizing:border-box}#mail-compose::backdrop,#mail-send-confirm::backdrop{background:#152b4b66}#mail-compose input,#mail-compose textarea,#mail-compose button,#mail-send-confirm button{font:inherit;font-size:13px;box-sizing:border-box}#mail-compose label{display:block;font-size:13px;color:#53667e}#mail-compose input,#mail-compose textarea{display:block;width:100%;margin:7px 0 14px;padding:10px 12px;border:1px solid #d6e1ef;border-radius:7px;background:white;color:#20334b}#mail-compose input[readonly]{background:#f1f5fa;font-weight:600}#mail-compose h2,#mail-send-confirm h2{margin:0 0 8px;font-size:20px}.compose-head{display:flex;justify-content:space-between;align-items:start}.compose-head p,.compose-hint{font-size:12px;color:#74849a;line-height:1.7}.compose-scroll{max-height:65vh;overflow:auto;padding-right:10px}.compose-addresses{display:grid;grid-template-columns:1fr 1fr;gap:16px}.compose-vehicle,.compose-attachments{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:18px}.mail-preview{width:100%;height:490px;border:1px solid #e2e8f1;border-radius:12px;box-sizing:border-box}.mail-drop{padding:15px;border:1px dashed #c7d5e8;border-radius:10px;background:#f7f9fd;min-height:105px}.mail-drop strong{font-size:13px}.mail-drop .file-pick{margin-top:12px;color:#2772bc;cursor:pointer}.file-pick input[type=file]{font-size:11px;padding:5px;margin-bottom:0}.mail-drop.dragover{background:#e8f1ff;border-color:#4a86ce}.mail-drop ul{padding:0;list-style:none}.mail-drop li{font-size:12px;display:flex;align-items:center;justify-content:space-between;gap:5px;margin:8px 0}.mail-drop li span{overflow-wrap:anywhere}.compose-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:12px}.compose-message{font-size:13px;color:#956318;white-space:pre-wrap;line-height:1.6;max-height:70px;overflow:auto}.compose-footer button,.compose-head button,#mail-send-confirm button{padding:8px 15px;border:1px solid #d6e1ef;border-radius:7px;cursor:pointer;background:white;color:#29486c}.compose-footer button.primary,#mail-send-confirm button.primary{background:#2169d7;color:white;border-color:#2169d7}.compose-footer button:disabled{opacity:.5;cursor:wait}#mail-send-confirm{width:min(580px,90vw);padding:24px;border:1px solid #d6e1ef;border-radius:14px;color:#20334b;overflow-wrap:anywhere}#mail-send-confirm p{font-size:13px;line-height:1.8}@media(max-width:700px){.compose-addresses,.compose-vehicle,.compose-attachments{grid-template-columns:1fr}.mail-preview{height:400px}}

.compose-subject-time{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:16px}@media(max-width:700px){.compose-subject-time{grid-template-columns:1fr}}
