#allowance-workspace{max-width:1500px;margin:auto;padding:30px}.allowance-table-panel{background:white;border:1px solid var(--line);padding:20px;border-radius:16px;margin-top:22px}.allowance-table-panel>.sidebar-heading{padding:0 0 16px}.allowance-table-panel h2{font-size:18px;margin:0}#allowance-list{overflow:auto;border:1px solid #e5ebef;border-radius:10px;max-height:68vh}#allowance-list .workspace-table th:first-child{width:28%}#allowance-list .workspace-table th:nth-child(2){width:24%}.allowance-remaining{color:#20613b;font-weight:bold}.allowance-negative{color:#ac2938;font-weight:bold}
#allowance-detail-dialog{width:1000px;max-width:calc(100vw - 32px);max-height:92vh;max-height:92dvh;padding:0;overflow:auto;border-radius:18px}.allowance-dialog-heading{position:sticky;top:0;z-index:2;background:white;border-bottom:1px solid var(--line);padding:22px 26px;align-items:flex-start}.allowance-dialog-heading>div{min-width:0}.allowance-dialog-heading h2{overflow-wrap:anywhere;line-height:1.8}.allowance-dialog-heading p{margin:8px 0 0;overflow-wrap:anywhere}.allowance-dialog-heading button{min-width:44px;min-height:44px}#allowance-detail-body{padding:22px 26px;background:#f7fafc}.allowance-summary{margin:0 0 24px}.allowance-summary>div{border:1px solid var(--line);background:white;padding:18px;border-radius:12px}.allowance-summary strong{font-size:20px}.allowance-expenses{background:white;border:1px solid var(--line);border-radius:14px;padding:18px}.allowance-expenses h3{margin:0;font-size:18px}.allowance-expenses>.sidebar-heading{padding:0 0 16px}.allowance-expense-table{overflow:auto;border:1px solid #e5ebef;border-radius:10px;max-height:45vh}.allowance-expense-table th:nth-child(1){width:20%}.allowance-expense-table th:nth-child(2){width:18%}.allowance-expense-table th:nth-child(3){width:42%}.allowance-dialog-footer{position:sticky;bottom:0;background:white;border-top:1px solid var(--line);padding:15px 26px;display:flex;justify-content:flex-end}
@media(max-width:700px){#allowance-workspace{padding:22px 14px}.allowance-table-panel{padding:12px}#allowance-list .workspace-table{min-width:660px}#allowance-detail-dialog{max-width:calc(100vw - 20px);max-height:94dvh}.allowance-dialog-heading{padding:16px}.allowance-dialog-heading h2{font-size:21px}#allowance-detail-body{padding:14px}.allowance-summary{grid-template-columns:minmax(0,1fr);gap:10px}.allowance-summary>div{display:flex;justify-content:space-between;align-items:center;gap:10px}.allowance-summary strong{margin:0;font-size:18px}.allowance-expenses{padding:12px}.allowance-expense-table .workspace-table{min-width:560px}.allowance-dialog-footer{padding:14px 16px}.allowance-dialog-footer button{width:100%;min-height:44px}}
