*{box-sizing:border-box}button,input,select{font:inherit}button{cursor:pointer;padding:8px 12px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#1e293b}button:hover{background:#eff6ff}button:disabled{opacity:.5;cursor:wait}input,select{border:1px solid #cbd5e1;padding:9px;border-radius:6px;max-width:100%;background:#fff;color:#172033}label{display:block}label input,label select{display:block;width:100%;margin:6px 0 16px}h2{font-size:1.35rem;margin:0 0 16px}p{margin:12px 0;color:#475569}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px}.toolbar h2{margin:0}.table-scroll{overflow-x:auto;margin-top:22px}.documents table{border-collapse:collapse;width:100%;background:#fff}.documents th,.documents td{padding:14px 12px;text-align:left;border-bottom:1px solid #e2e8f0}.documents th{color:#64748b;font-size:.85rem}.documents small,.history small{display:block;color:#64748b;margin-top:5px}.badge{white-space:nowrap;background:#eef2ff;color:#3730a3;border-radius:16px;padding:5px 9px;font-size:.8rem}.row-actions button,.row-actions a{margin:3px;font-size:.85rem}.row-actions a{color:#1d4ed8}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a80;display:flex;align-items:center;justify-content:center;z-index:100;padding:24px}.document-form{background:#fff;border-radius:12px;padding:28px;width:850px;max-width:100%;max-height:90vh;overflow:auto;box-shadow:0 20px 80px #0003}.form-grid{display:grid;grid-template-columns:2fr 1fr;gap:20px}.item-row,.item-head{display:grid;grid-template-columns:minmax(180px,1fr) 95px 140px 36px;gap:10px;margin:10px 0}.item-head{color:#64748b;font-size:.85rem}.item-row input{min-width:0;width:100%}.actions{display:flex;gap:10px;margin-top:22px}.actions button:first-child,.login button{background:#1d4ed8;color:#fff;border-color:#1d4ed8}.error{color:#b91c1c;background:#fef2f2;padding:12px;border-radius:6px}.history{border-bottom:1px solid #e2e8f0;padding:12px 0}.session{display:flex;justify-content:flex-end;padding:8px 20px;background:#fff;border-bottom:1px solid #e2e8f0}.login{min-height:100vh;display:grid;place-items:center;background:#f1f5f9;padding:24px}.login form{max-width:420px;width:100%;padding:36px;background:#fff;border:1px solid #e2e8f0;border-radius:12px}.login h1{font-size:1.8rem}.login button{width:100%}@media (max-width:700px){.form-grid{grid-template-columns:1fr}.overlay{padding:8px}.document-form{padding:16px}.item-row,.item-head{grid-template-columns:minmax(100px,1fr) 65px 90px 30px;gap:5px}.toolbar{align-items:start;flex-direction:column}}.accountant .report-period{display:flex;flex-wrap:wrap;gap:16px;align-items:end;margin-top:20px}.accountant .report-period label{min-width:170px}.accountant .report-period input{margin-bottom:0}.accountant .report-presets{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 22px}.accountant .report-cards{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:14px}.accountant .report-cards>div{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:18px}.accountant .report-cards span{display:block;font-size:.85rem;color:#475569;min-height:36px}.accountant .report-cards strong{display:block;font-size:1.4rem;margin:10px 0;color:#172033}.accountant .report-cards small{color:#64748b}.accountant .report-methods{display:flex;flex-wrap:wrap;gap:12px 26px;padding:16px 0;font-size:.9rem}.accountant .report-warning{padding:16px;border:1px solid #fcd34d;border-radius:8px;background:#fffbeb;margin:12px 0 24px}.accountant .report-warning p{margin:8px 0}.accountant .report-tabs{display:flex;flex-wrap:wrap;gap:8px;border-bottom:1px solid #cbd5e1;padding-bottom:12px;margin:18px 0}.accountant .report-tabs [aria-selected=true]{background:#1d4ed8;border-color:#1d4ed8;color:#fff}.accountant h3{font-size:1.1rem;font-weight:600}.accountant td{vertical-align:top;font-size:.9rem}.accountant .report-amount{white-space:nowrap}.accountant .report-overdue{color:#b91c1c}.accountant .report-footnote{font-size:.8rem;color:#64748b;margin-top:24px}.accountant .report-empty{padding:24px;background:#fff;border:1px solid #e2e8f0;border-radius:8px}@media (max-width:1100px){.accountant .report-cards{grid-template-columns:repeat(2,minmax(160px,1fr))}}@media (max-width:650px){.accountant .report-cards{grid-template-columns:1fr}.accountant .report-period{align-items:stretch;flex-direction:column}}body{font-family:sans-serif;margin:0;padding:2rem;background-color:#f8f8f8;color:#333}h1{font-size:2rem;font-weight:700;text-decoration:underline}
