/* 배정현황 (#alloc 탭, web_extra/alloc.js) — 사이트 테마 변수(--card·--border·--tp·--ts·--accent…)를 따라감 */
.al-wrap { max-width: 1600px; margin: 0 auto; }
.al-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px; margin: 0 2px 12px; }
.al-title { font-size: 15px; font-weight: 800; color: var(--tp); }
.al-sub { margin-top: 3px; font-size: 12px; color: var(--ts); max-width: 760px; line-height: 1.5; }
.al-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: middle; background: var(--yellow, #fff7cc); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.al-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; color: var(--ts); }
.al-search { width: 190px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--card); color: var(--tp); font-size: 12.5px; }
.al-chk { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.al-fee { display: inline-flex; align-items: center; gap: 6px; }
.al-seg { display: inline-flex; padding: 2px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); }
.al-seg button { padding: 3px 11px; border-radius: 6px; font-weight: 700; color: var(--ts); background: none; border: 0; cursor: pointer; }
.al-seg button.on { background: var(--card); color: var(--accent); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.al-feecell { white-space: nowrap; text-align: center; }
.al-feecell .al-rseg { margin-right: 0; }
.al-th-sub { display: block; margin-top: 1px; font-size: 10px; font-weight: 600; color: #F04452; }
/* 한 종목 두 줄: 수량 칸 아래 배정금액(수량×확정공모가) */
.al-tbl tbody td { vertical-align: middle; }
.al-tbl tbody tr { height: 54px; }
.al-amt { margin-top: 3px; min-height: 15px; font-size: 11px; font-weight: 600; text-align: right; color: var(--ts); white-space: nowrap; }
.al-q { min-height: 18px; }
.al-diff { display: block; font-size: 10.5px; font-weight: 700; color: #F04452; text-align: right; line-height: 1.3; }
.al-diff:empty { display: none; }
.al-rseg { margin-right: 6px; vertical-align: middle; font-size: 10.5px; }
.al-rseg button { padding: 1px 6px; }
/* 입력·완료 (오른쪽 위) — 평소 잠금 */
.al-mode { display: inline-flex; align-items: center; gap: 6px; }
.al-locked, .al-editing { font-size: 11.5px; font-weight: 700; color: var(--hint, var(--ts)); }
.al-editing { color: var(--accent); }
.al-btn { padding: 6px 16px; border-radius: 8px; font-size: 12.5px; font-weight: 800; cursor: pointer; border: 1px solid var(--border); background: var(--card); color: var(--tp); }
.al-btn-edit:not(:disabled) { background: var(--accent); border-color: var(--accent); color: #fff; }
.al-btn-done:not(:disabled) { background: #00B493; border-color: #00B493; color: #fff; }
.al-btn:disabled { opacity: .4; cursor: default; }
.al-lockmode .al-inp { background: transparent; border-color: transparent; cursor: default; }
.al-lockmode .al-inp:focus { outline: none; }
.al-lockmode .al-rseg button:disabled { cursor: default; }
.al-lockmode .al-rseg button:not(.on) { opacity: .35; }
.al-save { min-width: 70px; font-size: 11.5px; font-weight: 700; color: #00B493; }
.al-save.bad { color: #F04452; }
.al-box { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); background: var(--card); box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.al-tbl { width: 100%; min-width: 1320px; border-collapse: collapse; font-size: 12.5px; color: var(--tp); font-variant-numeric: tabular-nums; }
.al-tbl thead th { position: sticky; top: 0; padding: 9px 8px; background: var(--bg); color: var(--ts); font-size: 11.5px; font-weight: 700; text-align: center; white-space: nowrap; border-bottom: 1px solid var(--border); }
.al-tbl th.al-th-in { color: var(--accent); }
.al-tbl th.al-th-calc { background: color-mix(in srgb, var(--accent) 7%, var(--bg)); }
.al-c { padding: 6px 8px; border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent); white-space: nowrap; }
.al-tbl tbody tr:hover { background: var(--hover, rgba(0,0,0,.03)); }
.al-name { max-width: 15em; overflow: hidden; text-overflow: ellipsis; font-weight: 700; text-align: left; }
.al-mid { text-align: center; }
.al-num { text-align: right; }
.al-calc { background: color-mix(in srgb, var(--accent) 4%, transparent); }
.al-total { font-weight: 800; }
.al-wd { margin-left: 1px; font-size: 10.5px; color: var(--hint, var(--ts)); }
.al-muted { color: var(--hint, var(--ts)); font-weight: 500; }
.al-in { padding: 4px 6px; }
.al-inp { width: 84px; padding: 4px 7px; border-radius: 6px; text-align: right; font-size: 12.5px; font-variant-numeric: tabular-nums;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border)); background: var(--yellow, #fff7cc); color: var(--tp); }
.al-inp:focus { outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 0; }
.al-hy { display: inline-flex; align-items: center; gap: 3px; }
.al-split { width: 22px; height: 24px; border-radius: 6px; border: 1px solid var(--border); background: var(--card); color: var(--ts); font-weight: 800; cursor: pointer; }
.al-split:hover { color: var(--accent); border-color: var(--accent); }
.al-tbl tfoot td { background: var(--alt, var(--bg)); font-weight: 800; border-top: 2px solid var(--border); }
.al-empty { padding: 28px 0 !important; text-align: center; color: var(--hint, var(--ts)); font-size: 12.5px; }
.al-more { display: block; width: 100%; margin-top: 8px; padding: 9px; border-radius: 10px; border: 1px dashed var(--border); background: var(--card); color: var(--ts); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.al-more:hover { color: var(--accent); border-color: var(--accent); }
.al-note { margin: 10px 2px 0; font-size: 11.5px; line-height: 1.6; color: var(--hint, var(--ts)); }

/* 2026-11-23 확약 구분 (고위험·일임·고유 칸) — 입력 중 드롭다운, 잠김이면 꼬리표 */
.al-top { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.al-th-lk { display: block; font-size: 10px; font-weight: 600; color: var(--hint); margin-top: 1px; }
.al-lk { width: 66px; height: 26px; padding: 0 4px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg); color: var(--tp); font-size: 11.5px; font-weight: 700; flex: none; }
.al-lk:focus { outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 0; }
.al-lkb { display: inline-block; min-width: 46px; padding: 2px 6px; border-radius: 999px; font-size: 11px; font-weight: 700; text-align: center; white-space: nowrap; flex: none; border: 1px solid transparent; }
.al-lkb-empty { visibility: hidden; }
.al-lkb-none { color: var(--ts); border-color: var(--border); background: var(--bg); }
.al-lkb-15d { color: #0e7490; background: color-mix(in srgb, #06b6d4 16%, transparent); border-color: color-mix(in srgb, #06b6d4 45%, transparent); }
.al-lkb-1m { color: #1d4ed8; background: color-mix(in srgb, #3b82f6 16%, transparent); border-color: color-mix(in srgb, #3b82f6 45%, transparent); }
.al-lkb-3m { color: #6d28d9; background: color-mix(in srgb, #8b5cf6 16%, transparent); border-color: color-mix(in srgb, #8b5cf6 45%, transparent); }
.al-lkb-6m { color: #be123c; background: color-mix(in srgb, #f43f5e 16%, transparent); border-color: color-mix(in srgb, #f43f5e 45%, transparent); }
html.dark .al-lkb-15d { color: #67e8f9; } html.dark .al-lkb-1m { color: #93c5fd; } html.dark .al-lkb-3m { color: #c4b5fd; } html.dark .al-lkb-6m { color: #fda4af; }
/* 2026-11-23 표가 화면보다 넓어 잘리던 것 → 한 화면에: 확약은 수량 위에 세로로, 머리글 줄바꿈, 여백·날짜 글자 줄임 */
.al-tbl { min-width: 0; }
.al-tbl thead th { white-space: normal; word-break: keep-all; line-height: 1.25; padding: 7px 5px; vertical-align: bottom; }
.al-c { padding: 5px 6px; }
.al-tbl tbody tr { height: auto; }
.al-top { flex-direction: column; align-items: flex-end; gap: 2px; }
.al-lk { width: 84px; height: 22px; font-size: 11px; }
.al-lkb { min-width: 0; padding: 1px 7px; font-size: 10.5px; }
.al-lkb-empty { display: none; }
.al-mid { font-size: 11.5px; }
.al-tbl td.al-mid:nth-child(2) { white-space: normal; word-break: keep-all; min-width: 5.5em; max-width: 8em; line-height: 1.3; }
.al-name { white-space: normal; word-break: break-all; min-width: 7em; max-width: 10em; line-height: 1.3; }
@media (max-width: 1400px) {
  .al-tbl { font-size: 12px; }
  .al-inp, .al-lk { width: 76px; }
  .al-c { padding: 4px 4px; }
  .al-mid { font-size: 11px; }
}@media (max-width: 1200px) {
  .al-tbl { font-size: 11px; }
  .al-tbl thead th { font-size: 10.5px; padding: 6px 3px; }
  .al-inp, .al-lk { width: 66px; font-size: 11px; padding-left: 4px; padding-right: 4px; }
  .al-amt { font-size: 10px; }
  .al-wd { display: none; }
  .al-c { padding: 4px 3px; }
  .al-name { min-width: 6em; }
  .al-rseg button { padding: 1px 4px; }
}@media (max-width: 1100px) { .al-name { min-width: 5em; } .al-tbl td.al-mid:nth-child(2) { min-width: 4.5em; } .al-inp, .al-lk { width: 62px; } }
@media (max-width: 1100px) { .al-c { padding: 4px 2px; } .al-tbl thead th { padding: 6px 2px; } }
/* 2026-11-23 납입월별 합계 (맨 아래 합계 줄 대신) */
.al-month { margin-top: 16px; }
.al-mtitle { margin: 0 2px 8px; font-size: 13.5px; font-weight: 800; color: var(--tp); }
.al-mtitle .al-muted { font-size: 11.5px; font-weight: 600; }
.al-mtbl tbody tr { height: 34px; }
/* 2026-11-23 미참여 꼬리표 */
.al-lkb-np { color: var(--hint, var(--ts)); background: transparent; border: 1px dashed var(--border); }
