:root{
--bg:#121212;--panel:#fff;--panel2:#252525;--text:#f2f2f2;--muted:#0b4fd8;--border:#3a3a3a;
}
body{
    margin:0;
    padding:0;
    font-family:Arial,'Malgun Gothic',sans-serif;
    background:var(--bg);
}

.wrapper{
    width:100%;
    max-width:1800px;
    margin:20px auto;
    padding:20px;
    box-sizing:border-box;
}

.top-header{
    display:flex;
    justify-content:space-between;
    background:var(--panel2);
    color:var(--panel);
    padding:15px 20px;
}

.card{
    background:var(--panel);
    border-radius:8px;
    padding:20px;
    margin-top:20px;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
}

.main-menu{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
}

.menu-button{
    padding:40px;
    border:0;
    border-radius:8px;
    color:var(--panel);
    font-size:32px;
    cursor:pointer;
    transition:.2s;
}

.menu-button:hover{
    opacity:.9;
}

.purchase{
    background:#06038d; /* #0b4fd8; */
}

.repair{
    background:#570054;  /* #7b1fd1; */
}

.remind-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:15px;
}

.remind{
    background:#009688;
    font-size:20px;
}

.footer{
    text-align:center;
    color:var(--muted);
    margin:30px 0;
}

/* ==========================
   리마인드 센터
========================== */

.reminder-center{
    padding:0;
    overflow:hidden;
}

.reminder-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:var(--panel2);
    color:var(--panel);
    padding:16px 20px;
    font-size:22px;
    font-weight:bold;
}

#reminderSummary{
    margin-left:20px;
    font-size:18px;
    color:var(--border);
    font-weight:400;
}

.reminder-toggle{
    background:var(--panel);
    color:var(--text);
    border:0;
    border-radius:6px;
    padding:10px 28px;
    font-size:18px;
    font-weight:bold;
    cursor:pointer;
}

.reminder-body{
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    gap:0px; /*16px*/
    padding:0px; /*18px*/
}

.reminder-body.is-collapsed{
    display:none !important;
}

.reminder-column{
    display:flex;
    flex-direction:column;
    min-height:500px;
    border-radius:0px; /* 12px */
    padding:16px;
}

.reminder-column h3{
    margin-top:0;
    margin-bottom:14px;
    font-size:22px;
}

.reminder-past{
    background:#3a1f1f;
    border:0px solid #f3b3b3;
}

.reminder-today{
    background:var(--panel)7d6;
    border:0px solid #ecd46b; /* 1px */
}

.reminder-week{
    background:#1d3326;
    border:0px solid #98d7b0;
}

.reminder-card{
    background:var(--panel);
    border:1px solid var(--border);
    border-radius:8px;
    padding:13px;
    margin-bottom:12px;
    box-shadow:0 1px 4px rgba(0,0,0,.08);
}

.reminder-card-top{
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:7px;
    font-size:16px;
}

.reminder-status{
    display:inline-block;
    padding:4px 10px;
    border-radius:18px;
    font-size:13px;
    font-weight:bold;
}

.status-pending{
    background:var(--panel)3cd;
    color:#f4d35e;
    border:1px solid #6e5d1a;
}

.status-completed{
    background:#1d3a27;
    color:#8fe3a8;
    border:1px solid #2f6b42;
}

.reminder-model{
    font-size:15px;
    margin-bottom:5px;
}

.reminder-content{
    font-size:15px;
    line-height:1.45;

    overflow:hidden;

    display:-webkit-box;
    display:box;

    -webkit-box-orient:vertical;
    -webkit-line-clamp:3;

    line-clamp:3;
}

.reminder-buttons{
    display:flex;
    gap:8px;
    margin-top:10px;
}

.reminder-buttons button{
    border:0;
    background:#2f80ed;
    color:var(--panel);
    border-radius:5px;
    padding:8px 18px;
    font-size:15px;
    font-weight:bold;
    cursor:pointer;
}

.reminder-buttons button:hover{
    opacity:.9;
}

.reminder-empty{
    color:var(--muted);
    padding:10px 0;
}

/* ==========================
   모바일
========================== */

@media(max-width:768px){

    .wrapper{
        max-width:100%;
        margin:0;
        padding:10px;
    }

    .top-header{
        display:block;
        text-align:center;
        padding:12px;
    }

    .card{
        padding:15px;
        margin-top:15px;
    }

    .main-menu,
    .remind-grid{
        grid-template-columns:1fr;
        gap:12px;
    }

    .menu-button{
        width:100%;
        padding:28px 15px;
        font-size:26px;
        line-height:1.4;
    }

    .reminder-header{
        display:block;
        font-size:24px;
    }

    #reminderSummary{
        display:block;
        margin:8px 0 0 0;
        font-size:18px;
    }

    .reminder-toggle{
        width:100%;
        margin-top:12px;
    }

    .reminder-body{
        display:block;
    }

    .reminder-column{
        min-height:auto;
        margin-bottom:16px;
    }

    .reminder-card{
        font-size:18px;
    }

    .reminder-buttons button{
        flex:1;
        padding:12px;
        font-size:17px;
    }
}

/* ==========================
   출고예정
========================== */

.delivery-center{
    padding:0;
    overflow:hidden;
}

.delivery-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:#06038d; /*#0b4fd8; */
    color:var(--panel);
    padding:16px 20px;
    font-size:22px;
    font-weight:bold;
}

#deliverySummary{
    margin-left:20px;
    font-size:18px;
    color:#e5edff;
    font-weight:400;
}

.delivery-toggle{
    background:var(--panel);
    color:var(--text);
    border:0;
    border-radius:6px;
    padding:10px 28px;
    font-size:18px;
    font-weight:bold;
    cursor:pointer;
}

.delivery-body{
    padding:18px;
    background:#eef5ff;
    border:0px solid #6ea8fe;   /* 1px */
    border-top:0;
}

.delivery-list{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:14px;
}

.delivery-card{
    background:var(--panel);
    border:1px solid #d5e3ff;
    border-radius:8px;
    padding:14px;
    box-shadow:0 1px 4px rgba(0,0,0,.08);
}

.delivery-card-top{
    font-size:16px;
    font-weight:bold;
    margin-bottom:6px;
}

.delivery-model{
    font-size:15px;
    margin-bottom:6px;
}

.delivery-date{
    font-weight:bold;
    color:#0b4fd8;
    margin-bottom:6px;
}

.delivery-memo{
    font-size:14px;
    line-height:1.45;
    margin-bottom:10px;
    white-space:pre-line;
}

.delivery-buttons{
    display:flex;
    gap:8px;
}

.delivery-buttons button{
    border:0;
    background:#2f80ed;
    color:var(--panel);
    border-radius:5px;
    padding:8px 18px;
    font-size:15px;
    font-weight:bold;
    cursor:pointer;
}

.delivery-body.is-collapsed{
    display:none !important;
}

@media(max-width:768px){
    .delivery-header{
        display:block;
        font-size:24px;
    }

    #deliverySummary{
        display:block;
        margin:8px 0 0 0;
        font-size:18px;
    }

    .delivery-toggle{
        width:100%;
        margin-top:12px;
    }

    .delivery-list{
        grid-template-columns:1fr;
    }

    .delivery-buttons button{
        flex:1;
        padding:12px;
        font-size:17px;
    }
}

.footer{
    margin:40px 0 20px;
    text-align:center;
    font-size:13px;
    color:#888;
    line-height:1.8;
    letter-spacing:.5px;
}

/* ==========================
   정비예정
========================== */

.repair-schedule-center{
    padding:0;
    overflow:hidden;
}

.repair-schedule-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:#570054; /* #7b1fd1; */
    color:var(--panel);
    padding:16px 20px;
    font-size:22px;
    font-weight:bold;
}

#repairScheduleSummary{
    margin-left:20px;
    font-size:18px;
    color:#f1e7ff;
    font-weight:400;
}

.repair-schedule-toggle{
    background:var(--panel);
    color:var(--text);
    border:0;
    border-radius:6px;
    padding:10px 28px;
    font-size:18px;
    font-weight:bold;
    cursor:pointer;
}

.repair-schedule-body{
    padding:18px;
    background:#f4ecff;
    border:0px solid #c69bff; /* 1px */
    border-top:0;
}

.repair-schedule-body.is-collapsed{
    display:none !important;
}

.repair-schedule-list{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:14px;
}

.repair-schedule-card{
    background:var(--panel);
    border:1px solid #e1ccff;
    border-radius:8px;
    padding:14px;
    box-shadow:0 1px 4px rgba(0,0,0,.08);
}

.repair-schedule-top{
    font-size:16px;
    font-weight:bold;
    margin-bottom:6px;
}

.repair-schedule-model{
    font-size:15px;
    margin-bottom:6px;
}

.repair-schedule-date{
    font-weight:bold;
    color:#aa51a6;
    margin-bottom:6px;
}

.repair-schedule-content{
    font-size:14px;
    line-height:1.45;
    margin-bottom:10px;
    white-space:pre-line;
}

.repair-schedule-buttons{
    display:flex;
    gap:8px;
}

.repair-schedule-buttons button{
    border:0;
    background:#aa51a6;
    color:var(--panel);
    border-radius:5px;
    padding:8px 18px;
    font-size:15px;
    font-weight:bold;
    cursor:pointer;
}

@media(max-width:768px){
    .repair-schedule-header{
        display:block;
        font-size:24px;
    }

    #repairScheduleSummary{
        display:block;
        margin:8px 0 0 0;
        font-size:18px;
    }

    .repair-schedule-toggle{
        width:100%;
        margin-top:12px;
    }

    .repair-schedule-list{
        grid-template-columns:1fr;
    }

    .repair-schedule-buttons button{
        flex:1;
        padding:12px;
        font-size:17px;
    }
}
/* 고객 선택 모달: 구매등록/정비등록 공통 디자인 */
.customer-select-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0, 0, 0, .46);
    box-sizing: border-box;
}

.customer-select-dialog {
    width: 720px;
    max-width: 100%;
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
    padding: 22px;
    border-radius: 11px;
    background: var(--panel);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .34);
    font-family: "Malgun Gothic", sans-serif;
}

.customer-select-title {
    margin: 0 0 14px;
    color: #202020;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
}

.customer-select-count {
    margin-left: 4px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 400;
}

.customer-select-list {
    min-height: 0;
    max-height: 62vh;
    overflow-y: auto;
    border: 1px solid #d9d9d9;
    border-radius: 7px;
    background: var(--panel);
}

.customer-select-item {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px 12px;
    border: 0;
    border-bottom: 1px solid #e8e8e8;
    background: var(--panel);
    color: var(--panel2);
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.45;
    transition: background-color .12s ease, box-shadow .12s ease;
}

.customer-select-item:last-child {
    border-bottom: 0;
}

.customer-select-item:hover,
.customer-select-item:focus-visible {
    outline: none;
    background: #f5f8fb;
    box-shadow: inset 3px 0 0 #737f8a;
}

.customer-select-primary {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.customer-select-name {
    color: var(--panel2);
    font-size: 16px;
    font-weight: 700;
}

.customer-select-phone {
    color: #eee;
    font-size: 15px;
    font-weight: 400;
}

.customer-select-product {
    margin-top: 4px;
    color: #333;
    font-size: 15px;
    overflow-wrap: anywhere;
}

.customer-select-meta {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.customer-select-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.customer-select-cancel {
    min-width: 61px;
    background: var(--muted) !important;
}

@media (max-width: 600px) {
    .customer-select-modal {
        padding: 10px;
    }

    .customer-select-dialog {
        max-height: 90vh;
        padding: 17px;
        border-radius: 9px;
    }

    .customer-select-title {
        font-size: 20px;
    }

    .customer-select-item {
        padding: 12px;
    }

    .customer-select-meta {
        line-height: 1.55;
    }
}

.top-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 0px;
}

.menu-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 0;
}

.menu-btn {
    display: inline-block;
    background: #0b4fd8;/*#06038d;*/
    color: var(--panel);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
}

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

.menu-btn:active {
    transform: translateY(0);
}

/* 모바일에서는 숨김 */
@media (max-width: 1200px) {
    .mobile-hide {
        display: none !important;
    }
}

/* 모바일·태블릿에서 계산서, 가격라벨, 신규자전거등록 숨김 */
@media (max-width: 1200px) {
    .page-title .menu-wrap .menu-btn.mobile-hide {
        display: none !important;
    }
}