/* PowerAPI 공통 CSS */

/* 기본 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    font-size: 14px;
    color: #2c3e50;
}

/* 컨테이너 */
.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 헤더 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    flex-wrap: wrap;
    gap: 1rem;
}

/* PC용 데스크톱 메뉴 */
.desktop-menu {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.desktop-menu .menu-item {
    padding: 0.5rem 1rem;
    color: #212529;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.desktop-menu .menu-item:hover {
    background: #e9ecef;
    color: #212529;
}

.desktop-menu .menu-item.active {
    background: #212529;
    color: white;
    font-weight: 600;
}

/* 햄버거 메뉴 (모바일에서만 표시) */
.hamburger-menu {
    position: relative;
    display: none;
}

.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: #212529;
    transition: all 0.3s ease;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.menu-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1000;
    display: none;
}

.menu-dropdown.show {
    display: block;
}

.menu-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #212529;
    text-decoration: none;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background: #e9ecef;
    color: #212529;
    text-decoration: none;
}

.menu-item.active {
    background: #e9ecef;
    color: #212529;
    font-weight: 600;
}

.back-btn {
    background: #212529;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.back-btn:hover {
    background: #495057;
    color: white;
    text-decoration: none;
}

h1 {
    color: #2c3e50;
    font-size: 1.75rem;
    font-weight: 600;
}

/* 사용자 메뉴 */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-menu span {
    color: #666;
    font-size: 14px;
}

.logout-btn {
    background: #212529;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.logout-btn:hover {
    background: #495057;
    color: white;
    text-decoration: none;
}

/* 테이블 */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    padding: 0.4rem 0.6rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
    font-size: 11px;
}

th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
}

tr:hover {
    background: #f8f9fa;
}

/* 상태 색상 */
.status-active {
    color: #495057;
    font-weight: 500;
}

.status-inactive {
    color: #6c757d;
    font-weight: 500;
}

.role-admin {
    color: #dc3545;
    font-weight: 600;
}

.role-manager {
    color: #ffc107;
    font-weight: 600;
}

.role-user {
    color: #28a745;
    font-weight: 600;
}

.defend-allow {
    color: #28a745;
    font-weight: 600;
}

.defend-block {
    color: #dc3545;
    font-weight: 600;
}

/* 금액 관련 */
.amount {
    font-weight: 600;
}

.amount.positive {
    color: #28a745;
}

.amount.negative {
    color: #dc3545;
}

/* 거래 유형 색상 */
.cashtype-1 {
    color: #dc3545;
    font-weight: 600;
}

.cashtype-2 {
    color: #28a745;
    font-weight: 600;
}

.cashtype-5 {
    color: #007bff;
    font-weight: 600;
}

.cashtype-6 {
    color: #ffc107;
    font-weight: 600;
}

/* 페이징 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    gap: 0.5rem;
}

.pagination a, .pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 5px;
    font-size: 14px;
}

.pagination a:hover {
    background: #212529;
    color: white;
    border-color: #212529;
}

.pagination .current {
    background: #212529;
    color: white;
    border-color: #212529;
}

.pagination .disabled {
    color: #ccc;
    cursor: not-allowed;
}

.pagination .disabled:hover {
    background: transparent;
    color: #ccc;
    border-color: #ddd;
}

.pagination-info {
    text-align: center;
    margin-top: 1rem;
    color: #666;
    font-size: 13px;
}

/* 빈 데이터 */
.no-data {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 1rem;
}

/* 메인 페이지 전용 */
.main-container {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    max-width: 600px;
    width: 90%;
    margin: 0 auto;
}

.power-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #667eea;
}

.subtitle {
    color: #666;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.status {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.menu-container {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}


.user-info {
    margin-top: 2rem;
    text-align: center;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
}

.user-info p {
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 14px;
}

/* 로그인 페이지 전용 */
.login-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

input[type="email"], input[type="password"] {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

input[type="email"]:focus, input[type="password"]:focus {
    outline: none;
    border-color: #667eea;
}

.login-btn {
    width: 100%;
    background: #212529;
    color: white;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
}

.login-btn:hover {
    background: #495057;
    transform: translateY(-2px);
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 14px;
    border: 1px solid #fcc;
}

.back-link {
    text-align: center;
    margin-top: 1.5rem;
}

.back-link a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
}

.back-link a:hover {
    text-decoration: underline;
}

/* 전송관리 페이지 전용 */
.coming-soon {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.coming-soon-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #667eea;
}

.coming-soon h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.coming-soon p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* 회원관리 페이지 전용 */
.search-container {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.search-form {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-btn, .clear-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}

.search-btn {
    background: #212529;
    color: white;
}

.clear-btn {
    background: #495057;
    color: white;
}

.add-member-btn {
    background: #212529;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.add-member-btn:hover {
    background: #495057;
    transform: translateY(-1px);
}

/* 단가 호버 트리거 */
.price-hover-trigger {
    color: #007bff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    text-decoration: underline;
    transition: color 0.2s;
}

.price-hover-trigger:hover {
    color: #0056b3;
}

/* 단가 툴팁 */
.price-tooltip {
    position: fixed;
    display: none;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    min-width: 300px;
    max-width: 350px;
    transform: translateX(-50%);
}

.tooltip-header {
    background: #f8f9fa;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #dee2e6;
    font-size: 13px;
    font-weight: 600;
    color: #495057;
    border-radius: 6px 6px 0 0;
}

.tooltip-content {
    padding: 0.75rem;
}

.price-compact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.price-compact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0.5rem;
    background: #f8f9fa;
    border-radius: 3px;
    font-size: 11px;
}

.price-compact-label {
    color: #6c757d;
    font-weight: 500;
}

.price-compact-value {
    color: #28a745;
    font-weight: 600;
}

/* 회원추가 모달 전용 */
.price-info {
    background: #e8f5e8;
    border: 1px solid #c3e6c3;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
}

.price-info p {
    margin: 0.5rem 0;
    color: #2d5a2d;
    font-size: 0.9rem;
    line-height: 1.4;
}

.price-info strong {
    color: #1a4a1a;
    font-weight: 700;
}

/* 비밀번호 에러 메시지 */
.password-error {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    display: none;
    font-weight: 500;
}

/* 단가 표시 그리드 */
.price-display-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.price-display-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    transition: all 0.3s;
}

.price-display-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.price-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
}

.price-value {
    font-weight: 700;
    color: #28a745;
    font-size: 1rem;
    background: #f8f9fa;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.level-9 {
    color: #dc3545;
    font-weight: 600;
}

.level-1 {
    color: #28a745;
    font-weight: 600;
}

.edit-btn {
    background: #212529;
    color: white;
    border: none;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
}

.edit-btn:hover {
    background: #495057;
}

/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 12px;
    width: 95%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.close:hover {
    opacity: 1;
}

.modal-body {
    padding: 2rem;
}

/* 섹션 스타일 */
.member-info-section,
.security-section,
.price-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
}

.member-info-section h4,
.security-section h4,
.price-section h4 {
    margin: 0 0 1rem 0;
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 0.5rem;
}

/* 회원 정보 그리드 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.info-item label {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.9rem;
}

.readonly-field {
    background: white;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #495057;
    font-weight: 500;
}

/* 폼 스타일 */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
}

.form-input,
.form-select {
    padding: 0.75rem;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

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

.form-help {
    color: #6c757d;
    font-size: 0.8rem;
    font-style: italic;
}

/* 단가 카테고리 */
.price-categories {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.price-category {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.price-category h5 {
    margin: 0 0 1rem 0;
    color: #495057;
    font-size: 1rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.price-input {
    text-align: right;
    font-weight: 600;
    color: #28a745;
}

/* 모달 푸터 */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 2px solid #f0f0f0;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.cancel-btn,
.save-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.cancel-btn {
    background: #495057;
    color: white;
}

.cancel-btn:hover {
    background: #6c757d;
    transform: translateY(-1px);
}

.save-btn {
    background: #212529;
    color: white;
}

.save-btn:hover {
    background: #495057;
    transform: translateY(-1px);
}

/* 권한 부여 관련 스타일 */
.grant-warning {
    background: #fff3cd;
    color: #856404;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #ffeaa7;
    transition: all 0.2s ease;
}

.grant-warning:hover {
    background: #ffeaa7;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.grant-success {
    background: #d4edda;
    color: #155724;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #c3e6cb;
}

.grant-info {
    padding: 1rem;
}

.grant-info h4 {
    color: #495057;
    margin-bottom: 1rem;
    font-size: 16px;
}

.grant-info p {
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 14px;
}

.command-box {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.command-box code {
    background: #2d3748;
    color: #e2e8f0;
    padding: 0.75rem;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    display: block;
    word-break: break-all;
    line-height: 1.4;
}

.copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #007bff;
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.copy-btn:hover {
    background: #0056b3;
}

.grant-steps {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 1rem;
}

.grant-steps h5 {
    color: #1976d2;
    margin-bottom: 0.5rem;
    font-size: 14px;
}

.grant-steps ol {
    margin-left: 1rem;
    color: #424242;
    font-size: 13px;
}

.grant-steps li {
    margin-bottom: 0.25rem;
}

/* 금액관리 필터 스타일 */
.search-container {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.filter-row {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}

.filter-row-primary {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.filter-row-secondary {
    margin-bottom: 0;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 120px;
}

.filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.25rem;
}

.filter-group .form-select {
    min-width: 120px;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 13px;
    background: white;
    transition: border-color 0.2s ease;
}

.filter-group .form-select:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.filter-group .form-input {
    min-width: 140px;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 13px;
    background: white;
    transition: border-color 0.2s ease;
}

.filter-group .form-input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.search-input {
    min-width: 200px;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 13px;
    background: white;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
    align-items: end;
    margin-left: auto;
}

.search-btn {
    background: #212529;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-btn:hover {
    background: #495057;
}

.clear-btn {
    background: #495057;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.clear-btn:hover {
    background: #6c757d;
    color: white;
}

.charge-btn {
    background: #495057;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.charge-btn:hover {
    background: #343a40;
    transform: translateY(-1px);
}

/* 날짜 필터 그룹 */
.date-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.date-filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.25rem;
}

.date-inputs {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

.date-inputs .form-input {
    flex: 1;
    min-width: 0;
}

.date-separator {
    color: #6c757d;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
    white-space: nowrap;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    /* PC 메뉴 숨기고 햄버거 메뉴 표시 */
    .desktop-menu {
        display: none;
    }
    
    .hamburger-menu {
        display: inline-block;
    }
    
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .header h1 {
        order: 2;
        margin: 0;
    }
    
    .user-menu {
        order: 3;
        align-self: flex-end;
    }
    .search-container {
        padding: 0.75rem;
        margin-bottom: 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .filter-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .filter-group {
        min-width: auto;
        width: 100%;
    }
    
    .filter-group label {
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
    }
    
    .search-input,
    .form-input,
    .form-select {
        width: 100%;
        padding: 0.5rem;
        font-size: 0.875rem;
    }
    
    .filter-actions {
        margin-left: 0;
        justify-content: stretch;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .search-btn,
    .clear-btn,
    .charge-btn {
        width: 100%;
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .date-filter-group {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    .date-inputs {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        width: 100%;
        max-width: 100%;
    }
    
    .date-inputs .form-input {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .date-separator {
        text-align: center;
        margin: 0.25rem 0;
        font-size: 0.875rem;
        order: -1;
        width: 100%;
    }
    
    .filter-row-secondary {
        margin-top: 0.5rem;
    }
}

/* 충전 모달 스타일 */
.charge-modal {
    max-width: 520px;
    width: 90%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.charge-modal .modal-header {
    background: #495057;
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.charge-modal .modal-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.charge-modal .modal-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.charge-modal .modal-title h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.charge-modal .modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.2rem;
}

.charge-modal .modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.charge-modal .modal-body {
    padding: 2rem;
    background: #fafbfc;
}

.charge-modal .form-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.charge-modal .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.charge-modal .form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.9rem;
}

.charge-modal .label-icon {
    font-size: 1rem;
}

.charge-modal .required {
    color: #e53e3e;
    font-weight: 700;
}

.charge-modal .optional {
    color: #718096;
    font-weight: 400;
    font-size: 0.8rem;
}

.charge-modal .form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
    background: white;
}

.charge-modal .form-input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.charge-modal .form-input::placeholder {
    color: #a0aec0;
}

.charge-modal .amount-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.charge-modal .amount-input {
    flex: 1;
}

.charge-modal .amount-unit {
    color: #4a5568;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 1.5rem;
}

.charge-modal .form-help {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #718096;
    margin-top: 0.25rem;
}

.charge-modal .help-icon {
    font-size: 0.9rem;
}

.charge-modal .modal-footer {
    padding: 1.5rem 2rem;
    background: white;
    border-top: 1px solid #e2e8f0;
}

.charge-modal .button-group {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.charge-modal .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    min-width: 100px;
    justify-content: center;
}

.charge-modal .btn-icon {
    font-size: 1rem;
}

.charge-modal .btn-cancel {
    background: #f8f9fa;
    color: #212529;
    border: 2px solid #dee2e6;
}

.charge-modal .btn-cancel:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

.charge-modal .btn-primary {
    background: #212529;
    color: white;
}

.charge-modal .btn-primary:hover {
    background: #495057;
    transform: translateY(-1px);
}

.charge-modal .btn-primary:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 반응형 디자인 */
@media (max-width: 640px) {
    .search-container {
        padding: 0.5rem;
        margin-bottom: 0.75rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .filter-row {
        gap: 0.5rem;
    }
    
    .filter-group label {
        font-size: 0.8rem;
    }
    
    .search-input,
    .form-input,
    .form-select {
        padding: 0.4rem;
        font-size: 0.8rem;
    }
    
    .search-btn,
    .clear-btn,
    .charge-btn {
        padding: 0.6rem;
        font-size: 0.8rem;
    }
    
    .date-inputs {
        gap: 0.4rem;
        width: 100%;
        max-width: 100%;
    }
    
    .date-inputs .form-input {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .date-separator {
        font-size: 0.8rem;
        width: 100%;
    }
    
    .date-filter-group {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    .charge-modal {
        width: 95%;
        margin: 1rem;
    }
    
    .charge-modal .modal-header {
        padding: 1rem;
    }
    
    .charge-modal .modal-body {
        padding: 1.5rem;
    }
    
    .charge-modal .modal-footer {
        padding: 1rem 1.5rem;
    }
    
    .charge-modal .button-group {
        flex-direction: column;
    }
    
    .charge-modal     .btn {
        width: 100%;
    }
}

/* 세션 만료 경고 모달 */
.session-warning-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.session-warning-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: sessionWarningSlideIn 0.3s ease-out;
}

@keyframes sessionWarningSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.session-warning-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: sessionWarningPulse 2s infinite;
}

@keyframes sessionWarningPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.session-warning-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.session-warning-message {
    font-size: 0.95rem;
    color: #718096;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.session-warning-timer {
    font-size: 0.9rem;
    color: #e53e3e;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.session-warning-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.session-warning-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.session-warning-btn-extend {
    background: #212529;
    color: white;
}

.session-warning-btn-extend:hover {
    background: #495057;
    transform: translateY(-1px);
}

.session-warning-btn-logout {
    background: #f8f9fa;
    color: #212529;
    border: 2px solid #dee2e6;
}

.session-warning-btn-logout:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

/* 잔액 표시 스타일 */
.balance-amount {
    font-weight: 600;
    font-size: 13px;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    min-width: 80px;
    text-align: right;
    font-family: 'Courier New', monospace;
}

/* 메시지 표시 스타일 */
.message-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
    color: #495057;
    font-size: 14px;
}

.balance-positive {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.balance-negative {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.balance-zero {
    background: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

/* 거래유형별 색상 */
.cashtype-1 {
    background: #fff3cd;
    color: #856404;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.cashtype-2 {
    background: #d1ecf1;
    color: #0c5460;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.cashtype-5 {
    background: #d4edda;
    color: #155724;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.cashtype-6 {
    background: #f8d7da;
    color: #721c24;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* 전송관리 페이지 스타일 */
.message-title {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pk-value {
    font-family: monospace;
    font-size: 0.7rem;
    color: #6c757d;
    word-break: break-all;
}

/* 파일관리 파일경로 스타일 */
.file-path {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.85rem;
    color: #495057;
}

.pk-link {
    color: #007bff;
    text-decoration: none;
    font-family: monospace;
    font-size: 0.7rem;
    word-break: break-all;
    transition: color 0.2s ease;
}

.pk-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.sendtype-1 { color: #28a745; font-weight: bold; }
.sendtype-2 { color: #007bff; font-weight: bold; }
.sendtype-3 { color: #6f42c1; font-weight: bold; }
.sendtype-4 { color: #fd7e14; font-weight: bold; }

.status-1 { color: #6c757d; font-weight: bold; }
.status-2 { color: #007bff; font-weight: bold; }
.status-3 { color: #28a745; font-weight: bold; }
.status-6 { color: #dc3545; font-weight: bold; }

.result-status-1 { color: #6c757d; font-weight: bold; }
.result-status-2 { color: #ffc107; font-weight: bold; }
.result-status-3 { color: #28a745; font-weight: bold; }

.no-data {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-top: 2rem;
}

.no-data p {
    margin: 0;
    font-size: 1.1rem;
}

/* 전송관리 검색 스타일 */
.search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.search-group {
    flex: 1;
    min-width: 200px;
}

.search-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #495057;
}

.date-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: #e9ecef;
    border-radius: 8px;
}

.date-group {
    flex: 1;
    min-width: 150px;
}

.date-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #495057;
}

.date-separator {
    font-size: 1.2rem;
    font-weight: bold;
    color: #6c757d;
    margin-top: 1.5rem;
}

/* 전송관리 결과 메시지 */
.result-message {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: help;
    position: relative;
}

.result-message:hover {
    overflow: visible;
    white-space: normal;
    word-break: break-word;
}

/* 툴팁 스타일 */
.result-message[title]:hover::after {
    content: attr(title);
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 1000;
    background: #212529;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    line-height: 1.4;
    white-space: normal;
    word-break: break-word;
    max-width: 400px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    margin-top: 0.25rem;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .search-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .search-group {
        min-width: 100%;
    }
    
    .date-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .date-group {
        min-width: 100%;
    }
    
    .date-separator {
        text-align: center;
        margin: 0.5rem 0;
    }
}

/* 회원 정보 표시 스타일 */
.member-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.member-email {
    font-weight: 500;
    color: #333;
    font-size: 0.8em;
}

.member-company {
    font-size: 0.7em;
    color: #666;
    background: #f5f5f5;
    padding: 1px 4px;
    border-radius: 3px;
    display: inline-block;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 전송ID 링크 스타일 */
.transfer-id-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.9em;
}

.transfer-id-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* 모달창 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #fff;
    margin: 3% auto;
    padding: 0;
    border: none;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.2rem 1.5rem;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.modal-header h3 {
    margin: 0;
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
}

.close {
    color: rgba(255, 255, 255, 0.8);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.close:hover,
.close:focus {
    color: white;
    text-decoration: none;
}

.modal-body {
    padding: 2rem;
    max-height: 65vh;
    overflow-y: auto;
    background: #fafbfc;
}

.message-info {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.info-row {
    display: flex;
    margin-bottom: 0.5rem;
    align-items: center;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-row label {
    font-weight: 600;
    color: #495057;
    min-width: 90px;
    margin-right: 1rem;
    font-size: 0.9rem;
}

.info-row span {
    color: #333;
    flex: 1;
}

.message-content {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.content-section {
    margin-bottom: 1.5rem;
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.content-text {
    background: #f8f9fa;
    padding: 1.2rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    min-height: 80px;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.6;
    color: #333;
    font-size: 0.95rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.modal-footer {
    background: white;
    padding: 1.2rem 1.5rem;
    border-top: 1px solid #e9ecef;
    text-align: right;
    border-radius: 0 0 12px 12px;
}

/* 모달 애니메이션 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 전송내용 스타일 */
.transfer-content {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    color: #495057;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.transfer-content:hover {
    color: #007bff;
    text-decoration: underline;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 85vh;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 0.75rem;
    }
    
    .info-row label {
        min-width: auto;
        margin-right: 0;
        margin-bottom: 0.25rem;
    }
    
    .content-text {
        min-height: 80px;
        font-size: 0.9rem;
    }
}
