/* 헤더 구성 */
/* ----------------------------------------------------------------------- */
.toll-header {
    min-height: 88px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.toll-header-row1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
}

.toll-header-logo {
    flex-shrink: 0;
}

.toll-header-row2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 3px;
    min-height: 32px;
}

.toll-header-title {
    flex: 1;
    min-width: 0;
    margin-right: 10px;
}

.toll-header-menu-wrap {
    position: relative;
}

.toll-header-menu-btn {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    background: #ffffff;
    border: 1px solid #ddd;
    padding: 6px 12px;
    border-radius: .3rem;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.toll-header-menu-btn.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    min-width: 44px;
    min-height: 34px;
    border: none;
}

.toll-header-menu-btn.hamburger-btn .hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: #333;
    border-radius: 1px;
    transition: background 0.2s;
}

.toll-header-menu-btn.hamburger-btn:hover .hamburger-line,
.toll-header-menu-btn.hamburger-btn:focus .hamburger-line {
    background: #2095f4;
}

.toll-header-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    min-width: 160px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: .3rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    z-index: 1050;
    padding: 4px 0;
}

.toll-header-menu.open {
    display: block;
}

.toll-header-menu a {
    display: block;
    padding: 10px 14px;
    font-size: 0.9rem;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

.toll-header-menu a:hover {
    background: #f5f5f5;
}
.toll-header-menu-divider {
    height: 1px;
    margin: 6px 10px;
    background: #e5e7eb;
}
/* ----------------------------------------------------------------------- */

/* 모바일 가독성: 본문 보조문구도 14px 아래로 내려가지 않도록 제한 */
/* ----------------------------------------------------------------------- */
#tax-block,
#unpaid-block,
.modal {
    font-size: 15px;
    line-height: 1.5;
}

#tax-block p,
#unpaid-block p,
#tax-block .alert,
#unpaid-block .alert,
#tax-block .text-muted,
#unpaid-block .text-muted,
.modal p,
.modal .alert,
.modal .guide-content-text {
    line-height: 1.55;
}

#tax-block .small,
#unpaid-block .small,
#tax-block small,
#unpaid-block small,
#tax-block .text-muted.small,
#unpaid-block .text-muted.small,
#tax-block .font-size-12,
#unpaid-block .font-size-12,
#tax-block .font-size-13,
#unpaid-block .font-size-13 {
    font-size: 14px !important;
    line-height: 1.55;
}

#taxLandingGuide {
    font-size: 15px !important;
    line-height: 1.55;
    text-align: left !important;
}

#taxInfoSummary,
#taxOfficeSummary {
    font-size: 14px !important;
    line-height: 1.55;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.tax-landing-summary-empty {
    background-color: #f8f9fa !important;
    border-color: #e9ecef !important;
    color: #666 !important;
}

.tax-landing-summary-filled {
    background-color: #eef7ff !important;
    border-color: #b8defc !important;
    color: #1f5f93 !important;
    font-weight: 600;
}

.tax-landing-summary-filled strong {
    color: #0d6fb8;
}

.tax-landing-unsaved-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    vertical-align: middle;
    color: #9a6700;
    background: #fff7e0;
    border: 1px solid #f0d78c;
}

.tax-landing-summary-unsaved {
    background-color: #fffaf0 !important;
    border-color: #f0d78c !important;
    color: #6b4e00 !important;
}

/* 랜딩·재사용·수수료 UX */
.tax-fee-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
}
.tax-fee-badge {
    background: #eef7ff;
    color: #1a7bc4;
    border-color: #b8defc;
}
.confirm-consent-details > summary {
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.confirm-consent-details > summary::-webkit-details-marker {
    display: none;
}
.confirm-consent-details > summary::before {
    content: '› ';
    color: #64748b;
}
.confirm-consent-details[open] > summary::before {
    content: '▾ ';
}
.tax-guide-headline {
    font-size: 1.15rem;
    line-height: 1.45;
    margin: 16px 0 0;
}
.tax-guide-points {
    list-style: none;
    counter-reset: tax-guide-point;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tax-guide-points > li {
    counter-increment: tax-guide-point;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f4f8ff;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #444;
    line-height: 1.4;
}
.tax-guide-points > li::before {
    content: counter(tax-guide-point);
    flex-shrink: 0;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: #2095f4;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.35rem;
    text-align: center;
}
.service-info-list {
    font-size: 0.9rem;
    line-height: 1.55;
    color: #334155;
}
.service-info-list li + li {
    margin-top: 6px;
}
.service-info-legal {
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.service-info-legal-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 4px;
}
.service-info-legal-body {
    font-size: 0.88rem;
    color: #334155;
    margin-bottom: 6px;
}
.service-info-legal-note {
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.45;
}
.tax-reuse-banner {
    background: #eef7ff;
    border: 1px solid #b8defc;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 12px;
}
.tax-reuse-banner-title {
    font-weight: 700;
    color: #1f5f93;
    margin-bottom: 2px;
}
.tax-reuse-banner-desc {
    font-size: 0.85rem;
    color: #4a6d8c;
}
.tax-reuse-banner-btn {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1f5f93;
    background: #d6ecff;
    border: 1px solid #a8d4f8;
    border-radius: 6px;
    padding: 4px 12px;
    cursor: pointer;
    transition: background 0.15s;
    display: inline-block;
}
.tax-reuse-banner-btn:hover {
    background: #bce0ff;
    color: #124e80;
}
.tax-fee-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
}
.tax-fee-summary-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}
.tax-fee-summary-value {
    font-weight: 800;
    color: #0d6b3a;
}
.tax-fee-summary.is-paid .tax-fee-summary-value {
    color: #1a7bc4;
}
.office-preview-item.is-returning {
    border-color: #b8defc !important;
    background: #f7fbff;
}
.office-preview-item.is-new-office {
    border-color: #f0d78c !important;
    background: #fffdf5;
}
.office-preview-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 6px;
}
.office-preview-badge.same {
    background: #e8f6ee;
    color: #0d6b3a;
}
.office-preview-badge.fresh {
    background: #fff8e6;
    color: #8a5a00;
}
.office-pdf-collapse-btn {
    font-size: 0.8rem;
}
.tax-guide-points li {
    margin-bottom: 6px;
    line-height: 1.45;
}
#taxLandingGuide.alert-info {
    background: #eef7ff;
    border-color: #b8defc;
    color: #1f5f93;
}
#taxLandingGuide.alert-warning {
    background: #fff8e6;
    border-color: #f0d78c;
    color: #6b4e00;
}
/* ----------------------------------------------------------------------- */

/* 앱 설치 안내 모달 */
/* ----------------------------------------------------------------------- */
.pwa-install-guide-body .pwa-install-step {
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: .35rem;
    border-left: 3px solid #2095f4;
}
/* ----------------------------------------------------------------------- */

/* 최근 내역 불러오기 버튼 */
/* ----------------------------------------------------------------------- */
.recent-tax-button {
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
    background-color: #1a7bc4;
    border: 1px solid #1a7bc4;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: .3rem;
    transition: background-color 0.2s, color 0.2s;
}
/* ----------------------------------------------------------------------- */

/* 탭 네비게이션 */
/* ----------------------------------------------------------------------- */
.nav-tabs-custom {
    display: flex;
    padding: 0;
    background: transparent;
}
.nav-tabs-custom .nav-item {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.nav-tabs-custom .nav-link {
    display: inline-block;
    text-align: center;
    color: #666;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 0px;
    margin: 0 0 -2px 0;
    transition: color 0.1s, border-color 0.1s, font-weight 0.1s;
}
.nav-tabs-custom .nav-link:hover {
    color: #2095f4;
    border-bottom-color: #2095f4;
}

.nav-tabs-custom .nav-link.active {
    display: block;
    width: 100%;
    color: #2196F3 !important;
    font-weight: 700;
    border-bottom-color: #2196F3;
}
/* ----------------------------------------------------------------------- */


/* 세금계산서 신청 내역 화면과 동일: 배경 회색, 카드 블록 흰색 */
.content-section {
    background-color: #f5f5f5;
    padding: 15px 0 0 0;
}

.form-section {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
        
.form-label-section {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    min-width: 70px;
}

.btn-primary {
    background-color: #2095f4 !important;
    border-color: #2095f4 !important;
    color: #fff !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
    background-color: #1a7bc4 !important;
    border-color: #1a7bc4 !important;
    color: #fff !important;
}
.btn-primary:disabled,
.btn-primary.disabled {
    background-color: #2095f4 !important;
    border-color: #2095f4 !important;
    opacity: 0.65;
}

.btn-primary-custom {
    background-color: #2095f4;
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    margin-top: 20px;
    color: #fff;
    -webkit-tap-highlight-color: transparent;
}
.btn-primary-custom:hover,
.btn-primary-custom:focus,
.btn-primary-custom:active {
    background-color: #2095f4;
    color: #fff;
    border: none;
    box-shadow: none;
    outline: none;
}
        
.btn-secondary-custom {
    background-color: #6c757d;
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    min-width: 70px;
    margin-top: 20px;
    color: #fff;
    -webkit-tap-highlight-color: transparent;
}
.btn-secondary-custom:hover,
.btn-secondary-custom:focus,
.btn-secondary-custom:active {
    background-color: #6c757d;
    color: #fff;
    border: none;
    box-shadow: none;
    outline: none;
}

        
.step-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 0 20px;
}

/* 신청서류·신청정보(1~2단계): 상단 단계바는 해당 2단계만 */
.step-indicator.step-indicator--docs-info-only #step3-indicator,
.step-indicator.step-indicator--docs-info-only #step4-indicator {
    display: none !important;
}
.step-indicator.step-indicator--docs-info-only #step2-indicator::after {
    display: none !important;
}

.hidden {
    display: none !important;
}
.tax-step.hidden {
    display: none !important;
}

.form-sublabel {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.step-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 60%;
    width: 80%;
    height: 2px;
    background-color: #dee2e6;
    z-index: 0;
}

.step-item.active:not(:last-child)::after {
    background-color: #4a90e2;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}

.step-item.active .step-number {
    background-color: #4a90e2;
    color: white;
}

.step-item.completed .step-number {
    background-color: #28a745;
    color: white;
}

.step-number.check::before {
    content: '✓';
    font-size: 18px;
    font-weight: bold;
}

.step-number.check::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    top: 7px;
    left: 11px;
}

.step-label {
    font-size: 12px;
    color: #999;
}

.step-item.active .step-label {
    color: #333;
    font-weight: 600;
}

.file-upload-section {
    margin-bottom: 20px;
}

.file-upload-box {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 3px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.file-upload-box:hover {
    border-color: #4a90e2;
    background-color: #f0f8ff;
}

.file-upload-box.dragover {
    border-color: #4a90e2;
    background-color: #e3f2fd;
}

.file-upload-box--reused {
    border: 2px solid #4caf80;
    background-color: #f2fbf6;
}

.file-upload-box--reused:hover {
    border-color: #388e5c;
    background-color: #e8f7ef;
}

.file-upload-icon {
    font-size: 40px;
    color: #999;
    margin-bottom: 10px;
}

.file-upload-text {
    color: #666;
    font-size: 14px;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.file-preview-pdf-wrap {
    width: 100%;
    background: #fff;
}

.file-preview-pdf-frame {
    width: 100%;
    min-height: 280px;
    border: 0;
    display: block;
    background: #fff;
}

.file-preview-pdf-wrap canvas {
    width: 100% !important;
    height: auto !important;
    display: block;
}

.file-preview-in-box {
    position: relative;
}

.file-preview-remove-box {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: 2px solid white;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background-color 0.2s;
    padding: 0;
}

.file-preview-remove-box:hover {
    background-color: rgba(220, 53, 69, 0.9);
}

.file-preview-remove-box::before {
    content: '×';
    font-size: 20px;
    font-weight: bold;
}

/* 하이패스 사본 미리보기 컨테이너 */
.hipass-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    min-height: 50px;
    padding: 10px;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px dashed #dee2e6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.hipass-preview-container:empty::before {
    content: '첨부된 현금 영수증이 없습니다';
    display: block;
    text-align: center;
    color: #999;
    padding: 20px;
    grid-column: 1 / -1;
}

/* 하이패스 사본 미리보기 아이템 */
.hipass-preview-item {
    position: relative;
    border: 1px solid #dee2e6;
    border-radius: 7px;
    overflow: hidden;
    background-color: white;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hipass-preview-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 영수증 썸네일 */
.hipass-preview-in-box {
    width: 100%;
    height: 150px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

.hipass-preview-in-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview-info {
    padding: 8px;
    background-color: white;
}

.file-preview-name {
    font-size: 12px;
    color: #333;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 4px;
}

.file-preview-size {
    font-size: 11px;
    color: #999;
}

/* Step 2 민자선택: 화면 단위 높이, 목록만 스크롤 + 하단 버튼 고정 (숨김 시 노출 안 됨) */
.tax-step-offices:not(.hidden) {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 231px);
    min-height: 320px;
    max-height: calc(100vh - 231px);
    overflow: hidden;
}
.tax-step-offices:not(.hidden) .step2-scroll-wrap {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 0;
    padding: 5px 15px 7px 15px;
}
.tax-step-offices:not(.hidden) .step2-btn-bar {
    flex-shrink: 0;
    padding: 12px 0 0;
    border-top: 1px solid #dee2e6;
    background: #fff;
    display: flex;
    gap: 10px;
    align-items: stretch;
    margin-top: 0;
    padding: 15px 15px 0 15px;
}
.tax-step-offices:not(.hidden) .step2-btn-bar .btn {
    margin-top: 0;
}
.tax-step-offices:not(.hidden) .step2-btn-bar .step2-next-btn {
    flex: 1;
}

/* 민자선택 — 전체 선택 / 전체 해제 버튼 간격 (main.css에 gap-* 유틸 없음) */
.tax-office-bulk-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 0.75rem;
}

/* 비신청기간 민자 선택(step3): 상단 단계바(#stepIndicator) 숨김 → 사용 가능 높이만큼 패널 확장, 하단 버튼을 화면 하단에 맞춤 */
.tax-step-offices.tax-step-offices--no-step-bar:not(.hidden) {
    height: calc(100vh - 168px);
    max-height: calc(100vh - 168px);
    min-height: 320px;
}

/* 추가 버튼 */
.btn-add-info {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
    background-color: #1a7bc4;
    border: 1px solid #1a7bc4;
    padding: 5px 10px;
    margin-bottom: 4px;
    cursor: pointer;
    border-radius: .3rem;
    transition: background-color 0.2s, color 0.2s;
}

/* Step 1, 3, 4: 화면 단위 높이, 내용 스크롤 + 하단 버튼 고정 (숨김 시 노출 안 됨) */
.toll-fixed-footer:not(.hidden) {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 231px);
    min-height: 320px;
    max-height: calc(100vh - 231px);
    overflow: hidden;
}
.toll-fixed-footer:not(.hidden) .toll-scroll-wrap {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 0;
    padding: 0 15px;
}
.toll-fixed-footer:not(.hidden) .toll-btn-bar {
    flex-shrink: 0;
    padding: 12px 0 0;
    border-top: 1px solid #dee2e6;
    background: #fff;
    display: flex;
    gap: 10px;
    align-items: stretch;
    margin-top: 0;
    padding: 15px 15px 0 15px;
}
.toll-fixed-footer:not(.hidden) .toll-btn-bar .btn {
    margin-top: 0;
}
.toll-fixed-footer:not(.hidden) .toll-btn-bar .btn-primary-custom {
    flex: 1;
}

/* 차량번호 박스 */
/* ----------------------------------------------------------------------- */
.unpaid-car-box {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    border-radius: 18px;
    padding: 10px;
    margin-bottom: 20px;
}

.unpaid-car-label {
    display: block;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.unpaid-car-input-group {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 9px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.unpaid-car-svg-icon {
    width: 24px;
    height: 24px;
    color: #999;
    flex-shrink: 0;
}

.unpaid-car-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 18px;
    font-weight: 500;
    color: #333;
    background: transparent;
}

.unpaid-car-input::placeholder {
    color: #999;
}
/* ----------------------------------------------------------------------- */

/* 일반 섹션 (기본은 세로 레이아웃) */
.unpaid-section {
    margin-bottom: 20px;
}

.unpaid-section-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

/* 가로 레이아웃 섹션 (소유구분, 성별) */
.unpaid-section-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.unpaid-section-row .unpaid-section-label {
    margin-bottom: 0;
    flex-shrink: 0;
}

.unpaid-section-row .unpaid-button-group {
    flex-shrink: 0;
}

/* 버튼 그룹 (개인/회사, 남/여) */
.unpaid-button-group {
    display: flex;
    gap: 10px;
}

/* 소유구분(개인/회사): 디자인 - pill 형태, 매우 둥근 모서리, 비선택=흰배경+연한 파란 테두리 */
#unpaid-input-block > .unpaid-section-row .unpaid-option-btn {
    min-width: 72px;
    background-color: #ffffff;
    border: 1px solid #2196F3;
    border-radius: 20px;
    padding: 7px 42px;
    font-size: 15px;
    font-weight: 500;
    color: #444;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

#unpaid-input-block > .unpaid-section-row .unpaid-option-btn-active {
    background-color: #2196F3;
    border-color: #2196F3;
    color: #ffffff;
}

#unpaid-input-block > .unpaid-section-row .unpaid-option-btn:hover:not(.unpaid-option-btn-active) {
    border-color: #1976D2;
    color: #1976D2;
}

/* 성별(남/여): 디자인 - 작은 둥근 버튼(4~6px), 연한 회색 테두리 */
#owner-info .unpaid-option-btn {
    min-width: 56px;
    background-color: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 20px;
    padding: 7px 28px;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

#owner-info .unpaid-option-btn-active {
    background-color: #2196F3;
    border-color: #2196F3;
    color: #ffffff;
}

#owner-info .unpaid-option-btn:hover:not(.unpaid-option-btn-active) {
    border-color: #adb5bd;
    color: #212529;
}

/* 공통: 미지정 시 기본 옵션 버튼 (다른 탭/페이지 영향 최소화) */
.unpaid-option-btn {
    min-width: 80px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #444;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.unpaid-option-btn-active {
    background-color: #2196F3;
    border-color: #2196F3;
    color: #ffffff;
}

/* 텍스트 입력 필드 (소유주명, 생년월일, 사업자번호) */
.unpaid-text-input {
    width: 100%;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 16px;
    color: #333;
    outline: none;
    transition: all 0.2s ease;
}

.unpaid-text-input:focus {
    background-color: #ffffff;
    border-color: #2095f4;
}

.unpaid-text-input::placeholder {
    color: #aaa;
}

/* 조회 버튼 - 디자인: 밝은 파란색, 8~12px 둥근 모서리, 넉넉한 높이(50~56px) */
.unpaid-submit-button {
    width: 100%;
    min-height: 52px;
    background-color: #2196F3;
    border: none;
    border-radius: 10px;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-top: 28px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.unpaid-submit-button:hover,
.unpaid-submit-button:focus,
.unpaid-submit-button:active {
    background-color: #1976D2;
    outline: none;
    box-shadow: none;
}

.unpaid-count-badge {
    position: relative;
    top: -3px;
    color: #ffffff !important;
    background-color: #d92550 !important;
    font-weight: 700;
    min-width: 24px;
    padding: 4px 7px;
}

/* Font 색상 */
/* ----------------------------------------------------------------------- */
.font-color-main {
    color: #134489;
}

.font-color-highlight {
    color: #1c7ed6;
}

.font-color-white {
    color:white;
}

.font-color-gray {
    color:#909090;
}

.font-color-gray-light {
    color:#F3F5F7;
}

.font-color-black-light {
    color:#4B535D;
}

.font-color-black {
    color: #353535;
}

.font-color-red {
    color: #ff0000;
}

.font-color-danger {
    color: #d92550;
}

.font-color-warning {
    color: #f7b924;
}

.font-color-blue {
    color: #0000ff;
}

.font-bold {    
    font-weight:700;
}
/* ----------------------------------------------------------------------- */

/* Font 크기 */
/* ----------------------------------------------------------------------- */
.font-size-12 {
    font-size: 12px !important;
}

.font-size-13 {
    font-size: 13px !important;
}

.font-size-14 {
    font-size: 14px !important;
}

.font-size-15 {
    font-size: 15px !important;
}

.font-size-16 {
    font-size: 16px !important;
}

.font-size-18 {
    font-size: 18px !important;
}

.font-size-19 {
    font-size: 19px !important;
}

.font-size-20 {
    font-size: 20px !important;
}

.font-size-24 {
    font-size: 24px !important;
}

.font-size-33 {
    font-size: 33px !important;
}

.font-size-36 {
    font-size: 36px !important;
}

.font-size-96 {
    font-size: 96px !important;
}
/* ----------------------------------------------------------------------- */


/* 세금계산서 신청 내역 */
/* ----------------------------------------------------------------------- */
/* 헤더 */
.invoice-list-header {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.invoice-list-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #ffffff;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.invoice-list-header-title {
    flex: 1;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

/* 컨테이너: 상단(설명·검색·메시지) 고정, 카드 영역만 스크롤 */
.invoice-list-container {
    background-color: #f5f5f5;
    height: calc(100vh - 64px);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.invoice-list-container .invoice-list-desc,
.invoice-list-container .invoice-list-search-section,
.invoice-list-container .invoice-list-msg {
    flex-shrink: 0;
}

.invoice-list-container .invoice-list-empty {
    flex-shrink: 0;
}

/* 검색 영역 */
.invoice-list-search-section {
    margin-bottom: 16px;
}

.invoice-list-search-box {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.invoice-list-search-input {
    flex: 1;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 18px;
    color: #333;
    outline: none;
    transition: all 0.2s;
}

.invoice-list-search-input:focus {
    border-color: #2095f4;
}

.invoice-list-search-input::placeholder {
    color: #aaa;
}

.invoice-list-search-btn {
    background-color: #2095f4;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
}

.invoice-list-search-btn:hover {
    background-color: #1a7bc4;
}

.invoice-list-search-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* 모바일에서 검색/조회 버튼 문구가 잘리지 않도록 폭/패딩 축소 */
@media (max-width: 480px) {
    .invoice-list-search-box {
        gap: 8px;
    }

    .invoice-list-search-input {
        padding: 12px 14px;
        font-size: 16px;
        min-width: 0;
    }

    .invoice-list-search-btn {
        flex: 0 0 auto;
        padding: 12px 14px;
        font-size: 14px;
        line-height: 1.2;
    }
}

/* 결과 카운트 */
.invoice-list-count {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

/* 에러 메시지 */
.invoice-list-msg {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.invoice-list-msg.error {
    background-color: #fff3f3;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
}

/* 인증번호 발송 등 안내(에러 아님) */
.invoice-list-msg.info {
    background-color: #e8f4fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}

/* 리스트 영역: 이 영역만 스크롤 */
.invoice-list-cards {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 카드 */
.invoice-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.invoice-card:active {
    transform: scale(0.98);
}

.invoice-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 펼쳐진 카드 */
.invoice-card[data-expanded="true"] {
    border: 1px solid #2095f4;
    box-shadow: 0 4px 16px rgba(32, 149, 244, 0.15);
}

/* 카드 메인 영역 (날짜 + 내용) */
.invoice-card-main {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* 펼쳐진 카드의 메인 영역 */
.invoice-card[data-expanded="true"] .invoice-card-main {
    align-items: flex-start;
}

/* 카드 왼쪽 - 날짜 */
.invoice-card-date {
    flex-shrink: 0;
    font-size: 23px;
    font-weight: 700;
    color: #2095f4;
    line-height: 1.2;
    min-width: 90px;
    padding-right: 20px;
    border-right: 1px solid #e0e0e0;
}

.invoice-card-created {
    font-size: 14px;
    font-weight: normal;
    color: #999;
    white-space: nowrap;
}

/* 카드 오른쪽 - 내용 */
.invoice-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 카드 헤더 (토글 버튼 포함) */
.invoice-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.invoice-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
}

.invoice-card-subtitle {
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.invoice-card-info {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* 토글 영역 */
.invoice-card-toggle {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.invoice-card-arrow {
    color: #ccc;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

/* 펼쳐졌을 때 화살표 회전 */
.invoice-card[data-expanded="true"] .invoice-card-arrow {
    transform: rotate(180deg);
}

/* 상세 정보 영역 - 카드 전체 너비 사용 */
.invoice-card-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease, padding-top 0.3s ease;
    margin-top: 0;
    padding-top: 0;
}

.invoice-card[data-expanded="true"] .invoice-card-details {
    max-height: 500px;
    opacity: 1;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

/* 상세 정보 행 - 테이블 형식 */
.invoice-detail-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.invoice-detail-row:first-child {
    padding-top: 0;
}

.invoice-detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.invoice-detail-label {
    flex-shrink: 0;
    width: 120px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

.invoice-detail-value {
    flex: 1;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

/* 민자도로 태그 */
.invoice-detail-tags {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.invoice-tag {
    display: inline-block;
    background-color: #e3f2fd;
    color: #2095f4;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    align-self: flex-start;
}

/* 빈 상태 */
.invoice-list-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 15px;
}

.invoice-list-empty p {
    margin: 0;
}

/* 반응형 */
@media (max-width: 480px) {
    .invoice-card {
        padding: 14px 16px;
        gap: 16px;
    }
    
    .invoice-card-date {
        font-size: 23px;
        min-width: 80px;
    }
    
    .invoice-card-title {
        font-size: 15px;
    }
    
    .invoice-card-info {
        font-size: 13px;
    }
}
/* ----------------------------------------------------------------------- */

/* Tax Guide */
/* ----------------------------------------------------------------------- */
.guide-content-text {
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.guide-legal-reference {
    background-color: #f0f4ff;
    border-left: 3px solid #2095f4;
    padding: 15px;
    margin: 15px 0;
    font-size: 14px;
    color: #666;
}

/* 안내성 팝업 공통 크롬 (이용 안내 + 메뉴 팝업) */
/* ----------------------------------------------------------------------- */
.toll-chrome-modal .modal-dialog {
    display: flex;
    align-items: flex-start;
    margin-top: 72px;
    margin-bottom: 1rem;
    max-width: 90%;
}

.toll-chrome-modal .modal-content {
    max-height: none;
    width: 100%;
    border: 2px solid #2095f4;
    box-shadow: 0 4px 12px rgba(32, 149, 244, 0.2);
    overflow: visible;
}

.toll-chrome-modal .modal-header {
    padding: 12px 18px;
    background: linear-gradient(to right, #2095f4 0%, #1a7bc4 100%);
    color: #ffffff;
    border-bottom: 2px solid #1a7bc4;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.toll-chrome-modal .modal-header .modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 0;
}

.toll-chrome-modal .modal-header .close {
    color: #ffffff;
    opacity: 0.9;
    text-shadow: none;
    padding: 0.45rem 0.7rem;
    margin: -0.45rem -0.7rem -0.45rem auto;
}

.toll-chrome-modal .modal-body {
    max-height: none;
    overflow: visible;
    padding: 20px 18px 16px;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9ff 100%);
}

.toll-chrome-modal .modal-footer {
    padding: 12px 18px;
    background-color: #f8f9ff;
    border-top: 1px solid #e0e7ff;
}

/* 모든 toll 모달 버튼: 44px 터치 타겟, btn-sm 제외 */
.modal .modal-footer .btn:not(.btn-sm) {
    padding: 0.65rem 1.4rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
}

/* 앱 설치·고객센터는 내용이 길어 스크롤 허용 */
#pwaInstallGuideModal.toll-chrome-modal .modal-content,
#callCenterModal.toll-chrome-modal .modal-content {
    overflow: hidden;
    max-height: min(85vh, 640px);
}
#pwaInstallGuideModal.toll-chrome-modal .modal-body,
#callCenterModal.toll-chrome-modal .modal-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#taxGuideModal .font-color-red {
    color: #e74c3c;
    font-weight: 600;
}

/* 개인정보 필수 동의: 거절(좌) · 동의(우), 동의 CTA 강조 */
#privacyCollectConsentModal .privacy-consent-note {
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.45;
}
#privacyCollectConsentModal .privacy-consent-footer {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
#privacyCollectConsentModal #btnPrivacyCollectDeny {
    width: auto;
    min-width: 0;
    padding: 0.5rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: #6b7280;
    border-color: #d1d5db;
    background: #fff;
}
#privacyCollectConsentModal #btnPrivacyCollectDeny:hover,
#privacyCollectConsentModal #btnPrivacyCollectDeny:focus {
    color: #4b5563;
    border-color: #9ca3af;
    background: #f9fafb;
}
#privacyCollectConsentModal #btnPrivacyCollectAgree {
    width: auto;
    min-width: 120px;
    padding: 0.55rem 1.6rem;
    font-size: 0.9rem;
    font-weight: 600;
}

/* 이용 안내: 배지·제목 같은 줄, 설명은 제목 아래 */
#taxGuideModal .tax-guide-points > li {
    display: grid;
    grid-template-columns: 1.35rem 1fr;
    column-gap: 10px;
    align-items: start;
}

#taxGuideModal .tax-guide-points > li::before {
    grid-column: 1;
    grid-row: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

#taxGuideModal .tax-guide-points > li strong {
    grid-column: 2;
    display: block;
    margin: 0;
    color: #1f3b5b;
    font-size: 0.92rem;
    line-height: 1.2;
}

#taxGuideModal .tax-guide-points > li .tax-guide-desc {
    grid-column: 2;
    display: block;
    margin: 0;
    color: #4b5563;
    font-size: 0.86rem;
    line-height: 1.25;
}

/* 알림 동의 팝업 — 본문 요소만 */
#marketingConsentModal .guide-legal-reference {
    background-color: #f0f4ff;
    border-left: 3px solid #2095f4;
    color: #333;
}

#marketingConsentModal .guide-content-text {
    color: #444;
}

#marketingConsentModal .font-color-main {
    color: #2095f4;
}

#marketingConsentModal .font-bold {
    color: #1a7bc4;
}

#marketingConsentModal .form-check-input:checked {
    background-color: #2095f4;
    border-color: #2095f4;
}

#marketingConsentModal .form-check-input:focus {
    border-color: #2095f4;
    box-shadow: 0 0 0 0.2rem rgba(32, 149, 244, 0.25);
}

#marketingConsentModal .form-check-label {
    color: #333;
    cursor: pointer;
}
/* ----------------------------------------------------------------------- */

/* 모바일 최적화 — 안내성 팝업 공통 */
/* ----------------------------------------------------------------------- */
@media (max-width: 576px) {
    .toll-chrome-modal .modal-dialog {
        max-width: 95%;
        margin-top: 48px;
        margin-bottom: 0.5rem;
    }

    .toll-chrome-modal .modal-header {
        padding: 12px 16px;
    }

    .toll-chrome-modal .modal-header .modal-title {
        font-size: 1rem;
    }

    .toll-chrome-modal .modal-body {
        padding: 18px 16px 14px;
    }

    .toll-chrome-modal .modal-footer {
        padding: 12px 16px;
    }

    #taxGuideModal .tax-guide-headline {
        font-size: 1.08rem;
        line-height: 1.45;
        margin-top: 0;
        margin-bottom: 14px;
    }

    #taxGuideModal .tax-guide-points {
        gap: 8px;
    }

    #taxGuideModal .tax-guide-points > li {
        grid-template-columns: 1.25rem 1fr;
        padding: 10px 12px;
        font-size: 0.88rem;
        line-height: 1.4;
    }

    #taxGuideModal .tax-guide-points > li::before {
        width: 1.25rem;
        height: 1.25rem;
        line-height: 1.25rem;
        font-size: 0.72rem;
    }
}
/* ----------------------------------------------------------------------- */
/* Step 4 전용 안내 문구 (step-indicator 대신 표시) */
.step4-guide {
    margin-bottom: 20px;
}
.step4-guide-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0 0 6px 0;
}
.step4-guide-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Step 4 확인 페이지 - 카드 블록 디자인 (배경 회색, 카드 흰색) */
/* ======================================================================= */

/* 확인 카드 */
.confirm-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.confirm-card:last-child {
    margin-bottom: 0;
}

/* 카드 헤더 */
.confirm-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.confirm-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

/* 수정 버튼 */
.confirm-edit-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.confirm-edit-btn:hover {
    color: #2095f4;
}

/* 카드 본문 */
.confirm-card-body {
    padding: 0;
}

/* 확인 행 (레이블 + 값) */
.confirm-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f8f9fa;
}

.confirm-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.confirm-label {
    flex-shrink: 0;
    width: 110px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.confirm-value {
    flex: 1;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* 민자도로 태그 */
.confirm-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.confirm-office-tag {
    display: inline-block;
    background-color: #e3f2fd;
    color: #2095f4;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}

/* 민자별 신청서 확인 및 동의 — 안내 문구 강조 */
.confirm-consent-lead {
    color: #666;
}
.confirm-consent-action {
    color: #2095f4;
    font-weight: 600;
}
.confirm-consent-key {
    font-weight: 600;
    color: #333;
}
.confirm-consent-legal strong {
    color: #444;
    font-weight: 600;
}
.confirm-consent-legal-outcome {
    border-top: 1px solid rgba(32, 149, 244, 0.2);
    padding-top: 12px;
    margin-top: 4px;
}

/* 파일 아이템 */
.confirm-files {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.confirm-file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 12px;
}

.confirm-file-icon {
    flex-shrink: 0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirm-file-info {
    flex: 1;
    min-width: 0;
}

.confirm-file-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.confirm-file-unchanged {
    font-weight: normal;
    color: #6c757d;
    font-size: 12px;
}

.confirm-file-size {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.confirm-file-check {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ======================================================================= */

.no-border {
    border: 0 !important;
}

/* ======================================================================= */
/* 미납 조회 결과 / 결제 팝업 (from unpaid-result.css) */
/* ======================================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #ffffff;
    color: #333;
}

/* 컨테이너: 상단(헤더·차량·총액·제목) 고정, unpaid-list-items만 스크롤 */
.unpaid-result-container {
    max-width: 600px;
    margin: 0 auto;
    height: 100vh;
    padding: 20px;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 목록 본문: 과도하게 작던 14px 고정 해제 후 한 단계 키움 */
.unpaid-result-container .widget-heading,
.unpaid-result-container .widget-subheading {
    font-size: 17px !important;
    line-height: 1.5;
}

.unpaid-result-container .unpaid-limit-notice,
.unpaid-result-container .badge {
    font-size: 15px !important;
    line-height: 1.45;
}

.unpaid-result-container .unpaid-result-header,
.unpaid-result-container .unpaid-vehicle-info,
.unpaid-result-container .unpaid-total-card {
    flex-shrink: 0;
}

/* 헤더 */
.unpaid-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.unpaid-result-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.unpaid-close-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.unpaid-close-btn:hover {
    color: #333;
}

/* 차량 정보 */
.unpaid-vehicle-info {
    margin-bottom: 16px;
    color: #666;
    font-size: 18px;
}

.unpaid-vehicle-label {
    font-size: 17px;
    margin-bottom: 4px;
}

.unpaid-vehicle-number {
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

/* 총 미납요금 카드 */
.unpaid-total-card {
    background: linear-gradient(135deg, #e3f2fd 0%, #d1e9fc 100%);
    border-radius: 16px;
    padding: 7px;
    margin-bottom: 32px;
    text-align: center;
}

.unpaid-total-label {
    font-size: 16px;
    color: #666;
}

.unpaid-total-amount {
    font-size: 36px;
    font-weight: 700;
    color: #2095f4;
}

/* 미납 내역 섹션: 남은 공간 차지, 내부에서 목록만 스크롤 */
.unpaid-list-section {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.unpaid-list-section .unpaid-section-title {
    flex-shrink: 0;
}

.unpaid-section-title {
    font-size: 19px;
    font-weight: 700;
    color: #333;
    padding-bottom: 7px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 16px;
}

/* 미납 내역 아이템: 이 영역만 스크롤 */
.unpaid-list-items {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.unpaid-list-item-card {
    margin-bottom: 0 !important;
    padding: 12px 14px !important;
}

.unpaid-list-item-card .widget-content-wrapper {
    align-items: center;
}

/* 미납 내역 행: 부가수수료·미납금액 열 오른쪽 정렬 */
.unpaid-list-item-card .widget-content-right.unpaid-list-item-amounts {
    text-align: right;
    margin-left: auto;
    flex: 0 1 auto;
    min-width: 8.5rem;
}

.unpaid-list-item-card .unpaid-list-amount-line {
    width: 100%;
    text-align: right;
}

.unpaid-list-item-card .widget-heading,
.unpaid-list-item-card .widget-subheading {
    margin-bottom: 2px !important;
}

.unpaid-item-card {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
}

.unpaid-item-header {
    margin-bottom: 8px;
}

.unpaid-item-date {
    display: inline-block;
    background-color: #e0e0e0;
    color: #666;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
}

.unpaid-item-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.unpaid-item-gate {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.unpaid-item-amount {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

/* 최대 조회 안내 */
.unpaid-limit-notice {
    text-align: end;
    color: #999;
    font-size: 14px;
}

.bg-light {
    background-color: #f5f5f5 !important;
}

/* 반응형 - 미납 결과 */
@media (max-width: 480px) {
    .unpaid-result-container {
        padding: 16px;
    }

    .unpaid-total-amount {
        font-size: 32px;
    }

    .unpaid-item-amount {
        font-size: 16px;
    }
}

/* font-size 추가 (toll-custom에 없던 것만) */
.font-size-25 {
    font-size: 25px !important;
}

.font-size-26 {
    font-size: 26px !important;
}

/* 결제 정보 입력 팝업 스타일 */
.payment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.payment-modal {
    background-color: #ffffff;
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-width: 600px;
    padding-top: 16px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.payment-modal-handle {
    width: 40px;
    height: 4px;
    background-color: #d0d0d0;
    border-radius: 2px;
    margin: 0 auto 17px;
}

.payment-modal-header {
    margin-bottom: 20px;
}

.payment-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.payment-lock-icon {
    color: #666;
}

.payment-amount-card {
    background: linear-gradient(135deg, #e3f2fd 0%, #d1e9fc 100%);
    border-radius: 16px;
    padding: 12px;
    text-align: center;
    margin-bottom: 25px;
}

.payment-amount-label {
    font-size: 17px;
    color: #666;
}

.payment-amount-value {
    font-size: 36px;
    font-weight: 700;
    color: #2095f4;
}

.payment-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.payment-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.payment-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.payment-input {
    background-color: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 16px;
    color: #333;
    outline: none;
    transition: all 0.2s;
    width: 100%;
}

.payment-input:focus {
    background-color: #ffffff;
    border-color: #2095f4;
}

.payment-input::placeholder {
    color: #aaa;
}

.payment-card-input-group {
    position: relative;
}

.payment-card-number {
    padding-right: 48px;
}

.payment-card-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.payment-expiry-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-expiry {
    flex: 1;
    text-align: center;
}

.payment-expiry-separator {
    font-size: 20px;
    font-weight: 600;
    color: #666;
}

.payment-button-group {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    justify-content: flex-end;
    background: #f5f5f5;
}

.payment-btn {
    padding: 0.65rem 1.4rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.payment-btn-cancel {
    background-color: #ffffff;
    color: #666;
    border: 1px solid #ced4da;
}

.payment-btn-cancel:hover {
    background-color: #f8f9fa;
}

.payment-btn-submit {
    background-color: #2095f4;
    color: #ffffff;
}

.payment-btn-submit:hover {
    background-color: #1a7bc4;
}

@media (max-width: 480px) {
    .payment-amount-value {
        font-size: 32px;
    }

    .payment-modal-title {
        font-size: 24px;
    }
}

/* 결제 안내 팝업 스타일 */
/* ======================================================================= */
/* 모달 오버레이 */
.guide-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 모달 컨테이너 */
.guide-modal {
    background-color: #ffffff;
    border-radius: 24px;
    width: 90%;
    max-width: 400px;
    padding: 40px 32px 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.3s ease;
    position: relative;
    text-align: center;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* 상단 아이콘 원형 배경 */
.guide-icon-circle {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -70px auto 24px;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.2);
}

.guide-icon {
    color: #ff9800;
}

/* 제목 */
.guide-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 24px 0;
}

/* 안내 메시지 */
.guide-message {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

/* 확인 질문 */
.guide-question {
    font-size: 15px;
    color: #777;
    margin: 0 0 32px 0;
}

/* 버튼 그룹 */
.guide-button-group {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.guide-btn {
    padding: 0.65rem 1.4rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.guide-btn-cancel {
    background-color: #ffffff;
    color: #6c757d;
    border: 1px solid #ced4da;
}

.guide-btn-cancel:hover,
.guide-btn-cancel:active {
    background-color: #f8f9fa;
    border-color: #adb5bd;
}

.guide-btn-confirm {
    background-color: #2095f4;
    color: #ffffff;
}

.guide-btn-confirm:hover,
.guide-btn-confirm:active {
    background-color: #1a7bc4;
}

/* 반응형 */
@media (max-width: 480px) {
    .guide-modal {
        width: 85%;
        padding: 36px 24px 24px;
    }
    
    .guide-icon-circle {
        width: 90px;
        height: 90px;
        margin: -65px auto 20px;
    }
    
    .guide-icon {
        width: 50px;
        height: 50px;
    }
    
    .guide-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .guide-message {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    .guide-question {
        font-size: 14px;
        margin-bottom: 28px;
    }
    
}
/* ======================================================================= */

/* 서류 영역 수동 조정 — Bootstrap 4/5 혼용 시에도 표시 (JS force-open) */
.document-crop-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1060;
    background-color: rgba(0, 0, 0, 0.55);
}

.document-crop-backdrop.is-visible {
    display: block;
}

#documentCropModal.document-crop-force-open {
    display: block !important;
    position: fixed;
    inset: 0;
    z-index: 1065;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}

#documentCropModal.document-crop-force-open .modal-dialog {
    margin: 1.75rem auto;
    max-width: 800px;
    pointer-events: auto;
}

.document-crop-guide {
    font-size: 1.05rem;
    line-height: 1.5;
}

/* 등록 정보 불러오기: 인증 안내는 같은 모달 안에 표시( guideModal 이 뒤에 가려지는 문제 방지) */
.recent-lookup-inline-msg {
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 0.75rem;
}

/* guideModal 이 다른 모달 위에 떠야 할 때(예외) */
body.modal-open #recentTaxInfoModal.show ~ #guideModal.show,
body.modal-open #guideModal.modal.show.guide-modal-stack-top {
    z-index: 1085 !important;
}

/* OCR·첨부 보정 progress — 영역 조정(documentCrop) 팝업 위에 표시 */
body.modal-open #progressModal.modal.show.modal-stack-top {
    z-index: 1090 !important;
}

.document-crop-backdrop.is-visible.crop-backdrop-under-progress {
    z-index: 1080;
}

.document-crop-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.document-crop-footer-left,
.document-crop-footer-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.document-crop-footer-left .btn {
    min-width: 72px;
    margin: 0;
}

.document-crop-stage {
    position: relative;
    width: 100%;
    max-height: 70vh;
    overflow: hidden;
    background: #1a1a1a;
    border-radius: 8px;
    touch-action: none;
    user-select: none;
}

.document-crop-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    pointer-events: none;
}

.document-crop-overlay {
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
    z-index: 2;
}

.document-crop-handle {
    position: absolute;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #2095f4;
    box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0, 0, 0, 0.4);
    z-index: 10;
    cursor: grab;
    touch-action: none;
    pointer-events: auto;
    transform: translate(-50%, -50%);
}

.document-crop-handle:hover {
    background: #1a85e0;
}

.document-crop-handle:active,
.document-crop-handle.is-dragging {
    cursor: grabbing;
    background: #1a7bc4;
}