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

body {
    font-family: 'Malgun Gothic', '맑은 고딕', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

header h1 {
    font-size: 1.5em;
}

.business-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.admin-badge {
    background-color: #e74c3c;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
}

.btn-back {
    background-color: #95a5a6;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    font-size: 1.5em;
    display: inline-block;
    transition: all 0.3s;
    line-height: 1;
    cursor: pointer;
    font-weight: bold;
}

.btn-back:hover {
    background-color: #7f8c8d;
    transform: scale(1.1);
}

.btn-home {
    background-color: #3498db;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1.5em;
    display: inline-block;
    transition: all 0.3s;
    line-height: 1;
}

.btn-home:hover {
    background-color: #2980b9;
    transform: scale(1.1);
}

.btn-logout {
    background-color: #e74c3c;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

.btn-logout:hover {
    background-color: #c0392b;
}

/* 로그인 화면 */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
    color: #ffffff;
}

.login-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    letter-spacing: -1px;
}

.login-subtitle {
    font-size: 1.1em;
    opacity: 0.95;
    font-weight: 300;
}

.login-box {
    background: #ffffff;
    padding: 50px 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 450px;
    border: none;
}

.login-box-title {
    margin-bottom: 30px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.5em;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 로그인 메뉴 버튼 통일 스타일 */
.login-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.login-menu-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.login-menu-btn:hover::before {
    width: 300px;
    height: 300px;
}

.login-menu-btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #ffffff;
}

.login-menu-btn-primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.login-menu-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}

.login-menu-btn-secondary {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: #ffffff;
}

.login-menu-btn-secondary:hover {
    background: linear-gradient(135deg, #229954 0%, #1e8449 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.login-menu-btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(39, 174, 96, 0.3);
}

.login-menu-btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #ffffff;
}

.login-menu-btn-danger:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.login-menu-btn-danger:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.3);
}

.login-menu-btn:focus {
    outline: 3px solid rgba(52, 152, 219, 0.5);
    outline-offset: 3px;
}

.login-menu-btn.selected {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.5);
    outline: 3px solid rgba(52, 152, 219, 0.5);
    outline-offset: 3px;
}

.btn-icon {
    font-size: 1.3em;
    line-height: 1;
}

.btn-text {
    flex: 1;
    text-align: center;
}

.login-box .form-actions .btn-primary,
.login-box .form-actions .btn-secondary {
    flex: 1 1 0 !important;
    min-width: 120px;
    text-align: center;
    box-sizing: border-box;
    width: 0 !important;
    max-width: none;
}

/* 메인 메뉴 */
.main-menu {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border: 1px solid #e0e0e0;
    max-width: 1400px;
    margin: 0 auto;
}

.main-menu h2 {
    margin-bottom: 35px;
    color: #2c3e50;
    font-weight: 700;
    font-size: 2em;
    border-bottom: 4px solid #3498db;
    padding-bottom: 15px;
    text-align: center;
    letter-spacing: -0.5px;
}

.current-business-info {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    padding: 20px 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    border: 2px solid transparent;
}

.current-business-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    border-color: #2980b9;
}

.current-business-info:focus {
    outline: 3px solid #2980b9;
    outline-offset: 2px;
}

.business-info-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.business-label {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.business-name {
    font-size: 1.4em;
    color: #ffffff;
    font-weight: 700;
    display: block;
}

.business-hint {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

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

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.menu-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 10px 15px;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    border: 2px solid #e0e0e0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    min-height: auto;
}

.menu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.menu-card:hover {
    border-color: #3498db;
    background: linear-gradient(135deg, #e8f4f8 0%, #d6eaf8 100%);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.2);
}

.menu-card:hover::before {
    transform: scaleX(1);
}

.menu-card:focus {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

.menu-card.selected {
    border-color: #27ae60;
    background: linear-gradient(135deg, #d5f4e6 0%, #c8f0d9 100%);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.menu-card.selected::before {
    background: linear-gradient(90deg, #27ae60, #229954);
    transform: scaleX(1);
}

.menu-icon {
    font-size: 1.2em;
    margin-bottom: 5px;
    transition: transform 0.3s ease;
}

.menu-card:hover .menu-icon {
    transform: scale(1.1);
}

.menu-card h3 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 1em;
    font-weight: 600;
}

.menu-card p {
    margin: 0;
    color: #7f8c8d;
    font-size: 0.8em;
    line-height: 1.3;
}

/* 폼 스타일 */
.form-container {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 2px solid #34495e;
}

.form-container h2 {
    margin-bottom: 25px;
    color: #2c3e50;
    font-weight: bold;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #bdc3c7;
    border-radius: 4px;
    font-size: 1em;
    font-family: inherit;
    background: #ffffff;
    color: #2c3e50;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.4);
    background: #f8f9fa;
}

.form-group input.readonly {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    align-items: center;
    flex-wrap: wrap;
}

.form-actions .btn-primary,
.form-actions .btn-secondary {
    flex: 1 1 0 !important;
    min-width: 120px;
    text-align: center;
    box-sizing: border-box;
    width: 0 !important;
    max-width: none;
}

.btn-primary {
    background-color: #3498db;
    color: #ffffff;
    padding: 12px 24px;
    border: 2px solid #2980b9;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.2s;
    display: inline-block;
    text-align: center;
    box-sizing: border-box;
    width: auto;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #21618c;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #7f8c8d;
    color: #ffffff;
    padding: 12px 24px;
    border: 2px solid #6c7a7b;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.2s;
    text-align: center;
    box-sizing: border-box;
    width: auto;
}

.btn-secondary:hover {
    background-color: #6c7a7b;
    border-color: #5d6d6e;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transform: translateY(-1px);
}

.message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 4px;
    display: none;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.message.info {
    background-color: #e8f4f8;
    color: #0b5c8c;
    border: 1px solid #c7e6f5;
    display: block;
}

/* 목록 스타일 */
.list-container {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.list-container h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.list-item {
    background: #f8f9fa;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    border-left: 4px solid #3498db;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-item-content {
    flex: 1;
}

.list-item-actions {
    margin-left: 15px;
}

.list-item strong {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
}

.list-item span {
    color: #666;
    margin-right: 15px;
}

.list-item .price {
    color: #e74c3c;
    font-weight: bold;
}

.list-item p {
    margin-top: 5px;
    color: #666;
    font-size: 0.9em;
}

.btn-edit {
    background-color: #f39c12;
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
}

.btn-edit:hover {
    background-color: #e67e22;
}

.btn-danger {
    background-color: #e74c3c;
    color: #ffffff;
    padding: 14px 28px;
    border: 2px solid #c0392b;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.05em;
    font-weight: bold;
    box-shadow: 0 3px 8px rgba(231, 76, 60, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    min-width: 100px;
}

.btn-danger:hover {
    background-color: #c0392b;
    border-color: #a93226;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.5);
    transform: translateY(-2px);
}

.btn-danger:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(231, 76, 60, 0.3);
}

.btn-danger:disabled {
    background-color: #95a5a6;
    border-color: #7f8c8d;
    color: #ffffff;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

.btn-danger:disabled:hover {
    background-color: #95a5a6;
    border-color: #7f8c8d;
    transform: none;
    box-shadow: none;
}

/* 작은 삭제 버튼 (테이블 내부용) */
.btn-danger.btn-small {
    padding: 8px 16px;
    font-size: 0.9em;
    min-width: 70px;
}

/* 테이블 내부 버튼 그룹용 삭제 버튼 */
.list-item-actions .btn-danger,
table .btn-danger {
    padding: 8px 16px;
    font-size: 0.9em;
    min-width: 70px;
}

.empty {
    text-align: center;
    color: #999;
    padding: 40px;
    font-style: italic;
}

/* 리포트 스타일 */
.report-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.report-container h2 {
    margin-bottom: 25px;
    color: #2c3e50;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filter-group label {
    font-weight: bold;
}

.filter-group input[type="date"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.table-container {
    margin-top: 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.data-table th {
    background-color: #2c3e50;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: bold;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.data-table th:last-child {
    border-right: none;
}

.data-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

.data-table td:last-child {
    border-right: none;
}

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

.data-table tfoot {
    background-color: #ecf0f1;
    font-weight: bold;
}

.data-table tfoot td,
.data-table tfoot th {
    border-right: 1px solid #ddd;
}

.data-table tfoot td:last-child,
.data-table tfoot th:last-child {
    border-right: none;
}

.data-table .text-right {
    text-align: right;
}

.report-section {
    margin-bottom: 30px;
}

.report-section h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.report-summary {
    background: #ecf0f1;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
    text-align: center;
}

.report-summary h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.grand-total {
    font-size: 2em;
    color: #e74c3c;
    font-weight: bold;
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
    .menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .main-menu {
        padding: 25px 20px;
    }
    
    .main-menu h2 {
        font-size: 1.5em;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .menu-card {
        padding: 10px 15px;
    }
    
    .menu-icon {
        font-size: 1.2em;
    }
    
    .current-business-info {
        padding: 15px 20px;
    }
    
    .business-name {
        font-size: 1.2em;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group input,
    .filter-group button {
        width: 100%;
    }
    
    .data-table {
        font-size: 0.9em;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 4px;
    }
    
    .data-table th {
        border-right: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    .data-table th:last-child {
        border-right: none;
    }
    
    .data-table td {
        border-right: 1px solid #ddd;
    }
    
    .data-table td:last-child {
        border-right: none;
    }
}

/* 일계표 스타일 */
.daily-report {
    margin-top: 20px;
}

.report-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #ecf0f1;
    border-radius: 8px;
}

.report-header h3 {
    font-size: 1.8em;
    color: #2c3e50;
    margin: 0;
}

.balance-table {
    max-width: 500px;
}

.balance-table th {
    background-color: #34495e;
    width: 50%;
}

.balance-table td {
    font-weight: bold;
    font-size: 1.1em;
    text-align: right;
}

.positive {
    color: #27ae60;
}

.negative {
    color: #e74c3c;
}

.balance-summary {
    margin-top: 20px;
    padding: 15px;
    background: #ecf0f1;
    border-radius: 8px;
    text-align: center;
}

.balance-summary h4 {
    margin: 0;
    color: #2c3e50;
}

/* 키보드 네비게이션 스타일 */
.menu-card.selected {
    border-color: #3498db !important;
    background: #e8f4f8 !important;
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

.menu-item {
    padding: 15px 20px;
    margin: 5px 0;
    background: #34495e;
    border: 2px solid #2c3e50;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    color: #ffffff;
    display: block;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 1.05em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.menu-item:hover,
.menu-item:focus {
    background: #2c3e50;
    border-color: #3498db;
    color: #ffffff;
    transform: translateX(5px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.menu-item.selected {
    background: #27ae60 !important;
    color: #ffffff !important;
    border-color: #229954 !important;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.5);
    transform: translateX(10px);
    outline: 3px solid #229954;
    outline-offset: 2px;
}

/* 위자드 스타일 */
.wizard-container {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    max-width: 600px;
    margin: 0 auto;
    border: 2px solid #34495e;
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
}

.wizard-question {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #2c3e50;
    padding: 10px;
    background: #ecf0f1;
    border-left: 4px solid #3498db;
    border-radius: 4px;
}

.wizard-input {
    width: 100%;
    padding: 14px;
    font-size: 1.1em;
    border: 2px solid #bdc3c7;
    border-radius: 4px;
    margin-bottom: 20px;
    background: #ffffff;
    color: #2c3e50;
}

.wizard-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.4);
    background: #f8f9fa;
}

.wizard-info {
    background: #e8f4f8;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    color: #2c3e50;
    border-left: 4px solid #3498db;
    font-weight: 500;
}

/* 화면 클리어 스타일 */
.screen-clear {
    animation: fadeOut 0.3s ease-out;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

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

.modal-content {
    background-color: #ffffff;
    margin: 3% auto;
    padding: 12px;
    border: 2px solid #34495e;
    border-radius: 8px;
    width: 90%;
    max-width: 380px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 6px;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.close {
    color: #aaa;
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.close:hover,
.close:focus {
    color: #000;
}

.modal-content .form-group {
    margin-bottom: 4px;
}

.modal-content label {
    display: block;
    margin-bottom: 2px;
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.85em;
}

.modal-content input[type="password"],
.modal-content input[type="text"],
.modal-content input[type="number"],
.modal-content input[type="date"],
.modal-content select {
    width: 100%;
    padding: 6px 8px;
    border: 2px solid #bdc3c7;
    border-radius: 4px;
    font-size: 0.85em;
}

.modal-content input[type="password"]:focus,
.modal-content input[type="text"]:focus,
.modal-content input[type="number"]:focus,
.modal-content input[type="date"]:focus,
.modal-content select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.4);
}

.modal-content .btn-primary,
.modal-content .btn-secondary,
.modal-content .btn-danger {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    margin-right: 6px;
    margin-top: 6px;
    box-shadow: none;
}

.modal-content .btn-primary {
    background-color: #3498db;
    color: white;
}

.modal-content .btn-primary:hover {
    background-color: #2980b9;
}

.modal-content .btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.modal-content .btn-secondary:hover {
    background-color: #7f8c8d;
}

.modal-content .btn-danger {
    background-color: #e74c3c;
    color: white;
}

.modal-content .btn-danger:hover {
    background-color: #c0392b;
}

/* 모달 내부 검색 가능한 드롭다운 크기 조정 */
.modal-content .searchable-select-input {
    padding: 6px 8px;
    font-size: 0.85em;
}

.modal-content .searchable-dropdown {
    font-size: 0.85em;
}

.modal-content .searchable-dropdown-item {
    padding: 6px 8px;
}

/* 매출 등록 페이지 컴팩트 레이아웃 */
.sales-register-container {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 2px solid #34495e;
    max-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
}

.sales-register-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
}

.sales-register-header h2 {
    color: #2c3e50;
    font-weight: bold;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.date-selector {
    display: flex;
    align-items: center;
}

.sales-register-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 20px;
    overflow: hidden;
}

.sales-form-section {
    display: flex;
    flex-direction: column;
}

.sales-list-section {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.compact-form {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}

.compact-form .form-group {
    margin-bottom: 0;
}

.compact-form .form-group label {
    font-size: 0.9em;
    margin-bottom: 4px;
    font-weight: 600;
}

.compact-form .form-group input,
.compact-form .form-group select {
    padding: 8px 10px;
    font-size: 0.95em;
    border: 1.5px solid #bdc3c7;
}

.compact-form .form-group input:focus,
.compact-form .form-group select:focus {
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

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

.compact-actions .btn-primary,
.compact-actions .btn-secondary {
    flex: 0 0 auto;
    padding: 6px 12px;
    font-size: 0.85em;
    white-space: nowrap;
}

.compact-actions .btn-success {
    flex: 0 0 auto;
    padding: 6px 16px;
    font-size: 0.85em;
    white-space: nowrap;
    min-width: fit-content;
}

.compact-table {
    overflow-y: auto;
    max-height: calc(100vh - 400px);
    border: 1px solid #ddd;
    border-radius: 4px;
}

.compact-table .data-table {
    margin-top: 0;
    font-size: 0.9em;
}

.compact-table .data-table th {
    padding: 8px 6px;
    font-size: 0.85em;
    position: sticky;
    top: 0;
    z-index: 10;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.compact-table .data-table th:last-child {
    border-right: none;
}

.compact-table .data-table td {
    padding: 6px;
    font-size: 0.85em;
    border-right: 1px solid #ddd;
}

.compact-table .data-table td:last-child {
    border-right: none;
}

.compact-table .btn-edit {
    padding: 4px 10px;
    font-size: 0.85em;
}

.sales-register-container .message {
    margin-top: 10px;
    padding: 8px 12px;
    font-size: 0.9em;
}

/* 반응형: 작은 화면에서는 세로 배치 */
@media (max-width: 1200px) {
    .sales-register-content {
        grid-template-columns: 1fr;
    }
    
    .compact-table {
        max-height: 400px;
    }
}

/* 공통 등록 페이지 스타일 (매출 등록과 동일한 디자인) */
.register-container {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 2px solid #34495e;
    display: flex;
    flex-direction: column;
}

.register-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
}

.register-header h2 {
    color: #2c3e50;
    font-weight: bold;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.register-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 20px;
}

.register-form-section {
    display: flex;
    flex-direction: column;
}

.register-list-section {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.register-container .compact-form {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.register-container .form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}

.register-container .compact-form .form-group {
    margin-bottom: 0;
}

.register-container .compact-form .form-group label {
    font-size: 0.9em;
    margin-bottom: 4px;
    font-weight: 600;
}

.register-container .compact-form .form-group input,
.register-container .compact-form .form-group select,
.register-container .compact-form .form-group textarea {
    padding: 8px 10px;
    font-size: 0.95em;
    border: 1.5px solid #bdc3c7;
}

.register-container .compact-form .form-group input:focus,
.register-container .compact-form .form-group select:focus,
.register-container .compact-form .form-group textarea:focus {
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.register-container .compact-actions {
    margin-top: 10px;
    gap: 10px;
}

.register-container .compact-actions .btn-primary,
.register-container .compact-actions .btn-secondary {
    padding: 8px 16px;
    font-size: 0.95em;
}

.register-container .compact-table {
    overflow-y: auto;
    max-height: calc(100vh - 400px);
    border: 1px solid #ddd;
    border-radius: 4px;
}

.register-container .compact-table .data-table {
    margin-top: 0;
    font-size: 0.9em;
}

.register-container .compact-table .data-table th {
    padding: 8px 6px;
    font-size: 0.85em;
    position: sticky;
    top: 0;
    z-index: 10;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.register-container .compact-table .data-table th:last-child {
    border-right: none;
}

.register-container .compact-table .data-table td {
    padding: 6px;
    font-size: 0.85em;
    border-right: 1px solid #ddd;
}

.register-container .compact-table .data-table td:last-child {
    border-right: none;
}

.register-container .compact-table .btn-edit {
    padding: 4px 10px;
    font-size: 0.85em;
}

.register-container .message {
    margin-top: 10px;
    padding: 8px 12px;
    font-size: 0.9em;
}

/* 반응형: 작은 화면에서는 세로 배치 */
@media (max-width: 1200px) {
    .register-content {
        grid-template-columns: 1fr;
    }
    
    .register-container .compact-table {
        max-height: 400px;
    }
}

/* 검색 가능한 드롭다운 스타일 */
.searchable-select-wrapper {
    position: relative;
    width: 100%;
}

.searchable-select-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95em;
    background-color: white;
}

.searchable-select-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.searchable-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.searchable-dropdown-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.searchable-dropdown-item:hover,
.searchable-dropdown-item.highlighted {
    background-color: #3498db;
    color: white;
}

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

.searchable-dropdown-item.empty {
    padding: 10px 12px;
    color: #999;
    cursor: default;
    text-align: center;
}

.searchable-dropdown-item.empty:hover {
    background-color: transparent;
    color: #999;
}

.searchable-dropdown-item.add-item {
    background-color: #e8f4f8;
    color: #2980b9;
    font-weight: bold;
}

.searchable-dropdown-item.add-item:hover,
.searchable-dropdown-item.add-item.highlighted {
    background-color: #3498db;
    color: white;
}

