/* ================================
    반응형 디자인 (모바일 - 2열 유지)
================================ */

/* 태블릿 및 모바일 (768px 이하) */
@media (max-width: 768px) {
    .nav-left {
        padding: 10px 12px;
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-left > div:first-child {
        justify-content: center;
        flex: none;
    }

    .date-btn {
        width: 36px;
        height: 36px;
        font-size: 15px;
        border-width: 1.5px;
    }

    .date-text {
        font-size: 14px;
        min-width: 100px;
    }

    .icon-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
        border-width: 1.5px;
    }

    .nav-right {
        padding: 8px 12px;
        gap: 6px;
        flex-wrap: wrap;
    }

    .menu-btn {
        font-size: 13px;
        padding: 8px 12px;
        border-radius: 10px;
    }

    .all-totals {
        width: auto;
        margin-top: 0;
    }

    .total-num {
        font-size: 12px;
    }

    .total-sep {
        font-size: 8px;
    }

    .page-container {
        padding-top: 120px;
    }

    .page-section {
        padding: 16px 12px;
    }

    .section-title {
        font-size: 22px;
    }

    .order-box {
        padding: 16px;
        border-radius: 12px;
    }
}

/* 아주 작은 모바일 (375px 이하) */
@media (max-width: 375px) {
    .nav-left {
        padding: 8px 10px;
        gap: 4px;
    }

    .date-btn,
    .icon-btn {
        width: 34px;
        height: 34px;
        font-size: 14px;
        border-width: 1.5px;
    }

    .date-text {
        font-size: 13px;
        min-width: 90px;
    }

    .nav-right {
        padding: 6px 10px;
        gap: 5px;
        flex-wrap: wrap;
    }

    .menu-btn {
        font-size: 12px;
        padding: 7px 10px;
        border-radius: 8px;
    }

    .all-totals {
        margin-top: 0;
    }

    .total-num {
        font-size: 11px;
    }

    .total-sep {
        font-size: 7px;
    }

    .page-container {
        padding-top: 115px;
    }

    .page-section {
        padding: 12px 10px;
    }

    .order-box {
        padding: 14px;
    }
}
/* 등록일 배지 */
.regdate-badge {
  display: inline-block;
  padding: 2px 6px;
  font-size: 11px;
  line-height: 1;
  color: #555;
  background: #f5f7fa;
  border: 1px solid #e2e6ea;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 4px;
}

/* 결제구분 배지 (착불/선불) */
.payflag-badge {
    display: inline-block;
    padding: 2px 6px;
    font-size: 11px;
    line-height: 1;
    color: #555;
    background: #f5f7fa;
    border: 1px solid #e2e6ea;
    border-radius: 999px;
    vertical-align: middle;
    margin-left: 6px;
}
.payflag-badge.prepaid {
    color: #ffffff;
    background: #d32f2f;
    border-color: #b71c1c;
    font-weight: 600;
    font-size: 12px;
    padding: 3px 8px;
}

.rate-mini {
    font-size: 11px;
    color: #666;
    margin-left: 6px;
    display: inline-block;
}

/* ================================
    기본 색상 테마 (모던 & 프로페셔널)
================================ */
:root {
    /* Primary - 차분한 블루그레이 */
    --primary: #2c3e50;
    --primary-light: #34495e;
    --primary-dark: #1a252f;

    /* Accent - 민트/틸 */
    --accent: #16a085;
    --accent-light: #1abc9c;
    --accent-dark: #138d75;

    /* Background */
    --bg-main: #f8f9fa;
    --bg-card: #ffffff;
    --bg-hover: #ecf0f1;

    /* Text */
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --text-light: #95a5a6;

    /* Border */
    --border-light: #e1e8ed;
    --border-main: #bdc3c7;

    /* Status Colors */
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --info: #3498db;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
}

/* ================================
      전체 기본 스타일
================================ */
body {
    margin: 0;
    background: var(--bg-main);
    font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page-container {
    padding-top: 85px;
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    max-width: 1600px;
    margin: 0 auto;
}

.page-section {
    padding: 24px 20px;
    box-sizing: border-box;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--primary);
    letter-spacing: -0.5px;
}

/* ================================
      상단 네비바 (2열 레이아웃)
================================ */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    background: linear-gradient(to bottom, #ffffff 0%, #fafbfc 100%);
    border-bottom: 2px solid var(--border-light);
    display: flex;
    flex-direction: column;
    padding: 0;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(20px);
    box-sizing: border-box;
}

/* ================================
        1열: 날짜 컨트롤
================================ */
.nav-left {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: rgba(22, 160, 133, 0.03);
    border-bottom: 1px solid rgba(22, 160, 133, 0.1);
    flex-wrap: wrap;
}

.nav-left > div:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.date-btn {
    width: 40px;
    height: 40px;
    background: white;
    color: var(--accent);
    border: 2px solid var(--accent-light);
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(22, 160, 133, 0.15);
}

.date-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(22, 160, 133, 0.3);
}

.date-btn:active {
    transform: translateY(0) scale(1);
    box-shadow: 0 2px 6px rgba(22, 160, 133, 0.2);
}

.date-text {
    font-size: 17px;
    font-weight: 800;
    min-width: 120px;
    text-align: center;
    color: var(--primary);
    letter-spacing: -0.5px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 달력 & 엑셀 아이콘 */
.icon-btn {
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 19px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.icon-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(22, 160, 133, 0.25);
}

.icon-btn:active {
    transform: translateY(0) scale(1);
    box-shadow: 0 2px 6px rgba(22, 160, 133, 0.15);
}

/* ================================
        2열: 메뉴 + 합계
================================ */
.nav-right {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    padding: 10px 20px;
    background: white;
    flex-wrap: wrap;
}

.menu-btn {
    padding: 9px 8px;
    background: rgba(22, 160, 133, 0.05);
    border: 2px solid transparent;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: -0.3px;
}

.menu-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    background: var(--gradient-accent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-btn:hover {
    color: var(--accent);
    background: rgba(22, 160, 133, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 160, 133, 0.15);
}

.menu-btn:active {
    transform: translateY(0);
}

.menu-btn.active {
    color: white;
    background: var(--gradient-accent);
    font-weight: 800;
    box-shadow: 0 4px 16px rgba(22, 160, 133, 0.3);
}

.menu-btn.active::before {
    opacity: 0;
}

/* 합계: 순금액 / 배송비 / 수수료 */
.all-totals {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

.total-num {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -0.3px;
    line-height: 1;
}

#netDeliveryFee {
    color: #e91e63;
}

#totalDeliveryFee {
    color: #f44336;
}

#totalCommission {
    color: #1976d2;
}

.total-sep {
    font-size: 9px;
    color: var(--text-light);
    font-weight: 600;
    margin: 0 1px;
    opacity: 0.5;
}


/* ================================
        주문 카드 스타일 (모던 & 깔끔)
================================ */
.order-box {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.order-box:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.order-header {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary);
}

.sms-btn,
.acct-btn {
    font-size: 14px;
    color: var(--accent);
    font-weight: 600;
    transition: color 0.2s ease;
}

.sms-btn:hover,
.acct-btn:hover {
    color: var(--accent-dark);
}

/* ================================
       리스트 항목(기본 박스형)
================================= */

.order-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.order-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-light);
}

.order-item .badge {
    font-size: 13px;
    padding: 6px 8px;
    border-radius: 8px;
}

.same-addr {
  display: inline-block;
  background: #fff4e6;
  color: #d97706;
  border: 1px solid #ffd8a8;
  padding: 2px 6px;
  margin-left: 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}
/* previous sync-badge styles removed; using .same-addr for identical-address badges */

/* unlink button for grouped coords */
/* unlink-group removed */

.order-item a {
    color: var(--mint-dark);
    text-decoration: none;
}

.order-item .mt-2 {
    margin-top: 8px !important;
}

/* 연기/초과미상차 항목: 회색 박스 처리 */
.order-item.excluded {
    background: #e6e6e6; /* 조금 더 진한 회색 */
    border-color: #a8a8a8;
    color: #666;
    opacity: 0.98;
}
.order-item.excluded .product-names { color: #666; }
.order-item.excluded .infowindow-tel { color: #555 !important; }

.geo-failed {
    color: #dc3545; /* Bootstrap danger red */
    font-weight: 700;
    margin-left: 8px;
}

/* 옵션 라인 */
.product-options {
    margin-top: 4px;
    color: #555;
    font-size: 15px;
}

/* 선불/착불 등 결제형태 배지 */
.paytype-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    border-radius: 6px;
    background: #eef3ff;
    color: #1a3e9a;
    font-size: 12px;
    font-weight: 800;
}

/* 수량 스타일 */
.product-qty {
    color: #ff0000; /* 아주 빨간색 */
    font-weight: 700;
    font-size: 15px; /* 1포인트 정도 크게 */
}

/* 그룹된 같은집 박스: 기존 주문 카드(.order-item)를 감싸서 묶음으로 보여줌 */
.group-box {
    border: 1.6px solid #ffd29b; /* 더 진한 테두리 색 */
    background: linear-gradient(180deg, #fff8ea 0%, #fff0cc 100%); /* 풍부한 옐로우/오렌지 그라데이션 */
    padding: 12px;
    margin-bottom: 18px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(255, 185, 90, 0.08);
}
.group-box .group-header {
    font-size: 13px;
    color: #7a4b00; /* 더 진한 텍스트 컬러 */
    font-weight: 800;
    margin-bottom: 10px;
    background: rgba(255, 220, 150, 0.35);
    padding: 6px 10px;
    border-radius: 8px;
    display: inline-block;
}
.group-box .group-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 그룹 합계 표시: 헤더에서 빨간색으로 강조 */
.group-total { display: inline; color: #ff0000; font-weight: 800; }

/* 단일 주문 박스: 그룹박스와 동일 팔레트, 살짝 덜 강조 */
.single-box {
    border: 1.4px solid #ffdeaf;
    background: linear-gradient(180deg, #fffdf5 0%, #fff6e6 100%);
    padding: 10px;
    margin-bottom: 16px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(255, 185, 90, 0.06);
}
.single-box .order-item {
    margin-bottom: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

/* 외곽 박스: 연기/초과미상차 시 진한 회색 처리 */
.group-box.excluded-wrapper {
    border-color: #8f8f8f; /* 조금 더 진하게 */
    background: linear-gradient(180deg, #ededed 0%, #dcdcdc 100%);
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}
.group-box.excluded-wrapper .group-header {
    color: #4d4d4d;
    background: rgba(160, 160, 160, 0.30);
}
.single-box.excluded-wrapper {
    border-color: #909090; /* 조금 더 진하게 */
    background: linear-gradient(180deg, #f0f0f0 0%, #d9d9d9 100%);
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

/* Infowindow specific styles */
.infowindow-time {
    font-size: 16px !important;
    padding: 8px 10px !important;
    min-width: 140px;
    border-radius: 8px;
    border: 1px solid #d0c2a1;
    background: #fff;
}
.infowindow-tel {
    display: inline-block;
    margin-top: 6px;
    color: #1b5e20;
    font-weight: 700;
    text-decoration: none;
}
.infowindow-tel:hover { text-decoration: underline; }

/* delivery note inside infowindow */
.infowindow-note {
    margin-top: 8px;
    font-size: 13px;
    color: #5a4a2a;
    background: rgba(250,240,220,0.6);
    padding: 6px 8px;
    border-radius: 6px;
}

/* Redesigned infowindow card */
.infowindow-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #ececec;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    line-height: 1.45;
}
.infowindow-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.infowindow-name {
    font-size: 16px;
    font-weight: 800;
}
.infowindow-address {
    font-size: 14px;
    color: #444;
    margin-top: 8px;
    word-break: keep-all;
    overflow-wrap: anywhere;
}
.infowindow-products { margin-top: 8px; font-size: 15px; }
.infowindow-fee { margin-top: 8px; font-size: 13px; color: #666; }
.infowindow-controls { margin-top: 10px; }
.infowindow-list { margin-top: 10px; border-top: 1px solid #eee; padding-top: 10px; }
.infowindow-list-item { font-size: 13px; margin: 6px 0; padding: 4px 0; border-bottom: 1px solid #f5f5f5; }
.infowindow-total { margin-top: 8px; border-top: 1px solid #f0f0f0; padding-top: 8px; font-weight: 700; color: #ff0000; }

@media (max-width: 480px) {
    .infowindow-card {
        padding: 10px 12px;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.10);
        line-height: 1.35;
    }
    .infowindow-header { gap: 6px; margin-bottom: 4px; }
    .infowindow-name { font-size: 14px; }
    .infowindow-address { font-size: 13px; margin-top: 6px; }
    .infowindow-products { font-size: 13px; }
    .infowindow-fee { font-size: 12px; }
    .infowindow-list-item { font-size: 12px; }
    .infowindow-total { font-size: 13px; }
    .infowindow-card .infowindow-time { width: 100%; }
}

/* 리스트와 일반 UI용 시간 드롭다운을 더 크게 만들어 클릭/터치 편의성 향상 */
.time-dropdown {
    font-size: 15px;
    padding: 6px 10px;
    min-width: 120px;
    border-radius: 8px;
    border: 1px solid #dcdcdc;
    background: #fff;
    box-shadow: none;
}

/* 리스트 내부 시간 드롭다운 강제 적용(더 크고 읽기 쉬운 스타일) */
.order-item .time-dropdown {
    font-size: 15px;
    padding: 6px 10px;
    min-width: 130px;
}

/* 상태 드롭다운 스타일 */
.status-dropdown {
    font-size: 15px;
    padding: 6px 10px;
    min-width: 130px;
    border-radius: 8px;
    border: 1px solid #dcdcdc;
    background: #fff;
    box-shadow: none;
    margin-left: 8px;
}

/* 리스트 내부 상태 드롭다운 */
.order-item .status-dropdown {
    font-size: 15px;
    padding: 6px 10px;
    min-width: 140px;
}

/* 주소 링크을 리스트에서 검은색으로 표시 */
.order-item .address-link {
    color: var(--primary) !important;
    font-weight: 600;
}

/* 내비 앱 배지 */
.navi-links { margin-left: 8px; }
.navi-badge {
    display: inline-block;
    width: 22px; height: 22px;
    line-height: 22px; text-align: center;
    border-radius: 6px;
    margin-left: 4px;
    font-size: 12px; font-weight: 800;
    text-decoration: none;
    color: #fff;
}
.navi-badge.tmap { background: var(--danger); }
.navi-badge.kakao { background: #ffcd00; color:#222; }

/* 액션 버튼 배지 (M, 계좌) */
.action-badge {
    display: inline-block;
    width: 28px; height: 28px;
    line-height: 28px; text-align: center;
    border-radius: 8px;
    margin-left: 8px;
    font-size: 13px; font-weight: 900;
    text-decoration: none;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.action-badge:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.m-link.action-badge { background: var(--info); }
.custom-link.action-badge { background: var(--warning); }

/* 상품명 */
.product-names {
    font-weight: 600;
    color: var(--info);
    font-size: 19px;
}

/* 인포윈도우/리스트 전화번호 */
.infowindow-tel {
    color: var(--info) !important;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}
.infowindow-tel:hover {
    text-decoration: underline;
    color: var(--accent) !important;
}

/* ================================
        지도 영역
================================ */
.map-area {
    width: 100%;
    height: calc(100vh - 120px);
    border-radius: 12px;
    overflow: hidden;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

#mapPage {
    touch-action: none;
    padding: 0;
    width: 100%;
    margin: 0;
    height: auto;
}

/* 모바일에서 지도 및 기타 조정 */
@media (max-width: 768px) {
    .time-dropdown, .infowindow-time {
        font-size: 16px;
        padding: 8px 12px;
        min-width: 140px;
    }

    .status-dropdown {
        font-size: 16px;
        padding: 8px 12px;
        min-width: 150px;
    }

    #mapPage {
        width: 100vw;
        margin: 0;
        padding: 0 !important;
        height: auto;
        overflow: hidden;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }

    .map-area {
        width: 100vw;
        height: calc(100vh - 160px);
        border-radius: 0;
        margin: 0;
        position: relative;
    }
}

/* ================================
        대시보드 (모던 카드 디자인)
================================ */
.dash-card-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 8px;
}

.dash-card {
    background: var(--bg-card);
    padding: 24px 20px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.dash-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.dash-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-light);
}

.dash-card:hover::before {
    transform: scaleX(1);
}

.dash-icon {
    font-size: 36px;
    color: var(--accent);
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.dash-card:hover .dash-icon {
    transform: scale(1.1);
}

.dash-value {
    font-size: 28px;
    font-weight: 800;
    margin: 12px 0 8px;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.dash-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .dash-card-row {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
    }

    .dash-card {
        padding: 18px 16px;
    }

    .dash-icon {
        font-size: 28px;
    }

    .dash-value {
        font-size: 22px;
    }
}

/* ================================
        설정 페이지
================================ */
.memo-box {
    width: 100%;
    height: 140px;
    border-radius: 10px;
    border: 1.5px solid var(--gray);
    padding: 10px;
    font-size: 16px;
}

.account-input-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.account-textarea {
    flex: 1;
    height: 80px;
    border-radius: 8px;
    border: 1.5px solid var(--gray);
    padding: 10px;
    font-size: 15px;
    resize: vertical;
    font-family: inherit;
}

.account-box {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 20px;
    margin-top: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.account-box:hover {
    box-shadow: var(--shadow-md);
}

.account-save-btn {
    background: var(--accent);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    min-width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.account-save-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.rate-view-btn {
    background: var(--accent);
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    min-width: 120px;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.rate-view-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.save-btn {
    background: var(--accent);
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.save-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.login-btn {
    background: var(--gradient-accent);
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.login-btn i {
    font-size: 20px;
}

.logout-btn {
    background: var(--danger);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 숨김 */
.d-none {
    display: none !important;
}

/* ================================
   데스크탑(넓은 화면) 분할 뷰: 왼쪽 리스트, 오른쪽 지도
   화면이 넓을 때(예: >= 992px) 리스트와 지도를 50/50으로 나누어 표시
================================ */
@media (min-width: 992px) {
    .page-container {
        display: flex;
        gap: 20px;
        align-items: flex-start;
    }

    /* 분할 레이아웃은 body.split-view 일 때만 적용 */
    .split-view #orders, .split-view #mapPage {
        display: block !important;
        width: 50%;
        box-sizing: border-box;
        padding: 16px;
        height: calc(100vh - 70px);
        overflow: auto;
    }

    /* 지도는 분할 모드에서 꽉 차게 표시 */
    .split-view #map {
        width: 100% !important;
        height: calc(100vh - 90px) !important;
        min-height: 600px;
    }
    
    .split-view .map-area {
        width: 100% !important;
        height: 100% !important;
    }

    /* 대시보드나 설정은 기존 동작 유지 (필요 시 직접 선택해서 표시) */
}

