body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: #f9fafb;
    min-height: 100vh;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rider-settlement-container-v2 {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    max-width: 480px;
    width: 100%;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.rider-settlement-header-v2 {
    text-align: center;
    margin-bottom: 32px;
}

.rider-settlement-header-v2 h1 {
    font-size: 28px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.rider-settlement-header-v2 p {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.5;
}

.rider-settlement-form-group-v2 {
    margin-bottom: 24px;
}

.rider-settlement-form-group-v2 label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.rider-settlement-form-input-v2 {
    width: 100%;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    color: #111827;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.rider-settlement-form-input-v2::placeholder {
    color: #9ca3af;
}

.rider-settlement-form-input-v2:focus {
    border-color: #6b7280;
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.1);
    background: #ffffff;
}


.rider-settlement-error-message-v2 {
    display: none;
    font-size: 14px;
    color: #ef4444;
    margin-top: 6px;
    padding-left: 4px;
}

.rider-settlement-submit-button-v2 {
    width: 100%;
    background: #111827;
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.rider-settlement-submit-button-v2:hover {
    background: #374151;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.rider-settlement-submit-button-v2:active {
    transform: translateY(0);
}

.rider-settlement-input-icon-v2 {
    position: relative;
}

.rider-settlement-input-icon-v2::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-size: contain;
    opacity: 0.6;
    z-index: 1;
}
.rider-settlement-birth-input-v2 {
    position: relative;
}
.rider-settlement-name-input-v2::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z'/%3E%3C/svg%3E");
}

.rider-settlement-birth-input-v2::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z'/%3E%3C/svg%3E");
}

.rider-settlement-phone-input-v2::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z'/%3E%3C/svg%3E");
}




.rider-settlement-form-input-v2.rider-settlement-with-icon-v2 {
    padding-left: 48px;
}

/* 반응형 디자인 */
@media (max-width: 640px) {
    .id-hyphen{
        display: none;
    }
    .rider-settlement-container-v2 {
        padding: 24px;
        margin: 16px;
    }

    .rider-settlement-header-v2 h1 {
        font-size: 24px;
    }

    .rider-settlement-header-v2 p {
        font-size: 14px;
    }
}

/* 정산서 컨테이너 CSS 추가 */
.settlement-container {
    background: #ffffff;
    padding: 20px;
    max-width: 100%;
    width: 100%;
    display: none; /* 초기에는 숨김 */
    max-width: 640px;
}

/* 정산서 헤더 */
.settlement-header {
    position: relative;
    text-align: center;

}

.settlement-header .x-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.settlement-header .x-btn:hover {
    background-color: #f3f4f6;
}

.settlement-date-wrap {
    margin-bottom: 16px;
}

.settlement-date {
    font-size: 18px;
    color: #374151;
    margin-bottom: 8px;
    font-weight: 500;
}

.settlement-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
}
body.modal-open {
    overflow: hidden;
    height: 100vh;
}
.settlement-search-btn {
    background: #6b7280;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.settlement-search-btn:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

/* 서비스 컨테이너 */
.services-container {
    margin-bottom: 24px;
}

.services-container-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

/* 정산 섹션 */
.settlement-section {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
}

.settlement-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
    text-align: center;
    padding: 12px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #d1d5db;
}

.reportpop-subtext {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    margin-bottom: 16px;
}

.settlement-subsection {
    margin-bottom: 16px;
}

.settlement-subsection h4 {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
    margin-top: 24px;
}

.settlement-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: #75787e;
}

.settlement-detail span:first-child {
    font-weight: 500;
}

.settlement-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-weight: 600;
    color: #111827;
    margin-top: 8px;
    font-size: 14px;
}



/* 하단 섹션 */
.settlement-section-bottom {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-top: 24px;
}

.settlement-section-bottom h4 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

/* 최종 결과 섹션 */
.final-section {
    background: linear-gradient(135deg, #f3f4f6 0%, #ffffff 100%);
    border: 2px solid #d1d5db;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    position: relative;
    margin-top: 32px;
}

.final-section .settlement-total {
    font-size: 24px;
    background: transparent;
    border: none;
    justify-content: center;
    gap: 16px;
}

.final-section .settlement-total span:last-child {
    font-size: 28px;
    font-weight: 700;
}

.stamp {
    position: absolute;
    top: -16px;
    right: 16px;
    background: #dc2626;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    transform: rotate(15deg);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
}

/* 정산서 푸터 */
.settlement-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.settlement-footer p {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 8px;
}

.company-name {
    font-weight: 600;
    color: #111827;
    font-size: 16px;
}

/* 정산서 조회 모달 */
.settlement-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settlement-modal-content {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 420px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    height: 90%;
}

.settlement-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
}

.settlement-modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.modal-close-btn:hover {
    background-color: #f3f4f6;
}

/* 날짜 필터 */
.settlement-date-filter {
    margin-bottom: 24px;
    background: #f9fafb;
    border-radius: 8px;
    font-size: 14px;
    padding: 12px;
}

.settlement-date-filter label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

.date-range-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.date-input-group label {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 4px;
}

.settlement-date-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.settlement-date-input:focus {
    outline: none;
    border-color: #6b7280;
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.1);
}

.date-action-buttons {
    display: flex;
    gap: 8px;
}

.date-search-btn, .date-clear-btn {
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.date-search-btn {
    background: #111827;
    color: white;
    border: none;
}

.date-search-btn:hover {
    background: #374151;
}

.date-clear-btn {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.date-clear-btn:hover {
    background: #e5e7eb;
}

/* 정산서 리스트 */
.settlement-list-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
}

.settlement-list-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settlement-list-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.settlement-list-card:hover {
    border-color: #6b7280;
    box-shadow: 0 4px 8px rgba(107, 114, 128, 0.1);
    transform: translateY(-1px);
}

.settlement-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.settlement-value {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.settlement-type {
    background: #f3f4f6;
    color: #6b7280;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.settlement-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settlement-label {
    font-size: 14px;
    color: #6b7280;
}

.settlement-amount {
    font-weight: 600;
    color: #059669;
    font-size: 16px;
}

/* 빈 상태 */
.empty-settlement {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.empty-settlement-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-settlement-text {
    font-size: 16px;
}

/* 금액 표시 스타일 */
.amount-positive {
    color: #059669;
}

.amount-negative {
    color: #dc2626;
}

.amount-deduction {
    color: #dc2626;
}

.amount-promotion {
    color: #059669;
}
.id-number-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.id-front {
    flex: 1;
}

.id-hyphen {
    font-size: 18px;
    font-weight: bold;
    color: #666;
}

.id-back {
    flex: 1;
}
/* 반응형 디자인 */
@media (max-width: 768px) {
    .id-number-container {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .settlement-container {
        padding: 20px;
        margin: 10px;
    }
    
    .services-container-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .settlement-title {
        font-size: 24px;
    }
    
    .date-range-wrapper {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .settlement-modal-content {
        padding: 20px;
        width: 95%;
        margin: 0 20px;
    }
}

.riderinfo-wrap{
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 4px;
}

.notice-section {
    background: #f9f9f9;
    border: 1px solid #dadada;
    border-radius: 12px;
    padding: 20px;
    margin-top: 24px;
}

.notice-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.notice-icon {
    flex-shrink: 0;
}

.notice-title {
    font-size: 16px;
    font-weight: 600;
    color: #474747;
}


.notice-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.5;
    color: #3d3d3d;
}
.notice-item span {
    line-height: 20px;
}
.notice-bullet {
    color: #000000;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 1px;
}

.notice-footer {
    padding-top: 12px;
    border-top: 1px solid #fbbf24;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #92400e;
    font-weight: 500;
}

.contact-info svg {
    flex-shrink: 0;
}

/* 반응형 디자인 */
@media (max-width: 640px) {
    .notice-section {
        padding: 16px;
        margin-top: 20px;
    }
    
    .notice-item {
        font-size: 12px;
    }
    
    .contact-info {
        font-size: 11px;
    }
}