:root{--bg:#f4f6f9;--ink:#172033;--muted:#667085;--line:#e5e7eb;--nav:#111827;--gold:#b58b00}*{box-sizing:border-box}body{margin:0;font-family:Arial,sans-serif;background:var(--bg);color:var(--ink)}a{color:#1d4ed8;text-decoration:none}header{height:72px;background:#fff;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 24px}header span{margin-left:12px;color:var(--muted)}.brand{font-size:24px;letter-spacing:2px}.layout{display:grid;grid-template-columns:210px minmax(0,1fr);min-height:calc(100vh - 72px)}aside{background:var(--nav);padding:20px 12px}aside a{display:block;color:#fff;padding:12px;border-radius:8px;margin-bottom:5px}aside a:hover{background:#253046}main{padding:26px;overflow:auto;min-width:0}.center{min-height:100vh;display:flex;align-items:center;justify-content:center}.client-main{display:block;width:100%;max-width:1200px;margin:0 auto;padding:32px 28px;overflow:visible}.login{width:100%;max-width:420px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:28px}.login form{display:grid;gap:12px}.head{display:flex;justify-content:space-between;align-items:center;gap:15px}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin:18px 0}.card,.panel{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px;margin-bottom:16px;min-width:0}.card b{font-size:27px;display:block}.card span,p{color:var(--muted)}.btn,button{background:var(--nav);color:#fff;border:0;border-radius:8px;padding:10px 14px;font-weight:700;cursor:pointer}.btn.light{background:#fff;color:var(--nav);border:1px solid var(--line)}label{font-size:13px;font-weight:700}input,select,textarea{width:100%;padding:10px;border:1px solid #d0d5dd;border-radius:8px;margin-top:6px;background:#fff}.grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.full{grid-column:1/-1}.search{display:flex;gap:8px;max-width:600px;margin:14px 0}.search input,.search select{margin:0}.search select{width:180px}.table-wrap{display:block;width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}table{width:100%;max-width:100%;border-collapse:collapse;font-size:14px}th,td{text-align:left;padding:10px;border-bottom:1px solid var(--line);vertical-align:top;overflow-wrap:anywhere;word-break:normal}th{font-size:12px;text-transform:uppercase;color:var(--muted)}.clients-table{min-width:900px;table-layout:auto}.clients-table th,.clients-table td{overflow-wrap:normal;word-break:normal}.clients-table th:nth-child(1),.clients-table td:nth-child(1){min-width:210px}.clients-table th:nth-child(2),.clients-table td:nth-child(2){min-width:100px;white-space:nowrap}.clients-table th:nth-child(3),.clients-table td:nth-child(3){min-width:170px}.clients-table th:nth-child(4),.clients-table td:nth-child(4){min-width:230px}.clients-table th:nth-child(5),.clients-table td:nth-child(5){min-width:140px;white-space:nowrap}.policies-table{min-width:1180px;table-layout:auto}.policies-table th,.policies-table td{overflow-wrap:normal;word-break:normal}.policies-table th:nth-child(1),.policies-table td:nth-child(1){min-width:210px}.policies-table th:nth-child(2),.policies-table td:nth-child(2){min-width:180px}.policies-table th:nth-child(3),.policies-table td:nth-child(3){min-width:150px}.policies-table th:nth-child(4),.policies-table td:nth-child(4){min-width:230px}.policies-table th:nth-child(5),.policies-table td:nth-child(5),.policies-table th:nth-child(6),.policies-table td:nth-child(6){min-width:115px;white-space:nowrap}.policies-table th:nth-child(7),.policies-table td:nth-child(7){min-width:95px;white-space:nowrap}.payments-table{min-width:820px;table-layout:auto}.payments-table th,.payments-table td{overflow-wrap:normal;word-break:normal}.payments-table th:nth-child(1),.payments-table td:nth-child(1){min-width:115px;white-space:nowrap}.payments-table th:nth-child(2),.payments-table td:nth-child(2){min-width:200px}.payments-table th:nth-child(3),.payments-table td:nth-child(3){min-width:100px;white-space:nowrap}.payments-table th:nth-child(4),.payments-table td:nth-child(4){min-width:170px}.payments-table th:nth-child(5),.payments-table td:nth-child(5){min-width:90px;white-space:nowrap}.payments-table th:nth-child(6),.payments-table td:nth-child(6){min-width:150px}.client-main .panel{width:100%;display:block;clear:both}.client-main .table-wrap{width:100%;display:block}.client-main table{min-width:700px}.client-portal-table{table-layout:fixed;min-width:720px}.client-portal-table th,.client-portal-table td{white-space:normal}.client-portal-table .btn{display:inline-block;white-space:nowrap}.request-table{min-width:980px;table-layout:fixed}.request-table th:nth-child(1){width:125px}.request-table th:nth-child(2){width:145px}.request-table th:nth-child(3){width:130px}.request-table th:nth-child(4){width:135px}.request-table th:nth-child(5){width:220px}.request-table th:nth-child(6){width:225px}.request-table td{overflow-wrap:anywhere}.request-actions{display:grid;gap:8px}.request-actions select,.request-actions input{margin:0}.notice{background:#fffaeb;border:1px solid #fedf89;padding:12px;border-radius:8px;margin:12px 0}.flash{padding:10px;border-radius:8px;margin-bottom:12px}.success{background:#ecfdf3;color:#027a48}.danger{background:#fef3f2;color:#b42318}.wrap{word-break:break-all}@media(max-width:900px){.layout{grid-template-columns:1fr}aside{display:flex;overflow:auto}.cards{grid-template-columns:1fr 1fr}.grid{grid-template-columns:1fr}.full{grid-column:auto}.client-main{padding:22px 18px}}@media(max-width:560px){header{padding:0 14px}.brand{font-size:20px}main{padding:14px}.client-main{padding:16px 12px}.cards{grid-template-columns:1fr}.head{align-items:flex-start;flex-direction:column}.head>div:last-child{display:flex;flex-wrap:wrap;gap:8px}.table-wrap{overflow-x:auto}table{white-space:normal}.client-main table,.client-portal-table{min-width:680px}}
.documents-page{width:100%;min-width:0}.documents-page .panel{width:100%;min-width:0}.documents-page .table-wrap{width:100%;overflow-x:auto}.policy-lookup-table{min-width:860px}.stored-documents-table{min-width:900px;table-layout:auto}.stored-documents-table th,.stored-documents-table td{overflow-wrap:normal;word-break:normal}.stored-documents-table th:nth-child(1),.stored-documents-table td:nth-child(1){min-width:110px;white-space:nowrap}.stored-documents-table th:nth-child(2),.stored-documents-table td:nth-child(2){min-width:180px}.stored-documents-table th:nth-child(3),.stored-documents-table td:nth-child(3){min-width:120px}.stored-documents-table th:nth-child(4),.stored-documents-table td:nth-child(4){min-width:180px}.stored-documents-table th:nth-child(5),.stored-documents-table td:nth-child(5){min-width:130px}.stored-documents-table th:nth-child(6),.stored-documents-table td:nth-child(6){min-width:100px}.stored-documents-table th:nth-child(7),.stored-documents-table td:nth-child(7){min-width:120px}.document-actions{display:grid;gap:6px}.document-actions form{margin:0}.document-actions .btn,.document-actions button{display:block;width:100%;white-space:normal;text-align:center;padding:8px 6px}.request-table{min-width:1120px}.request-actions textarea{margin:0;min-height:72px;resize:vertical}@media(max-width:1050px){.stored-documents-table,.stored-documents-table tbody,.stored-documents-table tr,.stored-documents-table td{display:block;width:100%}.stored-documents-table{min-width:0;table-layout:auto}.stored-documents-table tr:first-child{display:none}.stored-documents-table tr{border:1px solid var(--line);border-radius:10px;padding:10px;margin-bottom:12px}.stored-documents-table td{border-bottom:1px solid var(--line);padding:8px 6px}.stored-documents-table td:last-child{border-bottom:0}.stored-documents-table td:before{display:block;font-size:11px;font-weight:700;text-transform:uppercase;color:var(--muted);margin-bottom:3px}.stored-documents-table td:nth-child(1):before{content:'Date'}.stored-documents-table td:nth-child(2):before{content:'Client'}.stored-documents-table td:nth-child(3):before{content:'Policy'}.stored-documents-table td:nth-child(4):before{content:'Title'}.stored-documents-table td:nth-child(5):before{content:'Type'}.stored-documents-table td:nth-child(6):before{content:'Client Access'}.stored-documents-table td:nth-child(7):before{content:'Actions'}.document-actions{grid-template-columns:1fr}.document-actions .btn,.document-actions button{width:100%}}
.renewals-page{width:100%;min-width:0}.renewals-page .panel{width:100%;min-width:0}.renewals-page .table-wrap{width:100%;overflow-x:auto}.renewal-filter{align-items:center}.renewals-table{min-width:1120px;table-layout:auto}.renewals-table th,.renewals-table td{overflow-wrap:normal;word-break:normal}.renewals-table th:nth-child(1),.renewals-table td:nth-child(1){min-width:190px}.renewals-table th:nth-child(2),.renewals-table td:nth-child(2){min-width:190px}.renewals-table th:nth-child(3),.renewals-table td:nth-child(3){min-width:150px}.renewals-table th:nth-child(4),.renewals-table td:nth-child(4){min-width:150px}.renewals-table th:nth-child(5),.renewals-table td:nth-child(5){min-width:120px;white-space:nowrap}.renewals-table th:nth-child(6),.renewals-table td:nth-child(6){min-width:120px;white-space:nowrap}.renewals-table th:nth-child(7),.renewals-table td:nth-child(7){min-width:150px;white-space:nowrap}.renewal-expiration,.renewal-days{font-weight:700}.renewal-key{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}.renewal-key span{background:#fff;border:1px solid var(--line);border-radius:8px;padding:8px 10px;font-size:12px}.renewal-badge{display:inline-block;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:700;border:1px solid currentColor}.renewal-urgent{background:#fef3f2;color:#b42318}.renewal-priority{background:#fff6ed;color:#b54708}.renewal-prepare{background:#fffaeb;color:#b58b00}.renewal-early{background:#eff8ff;color:#175cd3}.renewal-expired{background:#f2f4f7;color:#344054}.renewal-none{background:#f2f4f7;color:#667085}.renewal-workflow-list{display:grid;gap:14px}.renewal-workflow-card{margin:0}.renewal-workflow-summary{display:grid;grid-template-columns:minmax(170px,1.4fr) minmax(170px,1.3fr) minmax(110px,.8fr) minmax(100px,.7fr) minmax(120px,.8fr);gap:14px;padding-bottom:14px;border-bottom:1px solid var(--line)}.renewal-workflow-summary>div{min-width:0}.renewal-workflow-summary strong{display:block;overflow-wrap:anywhere}.renewal-workflow-summary span:not(.renewal-badge){display:block;margin:5px 0 0;color:var(--muted);font-size:12px}.renewal-workflow-form{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(320px,1.5fr) minmax(190px,.7fr);gap:14px;align-items:end;padding-top:14px}.renewal-workflow-form select,.renewal-workflow-form textarea{margin-top:6px}.renewal-workflow-save{display:grid;gap:8px;align-content:end}.renewal-workflow-save small{color:var(--muted);line-height:1.35}.renewal-workflow-save button{width:100%}@media(max-width:1050px){.renewal-workflow-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.renewal-workflow-form{grid-template-columns:1fr 1fr}.renewal-workflow-save{grid-column:1/-1}.renewal-workflow-save button{width:auto;justify-self:start}}@media(max-width:650px){.renewal-workflow-summary,.renewal-workflow-form{grid-template-columns:1fr}.renewal-workflow-save{grid-column:auto}.renewal-workflow-save button{width:100%}}
.work-center{width:100%;max-width:1500px;margin:0 auto;min-width:0}.work-center-cards .card{display:block;color:var(--ink);transition:box-shadow .15s ease,transform .15s ease}.work-center-cards .card:hover{box-shadow:0 5px 18px rgba(17,24,39,.09);transform:translateY(-1px)}.work-center-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:start}.work-center-grid .panel{width:100%;min-width:0}.work-center-grid .head{align-items:flex-start}.work-center-grid .head p{margin-bottom:0}.work-center-table{width:100%;min-width:820px;table-layout:auto}.work-center-table th,.work-center-table td{overflow-wrap:normal;word-break:normal}.work-center-table th:nth-child(1),.work-center-table td:nth-child(1){min-width:210px}.work-center-table th:nth-child(2),.work-center-table td:nth-child(2){min-width:200px}.work-center-table th:nth-child(3),.work-center-table td:nth-child(3){min-width:130px;white-space:nowrap}.work-center-table th:nth-child(4),.work-center-table td:nth-child(4){min-width:80px;white-space:nowrap;text-align:center}.work-center-table th:nth-child(5),.work-center-table td:nth-child(5){min-width:125px;white-space:nowrap}.work-center-table .renewal-badge{white-space:nowrap}.work-center-grid section:last-child .work-center-table{min-width:700px}@media(max-width:700px){.work-center{width:100%}.work-center-table{min-width:820px}}
.record-head{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin-bottom:18px}.record-head>div:first-child{min-width:0;width:100%}.record-head h1{margin:0;overflow-wrap:normal;word-break:normal;white-space:normal;max-width:100%}.record-actions{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:8px;max-width:none;width:100%}.record-actions .btn{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;margin:0}.record-table{min-width:760px}.record-table th,.record-table td{overflow-wrap:normal;word-break:normal}.record-table td:nth-child(4),.record-table td:nth-child(5),.record-table td:nth-child(6){white-space:nowrap}@media(max-width:560px){.record-actions{display:grid;grid-template-columns:1fr 1fr}.record-actions .btn{width:100%}}