.allocation-dialog{--ah-text:var(--text,#173444);--ah-muted:var(--text-muted,#587184);--ah-border:var(--border,#d7e3e9);--ah-surface:var(--surface,#fff);--ah-bg:var(--background,#f4f8fa);--ah-blue:var(--primary,#246b86);box-sizing:border-box;color:var(--ah-text);background:var(--ah-surface);border:1px solid var(--ah-border);border-radius:16px;width:min(1380px,calc(100vw - 48px));max-width:none;max-height:calc(100dvh - 48px);padding:0;box-shadow:0 24px 96px #15364926;font-family:inherit;overflow:auto}
.allocation-dialog *{box-sizing:border-box}.allocation-dialog::backdrop{background:#102b4066;backdrop-filter:blur(3px)}.allocation-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:28px 32px 24px;border-bottom:1px solid var(--ah-border)}.allocation-head h2{font-size:24px;line-height:1.35;font-weight:650;margin:4px 0 8px;letter-spacing:-.02em}.allocation-head p{font-size:14px;color:var(--ah-muted);line-height:1.6;margin:0}.allocation-head .allocation-eyebrow{font-size:12px;color:var(--ah-blue);font-weight:600;letter-spacing:.08em}.allocation-close{display:grid;place-items:center;width:44px;height:44px;flex:none;border:1px solid var(--ah-border);border-radius:10px;background:var(--ah-surface);color:var(--ah-muted);font-size:28px;cursor:pointer}.allocation-close:hover{background:var(--ah-bg);color:var(--ah-text)}.allocation-controls{display:flex;align-items:flex-end;gap:24px;padding:24px 32px;background:var(--ah-bg)}.allocation-month-field{display:grid;gap:8px;min-width:180px}.allocation-month-field label{font-size:13px;font-weight:600}.allocation-dialog input,.allocation-dialog select{font:inherit;font-size:14px;color:var(--ah-text);border:1px solid var(--ah-border);border-radius:7px;background:var(--ah-surface);padding:10px 12px;min-height:44px;max-width:100%}.allocation-month-field input{width:100%}.allocation-dialog input:focus-visible,.allocation-dialog select:focus-visible,.allocation-dialog button:focus-visible,.allocation-dialog summary:focus-visible{outline:2px solid var(--ah-blue);outline-offset:3px}.allocation-dialog :disabled{opacity:.55;cursor:wait}.allocation-rule{display:flex;flex:1;gap:24px;align-items:center;min-height:44px;font-size:13px;color:var(--ah-muted);flex-wrap:wrap}.allocation-rule strong{color:var(--ah-text);font-weight:600;margin-left:8px}.allocation-controls>button,.allocation-footer button{min-height:44px;white-space:nowrap}.allocation-status{font-size:13px;line-height:1.6;padding:12px 32px;color:var(--ah-muted);min-height:45px;border-bottom:1px solid var(--ah-border)}.allocation-status.is-error{color:#a33636;background:#fff5f5}.allocation-main{padding:8px 32px 24px;min-height:240px}.allocation-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:16px 0}.allocation-preview-heading h3{font-size:16px;line-height:1.5;margin:0;font-weight:600}.allocation-preview-heading>span{font-size:12px;color:var(--ah-muted)}.allocation-warnings{background:var(--ah-bg);border:1px solid var(--ah-border);border-radius:8px;padding:12px 16px;margin:0 0 16px;font-size:13px;line-height:1.6;color:var(--ah-muted)}.allocation-warnings summary{cursor:pointer;color:var(--ah-text);font-weight:500}.allocation-warnings ul{padding-left:20px;margin:12px 0 0}.allocation-warnings li+li{margin-top:8px}.allocation-table-wrap{border:1px solid var(--ah-border);border-radius:10px;overflow:hidden}.allocation-table{border-collapse:collapse;width:100%;font-size:13px;table-layout:fixed}.allocation-table th{background:var(--ah-bg);color:var(--ah-muted);text-align:left;padding:12px 14px;font-weight:500;white-space:nowrap;border-bottom:1px solid var(--ah-border)}.allocation-table th:nth-child(1){width:15%}.allocation-table th:nth-child(2){width:22%}.allocation-table th:nth-child(3){width:17%}.allocation-table th:nth-child(4){width:17%}.allocation-table th:nth-child(5){width:22%}.allocation-table th:nth-child(6){width:7%}.allocation-table td{padding:16px 14px;border-bottom:1px solid var(--ah-border);vertical-align:middle;overflow-wrap:anywhere}.allocation-table tr:last-child td{border-bottom:0}.allocation-table td>strong,.allocation-table td>span,.allocation-table td>small{display:block}.allocation-table small{font-size:12px;color:var(--ah-muted);line-height:1.6;margin-top:7px}.allocation-table td input,.allocation-table td select{width:100%;padding-left:9px;padding-right:9px;font-size:13px}.allocation-index{font-size:11px;color:var(--ah-muted);margin-bottom:7px;font-variant-numeric:tabular-nums}.allocation-table [data-allocation-type]{font-size:12px}.allocation-ratio{font-size:15px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}.allocation-missing input{border-style:dashed}.allocation-footer{position:sticky;bottom:0;display:flex;gap:24px;align-items:center;justify-content:space-between;padding:20px 32px;background:var(--ah-surface);border-top:1px solid var(--ah-border);z-index:1}.allocation-footer p{font-size:12px;color:var(--ah-muted);line-height:1.6;margin:0}.allocation-footer>div{display:flex;gap:10px}.allocation-empty,.allocation-loading{padding:56px 16px;text-align:center;color:var(--ah-muted);font-size:14px;line-height:1.7}.allocation-empty h3{font-size:17px;color:var(--ah-text);margin:0 0 8px}.allocation-empty p{margin:0}.allocation-loading span{display:inline-block;width:14px;height:14px;border:2px solid var(--ah-border);border-top-color:var(--ah-blue);border-radius:50%;margin-right:10px;vertical-align:-2px;animation:allocation-spin .8s linear infinite}@keyframes allocation-spin{to{transform:rotate(360deg)}}
@media(max-width:1120px){.allocation-dialog{width:calc(100vw - 32px);max-height:calc(100dvh - 32px)}.allocation-head,.allocation-controls,.allocation-status,.allocation-main,.allocation-footer{padding-left:24px;padding-right:24px}.allocation-rule{gap:12px}.allocation-table th,.allocation-table td{padding-left:10px;padding-right:10px}.allocation-table th:nth-child(1){width:14%}.allocation-table th:nth-child(2){width:21%}.allocation-table th:nth-child(3){width:16%}.allocation-table th:nth-child(4){width:18%}.allocation-table th:nth-child(5){width:23%}.allocation-table th:nth-child(6){width:8%}}
@media(max-width:800px){.allocation-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:12px}.allocation-head{padding:20px;gap:12px}.allocation-head h2{font-size:21px}.allocation-controls{padding:20px;flex-wrap:wrap;gap:16px;align-items:center}.allocation-month-field{flex:1}.allocation-rule{order:3;flex-basis:100%;gap:12px 20px;min-height:0}.allocation-controls>button{align-self:flex-end}.allocation-status{padding:12px 20px}.allocation-main{padding:0 20px 20px}.allocation-preview-heading{align-items:flex-start}.allocation-table-wrap{border:0;overflow:visible}.allocation-table,.allocation-table tbody{display:block}.allocation-table thead{display:none}.allocation-table tr{display:grid;grid-template-columns:1fr 1fr;gap:16px;border:1px solid var(--ah-border);border-radius:10px;padding:16px;margin-bottom:12px}.allocation-table td{display:block;padding:0;border:0;min-width:0}.allocation-table td:before{content:attr(data-label);display:block;font-size:11px;color:var(--ah-muted);margin-bottom:8px}.allocation-table td:nth-child(1){grid-column:1}.allocation-table td:nth-child(2){grid-column:2}.allocation-table td:nth-child(3){grid-column:1}.allocation-table td:nth-child(4){grid-column:2}.allocation-table td:nth-child(5){grid-column:1}.allocation-table td:nth-child(6){grid-column:2}.allocation-table td>span,.allocation-table td>strong{line-height:1.5}.allocation-index{display:inline-block!important;margin:0 8px 0 0}.allocation-table [data-allocation-type]{display:inline!important}.allocation-table small{margin-top:5px}.allocation-footer{padding:16px 20px;display:block}.allocation-footer p{margin-bottom:12px}.allocation-footer>div{justify-content:flex-end}.allocation-footer button{flex:1}.allocation-warnings{padding:12px}}
@media(prefers-reduced-motion:reduce){.allocation-loading span{animation:none}}
.allocation-dialog .allocation-table{min-width:0}
