

/* INVOICE TABLE */
/* Container Wrapper */
.wasila-management-wrapper {
    background: #fff;
    padding: 10px;
    font-family: inherit;
    margin-right: 20px;
}

.wasila-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

/* Tabs Styling - Deal Room Style */
.wasila-tabs-container {
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.wasila-tabs {
    display: flex;
    gap: 5px;
}

.tab-item {
    padding: 8px 20px;
    text-decoration: none;
    color: #444;
    font-size: 14px;
    border: 1px solid transparent;
    border-bottom: none;
    background: #f9f9f9;
}

.tab-item.active {
    background: #fff;
    border: 1px solid #ddd;
    border-bottom: 1px solid #fff;
    margin-bottom: -1px;
    font-weight: 600;
}

/* Filter Bar Styling */
.wasila-filter-bar {
    margin-bottom: 20px;
}

.filter-inputs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.search-input {
    min-width: 200px;
    flex: 1;
    padding: 7px 12px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    height: 38px !important;
}

.date-group {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f5f5f5;
    padding: 0 10px;
    border-radius: 4px;
    height: 38px;
    border: 1px solid #ddd;
}

.date-group label {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.date-group input {
    border: none !important;
    background: transparent !important;
    font-size: 13px !important;
    padding: 0 !important;
}

.search-btn {
    background: linear-gradient(139deg, #0F4C81 41%, #0F4C81A6 86%);
    color: #fff !important;
    border: none !important;
    padding: 0 20px !important;
    height: 38px !important;
    border-radius: 4px !important;
    cursor: pointer;
    font-weight: 500;
}

.reset-link {
    font-size: 13px;
    color: #337ab7;
    text-decoration: none;
}

/* Table Styling */
.wasila-table-responsive {
    overflow-x: auto;
    border: 1px solid #eee;
    padding-left: 10px;
    padding-right: 10px;
}



.wasila-invoice-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.wasila-invoice-table th {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 12px 10px;
    text-align: left;
    font-size: 13px;
    color: #888;
    font-weight: 400;
}

.wasila-invoice-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #f7f7f7;
    font-size: 14px;
    vertical-align: middle;
}

/* Badges */
.status-badge {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
}
.status-pending { background: #f0f0f0; color: #777; }
.status-requested { background: #d9edf7; color: #31708f; }
.status-paid, .status-active { background: #dff0d8; color: #3c763d; }

/* Buttons */
.wasila-action-btn {
    padding: 5px 12px;
    border-radius: 3px;
    border: 1px solid #ccc;
    font-size: 12px;
    cursor: pointer;
    background: #fff;
}

.btn-pay {
    background: #d9534f;
    color: #fff;
    border-color: #d43f3a;
}

.no-results {
    text-align: center;
    padding: 40px !important;
    color: #999;
}

/* Table Admin Info Styling */
.info-box {
    display: flex;
    flex-direction: column;
}

.main-text {
    font-weight: 600;
    color: #333;
    font-size: 13px;
}

.sub-text {
    font-size: 11px;
    color: #888;
}

.bold-amount {
    font-weight: 700;
    color: #2c3e50;
}

.maturity-indicator {
    font-size: 10px;
    color: #999;
    margin-top: 3px;
}

.no-action-label {
    color: #ccc;
    font-size: 18px;
}

/* Ensure Row Hover Effect */
.wasila-invoice-table tr:hover {
    background-color: #fcfcfc;
}

/* Tab Active Color Adjustment */
.tab-item.active {
    color: #0F4C81 !important;
    border-top: 2px solid #0F4C81 !important;
}

.price-vendor .woocommerce-Price-amount,
.price-vendor .woocommerce-Price-currencySymbol {
    font-size: 18px !important;
}


.wc-block-cart__empty-cart__title + hr, 
.wc-block-cart__empty-cart__title ~ h2, 
.wc-block-cart__empty-cart__title ~ .wc-block-grid,
.wp-block-woocommerce-empty-cart-block hr,
.wp-block-woocommerce-empty-cart-block h2:not(.wc-block-cart__empty-cart__title),
.wp-block-woocommerce-empty-cart-block .wc-block-product-new {
    display: none !important;
}


/* Stripe Page Specific CSS */
.wasila-stripe-page-wrapper {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-top: 20px;
}

.stripe-connect-big-btn:hover {
    background: #5469d4 !important;
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.wasila-stripe-page-link.active a {
    background-color: #f6f9fc !important;
    color: #6772e5 !important;
    border-left: 3px solid #6772e5 !important;
}

.wasila-stripe-page-link i {
    width: 20px;
    margin-right: 10px;
}





/* Wasila Modern Modal UI */
.wasila-modern-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wasila-modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(15, 76, 129, 0.4); /* Brand Color Overlay */
    backdrop-filter: blur(4px);
}

.wasila-modal-container {
    position: relative;
    background: #ffffff;
    width: 100%;
    max-width: 440px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    overflow: hidden;
    animation: wasilaFadeIn 0.3s ease;
}

@keyframes wasilaFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header */
.wasila-modal-header {
    background: #f8fafc;
    padding: 20px 25px;
    border-bottom: 1px solid #edf2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content .order-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #718096;
    font-weight: 700;
}

.header-content h3 {
    margin: 0;
    font-size: 18px;
    color: #0F4C81;
    font-weight: 700;
}

.wasila-close-modal {
    font-size: 24px;
    color: #a0aec0;
    cursor: pointer;
    line-height: 1;
}

/* Body & Content */
.wasila-modal-body {
    padding: 35px 30px;
    text-align: center;
}

.step-icon {
    margin-bottom: 20px;
    display: inline-flex;
    padding: 15px;
    border-radius: 50%;
}

.info-icon { background: #ebfbee; color: #40c057; }
.refund-icon { background: #fff5f5; color: #fa5252; }
.feedback-icon { background: #e7f5ff; color: #228be6; }

.wasila-step h4 {
    font-size: 20px;
    color: #2d3748;
    margin-bottom: 10px;
    font-weight: 700;
}

.wasila-step p {
    font-size: 14px;
    color: #718096;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Buttons */
.wasila-modal-btns {
    display: flex;
    gap: 12px;
}

.wasila-btn-yes, .wasila-btn-submit {
    flex: 1;
    background: linear-gradient(139deg, #61CE70 41%, #61CE70A6 86%) !important;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.wasila-btn-no {
    flex: 1;
    background: #f1f5f9;
    color: #475569;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.wasila-btn-yes:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(15, 76, 129, 0.3); }
.wasila-btn-no:hover { background: #e2e8f0; }

#wasila-feedback-text {
    width: 100%;
    height: 100px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
    font-family: inherit;
    font-size: 14px;
    resize: none;
}

#wasila-feedback-text:focus {
    border-color: #0F4C81;
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.1);
}

.wasila-step { display: none; }
.wasila-step.wasila-active { display: block; }




/* WASILA TABLES - MOBILE HORIZONTAL SCROLL VIEW */

/* 1. Wrapper ko scrollable banana */
.wasila-table-responsive, 
.wasila-table-wrap {
    width: 100% !important;
    overflow-x: auto !important; 
    -webkit-overflow-scrolling: touch; 
    border: 1px solid #eee;
    margin-bottom: 20px;
}

/* 2. Table ki width ko mobile par fix karna taake scroll bar aaye */
@media (max-width: 767px) {
    .wasila-invoice-table {
        min-width: 800px !important;
        width: 800px !important;
        display: table !important;
    }

    /* Column headers aur cells ko table format mein rakhna */
    .wasila-invoice-table thead {
        display: table-header-group !important;
    }

    .wasila-invoice-table tr {
        display: table-row !important;
    }

    .wasila-invoice-table th, 
    .wasila-invoice-table td {
        display: table-cell !important;
        white-space: nowrap !important;
        padding: 12px 10px !important;
        font-size: 13px !important;
    }


}

/* 3. Feedback Popup (Modal) Fix - Ye hamesha screen par fit hona chahiye */
@media (max-width: 580px) {
    .wasila-modal-container {
        width: 92% !important;
        max-width: 400px;
        margin: auto;
    }
    
    .wasila-modal-btns {
        flex-direction: column !important;
        gap: 10px;
    }
    
    .wasila-modal-btns button {
        width: 100% !important;
    }
}




/* Status Badge Colors Update */
.wasila-status-label {
    text-transform: capitalize;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

/* In Process Color */
span[style*="in-process"], .status-in-process {
    background: #e1f5fe !important;
    color: #0288d1 !important;
}

/* Completed Color */
span[style*="completed"], .status-completed {
    background: #e8f5e9 !important;
    color: #2e7d32 !important;
}


/* Star Rating Styles */
.wasila-star-rating {
    display: flex;
    justify-content: center;
    gap: 5px;
    font-size: 30px;
    cursor: pointer;
    color: #ccc;
    margin-bottom: 10px;
}
.wasila-star-rating .star.active {
    color: #ffc107;
}
#wasila-feedback-text.error-border {
    border: 2px solid red !important;
}




.wasila-admin-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 999999; display: flex; align-items: center; justify-content: center; }
.wasila-modal-container.admin-large { max-width: 800px; width: 90%; max-height: 90vh; overflow-y: auto; background: #fff; border-radius: 12px; }
.vendor-audit-card { border: 1px solid #eee; border-radius: 10px; margin-bottom: 20px; overflow: hidden; }
.audit-card-header { background: #f8fafc; padding: 12px 20px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.audit-card-body { padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.feedback-box { background: #f9f9f9; padding: 15px; border-radius: 8px; border-left: 4px solid #0F4C81; }
.feedback-box.customer { border-left-color: #61CE70; }
.feedback-box h5 { margin: 0 0 8px 0; font-size: 13px; color: #555; text-transform: uppercase; }
.feedback-box p { margin: 0; font-size: 14px; color: #333; line-height: 1.5; font-style: italic; }
.admin-star-rating { color: #ffc107; font-size: 18px; margin-top: 5px; }
.service-tag { background: #eef2ff; color: #4338ca; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; }
@media (max-width: 600px) { .audit-card-body { grid-template-columns: 1fr; } }

/* Admin Modal Body Scrollbar Styling */
#admin-order-details-content {
    max-height: 70vh !important; /* Mobile aur Desktop dono ke mutabiq adjust hoga */
    overflow-y: auto !important;
    scrollbar-width: thin; /* Firefox ke liye */
    scrollbar-color: #0F4C81 #f1f1f1; /* Firefox ke liye colors */
}

/* Chrome, Safari aur Edge ke liye Scrollbar design */
#admin-order-details-content::-webkit-scrollbar {
    width: 6px;
}

#admin-order-details-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#admin-order-details-content::-webkit-scrollbar-thumb {
    background: #0F4C81; /* Wasila Brand Color */
    border-radius: 10px;
}

#admin-order-details-content::-webkit-scrollbar-thumb:hover {
    background: #0a3d69;
}

/* Modal container ki height ko screen se bahar janay se rokna */
.wasila-modal-container.admin-large {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}


/* Feedback Circles Styling */
.wasila-fb-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    border: 2px solid #ddd; /* Default Blank */
    transition: all 0.3s ease;
    margin-left: 20px;
}

/* Jab feedback mil jaye (Tick) */
.wasila-fb-circle.tick {
    border-color: #61CE70;
    color: #61CE70;
    background: #f0fff4;
}

/* Jab refund mangi jaye (Cross) */
.wasila-fb-circle.cross {
    border-color: #f56565;
    color: #f56565;
    background: #fff5f5;
}

/* Khali circle */
.wasila-fb-circle.blank {
    background: #ffffff;
    border-color: #cbd5e0;
}

/* Tooltip jaisa effect agar admin hover kare */
.wasila-fb-circle:hover {
    transform: scale(1.1);
}

