* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 커스텀 폰트: Paperlogy */
@font-face {
    font-family: 'Paperlogy';
    src: url('font/Paperlogy-3Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Paperlogy';
    src: url('font/Paperlogy-4Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Paperlogy';
    src: url('font/Paperlogy-5Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Paperlogy';
    src: url('font/Paperlogy-6SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Paperlogy';
    src: url('font/Paperlogy-7Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Paperlogy', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: #1a1a1a;
    color: #e0e0e0;
}

/* 로그인 화면 */
.login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.login-container {
    background: #2d2d2d;
    padding: 60px 50px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 450px;
    border: 1px solid #404040;
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo-img {
    height: 150px;
    width: auto;
}

/* 맨 위로 이동 버튼 */
.scroll-top-btn {
    position: fixed;
    right: 20px;
    bottom: 24px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: none;
    background: #667eea;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.scroll-top-btn.show {
    display: flex;
}

.login-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #e0e0e0;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #b0b0b0;
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 2px solid #404040;
    border-radius: 8px;
    font-size: 16px;
    background: #1a1a1a;
    color: #e0e0e0;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    background: #252525;
}

.form-group input::placeholder {
    color: #666;
}

.login-btn,
.submit-btn {
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.login-btn:hover,
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 10px;
    display: none;
}

.error-message.show {
    display: block;
}

.success-message {
    color: #27ae60;
    font-size: 14px;
    margin-top: 10px;
    display: none;
}

.success-message.show {
    display: block;
}

/* 관리자 대시보드 */
.admin-dashboard {
    display: flex;
    min-height: 100vh;
}

/* 모바일 메뉴 버튼 */
.mobile-menu-btn {
    display: none;
    z-index: 1001;
    width: 40px;
    height: 40px;
    background: #2d2d2d;
    border: 1px solid #404040;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: all 0.3s;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn:hover {
    background: #353535;
    transform: scale(1.05);
}

.mobile-menu-btn span {
    display: block;
    font-weight: bold;
}

/* 사이드바 오버레이 */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* 사이드바 */
.admin-sidebar {
    width: 260px;
    background: #1a1a1a;
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid #2d2d2d;
    z-index: 1002;
    transition: transform 0.3s ease-in-out;
}

.sidebar-close-btn {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #e0e0e0;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 1003;
}

.sidebar-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: rotate(90deg) scale(1.1);
}

.sidebar-header {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid #2d2d2d;
    position: relative;
}

.sidebar-logo {
    height: 60px;
    width: auto;
    margin-bottom: 15px;
}

.sidebar-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.sidebar-nav {
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    color: #a0a0a0;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.nav-item:hover {
    background: #2d2d2d;
    color: #fff;
}

.nav-item.active {
    background: rgba(102, 126, 234, 0.3);
    color: #fff;
    border-left: 4px solid #667eea;
}

.nav-icon {
    font-size: 20px;
}

.nav-text {
    font-size: 15px;
    font-weight: 500;
}

/* 메인 콘텐츠 */
.admin-content {
    margin-left: 260px;
    flex: 1;
    padding: 30px;
}

.content-page {
    display: none;
}

.content-page.active {
    display: block;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.page-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: #e0e0e0;
}

.page-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-title {
    font-size: 20px;
    font-weight: 700;
    color: #e0e0e0;
}

.page-title-letter-c {
    color: #60a5fa;
    /* 연한 파란색 */
}

.page-title-letter-m {
    color: #fde68a;
    /* 연한 노란색 */
}

.filter-select {
    padding: 10px 15px;
    border: 2px solid #404040;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    background: #2d2d2d;
    color: #e0e0e0;
}

.filter-select.small {
    padding: 8px 12px;
    font-size: 13px;
}

.filter-select:focus {
    outline: none;
    border-color: #667eea;
}


.filter-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.filter-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #d1d5db;
    cursor: pointer;
    background: #2d2d2d;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #404040;
    transition: all 0.2s;
}

.filter-checkbox-group label:hover {
    background: #353535;
    border-color: #667eea;
}

.filter-checkbox-group input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #667eea;
    cursor: pointer;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    background: #1f1f1f;
    border-radius: 10px;
    padding: 12px 16px;
    border: 1px solid #2d2d2d;
}

.filter-bar-left,
.filter-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 15px;
    color: #b0b0b0;
    font-weight: 600;
}

.filter-input {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #404040;
    background: #151515;
    color: #e0e0e0;
    font-size: 13px;
    min-width: 140px;
}

.filter-input::placeholder {
    color: #666;
}

.filter-input:focus {
    outline: none;
    border-color: #667eea;
    background: #1f1f1f;
}

.date-input {
    min-width: 130px;
    color-scheme: dark;
}

/* 등록일·신청일 달력 아이콘: 하얀색으로 잘 보이게 */
.filter-input.date-input::-webkit-calendar-picker-indicator,
input[type="date"].filter-input::-webkit-calendar-picker-indicator,
.form-input[type="date"]::-webkit-calendar-picker-indicator,
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(2.5) contrast(0.9);
    cursor: pointer;
    opacity: 1;
}

input[type="date"].filter-input,
input[type="date"].form-input {
    color-scheme: dark;
}

.filter-separator {
    color: #777;
    font-size: 13px;
}

.search-btn {
    padding: 8px 18px;
    background: #3d8bfd;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #2f6fcb;
}

.create-btn {
    padding: 9px 16px;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.create-btn:hover {
    background: #5a67d8;
}

.export-btn {
    padding: 9px 16px;
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.export-btn:hover {
    background: #15803d;
}

.refresh-btn {
    padding: 10px 20px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.refresh-btn:hover {
    background: #2980b9;
}

/* 상태 요약 통계 */
.result-count {
    font-size: 14px;
    color: #b0b0b0;
    font-weight: 600;
    margin-bottom: 16px;
}

.status-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.status-summary-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #1f1f1f;
    border: 1px solid #2d2d2d;
    font-size: 12px;
}

.status-summary-item .label {
    color: #9ca3af;
    font-weight: 500;
}

.status-summary-item .value {
    color: #e5e7eb;
    font-weight: 700;
}

.status-summary-item.total {
    border-color: #6b7280;
}

.status-summary-item.pending {
    border-color: #fbbf24;
}

.status-summary-item.contacted {
    border-color: #38bdf8;
}

.status-summary-item.completed {
    border-color: #22c55e;
}

.status-summary-item.cancelled {
    border-color: #f97373;
}

/* 탭 */
.tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #2d2d2d;
    background: #1a1a1a;
}

.tab-btn {
    padding: 14px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 15px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    position: relative;
}

.tab-btn:hover {
    color: #e0e0e0;
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

/* 테이블 */
.table-container {
    background: #2d2d2d;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid #404040;
}

.desktop-table {
    display: block;
}

/* 모바일 카드 리스트 */
.mobile-card-list {
    display: none;
    gap: 15px;
    flex-direction: column;
}

.mobile-card-list .loading {
    text-align: center;
    color: #888;
    padding: 40px 20px;
    font-size: 14px;
}

.inquiry-card {
    background: #2d2d2d;
    border: 1px solid #404040;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.inquiry-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #404040;
}

.inquiry-card-id {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
}

.inquiry-card-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.inquiry-card-label {
    font-size: 12px;
    color: #888;
    font-weight: 600;
}

.inquiry-card-value {
    font-size: 14px;
    color: #e0e0e0;
}

.inquiry-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 15px;
    border-top: 1px solid #404040;
}

.inquiry-card-actions .btn-action {
    flex: 1;
}

.inquiry-card-actions .btn-delete {
    margin-left: 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: #252525;
}

.data-table th {
    padding: 15px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #b0b0b0;
    border-bottom: 2px solid #404040;
}

.data-table td {
    padding: 15px;
    font-size: 14px;
    color: #e0e0e0;
    border-bottom: 1px solid #404040;
}

.data-table tbody tr:hover {
    background: #353535;
}

.data-table tbody tr.loading {
    text-align: center;
    color: #888;
}

.data-table .status-cell {
    min-width: 90px;
}

/* 계정관리 테이블 순번 열 */
.data-table-accounts .col-no {
    width: 56px;
    text-align: center;
    font-weight: 600;
    color: #667eea;
}

.data-table-accounts thead .col-no {
    color: #b0b0b0;
}

/* 계정 카드 (모바일 전용 - PC에서는 숨김) */
.accounts-mobile-list {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.account-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #2d2d2d;
    border: 1px solid #404040;
    border-radius: 12px;
    padding: 16px;
    min-height: 60px;
}

.account-card-no {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #667eea;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
}

.account-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.account-card-row {
    font-size: 14px;
    color: #e0e0e0;
    line-height: 1.4;
}

.account-card-name {
    font-weight: 700;
    font-size: 16px;
    color: #fff;
}

.account-card-label {
    display: inline-block;
    min-width: 56px;
    font-size: 12px;
    color: #888;
    margin-right: 4px;
}

/* 발주/출고/지출(운영) */
.operate-filter-bar .filter-bar-left {
    flex-wrap: wrap;
    gap: 8px;
}

.operate-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
    padding: 14px 20px;
    background: #252525;
    border: 1px solid #404040;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
}

.operate-summary-item {
    color: #b0b0b0;
}

.operate-summary-item strong {
    color: #e0e0e0;
}

.operate-summary-item em {
    font-style: normal;
    font-weight: 700;
    color: #667eea;
    margin-left: 4px;
}

.data-table-operate th,
.data-table-operate td {
    white-space: nowrap;
}

.data-table-operate .col-action {
    white-space: nowrap;
}

.operate-mobile-list {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.operate-card {
    background: #2d2d2d;
    border: 1px solid #404040;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.operate-card-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 14px;
    color: #e0e0e0;
}

.operate-card-label {
    flex-shrink: 0;
    min-width: 72px;
    font-size: 12px;
    color: #888;
}

.operate-card-value {
    word-break: break-all;
}

.operate-card-title {
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    margin-bottom: 4px;
}

/* 계약통계 */
.data-table-stats .num {
    text-align: right;
}

.data-table-stats tfoot {
    background: #252525;
    border-top: 2px solid #404040;
}

.data-table-stats .stats-total-row td {
    font-weight: 700;
    color: #e0e0e0;
}

.stats-mobile-list {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.stats-card {
    background: #2d2d2d;
    border: 1px solid #404040;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stats-card-name {
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    margin-bottom: 4px;
}

.stats-card-row {
    font-size: 14px;
    color: #e0e0e0;
}

.stats-card-label {
    display: inline-block;
    min-width: 80px;
    font-size: 12px;
    color: #888;
}

.stats-card-total {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.stats-card-total .stats-card-name {
    color: #667eea;
}

.customer-row-status-select {
    width: 100%;
    min-width: 85px;
    padding: 6px 8px;
    font-size: 13px;
    border: 1px solid #404040;
    border-radius: 6px;
    background: #2d2d2d;
    color: #e0e0e0;
    cursor: pointer;
}

.customer-row-status-select:focus {
    outline: none;
    border-color: #667eea;
}

.mobile-card-list .customer-card .status-select-wrap {
    display: block;
    margin-top: 4px;
}

.mobile-card-list .customer-card .customer-row-status-select {
    min-width: 120px;
}

.btn-consult-content {
    padding: 6px 12px;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-consult-content:hover {
    background: #5a67d8;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.pending {
    background: #3d2f1f;
    color: #ffc107;
}

.status-badge.contacted {
    background: #1a2a3a;
    color: #17a2b8;
}

.status-badge.completed {
    background: #1a3a2a;
    color: #28a745;
}

.status-badge.cancelled {
    background: #3a1a1a;
    color: #dc3545;
}

.btn-action {
    padding: 6px 12px;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-action:hover {
    background: #5568d3;
}

.btn-delete {
    background: #e74c3c;
    margin-left: 8px;
}

.btn-delete:hover {
    background: #c0392b;
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.page-btn {
    padding: 10px 20px;
    background: #2d2d2d;
    border: 2px solid #404040;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:hover:not(:disabled) {
    background: #353535;
    border-color: #667eea;
    color: #667eea;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    font-size: 14px;
    color: #b0b0b0;
    font-weight: 600;
}

/* 비밀번호 변경 폼 */
.password-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: #2d2d2d;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid #404040;
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-select {
    padding: 12px 16px;
    border: 2px solid #404040;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    background: #1a1a1a;
    color: #e0e0e0;
}

.form-select:focus {
    outline: none;
    border-color: #667eea;
    background: #252525;
}

/* 모달 - 화면 정중앙 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    /* Flexbox로 중앙 정렬 */
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.modal.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

/* modal-content: transform 없애고 flex 중앙 정렬에 맡김 */
.modal-content {
    background: #2d2d2d;
    padding: 30px;
    border-radius: 16px;
    max-width: 500px;
    width: 95%;
    position: relative;
    /* fixed 제거 */
    border: 1px solid #404040;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    margin: auto;
    /* Flexbox 내에서 중앙 정렬 보조 */
}

/* Wider modal for customer form */
.modal-content.customer-form {
    max-width: 800px;
}

.modal-content.alert-modal {
    max-width: 420px;
}

.alert-modal-body {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: #e0e0e0;
}

.customer-form-title {
    margin-bottom: 8px;
}

.customer-form-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #353535;
}

.form-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #667eea;
    letter-spacing: 0.02em;
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #404040;
}

.form-section-full {
    padding-bottom: 4px;
}

.form-label-block {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #b0b0b0;
    margin-bottom: 10px;
}

.form-input-file {
    padding: 10px 14px;
    font-size: 14px;
}

/* Custom Scrollbar for Modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #2d2d2d;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #404040;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #505050;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #888;
    line-height: 1;
    transition: color 0.3s;
    z-index: 10;
}

.modal-close:hover {
    color: #e0e0e0;
}

.modal-content h2 {
    margin-bottom: 25px;
    font-size: 24px;
    color: #e0e0e0;
    font-weight: 700;
    border-bottom: 2px solid #404040;
    padding-bottom: 15px;
}

/* Customer Create Form Styles */
#customerCreateForm {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    /* Space between columns */
    align-items: flex-start;
}

.form-row .form-group {
    flex: 1;
    min-width: 0;
}

/* Input Styles Enhancement */
.form-input,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #404040;
    border-radius: 8px;
    font-size: 15px;
    background: #1a1a1a;
    color: #e0e0e0;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus {
    border-color: #667eea;
    background: #202020;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.form-input::placeholder {
    color: #666;
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.consult-content-body {
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 60vh;
    overflow-y: auto;
    padding: 15px;
    background: #1a1a1a;
    border-radius: 8px;
    border: 1px solid #404040;
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 15px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    justify-content: flex-end;
}

.btn-cancel {
    padding: 10px 20px;
    background: #404040;
    color: #e0e0e0;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-cancel:hover {
    background: #505050;
}

.btn-submit {
    padding: 10px 20px;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #5568d3;
}

/* 반응형 */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex !important;
    }

    .sidebar-close-btn {
        display: flex !important;
        top: 15px;
        right: 15px;
        width: 48px;
        height: 48px;
        font-size: 32px;
        background: rgba(255, 255, 255, 0.2) !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    }

    .admin-sidebar {
        width: 280px;
        left: auto;
        right: 0;
        border-right: none;
        border-left: 1px solid #2d2d2d;
        transform: translateX(100%);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
    }

    .admin-sidebar.active {
        transform: translateX(0);
    }

    .admin-sidebar.active~.mobile-menu-btn,
    .admin-sidebar.active+* .mobile-menu-btn {
        display: none !important;
    }

    .admin-content {
        margin-left: 0;
        padding: 0;
        padding-top: 0;
    }

    .page-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 12px 15px 8px;
        background: #1a1a1a;
        border-bottom: 1px solid #2d2d2d;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .page-header-left {
        align-items: center;
        gap: 8px;
    }

    .page-title {
        font-size: 15px;
    }

    .page-logo {
        height: 28px;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        border-radius: 0;
        border-left: none;
        border-right: none;
        padding: 10px 15px;
        margin: 0 0 10px;
    }

    .filter-bar-left,
    .filter-bar-right {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .filter-label {
        text-align: center;
        width: 100%;
    }

    .filter-select,
    .refresh-btn,
    .export-btn,
    .create-btn,
    .search-btn,
    .filter-input {
        width: 100%;
        max-width: 360px;
        padding: 10px 16px;
        font-size: 14px;
    }

    .status-summary {
        justify-content: center;
    }

    .status-summary-item {
        justify-content: center;
        flex: 0 0 calc(33.333% - 12px);
        /* 한 줄에 3개 */
    }

    .tabs {
        display: none !important;
    }

    .desktop-table {
        display: none !important;
    }

    .mobile-card-list {
        display: flex !important;
        padding: 15px;
        gap: 15px;
        flex-direction: column;
    }

    .accounts-mobile-list,
    .operate-mobile-list,
    .stats-mobile-list {
        display: flex !important;
    }

    /* 계정관리·발주 헤더 버튼 텍스트 줄바꿈 방지 */
    #accountsPage .page-header .create-btn,
    #operatePage .page-header .create-btn {
        white-space: nowrap;
    }

    .table-container {
        display: none !important;
    }

    .inquiry-card {
        background: #2d2d2d;
        border: 1px solid #404040;
        border-radius: 12px;
        padding: 20px;
    }

    .inquiry-card-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        margin-bottom: 5px;
    }

    .inquiry-card-id {
        font-size: 18px;
    }

    .inquiry-card-field {
        padding: 10px 0;
        border-bottom: 1px solid #353535;
    }

    .inquiry-card-field:last-of-type {
        border-bottom: none;
    }

    .inquiry-card-label {
        font-size: 12px;
        margin-bottom: 6px;
        display: block;
    }

    .inquiry-card-value {
        font-size: 15px;
        word-break: break-all;
        line-height: 1.5;
    }

    .inquiry-card-actions {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #404040;
    }

    .pagination {
        padding: 20px 15px;
        background: #1a1a1a;
        border-top: 1px solid #2d2d2d;
        position: sticky;
        bottom: 0;
    }

    .password-form-container {
        padding: 25px 20px;
        margin: 15px;
        border-radius: 12px;
    }

    .modal-content {
        padding: 25px 20px;
        max-width: 95%;
        margin: 20px;
    }

    .login-container {
        padding: 40px 30px;
        margin: 20px;
    }

    .logo-img {
        height: 120px;
    }

    .mobile-menu-btn {
        right: 40px;
        /* 오른쪽에서 조금 안쪽으로 이동 */
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .modal-content {
        padding: 20px;
        max-height: 80vh;
        /* 조금 더 작게 잡아서 모바일 키패드 고려 */
    }

    .form-section {
        padding: 16px;
    }

    .form-section-title {
        margin-bottom: 12px;
        font-size: 12px;
    }

    .account-card {
        padding: 14px;
        gap: 12px;
    }

    .account-card-no {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .account-card-name {
        font-size: 15px;
    }

    .account-card-row {
        font-size: 13px;
    }

    .operate-summary {
        padding: 12px 15px;
        gap: 12px 16px;
        font-size: 13px;
    }

    .operate-summary-item {
        flex: 0 0 auto;
    }

    .operate-card {
        padding: 14px;
    }

    .operate-card-row {
        font-size: 13px;
    }

    .operate-card-label {
        min-width: 68px;
    }

    .stats-card {
        padding: 14px;
    }

    .stats-card-row {
        font-size: 13px;
    }
}