/* PS TECH GLOBAL CRM - Custom CSS overrides & Theme styling (assets/css/ps-custom.css) */

/* Global Dark Base */
html, body {
    background-color: #000000 !important;
    color: #f3f4f6 !important;
    font-family: 'Poppins', sans-serif;
}

/* Global Checkbox and Radio Button Accent Coloring */
input[type="checkbox"],
input[type="radio"] {
    accent-color: #e6b000 !important;
    cursor: pointer;
}

/* Force All Form Controls & Inputs To Be Dark Theme & Full Width */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
    background-color: #121215 !important;
    color: #ffffff !important;
    border: 1px solid #242428 !important;
    border-radius: 0.75rem !important;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
    padding-right: 1rem !important;
    padding-left: 1rem;
    font-size: 0.875rem !important;
    width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}

/* Make Date Picker Calendar Icon Crisp White */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1) !important;
    cursor: pointer !important;
    opacity: 0.9 !important;
}

/* High Specificity Rule for Compact Inline Date Inputs */
input[type="date"].ps-date-compact,
.ps-date-compact {
    width: 135px !important;
    min-width: 135px !important;
    max-width: 135px !important;
    display: inline-block !important;
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    font-size: 0.75rem !important;
    height: 32px !important;
    border-radius: 0.5rem !important;
}

/* High Specificity Rule for Inputs with Icon Padding */
input[type="text"].ps-input-icon,
input[type="email"].ps-input-icon,
input[type="password"].ps-input-icon,
input.ps-input-icon,
.ps-input-icon,
.has-icon input {
    padding-left: 3.5rem !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    border-color: #ffc300 !important;
    box-shadow: 0 0 0 2px rgba(255, 195, 0, 0.2) !important;
    background-color: #17171c !important;
}

input::placeholder,
textarea::placeholder {
    color: #71717a !important;
    opacity: 1 !important;
}

/* Webkit Autofill Override */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #121215 inset !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #000000;
}
::-webkit-scrollbar-thumb {
    background: #242428;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ffc300;
}

/* DataTables Server-Side Dark Theme & Layout Alignment */
.dataTables_wrapper {
    color: #a1a1aa !important;
    font-size: 0.875rem !important;
    padding-top: 0.5rem;
    width: 100% !important;
}

.dataTables_wrapper::after {
    content: "";
    display: table;
    clear: both;
}

.dataTables_wrapper .dataTables_length {
    float: left !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-bottom: 1.25rem !important;
    color: #a1a1aa !important;
}

.dataTables_wrapper .dataTables_length select {
    background-color: #121215 !important;
    color: #ffffff !important;
    border: 1px solid #242428 !important;
    border-radius: 0.5rem !important;
    padding: 0.35rem 1.75rem 0.35rem 0.75rem !important;
    display: inline-block !important;
    width: auto !important;
}

.dataTables_wrapper .dataTables_filter {
    float: right !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.5rem !important;
    margin-bottom: 1.25rem !important;
    color: #a1a1aa !important;
}

.dataTables_wrapper .dataTables_filter input {
    background-color: #121215 !important;
    color: #ffffff !important;
    border: 1px solid #242428 !important;
    border-radius: 0.5rem !important;
    padding: 0.4rem 0.75rem !important;
    display: inline-block !important;
    width: 220px !important;
    margin-left: 0.5rem !important;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #ffc300 !important;
}

.dataTables_wrapper .dataTables_info {
    float: left !important;
    color: #71717a !important;
    font-size: 0.75rem !important;
    padding-top: 1rem !important;
}

.dataTables_wrapper .dataTables_paginate {
    float: right !important;
    padding-top: 1rem !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    background: #121215 !important;
    color: #d4d4d8 !important;
    border: 1px solid #242428 !important;
    border-radius: 0.5rem !important;
    margin: 0 2px !important;
    padding: 0.3rem 0.75rem !important;
    font-size: 0.75rem !important;
    cursor: pointer !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #1f1f26 !important;
    color: #ffc300 !important;
    border-color: #ffc300/40 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #ffc300 !important;
    color: #000000 !important;
    font-weight: 700 !important;
    border-color: #ffc300 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
}

/* Select2 Dark Theme Customization */
.select2-container {
    max-width: 100%;
}
form .select2-container,
.fixed .select2-container {
    width: 100% !important;
}
.select2-container.w-32, .select2-container.\!w-32 { width: 8rem !important; }
.select2-container.w-36, .select2-container.\!w-36 { width: 9rem !important; }
.select2-container.w-40, .select2-container.\!w-40 { width: 10rem !important; }
.select2-container.w-44, .select2-container.\!w-44 { width: 11rem !important; }
.select2-container.w-48, .select2-container.\!w-48 { width: 12rem !important; }
.select2-container.w-52, .select2-container.\!w-52 { width: 13rem !important; }
.select2-container.w-56, .select2-container.\!w-56 { width: 14rem !important; }
.select2-container.w-64, .select2-container.\!w-64 { width: 16rem !important; }

.flex-wrap > .select2-container,
.flex > .select2-container,
.inline-flex > .select2-container {
    width: auto;
    min-width: 150px;
}
.select2-container--default .select2-selection--single {
    background-color: #121215 !important;
    border: 1px solid #242428 !important;
    border-radius: 0.75rem !important;
    height: 46px !important;
    display: flex !important;
    align-items: center !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #ffffff !important;
    line-height: 46px !important;
    padding-left: 16px !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px !important;
    right: 12px !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #a1a1aa transparent transparent transparent !important;
}
.select2-dropdown,
.select2-results,
.select2-results__options {
    background-color: #121215 !important;
    border: 1px solid #242428 !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.9) !important;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
    background-color: #16161a !important;
    border: 1px solid #242428 !important;
    color: #ffffff !important;
    border-radius: 0.5rem !important;
}
.select2-container--default .select2-results__option {
    background-color: #121215 !important;
    color: #ffffff !important;
    padding: 10px 16px !important;
}
.select2-container--default .select2-results__option--highlighted,
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--selectable.select2-results__option--highlighted,
.select2-results__option--highlighted,
.select2-results__option:hover,
.select2-results__option:focus {
    background-color: #ffc300 !important;
    color: #000000 !important;
    font-weight: 600 !important;
}
/* Selected option */
.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: #27272a !important;
    color: #ffc300 !important;
    font-weight: 600 !important;
}
/* Selected + highlighted */
.select2-container--default .select2-results__option--highlighted[aria-selected="true"] {
    background-color: #ffc300 !important;
    color: #000000 !important;
}

/* Native HTML Select and Option Dark Theme Enforcement */
select,
select.ps-input,
select.ps-select2 {
    background-color: #121215 !important;
    color: #ffffff !important;
}

select option,
select optgroup {
    background-color: #121215 !important;
    color: #ffffff !important;
    padding: 8px 12px !important;
}

select option:hover,
select option:focus,
select option:active,
select option:checked {
    background-color: #ffc300 !important;
    color: #000000 !important;
}

/* Dropify Dark Theme Overrides */
.dropify-wrapper {
    background-color: #121215 !important;
    border: 2px dashed #242428 !important;
    border-radius: 0.75rem !important;
    color: #a1a1aa !important;
}
.dropify-wrapper:hover {
    border-color: #ffc300 !important;
    background-color: #0e0e11 !important;
}
.dropify-wrapper .dropify-message p {
    color: #a1a1aa !important;
    font-size: 14px !important;
}

/* Alertify Custom Dark Toast Styling */
.alertify-notifier .ajs-message.ajs-success {
    background: #ffc300 !important;
    color: #000000 !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.5) !important;
}
.alertify-notifier .ajs-message.ajs-error {
    background: rgba(239, 68, 68, 0.95) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
}
.alertify-notifier .ajs-message.ajs-warning {
    background: rgba(245, 158, 11, 0.95) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
}

/* Table Hover Effect */
.ps-table tbody tr {
    transition: background-color 0.15s ease;
}
.ps-table tbody tr:hover {
    background-color: rgba(36, 36, 40, 0.5);
}

/* Global button text weight override to normal (non-bold) */
.ps-btn-primary,
.ps-btn-secondary,
button,
input[type="submit"],
a.ps-btn-primary,
a.ps-btn-secondary {
    font-weight: 400 !important;
}

/* ==========================================================================
   AlertifyJS Dialog Custom Theme (Unified Minimalist Dark Mode)
   ========================================================================== */
.alertify {
    font-family: 'Poppins', sans-serif !important;
    z-index: 99999 !important;
    pointer-events: auto !important;
}

.alertify .ajs-dimmer {
    background-color: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 99990 !important;
    pointer-events: auto !important;
}

.alertify .ajs-modal {
    z-index: 99995 !important;
    pointer-events: auto !important;
}

.alertify .ajs-dialog {
    background-color: #121215 !important;
    border: 1px solid #222226 !important;
    border-radius: 16px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8) !important;
    max-width: 500px !important;
    overflow: hidden !important;
    padding: 0 !important;
    pointer-events: auto !important;
}

.alertify .ajs-header {
    background-color: #121215 !important;
    color: #ffc300 !important;
    border-bottom: 1px solid #222226 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 16px 24px !important;
    margin: 0 !important;
}

.alertify .ajs-body {
    background-color: #121215 !important;
    color: #a1a1aa !important;
    font-size: 13.5px !important;
    padding: 24px !important;
    line-height: 1.6 !important;
}

.alertify .ajs-body .ajs-content {
    padding: 0 !important;
}

.alertify .ajs-footer {
    background-color: #0d0d0f !important;
    border-top: 1px solid #222226 !important;
    padding: 12px 24px !important;
}

.alertify .ajs-buttons {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 10px !important;
}

/* Base button styles */
.alertify .ajs-button {
    font-family: 'Poppins', sans-serif !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    padding: 8px 18px !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    text-transform: none !important;
}

/* OK Button (Primary Action - Brand Amber/Gold) */
.alertify .ajs-button.ajs-ok {
    background-color: #ffc300 !important;
    color: #000000 !important;
    border: 1px solid #ffc300 !important;
}

.alertify .ajs-button.ajs-ok:hover {
    background-color: #e6b000 !important;
    border-color: #e6b000 !important;
    box-shadow: 0 0 12px rgba(255, 195, 0, 0.3) !important;
}

/* Cancel Button (Secondary Action - Dark Theme Gray/Black) */
.alertify .ajs-button.ajs-cancel {
    background-color: #16161a !important;
    color: #ffffff !important;
    border: 1px solid #27272a !important;
}

.alertify .ajs-button.ajs-cancel:hover {
    background-color: #222226 !important;
    border-color: #ffc300 !important;
    color: #ffc300 !important;
}

/* Close/Maximize Command Buttons */
.alertify .ajs-commands {
    display: none !important;
}

.alertify .ajs-commands button {
    filter: invert(1) brightness(0.8) !important;
    opacity: 0.6 !important;
    transition: opacity 0.2s ease !important;
}

.alertify .ajs-commands button:hover {
    opacity: 1 !important;
}

/* Alertify Notifier Bottom-Right Placement */
.alertify-notifier.ajs-bottom.ajs-right {
    bottom: 24px !important;
    right: 24px !important;
    top: auto !important;
    left: auto !important;
}

.alertify-notifier.ajs-right .ajs-message {
    margin-left: -300px !important;
}

/* Prevent vertical scrollbars on table horizontal overflow containers */
.overflow-x-auto {
    overflow-y: hidden !important;
}

/* Enforce table width constraints to prevent 1px collapse or empty text overflow scrollbars */
.ps-table,
table.dataTable {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

/* Custom Confirm Modal Redesign CSS */
#ps-custom-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: auto;
}

#ps-custom-confirm-modal.opacity-100 {
    opacity: 1;
}

#ps-custom-confirm-modal .modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1;
}

#ps-custom-confirm-modal .modal-dialog {
    position: relative;
    background-color: #121215;
    border: 1px solid #242428;
    border-radius: 16px;
    width: 100%;
    max-width: 460px;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    z-index: 2;
}

#ps-custom-confirm-modal.opacity-100 .modal-dialog {
    transform: scale(1);
}

#ps-custom-confirm-modal .modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #242428;
    display: flex;
    align-items: center;
    gap: 16px;
}

#ps-custom-confirm-modal .modal-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(255, 195, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffc300;
    font-size: 1.25rem;
}

#ps-custom-confirm-modal .modal-title {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

#ps-custom-confirm-modal .modal-body {
    padding: 24px;
    color: #d4d4d8;
    font-size: 0.875rem;
    line-height: 1.6;
    font-family: 'Poppins', sans-serif;
}

#ps-custom-confirm-modal .modal-body strong {
    color: #ffffff;
}

#ps-custom-confirm-modal .modal-footer {
    padding: 16px 24px;
    background-color: #0d0d0f;
    border-top: 1px solid #242428;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

#ps-custom-confirm-modal .btn-cancel {
    padding: 10px 22px;
    border-radius: 12px;
    border: 1px solid #242428;
    background-color: transparent;
    color: #a1a1aa;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s ease;
}

#ps-custom-confirm-modal .btn-cancel:hover {
    color: #ffffff;
    background-color: #1f1f24;
    border-color: #3f3f46;
}

#ps-custom-confirm-modal .btn-ok {
    padding: 10px 22px;
    border-radius: 12px;
    border: none;
    background-color: #ffc300;
    color: #000000;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(255, 195, 0, 0.2);
}

#ps-custom-confirm-modal .btn-ok:hover {
    background-color: #e6b000;
    box-shadow: 0 4px 20px rgba(255, 195, 0, 0.35);
}

/* GSTIN Specific Input Formatting */
input.ps-gstin-input,
.ps-gstin-input {
    font-family: 'Roboto Mono', monospace !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    color: #ffc300 !important;
}

/* Enhanced Premium Card Hover Glow */
.ps-card {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease !important;
}
.ps-card:hover {
    box-shadow: 0 10px 30px -10px rgba(255, 195, 0, 0.08) !important;
}

/* Modal Animation Keyframes */
@keyframes psModalPopIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-animate-in {
    animation: psModalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Print Stylesheet for Invoices & Reports (Standard A4 Page Format) */
@media print {
    @page {
        size: A4 portrait;
        margin: 10mm 12mm 10mm 12mm;
    }
    html, body {
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        background-color: #ffffff !important;
        background: #ffffff !important;
        color: #000000 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    .no-print, header, sidebar, #mobileMenuToggle, button, nav, .no-print-container > .no-print {
        display: none !important;
    }
    .ps-card, .print-card {
        background: #ffffff !important;
        border: none !important;
        color: #000000 !important;
        box-shadow: none !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    tr, .print-avoid-break {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }
}

/* Compact Select2 Styling for Inline Filter Bars */
.ps-inline-filter .select2-container,
.ps-filter-wrapper .select2-container {
    width: 160px !important;
    max-width: 160px !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
}
.ps-inline-filter .select2-container--default .select2-selection--single,
.ps-filter-wrapper .select2-container--default .select2-selection--single {
    height: 34px !important;
    border-radius: 0.5rem !important;
    background-color: #121215 !important;
    border: 1px solid #242428 !important;
}
.ps-inline-filter .select2-container--default .select2-selection--single .select2-selection__rendered,
.ps-filter-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 34px !important;
    font-size: 0.75rem !important;
    padding-left: 10px !important;
    padding-right: 20px !important;
    color: #e4e4e7 !important;
}
.ps-inline-filter .select2-container--default .select2-selection--single .select2-selection__arrow,
.ps-filter-wrapper .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 32px !important;
    right: 6px !important;
}

/* Service Renewal Status Badges Font Size Override */
.badge-expiring,
.badge-expired,
.badge-active {
    font-size: 0.65rem !important;
}

/* Fixed/Sticky Actions Column for DataTables */
.ps-table-actions-header,
.ps-table-actions-cell {
    position: sticky !important;
    right: 0 !important;
    z-index: 20 !important;
    min-width: 100px !important;
    max-width: 100px !important;
}
th.ps-table-actions-header {
    background-color: #121215 !important;
    border-left: 1px solid #222226 !important;
}
td.ps-table-actions-cell {
    background-color: #0d0d0f !important;
    border-left: 1px solid #222226 !important;
}
tr:hover td.ps-table-actions-cell {
    background-color: #16161a !important;
}

/* Ensure DataTables overflow wrapper allows dropdowns to display above cells */
.ps-card.overflow-hidden {
    overflow: visible !important;
}
.dataTables_wrapper {
    overflow: visible !important;
}

/* Ensure active dropdown row & cell stay on top of lower table rows (z-35/40), well below modals (z-9999) */
tr.ps-dropdown-active {
    position: relative !important;
    z-index: 35 !important;
}
td.ps-dropdown-cell-active {
    position: relative !important;
    z-index: 35 !important;
}
.ps-dropdown,
.ps-action-dropdown {
    position: relative !important;
    z-index: 35 !important;
}
.ps-dropdown-menu {
    z-index: 40 !important;
}

/* Platform Column Width Limit & Line Break */
.ps-platform-cell {
    max-width: 200px !important;
    width: 200px !important;
    white-space: normal !important;
    word-break: break-word !important;
}

/* Universal Modal Fixed Header/Footer & Scrollable Body Fixes */
.ps-modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    background-color: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(4px) !important;
    z-index: 50 !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem !important;
    overflow-y: auto !important;
}

.ps-modal-overlay:not(.hidden) {
    display: flex !important;
}

.ps-modal-overlay.hidden {
    display: none !important;
}

.ps-modal-card {
    max-height: 85vh !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin-top: auto !important;
    margin-bottom: auto !important;
}

.ps-modal-header {
    flex-shrink: 0 !important;
    padding: 1.25rem 1.5rem !important;
    border-bottom: 1px solid #222226 !important;
    background-color: #0d0d0f !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.ps-modal-card > form,
.ps-modal-form {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
}

.ps-modal-body {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    padding: 1.25rem 1.5rem !important;
    min-height: 0 !important;
}

.ps-modal-footer {
    flex-shrink: 0 !important;
    padding: 1rem 1.5rem !important;
    border-top: 1px solid #222226 !important;
    background-color: #0d0d0f !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.75rem !important;
}

/* Custom Sleek Scrollbar for Modal Body */
.ps-modal-body::-webkit-scrollbar,
.ps-modal-card::-webkit-scrollbar,
.ps-custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.ps-modal-body::-webkit-scrollbar-track,
.ps-modal-card::-webkit-scrollbar-track,
.ps-custom-scrollbar::-webkit-scrollbar-track {
    background: #121215;
    border-radius: 6px;
}
.ps-modal-body::-webkit-scrollbar-thumb,
.ps-modal-card::-webkit-scrollbar-thumb,
.ps-custom-scrollbar::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 6px;
}
.ps-modal-body::-webkit-scrollbar-thumb:hover,
.ps-modal-card::-webkit-scrollbar-thumb:hover,
.ps-custom-scrollbar::-webkit-scrollbar-hover {
    background: #ffc300;
}

/* Prevent body scrolling when a modal is open */
body.ps-modal-open {
    overflow: hidden !important;
}

/* AlertifyJS Toast Notification Overrides - 100% Solid Non-Transparent Backgrounds */
.ajs-notifier {
    z-index: 99999 !important;
}

.ajs-notifier .ajs-message {
    border-radius: 0.75rem !important;
    padding: 0.85rem 1.25rem !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.15) !important;
    margin-top: 8px !important;
    opacity: 1 !important;
}

/* Processing & Standard Message (alertify.message) */
.ajs-notifier .ajs-message,
.ajs-notifier .ajs-message.ajs-message {
    background-color: #121215 !important;
    color: #ffffff !important;
    border: 1px solid #ffc300 !important;
    opacity: 1 !important;
}

/* Success Message (alertify.success) */
.ajs-notifier .ajs-message.ajs-success {
    background-color: #ffc300 !important;
    color: #000000 !important;
    border: 1px solid #e6b000 !important;
    font-weight: 700 !important;
    opacity: 1 !important;
}

/* Error Message (alertify.error) */
.ajs-notifier .ajs-message.ajs-error {
    background-color: #dc2626 !important;
    color: #ffffff !important;
    border: 1px solid #b91c1c !important;
    font-weight: 700 !important;
    opacity: 1 !important;
}

/* Warning Message (alertify.warning) */
.ajs-notifier .ajs-message.ajs-warning {
    background-color: #d97706 !important;
    color: #ffffff !important;
    border: 1px solid #b45309 !important;
    font-weight: 700 !important;
    opacity: 1 !important;
}

/* ==========================================================================
   Responsive Sidebar Collapse & Mobile Drawer Styles
   ========================================================================== */
#psMainSidebar {
    transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@media (min-width: 768px) {
    #psMainSidebar.sidebar-collapsed {
        width: 5rem !important; /* 80px */
    }
    
    #psMainSidebar.sidebar-collapsed .sidebar-text,
    #psMainSidebar.sidebar-collapsed .sidebar-section-title {
        display: none !important;
    }
    
    #psMainSidebar.sidebar-collapsed .sidebar-logo-full {
        display: none !important;
    }

    #psMainSidebar.sidebar-collapsed .sidebar-logo-icon {
        display: block !important;
    }

    #psMainSidebar.sidebar-collapsed nav a {
        justify-content: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #psMainSidebar.sidebar-collapsed #collapseIcon {
        transform: rotate(180deg) !important;
    }

    #psMainSidebar.sidebar-collapsed .sidebar-footer {
        justify-content: center !important;
        padding: 0.75rem 0.5rem !important;
    }
}

/* Mobile Drawer Slide-in and Backdrop Overlay */
@media (max-width: 767.98px) {
    #psMainSidebar.mobile-open {
        transform: translateX(0) !important;
    }
}

#psSidebarBackdrop.active {
    display: block !important;
}




