* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    min-width: 1500px;
    overflow-x: auto;
    background: #eef2f7;
    color: #0f172a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", "맑은 고딕", sans-serif;
    font-size: 13px;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
}

#admin-main-content {
    display: block;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: transparent;
}

.admin-layout {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    min-width: 250px;
    min-height: 100vh;
    position: sticky;
    top: 0;
    align-self: flex-start;
    z-index: 50;
    display: flex;
    flex-direction: column;
    padding: 18px 14px;
    color: #e2e8f0;
    background: #0f172a;
    box-shadow: 4px 0 16px rgba(15, 23, 42, 0.14);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px 18px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.16);
    border-radius: 10px;
    cursor: pointer;
}

.sidebar-brand:hover {
    background: rgba(255, 255, 255, 0.06);
}

.sidebar-logo {
    width: 96px;
    height: auto;
    object-fit: contain;
    flex: 0 0 auto;
}

.sidebar-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
}

.sidebar-brand-text strong {
    color: #ffffff;
    font-size: 14px;
    letter-spacing: -0.2px;
}

.sidebar-brand-text span {
    margin-top: 3px;
    color: #94a3b8;
    font-size: 11px;
    white-space: nowrap;
}

.tab-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
}

.sidebar-nav-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tab-button.sidebar-nav-button,
.sidebar-nav-button {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0;
    padding: 11px 12px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 800;
    text-align: left;
}

.tab-button.sidebar-nav-button:hover,
.sidebar-nav-button:hover {
    background: rgba(148, 163, 184, 0.12);
    color: #ffffff;
}

.tab-button.sidebar-nav-button.active,
.sidebar-nav-button.active {
    color: #ffffff;
    background: #2563eb;
    border-color: #3b82f6;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}

.sidebar-nav-button em {
    font-style: normal;
    font-size: 11px;
    opacity: 0.75;
    transition: transform 0.18s ease;
}

.sidebar-nav-group.open .sidebar-nav-button em {
    transform: rotate(180deg);
}

.sidebar-sub-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 0 0 12px;
    border-left: 1px solid rgba(148, 163, 184, 0.25);
    transition: max-height 0.2s ease, opacity 0.15s ease, padding 0.15s ease;
}

.sidebar-sub-menu.expanded {
    max-height: 110px;
    opacity: 1;
    padding-top: 4px;
    padding-bottom: 6px;
}

.sidebar-sub-button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 800;
    text-align: left;
}

.sidebar-sub-button::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.55;
    flex: 0 0 auto;
}

.sidebar-sub-button:hover {
    background: rgba(148, 163, 184, 0.10);
    color: #e2e8f0;
}

.sidebar-sub-button.active {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.admin-content-area {
    flex: 1;
    min-width: 0;
    padding: 22px 26px 32px;
}

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
}

.header-title-group {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
}

h2 {
    margin: 0;
    padding-top: 2px;
    color: #0f172a;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.current-page-label {
    display: inline-flex;
    align-items: center;
    padding-top: 4px;
    color: #475569;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.2px;
    white-space: nowrap;
}

.current-page-label::before {
    content: '';
    display: inline-block;
    width: 1px;
    height: 16px;
    margin-right: 12px;
    background: #cbd5e1;
}

.header-user-area {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.login-user-name {
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

.btn-logout {
    padding: 8px 16px;
    color: #ffffff;
    background: #64748b;
    border: 0;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
}

.btn-logout:hover {
    background: #475569;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: pageSoftMove 0.22s ease-out;
}

@keyframes pageSoftMove {
    from { opacity: 0; transform: translateX(12px); }
    to { opacity: 1; transform: translateX(0); }
}

.inventory-dashboard {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.season-panel {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}

.season-head {
    display: flex;
    align-items: center;
    padding: 15px 18px;
    border-bottom: 2px solid #e2e8f0;
    background: #f8fafc;
}

.season-title-wrap {
    display: flex;
    align-items: center;
    gap: 9px;
}

.season-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #2563eb;
}

.season-panel.summer .season-dot { background: #0ea5e9; }
.season-panel.spring-fall .season-dot { background: #f97316; }
.season-panel.winter .season-dot { background: #334155; }

.season-head h3 {
    margin: 0;
    color: #0f172a;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -0.3px;
}

.season-body {
    padding: 16px 18px 18px;
}

.inventory-table-group + .inventory-table-group {
    margin-top: 16px;
}

.group-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.group-title-row h4 {
    margin: 0;
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
}

.table-scroll {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
}

.inventory-table {
    width: 100%;
    min-width: 920px;
    border-collapse: collapse;
    table-layout: fixed;
    background: #ffffff;
}

.inventory-table th,
.inventory-table td {
    padding: 11px 10px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid #e2e8f0;
    word-break: keep-all;
}

.inventory-table tr:last-child td {
    border-bottom: 0;
}

.inventory-table th {
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
    border-bottom: 2px solid #cbd5e1;
}

.inventory-table th:first-child,
.inventory-table td:first-child {
    width: 150px;
    text-align: left;
    padding-left: 14px;
}

.inventory-table tbody tr:hover {
    background: #f8fafc;
}

.item-name-cell {
    font-weight: 900;
    color: #0f172a;
}

.stock-quantity {
    display: inline-block;
    min-width: 24px;
    color: #334155;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: -0.2px;
}

.stock-quantity.stock-zero {
    color: #be123c;
}

.stock-quantity.stock-low {
    color: #b45309;
}

.stock-quantity.stock-normal {
    color: #047857;
}

.survey-header-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 10px;
    padding: 16px 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}

.survey-header-panel h3 {
    margin: 0;
    color: #0f172a;
    font-size: 16px;
    font-weight: 900;
}

.survey-header-panel p {
    margin: 5px 0 0 0;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

.survey-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.btn-primary,
.btn-secondary {
    padding: 9px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.btn-primary {
    color: #ffffff;
    background: #2563eb;
    border: 1px solid #2563eb;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    color: #334155;
    background: #ffffff;
    border: 1px solid #cbd5e1;
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.survey-save-info {
    margin: 0 0 14px 2px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.survey-input {
    width: 68px;
    height: 32px;
    padding: 5px 6px;
    text-align: center;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    background: #ffffff;
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
}

.survey-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.empty-group {
    padding: 18px;
    text-align: center;
    color: #94a3b8;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 1200px) {
    body {
        min-width: 1180px;
    }
    .admin-sidebar {
        width: 230px;
        min-width: 230px;
    }
    .survey-header-panel {
        align-items: stretch;
        flex-direction: column;
    }
    .survey-actions {
        justify-content: flex-start;
    }
}

/* === 2026-06-27 중요 텍스트 굵기 보강 === */
.header-title-group h2,
.sidebar-brand-text strong,
.tab-button.sidebar-nav-button,
.sidebar-nav-button,
.sidebar-sub-button,
.season-head h3,
.uniform-section-title,
.uniform-table th,
.item-name,
.survey-header-panel h3 {
    font-weight: 900 !important;
    letter-spacing: -0.45px;
}

.current-page-label,
.login-user-name,
.btn-logout,
.btn-primary,
.btn-secondary {
    font-weight: 800 !important;
}

.sidebar-brand-text strong {
    font-size: 15px;
}

.tab-button.sidebar-nav-button,
.sidebar-nav-button {
    font-size: 13.5px;
}

.sidebar-sub-button {
    font-size: 12.5px;
}

.header-title-group h2 {
    font-size: 23px;
}

/* === 2026-06-27 시설점검 대시보드 기준 글꼴/여백 통일 === */
html,
body,
button,
input,
select,
textarea,
table,
th,
td {
    font-family: sans-serif !important;
}

body {
    font-size: 13px !important;
    color: #0f172a;
    background: #eef2f7;
}

.admin-sidebar {
    width: 250px;
    min-width: 250px;
    padding: 18px 14px;
    background: #0f172a;
    box-shadow: 4px 0 16px rgba(15, 23, 42, 0.14);
}

.sidebar-brand {
    gap: 10px;
    padding: 6px 8px 18px;
    margin-bottom: 12px;
    border-radius: 10px;
}

.sidebar-brand-text {
    line-height: 1.25;
}

.sidebar-brand-text strong {
    font-size: 14px !important;
    font-weight: bold !important;
    letter-spacing: -0.2px;
}

.sidebar-brand-text span {
    margin-top: 3px;
    font-size: 11px;
    font-weight: normal;
    color: #94a3b8;
}

.tab-menu {
    gap: 8px;
}

.sidebar-nav-group {
    gap: 4px;
}

.tab-button.sidebar-nav-button,
.sidebar-nav-button {
    min-height: 42px;
    padding: 11px 12px !important;
    border-radius: 9px;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}

.sidebar-sub-menu {
    gap: 4px;
    padding-left: 12px;
}

.sidebar-sub-menu.expanded {
    padding-top: 4px;
    padding-bottom: 6px;
}

.sidebar-sub-button {
    gap: 6px;
    padding: 9px 10px !important;
    border-radius: 7px;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}

.admin-content-area {
    padding: 22px 26px 32px;
}

.header-bar {
    gap: 15px;
    margin-bottom: 18px;
    padding: 16px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
}

.header-title-group {
    gap: 15px;
}

.header-title-group h2,
h2 {
    padding-top: 4px;
    font-size: 22px !important;
    font-weight: bold !important;
    letter-spacing: -0.5px !important;
}

.current-page-label {
    padding-top: 5px;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: -0.2px !important;
}

.current-page-label::before {
    height: 16px;
    margin: 0 2px 0 0;
}

.login-user-name {
    font-size: 13px;
    font-weight: bold !important;
}

.btn-logout {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold !important;
}

.inventory-dashboard {
    gap: 18px;
}

.season-panel {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-shadow: none;
}

.season-head {
    padding: 12px 14px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.season-title-wrap {
    gap: 8px;
}

.season-dot {
    width: 8px;
    height: 8px;
}

.season-head h3 {
    font-size: 16px !important;
    font-weight: bold !important;
    letter-spacing: -0.2px !important;
}

.season-body {
    padding: 14px;
}

.inventory-table-group + .inventory-table-group {
    margin-top: 15px;
}

.group-title-row {
    margin-bottom: 8px;
}

.group-title-row h4 {
    font-size: 14px;
    font-weight: bold !important;
}

.table-scroll {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.inventory-table {
    font-size: 13px;
    border-collapse: collapse;
    margin-bottom: 0;
}

.inventory-table th,
.inventory-table td {
    padding: 12px 14px !important;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.inventory-table th {
    background: #f8fafc;
    color: #334155;
    font-size: 13px;
    font-weight: bold !important;
    border-bottom: 2px solid #cbd5e1;
}

.inventory-table th:first-child,
.inventory-table td:first-child {
    width: 150px;
    padding-left: 14px !important;
}

.item-name-cell {
    font-weight: bold !important;
    color: #0f172a;
}

.stock-quantity {
    min-width: 24px;
    color: #334155;
    font-size: 13px;
    font-weight: bold !important;
    letter-spacing: 0;
}

.stock-quantity.stock-zero,
.stock-quantity.stock-low,
.stock-quantity.stock-normal {
    color: #334155;
}

.survey-header-panel {
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: none;
}

.survey-header-panel h3 {
    font-size: 16px !important;
    font-weight: bold !important;
    letter-spacing: -0.2px !important;
}

.survey-header-panel p {
    margin-top: 5px;
    font-size: 12px;
    font-weight: normal;
    line-height: 1.5;
}

.survey-actions {
    gap: 8px;
}

.btn-primary,
.btn-secondary {
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold !important;
}

.survey-save-info {
    margin: 0 0 15px 2px;
    color: #64748b;
    font-size: 12px;
    font-weight: bold;
}

.survey-input {
    width: 64px;
    height: 30px;
    padding: 5px 6px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
}

.empty-group {
    padding: 20px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
}

/* === 이전 데이터 탭 / 상세 팝업 === */
.sidebar-sub-menu.expanded {
    max-height: 160px;
}

.history-header-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.history-header-panel h3 {
    margin: 0;
    color: #0f172a;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: -0.2px;
}

.history-header-panel p {
    margin: 5px 0 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.history-list {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
}

.history-board {
    display: flex;
    flex-direction: column;
}

.history-board-item {
    width: 100%;
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) 210px;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 0;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
    text-align: left;
    transition: background 0.15s ease;
}

.history-board-item:last-child {
    border-bottom: 0;
}

.history-board-item:hover {
    background: #f8fafc;
}

.history-board-no {
    color: #64748b;
    font-size: 13px;
    font-weight: bold;
}

.history-board-title {
    color: #0f172a;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 6px;
}

.history-board-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
}

.history-board-summary {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.history-board-summary span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 5px 8px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    font-weight: bold;
}

.history-empty-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 210px;
    padding: 30px;
    background: #f8fafc;
    color: #64748b;
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
}

.history-empty-box strong {
    color: #334155;
    font-size: 14px;
}

.history-empty-box.compact {
    min-height: 220px;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
}

.history-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(15, 23, 42, 0.45);
}

.history-modal-box {
    width: min(1320px, 96vw);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.25);
    overflow: hidden;
}

.history-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #e2e8f0;
}

.history-modal-header h3 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: -0.3px;
}

.history-modal-header p {
    margin: 6px 0 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.btn-modal-close {
    padding: 8px 16px;
    color: #ffffff;
    background: #334155;
    border: 0;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.history-flag-tabs {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    padding: 12px 20px 0;
    background: #f8fafc;
    border-bottom: 1px solid #cbd5e1;
}

.history-flag-tab {
    position: relative;
    min-width: 110px;
    padding: 10px 18px 11px;
    color: #64748b;
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
    border-bottom: 0;
    border-radius: 7px 7px 0 0;
    font-size: 13px;
    font-weight: bold;
}

.history-flag-tab.active {
    color: #0f172a;
    background: #ffffff;
    border-color: #cbd5e1;
    margin-bottom: -1px;
    padding-top: 11px;
    padding-bottom: 12px;
    z-index: 2;
}

.history-modal-content {
    display: none;
    min-height: 0;
    overflow: auto;
    padding: 18px 20px 22px;
}

.history-modal-content.active {
    display: block;
}

.payment-history-view {
    background: #ffffff;
}

.payment-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    table-layout: fixed;
    background: #ffffff;
    font-size: 13px;
}

.payment-table th,
.payment-table td {
    padding: 12px 14px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid #e2e8f0;
}

.payment-table th {
    background: #f8fafc;
    color: #334155;
    font-weight: bold;
    border-bottom: 2px solid #cbd5e1;
}

.payment-table td:last-child {
    text-align: left;
}

@media (max-width: 1200px) {
    .history-board-item {
        grid-template-columns: 52px minmax(0, 1fr);
    }
    .history-board-summary {
        grid-column: 2 / 3;
        justify-content: flex-start;
    }
}

/* === 근무복 지급 탭 === */
.sidebar-sub-menu.expanded {
    max-height: 190px;
}

.payment-header-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.payment-header-panel h3 {
    margin: 0;
    color: #0f172a;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: -0.2px;
}

.payment-header-panel p {
    margin: 5px 0 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.payment-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.payment-form-panel {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 16px;
}

.payment-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

.payment-field label,
.issue-field label {
    display: block;
    margin-bottom: 6px;
    color: #334155;
    font-size: 12px;
    font-weight: bold;
}

.payment-field input,
.issue-field select,
.issue-field input {
    width: 100%;
    height: 34px;
    padding: 7px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #ffffff;
    color: #0f172a;
    font-size: 13px;
    font-weight: bold;
}

.payment-field input:focus,
.issue-field select:focus,
.issue-field input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.issue-item-box {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.issue-item-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #f8fafc;
    border-bottom: 2px solid #cbd5e1;
}

.issue-item-head strong {
    color: #0f172a;
    font-size: 14px;
    font-weight: bold;
}

.issue-item-head span {
    color: #64748b;
    font-size: 12px;
}

.issue-item-list {
    display: flex;
    flex-direction: column;
}

.issue-item-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 100px 90px 120px 70px;
    align-items: end;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
}

.issue-item-row:last-child {
    border-bottom: 0;
}

.issue-item-row:hover {
    background: #f8fafc;
}

.issue-stock-info {
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

.issue-stock-info.danger {
    background: #fff1f2;
    color: #be123c;
}

.btn-remove-issue {
    height: 34px;
    padding: 0 10px;
    color: #be123c;
    background: #fff1f2;
    border: 1px solid #fecaca;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.btn-remove-issue:hover {
    background: #ffe4e6;
}

.payment-history-list {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
}

.payment-history-table {
    width: 100%;
    min-width: 1120px;
    border-collapse: collapse;
    table-layout: fixed;
    background: #ffffff;
    font-size: 13px;
}

.payment-history-table th,
.payment-history-table td {
    padding: 12px 14px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid #e2e8f0;
    word-break: keep-all;
}

.payment-history-table th {
    background: #f8fafc;
    color: #334155;
    font-weight: bold;
    border-bottom: 2px solid #cbd5e1;
}

.payment-history-table td:nth-child(3),
.payment-history-table td:nth-child(4),
.payment-history-table td:last-child {
    text-align: left;
}

.payment-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: 4px 8px;
    border-radius: 4px;
    background: #e2e8f0;
    color: #334155;
    font-size: 12px;
    font-weight: bold;
}

@media (max-width: 1200px) {
    .payment-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .issue-item-row {
        grid-template-columns: 1fr 1fr 90px 80px;
    }
    .issue-stock-info,
    .btn-remove-issue {
        grid-column: auto;
    }
}

/* === 구성원 사이즈 관리 === */
.member-header-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-sizing: border-box;
}

.member-header-panel h3 {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 16px;
    font-weight: bold;
}

.member-header-panel p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
    font-weight: bold;
}

.member-form-panel,
.member-list-panel {
    margin-bottom: 18px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-sizing: border-box;
}

.member-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.member-field label {
    display: block;
    margin-bottom: 6px;
    color: #334155;
    font-size: 13px;
    font-weight: bold;
}

.member-field input,
.member-field select,
.member-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #0f172a;
    font-size: 13px;
    font-family: inherit;
}

.member-field textarea {
    resize: vertical;
    line-height: 1.5;
}

.member-field input:focus,
.member-field select:focus,
.member-field textarea:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.10);
}

.member-memo-field {
    margin-top: 2px;
}

.member-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}

.member-list-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.member-list-head h4 {
    margin: 0;
    color: #0f172a;
    font-size: 16px;
    font-weight: bold;
}

.member-list-head span {
    color: #64748b;
    font-size: 12px;
    font-weight: bold;
}

.member-size-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background: #ffffff;
    font-size: 13px;
}

.member-size-table th,
.member-size-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
    text-align: left;
    word-break: break-all;
}

.member-size-table th {
    background: #f8fafc;
    color: #334155;
    font-weight: bold;
    border-bottom: 2px solid #cbd5e1;
}

.member-size-table td:nth-child(1),
.member-size-table td:nth-child(3),
.member-size-table td:nth-child(4),
.member-size-table td:last-child {
    text-align: center;
}

.member-size-badge {
    display: inline-block;
    min-width: 44px;
    padding: 4px 8px;
    border-radius: 4px;
    background: #e2e8f0;
    color: #334155;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
}

.btn-member-delete {
    padding: 6px 14px;
    background: #fff1f2;
    color: #e11d48;
    border: 1px solid #fda4af;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
}

.btn-member-delete:hover {
    background: #ffe4e6;
}

@media (max-width: 1200px) {
    .member-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* === 관리자 설정 탭 === */
.admin-sidebar .tab-menu {
    flex: 1;
    min-height: 0;
}

.sidebar-bottom-section {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.sidebar-settings-button {
    justify-content: center !important;
    border: 1px solid rgba(203, 213, 225, 0.32) !important;
    background: rgba(15, 23, 42, 0.20) !important;
    color: #e2e8f0 !important;
}

.sidebar-settings-button:hover {
    background: rgba(148, 163, 184, 0.14) !important;
    color: #ffffff !important;
}

.sidebar-settings-button.active {
    background: #334155 !important;
    border-color: #64748b !important;
    box-shadow: none !important;
}

.settings-header-panel,
.settings-panel-box {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 20px;
    box-sizing: border-box;
}

.settings-header-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.settings-header-panel h3,
.settings-panel-head h4 {
    margin: 0;
    color: #0f172a;
    font-size: 16px;
    font-weight: bold;
}

.settings-header-panel p,
.settings-panel-head span {
    display: block;
    margin: 6px 0 0;
    color: #64748b;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.5;
}

.admin-settings-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.8fr);
    gap: 18px;
    align-items: start;
}

.settings-panel-head {
    padding-bottom: 12px;
    margin-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.settings-form-grid {
    display: grid;
    gap: 12px;
    align-items: end;
    margin-bottom: 16px;
}

.uniform-item-form-grid {
    grid-template-columns: 180px minmax(220px, 1fr) 140px 120px;
}

.team-form-grid {
    grid-template-columns: minmax(220px, 1fr) 120px;
}

.settings-field label {
    display: block;
    margin-bottom: 6px;
    color: #334155;
    font-size: 13px;
    font-weight: bold;
}

.settings-field input,
.settings-field select {
    width: 100%;
    height: 38px;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #0f172a;
    font-size: 13px;
}

.settings-field input:focus,
.settings-field select:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.10);
}

.settings-field.action-field .btn-primary {
    width: 100%;
    height: 38px;
}

.settings-list-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.settings-season-block {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
}

.settings-season-title {
    padding: 10px 12px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    font-size: 13px;
    font-weight: bold;
}

.settings-list-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
}

.settings-list-row:last-child {
    border-bottom: 0;
}

.settings-list-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.settings-list-main strong {
    color: #0f172a;
    font-size: 13px;
    font-weight: bold;
}

.settings-list-main span {
    color: #64748b;
    font-size: 12px;
    font-weight: bold;
}

.settings-empty-box,
.settings-small-empty {
    padding: 18px 14px;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
    color: #64748b;
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
}

.settings-empty-box strong {
    display: block;
    color: #334155;
    font-size: 14px;
    margin-bottom: 4px;
}

.settings-empty-box span {
    display: block;
}

.settings-small-empty {
    margin: 10px;
    padding: 12px;
    font-size: 12px;
}

.member-field select:disabled {
    background: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
}

@media (max-width: 1200px) {
    .admin-settings-layout {
        grid-template-columns: 1fr;
    }

    .uniform-item-form-grid,
    .team-form-grid {
        grid-template-columns: 1fr;
    }
}

/* === 관리자 설정 품목/팀명 카드형 정리 + 수정 버튼 === */
#uniform-item-settings-list.settings-list-box {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    align-items: start;
}

#uniform-item-settings-list .settings-season-block {
    min-width: 0;
}

#uniform-item-settings-list .settings-list-row.compact {
    min-height: 64px;
    padding: 11px 12px;
}

.settings-grid-empty {
    grid-column: 1 / -1;
}

.row-action-buttons {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex: 0 0 auto;
}

.btn-member-edit {
    padding: 6px 14px;
    background: #eef2ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
}

.btn-member-edit:hover {
    background: #dbeafe;
}

#team-settings-list .settings-list-main {
    gap: 0;
}

#team-settings-list .settings-list-row {
    min-height: 52px;
}

.member-size-table td:last-child {
    text-align: center;
}

@media (max-width: 1400px) {
    #uniform-item-settings-list.settings-list-box {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    #uniform-item-settings-list.settings-list-box {
        grid-template-columns: 1fr;
    }
    .row-action-buttons {
        flex-wrap: wrap;
    }
}


/* === 관리자 설정 목록 압축 + 텍스트형 수정/삭제 액션 === */
.settings-list-box {
    gap: 6px;
}

.settings-season-title {
    padding: 8px 10px;
    font-size: 13px;
}

.settings-list-row,
#uniform-item-settings-list .settings-list-row.compact,
#team-settings-list .settings-list-row {
    min-height: 0;
    padding: 8px 10px;
    gap: 8px;
}

#uniform-item-settings-list .settings-list-row.compact {
    min-height: 44px;
}

#team-settings-list .settings-list-row {
    min-height: 42px;
}

.settings-list-main {
    gap: 2px;
}

.settings-list-main strong {
    font-size: 13px;
    line-height: 1.25;
}

.settings-list-main span {
    font-size: 11px;
    line-height: 1.25;
}

.text-action-group {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 12px;
    font-weight: bold;
}

.text-action-link {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0 2px;
    margin: 0;
    font: inherit;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1.2;
}

.text-action-link.edit {
    color: #2563eb;
}

.text-action-link.delete {
    color: #e11d48;
}

.text-action-link:hover {
    text-decoration: underline;
}

.text-action-separator {
    color: #cbd5e1;
    font-size: 11px;
    font-weight: bold;
    user-select: none;
}

.member-size-table th,
.member-size-table td {
    padding: 8px 10px;
    line-height: 1.3;
}

.member-size-badge {
    min-width: 38px;
    padding: 2px 7px;
    font-size: 12px;
}

.member-list-head {
    padding-bottom: 8px;
    margin-bottom: 8px;
}

/* 기존 버튼형 클래스가 남아 있어도 텍스트처럼 보이도록 안전 보정 */
.row-action-buttons {
    gap: 3px;
}

.btn-member-edit,
.btn-member-delete {
    border: 0 !important;
    background: transparent !important;
    padding: 0 2px !important;
    border-radius: 0 !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    box-shadow: none !important;
}

.btn-member-edit:hover,
.btn-member-delete:hover {
    text-decoration: underline;
    background: transparent !important;
}


/* === 삭제 보호 확인 팝업 === */
.delete-confirm-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.48);
}

.delete-confirm-modal-box {
    width: min(520px, 94vw);
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.26);
    overflow: hidden;
}

.delete-confirm-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #e2e8f0;
}

.delete-confirm-header h3 {
    margin: 0;
    color: #991b1b;
    font-size: 17px;
    font-weight: bold;
}

.delete-confirm-header p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.delete-confirm-body {
    padding: 18px 20px;
}

.delete-confirm-target {
    margin-bottom: 10px;
    padding: 11px 12px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 6px;
    color: #9f1239;
    font-size: 14px;
    font-weight: bold;
}

.delete-confirm-message {
    color: #334155;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-line;
}

.delete-confirm-warning {
    margin-top: 14px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    color: #475569;
    font-size: 12px;
    line-height: 1.5;
}

.delete-confirm-input {
    width: 100%;
    box-sizing: border-box;
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
}

.delete-confirm-input:focus {
    border-color: #ef4444;
    outline: none;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.12);
}

.delete-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 20px 18px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.btn-danger {
    padding: 9px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    color: #ffffff;
    background: #dc2626;
    border: 1px solid #dc2626;
    cursor: pointer;
}

.btn-danger:hover:not(:disabled) {
    background: #b91c1c;
}

.btn-danger:disabled {
    background: #fca5a5;
    border-color: #fca5a5;
    cursor: not-allowed;
}

/* === 수시지급 대상자 자동검색 + 지급 버튼 보정 === */
.payment-member-field {
    position: relative;
}

.member-suggestion-list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 100;
    max-height: 260px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #94a3b8;
    border-radius: 6px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.member-suggestion-item {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border: 0;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
    color: #0f172a;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.member-suggestion-item:last-child {
    border-bottom: 0;
}

.member-suggestion-item:hover {
    background: #f8fafc;
}

.member-suggestion-item strong {
    font-size: 13px;
    font-weight: bold;
    color: #0f172a;
    white-space: nowrap;
}

.member-suggestion-item span {
    min-width: 0;
    color: #64748b;
    font-size: 12px;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-suggestion-empty {
    padding: 12px;
    color: #64748b;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
}

.btn-issue-save {
    height: 34px;
    padding: 0 10px;
    color: #ffffff;
    background: #2563eb;
    border: 1px solid #2563eb;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}

.btn-issue-save:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}


/* === 수시지급 UX 정리: 저장 버튼 단순화, 행 삭제 X표시, 하단 + 추가칸 === */
#page-occasional .payment-actions .btn-primary {
    min-width: 96px;
}

#page-occasional .issue-item-row,
#page-regular .issue-item-row {
    grid-template-columns: 1.2fr 1fr 100px 90px 120px 28px;
    gap: 8px;
    padding: 10px 12px;
}

.btn-remove-issue.issue-remove-x,
.issue-remove-x {
    height: 30px;
    width: 24px;
    min-width: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #be123c;
    border-radius: 0;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-issue.issue-remove-x:hover,
.issue-remove-x:hover {
    background: transparent;
    color: #e11d48;
    text-decoration: none;
}

.issue-add-placeholder {
    width: calc(100% - 24px);
    min-height: 42px;
    margin: 10px 12px 12px;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.issue-add-placeholder span {
    font-size: 24px;
    line-height: 1;
    font-weight: 800;
}

.issue-add-placeholder:hover {
    background: #ffffff;
    border-color: #94a3b8;
    color: #334155;
}

.btn-issue-save {
    display: none !important;
}


/* === 수시지급 화면 압축 레이아웃: 좌측 지급정보 / 우측 지급품목 === */
#page-occasional .payment-form-panel {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 14px;
}

#page-occasional .payment-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0;
    margin: 0;
    border: 0;
}

#page-occasional .payment-field label {
    margin-bottom: 5px;
}

#page-occasional .issue-item-box {
    min-width: 0;
}

#page-occasional .issue-item-head {
    padding: 10px 12px;
}

#page-occasional .issue-item-row {
    grid-template-columns: 1.25fr 1.15fr 90px 80px 110px 24px;
    gap: 8px;
    padding: 8px 10px;
}

#page-occasional .issue-field label {
    margin-bottom: 4px;
    font-size: 11px;
}

#page-occasional .issue-field select,
#page-occasional .issue-field input,
#page-occasional .issue-stock-info {
    height: 32px;
    font-size: 12px;
}

#page-occasional .issue-add-placeholder {
    min-height: 36px;
    margin: 8px 10px 10px;
}

.member-suggestion-list.member-notice-balloon {
    top: calc(100% + 8px);
    border-color: #fda4af;
    background: #fff1f2;
    color: #9f1239;
    max-height: none;
    overflow: visible;
    padding: 10px 12px;
    box-shadow: 0 8px 18px rgba(190, 18, 60, 0.14);
}

.member-suggestion-list.member-notice-balloon::before {
    content: '';
    position: absolute;
    left: 18px;
    top: -7px;
    width: 12px;
    height: 12px;
    background: #fff1f2;
    border-left: 1px solid #fda4af;
    border-top: 1px solid #fda4af;
    transform: rotate(45deg);
}

.member-notice-title {
    font-size: 12px;
    font-weight: bold;
    color: #be123c;
    line-height: 1.4;
}

.member-notice-sub {
    margin-top: 3px;
    font-size: 11px;
    font-weight: bold;
    color: #9f1239;
    line-height: 1.4;
}

@media (max-width: 1100px) {
    #page-occasional .payment-form-panel {
        grid-template-columns: 1fr;
    }
}


/* === 구성원 사이즈 등록 화면 좌우 배치 + 등록일 보정 === */
.member-compact-panel {
    padding: 14px 16px;
}

.member-form-layout {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) minmax(320px, 0.9fr);
    gap: 16px;
    align-items: stretch;
}

.member-form-left,
.member-form-right {
    min-width: 0;
    box-sizing: border-box;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #ffffff;
}

.member-form-left {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.member-form-left .member-side-title,
.member-form-left .member-memo-field {
    grid-column: 1 / -1;
}

.member-form-right {
    display: flex;
    flex-direction: column;
}

.member-side-title {
    padding-bottom: 9px;
    margin-bottom: 2px;
    border-bottom: 2px solid #e2e8f0;
    color: #0f172a;
    font-size: 14px;
    font-weight: bold;
}

.member-size-select-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.member-form-guide {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
    font-weight: bold;
}

.member-form-right .member-form-actions {
    margin-top: auto;
    padding-top: 14px;
}

.member-compact-panel .member-field label {
    margin-bottom: 5px;
}

.member-compact-panel .member-field input,
.member-compact-panel .member-field select,
.member-compact-panel .member-field textarea {
    padding: 9px 11px;
}

.member-compact-panel .member-field textarea {
    min-height: 105px;
}

@media (max-width: 1200px) {
    .member-form-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .member-form-left,
    .member-size-select-grid {
        grid-template-columns: 1fr;
    }
}


/* === 구성원 사이즈: 목록 왼쪽 / 생성기 오른쪽 배치 === */
.member-page-split-layout {
    display: grid;
    grid-template-columns: minmax(760px, 1.45fr) minmax(360px, 0.75fr);
    gap: 16px;
    align-items: start;
}

.member-list-left-panel,
.member-form-right-panel {
    margin: 0 !important;
}

.member-form-right-panel {
    padding: 16px;
    position: sticky;
    top: 22px;
}

.member-form-right-panel .member-side-title {
    margin-bottom: 14px;
}

.member-form-right-panel .member-field {
    margin-bottom: 12px;
}

.member-size-select-grid-vertical {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0 0 12px 0;
}

.member-form-right-panel .member-memo-field textarea {
    min-height: 116px;
}

.member-form-right-panel .member-form-guide {
    margin-top: 4px;
}

.member-form-right-panel .member-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

.member-form-right-panel .member-form-actions button {
    min-width: 100px;
}

.member-list-left-panel .member-size-table th,
.member-list-left-panel .member-size-table td {
    padding-top: 8px;
    padding-bottom: 8px;
}

.member-list-left-panel .member-size-table col:nth-child(1) { width: 56px !important; }
.member-list-left-panel .member-size-table col:nth-child(2) { width: 130px !important; }
.member-list-left-panel .member-size-table col:nth-child(3) { width: 120px !important; }
.member-list-left-panel .member-size-table col:nth-child(4) { width: 72px !important; }
.member-list-left-panel .member-size-table col:nth-child(5) { width: 72px !important; }
.member-list-left-panel .member-size-table col:nth-child(7) { width: 105px !important; }
.member-list-left-panel .member-size-table col:nth-child(8) { width: 105px !important; }

@media (max-width: 1350px) {
    .member-page-split-layout {
        grid-template-columns: 1fr;
    }
    .member-form-right-panel {
        position: static;
    }
}

@media (max-width: 760px) {
    .member-size-select-grid-vertical {
        grid-template-columns: 1fr;
    }
    .member-form-right-panel .member-form-actions {
        flex-direction: column;
    }
    .member-form-right-panel .member-form-actions button {
        width: 100%;
    }
}

/* === 구성원 명단 엑셀 업로드 팝업 === */
.member-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.member-upload-modal-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.45);
    z-index: 9999;
}

.member-upload-modal-box {
    width: 720px;
    max-width: calc(100vw - 36px);
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.22);
    padding: 22px;
    box-sizing: border-box;
}

.member-upload-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

.member-upload-modal-header h3 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: bold;
}

.member-upload-modal-header p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
    font-weight: bold;
}

.member-upload-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.member-upload-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.member-upload-dropzone {
    min-height: 230px;
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #475569;
    text-align: center;
    box-sizing: border-box;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.member-upload-dropzone.drag-over {
    border-color: #2563eb;
    background: #eff6ff;
}

.member-upload-plus {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #334155;
    font-size: 26px;
    font-weight: bold;
    line-height: 1;
}

.member-upload-dropzone strong {
    color: #0f172a;
    font-size: 15px;
}

.member-upload-dropzone span {
    color: #64748b;
    font-size: 12px;
    font-weight: bold;
}

.member-upload-file-info {
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 9px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #ffffff;
    color: #475569;
    font-size: 12px;
    font-weight: bold;
    box-sizing: border-box;
}

.member-upload-file-info.has-file {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.member-upload-guide {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    padding: 11px 12px;
    color: #475569;
    font-size: 12px;
    line-height: 1.6;
}

.member-upload-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid #e2e8f0;
}

@media (max-width: 760px) {
    .member-upload-modal-header,
    .member-upload-header-actions,
    .member-header-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .member-upload-header-actions .btn-secondary,
    .member-upload-header-actions .btn-modal-close,
    .member-header-actions .btn-secondary,
    .member-header-actions .btn-primary {
        width: 100%;
    }
}

/* === 구성원 사이즈 필터 === */
.member-filter-bar {
    display: grid;
    grid-template-columns: minmax(190px, 1.4fr) minmax(150px, 1fr) 82px 82px 72px;
    gap: 8px;
    align-items: end;
    padding: 10px 0 12px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 8px;
}

.member-filter-field {
    min-width: 0;
}

.member-filter-field label {
    display: block;
    margin-bottom: 5px;
    font-size: 11px;
    font-weight: 800;
    color: #334155;
}

.member-filter-field input,
.member-filter-field select {
    width: 100%;
    height: 32px;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    background: #ffffff;
    padding: 6px 9px;
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    font-family: inherit;
}

.member-filter-field input:focus,
.member-filter-field select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.10);
}

.btn-filter-reset-inline {
    height: 32px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
}

.btn-filter-reset-inline:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

@media (max-width: 900px) {
    .member-filter-bar {
        grid-template-columns: 1fr 1fr;
    }
    .btn-filter-reset-inline {
        width: 100%;
    }
}


/* 구성원 사이즈 목록 정렬 버튼 */
.table-sort-button {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: bold;
    cursor: pointer;
    line-height: 1.2;
}
.table-sort-button:hover,
.table-sort-button.active {
    color: #2563eb;
}
.table-sort-button span {
    display: inline-block;
    min-width: 12px;
    font-size: 10px;
    color: #64748b;
}
.table-sort-button.active span {
    color: #2563eb;
}
.member-size-table th:nth-child(2) .table-sort-button,
.member-size-table th:nth-child(3) .table-sort-button {
    justify-content: flex-start;
}


/* === 구성원 사이즈 비율표 === */
.member-right-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 22px;
}

.member-right-stack .member-form-right-panel {
    position: static;
    top: auto;
}

.member-size-stat-panel {
    padding: 16px;
}

.member-stat-subtitle {
    margin: -6px 0 12px 0;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.member-size-ratio-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.member-ratio-section {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
}

.member-ratio-title {
    padding: 9px 12px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
}

.member-ratio-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    margin: 0;
    font-size: 12px;
}

.member-ratio-table th,
.member-ratio-table td {
    padding: 7px 8px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.member-ratio-table th {
    background: #ffffff;
    color: #334155;
    font-weight: 900;
    border-bottom: 1px solid #cbd5e1;
}

.member-ratio-table tr:last-child td {
    border-bottom: 0;
}

.member-ratio-table th:nth-child(1),
.member-ratio-table td:nth-child(1) {
    width: 62px;
    text-align: center;
}

.member-ratio-table th:nth-child(2),
.member-ratio-table td:nth-child(2) {
    width: 58px;
    text-align: center;
    font-weight: 800;
}

.member-ratio-percent {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    color: #334155;
    font-weight: 800;
}

.member-ratio-bar {
    height: 7px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.member-ratio-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #64748b;
}

.member-ratio-empty {
    padding: 20px 12px;
    text-align: center;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 1350px) {
    .member-right-stack {
        position: static;
    }
}


/* === 2026-07-05 현재재고 계절 필터 / 정기지급 다중 대상 / 구성원 지급이력 === */
.inventory-control-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 15px;
    padding: 15px 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.inventory-control-panel h3 {
    margin: 0;
    color: #0f172a;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: -0.2px;
}

.inventory-control-panel p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
    font-weight: bold;
}

.inventory-filter-field {
    min-width: 190px;
    flex: 0 0 auto;
}

.inventory-filter-field label {
    display: block;
    margin-bottom: 6px;
    color: #334155;
    font-size: 12px;
    font-weight: bold;
}

.inventory-filter-field select {
    width: 100%;
    height: 36px;
    padding: 7px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #ffffff;
    color: #0f172a;
    font-size: 13px;
    font-weight: bold;
}

.regular-target-panel {
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #ffffff;
    overflow: hidden;
}

.regular-target-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #f8fafc;
    border-bottom: 2px solid #cbd5e1;
}

.regular-target-head strong {
    color: #0f172a;
    font-size: 14px;
    font-weight: bold;
}

.regular-target-head span {
    color: #2563eb;
    font-size: 12px;
    font-weight: bold;
}

.regular-target-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    flex-wrap: wrap;
}

.regular-target-controls select {
    height: 31px;
    min-width: 130px;
    padding: 5px 9px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #ffffff;
    color: #0f172a;
    font-size: 12px;
    font-weight: bold;
}

.btn-regular-target-action {
    height: 31px;
    padding: 0 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

.btn-regular-target-action:hover {
    background: #eef2ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}


.regular-member-picker {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    max-height: 250px;
    overflow: auto;
    padding: 12px;
    background: #ffffff;
}

.regular-member-choice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
}

.regular-member-choice:hover {
    background: #f8fafc;
}

.regular-member-choice.selected {
    border-color: #2563eb;
    background: #eff6ff;
}

.regular-member-choice input {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
}

.regular-member-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.regular-member-main strong {
    color: #0f172a;
    font-size: 13px;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.regular-member-main span {
    color: #64748b;
    font-size: 11px;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.regular-target-guide {
    margin: 0;
    padding: 10px 12px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.5;
}

.regular-member-empty {
    grid-column: 1 / -1;
    padding: 18px 12px;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
    color: #64748b;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
}

.member-size-clickable-row {
    cursor: pointer;
}

.member-size-clickable-row:hover {
    background: #f8fafc;
}

.member-payment-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(15, 23, 42, 0.48);
}

.member-payment-modal-box {
    width: min(1180px, 94vw);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.25);
    overflow: hidden;
}

.member-payment-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #e2e8f0;
}

.member-payment-modal-header h3 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: -0.3px;
}

.member-payment-modal-header p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
    font-weight: bold;
}

.member-payment-profile {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 14px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.member-payment-profile-card {
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #ffffff;
}

.member-payment-profile-card span {
    display: block;
    margin-bottom: 5px;
    color: #64748b;
    font-size: 11px;
    font-weight: bold;
}

.member-payment-profile-card strong {
    color: #0f172a;
    font-size: 14px;
    font-weight: bold;
}

.member-payment-modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
    overflow: auto;
    padding: 18px 20px 22px;
}

.member-payment-section-title {
    margin-bottom: 8px;
    color: #0f172a;
    font-size: 14px;
    font-weight: bold;
}

.member-payment-table {
    width: 100%;
    min-width: 920px;
    border-collapse: collapse;
    table-layout: fixed;
    background: #ffffff;
    font-size: 13px;
}

.member-payment-table th,
.member-payment-table td {
    padding: 10px 12px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid #e2e8f0;
    word-break: keep-all;
}

.member-payment-table th {
    background: #f8fafc;
    color: #334155;
    font-weight: bold;
    border-bottom: 2px solid #cbd5e1;
}

.member-payment-table td:nth-child(3),
.member-payment-table td:nth-child(4),
.member-payment-table td:last-child {
    text-align: left;
}

.member-last-empty {
    padding: 20px 12px;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
    color: #64748b;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
}

@media (max-width: 1350px) {
    .regular-member-picker {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1000px) {
    .inventory-control-panel,
    .member-payment-modal-header {
        align-items: stretch;
        flex-direction: column;
    }
    .regular-member-picker,
    .member-payment-profile {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* === 2026-07-05 정기지급 탭 최적화: 좌측 대상자 / 우측 품목·상세 / 엑셀 업로드 === */
.regular-payment-layout {
    display: grid;
    grid-template-columns: minmax(560px, 0.95fr) minmax(760px, 1.25fr);
    gap: 16px;
    align-items: start;
}

.regular-left-stack,
.regular-right-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.regular-info-panel,
.regular-season-panel,
.regular-detail-panel {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
}

.regular-info-panel {
    padding: 15px;
}

.regular-panel-title,
.regular-panel-title-row .regular-panel-title {
    color: #0f172a;
    font-size: 14px;
    font-weight: bold;
}

.regular-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.regular-wide-field {
    grid-column: 1 / -1;
}

.regular-panel-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px;
    border-bottom: 2px solid #cbd5e1;
    background: #f8fafc;
}

.regular-panel-title-row.compact {
    border-bottom-width: 1px;
}

.regular-panel-title-row p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.45;
}

.regular-season-select-field {
    min-width: 160px;
}

.regular-season-select-field label,
.regular-target-search-wrap label,
.regular-target-filter-wrap label {
    display: block;
    margin-bottom: 5px;
    color: #334155;
    font-size: 11px;
    font-weight: bold;
}

.regular-season-select-field select,
.regular-target-search-wrap input,
.regular-target-filter-wrap select {
    width: 100%;
    height: 34px;
    padding: 7px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #ffffff;
    color: #0f172a;
    font-size: 13px;
    font-weight: bold;
    font-family: inherit;
}

.regular-target-toolbar {
    display: grid;
    grid-template-columns: minmax(180px, 1.3fr) minmax(130px, 0.8fr) auto;
    gap: 8px;
    align-items: end;
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
}

.regular-target-button-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.regular-member-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 420px;
}

.regular-item-list {
    padding: 12px 14px 14px;
}

.regular-item-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-bottom: 10px;
}

.regular-item-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.regular-item-choice {
    min-height: 54px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
}

.regular-item-choice:hover {
    background: #f8fafc;
}

.regular-item-choice.selected {
    border-color: #2563eb;
    background: #eff6ff;
}

.regular-item-choice input {
    width: 17px;
    height: 17px;
    accent-color: #2563eb;
}

.regular-item-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.regular-item-main strong {
    color: #0f172a;
    font-size: 13px;
    font-weight: bold;
}

.regular-item-main em {
    color: #64748b;
    font-size: 11px;
    font-weight: bold;
    font-style: normal;
}

.regular-item-empty,
.regular-detail-empty {
    padding: 22px 14px;
    text-align: center;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.5;
}

.regular-detail-list {
    padding: 12px 14px 14px;
}

.regular-detail-summary {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

.regular-detail-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 12px;
    background: #ffffff;
}

.regular-detail-table th,
.regular-detail-table td {
    padding: 8px 9px;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
    vertical-align: middle;
}

.regular-detail-table th {
    background: #f8fafc;
    border-bottom: 2px solid #cbd5e1;
    color: #334155;
    font-weight: bold;
}

.regular-detail-table th:nth-child(1),
.regular-detail-table td:nth-child(1) { width: 48px; }
.regular-detail-table th:nth-child(2),
.regular-detail-table td:nth-child(2) { width: 100px; text-align: left; font-weight: bold; }
.regular-detail-table th:nth-child(3),
.regular-detail-table td:nth-child(3) { width: 110px; text-align: left; }
.regular-detail-table th:nth-child(4),
.regular-detail-table td:nth-child(4) { width: 120px; text-align: left; }
.regular-detail-table th:nth-child(5),
.regular-detail-table td:nth-child(5) { width: 90px; }
.regular-detail-table th:nth-child(6),
.regular-detail-table td:nth-child(6) { width: 80px; }
.regular-detail-table th:nth-child(7),
.regular-detail-table td:nth-child(7) { width: 80px; }

.regular-detail-table tr.disabled {
    opacity: 0.52;
    background: #f8fafc;
}

.regular-detail-table select,
.regular-detail-table input[type="number"] {
    width: 100%;
    height: 30px;
    padding: 5px 7px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #ffffff;
    color: #0f172a;
    font-size: 12px;
    font-weight: bold;
    font-family: inherit;
    text-align: center;
}

.regular-detail-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
}

.regular-stock-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 4px 7px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    font-weight: bold;
}

.regular-stock-chip.danger {
    background: #fff1f2;
    color: #be123c;
}

@media (max-width: 1400px) {
    .regular-payment-layout {
        grid-template-columns: 1fr;
    }
    .regular-member-picker,
    .regular-item-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .regular-info-grid,
    .regular-target-toolbar,
    .regular-member-picker,
    .regular-item-grid {
        grid-template-columns: 1fr;
    }
    .regular-target-button-wrap,
    .payment-actions {
        flex-wrap: wrap;
    }
}

/* === 2026-07-05 정기지급 컴팩트 레이아웃: 좌측 대상자+품목 / 우측 상세, 내부 스크롤 중심 === */
#page-regular .payment-header-panel {
    margin-bottom: 10px;
    padding: 12px 14px;
}

#page-regular .payment-header-panel h3 {
    font-size: 15px;
}

#page-regular .payment-header-panel p {
    margin-top: 4px;
    font-size: 11.5px;
    line-height: 1.35;
}

#page-regular .payment-actions {
    gap: 6px;
}

#page-regular .payment-actions .btn-primary,
#page-regular .payment-actions .btn-secondary {
    height: 34px;
    padding: 0 12px;
    font-size: 11.5px;
}

#page-regular .regular-payment-layout {
    grid-template-columns: minmax(510px, 540px) minmax(720px, 1fr);
    gap: 12px;
    align-items: stretch;
    height: calc(100vh - 260px);
    min-height: 500px;
    max-height: 760px;
}

#page-regular .regular-left-stack,
#page-regular .regular-right-stack {
    height: 100%;
    min-height: 0;
    gap: 10px;
}

#page-regular .regular-info-panel {
    flex: 0 0 auto;
    padding: 11px 12px;
}

#page-regular .regular-info-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}

#page-regular .regular-info-grid .payment-field label {
    margin-bottom: 4px;
    font-size: 11px;
}

#page-regular .regular-info-grid .payment-field input {
    height: 31px;
    padding: 5px 8px;
    font-size: 12px;
}

#page-regular .regular-target-panel {
    flex: 1 1 0;
    min-height: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

#page-regular .regular-target-head {
    flex: 0 0 auto;
    padding: 8px 11px;
    border-bottom-width: 1px;
}

#page-regular .regular-target-head strong,
#page-regular .regular-panel-title,
#page-regular .regular-panel-title-row .regular-panel-title {
    font-size: 13px;
}

#page-regular .regular-target-head span {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11.5px;
}

#page-regular .regular-target-toolbar {
    flex: 0 0 auto;
    grid-template-columns: minmax(150px, 1fr) 120px auto;
    gap: 6px;
    padding: 8px 10px;
}

#page-regular .regular-season-select-field label,
#page-regular .regular-target-search-wrap label,
#page-regular .regular-target-filter-wrap label {
    margin-bottom: 3px;
    font-size: 10.5px;
}

#page-regular .regular-season-select-field select,
#page-regular .regular-target-search-wrap input,
#page-regular .regular-target-filter-wrap select {
    height: 30px;
    padding: 5px 8px;
    font-size: 12px;
}

#page-regular .regular-target-button-wrap {
    gap: 5px;
}

#page-regular .btn-regular-target-action {
    height: 30px;
    padding: 0 8px;
    font-size: 11.5px;
}

#page-regular .regular-member-picker {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 6px;
    padding: 8px 10px;
    overflow: auto;
}

#page-regular .regular-member-choice {
    min-height: 36px;
    gap: 6px;
    padding: 5px 7px;
    border-radius: 5px;
}

#page-regular .regular-member-choice input {
    width: 14px;
    height: 14px;
}

#page-regular .regular-member-main {
    gap: 1px;
}

#page-regular .regular-member-main strong {
    font-size: 12px;
    line-height: 1.2;
}

#page-regular .regular-member-main span {
    font-size: 10.5px;
    line-height: 1.25;
}

#page-regular .regular-target-guide {
    flex: 0 0 auto;
    padding: 7px 10px;
    font-size: 11px;
    line-height: 1.35;
}

#page-regular .regular-season-panel {
    flex: 0 0 205px;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

#page-regular .regular-panel-title-row {
    flex: 0 0 auto;
    padding: 8px 10px;
    gap: 8px;
    border-bottom-width: 1px;
}

#page-regular .regular-panel-title-row p {
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.35;
}

#page-regular .regular-season-select-field {
    min-width: 120px;
}

#page-regular .regular-item-list {
    flex: 1 1 auto;
    min-height: 0;
    padding: 8px 10px;
    overflow: auto;
}

#page-regular .regular-item-actions {
    margin-bottom: 7px;
    gap: 5px;
}

#page-regular .regular-item-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

#page-regular .regular-item-choice {
    min-height: 36px;
    gap: 6px;
    padding: 6px 7px;
    border-radius: 5px;
}

#page-regular .regular-item-choice input {
    width: 14px;
    height: 14px;
}

#page-regular .regular-item-main {
    gap: 1px;
}

#page-regular .regular-item-main strong {
    font-size: 12px;
    line-height: 1.2;
}

#page-regular .regular-item-main em {
    font-size: 10.5px;
    line-height: 1.25;
}

#page-regular .regular-detail-panel {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

#page-regular .regular-detail-panel .regular-panel-title-row {
    align-items: center;
}

#page-regular .regular-detail-summary {
    min-width: 76px;
    height: 28px;
    padding: 0 9px;
    font-size: 11.5px;
}

#page-regular .regular-detail-list {
    flex: 1 1 auto;
    min-height: 0;
    padding: 9px 10px 10px;
    overflow: hidden;
}

#page-regular .regular-detail-list > .table-scroll {
    height: 100%;
    overflow: auto;
}

#page-regular .regular-detail-table {
    min-width: 700px;
    font-size: 11.5px;
}

#page-regular .regular-detail-table th,
#page-regular .regular-detail-table td {
    padding: 6px 7px;
}

#page-regular .regular-detail-table th {
    position: sticky;
    top: 0;
    z-index: 2;
}

#page-regular .regular-detail-table select,
#page-regular .regular-detail-table input[type="number"] {
    height: 28px;
    padding: 4px 6px;
    font-size: 11.5px;
}

#page-regular .regular-detail-table input[type="checkbox"] {
    width: 14px;
    height: 14px;
}

#page-regular .regular-stock-chip {
    min-width: 36px;
    padding: 3px 6px;
    font-size: 11.5px;
}

#page-regular .regular-member-empty,
#page-regular .regular-item-empty,
#page-regular .regular-detail-empty {
    padding: 14px 10px;
    font-size: 11.5px;
}

@media (max-width: 1400px) {
    #page-regular .regular-payment-layout {
        grid-template-columns: minmax(500px, 540px) minmax(700px, 1fr);
    }
    #page-regular .regular-member-picker,
    #page-regular .regular-item-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* === 2026-07-05 정기지급 품목 선택 초소형 카드 + 설명문 제거 === */
#page-regular .regular-target-guide {
    display: none !important;
}

#page-regular .regular-season-panel {
    flex: 0 0 142px;
}

#page-regular .regular-panel-title-row p {
    display: none;
}

#page-regular .regular-item-list {
    padding: 6px 8px 8px;
}

#page-regular .regular-item-actions {
    margin-bottom: 6px;
}

#page-regular .regular-item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(78px, 88px));
    justify-content: start;
    align-items: start;
    gap: 5px;
}

#page-regular .regular-item-choice {
    min-height: 28px;
    height: 28px;
    width: 88px;
    display: inline-grid;
    grid-template-columns: 14px minmax(0, 1fr);
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
    border-radius: 4px;
}

#page-regular .regular-item-choice input {
    width: 13px;
    height: 13px;
}

#page-regular .regular-item-main {
    display: block;
    min-width: 0;
}

#page-regular .regular-item-main strong {
    display: block;
    max-width: 58px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1.1;
}

#page-regular .regular-item-main em {
    display: none !important;
}
