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;
    padding: 40px;
    max-width: 480px;
    width: 100%;
}

.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;
    z-index: 2;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
}

/* 정산서 헤더 */
.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;
}
.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-total span {
    white-space: nowrap;
}


/* 하단 섹션 */
.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;
}


.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 {
    border-radius: 8px;
    font-size: 14px;
}

.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;
}

.date-input-group label {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 4px;
}

.settlement-date-input {
    width: fit-content;
    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-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: 32px;
    margin-bottom: 16px;
}

.empty-settlement-text {
    font-size: 14px;
}

/* 금액 표시 스타일 */
.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;
    }
    
    .services-container-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .settlement-title {
        font-size: 24px;
    }
    

    
    .settlement-modal-content {
        padding: 20px;
        width: 95%;
        margin: 0 20px;
    }
}
@media(max-width:420px) {
    .date-range-wrapper {
        grid-template-columns: 1fr;
        gap: 12px;
    }   
}

.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;
    }
}

/* 계산 정보 표시 스타일 */
.calculation-info {
    margin-top: 8px;
    text-align: center;
}

.calculation-text {
    font-size: 12px;
    color: #666;
    font-weight: normal;
    line-height: 1.2;
}

/* 계산식에서 사용되는 금액 색상 */
.calculation-text .amount-positive {
    color: #0066cc;
}

.calculation-text .amount-negative {
    color: #cc0000;
}

.calculation-text .amount-deduction {
    color: #cc0000;
}

.calculation-text .amount-promotion {
    color: #0066cc;
}

/* 반응형 대응 */
@media (max-width: 768px) {
    .calculation-text {
        font-size: 11px;
    }
}

.rider-dashboard {
    max-width: 420px;
    margin: 0 auto;
    padding: 12px;
    width: 100%;
    box-sizing: border-box;
    display: none;
}

.dashboard-header {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dashboard-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.dashboard-subtitle {
    color: #6b7280;
    font-size: 16px;
}

/* 탭 네비게이션 */
.tab-navigation {
    background: white;
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 8px;
}

.tab-button {
    flex: 1;
    padding: 16px 24px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6b7280;
}

.tab-button.active {
    background: #111827;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tab-button:hover:not(.active) {
    background: #f3f4f6;
    color: #374151;
}

/* 탭 컨텐츠 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 적립금 출금 섹션 */
.withdrawal-section {
    display: grid;
    gap: 24px;
    margin-bottom: 24px;
}

.balance-card {
    background: linear-gradient(135deg, #5c5c5c 0%, #000000 100%);
    color: white;
    border-radius: 16px;
    padding: 32px;
}

.balance-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.balance-amount {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 24px;
}

.balance-note {
    font-size: 12px;
    opacity: 0.8;
}

.account-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.account-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
}

.account-info {
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.account-detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.account-detail:last-child {
    margin-bottom: 0;
}

.account-label {
    color: #6b7280;
}

.account-value {
    color: #b9b9b9;
    font-weight: 400;
    font-size: 14px;
    margin-bottom: 4px;
    line-height: 20px;
}

.withdrawal-button {
    width: fit-content;
    float: right;
    background: #059669;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.withdrawal-button:hover {
    background: #047857;
    transform: translateY(-1px);
}

.withdrawal-button:disabled {
    background: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* 출금 내역 섹션 */
.withdrawal-history {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 20px;
}
/* 🆕 새로 추가된 스타일 */
.total-amount {
    background: #f0f9ff;
    color: #0369a1;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid #bae6fd;
    text-align: center;
}

/* 🆕 새로 추가된 스타일 */
.history-table-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-top: 16px;
}
.history-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.date-filter {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.date-input {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.filter-button {
    padding: 8px 16px;
    background: #6b7280;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.filter-button:hover {
    background: #4b5563;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-table th,
.history-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.history-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    position: sticky;  /* 🆕 새로 추가 */
    top: 0;           /* 🆕 새로 추가 */
    z-index: 1;       /* 🆕 새로 추가 */
}
.history-table tbody tr:last-child td {
    border-bottom: none;
}
.history-table td {
    font-size: 14px;
    color: #6b7280;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-completed {
    background: #d1fae5;
    color: #065f46;
    text-align: center;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
    text-align: center;
}

.status-failed {
    background: #fee2e2;
    color: #991b1b;
    text-align: center;
}

/* 정산 및 매출 섹션 */
.sales-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.chart-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chart-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.chart-container {
    position: relative;
    margin-bottom: 20px;
}

.settlement-list-wrap {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.settlement-list-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    border: 1px solid #e6e6e6;
}

.settlement-search-section {
    margin-bottom: 20px;
}

.search-date-filter {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.search-date-filter label {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.date-range-inputs {
    display: flex;
    gap: 8px;
    align-items: center;
}

.settlement-list {
    max-height: 400px;
    overflow-y: auto;
}

.settlement-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.settlement-item:hover {
    border-color: #6b7280;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.settlement-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.settlement-date {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.settlement-type {
    background: #e5e7eb;
    color: #6b7280;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.settlement-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settlement-company {
    font-size: 12px;
    color: #6b7280;
}

.settlement-amount {
    font-weight: 600;
    color: #059669;
    font-size: 16px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .withdrawal-section,
    .sales-section {
        grid-template-columns: 1fr;
    }

    .tab-button {
        padding: 12px 16px;
        font-size: 14px;
    }

    .balance-amount {
        font-size: 28px;
    }

    .date-filter,
    .search-date-filter {
        align-items: stretch;
        gap: 8px;
    }

    .date-range-inputs {
        flex-direction: column;
    }

    .history-table {
        font-size: 12px;
    }

    .history-table th,
    .history-table td {
        padding: 8px;
    }
    .withdrawal-button{
        float: none;
        width: 100%;
    }
}

.settlement-total-summary {
    border: 1px solid #dee2e6;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.settlement-total-summary .total-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.settlement-total-summary .total-info:last-child {
    margin-bottom: 0;
}

.settlement-total-summary .total-info.main-total {
    padding-top: 12px;
    border-top: 1px solid #dee2e6;
    font-weight: bold;
    font-size: 16px;
}

.settlement-total-summary .total-label {
    color: #495057;
    font-size: 14px;
}

.settlement-total-summary .main-total .total-label {
    color: #212529;
    font-size: 16px;
}

.settlement-total-summary .total-count {
    color: #6c757d;
    font-weight: 500;
    font-size: 12px;
}

.settlement-total-summary .total-amount {
    color: #007bff;
    font-weight: bold;
    font-size: 16px;
}

.settlement-total-summary .total-amount.positive {
    color: #28a745;
}

.settlement-total-summary .total-amount.negative {
    color: #dc3545;
}

.settlement-total-summary .total-amount.zero {
    color: #6c757d;
}

/* 출금 신청 바텀시트 모달 스타일 */
.withdrawal-bottom-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.withdrawal-bottom-sheet-overlay.active {
    opacity: 1;
    visibility: visible;
}

.withdrawal-bottom-sheet-modal {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.withdrawal-bottom-sheet-overlay.active .withdrawal-bottom-sheet-modal {
    transform: translateY(0);
}

/* 모달 헤더 */
.withdrawal-modal-header {
    position: relative;
    padding: 16px 20px 12px;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
}

.withdrawal-modal-handle {
    width: 40px;
    height: 4px;
    background-color: #ddd;
    border-radius: 2px;
    margin: 0 auto 16px;
}

.withdrawal-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.withdrawal-modal-close-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.withdrawal-modal-close-btn:hover {
    background-color: #f5f5f5;
}

/* 모달 콘텐츠 */
.withdrawal-modal-content {
    padding: 20px;
}

/* 계좌 정보 섹션 */
.withdrawal-account-info-section {
    margin-bottom: 24px;
    padding: 16px;
    background-color: #f8f9fa;
    border-radius: 12px;
}

.withdrawal-account-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.withdrawal-account-display {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
}

/* 출금 가능 금액 섹션 */
.withdrawal-balance-section {
    margin-bottom: 24px;
    text-align: center;
    padding: 20px 16px;
    background: linear-gradient(135deg, #8d8d8d 0%, #000000 100%);
    border-radius: 12px;
    color: white;
}

.withdrawal-balance-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.withdrawal-balance-amount {
    font-size: 24px;
    font-weight: 700;
}

/* 출금 금액 입력 섹션 */
.withdrawal-amount-input-section {
    margin-bottom: 24px;
}

.withdrawal-input-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.withdrawal-amount-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.withdrawal-amount-input {
    flex: 1;
    padding: 16px 50px 16px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    text-align: right;
    transition: border-color 0.2s;
}

.withdrawal-amount-input:focus {
    outline: none;
    border-color: #000;
}

.withdrawal-amount-input.error {
    border-color: #ff4757;
}

.withdrawal-amount-unit {
    position: absolute;
    right: 16px;
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.withdrawal-amount-error {
    margin-top: 8px;
    font-size: 12px;
    color: #ff4757;
    display: none;
}

.withdrawal-amount-error.show {
    display: block;
}

/* 빠른 금액 선택 섹션 */
.withdrawal-quick-amount-section {
    margin-bottom: 24px;
}

.withdrawal-quick-amount-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 12px;
}

.withdrawal-quick-amount-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.withdrawal-quick-btn {
    padding: 12px 8px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}

.withdrawal-quick-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.withdrawal-quick-btn.active {
    background-color: #667eea;
    border-color: #667eea;
    color: white;
}

/* 안내사항 섹션 */
.withdrawal-notice-section {
    padding: 16px;
    background-color: #f8f9fa;
    border-radius: 12px;
}

.withdrawal-notice-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.withdrawal-notice-list {
    margin: 0;
    padding-left: 16px;
    list-style: none;
}

.withdrawal-notice-list li {
    position: relative;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 4px;
}

.withdrawal-notice-list li:before {
    content: "•";
    position: absolute;
    left: -12px;
    color: #999;
}

/* 모달 푸터 */
.withdrawal-modal-footer {
    padding: 16px 20px 20px;
    display: flex;
    gap: 12px;
}

.withdrawal-cancel-btn,
.withdrawal-submit-btn {
    flex: 1;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.withdrawal-cancel-btn {
    background-color: #f5f5f5;
    color: #666;
}

.withdrawal-cancel-btn:hover {
    background-color: #eeeeee;
}

.withdrawal-submit-btn {
    background-color: #28a745;
    color: white;
}

.withdrawal-submit-btn:hover {
    background-color: #1f8035;
}

.withdrawal-submit-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* 반응형 디자인 */
@media (max-width: 480px) {
    .withdrawal-modal-content {
        padding: 16px;
    }
    
    .withdrawal-quick-amount-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .withdrawal-quick-btn {
        padding: 8px 4px;
        font-size: 14px;
    }
    
    .withdrawal-amount-input {
        font-size: 16px;
        padding: 14px 50px 14px 14px;
    }
}
/* D3 차트 반응형 스타일 */
#salesChartContainer {
    box-sizing: border-box;
}

@media (max-width: 400px) {
    #salesChartContainer {
        max-width: 100% !important;
    }
}

/* iOS Safari date input 개선 */
.settlement-date-input {
    -webkit-appearance: none;
    appearance: none;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 16px; /* iOS zoom 방지 */
    width: 100%;
    box-sizing: border-box;
}

/* date input 아이콘 추가 */
.settlement-date-input::-webkit-calendar-picker-indicator {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='%23333' d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM2 2a1 1 0 0 0-1 1v1h14V3a1 1 0 0 0-1-1H2zm13 3H1v9a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* 포커스 상태 */
.settlement-date-input:focus {
    outline: none;
    border-color: #007AFF; /* iOS 블루 */
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2);
}

/* placeholder 스타일 (빈 값일 때) */
.settlement-date-input:invalid {
    color: #999;
}

.settlement-type[data-type="일선정산"] {
    background-color: #e3f2fd;
    color: #1976d2;
}

.settlement-type[data-type="일정산"] {
    background-color: #e8f5e8;
    color: #388e3c;
}

.settlement-type[data-type="주정산"] {
    background-color: #fff3e0;
    color: #f57c00;
}