.customer-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:8px 0 12px}
.customer-choice{display:flex;align-items:center;gap:10px;padding:15px 12px;border:1px solid #d8e1ee;border-radius:14px;background:#f8fafc;cursor:pointer;min-width:0;color:#334155}
.customer-choice:has(input:checked){border-color:#5145e5;background:#eeedff;box-shadow:0 0 0 1px #5145e5;color:#3730a3}
.customer-choice:has(input:disabled){opacity:.55;cursor:not-allowed}
.customer-choice input{accent-color:#5145e5;width:17px;height:17px;flex-shrink:0}
.customer-choice strong,.customer-choice small{display:block}.customer-choice strong{font-size:13px}.customer-choice small{font-size:11px;margin-top:4px;font-weight:400;line-height:1.4}
#add-customer-modal>div,#manage-customer-modal>div{max-width:620px;max-height:92dvh;overflow-y:auto}
#add-customer-modal form,#manage-customer-modal form{padding:24px}
#auth-gate{overflow-y:auto;padding:24px}
#auth-gate>div{max-width:960px;display:grid;grid-template-columns:.85fr 1.15fr;max-height:calc(100dvh - 48px);overflow-y:auto}
#auth-gate>div>div:first-child{display:flex;flex-direction:column;justify-content:center;padding:40px}
#auth-gate h1{font-size:36px;line-height:1.15;margin:20px 0}
#auth-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:32px;align-content:center}
#auth-form>*{margin:0!important;min-width:0}#auth-form input,#auth-form select{min-height:46px;width:100%}
#auth-form>div:has(#auth-password),#auth-error,#auth-form>button,#auth-form>a,#auth-form>p{grid-column:1/-1}
.opening-entry-dialog{border:0;border-radius:20px;padding:26px;width:min(480px,92vw);color:#172554;box-shadow:0 20px 80px #0005}
.opening-entry-dialog::backdrop{background:#0f172aaa}.opening-entry-dialog h2{font-size:21px;font-weight:800}.opening-entry-dialog p{font-size:13px;margin:10px 0;color:#64748b}.opening-entry-dialog label{display:block;font-size:13px;font-weight:700;margin-top:14px}.opening-entry-dialog input,.opening-entry-dialog select{display:block;border:1px solid #cbd5e1;border-radius:10px;padding:10px;width:100%;margin-top:5px}.entry-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}.entry-actions button,.khata-entry-actions button{padding:8px 12px;border:1px solid #c7d2fe;border-radius:9px;background:#eef2ff;color:#3730a3;font-weight:700;font-size:12px}.entry-actions [data-delete]{color:#be123c;background:#fff1f2;border-color:#fecdd3}.opening-entry-dialog .entry-error{color:#be123c}.khata-entry-actions{display:flex;gap:6px;margin-top:8px;flex-wrap:wrap}
@media(max-width:680px){#auth-gate{padding:12px}#auth-gate>div{grid-template-columns:1fr;max-height:calc(100dvh - 24px)}#auth-gate>div>div:first-child{padding:24px}#auth-gate h1{font-size:26px;margin:10px 0}#auth-form{padding:24px}#add-customer-modal form,#manage-customer-modal form{padding:18px}.customer-choice{padding:12px 8px}}

#auth-form:not(:has(#auth-branch))>div:has(#auth-username){grid-column:1/-1}

@media(min-width:760px){#add-customer-modal>div,#manage-customer-modal>div{max-width:860px}#add-customer-modal form,#manage-customer-modal form{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}#add-customer-modal form>*,#manage-customer-modal form>*{margin:0!important;min-width:0}#add-customer-modal form>div:last-child,#manage-customer-modal form>div:last-child,#manage-cust-error{grid-column:1/-1}#manage-customer-invoices-section{padding:0 24px 24px}}
