#adminPage .ad-process-workspace:has(#earningStatementsHost){grid-template-columns:var(--process-sidebar-width,165px) 10px minmax(0,1fr);gap:8px}
#earningStatementsHost .es-layout{display:grid;grid-template-columns:var(--es-sidebar-width,155px) 8px minmax(0,1fr);gap:8px;align-items:start}
#earningStatementsHost .es-sidebar{background:white;border:1px solid #c9d9e6;border-radius:4px;padding:10px;min-width:0;position:sticky;top:var(--cf-sticky-top,112px)}
#earningStatementsHost .es-sidebar h3{font-size:12px;color:#355b75;margin:4px 0 12px;letter-spacing:.6px}
#earningStatementsHost input,#earningStatementsHost textarea{font:inherit;border:1px solid #bbcede;border-radius:3px;padding:7px 8px;width:100%;min-width:0;color:#23455e;background:white}
#earningStatementsHost input:focus,#earningStatementsHost textarea:focus{outline:2px solid #3b83b4;outline-offset:-2px}
#earningStatementsHost [data-es-agents]{max-height:62vh;overflow:auto;margin-top:10px;display:flex;flex-direction:column;gap:3px}
#earningStatementsHost [data-es-agents] button{text-align:left;white-space:normal;font-size:12px;border:0;min-height:34px;padding:8px}
#earningStatementsHost [data-es-agents] button small{display:block;font-size:10px;font-weight:400}
#earningStatementsHost [data-es-agents] button[aria-current=page]{background:#2b6387;color:white}
#earningStatementsHost .es-main{min-width:0}
#earningStatementsHost .es-ledger{min-width:0}
#earningStatementsHost .es-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 12px}
#earningStatementsHost .es-heading h2{font-size:20px;margin:0;color:#244b67}
#earningStatementsHost .es-heading p{font-size:12px;margin:4px 0 0;color:#657f91}
#earningStatementsHost .es-heading>label{display:flex;align-items:center;gap:8px;font-size:12px}
#earningStatementsHost [data-es-year]{width:90px;text-align:center}
#earningStatementsHost .es-toolbar{display:flex;gap:5px;flex-wrap:wrap;align-items:center;margin-bottom:12px;background:white;padding:9px;border:1px solid #cadce9;border-radius:4px}
#earningStatementsHost .btn{padding:7px 9px;font-size:11px;white-space:nowrap}
#earningStatementsHost [data-es-action=pdf],#earningStatementsHost [data-es-action=email-download]{background:#1475ac;color:white}
#earningStatementsHost [data-es-status]{margin-left:auto;font-size:11px;color:#377159}
#earningStatementsHost .es-contact,#earningStatementsHost .es-email{background:white;border:1px solid #c6d8e5;border-radius:4px;padding:12px;margin-bottom:14px}
#earningStatementsHost summary{font-size:12px;font-weight:600;color:#3c6078;cursor:pointer}
#earningStatementsHost .es-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;margin-top:12px}
#earningStatementsHost .es-wide{grid-column:1/-1}
#earningStatementsHost .es-field{display:grid;grid-template-columns:105px minmax(0,1fr);align-items:center;gap:6px;font-size:12px;min-width:0}
#earningStatementsHost .es-field>span{color:#587085}
#earningStatementsHost .es-office summary{font-size:11px;font-weight:400}
#earningStatementsHost .es-help{font-size:11px;color:#526e81;line-height:1.6;margin:8px 0}
#earningStatementsHost .es-email{border-top:3px solid #2980b2;margin-top:18px;scroll-margin-top:150px}
#earningStatementsHost .es-email textarea{resize:vertical}
#earningStatementsHost [data-es-action=new-agent]{width:100%;margin:0 0 10px;background:#1475ac;color:white;font-weight:600;min-height:34px}
#earningStatementsHost .es-add-agent{border:1px solid #b9d4e5;border-left:4px solid #1475ac;background:#f5faff;border-radius:4px;padding:16px;margin:0 0 16px}
#earningStatementsHost .es-add-agent h3{font-size:14px;margin:0 0 7px;color:#355b75}
#earningStatementsHost .es-add-actions{display:flex;gap:8px;margin-top:14px}
#earningStatementsHost [data-es-action=create-agent]{background:#1475ac;color:white}
#earningStatementsHost .es-toolbar button:disabled{opacity:.55;cursor:not-allowed}
#earningStatementsHost .es-table-wrap{overflow:auto;border:1px solid #b9cddd;background:white}
#earningStatementsHost .es-template{border-collapse:collapse;min-width:2950px;table-layout:fixed}
#earningStatementsHost .es-template th{font-size:11px;background:#dcebf5;padding:8px;border:1px solid #becfdc;width:140px;text-align:left}
#earningStatementsHost .es-template td{height:34px;border:1px solid #d6e2eb}
#earningStatementsHost .eg-scroll{overflow:auto;max-height:62vh;min-height:250px;border:1px solid #9eb8ca;background:white;position:relative;scrollbar-gutter:stable}
#earningStatementsHost .eg-table{border-collapse:separate;border-spacing:0;table-layout:fixed;width:max-content;min-width:100%;font-size:12px}
#earningStatementsHost .eg-table th,#earningStatementsHost .eg-table td{border-right:1px solid #c8d8e3;border-bottom:1px solid #c8d8e3;padding:0;box-sizing:border-box}
#earningStatementsHost .eg-table thead th{position:sticky;text-align:left;white-space:normal;line-height:1.15;padding:3px 4px;color:#294d67;background:#dcebf5;font-weight:600;z-index:5}
#earningStatementsHost .eg-table .eg-letters th{height:20px;top:0;background:#dcebf5;font-size:10px;color:#648091;padding:2px}
#earningStatementsHost .eg-table .eg-headings th{height:auto;top:20px;font-size:11px}
#earningStatementsHost .eg-table td{background:white}
#earningStatementsHost .eg-table .eg-derived{background:white}
#earningStatementsHost .eg-table .eg-headings .eg-derived{background:#dcebf5}
#earningStatementsHost .eg-table .eg-row-head{position:sticky;left:30px;z-index:3;background:white;width:42px;text-align:center}
#earningStatementsHost .eg-row-head button{width:41px;border:0;border-radius:0;background:transparent;color:#56758a;cursor:pointer;padding:7px 3px;font-size:11px;min-height:34px;position:relative}
#earningStatementsHost .eg-active-row .eg-row-head{background:white;box-shadow:inset 0 0 0 1px #278256}
#earningStatementsHost .eg-review-needed{color:#8b5a03!important;background:white!important}
#earningStatementsHost .eg-review-dot{font-size:10px;color:#956100;margin-left:3px}
#earningStatementsHost .eg-table textarea{font-size:12px;line-height:19px;padding:7px 6px;border:0;border-radius:0;resize:none;display:block;background:transparent;color:#23455e;width:100%;min-width:0;white-space:pre;overflow:auto;box-sizing:border-box;text-align:left}
#earningStatementsHost .eg-table .eg-numeric textarea,#earningStatementsHost .eg-table .eg-date textarea{text-align:center}
#earningStatementsHost .eg-table textarea[readonly]{color:#315d45;cursor:cell}
#earningStatementsHost .eg-table .eg-range{box-shadow:inset 0 0 0 1px #278256;background:white}
#earningStatementsHost .eg-table .eg-freeze{position:sticky;z-index:2}
#earningStatementsHost .eg-table .eg-f0{left:72px}
#earningStatementsHost .eg-table .eg-f1{left:184px}
#earningStatementsHost .eg-table .eg-f2{left:292px;border-right:2px solid #8caabd}
#earningStatementsHost .eg-table thead .eg-freeze{z-index:6}
#earningStatementsHost .eg-table thead th:first-child{left:0;z-index:7}
#earningStatementsHost .eg-menu{position:fixed;z-index:1000;background:white;border:1px solid #aabfcc;box-shadow:0 5px 20px #244b6733;border-radius:4px;padding:5px;min-width:250px}
#earningStatementsHost .eg-menu[hidden]{display:none}
#earningStatementsHost .eg-menu button{display:block;width:100%;text-align:left;border:0;background:white;font-size:12px;padding:9px;color:#294d67;cursor:pointer}
#earningStatementsHost .eg-menu button:hover{background:#edf4f9}
@media(max-width:1150px){#earningStatementsHost .es-field{grid-template-columns:1fr;gap:4px}#earningStatementsHost .es-layout{gap:5px}}
@media(max-width:650px){#adminPage .ad-process-workspace:has(#earningStatementsHost){grid-template-columns:minmax(0,1fr)}#earningStatementsHost .es-heading{flex-wrap:wrap}}

#earningStatementsHost [data-es-action=delete-agent]{width:100%;margin:0 0 10px;color:#a13232;border:1px solid #d6b7b7;min-height:34px}
#earningStatementsHost [data-es-action=delete-agent]:disabled{opacity:.5;cursor:not-allowed}

#earningStatementsHost .es-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:14px}
#earningStatementsHost .es-summary>div{border:1px solid #c8dce7;background:#dcebf5;border-radius:4px;padding:9px 8px}
#earningStatementsHost .es-summary>div:last-child{background:#dcebf5;border-color:#c8dce7}
#earningStatementsHost .es-summary span{font-size:11px;color:#527187}
#earningStatementsHost .es-summary strong{display:block;margin-top:4px;font-size:16px;color:#254d68}
#earningStatementsHost .es-summary .money-display,#earningStatementsHost .es-summary .money-display span{font-size:16px;color:#254d68}

#earningStatementsHost .es-statement-actions{margin:0 0 10px;display:flex;gap:8px}
#earningStatementsHost [data-es-action=create-statements]{background:#1475ac;color:white;min-height:34px}
#earningStatementsHost [data-es-action=create-statements]:disabled{opacity:.5;cursor:not-allowed}
#earningStatementsHost .eg-table .eg-check-cell{position:sticky;left:0;width:30px;min-width:30px;background:white;z-index:3;text-align:center}
#earningStatementsHost .eg-table .eg-check-head{left:0;z-index:7;width:30px}
#earningStatementsHost .eg-table .eg-number-head{left:30px;z-index:7;width:42px}
#earningStatementsHost .eg-table input[type=checkbox]{width:15px;height:15px;margin:0;padding:0;accent-color:#1475ac;vertical-align:middle;cursor:pointer}
#earningStatementsHost .eg-table input[type=checkbox]:disabled{cursor:default;opacity:.45}

#earningStatementsHost .eg-display{min-height:34px;outline:none;padding:4px 6px;box-sizing:border-box}
#earningStatementsHost .eg-display:focus{box-shadow:inset 0 0 0 2px #278256}
#earningStatementsHost .es-row-statement{display:flex;flex-direction:column;gap:5px;padding:2px 0}
#earningStatementsHost .es-row-statement select{font:inherit;font-size:11px;width:100%;min-width:0;border:1px solid #c2d4e0;background:white;padding:4px;color:#23455e}
#earningStatementsHost .es-row-statement>div{display:flex;align-items:center;gap:5px}
#earningStatementsHost .es-row-statement .btn{font-size:10px;padding:4px 6px;background:white;color:#205d88;border:1px solid #bed1df}
#earningStatementsHost .es-row-statement small{font-size:10px;color:#657f91;margin-left:auto}
#earningStatementsHost .es-statement-empty{display:block;text-align:center;color:#8999a4;line-height:26px}

#earningStatementsHost .es-divider{width:8px;align-self:stretch;min-height:180px;background:linear-gradient(to right,transparent 3px,#aebfcc 3px,#aebfcc 5px,transparent 5px);cursor:col-resize;touch-action:none;user-select:none}
#earningStatementsHost .es-divider:hover,#earningStatementsHost .es-divider:focus{background:#d5e6f2;outline:1px solid #4988ad}
#earningStatementsHost [data-es-action=delete-rows]{color:#a13232;border-color:#d6b7b7}
#earningStatementsHost [data-es-action=reconnect]{margin:0 0 12px}
#earningStatementsHost [data-es-action=reconnect][hidden]{display:none}

/* Agent statements: consistent, left-aligned text and inline actions. */
#txStatements .tx-statement-head{display:flex;justify-content:flex-start;text-align:left;margin-bottom:14px}
#txStatements .tx-statement-head label,#txStatements .tx-statement-head select{font-size:14px;font-weight:400;text-align:left}
#txStatements .tx-agent-statement-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:12px;padding:12px 0;border-bottom:1px solid #dbe4eb;text-align:left}
#txStatements .tx-agent-statement-row span,#txStatements .tx-agent-statement-row .btn{font:400 14px/1.4 Arial,sans-serif;text-align:left}

#txStatements{margin:0;max-width:100%;text-align:left}
#txStatements .tx-statement-head{margin-left:0;justify-content:flex-start}
#txStatementList{width:max-content;max-width:100%;box-sizing:border-box;margin-left:0;padding:0 10px}
#txStatements .tx-agent-statement-row:last-child{border-bottom:0}
#txStatements .tx-agent-statement-row span{overflow-wrap:anywhere}


/* Compact statement cell v1 */
#earningStatementsHost .eg-display { padding:2px 4px; }
#earningStatementsHost .es-row-statement {
  flex-direction:row; align-items:center; gap:3px;
  padding:0; min-height:28px; flex-wrap:nowrap;
}
#earningStatementsHost .es-row-statement select {
  flex:1 1 0; width:0; min-width:60px;
  height:26px; min-height:26px; padding:2px; margin:0;
}
#earningStatementsHost .es-row-statement>div {
  flex:0 0 auto; gap:3px; flex-wrap:nowrap;
}
#earningStatementsHost .es-row-statement .btn {
  min-height:24px; height:24px; padding:2px 4px;
  font-size:10px; line-height:18px; margin:0; white-space:nowrap;
}
#earningStatementsHost .es-row-statement>small { display:none; }
#earningStatementsHost .es-row-statement>div>small {
  font-size:9px; white-space:nowrap; margin:0;
}
