/* Regras de apresentação da tela de salvos. */
:root{--blue:#1f6feb;--blue-dark:#173a63;--text:#18364f;--muted:#6e8297;--border:#dbe6ef;--bg:#f4f8fb;--card:#fff;--danger:#d94b58}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif}.wrap{max-width:1500px;margin:0 auto;padding:20px}.header{display:grid;grid-template-columns:100px 1fr auto;gap:18px;align-items:center;margin-bottom:18px}.crest{width:88px;height:72px}.crest img{width:100%;height:100%;object-fit:contain}.title h1{margin:0;font-size:23px;color:#123b65;letter-spacing:.02em}.title p{margin:4px 0 0;color:var(--muted);font-size:13px}.head-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.btn{border:1px solid #c9d9e6;background:var(--blue);color:#fff;border-radius:10px;min-height:39px;padding:0 13px;font-weight:750;cursor:pointer}.btn.secondary{background:#fff;color:#244c70}.btn.danger{background:var(--danger);border-color:var(--danger)}.btn:disabled{opacity:.58;cursor:wait}.user{display:inline-flex;gap:8px;align-items:center;background:#fff;border:1px solid var(--border);border-radius:999px;padding:8px 11px;font-size:12px;font-weight:750}.dot{width:8px;height:8px;border-radius:50%;background:#33a06f}.card{background:#fff;border:1px solid var(--border);border-radius:16px;box-shadow:0 8px 26px rgba(23,58,99,.06);padding:18px}.toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:14px}.toolbar h2{margin:0;color:var(--blue-dark);font-size:20px}.toolbar .sub{font-size:12px;color:var(--muted);margin-top:3px}.search-row{display:flex;gap:8px;align-items:center;flex:1;justify-content:flex-end}.search{width:min(540px,100%);height:40px;border:1px solid #c9d9e6;border-radius:10px;padding:0 12px;font-size:15px;outline:none}.search:focus{border-color:#7fb1df;box-shadow:0 0 0 3px rgba(31,111,235,.09)}.statusbar{display:flex;justify-content:space-between;gap:12px;align-items:center;min-height:28px;margin:4px 0 10px;color:var(--muted);font-size:12px}.doc-count{font-weight:800;color:#315877}.table-wrap{overflow:auto;border:1px solid #e2eaf1;border-radius:12px}table{width:100%;border-collapse:collapse;min-width:1080px}th{background:#f4f8fb;color:#49677f;text-align:left;font-size:12px;padding:11px;border-bottom:1px solid #dfe8ef}td{padding:11px;border-bottom:1px solid #edf2f6;vertical-align:top;font-size:13px}tbody tr:hover{background:#fbfdff}.num{font-weight:850;color:#174a77}.subject{max-width:420px}.badge{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:11px;font-weight:800;background:#edf3f8;color:#46637b;white-space:nowrap}.badge.final{background:#eaf7ef;color:#247348}.badge.wait{background:#fff5df;color:#9b6b08}.badge.sent{background:#eaf3ff;color:#2563a5}.actions{display:flex;gap:5px;flex-wrap:wrap}.action{border:1px solid #cbdbe8;border-radius:8px;background:#fff;color:#285477;font-weight:750;font-size:11px;padding:7px 9px;cursor:pointer}.action.word{background:#eef7ff;color:#17619a}.action.pdf{background:#fff0f1;color:#a33b48;border-color:#f1c9cf}.action.delete{color:#b23746}.empty{padding:38px;text-align:center;color:var(--muted)}.loading{display:inline-flex;align-items:center;gap:8px}.spin{width:14px;height:14px;border:2px solid #d5e2ec;border-top-color:#2773b8;border-radius:50%;animation:s .7s linear infinite}@keyframes s{to{transform:rotate(360deg)}}
.modal{display:none;position:fixed;inset:0;background:rgba(12,32,52,.53);backdrop-filter:blur(3px);z-index:50;align-items:center;justify-content:center;padding:18px}.modal.open{display:flex}.modal-box{width:min(440px,100%);background:#fff;border-radius:16px;padding:19px;box-shadow:0 22px 70px rgba(0,0,0,.25)}.modal-box h3{margin:0 0 6px;color:#173a63}.modal-box p{margin:0 0 12px;color:var(--muted);font-size:13px}.modal-box textarea{width:100%;min-height:95px;resize:vertical;border:1px solid #c9d9e6;border-radius:10px;padding:10px;font:inherit}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.record{background:#f5f9fc;border:1px solid #deE9f1;border-radius:10px;padding:9px;margin-bottom:10px;font-size:12px}.toast{position:fixed;right:20px;bottom:20px;z-index:70;background:#153c60;color:#fff;border-radius:11px;padding:11px 14px;box-shadow:0 12px 34px rgba(0,0,0,.2);display:none;max-width:360px}.toast.show{display:block}
@media(max-width:850px){.wrap{padding:12px}.header{grid-template-columns:70px 1fr}.crest{width:62px;height:54px}.head-actions{grid-column:1/-1;justify-content:flex-start}.toolbar{align-items:stretch}.search-row{justify-content:stretch}.search{width:100%}.card{padding:12px}}
