/*tbody, td, tfoot, th, thead, tr { 
     border-color: #ebebeb;
    border-style: solid;
    border-width: 0.1px;
 }*/

.table-action-btn { border: 0px;  background: transparent !important; }
.table-action-btn:hover { border: 0px; background: transparent !important; }
.table-action-btn:active { border: 0px; background: transparent !important; }


.table-action-btn-blue {
       background: linear-gradient(135deg, rgba(0, 154, 255, 0.08) 0%, rgba(0, 154, 255, 0.12) 100%);
    color: #1e40af;
    border: 1px solid rgba(0, 154, 255, 0.2);
}

.table-action-btn-red {
        background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(239, 68, 68, 0.12) 100%);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.table-action-btn .status-pending {
    background: #fff8e1;
    color: #f57c00;
}

.table-action-btn .status-in-progress {
   background: #e5f6ee;
    color: #14b981;
    }

.table-action-btn .status-on-hold {
    background: #f3e5f5;
    color: #7b1fa2; }

.table-action-btn .status-failed {
    background: #ffebee;
    color: #dc3545;
}

.table-action-btn .status-partial {
     background: #e3f2fd;
    color: #1976d2;
}

.table-action-btn .status-cancelled { background: #ffebee;
    color: #dc3545; }



 /* Modern Overview Card Styles */
.modern-overview-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/*.modern-overview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 154, 255, 0.15) !important;
}*/

.modern-status-item {
    background: white;
    border: 1px solid #f1f5f9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0.5rem;
}

.modern-status-item:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
    transform: translateX(4px);
}

.modern-status-item.active-filter {
    background-color: #f0f9ff !important;
    border-color: #1e40af;
    box-shadow: 0 2px 8px rgba(0, 153, 255, 0.15);
}

.status-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.modern-status-item:hover .status-icon {
    transform: scale(1.1);
}

.count-badge {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.financial-section {
    position: relative;
}

.bg-purple {
    background-color: #f3e5f5 !important;
    color: #7b1fa2 !important;
}

/* Text colors for better hierarchy */
.text-gray-800 {
    color: #2d3748 !important;
}

.text-gray-700 {
    color: #4a5568 !important;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .modern-status-item {
        margin-bottom: 0.25rem;
    }
    
    .status-icon {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .count-badge {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
}

/* Animation for filter activation */
@keyframes highlightPulse {
    0% { background-color: transparent; }
    50% { background-color: rgba(0, 153, 255, 0.1); }
    100% { background-color: transparent; }
}

.active-filter {
    animation: highlightPulse 1s ease;
}


.progress-container {
    position: relative;
}

.progress-content {
    transition: all 0.3s ease;
}

.progress-content.progress-disabled {
    opacity: 0.6;
    filter: blur(1px);
    pointer-events: none;
}

.progress-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    z-index: 10;
    pointer-events: none; /* Allow clicks to pass through to elements below */
}

.overlay-content {
    text-align: center;
    padding: 15px;
}

.overlay-content i {
    font-size: 1.5rem;
    color: #6c757d;
    margin-bottom: 8px;
    display: block;
}

.overlay-content small {
    color: #495057;
    font-weight: 600;
    font-size: 0.8rem;
}

/* Ensure the progress bar maintains consistent height */
.progress {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}


/* Financial Summary Styles */
.financial-summary-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    height: fit-content;
}

.financial-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.financial-row:last-child {
    border-bottom: none;
}

.financial-row.total-row {
    border-top: 2px solid #e2e8f0;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    font-weight: 600;
}

.financial-label {
    font-weight: 500;
    color: #4a5568;
    font-size: 0.9rem;
}

.financial-amount {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
}

.financial-amount.total-amount {
    font-size: 1.1rem;
    color: #1e40af;
}

.vat-section {
    background: white;
    border-radius: 6px;
    padding: 0.75rem;
    margin: 0.75rem 0;
    border: 1px solid #e2e8f0;
}

/* Improved Payment History Styles */
.payment-history-container {
    min-height: 80px;
    border-radius: 8px;
}

.payment-history-item {
    background: white;
    border-left: 4px solid #e2e8f0;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
    width: 100%;
}

.payment-history-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.payment-history-item.success {
    border-left-color: #10b981;
}

.payment-history-item.pending {
    border-left-color: #f57c00;
}

.payment-history-item.failed {
    border-left-color: #ef4444;
}

.payment-history-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.payment-amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: #00bf00;
}

.payment-date {
    font-size: 0.875rem;
    color: #6b7280;
    text-align: right;
}

.payment-method {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: #f3f4f6;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #374151;
}

.payment-history-item .payment-status{ display: inline-flex; }

.payment-status {
    /*display: inline-flex;*/
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    padding: 8px;
}

.status-refunded {
    background-color: #f3e5f5;
    color: #7b1fa2;
    border: none;
}

.status-completed {
    
    background: #e5f6ee;
    color: #14b981;
}

.status-pending {
    background: #fff8e1;
    color: #f57c00;
}

.status-in-progress {
   background: #e5f6ee;
    color: #14b981;
    }

.status-on-hold {     background: #f3e5f5;
    color: #7b1fa2; }

.status-failed {
    background: #ffebee;
    color: #dc3545;
}

.status-partial {
     background: #e3f2fd;
    color: #1976d2;
}

.status-cancelled { background: #ffebee;
    color: #dc3545; }

.payment-details {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
}

.payment-id {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
}

.payment-notes {
    font-size: 0.875rem;
    color: #4b5563;
    margin: 0.25rem 0 0 0;
    line-height: 1.4;
}

.payment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

/* Empty state */
.payment-history-empty {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}

.payment-history-empty i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #d1d5db;
}

.payment-history-empty p {
    margin: 0;
    font-size: 0.9rem;
}

/* Loading state */
.payment-history-loading {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}

/* Payment Modal Styles */
.payment-step {
    display: none;
}

.payment-step.active {
    display: block;
}

.payment-method-card {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
}

.payment-method-card:hover {
    border-color: #1e40af;
    background-color: #f8f9fa;
}

.payment-method-card.selected {
    border-color: #1e40af;
    background-color: #e7f3ff;
}

.payment-method-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.payment-method-icon {
    font-size: 1.5rem;
    color: #1e40af;
}

.payment-method-options {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

.confirmation-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    background-color: #f8f9fa;
}

.confirmation-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.confirmation-row:last-child {
    border-bottom: none;
}

.confirmation-row.total {
    font-size: 1.1em;
    font-weight: bold;
}

.confirmation-divider {
    height: 2px;
    background-color: #1e40af;
    margin: 1rem 0;
}

.recorded-by {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: #f3f4f6;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #374151;
}

.payment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Form Input Improvements */
.form-input, .form-select {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.form-input:focus, .form-select:focus {
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(0, 153, 255, 0.1);
    outline: none;
}

div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm) { background: #1e40af !important; }

div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel) { border: 1px solid var(--gray-200) !important; color: var(--gray-800)  !important; background-color: white !important; }



.take-payment-btn { background: #e8f6e9; color: #198754; border: 1px solid #198754; }

.take-payment-btn:hover { background-color: #1a8755;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgb(26 135 85 / 53%); border-color: #198754; }

    .take-payment-btn:active { background-color: #1a8755 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgb(26 135 85 / 53%) !important; border-color: #198754 !important; }

    .take-payment-btn:disabled {     background: #e8f6e9;
    color: #198754;
    border: 1px solid #198754;  }


/* Currency symbol styling for price fields */
.currency-input {
    position: relative;
    display: inline-block;
    width: 100%;
}

.currency-input::before {
    content: "£";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #000000;
    font-weight: 500;
    z-index: 1;
    pointer-events: none;
}

.currency-input input {
    padding-left: 30px !important;
}

/* Ensure all price fields have the currency symbol */
#edit_price,
#edit_parts_cost,
#edit_additional_costs,
#partPaymentAmount {
    padding-left: 22px !important;
}

/* Remove the padding when fields are in focus for better appearance */
.currency-input input:focus {
    padding-left: 30px !important;
}


/* Fix Input Group Alignment */
.input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
}

#monthDisplay { border-radius: 6px !important; cursor: pointer; }

.input-group .form-input {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    margin: 0;
}

.input-group .input-group-text {
    /*background-color: #f8f9fa !important;*/
    border: 1px solid #e2e8f0;
    border-left: none;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.75rem;
}

/*.input-group-text .fas { color: #6b7280; }*/



/* Ensure proper border radius when there's an error */
.input-group .form-input.is-invalid {
    border-right: none;
}

.input-group .form-input.is-invalid + .input-group-text {
    border-color: #dc3545;
}

/* Switch styles within input group */
.input-group .switch {
    margin: 0;
}

.input-group .slider {
    margin: 0;
}


/* Modern Customer Type Selector */
.customer-type-selector {
    margin-bottom: 1.5rem;
}

.customer-type-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 0.75rem;
}

.customer-type-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.customer-type-card {
    position: relative;
    border: 1px solid #dddddd;
    border-radius: 8px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    text-align: center;
}

.customer-type-card:hover {
    border-color: #1e40af;
    background-color: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 153, 255, 0.1);
}

.customer-type-card.selected {
    border-color: #1e40af;
    background: linear-gradient(135deg, #f0f9ff 0%, #e6f3ff 100%);
    /*box-shadow: 0 4px 16px rgba(0, 153, 255, 0.15);*/
}

.customer-type-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    background: rgba(0, 156, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.customer-type-card.selected .customer-type-icon {
    background: #1e40af;
    transform: scale(1.1);
}

.customer-type-icon i {
    font-size: 1.25rem;
    color: #1e40af;
    transition: all 0.3s ease;
}

.customer-type-card.selected .customer-type-icon i {
    color: white;
}

.customer-type-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.customer-type-card.selected .customer-type-title {
    color: #1e40af;
}

.customer-type-desc {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.4;
}

.customer-type-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Customer Search Section */
.customer-search-section {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.customer-search-section.active {
    background: white;
    border-color: #1e40af;
    box-shadow: 0 2px 8px rgba(0, 153, 255, 0.1);
}

.search-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--gray-700);
    font-weight: 500;
}

.search-section-header i {
    color: #1e40af;
    font-size: 1.1rem;
}

.search-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .customer-type-options {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .customer-type-card {
        padding: 1rem;
    }
    
    .customer-type-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0.5rem;
    }
    
    .customer-type-icon i {
        font-size: 1rem;
    }
}

/* Animation for search section */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.customer-search-section {
    animation: slideDown 0.3s ease-out;
}

/* Attendee Type Selector Styles */
.attendee-type-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.attendee-type-card {
    position: relative;
    border: 1px solid #dddddd;
    border-radius: 8px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    text-align: center;
}

.attendee-type-card:hover {
    border-color: #1e40af;
    background-color: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 153, 255, 0.1);
}

.attendee-type-card.selected {
    border-color: #1e40af;
    background: linear-gradient(135deg, #f0f9ff 0%, #e6f3ff 100%);
    /*box-shadow: 0 4px 16px rgba(0, 153, 255, 0.15);*/
}

.attendee-type-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    background: rgba(0, 156, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.attendee-type-card.selected .attendee-type-icon {
    background: #1e40af;
    transform: scale(1.1);
}

.attendee-type-icon i {
    font-size: 1.25rem;
    color: #1e40af;
    transition: all 0.3s ease;
}

.attendee-type-card.selected .attendee-type-icon i {
    color: white;
}

.attendee-type-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.attendee-type-card.selected .attendee-type-title {
    color: #1e40af;
}

.attendee-type-desc {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.4;
}

.attendee-type-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.attendee-input-container {
    margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .attendee-type-options {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .attendee-type-card {
        padding: 1rem;
    }
    
    .attendee-type-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0.5rem;
    }
    
    .attendee-type-icon i {
        font-size: 1rem;
    }
}


.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    width: 100%;
/*    max-width: 800px;*/
   /* max-height: 90vh;
    overflow-y: visible;*/
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 2rem;
}

.modal-header {
   margin-bottom: 2rem;
    padding-bottom: 1rem;
/*    border-bottom: 1px solid #eee;*/
    padding: 0;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

.form-section {
    margin-bottom: 2rem;
}



.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/*.form-group {
    margin-bottom: 1.5rem;
}*/

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 0.5rem;
}

.required {
    color: #e74c3c;
}

.form-input, .form-select, textarea.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    /*box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);*/
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    /*background-color: #f9f9f9;*/
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
    background-color: white;
}

.form-input.error, .form-select.error {
    border-color: #e74c3c;
}


.error-message {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-left: 0.5rem;
    font-weight: 400;
}

.input-note {
    font-size: 0.8rem;
    color: #777;
    margin-top: 0.25rem;
    display: block;
}


.modern-search-group {
    border-radius: 5px;
    overflow: hidden;
    flex-wrap: nowrap !important;
     /*border: 1px solid #ddd;*/
}

.modern-search-group .modern-search-input {
    padding: 0.75rem 1rem;
    background: #ffffff;
}

.modern-search-group .modern-search-btn {
    background: #1e40af;
    border: none;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0;
    transition: background-color 0.3s ease;
}

.modern-search-group .modern-search-btn:hover {
    background: #152f86;
}

.modern-search-group .modern-search-btn:active { background-color: #1e40af !important; color: #fff !important; }


/* Toggle Switch */
.toggle-group {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    background-color: #ddd;
    border-radius: 20px;
    margin-right: 0.5rem;
    transition: background-color 0.3s;
}

.toggle-switch:after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: white;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

/*input[type="checkbox"] {
    display: none;
}*/

input[type="checkbox"]:checked + label .toggle-switch {
    background-color: #1e40af;
}

input[type="checkbox"]:checked + label .toggle-switch:after {
    transform: translateX(20px);
}

.toggle-label {
    font-size: 0.9rem;
    color: #555;
}

/* File Upload */
.file-upload-container {
    margin-top: 0.5rem;
}

.file-upload-label {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background-color: #f0f0f0;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.file-upload-label:hover {
    background-color: #e0e0e0;
}

.upload-icon {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.upload-text {
    font-size: 0.9rem;
}

.file-upload-note {
    font-size: 0.8rem;
    color: #777;
    margin-top: 0.5rem;
}

.logo-preview-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo-preview {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #eee;
}

.logo-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.remove-logo {
    font-size: 0.85rem;
    color: #e74c3c;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.remove-logo input {
    margin-right: 0.5rem;
}

.image-preview {
    margin-top: 1rem;
    display: none;
}

.image-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 6px;
    border: 1px solid #eee;
}

/* Buttons */
.modal-footer>* { margin: 0; }

.modal-footer {
    display: flex;
    justify-content: flex-end;
    /*padding-top: 1.5rem;*/
    /*margin-top: 1.5rem;*/
    /*padding: 1.5em 0 0 0;*/
    padding: 0;
    border: none;
}

#paymentSettingsModal .modal-footer { border-top: 1px solid #f0f0f0;
    padding-top: 20px; }

.modal-body { padding: 0px; }

.bg-primary { background-color: var(--primary) !important; }


.btn-outline {
       border: 1px solid #e2e8f0;
    color: #475569 !important;
    background: white;
    background-color: #fff !important;
    border-color: #e2e8f0 !important;
}

.btn-outline:hover {
    border-color: #1e40af;
    color: #1e40af;
    background: #f8fafc;
}

.btn-outline-primary { color: var(--primary); }

.btn-outline-primary:hover { background-color: transparent; transform: translateY(-2px); color: var(--primary); }



.btn-outline .btn-check:checked + .btn,
.btn-outline .btn.active,
.btn-outline .btn.show,
.btn-outline .btn:first-child:active,
.btn-outline :not(.btn-check) + .btn:active {
  border: 1px solid #e2e8f0;
  color: #475569;
  background: white;
}

.btn-primary, .btn-secondary, .btn-outline, .btn-danger {
    padding: 0.75rem 1.5rem;
}

.chevbtns { padding: 0px !important; }


.btn-secondary {
    background-color: #f0f0f0;
    color: #555;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

.btn-secondary:active { background-color: #e0e0e0 !important; color: #21253b !important;  }



/* Responsive */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
}



/* Modern Tab Container */
.modern-tab-container {
    position: relative;
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
}

.modern-tabs {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
    position: relative;
    z-index: 2;
}

.modern-tab-item {
    margin-right: 0.25rem;
    flex: 1;
    min-width: 140px;
}

.modern-tab-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    border: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    width: 100%;
    text-align: center;
}

.modern-tab-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #1e40af;
    border-radius: 3px 3px 0 0;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

.modern-tab-link:hover {
    color: #1e40af;
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
}

.modern-tab-link:hover::before {
    width: 40%;
}

.modern-tab-link.active {
    color: #1e40af;
    background: white;
}

.modern-tab-link.active::before {
    width: 100%;
    background: #1e40af;
}

.tab-icon {
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.modern-tab-link.active .tab-icon {
    transform: scale(1.1);
    color: #1e40af;
}

.tab-indicator {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #1e40af;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.modern-tab-link.active .tab-indicator {
    transform: scaleX(1);
}

.invoice-search-box {     background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s 
ease; }


.address-search-box {     background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s 
ease; }



.tab-pane {
    display: none;
    animation: none;
}

.tab-pane.active {
    display: block;
    animation: slideUpFade 0.4s ease-out;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Responsive Tabs */
@media (max-width: 768px) {
    .modern-tab-container {
        border-radius: 8px 8px 0 0;
        padding: 0.25rem 0.25rem 0;
    }
    
    .modern-tabs {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .modern-tab-item {
        margin-right: 0;
        margin-bottom: 0;
        flex: none;
    }
    
    .modern-tab-link {
        border-radius: 6px;
        padding: 1rem 1rem;
        justify-content: flex-start;
    }
    
    .modern-tab-link::before {
        display: none;
    }
    
    .modern-tab-link.active {
        background: white;
        box-shadow: 0 2px 8px rgba(0, 153, 255, 0.15);
    }

}

/

/* Loading state for tabs */
.modern-tab-link.loading {
    pointer-events: none;
    opacity: 0.7;
}

.modern-tab-link.loading .tab-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Focus states for accessibility */
.modern-tab-link:focus {
    outline: 2px solid #1e40af;
    outline-offset: 2px;
}

.modern-tab-link:focus:not(:focus-visible) {
    outline: none;
}



/* Table Styles */
.modern-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
}

.modern-table thead {
  background-color: #f8f9fa;
}

.modern-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #555;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}

.modern-table th:hover {
  background-color: #f1f5f9;
  cursor: pointer;
}

.th-content {
  /*display: flex;
  align-items: center;*/
  text-align: center;
  gap: 0.5rem;
}

.sort-icon {
  color: #ccc;
  font-size: 0.8rem;
}

.modern-table td {
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

.td-content {
  /*display: flex;
  align-items: center;*/
/*  text-align: center;
  gap: 0.5rem;*/
}

.clickable-row:hover {
  background-color: #f8fafc;
  cursor: pointer;
}

.clickable-row:active {
  background-color: #f1f5f9;
}

/* No Results Styling */
.no-results td {
  padding: 3rem 1rem;
  text-align: center;
}

.no-results-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #64748b;
}

/*.no-results-content i {
  color: #cbd5e1;
}*/

/* Pagination */
.pagination {
  gap: 0.5rem;
}

.page-item.active .page-link {
  background-color: #1e40af;
  border-color: #1e40af;
}

.page-link {
  color: #555;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  border: 1px solid #e2e8f0;
}

.page-link:hover {
  background-color: #f1f5f9;
}


.metric-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(0, 154, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 154, 255, 0.15);
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    background: #1e40af;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.metric-description {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
}

/* Card and Container Styles */
.card {
  border-radius: 12px;
  /*overflow: hidden;*/
}

.table-container {
  padding: 0 1rem;
  max-height: calc(100vh - 560px);
  overflow-y: auto;
}

/*.search-container .input-group-text {
  border-left: none;
  background-color: transparent;
}*/

.search-container .form-input {
  border-right: none;
}

.search-container .form-input:focus {
  box-shadow: none;
  border-color: #ced4da;
}


/* Payment Status Pill Styling */
.payment-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 110px;
    height: 24px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
}

.status-pill {
    /*display: inline-flex;*/
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 110px;
    height: 24px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    padding: 8px;
}

/*Validation*/
.form-input.is-invalid, .was-validated .form-input:invalid {
    border-color: #dd3446;
    padding-right: calc(1.5em + .75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}

/* Sidebar Footer */
.sidebar-footer-enhanced {
    padding: 1.25rem;
    border-top: 1px solid #f1f5f9;
    background: white;
}

.footer-content-enhanced {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-logo-enhanced {
    max-width: 120px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-logo-enhanced:hover {
    opacity: 1;
    transform: scale(1.05);
}

.footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy-enhanced {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

.footer-version {
    font-size: 0.7rem;
    color: #cbd5e1;
    font-weight: 500;
}



.view-toggle-group {
    display: flex;
    background: #f8fafc;
    border-radius: 8px;
    padding: 4px;
    border: 1px solid #e2e8f0;
}

.view-toggle-btn {
      border: none !important;
    border-radius: 6px !important;
    font-weight: 500;
    /*transition: all 0.2s ease;*/
    color: #ccc !important;
    background-color: #f9fafc !important;
}





.view-toggle-btn:hover {
    color: #ccc !important;
}

.view-toggle-btn-edit {
    border: none !important;
    border-radius: 6px !important;
    font-weight: 500;
    /*transition: all 0.2s ease;*/
    color: #ccc;
}



.summary-item {
    margin-bottom: 0.5rem;
}

.summary-label {
    color: #6b7280;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 600;
}



.btn.view-toggle-btn.active { background: white !important;
    color: #1e40af !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    /*border: 1px solid #e2e8f0 !important; }*/

    .btn.view-toggle-btn-edit.active { background: white !important;
    color: #1e40af !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #e2e8f0 !important; }

#profile-tab.active { background: white !important;
    color: #1e40af !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #e2e8f0 !important; }

#plan-tab.active { background: white !important;
    color: #1e40af !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #e2e8f0 !important; }

#company-tab.active,
#email-tab.active,
#sms-tab.active,
#bank-tab.active { background: white !important;
    color: #1e40af !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #e2e8f0 !important; }


 #jobDetailsTab.active { background: white !important;
    color: #1e40af !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #e2e8f0 !important; }

#accountsTab.active { background: white !important;
    color: #1e40af !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #e2e8f0 !important; }

#customerTab.active { background: white !important;
    color: #1e40af !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #e2e8f0 !important; }

#profile-tab { color: #ccc; background-color: transparent !important; border: transparent; !important; }  
#plan-tab { color: #ccc; background-color: transparent !important;border: transparent !important;  }     

#company-tab { color: #ccc; background-color: transparent !important;border: transparent !important;  }
#email-tab { color: #ccc; background-color: transparent !important;border: transparent !important;  }
#sms-tab { color: #ccc; background-color: transparent !important;border: transparent !important;  }
#bank-tab { color: #ccc; background-color: transparent !important;border: transparent !important;  }

#customerTab { color: #ccc; background-color: transparent !important;border: transparent !important;  }  
#jobDetailsTab  { color: #ccc; background-color: transparent !important;border: transparent !important;  }  
#accountsTab { color: #ccc; background-color: transparent !important;border: transparent !important;  }  



/* Quick booking speed UI (create job/quote) */
.quick-booking-chip-list .btn {
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 0.42rem 0.72rem;
}

.quick-booking-shortcuts .quick-booking-shortcut-btn {
    min-height: 38px;
    font-size: 0.82rem;
    font-weight: 600;
}

.quick-booking-description-row .form-label {
    margin-bottom: 0.38rem;
}

.quick-suggestions {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    padding: 0.45rem 0.6rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.quick-suggestions > summary {
    cursor: pointer;
    list-style: none;
    font-size: 0.84rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quick-shortcut-tabs {
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.2rem;
    gap: 0.25rem !important;
}

.quick-shortcut-tabs .btn.btn-tabs.view-toggle-btn {
    border-radius: 7px !important;
    min-height: 34px;
    font-size: 0.8rem;
    padding: 0.35rem 0.6rem;
}

.quick-booking-date-col,
.quick-booking-time-col {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.7rem;
}

.quick-suggestions > summary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.45rem 0.6rem;
}

.quick-suggestions > summary:hover {
    color: #1e40af;
}

.quick-suggestions .quick-suggestions-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
}

.quick-suggestions > summary::-webkit-details-marker {
    display: none;
}

.quick-suggestions[open] > summary {
    margin-bottom: 0.45rem;
}

.quick-suggestions-body {
    padding-top: 0.2rem;
}

.quick-booking-chip-list .btn.btn-outline-secondary {
    border-color: #dbeafe;
    color: #1e40af;
    background: #ffffff;
}

.quick-booking-chip-list .btn.btn-outline-secondary:hover {
    border-color: #93c5fd;
    background: #eff6ff;
}

@media (max-width: 991.98px) {
    .quick-booking-description-col,
    .quick-booking-date-col,
    .quick-booking-time-col {
        margin-bottom: 0.7rem;
    }

    .quick-booking-shortcuts {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.4rem;
    }

    .quick-booking-shortcuts .quick-booking-shortcut-btn {
        width: 100%;
        border-radius: 8px !important;
        min-height: 42px;
        padding: 0.52rem 0.5rem;
    }

    .quick-booking-chip-list {
        gap: 0.45rem !important;
    }

    .quick-booking-chip-list .btn {
        font-size: 0.76rem;
        min-height: 36px;
        padding: 0.42rem 0.65rem;
    }
}
