
        body { font-family: 'Malgun Gothic', '맑은 고딕', sans-serif; background-color: #f4f7f6; color: #333; margin: 0; padding: 20px; }
        .container { max-width: 95%; margin: auto; background-color: #fff; padding: 25px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
        h1 { text-align: center; color: #1a73e8; margin-bottom: 5px; }
        #currentDate { text-align: center; margin-top: 0; margin-bottom: 20px; color: #555; font-weight: bold; }
        
        .view-controls { display: flex; gap: 10px; margin-bottom: 15px; }
        .view-btn { padding: 12px 20px; font-size: 16px; font-weight: bold; cursor: pointer; border: 1px solid #1a73e8; border-radius: 4px; color: #1a73e8; background-color: white; transition: background-color 0.3s, color 0.3s; }
        .view-btn.active { background-color: #1a73e8; color: white; }

        .controls-container { display: flex; justify-content: center; align-items: center; gap: 15px; margin-bottom: 20px; flex-wrap: wrap; }
        #searchInput { width: 30%; min-width: 250px; padding: 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 16px; }
        .control-btn { padding: 12px 20px; font-size: 16px; font-weight: bold; cursor: pointer; border: none; border-radius: 4px; color: white; transition: background-color 0.3s; }
        #editModeBtn { background-color: #28a745; }
        #cancelEditBtn { background-color: #dc3545; }
        #cancelEditBtn { background-color: #dc3545; }
        #editModeBtn.active { background-color: #dc3545; }
        #compareBtn { background-color: #ff8c00; }
        #addModelBtn, #addStoreBtn { background-color: #007bff; display: none; }
        .delete-btn, .delete-col-btn { background-color: #dc3545; color: white; border: none; padding: 5px 10px; border-radius: 3px; cursor: pointer; }
        .delete-col-btn { margin-left: 5px; font-size: 10px; padding: 2px 5px; }
        .adjustment-controls { margin-top: 5px; display: flex; align-items: center; justify-content: center; gap: 4px; }
        .adjustment-controls input { width: 60px; text-align: center; }

        #competitor-controls { display: none; padding: 10px; border: 1px solid #e0e0e0; border-radius: 4px; margin-bottom: 20px; }
        #store-selector { display: none; border-top: 1px solid #e0e0e0; margin-top: 10px; padding-top: 10px; }
        #store-selector label { margin-right: 15px; display: inline-block; }

        .tab-container { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #ccc; margin-bottom: 20px; }
        .tab { overflow: hidden; }
        .tab button { background-color: inherit; float: left; border: none; outline: none; cursor: pointer; padding: 14px 20px; transition: 0.3s; font-size: 18px; font-weight: bold; }
        .tab button:hover { background-color: #f1f1f1; }
        .tab button.active { background-color: #1a73e8; color: white; }
        
        .tabcontent { display: none; animation: fadeEffect 0.5s; overflow-x: auto; }
        @keyframes fadeEffect { from {opacity: 0;} to {opacity: 1;} }

/* Top scrollbar is hidden by default */
.top-scrollbar {
    display: none;
    overflow-x: auto;
    overflow-y: hidden;
}
.top-scrollbar div {
    height: 1px;
}

/* In EDIT MODE, show top scrollbar and hide the bottom one */
.edit-mode .top-scrollbar {
    display: block;
}
.edit-mode .tabcontent::-webkit-scrollbar {
    display: none;
}
.edit-mode .tabcontent {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
        
        table { width: 100%; border-collapse: collapse; margin-top: 10px; }
        th, td { border: 1px solid #ddd; padding: 6px; text-align: center; font-size: 12px; vertical-align: top; }
        th { background-color: #e9ecef; font-weight: bold; position: relative; white-space: pre-wrap; }
        .ilta-store-col, .competitor-col { min-width: 140px; }
        th .header-content { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
        th input, th textarea { width: 100%; padding: 8px; box-sizing: border-box; border: 1px solid #007bff; border-radius: 3px; text-align: center; font-size: 13px; min-width: 100px; font-family: inherit; }
        th textarea { resize: vertical; min-height: 38px; line-height: 1.4; }
        tr:nth-child(even) { background-color: #f9f9f9; }
        th:first-child, td:first-child { min-width: 100px; }
        td:first-child { font-weight: bold; text-align: left; word-break: keep-all; }
        td {}
        td input { width: 100%; padding: 8px; box-sizing: border-box; border: 1px solid #1a73e8; border-radius: 3px; text-align: center; font-size: 13px; }

        .price-down { color: #007bff; font-weight: bold; }
        .price-up { color: #dc3545; font-weight: bold; }
        .comparison-text { font-size: 10px; color: #555; display: block; margin-top: 4px; }

        .hidden-col { display: none; }

        /* View mode styles */
        .ilta-view .competitor-col, .ilta-view #compareBtn, .ilta-view #competitor-controls, .ilta-view #addStoreBtn { display: none; }
        .competitor-view .ilta-store-col { display: none; }
        .edit-mode .delete-col, .edit-mode .delete-col-btn, .edit-mode .adjustment-controls { display: flex; }
        .delete-col, .delete-col-btn, .adjustment-controls { display: none; }
        .ilta-view table, .select-view-active table { width: auto; margin: 0 auto; }
        .competitor-view #competitor-controls { display: block; }

        @media (max-width: 768px) {
            body { padding: 5px; }
            .container { max-width: 100%; padding: 10px; }
            .controls-container { flex-direction: column; align-items: stretch; }
            #searchInput { width: 100%; }
            .view-btn, .control-btn { font-size: 14px; padding: 10px 15px; }
            .tab button { font-size: 16px; padding: 12px 10px; }
            th, td { padding: 6px; font-size: 12px; }
            thead th { position: -webkit-sticky; position: sticky; top: 0; z-index: 3; background-color: #e9ecef; }
            th:first-child, td:first-child { position: -webkit-sticky; position: sticky; left: 0; z-index: 2; background-color: #f2f2f2; }
            thead th:first-child { z-index: 4; }
        }

.date-input {
    display: block;
    width: 300px;
    margin: 0 auto 20px auto;
    padding: 8px;
    font-size: 16px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-weight: bold;
}
