/* [기본 스타일] */

* { -ms-overflow-style: none; scrollbar-width: none; box-sizing: border-box; } *::-webkit-scrollbar { display: none; }

html, body { margin: 0; padding: 0; width: 100%; height: 100%; }

:root { --bg-main: #f0f2f5; --bg-white: #ffffff; --text-primary: #2c3e50; --text-secondary: #7f8c8d; --border-light: #e0e0e0; --shadow-soft: 0 2px 5px rgba(0, 0, 0, 0.05); --radius-base: 8px; --radius-sm: 4px; --card-bg-default: #f9f9f9; --card-text-default: var(--text-primary); --color-yanolja: #1565c0; --card-bg-yanolja: #e3f2fd; --card-text-yanolja: var(--color-yanolja); --color-here: #c62828; --card-bg-here: #ffebee; --card-text-here: var(--color-here); --color-onda: #009688; --card-bg-onda: #e0f2f1; --card-text-onda: var(--color-onda); --color-ddnayo: #ef6c00; --card-bg-ddnayo: #fff3e0; --card-text-ddnayo: var(--color-ddnayo); --color-direct: #f57f17; --card-bg-direct: #fffde7; --card-text-direct: var(--color-direct); --color-green: #2ecc71; --color-red-indicator: #e74c3c; --color-grey-indicator: #95a5a6; --today-color: #ff3333; --selected-color: #3498db; --color-blue-point: #3498db; --booking-bar-color: rgba(52, 152, 219, 0.4); --price-text-color: #e74c3c; --side-panel-width: 400px; }



/* [수정] body 중앙 정렬 강화 */

body { font-family: 'Pretendard', sans-serif; padding: 10px; background-color: var(--bg-main); color: var(--text-primary); font-size: 12px; line-height: 1.3; display: flex; flex-direction: column; align-items: center; overflow-x: hidden; }

h1 { text-align: center; margin-bottom: 5px; color: var(--text-primary); font-size: 1.4em; font-weight: 700; width: 100%; }



/* [수정] 메인 컨테이너 중앙 정렬 명시 */

.content-container-for-mobile-ordering { width: 100%; max-width: 1600px; display: flex; flex-direction: column; margin: 0 auto; }

.container-box { width: 100%; margin-bottom: 5px; background: var(--bg-white); padding: 10px; border-radius: var(--radius-base); box-shadow: var(--shadow-soft); }

.btn { border: none; padding: 6px 12px; border-radius: var(--radius-base); cursor: pointer; font-size: inherit; transition: all 0.2s; font-family: inherit; font-weight: 600; white-space: nowrap;} .btn-danger { background-color: var(--color-red-indicator); color: white; } .btn-warning { background-color: #f39c12; color: white; } .btn-unified-upload { background-color: #2c3e50; color: white; } .btn-cancel-booking { background-color: var(--text-secondary); color: white; font-size: 0.9em; padding: 4px 8px; margin-left: 5px;} .btn-close-panel { background: none; border: none; font-size: 1.5em; color: var(--text-secondary); cursor: pointer; padding: 0 5px; line-height: 1;} .btn-primary { background-color: var(--color-blue-point); color: white; } .btn-outline { background-color: white; border: 1px solid var(--border-light); color: var(--text-primary); }



/* [수정] 상단 현황 보드 디자인 개선 */

.summ-dashboard-container { display: flex; justify-content: space-between; align-items: center; background: #ffffff; padding: 20px 15px; border-radius: 12px; margin-bottom: 15px; border: 1px solid rgba(0,0,0,0.04); box-shadow: 0 4px 15px rgba(0,0,0,0.08); }

.summ-item { text-align: center; flex: 1; display: flex; flex-direction: column; gap: 8px; border-right: 1px solid #f0f0f0; padding: 0 5px;} .summ-item:last-child { border-right: none; }

.summ-title { font-size: 0.85em; color: #8898aa; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;}

.summ-value { font-size: 1.5em; font-weight: 800; color: #32325d; line-height: 1;}

.summ-value.revenue { color: #2dce89; }

/* 모바일 대응 */ @media screen and (max-width: 768px) { .summ-dashboard-container { padding: 15px 10px; } .summ-value { font-size: 1.25em; } .summ-title { font-size: 0.8em; }}



.top-controls { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 5px; padding: 5px 10px; background: var(--bg-white); border-radius: var(--radius-base); box-shadow: var(--shadow-soft); flex-wrap: wrap; }

.control-group-left, .control-group-right { display: flex; gap: 5px; align-items: center; }

.upload-box-group { display: flex; gap: 5px; align-items: center; }

.file-input-narrow { padding: 3px; font-size: inherit; width: 180px; border: 1px solid var(--border-light); border-radius: var(--radius-sm);}

.btn-dashboard-link { background-color: var(--color-blue-point); color: white; font-size: inherit; padding: 6px 12px; text-decoration: none; display: inline-block; border-radius: var(--radius-base); font-weight: bold; } .btn-settings { background-color: var(--text-secondary); color: white; font-size: 1.1em; padding: 6px 8px; } .btn-nav { background-color: var(--bg-white); border: 1px solid var(--border-light); color: var(--text-secondary); font-size: inherit; padding: 6px 10px;}



.main-content-wrapper { display: flex; align-items: stretch; width: 100%; min-height: 600px; gap: 0; transition: all 0.3s ease-in-out; position: relative; }

.main-content-wrapper.panel-open { gap: 10px; }

.calendar-section { flex: 1 1 auto; display: flex; flex-direction: column; gap: 5px; width: 100%; min-width: 0; transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1); }



/* [PC - Default] */

.side-panel-section { flex: 0 0 0; width: 0; padding: 0; opacity: 0; overflow: hidden; white-space: nowrap; background: var(--bg-white); border-left: 1px solid var(--border-light); box-shadow: -2px 0 10px rgba(0,0,0,0.05); height: auto; transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1); z-index: 20; }

.main-content-wrapper.panel-open .side-panel-section { flex-basis: var(--side-panel-width); width: var(--side-panel-width); padding: 15px; opacity: 1; white-space: normal; border-radius: var(--radius-base); }

.panel-overlay { display: none; position: fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.3); z-index:15; }



.calendar-header { display: flex; justify-content: center; align-items: center; gap: 10px; width: auto; padding: 8px 15px; background: var(--bg-white); border-radius: var(--radius-base); box-shadow: var(--shadow-soft);} #currentMonthLabel { font-size: 1.3em; font-weight: 800; min-width: 100px; text-align: center;} .calendar-container { padding: 0; overflow: hidden; background: var(--bg-white); border-radius: var(--radius-base); box-shadow: var(--shadow-soft); } table { width: 100%; border-collapse: collapse; table-layout: fixed; border-spacing: 0; } th { background-color: #f8f9fa; text-align: center; font-weight: 700; padding: 8px 2px; border-bottom: 1px solid var(--border-light); color: var(--text-secondary); font-size: inherit; } td { border: 1px solid var(--border-light); vertical-align: top; padding: 2px 0; height: auto; min-height: 85px; background-color: var(--bg-white); cursor: pointer; transition: background-color 0.2s; position: relative; overflow: visible; } td:hover { background-color: #f0f8ff; }

.date-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; padding: 2px 4px;} .date-number-wrapper { display: flex; align-items: center; gap: 4px; } .date-number { font-weight: 800; font-size: 1.1em; width: 22px; height: 22px; border-radius: 50%; display: flex; justify-content: center; align-items: center; transition: all 0.2s ease; } .daily-total-revenue { font-size: 0.85em; color: var(--price-text-color); font-weight: 700; } th:first-child, td:first-child .date-number { color: var(--color-red-indicator); } th:last-child, td:last-child .date-number { color: var(--color-blue-point); } td.is-today .date-number { background-color: var(--today-color); color: white !important; box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3); } td.selected-date .date-number { background-color: var(--selected-color); color: white !important; box-shadow: 0 2px 4px rgba(52, 152, 219, 0.4); transform: scale(1.1); } td.is-today.selected-date .date-number { background-color: var(--selected-color); color: white !important; } td.other-month { background-color: #fcfcfc; color: #e0e0e0; pointer-events: none; } .holiday-name { font-size: 0.8em; color: var(--color-red-indicator); font-weight: 700; }

.circles-container { display: flex; flex-direction: column; gap: 2px; width: 100%; padding-top: 2px;} .room-indicator-row { display: flex; align-items: center; padding-left: 4px; position: relative; height: 22px; margin-bottom: 1px; } .booking-continuous-bar { position: absolute; top: 0; bottom: 0; left: 0; right: -2px; background-color: var(--booking-bar-color); z-index: 0; } .status-start .booking-continuous-bar { border-top-left-radius: 12px; border-bottom-left-radius: 12px; left: 2px; } .status-end .booking-continuous-bar { border-top-right-radius: 12px; border-bottom-right-radius: 12px; right: 2px; } .status-single .booking-continuous-bar { display: none; } .room-abbr-text { font-weight: 800; font-size: 0.9em; color: var(--text-secondary); margin-right: 4px; z-index: 1; position: relative; min-width: 12px; text-align: center;} .source-circle { width: 16px; height: 16px; color: white; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-weight: 700; font-size: 0.75em; box-shadow: 0 1px 1px rgba(0,0,0,0.1); flex-shrink: 0; position: relative; z-index: 1; margin-right: 2px; } .source-circle.yanolja { background-color: var(--color-yanolja); } .source-circle.here { background-color: var(--color-here); } .source-circle.onda { background-color: var(--color-onda); } .source-circle.ddnayo { background-color: var(--color-ddnayo); } .source-circle.direct { background-color: var(--color-direct); } .source-circle.default-source { background-color: var(--color-grey-indicator); } .pax-count-display { font-size: 0.85em; color: var(--text-secondary); margin-left: 2px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.5px; position: relative; z-index: 1;} .room-indicator-row.status-start .pax-count-display, .room-indicator-row.status-mid .pax-count-display, .room-indicator-row.status-end .pax-count-display { color: white; text-shadow: 0 1px 2px rgba(0,0,0,0.2); } .daily-cost-display { font-size: 0.85em; color: var(--price-text-color); margin-left: auto; margin-right: 4px; font-weight: 800; position: relative; z-index: 1; white-space: nowrap; }



.side-panel-header-wrapper { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 2px solid var(--border-light); } .side-panel-header { font-size: 1.2em; font-weight: 800; color: var(--color-blue-point); flex-grow: 1; text-align: center; } .side-panel-body { display: flex; flex-direction: column; gap: 6px; max-height: 85vh; overflow-y: auto; padding-right: 2px; overflow-x: hidden;} .room-detail-card { background: var(--card-bg-default); color: var(--card-text-default); border: 1px solid #eee; border-radius: 6px; padding: 4px 6px; display: flex; flex-direction: column; gap: 4px; transition: all 0.2s; } .room-detail-card.yanolja { background-color: var(--card-bg-yanolja); color: var(--card-text-yanolja); border-color: #bbdefb; } .room-detail-card.here { background-color: var(--card-bg-here); color: var(--card-text-here); border-color: #ffcdd2; } .room-detail-card.onda { background-color: var(--card-bg-onda); color: var(--card-text-onda); border-color: #b2dfdb; } .room-detail-card.ddnayo { background-color: var(--card-bg-ddnayo); color: var(--card-text-ddnayo); border-color: #ffe0b2; } .room-detail-card.direct { background-color: var(--card-bg-direct); color: var(--card-text-direct); border-color: #fff9c4; } .card-row { display: flex; align-items: center; justify-content: flex-start; gap: 8px; flex-wrap: wrap;} .card-bottom-row { display: flex; align-items: center; justify-content: space-between; gap: 5px; } .card-top-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0; } .header-left { display: flex; align-items: center; gap: 5px; } .room-card-name { font-weight: 800; font-size: 1.2em; line-height: 1;} .room-card-status { font-size: 0.8em; font-weight: 700; opacity: 0.8; line-height: 1;} .card-top-header-summary { text-align: right; font-size: 0.85em; color: var(--text-secondary); display: flex; flex-direction: row; align-items: center; gap: 5px; } .summary-label { font-weight: 600; margin-right: 2px; } .summary-value-extra { color: var(--price-text-color); font-weight: 700; } .summary-value-total { color: var(--color-blue-point); font-weight: 800; font-size: 1.1em; }



.horizontal-input-group { display: flex; align-items: flex-end; gap: 5px; flex-wrap: wrap; width: 100%; margin-top: 2px; } .input-item { display: flex; flex-direction: column; gap: 1px; } .input-label { font-size: 0.75em; font-weight: 600; color: var(--text-secondary); } .detail-input { padding: 0 2px; border: 1px solid rgba(0,0,0,0.2); border-radius: 4px; font-family: inherit; font-size: 0.9em; height: 24px; box-sizing: border-box; background-color: rgba(255,255,255,0.7); display: flex; align-items: center;} .detail-input.source-select { width: 70px; } .detail-input.nights-select { width: 45px; font-weight: 700; color: var(--color-blue-point);} .detail-input.nights-select:disabled { background-color: #f0f0f0; color: #999; cursor: not-allowed; } .detail-input.pax-select { width: 34px; text-align: center; padding: 0;} .price-input-new { width: 75px; text-align: right; font-weight: 700; font-size: 1em; padding: 0 4px; border: 1px solid rgba(0,0,0,0.2); background: rgba(255,255,255,0.8); border-radius: 4px; height: 24px; color: var(--price-text-color); } .pax-wrapper { display: flex; gap: 2px; align-items: flex-end; } .options-row { padding-top: 4px; border-top: 1px dashed var(--border-light); } .option-group { display: flex; align-items: center; gap: 3px; } .option-label { font-size: 0.75em; font-weight: 600; color: var(--text-secondary); } .detail-input.option-select { width: auto; min-width: 50px; height: 24px;} .detail-input.checkbox { height: auto; margin: 0;} .memo-input-wide { width: 100%; border: 1px solid rgba(0,0,0,0.2); border-radius: 4px; padding: 2px 4px; font-family: inherit; font-size: 0.9em; box-sizing: border-box; background-color: rgba(255,255,255,0.7); flex-grow: 1; height: 24px;} select.detail-input, select.detail-input option { color: var(--text-primary) !important; background-color: var(--bg-white) !important; opacity: 1 !important; }



.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; justify-content: center; align-items: center; } .modal-container { background: var(--bg-white); width: 90%; max-width: 600px; max-height: 90vh; border-radius: var(--radius-base); box-shadow: 0 5px 15px rgba(0,0,0,0.2); display: flex; flex-direction: column; overflow: hidden; } .modal-header { padding: 15px; border-bottom: 1px solid var(--border-light); display: flex; justify-content: space-between; align-items: center; } .modal-title { font-size: 1.2em; font-weight: 700; margin: 0; } .btn-close-modal { background: none; border: none; font-size: 1.5em; cursor: pointer; } .modal-body { padding: 15px; overflow-y: auto; flex-grow: 1; } .modal-footer { padding: 10px 15px; border-top: 1px solid var(--border-light); text-align: right; background: #f9f9f9; }

.settings-tabs { display: flex; border-bottom: 1px solid var(--border-light); margin-bottom: 15px; } .tab-btn { padding: 8px 12px; border: none; background: none; cursor: pointer; font-weight: 600; color: var(--text-secondary); border-bottom: 2px solid transparent; } .tab-btn.active { color: var(--color-blue-point); border-bottom-color: var(--color-blue-point); } .tab-content { display: none; } .tab-content.active { display: block; } .setting-group { margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px dashed var(--border-light); } .setting-group h3 { font-size: 1.1em; margin-bottom: 8px; color: var(--text-primary); } .setting-row { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; flex-wrap: wrap; } .setting-label { font-weight: 600; min-width: 100px; font-size: 0.95em; } .setting-input { padding: 4px; border: 1px solid var(--border-light); border-radius: var(--radius-sm); font-size: 0.9em; } .setting-input[type="number"] { width: 60px; text-align: right; } .setting-input[type="checkbox"] { margin-right: 5px; } .room-list-item { display: flex; align-items: center; gap: 5px; background: #f5f5f5; padding: 5px; border-radius: 4px; margin-bottom: 4px; flex-wrap: wrap; font-size: 0.9em; } .room-list-item input { padding: 3px; border: 1px solid var(--border-light); font-size: inherit; border-radius: 2px; } .btn-xs { padding: 2px 6px; font-size: 0.8em; } .flex-grow { flex-grow: 1; }

.daily-total-revenue.mobile-only { display: none; } .daily-total-revenue.pc-only { display: inline; }

.room-form-container { display: block; }

.btn-add-booking-wrapper { padding: 15px; text-align: center; }

.btn-add-booking { background-color: var(--color-green); color: white; padding: 8px 16px; border-radius: 6px; font-weight: bold; border: none; cursor: pointer; transition: background 0.2s; font-size: 1em; width: 100%; }

.btn-add-booking:hover { background-color: #27ae60; }



@media screen and (min-width: 769px) { .btn-stepper { display: none !important; } .stepper-wrapper { display: inline-block; } .detail-input.sauna-pax-input { width: 50px !important; text-align: right; padding-right: 5px; -webkit-appearance: auto !important; -moz-appearance: auto !important; appearance: auto !important; } .detail-input.sauna-pax-input::-webkit-outer-spin-button, .detail-input.sauna-pax-input::-webkit-inner-spin-button { -webkit-appearance: inner-spin-button !important; opacity: 1 !important; height: auto !important; } }



/* ----------------------------------------------------------- [반응형 시스템] ----------------------------------------------------------- */

/* [Tablet Mode] 769px ~ 1100px */

@media screen and (max-width: 1100px) {

    .main-content-wrapper.panel-open .side-panel-section { position: fixed; top: 0; right: 0; bottom: 0; left: auto; width: 400px; max-width: 85%; height: 100%; margin: 0; padding: 15px; z-index: 1000; box-shadow: -5px 0 15px rgba(0,0,0,0.2); transform: translateX(100%); animation: slideInRight 0.3s forwards; flex-basis: auto; }

    .side-panel-section { position: fixed; right: 0; transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1); }

    .main-content-wrapper.panel-open + #panelOverlay { display: block; }

}

/* [Mobile Mode] 768px 이하 */

@media screen and (max-width: 768px) {

    .main-content-wrapper.panel-open .side-panel-section { width: 100%; max-width: 100%; border-radius: 0; }

    body { padding: 5px; } .login-card { width: 85% !important; max-width: 320px !important; padding: 25px; margin: 0 auto; box-sizing: border-box; } h1 { display: none; }

    .main-content-wrapper { order: 2; margin-bottom: 10px; display: block; } .summ-dashboard-container { order: 3; } .top-controls { order: 1; margin-bottom: 10px; flex-wrap: wrap; gap: 8px; justify-content: space-between; padding: 8px; }

    .control-group-left { display: none; } .control-group-right { width: 100%; justify-content: space-between; } .upload-box-group { flex-grow: 1; } .file-input-narrow { width: 120px; font-size: 0.8em; } .btn-unified-upload { font-size: 0.85em; padding: 5px 8px; } .btn-dashboard-link, .btn-settings { font-size: 0.9em; padding: 5px 8px; }

    th { padding: 4px 0; font-size: 0.9em; } td { padding: 0; min-height: auto; height: auto; } .date-header { margin-bottom: 0; padding: 1px 2px; } .date-number { width: 16px; height: 16px; font-size: 0.85em; } .circles-container { gap: 0; padding-top: 0; } .room-indicator-row { min-height: 13px; height: auto; margin-bottom: 0; padding-left: 1px; gap: 1px; align-items: center; flex-wrap: nowrap !important; border-bottom: none; overflow: hidden; } .status-single .booking-continuous-bar { display: none !important; } .room-abbr-text { font-size: 0.7em; min-width: auto; margin-right: 1px; } .source-circle { width: 12px; height: 12px; font-size: 0.65em; margin-right: 0; } .pax-count-display { font-size: 0.6em; margin-left: 0; letter-spacing: -1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    .daily-total-revenue.mobile-only { display: none !important; } .daily-total-revenue.pc-only { display: none !important; } .daily-cost-display { display: none !important; } .holiday-name { font-size: 0.7em; }

    .card-row { overflow-x: auto; padding-bottom: 2px; flex-wrap: nowrap; } .horizontal-input-group { gap: 3px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px;} .detail-input.source-select { width: 60px; } .setting-label { min-width: 70px; } .stepper-wrapper { display: flex; align-items: center; } .btn-stepper { width: 24px; height: 24px; padding: 0; border: 1px solid var(--border-light); background: var(--bg-white); cursor: pointer; font-weight: bold; color: var(--text-secondary); border-radius: 4px; margin: 0 2px; display: flex; justify-content: center; align-items: center;} .detail-input.sauna-pax-input { width: 30px; text-align: center; padding: 0 2px; -moz-appearance: textfield; } .detail-input.sauna-pax-input::-webkit-outer-spin-button, .detail-input.sauna-pax-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

}

@keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }

.loading-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.8); z-index: 2000; display: flex; justify-content: center; align-items: center; flex-direction: column; } .spinner { border: 4px solid #f3f3f3; border-top: 4px solid var(--color-blue-point); border-radius: 50%; width: 40px; height: 40px; animation: spin 1s linear infinite; margin-bottom: 10px; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

#loginOverlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-main); z-index: 3000; display: flex; justify-content: center; align-items: center; flex-direction: column; gap: 15px; } .login-card { background: var(--bg-white); padding: 30px; border-radius: var(--radius-base); box-shadow: var(--shadow-soft); text-align: center; width: 90%; max-width: 400px; } .login-card h2 { margin-top: 0; color: var(--text-primary); } .login-input { width: 100%; padding: 12px; margin: 15px 0; border: 1px solid var(--border-light); border-radius: var(--radius-sm); font-size: 1.1em; box-sizing: border-box; } .btn-login { width: 100%; padding: 12px; font-size: 1.2em; } #mainAppContainer { display: none; width: 100%; }