[hidden]{display:none!important}
.toolbar-actions{flex-wrap:wrap}.plain-button,.primary-button,.logout-button{border:1px solid #ccd5df;background:white;color:#25374c;padding:8px 12px;cursor:pointer;font:inherit}.primary-button{background:#248650;color:white;border-color:#248650}.logout-button{padding:5px 8px;font-size:11px}.form-error{background:#fff3f1;border:1px solid #f1c6bf;color:#9d3327;padding:12px;font-size:12px;line-height:1.6;margin:10px 0}.company-editor input:disabled,.company-editor select:disabled{color:#607286;-webkit-text-fill-color:#607286}.company-editor input:enabled,.company-editor select:enabled{background:white;color:#18324a}.company-editor input:focus,.company-editor select:focus{outline:2px solid #b4ddc7;border-color:#248650}.company-editor input[aria-invalid=true]{border-color:#c44336}.dialog-form{display:grid;gap:13px}.dialog-form label,.search-box{display:grid;gap:7px;font-size:12px;color:#354b61}.dialog-form input,.dialog-form select,.search-box input,.year-form input{width:100%;padding:9px 10px;border:1px solid #ccd5df;min-height:39px;font:inherit;box-sizing:border-box}.dialog-form input:focus,.dialog-form select:focus,.search-box input:focus{outline:2px solid #b4ddc7;border-color:#248650}dialog{max-height:calc(100vh - 32px);width:540px;max-width:calc(100vw - 28px);overflow:auto}.dialog-heading{position:sticky;top:0;background:white;z-index:1}.client-list{display:grid;gap:6px;max-height:48vh;overflow:auto;margin-top:16px}.client-option{display:flex;text-align:left;justify-content:space-between;gap:12px;padding:13px;border:1px solid #e0e6eb;background:white;cursor:pointer;color:#233b4e}.client-option:hover{background:#edf7f1}.client-option small{color:#708293}.period-list{display:grid;gap:7px;margin-bottom:12px}.period-row{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid #e1e7ec}.period-row span{flex:1;font-size:12px}.year-form{display:flex;gap:8px}.data-table button{border:1px solid #cbd6df;background:white;padding:6px 10px;cursor:pointer}.context-grid select{min-width:0}.section-heading button{font-size:11px}.auth-body{min-height:100vh;background:#f3f6f8;display:grid;place-items:center;margin:0;padding:20px;box-sizing:border-box}.auth-card{background:white;width:420px;max-width:100%;padding:32px;border:1px solid #dce4e9;border-top:4px solid #248650;box-sizing:border-box}.auth-card h1{font-size:24px;margin:0 0 8px;color:#20374f}.auth-card p{font-size:12px;line-height:1.8;color:#6b7f91}.auth-card h2{font-size:16px;margin:24px 0 18px}.auth-card .primary-button{min-height:43px;margin-top:8px}.auth-toggle{border:0;background:none;color:#237b4a;cursor:pointer;text-decoration:underline;margin-top:20px}.auth-card .form-error{font-size:12px}.year-form button{white-space:nowrap}
@media(max-width:760px){.toolbar-actions{gap:5px}.toolbar-actions button{font-size:10px;padding:0 9px;min-height:34px}.company-select{max-width:126px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-tools{gap:7px}.connection{max-width:63px}.logout-button{font-size:9px;padding:5px}.dialog-form input,.dialog-form select,.search-box input,.year-form input{font-size:16px}.auth-card{padding:24px}.section-heading button{white-space:nowrap}.context-grid .form-cell>label{flex-basis:103px}}

@media(max-width:760px){.company-editor input,.company-editor select,.context-grid input,.context-grid select{font-size:16px}.date-controls input{font-size:12px}}

.auth-body{grid-template-columns:minmax(0,1fr)}.auth-card{width:min(420px,calc(100vw - 40px));min-width:0;margin:0}.auth-card .dialog-form,.auth-card label{min-width:0}.auth-card input{min-width:0}
.postal-controls input{max-width:115px}.postal-controls button{flex-shrink:0}.branch-postal-controls{display:flex;gap:8px;align-items:center}.branch-postal-controls input{flex:1;min-width:0}.branch-postal-controls button{flex-shrink:0;white-space:nowrap}#address-dialog{width:540px;max-width:calc(100vw - 24px);height:min(680px,calc(100dvh - 32px));padding:0;overflow:hidden;display:flex;flex-direction:column}#address-dialog:not([open]){display:none}#address-search-status{padding:10px 16px;margin:0;font-size:11px;line-height:1.6;background:#f5faf7;color:#4d6a58}#address-frame{border:0;width:100%;flex:1;min-height:0;background:white}@media(max-width:760px){.postal-controls button{min-height:34px;font-size:11px}#address-dialog{max-width:calc(100vw - 16px);height:calc(100dvh - 24px);max-height:calc(100dvh - 24px)}#address-dialog .dialog-heading{padding:12px 16px}#address-search-status{font-size:11px;padding:8px 12px}}
.date-controls{flex-wrap:wrap}.date-controls #apply-hr-period{width:auto;flex-shrink:0}@media(max-width:760px){.date-controls #apply-hr-period{margin-top:4px;font-size:10px;min-height:30px}}
.form-cell[hidden],.company-detail-section[hidden],#main-identity-section[hidden]{display:none!important}.identifier-note{font-size:11px;line-height:1.7;color:#5b6f80;margin:12px 0}.identity-control{flex-wrap:wrap;gap:6px}.identity-control input{max-width:240px}.identity-control button{flex-shrink:0;white-space:nowrap}.identifier-status{font-size:10px;color:#587167;line-height:1.5}.company-detail-section .form-cell>label{line-height:1.45}.company-detail-section .control{min-width:0}.company-detail-section input,.company-detail-section select{min-width:0;width:100%}.company-detail-section input[aria-invalid=true],.company-detail-section select[aria-invalid=true]{border-color:#c44336}@media(max-width:760px){.identity-cell>label{min-height:36px}.identity-control{align-items:stretch}.identity-control input{max-width:100%;min-width:0;flex:1 1 140px}.identifier-status{flex-basis:100%}.company-detail-section .form-cell>label{font-size:11px;flex-basis:112px}.identity-control button{font-size:10px;min-height:34px}}

/* Company registration sections retain normal controls and stay usable on phones. */
.reference-cell .control{display:flex;flex-wrap:wrap;gap:6px;min-width:0}.reference-cell .reference-code{flex:0 0 96px;width:96px;min-width:64px}.reference-cell .reference-name{flex:1 1 120px;min-width:0;background:#f5f6f7}.company-detail-section textarea{width:100%;min-height:96px;resize:vertical}.radio-choice{display:inline-flex!important;align-items:center;gap:5px;white-space:nowrap;font-weight:400!important}.radio-choice input{width:auto!important;min-width:0!important;flex:none!important}.radio-line{display:flex;flex-wrap:wrap;gap:14px}.asset-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0}.asset-toolbar p{font-size:12px;color:#64716b}.refund-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px;border-bottom:1px solid #e6e9e7;min-width:0}.refund-heading,.refund-bank{display:flex;justify-content:space-between;align-items:center;gap:8px}.refund-heading{grid-column:1/-1}.refund-row input{width:100%;min-width:0}.refund-row .identifier-status{grid-column:1/-1}.stamp-layout{display:flex;align-items:flex-start;gap:24px;padding:12px}.stamp-preview-box{width:190px;flex:0 0 190px;text-align:center}.stamp-preview-box img{max-width:180px;max-height:180px;border:1px solid #dbe1dd;padding:4px}.stamp-preview-box p{font-size:12px;color:#64716b}.stamp-settings{display:grid;gap:10px;min-width:0;max-width:650px}.stamp-settings input,.stamp-settings select{max-width:100%;min-width:0}.stamp-settings>div{display:grid;gap:8px}.workflow-settings{margin-top:24px;border-top:1px solid #e1e6e3;padding:14px 0}.workflow-settings summary{cursor:pointer;font-weight:600;color:#426052}.lookup-dialog{width:min(880px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:0;box-sizing:border-box}.lookup-body{padding:16px;min-width:0}.lookup-body>label{display:block;margin-bottom:6px}.lookup-body>input{width:100%;box-sizing:border-box}.lookup-results{max-height:55dvh;overflow:auto;border-top:1px solid #dde4df}.lookup-option{display:grid;grid-template-columns:100px minmax(0,1fr);gap:6px 12px;width:100%;text-align:left;white-space:normal;overflow-wrap:anywhere;background:white;border:0;border-bottom:1px solid #e2e8e4;padding:12px;cursor:pointer}.lookup-option:hover,.lookup-option:focus{background:#eff8f2;outline:2px solid #398764;outline-offset:-2px}.lookup-option small{grid-column:2;color:#68746d}.lookup-option strong{color:#246642}.company-detail-section[hidden],.form-cell[hidden]{display:none!important}
@media(max-width:600px){.reference-cell .reference-code{flex-basis:80px;width:80px}.asset-toolbar{align-items:flex-start}.refund-row{grid-template-columns:minmax(0,1fr)}.refund-heading,.refund-row .identifier-status{grid-column:auto}.stamp-layout{flex-direction:column;gap:12px}.stamp-preview-box{width:100%;flex:auto}.stamp-settings{width:100%}.lookup-body{padding:12px}.lookup-option{grid-template-columns:74px minmax(0,1fr);padding:10px;gap:4px 8px}.lookup-option small{grid-column:1/-1}.company-detail-section .form-cell label{overflow-wrap:anywhere}.radio-line{gap:8px}}
