/* ========================================================================
   PLATINUM DASHBOARD - UNIFIED PAGES STYLING (pages.css)
   Consolidates: Properties, Contracts, Cheques, Payments, Settings, etc.
   Supports: LTR & RTL in a single file.
   ======================================================================== */
:root {
    --premium-primary: #3b82f6;
    --premium-primary-soft: rgba(59, 130, 246, 0.1);
    --premium-success: #10b981;
    --premium-success-soft: rgba(16, 185, 129, 0.1);
    --premium-warning: #f59e0b;
    --premium-warning-soft: rgba(245, 158, 11, 0.1);
    --premium-danger: #ef4444;
    --premium-danger-soft: rgba(239, 68, 68, 0.1);
    --premium-info: #06b6d4;
    --premium-info-soft: rgba(6, 182, 212, 0.1);
    --premium-slate: #1e293b;
    --premium-slate-light: #64748b;
    /* Legacy Sync */
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
}

/* Contract Terms Styles */
.contract-clauses-wrapper {
    max-height: 400px !important;
    overflow-y: auto !important;
    padding-right: 5px;
}

.clause-item {
    background: #fdfdfd !important;
    border-radius: 8px !important;
    border: 1px solid #f1f1f1 !important;
    border-right: 3px solid #28d094 !important;
}

.clause-item .badge {
    font-size: 14px !important;
}

.clause-content {
    white-space: pre-line !important;
}

.contract-text-viewer {
    max-height: 400px !important;
    overflow-y: auto !important;
    background: #fdfdfd !important;
    border-radius: 8px !important;
    border: 1px solid #f1f1f1 !important;
    white-space: pre-line !important;
}

/* ==========================================================================
   GLOBAL PREMIUM COMPONENTS (Unified)
   ========================================================================== */
/* Removed redundant .premium-card - using system-style.css instead */
.premium-mandatory-header {
    background: #ffffff !important;
    color: #1e293b !important;
    font-weight: 700 !important;
    padding: 10px 20px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
}

[dir="rtl"] .premium-mandatory-header i,
html[dir="rtl"] .premium-mandatory-header i,
[data-textdirection="rtl"] .premium-mandatory-header i {
    margin-left: 10px !important;
    margin-right: 0 !important;
}

[dir="ltr"] .premium-mandatory-header i,
html[dir="ltr"] .premium-mandatory-header i {
    margin-right: 10px !important;
    margin-left: 0 !important;
}

/* Global Premium Buttons (Unified to Minimalist White Style) */
.btn-premium-save,
button.btn-premium-save,
.btn-premium-add,
.btn-premium-edit,
.btn-premium-back,
a.btn-premium-back {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 0 24px !important;
    height: 42px !important;
    margin: 0 4px !important;
    border-radius: 4px !important;
    /* Unified rounded style matching cancel button */
    font-weight: 700 !important;
    font-size: 1rem !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    cursor: pointer !important;
    text-decoration: none !important;
    background: #ffffff !important;
    color: #475569 !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
}

.btn-premium-save:hover,
button.btn-premium-save:hover,
.btn-premium-add:hover,
.btn-premium-edit:hover,
.btn-premium-back:hover,
.btn-premium-secondary:hover,
.btn-premium-cancel:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
    background: #ffffff !important;
    color: #1e293b !important;
    border-color: #5A8DEE !important;
}

.btn-premium-save i,
.btn-premium-add i,
.btn-premium-edit i,
.btn-premium-back i {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.btn-premium-save:hover i,
.btn-premium-add:hover i,
.btn-premium-edit:hover i,
.btn-premium-back:hover i {
    transform: translateX(4px);
}

[data-textdirection="rtl"] .btn-premium-save:hover i,
[data-textdirection="rtl"] .btn-premium-add:hover i,
[data-textdirection="rtl"] .btn-premium-edit:hover i,
[data-textdirection="rtl"] .btn-premium-back:hover i {
    transform: translateX(-4px);
}

.btn-premium-save.shadow-pulse,
.btn-premium-add.shadow-pulse {
    animation: pulse-indigo 2.5s infinite;
}

/* ==========================================================================
   MODULE: PROPERTIES (العقارات)
   ========================================================================== */
.header-bg-shape {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

[dir="ltr"] .header-bg-shape {
    right: auto;
    left: -50px;
}

/* Table Widths */
.col-owner-width {
    width: 60% !important;
}

.col-percentage-width {
    width: 15% !important;
}

.col-primary-width {
    width: 12% !important;
}

.col-actions-width {
    width: 13% !important;
}

/* Standardized Table Styling for Properties & Customers */
.premium-table thead th {
    background-color: #f8fafc !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    color: #475569 !important;
    padding: 15px 20px !important;
    vertical-align: middle !important;
    border-bottom: 2px solid #f1f5f9 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.premium-table tbody td {
    padding: 15px 20px !important;
    vertical-align: middle !important;
    color: #1e293b !important;
    font-weight: 500 !important;
}

.th-w-20 {
    width: 20% !important;
}

.th-w-25 {
    width: 25% !important;
}

.th-w-15 {
    width: 15% !important;
}

/* Heading Elements Icons Scaling */
.heading-elements ul li a i {
    font-size: 11px !important;
    color: #94a3b8 !important;
    transition: color 0.3s ease;
}

.heading-elements ul li a:hover i {
    color: #475569 !important;
}

.th-w-10 {
    width: 10% !important;
}

.th-w-actions {
    width: 30px !important;
}

.header-trash-icon {
    margin-inline-start: 4px !important;
    font-size: 1.1rem !important;
    color: #94a3b8 !important;
}

.btn-trash-cell {
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

/* ==========================================================================
   MODULE: CONTRACTS (العقود)
   ========================================================================== */
.contract-text-viewer {
    line-height: 1.7 !important;
    color: #334155 !important;
    background: #fff !important;
    border-radius: 12px !important;
    padding: 25px !important;
}

[dir="rtl"] .border-primary-left,
html[dir="rtl"] .border-primary-left,
[data-textdirection="rtl"] .border-primary-left {
    border-right: 4px solid #7367f0 !important;
    border-left: 0 !important;
}

[dir="ltr"] .border-primary-left,
html[dir="ltr"] .border-primary-left {
    border-left: 4px solid #7367f0 !important;
    border-right: 0 !important;
}

/* Premium Badge Hint (Insurance Locked) */
.premium-badge-hint {
    background-color: rgba(239, 68, 68, 0.08) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    padding: 6px 14px !important;
    border-radius: 50px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.05) !important;
    white-space: nowrap !important;
}

.premium-badge-hint i {
    font-size: 13px !important;
    animation: premium-pulse-lock 2s infinite !important;
}

@keyframes premium-pulse-lock {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

[data-textdirection="rtl"] .premium-badge-hint {
    letter-spacing: 0 !important;
}

/* ==========================================================================
   MODULE: CHEQUES (الشيكات)
   ========================================================================== */
.cheque-summary-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    border-left: 5px solid #ef4444;
    padding: 24px;
}

[dir="rtl"] .cheque-summary-card {
    border-left: 1px solid #f1f5f9;
    border-right: 5px solid #ef4444;
}

/* ==========================================================================
   MODULE: PAYMENTS (الدفعات)
   ========================================================================== */
.payment-summary-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    border-left: 5px solid #10b981;
    padding: 24px;
}

[dir="rtl"] .payment-summary-card,
html[dir="rtl"] .payment-summary-card,
[data-textdirection="rtl"] .payment-summary-card {
    border-left: 1px solid #f1f5f9;
    border-right: 5px solid #10b981;
}

/* Property Mandatory Section (Matched to Contract Insurance Style) */
.property-mandatory-section {
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    margin: 30px 0 !important;
    background: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

.property-mandatory-header {
    background: #f8fafc !important;
    padding: 12px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.property-mandatory-header .title-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: #1e293b !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
}

.property-mandatory-header i {
    font-size: 1.15rem !important;
    color: #475569 !important;
}

.property-mandatory-body {
    padding: 25px 20px !important;
}

[data-textdirection="rtl"] .property-mandatory-header .title-wrapper {
    gap: 12px !important;
}

/* Sub-header inside mandatory body (e.g. Cheque Details) */
.mandatory-sub-header {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding-bottom: 8px !important;
    margin-bottom: 15px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.mandatory-sub-header i {
    font-size: 1.1rem !important;
    color: #3b82f6 !important;
    /* text-primary */
}

.mandatory-sub-header h6 {
    color: #3b82f6 !important;
    /* text-primary */
    margin: 0 !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
}

.mandatory-sub-header small {
    color: #64748b !important;
    /* text-muted */
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    margin-right: 5px !important;
}

[data-textdirection="rtl"] .mandatory-sub-header small {
    margin-right: 0 !important;
    margin-left: 5px !important;
}

/* ==========================================================================
   MODULE: SETTINGS (الإعدادات العامة) - Scoped Styles Only
   ========================================================================== */
/* Use global .premium-card and .premium-mandatory-header from system-style.css */
.premium-card {
    margin-bottom: 17px !important;
}

.premium-mandatory-header {
    background: #f8fafc !important;
    padding: 12px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid #e2e8f0 !important;
    font-size: 1.58rem !important;
    font-weight: 800 !important;
    color: #1e293b !important;
}

.premium-mandatory-header .title-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: #1e293b !important;
    font-weight: 800 !important;
    font-size: 1.27rem !important;
}

.premium-mandatory-header i {
    font-size: 1.45rem !important;
    color: #475569 !important;
}

[data-textdirection="rtl"] .premium-mandatory-header .title-wrapper {
    gap: 12px !important;
}

.premium-form-group {
    margin-bottom: 27px !important;
    position: relative !important;
}

.premium-mandatory-body .row,
form.ajax-form .row {
    margin-bottom: 22px !important;
}

.error-text {
    position: relative !important;
    margin-top: 4px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    display: block !important;
    word-wrap: break-word !important;
    white-space: normal !important;
    animation: premiumFadeInUp 0.3s ease-out !important;
    z-index: 10 !important;
}

[dir="rtl"] .error-text,
html[dir="rtl"] .error-text,
[data-textdirection="rtl"] .error-text {
    text-align: right !important;
    padding-right: 2px !important;
    direction: rtl !important;
}

/* Static error text for titles or sections where absolute positioning is not suitable */
.premium-section-title .error-text {
    position: static !important;
    display: inline-block !important;
    width: auto !important;
    margin-right: 10px !important;
    margin-left: 10px !important;
    animation: none !important;
}

[dir="ltr"] .error-text,
html[dir="ltr"] .error-text {
    text-align: left !important;
    padding-left: 2px !important;
    direction: ltr !important;
}

/* Special styling for permissions error chip in section titles */
.premium-error-alert-chip {
    background-color: rgba(255, 73, 97, 0.1) !important;
    color: #ff4961 !important;
    border: 1px solid rgba(255, 73, 97, 0.3) !important;
    padding: 5px 15px !important;
    border-radius: 30px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    display: none;
    /* Hidden by default until text is filled */
    box-shadow: 0 4px 10px rgba(255, 73, 97, 0.15) !important;
    animation: premiumShake 0.5s ease-in-out !important;
}

.premium-error-alert-chip:not(:empty) {
    display: inline-block !important;
}

@keyframes premiumShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Global Hover Animation for Cancel/Close Icons */
.premium-modal-close:hover i,
.btn-premium-secondary:hover i {
    transform: rotate(90deg) !important;
    transition: transform 0.3s ease-in-out !important;
}

.premium-modal-close i,
.btn-premium-secondary i {
    transition: transform 0.3s ease-in-out !important;
}

/* Required Asterisk Styling */
label .text-danger,
.premium-label .text-danger {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin-left: 2px;
    margin-right: 2px;
}

@keyframes premiumFadeInUp {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.field-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
}

.field-header i {
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    font-size: 0.9rem !important;
    background: var(--premium-primary-soft) !important;
    color: var(--premium-primary) !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03) !important;
}

/* Contextual Icon Colors */
.field-header i.fa-font,
.field-header i.fa-language {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #3b82f6 !important;
}

.field-header i.fa-facebook-f {
    background: rgba(24, 119, 242, 0.1) !important;
    color: #1877f2 !important;
}

.field-header i.fa-twitter {
    background: rgba(29, 161, 242, 0.1) !important;
    color: #1da1f2 !important;
}

.field-header i.fa-instagram {
    background: rgba(225, 48, 108, 0.1) !important;
    color: #e1306c !important;
}

.field-header i.fa-youtube {
    background: rgba(255, 0, 0, 0.1) !important;
    color: #ff0000 !important;
}

.field-header i.fa-phone,
.field-header i.fa-mobile-alt,
.field-header i.fa-whatsapp {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #10b981 !important;
}

.field-header i.fa-envelope,
.field-header i.fa-envelope-open-text {
    background: rgba(6, 182, 212, 0.1) !important;
    color: #06b6d4 !important;
}

.premium-form-group:focus-within .field-header i {
    transform: scale(1.1) rotate(5deg) !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1) !important;
}

.field-header label {
    margin: 0 !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Global double-border fix moved to system-style.css for universal support */
.identity-summary-card {
    background: #ffffff !important;
    border-radius: 2px !important;
    padding: 30px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #f1f5f9 !important;
}

.summary-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 25px !important;
    padding-bottom: 15px !important;
    border-bottom: 2px dashed #f1f5f9 !important;
}

.summary-header i {
    font-size: 1.5rem !important;
    color: var(--premium-primary) !important;
}

.summary-title {
    font-weight: 800 !important;
    font-size: 1.2rem !important;
    color: #1e293b !important;
}

/* Save Button Enhancement */
.btn-premium-save {
    background: linear-gradient(135deg, var(--premium-primary) 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 35px !important;
    border-radius: 2px !important;
    font-weight: 800 !important;
    box-shadow: 0 10px 20px var(--premium-primary-soft) !important;
}

.btn-premium-save:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 15px 30px var(--premium-primary-soft) !important;
}

/* ==========================================================================
   MODULE: DASHBOARD HOME (الرئيسية)
   ========================================================================== */
.welcome-section {
    background: url('https://www.transparenttextures.com/patterns/cubes.png'), linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 6px;
    padding: 2.5rem 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 15px 30px rgba(67, 97, 238, 0.2);
    color: white;
    position: relative;
    overflow: hidden;
}

.welcome-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
}

[dir="rtl"] .welcome-section::after,
html[dir="rtl"] .welcome-section::after,
[data-textdirection="rtl"] .welcome-section::after {
    right: auto;
    left: -10%;
}

.welcome-section .welcome-title {
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.welcome-section .welcome-text {
    color: rgba(255, 255, 255, 0.8) !important;
    max-width: 500px;
    line-height: 1.7 !important;
    margin-bottom: 40px !important;
}

.welcome-date {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Premium Tabs (Segmented Control Style) */
.premium-tabs-wrapper {
    background: #f8f9fa;
    padding: 6px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 2rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.custom-pills .nav-link {
    border-radius: 6px;
    padding: 12px 30px;
    font-weight: 600;
    color: #6c757d;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin: 0 4px;
}

.custom-pills .nav-link:hover {
    color: var(--primary-color);
}

.custom-pills .nav-link.active {
    background: #ffffff;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Premium Breadcrumb */
.premium-breadcrumb {
    background: transparent !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
}

.premium-breadcrumb .breadcrumb-item a {
    color: var(--premium-primary) !important;
    font-weight: 600 !important;
}

.premium-breadcrumb .breadcrumb-item.active {
    color: #64748b !important;
}

/* Minimalist Premium Stat Cards (Updated to match requested screenshot) */
.premium-stat-card {
    background: #ffffff !important;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%2394a3b8' fill-opacity='0.07' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='1'/%3E%3C/g%3E%3C/svg%3E") !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 100px !important;
}

.premium-stat-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(67, 97, 238, 0.3) !important;
}

.premium-stat-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
}

.stat-content {
    display: flex !important;
    flex-direction: column !important;
    z-index: 2 !important;
}

.stat-value {
    font-size: 2.1rem !important;
    /* Increased by 3px */
    font-weight: 800 !important;
    color: #1e293b !important;
    line-height: 1.2 !important;
    margin-bottom: 0.1rem !important;
}

.stat-title {
    font-size: 1.05rem !important;
    /* Increased by 3px */
    font-weight: 600 !important;
    color: #64748b !important;
    margin: 0 !important;
}

/* Icon Blob Container */
.stat-icon-wrapper {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    /* Made Circular */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 2 !important;
}

.stat-icon-wrapper i {
    font-size: 1.6rem !important;
    /* Increased by 3px */
}

/* Contextual Colors for Blobs and Icons */
.card-contracts .stat-icon-wrapper {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #3b82f6 !important;
}

.card-active .stat-icon-wrapper {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #10b981 !important;
}

.card-revenue .stat-icon-wrapper {
    background: rgba(6, 182, 212, 0.1) !important;
    color: #06b6d4 !important;
}

.card-expiring .stat-icon-wrapper {
    background: rgba(245, 158, 11, 0.1) !important;
    color: #f59e0b !important;
}

/* Remove old blob/floating icon styles */
.stat-icon-blob,
.stat-icon-floating {
    display: none !important;
}

.premium-stat-card::before {
    display: none !important;
}

/* Chart Card */
.premium-chart-card {
    border-radius: 6px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    border: none;
    padding: 1rem;
    background: #fff;
}

.premium-chart-card .card-header {
    background: transparent;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    padding-bottom: 1.5rem;
}

.premium-chart-card .card-title {
    font-weight: 700;
    color: #2d3436;
}

/* Simplified Animations */
.animate-up {
    opacity: 1;
    transform: none;
    transition: none !important;
    animation: none !important;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Company Identity Banner */
.company-identity-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    border-radius: 2px !important;
    border: none;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.25);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    color: #ffffff;
}

.company-identity-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0) 70%);
    border-radius: 50%;
}

.company-identity-banner:hover {
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35);
    transform: translateY(-5px);
}

.company-logo-frame {
    width: 70px;
    height: 70px;
    border-radius: 2px !important;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.company-logo-frame img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.company-initials {
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.welcome-text-premium {
    font-weight: 800;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.welcome-text-premium span.text-primary {
    color: #38bdf8 !important;
    /* Brighter blue for contrast */
}

.company-name-subtitle {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7) !important;
    letter-spacing: 0.5px;
}

.welcome-date-section .welcome-date {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.welcome-date-section .welcome-date i {
    color: #38bdf8 !important;
}

/* ==========================================================================
   MODULE: LOGIN & LOCK SCREEN (Scoped to Auth Container)
   ========================================================================== */
/* ==========================================================================
   MODULE: LOGIN & LOCK SCREEN (Premium Architecture)
   ========================================================================== */
/* 1. Global Reset for Auth Pages */
.login-main-wrapper~.header-navbar,
.login-main-wrapper~.footer,
.login-main-wrapper~.main-menu {
    display: none !important;
}

/* 2. Main Layout Container */
.login-main-wrapper {
    display: flex;
    width: 100%;
    height: 100vh;
    background: #0f172a;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    overflow: hidden;
}

[dir="rtl"] .login-main-wrapper {
    direction: rtl;
}

/* 3. Visual Content (Welcome Side) */
.welcome-side {
    background: url('../images/carbon-fibre.png'), url('../images/mjk/background.jpg') no-repeat center center;
    background-size: auto, cover;
    flex: 1;
    display: none;
    flex-direction: column;
    justify-content: flex-end;
    padding: 60px 8%;
    color: white;
    position: relative;
    z-index: 2;
}

.welcome-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #0f172a 0%, rgba(15, 23, 42, 0.4) 60%, transparent 100%);
    z-index: 1;
}

.welcome-side::after {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0) 70%);
    border-radius: 50%;
    z-index: 1;
}

[dir="rtl"] .welcome-side::after {
    right: auto;
    left: -10%;
}

.welcome-content-premium {
    position: relative;
    z-index: 3;
    animation: fadeInUp 1s ease-out;
}

.badge-welcome {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(56, 189, 248, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
}

.login-main-wrapper .welcome-title {
    font-weight: 900 !important;
    margin-bottom: 20px !important;
    line-height: 1.1 !important;
    letter-spacing: -2px !important;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.login-main-wrapper .welcome-text {
    color: rgba(255, 255, 255, 0.8) !important;
    max-width: 500px;
    line-height: 1.7 !important;
    margin-bottom: 40px !important;
}

@media (min-width: 992px) {
    .welcome-side {
        display: flex;
    }
}

/* 4. Form Side */
.form-side {
    position: relative;
    background: white;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    z-index: 5;
}

@media (min-width: 992px) {
    .form-side {
        width: 480px;
        box-shadow: -10px 0 50px rgba(0, 0, 0, 0.2);
    }
}

.login-form-box {
    width: 100%;
    max-width: 360px;
}

.brand-logo-modern {
    margin-bottom: 40px;
    text-align: center;
}

.brand-logo-modern img {
    max-height: 140px;
    width: auto;
}

.form-header-modern {
    text-align: center;
    margin-bottom: 30px;
}

.form-header-modern h2 {
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 8px;
}

.form-group-modern {
    margin-bottom: 32px;
    width: 100%;
}

.form-label-modern {
    display: block;
    font-weight: 700;
    color: #1e3a8a;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.login-options-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    margin-bottom: 30px;
}

.remember-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    color: #64748b;
}

.remember-modern input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #38bdf8;
    cursor: pointer;
}

.forgot-modern {
    font-weight: 700;
    color: #38bdf8;
    text-decoration: none;
    transition: all 0.3s;
}

.forgot-modern:hover {
    color: #1e3a8a;
    text-decoration: underline;
}

.form-control-modern {
    width: 100%;
    background: #f8fafc;
    border: 2px solid #f1f5f9;
    border-radius: 6px;
    padding: 16px 20px;
    padding-inline-start: 48px;
    color: #1e293b;
    transition: all 0.3s;
}

.form-control-modern:focus {
    background: white;
    border-color: #38bdf8;
    box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.1);
    outline: none;
}

.input-container-modern {
    position: relative;
}

.input-icon-modern {
    position: absolute;
    inset-inline-start: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #38bdf8;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 10;
}

.btn-login-modern {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #1e3a8a 100%);
    background-size: 200% auto;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.4);
}

.btn-login-modern:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.5);
}

.lang-toggle-container {
    position: absolute;
    top: 30px;
    inset-inline-end: 30px;
}

.btn-lang-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 50px;
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 800;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

@media (max-width: 991px) {
    .login-main-wrapper {
        background: #0f172a;
    }

    .form-side {
        background: transparent;
    }

    .login-form-box {
        background: rgba(255, 255, 255, 0.95);
        padding: 50px 35px;
        border-radius: 35px;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
        max-width: 440px;
        width: 92%;
    }
}

/* 5. Lock Screen Specific Styles */
.lock-avatar-premium {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    padding: 5px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 0 auto 1.5rem;
    position: relative;
    border: 2px solid #f1f5f9;
}

.lock-avatar-premium img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.lock-avatar-initials {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
}

.lock-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #f0fdf4;
    color: #166534;
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.different-account {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 2rem;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.different-account:hover {
    color: #38bdf8;
}

/* 6. Utility Animations & Components */
.stat-item {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #38bdf8;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   MODULE: PERMISSIONS & SWITCHES
   ========================================================================== */
/* Global Utilities */
.radius-20 {
    border-radius: 6px !important;
}

.radius-15 {
    border-radius: 6px !important;
}

.shadow-pulse {
    animation: none !important;
    box-shadow: none !important;
}

/* Dashboard Tabs - Unified & Sharpened */
.premium-segmented-control {
    background: #f8fafc !important;
    padding: 6px !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    gap: 5px !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02) !important;
    border: 1px solid #e2e8f0 !important;
}

.premium-tab-btn {
    border: none !important;
    color: #64748b !important;
    font-weight: 600 !important;
    padding: 9px 20px !important;
    border-radius: 6px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: transparent !important;
    outline: none !important;
    cursor: pointer !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
}

.premium-tab-btn:hover:not(.active) {
    color: #3b82f6 !important;
    background: rgba(59, 130, 246, 0.08) !important;
}

.premium-tab-btn.active {
    color: #ffffff !important;
    background: #3b82f6 !important;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3) !important;
    font-weight: 700 !important;
}

html[dir="rtl"] .premium-tab-btn,
[data-textdirection="rtl"] .premium-tab-btn {
    flex-direction: row-reverse !important;
}

/* ==========================================================================
   Premium Page Components (Customer & Property Show Pages)
   ========================================================================== */
.header-customer-dark,
.header-property-dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15) !important;
    position: relative;
    overflow: hidden;
    padding: 25px 30px !important;
    border-radius: 2px !important;
}

.border-left-light-opacity {
    border-left: 1px solid rgba(255, 255, 255, 0.15) !important;
}

[data-textdirection="rtl"] .border-left-light-opacity {
    border-left: none !important;
    border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding-left: 0 !important;
    padding-right: 1rem !important;
}

/* Utilities */
.radius-10 {
    border-radius: 2px !important;
}

.radius-15 {
    border-radius: 2px !important;
}

.bg-light-primary-opacity {
    background-color: rgba(90, 141, 238, 0.1) !important;
}

.bg-light-success-opacity {
    background-color: rgba(40, 208, 148, 0.1) !important;
}

.bg-light-danger-opacity {
    background-color: rgba(255, 73, 97, 0.1) !important;
}

.bg-light-warning-opacity {
    background-color: rgba(255, 159, 67, 0.1) !important;
}

.bg-light-info-opacity {
    background-color: rgba(0, 207, 232, 0.1) !important;
}

.bg-light-dark-opacity {
    background-color: rgba(77, 82, 89, 0.1) !important;
}

.bg-light-blue-info {
    background-color: #f8fafc !important;
}

/* Data Grid System */
.data-grid-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 2px;
    border: 1px solid #f1f5f9;
    background: #fff;
    height: 100%;
    transition: all 0.2s ease;
}

.data-grid-item:hover {
    border-color: #5A8DEE !important;
    box-shadow: 0 5px 15px rgba(90, 141, 238, 0.15) !important;
    transform: translateY(-2px);
    z-index: 2;
    position: relative;
}

.data-grid-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    margin-right: 15px;
    flex-shrink: 0;
}

[data-textdirection="rtl"] .data-grid-icon {
    margin-right: 0;
    margin-left: 15px;
}

.data-grid-label {
    display: block;
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 2px;
    font-weight: 500;
}

.data-grid-value {
    display: block;
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

/* Borders & Dividers */
.border-left-primary-3 {
    border-left: 3px solid #5A8DEE !important;
}

.border-left-warning-3 {
    border-left: 3px solid #ff9f43 !important;
}

.border-dashed-premium {
    border: 1px dashed #e2e8f0 !important;
}

[data-textdirection="rtl"] .border-left-primary-3 {
    border-left: none !important;
    border-right: 3px solid #5A8DEE !important;
}

[data-textdirection="rtl"] .border-left-warning-3 {
    border-left: none !important;
    border-right: 3px solid #ff9f43 !important;
}

/* Sidebar Utilities */
.border-dashed-premium {
    border: 1px dashed rgba(90, 141, 238, 0.3) !important;
}

.border-right-light {
    border-right: 1px solid rgba(0, 0, 0, 0.05) !important;
}

[data-textdirection="rtl"] .border-right-light {
    border-right: none !important;
    border-left: 1px solid rgba(0, 0, 0, 0.05) !important;
}

[data-textdirection="rtl"] .text-right-rtl {
    text-align: right !important;
}

/* --- Premium Minimalist Nav Tabs --- */
.premium-nav-tabs {
    border-bottom: 2px solid #f1f3f4 !important;
    margin-bottom: 8px !important;
    padding: 0 1rem !important;
    background: #fff !important;
    margin-top: 0.5rem !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    /* Centered tabs navigation */
}

.premium-nav-tabs .nav-item {
    margin-bottom: 0 !important;
}

.premium-nav-tabs .nav-link {
    border: none !important;
    background: transparent !important;
    color: #64748b !important;
    font-weight: 600 !important;
    padding: 12px 20px !important;
    border-bottom: 2px solid transparent !important;
    transition: all 0.3s ease !important;
    border-radius: 0 !important;
    font-size: 1rem !important;
    /* Enlarge font size in main tabs to be larger than fields */
    box-shadow: none !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    flex-direction: row !important;
    /* Fix RTL icon issue globally for premium tabs */
    cursor: pointer !important;
}

.premium-nav-tabs .nav-link::after {
    display: none !important;
}

.premium-nav-tabs .nav-link i {
    font-size: 1.1rem;
    vertical-align: middle;
    margin-inline-end: 5px;
}

.premium-nav-tabs .nav-link:focus,
.premium-nav-tabs .nav-link:active {
    outline: none !important;
    box-shadow: none !important;
}

.premium-nav-tabs .nav-link:hover {
    color: #7367f0 !important;
    background-color: #f8f9fa !important;
    border-radius: 6px 6px 0 0 !important;
    cursor: pointer !important;
}

.premium-nav-tabs .nav-link.active {
    color: #7367f0 !important;
    border-bottom: 2px solid #7367f0 !important;
    background: transparent !important;
    font-weight: 700 !important;
}

/* --- PREMIUM QUICK SEARCH AREA --- */
.premium-quick-search-area {
    background-color: #f4f9ff !important;
    border-color: #d1e9ff !important;
}

/* ==========================================================================
   PREMIUM FINANCIAL SUMMARY REDESIGN
   ========================================================================== */
.payment-summary-card-premium {
    background: #ffffff;
    border-radius: 2px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.payment-summary-card-premium::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--premium-primary);
}

[data-textdirection="rtl"] .payment-summary-card-premium::before {
    left: auto;
    right: 0;
}

.summary-header-premium {
    padding: 20px;
    background: rgba(248, 250, 252, 0.5);
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Legendary Black & Yellow Tips Card */
.legendary-tips-card {
    background: linear-gradient(145deg, #1a1c23, #0f1014);
    border-radius: 12px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.legendary-tips-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.5);
}

.legendary-tips-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.legendary-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(245, 158, 11, 0.1);
}

.legendary-header i {
    color: #f59e0b;
    font-size: 1.2rem;
    margin-right: 10px;
    filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.5));
}

[data-textdirection="rtl"] .legendary-header i {
    margin-right: 0;
    margin-left: 10px;
}

.legendary-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.legendary-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legendary-list li {
    display: flex;
    align-items: flex-start;
    color: #cbd5e1;
    font-size: 0.85rem;
    margin-bottom: 12px;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.legendary-list li:hover {
    color: #f59e0b;
}

.legendary-list li i {
    color: #f59e0b;
    font-size: 0.75rem;
    margin-top: 4px;
    margin-right: 10px;
    flex-shrink: 0;
}

[data-textdirection="rtl"] .legendary-list li i {
    margin-right: 0;
    margin-left: 6px;
}

/* Premium Company Badge Style */
.premium-company-badge {
    display: inline-flex;
    align-items: center;
    background: #0f172a;
    /* Dark Navy/Black */
    color: #f59e0b;
    /* Yellow/Gold */
    padding: 6px 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.premium-company-badge i {
    margin-right: 8px;
    font-size: 0.9rem;
    color: #f59e0b;
}

[data-textdirection="rtl"] .premium-company-badge i {
    margin-right: 0;
    margin-left: 8px;
}

.premium-company-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
}

/* Premium Error Alerts */
.premium-error-alert {
    border-radius: 12px;
    border: none;
    border-right: 5px solid #ef4444;
    background: #fff;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.08);
}

[data-textdirection="ltr"] .premium-error-alert {
    border-right: none;
    border-left: 5px solid #ef4444;
}

.premium-warning-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.premium-warning-pill i {
    margin-right: 6px;
}

[data-textdirection="rtl"] .premium-warning-pill i {
    margin-right: 0;
    margin-left: 6px;
}

.summary-header-premium i {
    width: 36px;
    height: 36px;
    background: var(--premium-primary-soft);
    color: var(--premium-primary);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.summary-title-premium {
    font-weight: 800;
    font-size: 1rem;
    color: #1e293b;
}

.summary-body-premium {
    padding: 20px;
}

.summary-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.summary-stat-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}

.summary-stat-value {
    font-size: 1rem;
    font-weight: 800;
    color: #1e293b;
}

.financial-indicator-section {
    margin: 25px 0;
    padding: 15px;
    background: #f8fafc;
    border-radius: 2px;
    border: 1px dashed #e2e8f0;
}

.indicator-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: block;
    text-align: center;
}

.indicator-percentage {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--premium-success);
    display: block;
    text-align: center;
    margin-bottom: 5px;
}

/* Portfolio Styles */
.portfolio-section-premium {
    margin-top: 25px;
}

.portfolio-title-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.portfolio-title-text {
    font-weight: 800;
    font-size: 0.9rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cheque-portfolio-item {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 2px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.cheque-portfolio-item:hover {
    border-color: var(--premium-primary-soft);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateX(4px);
}

[data-textdirection="rtl"] .cheque-portfolio-item:hover {
    transform: translateX(-4px);
}

.cheque-portfolio-item.fully-used {
    background: #f8fafc;
    opacity: 0.8;
}

.cheque-item-left {
    display: flex;
    flex-direction: column;
}

.cheque-number-premium {
    font-weight: 800;
    font-size: 0.85rem;
    color: #1e293b;
}

.cheque-bank-premium {
    font-size: 0.7rem;
    color: #94a3b8;
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cheque-item-right {
    text-align: right;
}

.cheque-amount-total {
    font-weight: 700;
    font-size: 0.85rem;
    color: #64748b;
}

.cheque-amount-available {
    font-weight: 800;
    font-size: 0.8rem;
    color: var(--premium-success);
}

.summary-footer-premium {
    padding: 15px 20px;
    background: #fdfdfd;
    border-top: 1px solid #f1f5f9;
}

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

.footer-balance-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
}

.footer-balance-value {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--premium-danger);
}

/* Sticky Sidebar Fix */
.sticky-sidebar-premium {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 100px !important;
    z-index: 99 !important;
    align-self: flex-start !important;
}

.content-body,
section#basic-form-layouts {
    overflow: visible !important;
}

/* Financial Progress Bar */
.financial-progress-premium {
    height: 8px;
    background: #eef2f7;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 15px;
    display: flex;
}

.financial-progress-bar-premium {
    height: 100%;
}

.financial-progress-bar-paid {
    background-color: var(--premium-success);
}

.financial-progress-bar-cheques {
    background-color: var(--premium-warning);
    opacity: 0.75;
}

/* Legend Styles */
.financial-legend-premium {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 0.7rem;
    font-weight: 700;
}

.legend-item-premium {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-dot-premium {
    font-size: 6px;
    vertical-align: middle;
}

/* Portfolio Scrollable */
.linked-cheques-scrollable-premium {
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
}

/* Projected Balance Card */
.projected-balance-box-premium {
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    background: rgba(16, 185, 129, 0.04);
    border: 1px dashed rgba(16, 185, 129, 0.3);
    border-radius: 2px;
}

.projected-label-premium {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 4px;
    font-weight: 700;
}

.projected-value-premium {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--premium-success);
}

.projected-value-premium.negative {
    color: var(--premium-danger);
}

/* Cheque Details Pill */
.cheque-details-pill-premium {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #f8fafc;
    border-radius: 2px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.pill-info-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-grow: 1;
}

.pill-stat {
    display: flex;
    flex-direction: column;
    padding-right: 20px;
    border-right: 1px solid #e2e8f0;
}

[data-textdirection="rtl"] .pill-stat {
    padding-right: 0;
    padding-left: 20px;
    border-right: 0;
    border-left: 1px solid #e2e8f0;
}

.pill-label {
    font-size: 0.65rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pill-value {
    font-size: 0.9rem;
    font-weight: 800;
}

.pill-action-btn {
    border-radius: 8px !important;
    font-weight: 800 !important;
    padding: 6px 15px !important;
    white-space: nowrap;
}

/* Fully Paid Card */
.fully-paid-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    border: 1px solid var(--premium-success-soft);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.05);
}

.fully-paid-icon-wrapper {
    width: 50px;
    height: 50px;
    background: var(--premium-success-soft);
    color: var(--premium-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
}

.fully-paid-title {
    font-weight: 800;
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 5px;
}

.fully-paid-subtitle {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0;
}

/* ==========================================================================
   SMART BREAKDOWN & DIGITAL CHEQUE WALLET & LIVE PREVIEW
   ========================================================================== */
/* Smart Balance Breakdown */
.smart-balance-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.smart-balance-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

.breakdown-item.paid-item {
    background: #ecfdf5;
    color: #059669;
}

.breakdown-item.covered-item {
    background: #fffbeb;
    color: #d97706;
}

.breakdown-item.uncovered-item {
    background: #f1f5f9;
    color: #64748b;
}

.breakdown-item.uncovered-item.has-debt {
    background: #fef2f2;
    color: #dc2626;
    border-right: 3px solid #dc2626;
}

/* Triple Segment Progress Bar */
.financial-progress-premium.triple-segment {
    height: 12px;
    background: #f1f5f9;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
}

.financial-progress-bar-current-pulse {
    background: linear-gradient(90deg, #10b981, #34d399);
    animation: pulse-width 2s infinite alternate;
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.6);
    position: relative;
    z-index: 10;
}

.financial-progress-bar-current-pulse.pulse-blue {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    animation: pulse-width-blue 2s infinite alternate;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
    position: relative;
    z-index: 10;
}

.financial-progress-bar-cheques-striped {
    background: repeating-linear-gradient(45deg,
            #f59e0b,
            #f59e0b 10px,
            #fbbf24 10px,
            #fbbf24 20px);
    opacity: 0.85;
}

@keyframes pulse-width {
    0% {
        filter: brightness(1);
    }

    100% {
        filter: brightness(1.2);
    }
}

@keyframes pulse-width-blue {
    0% {
        filter: brightness(1);
    }

    100% {
        filter: brightness(1.2);
    }
}

/* Smart Assistant Box */
.smart-assistant-box {
    display: flex;
    gap: 12px;
    background: #eff6ff;
    border-right: 4px solid #3b82f6;
    border-radius: 8px;
    padding: 12px;
    font-size: 0.85rem;
    color: #1e3a8a;
    align-items: flex-start;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.smart-assistant-box.alert-state {
    background: #fef2f2;
    border-right: 4px solid #ef4444;
    color: #991b1b;
}

.assistant-icon {
    font-size: 1.2rem;
    margin-top: 2px;
}

/* Digital Cheque Wallet */
.digital-wallet-drawer {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 5px;
}

.cheque-card-premium {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    margin-top: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    position: relative;
    transition: all 0.3s ease;
}

.cheque-card-premium.selected-glow {
    border: 2px solid #10b981 !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.cheque-card-premium.fully-used-card {
    opacity: 0.65;
    background: #f8fafc;
}

.cheque-card-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cheque-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #cbd5e1;
    padding-bottom: 8px;
}

.bank-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #334155;
    font-size: 0.9rem;
}

.bank-icon {
    color: #94a3b8;
}

.cheque-number {
    font-family: monospace;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #475569;
}

.cheque-amount-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.cheque-amount-display.available {
    font-size: 0.85rem;
    margin-top: 4px;
}

.cheque-mini-progress {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    width: 100%;
}

.cheque-mini-progress .mini-progress-bar {
    height: 100%;
    background: #10b981;
    transition: width 0.3s ease;
}

/* Live Digital Cheque Preview */
.live-cheque-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.live-cheque-header {
    background: #f8fafc;
    padding: 10px 15px;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.live-cheque-canvas {
    padding: 15px;
    background: #f1f5f9;
    display: flex;
    justify-content: center;
}

.cheque-paper {
    width: 100%;
    background: repeating-linear-gradient(0deg,
            #fff,
            #fff 19px,
            #f1f5f9 20px);
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 15px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    border-left: 10px dashed #cbd5e1;
    color: #334155;
}

.cheque-paper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(#94a3b8 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
    pointer-events: none;
}

.cheque-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.85rem;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 5px;
}

.cheque-bank-name {
    font-weight: bold;
    color: #1e3a8a;
    font-size: 1rem;
}

.cheque-date .val {
    font-family: monospace;
    border-bottom: 1px dotted #94a3b8;
}

.cheque-pay-to {
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.cheque-pay-to .val {
    font-weight: bold;
    font-style: italic;
    border-bottom: 1px dotted #94a3b8;
    display: inline-block;
    min-width: 150px;
}

.cheque-amount-row {
    font-size: 0.85rem;
    background: #f8fafc;
    padding: 5px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 15px;
}

.cheque-amount-row .val {
    color: #059669;
}

.cheque-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 0.8rem;
}

.cheque-no .val {
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.cheque-signature {
    border-top: 1px solid #94a3b8;
    padding-top: 5px;
    width: 100px;
    text-align: center;
    color: #94a3b8;
    font-style: italic;
}

/* Maintenance Module Styles */
.maintenance-item-row {
    background-color: #f9fbfd;
    border-radius: 8px;
    padding: 15px 10px;
    margin-bottom: 15px;
    border: 1px solid #e1e5eb;
    transition: all 0.3s ease;
}

.maintenance-item-row:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: #d1d5db;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

/* Contract Clause Builder */
.cursor-move {
    cursor: move;
}

.clause-item {
    transition: all 0.2s;
}

.clause-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Premium Clause Library Styles */
.premium-clause-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 15px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    padding: 16px;
}

.premium-clause-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(135deg, #7367f0 0%, #9e95f5 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.premium-clause-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08), 0 6px 6px rgba(0, 0, 0, 0.05);
    border-color: rgba(115, 103, 240, 0.2);
}

.premium-clause-card:hover::before {
    opacity: 1;
}

.premium-clause-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
    padding-bottom: 10px;
}

.premium-clause-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #4b4b4b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.premium-clause-icon {
    color: #7367f0;
    font-size: 1.1rem;
}

html[dir="rtl"] .premium-clause-title {
    margin-right: 0;
}

html[dir="rtl"] .premium-clause-icon {
    margin-left: 8px;
}

html[dir="ltr"] .premium-clause-icon {
    margin-right: 8px;
}

.premium-clause-btn {
    background: rgba(40, 199, 111, 0.1);
    color: #28c76f;
    border: 1px solid rgba(40, 199, 111, 0.2);
    border-radius: 8px;
    padding: 6px 14px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    outline: none;
}

.premium-clause-btn:hover {
    background: #28c76f;
    color: #ffffff;
    border-color: #28c76f;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(40, 199, 111, 0.3);
}

.premium-clause-content {
    font-size: 0.95rem;
    color: #6e6b7b;
    line-height: 1.6;
    text-align: right;
    width: 100%;
    direction: rtl;
    margin: 0;
}

.clause-library-container {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 5px;
    padding-left: 5px;
    scrollbar-width: thin;
    scrollbar-color: #7367f0 rgba(0, 0, 0, 0.05);
}

.clause-library-container::-webkit-scrollbar {
    width: 6px;
}

.clause-library-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 10px;
}

.clause-library-container::-webkit-scrollbar-thumb {
    background: #d8d6f9;
    border-radius: 10px;
}

.clause-library-container::-webkit-scrollbar-thumb:hover {
    background: #7367f0;
}

/* Modern Smart Tags Tabs Styling (iOS-Style Segmented Control Pills) */
.smart-tags-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 10px !important;
}

.smart-tags-tabs {
    border: none !important;
    background: #f1f5f9 !important;
    /* light slate background */
    padding: 4px !important;
    border-radius: 30px !important;
    /* pill container */
    display: inline-flex !important;
    justify-content: center !important;
    margin: 12px auto !important;
    /* centered horizontally */
    align-items: center !important;
    width: auto !important;
    /* only occupies as much space as the tabs need */
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06) !important;
}

.smart-tags-tabs .nav-item {
    margin: 0 !important;
}

.smart-tags-tabs .nav-link {
    border: none !important;
    background: transparent !important;
    color: #475569 !important;
    font-weight: 700 !important;
    padding: 8px 20px !important;
    border-radius: 30px !important;
    font-size: 0.95rem !important;
    transition: all 0.25s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
}

.smart-tags-tabs .nav-link:focus,
.smart-tags-tabs .nav-link:active {
    outline: none !important;
    box-shadow: none !important;
}

.smart-tags-tabs .nav-link:hover {
    color: #7367f0 !important;
    background-color: transparent !important;
}

.smart-tags-tabs .nav-link.active {
    background: #ffffff !important;
    /* white pill for active tab */
    color: #7367f0 !important;
    box-shadow: 0 4px 10px rgba(115, 103, 240, 0.15) !important;
}

.smart-tags-tabs .nav-link i {
    margin-inline-end: 5px;
}

/* Tag Cards Styling */
.smart-tag-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    height: 100%;
}

.smart-tag-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.smart-tag-card.copied-success {
    border-color: #28c76f !important;
    background-color: rgba(40, 199, 111, 0.05) !important;
    transform: scale(0.98);
}

.tag-label {
    font-size: 0.98rem;
    font-weight: 600;
}

.tag-code {
    font-size: 0.95rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.bg-light-primary {
    background-color: rgba(115, 103, 240, 0.1) !important;
}

.text-primary {
    color: #7367f0 !important;
}

.bg-light-success {
    background-color: rgba(40, 199, 111, 0.1) !important;
}

.text-success {
    color: #28c76f !important;
}

.bg-light-warning {
    background-color: rgba(255, 159, 67, 0.1) !important;
}

.text-warning {
    color: #ff9f43 !important;
}

.bg-light-danger {
    background-color: rgba(234, 84, 85, 0.1) !important;
}

.text-danger {
    color: #ea5455 !important;
}

/* Custom Smart Tags Layout Overrides (Dashed Pill Alert) */
.smart-tags-hint-bar {
    background: linear-gradient(135deg, rgba(115, 103, 240, 0.06) 0%, rgba(115, 103, 240, 0.02) 100%) !important;
    border: 1px dashed rgba(115, 103, 240, 0.25) !important;
    border-radius: 12px !important;
    padding: 12px 20px !important;
    margin: 16px 16px 8px 16px !important;
    /* Margin around it to float inside the card */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.smart-tags-hint-bar p {
    color: #7367f0 !important;
    font-size: 0.98rem !important;
    font-weight: 700 !important;
    margin-bottom: 0 !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.smart-tags-hint-bar p i {
    color: #7367f0 !important;
    font-size: 1.15rem !important;
    margin-inline-end: 0 !important;
    animation: pulse-info 2s infinite !important;
}

@keyframes pulse-info {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.smart-tags-collapse-body {
    background-color: #fff !important;
    border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
}

.smart-tags-content {
    padding: 12px 16px 8px 16px !important;
}

/* Tab Error Indicator */
.tab-error-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background-color: #ff4d4d;
    border-radius: 50%;
    box-shadow: 0 0 8px #ff4d4d;
    animation: pulse-red 1.5s infinite;
    z-index: 10;
}

.premium-tab-btn {
    position: relative !important;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(255, 77, 77, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0);
    }
}

/* ==========================================================================
   CONTRACT DURATION & DATES STYLING
   ========================================================================== */
.contract-duration-wrapper {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.duration-label-badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(59, 130, 246, 0.08);
    color: #1e293b;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid rgba(59, 130, 246, 0.15);
    white-space: nowrap;
}

.duration-label-badge i {
    font-size: 0.95rem;
}

.duration-label-badge span {
    white-space: nowrap;
}

.contract-duration-wrapper .date-range-badge {
    display: inline-flex;
    align-items: center;
    background-color: #f8fafc;
    border-radius: 20px;
    padding: 4px 10px;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
}

.contract-duration-wrapper .date-range-badge .date-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.5px;
}

.contract-duration-wrapper .date-range-badge .date-arrow {
    margin: 0 8px;
    font-size: 0.8rem;
    opacity: 0.7;
}

[data-textdirection="rtl"] .duration-label-badge i,
[dir="rtl"] .duration-label-badge i {
    margin-left: 6px;
    margin-right: 0 !important;
}

[data-textdirection="ltr"] .duration-label-badge i,
[dir="ltr"] .duration-label-badge i {
    margin-right: 6px;
    margin-left: 0 !important;
}

/* ========================================================================
   PLATINUM DASHBOARD - UNIFIED PAGES STYLING (pages.css)
   Consolidates: Properties, Contracts, Cheques, Payments, Settings, etc.
   Supports: LTR & RTL in a single file.
   ======================================================================== */
:root {
    --premium-primary: #3b82f6;
    --premium-primary-soft: rgba(59, 130, 246, 0.1);
    --premium-success: #10b981;
    --premium-success-soft: rgba(16, 185, 129, 0.1);
    --premium-warning: #f59e0b;
    --premium-warning-soft: rgba(245, 158, 11, 0.1);
    --premium-danger: #ef4444;
    --premium-danger-soft: rgba(239, 68, 68, 0.1);
    --premium-info: #06b6d4;
    --premium-info-soft: rgba(6, 182, 212, 0.1);
    --premium-slate: #1e293b;
    --premium-slate-light: #64748b;
    /* Legacy Sync */
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
}

/* ==========================================================================
   GLOBAL PREMIUM COMPONENTS (Unified)
   ========================================================================== */
/* Removed redundant .premium-card - using system-style.css instead */
.premium-mandatory-header {
    background: #ffffff !important;
    color: #1e293b !important;
    font-weight: 700 !important;
    padding: 10px 20px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
}

[dir="rtl"] .premium-mandatory-header i,
html[dir="rtl"] .premium-mandatory-header i,
[data-textdirection="rtl"] .premium-mandatory-header i {
    margin-left: 10px !important;
    margin-right: 0 !important;
}

[dir="ltr"] .premium-mandatory-header i,
html[dir="ltr"] .premium-mandatory-header i {
    margin-right: 10px !important;
    margin-left: 0 !important;
}

/* Global Premium Buttons (Unified to Minimalist White Style) */
.btn-premium-save,
button.btn-premium-save,
.btn-premium-add,
.btn-premium-edit,
.btn-premium-back,
a.btn-premium-back {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 0 24px !important;
    height: 42px !important;
    margin: 0 4px !important;
    border-radius: 4px !important;
    /* Unified rounded style matching cancel button */
    font-weight: 700 !important;
    font-size: 1rem !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    cursor: pointer !important;
    text-decoration: none !important;
    background: #ffffff !important;
    color: #475569 !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
}

.btn-premium-save:hover,
button.btn-premium-save:hover,
.btn-premium-add:hover,
.btn-premium-edit:hover,
.btn-premium-back:hover,
.btn-premium-secondary:hover,
.btn-premium-cancel:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
    background: #ffffff !important;
    color: #1e293b !important;
    border-color: #5A8DEE !important;
}

.btn-premium-save i,
.btn-premium-add i,
.btn-premium-edit i,
.btn-premium-back i {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.btn-premium-save:hover i,
.btn-premium-add:hover i,
.btn-premium-edit:hover i,
.btn-premium-back:hover i {
    transform: translateX(4px);
}

[data-textdirection="rtl"] .btn-premium-save:hover i,
[data-textdirection="rtl"] .btn-premium-add:hover i,
[data-textdirection="rtl"] .btn-premium-edit:hover i,
[data-textdirection="rtl"] .btn-premium-back:hover i {
    transform: translateX(-4px);
}

.btn-premium-save.shadow-pulse,
.btn-premium-add.shadow-pulse {
    animation: pulse-indigo 2.5s infinite;
}

/* ==========================================================================
   MODULE: PROPERTIES (��� ��� ��������)
   ========================================================================== */
.header-bg-shape {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

[dir="ltr"] .header-bg-shape {
    right: auto;
    left: -50px;
}

/* Table Widths */
.col-owner-width {
    width: 60% !important;
}

.col-percentage-width {
    width: 15% !important;
}

.col-primary-width {
    width: 12% !important;
}

.col-actions-width {
    width: 13% !important;
}

/* Standardized Table Styling for Properties & Customers */
.premium-table thead th {
    background-color: #f8fafc !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    color: #475569 !important;
    padding: 15px 20px !important;
    vertical-align: middle !important;
    border-bottom: 2px solid #f1f5f9 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.premium-table tbody td {
    padding: 15px 20px !important;
    vertical-align: middle !important;
    color: #1e293b !important;
    font-weight: 500 !important;
}

.th-w-20 {
    width: 20% !important;
}

.th-w-25 {
    width: 25% !important;
}

.th-w-15 {
    width: 15% !important;
}

/* Heading Elements Icons Scaling */
.heading-elements ul li a i {
    font-size: 11px !important;
    color: #94a3b8 !important;
    transition: color 0.3s ease;
}

.heading-elements ul li a:hover i {
    color: #475569 !important;
}

.th-w-10 {
    width: 10% !important;
}

.th-w-actions {
    width: 30px !important;
}

.header-trash-icon {
    margin-inline-start: 4px !important;
    font-size: 1.1rem !important;
    color: #94a3b8 !important;
}

.btn-trash-cell {
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

/* ==========================================================================
   MODULE: CONTRACTS (��� ��� ����)
   ========================================================================== */
.contract-text-viewer {
    line-height: 1.7 !important;
    color: #334155 !important;
    background: #fff !important;
    border-radius: 12px !important;
    padding: 25px !important;
}

[dir="rtl"] .border-primary-left,
html[dir="rtl"] .border-primary-left,
[data-textdirection="rtl"] .border-primary-left {
    border-right: 4px solid #7367f0 !important;
    border-left: 0 !important;
}

[dir="ltr"] .border-primary-left,
html[dir="ltr"] .border-primary-left {
    border-left: 4px solid #7367f0 !important;
    border-right: 0 !important;
}

/* Premium Badge Hint (Insurance Locked) */
.premium-badge-hint {
    background-color: rgba(239, 68, 68, 0.08) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    padding: 6px 14px !important;
    border-radius: 50px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.05) !important;
    white-space: nowrap !important;
}

.premium-badge-hint i {
    font-size: 13px !important;
    animation: premium-pulse-lock 2s infinite !important;
}

@keyframes premium-pulse-lock {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

[data-textdirection="rtl"] .premium-badge-hint {
    letter-spacing: 0 !important;
}

/* ==========================================================================
   MODULE: CHEQUES (��� ���`������)
   ========================================================================== */
.cheque-summary-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    border-left: 5px solid #ef4444;
    padding: 24px;
}

[dir="rtl"] .cheque-summary-card {
    border-left: 1px solid #f1f5f9;
    border-right: 5px solid #ef4444;
}

/* ==========================================================================
   MODULE: PAYMENTS (��� ����������)
   ========================================================================== */
.payment-summary-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    border-left: 5px solid #10b981;
    padding: 24px;
}

[dir="rtl"] .payment-summary-card,
html[dir="rtl"] .payment-summary-card,
[data-textdirection="rtl"] .payment-summary-card {
    border-left: 1px solid #f1f5f9;
    border-right: 5px solid #10b981;
}

/* Property Mandatory Section (Matched to Contract Insurance Style) */
.property-mandatory-section {
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    margin: 30px 0 !important;
    background: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

.property-mandatory-header {
    background: #f8fafc !important;
    padding: 12px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.property-mandatory-header .title-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: #1e293b !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
}

.property-mandatory-header i {
    font-size: 1.15rem !important;
    color: #475569 !important;
}

.property-mandatory-body {
    padding: 25px 20px !important;
}

[data-textdirection="rtl"] .property-mandatory-header .title-wrapper {
    gap: 12px !important;
}

/* Sub-header inside mandatory body (e.g. Cheque Details) */
.mandatory-sub-header {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding-bottom: 8px !important;
    margin-bottom: 15px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.mandatory-sub-header i {
    font-size: 1.1rem !important;
    color: #3b82f6 !important;
    /* text-primary */
}

.mandatory-sub-header h6 {
    color: #3b82f6 !important;
    /* text-primary */
    margin: 0 !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
}

.mandatory-sub-header small {
    color: #64748b !important;
    /* text-muted */
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    margin-right: 5px !important;
}

[data-textdirection="rtl"] .mandatory-sub-header small {
    margin-right: 0 !important;
    margin-left: 5px !important;
}

/* ==========================================================================
   MODULE: SETTINGS (��� �������������� ��� �����& ��) - Scoped Styles Only
   ========================================================================== */
/* Use global .premium-card and .premium-mandatory-header from system-style.css */
.premium-card {
    margin-bottom: 17px !important;
}

.premium-mandatory-header {
    background: #f8fafc !important;
    padding: 12px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid #e2e8f0 !important;
    font-size: 1.58rem !important;
    font-weight: 800 !important;
    color: #1e293b !important;
}

.premium-mandatory-header .title-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: #1e293b !important;
    font-weight: 800 !important;
    font-size: 1.27rem !important;
}

.premium-mandatory-header i {
    font-size: 1.45rem !important;
    color: #475569 !important;
}

[data-textdirection="rtl"] .premium-mandatory-header .title-wrapper {
    gap: 12px !important;
}

.premium-form-group {
    margin-bottom: 27px !important;
    position: relative !important;
}

.premium-mandatory-body .row,
form.ajax-form .row {
    margin-bottom: 22px !important;
}

.error-text {
    position: relative !important;
    margin-top: 4px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    display: block !important;
    word-wrap: break-word !important;
    white-space: normal !important;
    animation: premiumFadeInUp 0.3s ease-out !important;
    z-index: 10 !important;
}

[dir="rtl"] .error-text,
html[dir="rtl"] .error-text,
[data-textdirection="rtl"] .error-text {
    text-align: right !important;
    padding-right: 2px !important;
    direction: rtl !important;
}

/* Static error text for titles or sections where absolute positioning is not suitable */
.premium-section-title .error-text {
    position: static !important;
    display: inline-block !important;
    width: auto !important;
    margin-right: 10px !important;
    margin-left: 10px !important;
    animation: none !important;
}

[dir="ltr"] .error-text,
html[dir="ltr"] .error-text {
    text-align: left !important;
    padding-left: 2px !important;
    direction: ltr !important;
}

/* Special styling for permissions error chip in section titles */
.premium-error-alert-chip {
    background-color: rgba(255, 73, 97, 0.1) !important;
    color: #ff4961 !important;
    border: 1px solid rgba(255, 73, 97, 0.3) !important;
    padding: 5px 15px !important;
    border-radius: 30px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    display: none;
    /* Hidden by default until text is filled */
    box-shadow: 0 4px 10px rgba(255, 73, 97, 0.15) !important;
    animation: premiumShake 0.5s ease-in-out !important;
}

.premium-error-alert-chip:not(:empty) {
    display: inline-block !important;
}

@keyframes premiumShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Global Hover Animation for Cancel/Close Icons */
.premium-modal-close:hover i,
.btn-premium-secondary:hover i {
    transform: rotate(90deg) !important;
    transition: transform 0.3s ease-in-out !important;
}

.premium-modal-close i,
.btn-premium-secondary i {
    transition: transform 0.3s ease-in-out !important;
}

/* Required Asterisk Styling */
label .text-danger,
.premium-label .text-danger {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin-left: 2px;
    margin-right: 2px;
}

@keyframes premiumFadeInUp {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.field-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
}

.field-header i {
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    font-size: 0.9rem !important;
    background: var(--premium-primary-soft) !important;
    color: var(--premium-primary) !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03) !important;
}

/* Contextual Icon Colors */
.field-header i.fa-font,
.field-header i.fa-language {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #3b82f6 !important;
}

.field-header i.fa-facebook-f {
    background: rgba(24, 119, 242, 0.1) !important;
    color: #1877f2 !important;
}

.field-header i.fa-twitter {
    background: rgba(29, 161, 242, 0.1) !important;
    color: #1da1f2 !important;
}

.field-header i.fa-instagram {
    background: rgba(225, 48, 108, 0.1) !important;
    color: #e1306c !important;
}

.field-header i.fa-youtube {
    background: rgba(255, 0, 0, 0.1) !important;
    color: #ff0000 !important;
}

.field-header i.fa-phone,
.field-header i.fa-mobile-alt,
.field-header i.fa-whatsapp {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #10b981 !important;
}

.field-header i.fa-envelope,
.field-header i.fa-envelope-open-text {
    background: rgba(6, 182, 212, 0.1) !important;
    color: #06b6d4 !important;
}

.premium-form-group:focus-within .field-header i {
    transform: scale(1.1) rotate(5deg) !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1) !important;
}

.field-header label {
    margin: 0 !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Global double-border fix moved to system-style.css for universal support */
.identity-summary-card {
    background: #ffffff !important;
    border-radius: 2px !important;
    padding: 30px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #f1f5f9 !important;
}

.summary-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 25px !important;
    padding-bottom: 15px !important;
    border-bottom: 2px dashed #f1f5f9 !important;
}

.summary-header i {
    font-size: 1.5rem !important;
    color: var(--premium-primary) !important;
}

.summary-title {
    font-weight: 800 !important;
    font-size: 1.2rem !important;
    color: #1e293b !important;
}

/* Save Button Enhancement */
.btn-premium-save {
    background: linear-gradient(135deg, var(--premium-primary) 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 35px !important;
    border-radius: 2px !important;
    font-weight: 800 !important;
    box-shadow: 0 10px 20px var(--premium-primary-soft) !important;
}

.btn-premium-save:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 15px 30px var(--premium-primary-soft) !important;
}

/* ==========================================================================
   MODULE: DASHBOARD HOME (��� �����`���`��)
   ========================================================================== */
.welcome-section {
    background: url('https://www.transparenttextures.com/patterns/cubes.png'), linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 6px;
    padding: 2.5rem 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 15px 30px rgba(67, 97, 238, 0.2);
    color: white;
    position: relative;
    overflow: hidden;
}

.welcome-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
}

[dir="rtl"] .welcome-section::after,
html[dir="rtl"] .welcome-section::after,
[data-textdirection="rtl"] .welcome-section::after {
    right: auto;
    left: -10%;
}

.welcome-section .welcome-title {
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.welcome-section .welcome-text {
    color: rgba(255, 255, 255, 0.8) !important;
    max-width: 500px;
    line-height: 1.7 !important;
    margin-bottom: 40px !important;
}

.welcome-date {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Premium Tabs (Segmented Control Style) */
.premium-tabs-wrapper {
    background: #f8f9fa;
    padding: 6px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 2rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.custom-pills .nav-link {
    border-radius: 6px;
    padding: 12px 30px;
    font-weight: 600;
    color: #6c757d;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin: 0 4px;
}

.custom-pills .nav-link:hover {
    color: var(--primary-color);
}

.custom-pills .nav-link.active {
    background: #ffffff;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Premium Breadcrumb */
.premium-breadcrumb {
    background: transparent !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
}

.premium-breadcrumb .breadcrumb-item a {
    color: var(--premium-primary) !important;
    font-weight: 600 !important;
}

.premium-breadcrumb .breadcrumb-item.active {
    color: #64748b !important;
}

/* Minimalist Premium Stat Cards (Updated to match requested screenshot) */
.premium-stat-card {
    background: #ffffff !important;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%2394a3b8' fill-opacity='0.07' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='1'/%3E%3C/g%3E%3C/svg%3E") !important;
    border-radius: 2px !important;
    padding: 1.5rem !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 100px !important;
}

.premium-stat-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(67, 97, 238, 0.3) !important;
}

.premium-stat-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
}

.stat-content {
    display: flex !important;
    flex-direction: column !important;
    z-index: 2 !important;
}

.stat-value {
    font-size: 2.1rem !important;
    /* Increased by 3px */
    font-weight: 800 !important;
    color: #1e293b !important;
    line-height: 1.2 !important;
    margin-bottom: 0.1rem !important;
}

.stat-title {
    font-size: 1.05rem !important;
    /* Increased by 3px */
    font-weight: 600 !important;
    color: #64748b !important;
    margin: 0 !important;
}

/* Icon Blob Container */
.stat-icon-wrapper {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    /* Made Circular */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 2 !important;
}

.stat-icon-wrapper i {
    font-size: 1.6rem !important;
    /* Increased by 3px */
}

/* Contextual Colors for Blobs and Icons */
.card-contracts .stat-icon-wrapper {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #3b82f6 !important;
}

.card-active .stat-icon-wrapper {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #10b981 !important;
}

.card-revenue .stat-icon-wrapper {
    background: rgba(6, 182, 212, 0.1) !important;
    color: #06b6d4 !important;
}

.card-expiring .stat-icon-wrapper {
    background: rgba(245, 158, 11, 0.1) !important;
    color: #f59e0b !important;
}

/* Remove old blob/floating icon styles */
.stat-icon-blob,
.stat-icon-floating {
    display: none !important;
}

.premium-stat-card::before {
    display: none !important;
}

/* Chart Card */
.premium-chart-card {
    border-radius: 6px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    border: none;
    padding: 1rem;
    background: #fff;
}

.premium-chart-card .card-header {
    background: transparent;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    padding-bottom: 1.5rem;
}

.premium-chart-card .card-title {
    font-weight: 700;
    color: #2d3436;
}

/* Simplified Animations */
.animate-up {
    opacity: 1;
    transform: none;
    transition: none !important;
    animation: none !important;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Company Identity Banner */
.company-identity-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    border-radius: 2px !important;
    border: none;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.25);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    color: #ffffff;
}

.company-identity-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0) 70%);
    border-radius: 50%;
}

.company-identity-banner:hover {
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35);
    transform: translateY(-5px);
}

.company-logo-frame {
    width: 70px;
    height: 70px;
    border-radius: 2px !important;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.company-logo-frame img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.company-initials {
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.welcome-text-premium {
    font-weight: 800;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.welcome-text-premium span.text-primary {
    color: #38bdf8 !important;
    /* Brighter blue for contrast */
}

.company-name-subtitle {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7) !important;
    letter-spacing: 0.5px;
}

.welcome-date-section .welcome-date {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.welcome-date-section .welcome-date i {
    color: #38bdf8 !important;
}

/* ==========================================================================
   MODULE: LOGIN & LOCK SCREEN (Scoped to Auth Container)
   ========================================================================== */
/* ==========================================================================
   MODULE: LOGIN & LOCK SCREEN (Premium Architecture)
   ========================================================================== */
/* 1. Global Reset for Auth Pages */
.login-main-wrapper~.header-navbar,
.login-main-wrapper~.footer,
.login-main-wrapper~.main-menu {
    display: none !important;
}

/* 2. Main Layout Container */
.login-main-wrapper {
    display: flex;
    width: 100%;
    height: 100vh;
    background: #0f172a;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    overflow: hidden;
}

[dir="rtl"] .login-main-wrapper {
    direction: rtl;
}

/* 3. Visual Content (Welcome Side) */
.welcome-side {
    background: url('../images/carbon-fibre.png'), url('../images/mjk/background.jpg') no-repeat center center;
    background-size: auto, cover;
    flex: 1;
    display: none;
    flex-direction: column;
    justify-content: flex-end;
    padding: 60px 8%;
    color: white;
    position: relative;
    z-index: 2;
}

.welcome-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #0f172a 0%, rgba(15, 23, 42, 0.4) 60%, transparent 100%);
    z-index: 1;
}

.welcome-side::after {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0) 70%);
    border-radius: 50%;
    z-index: 1;
}

[dir="rtl"] .welcome-side::after {
    right: auto;
    left: -10%;
}

.welcome-content-premium {
    position: relative;
    z-index: 3;
    animation: fadeInUp 1s ease-out;
}

.badge-welcome {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(56, 189, 248, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
}

.login-main-wrapper .welcome-title {
    font-weight: 900 !important;
    margin-bottom: 20px !important;
    line-height: 1.1 !important;
    letter-spacing: -2px !important;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.login-main-wrapper .welcome-text {
    color: rgba(255, 255, 255, 0.8) !important;
    max-width: 500px;
    line-height: 1.7 !important;
    margin-bottom: 40px !important;
}

@media (min-width: 992px) {
    .welcome-side {
        display: flex;
    }
}

/* 4. Form Side */
.form-side {
    position: relative;
    background: white;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    z-index: 5;
}

@media (min-width: 992px) {
    .form-side {
        width: 480px;
        box-shadow: -10px 0 50px rgba(0, 0, 0, 0.2);
    }
}

.login-form-box {
    width: 100%;
    max-width: 360px;
}

.brand-logo-modern {
    margin-bottom: 40px;
    text-align: center;
}

.brand-logo-modern img {
    max-height: 140px;
    width: auto;
}

.form-header-modern {
    text-align: center;
    margin-bottom: 30px;
}

.form-header-modern h2 {
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 8px;
}

.form-group-modern {
    margin-bottom: 32px;
    width: 100%;
}

.form-label-modern {
    display: block;
    font-weight: 700;
    color: #1e3a8a;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.login-options-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    margin-bottom: 30px;
}

.remember-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    color: #64748b;
}

.remember-modern input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #38bdf8;
    cursor: pointer;
}

.forgot-modern {
    font-weight: 700;
    color: #38bdf8;
    text-decoration: none;
    transition: all 0.3s;
}

.forgot-modern:hover {
    color: #1e3a8a;
    text-decoration: underline;
}

.form-control-modern {
    width: 100%;
    background: #f8fafc;
    border: 2px solid #f1f5f9;
    border-radius: 6px;
    padding: 16px 20px;
    padding-inline-start: 48px;
    color: #1e293b;
    transition: all 0.3s;
}

.form-control-modern:focus {
    background: white;
    border-color: #38bdf8;
    box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.1);
    outline: none;
}

.input-container-modern {
    position: relative;
}

.input-icon-modern {
    position: absolute;
    inset-inline-start: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #38bdf8;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 10;
}

.btn-login-modern {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #1e3a8a 100%);
    background-size: 200% auto;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.4);
}

.btn-login-modern:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.5);
}

.lang-toggle-container {
    position: absolute;
    top: 30px;
    inset-inline-end: 30px;
}

.btn-lang-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 50px;
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 800;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

@media (max-width: 991px) {
    .login-main-wrapper {
        background: #0f172a;
    }

    .form-side {
        background: transparent;
    }

    .login-form-box {
        background: rgba(255, 255, 255, 0.95);
        padding: 50px 35px;
        border-radius: 35px;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
        max-width: 440px;
        width: 92%;
    }
}

/* 5. Lock Screen Specific Styles */
.lock-avatar-premium {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    padding: 5px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 0 auto 1.5rem;
    position: relative;
    border: 2px solid #f1f5f9;
}

.lock-avatar-premium img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.lock-avatar-initials {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
}

.lock-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #f0fdf4;
    color: #166534;
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.different-account {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 2rem;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.different-account:hover {
    color: #38bdf8;
}

/* 6. Utility Animations & Components */
.stat-item {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #38bdf8;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   MODULE: PERMISSIONS & SWITCHES
   ========================================================================== */
/* Global Utilities */
.radius-20 {
    border-radius: 6px !important;
}

.radius-15 {
    border-radius: 6px !important;
}

.shadow-pulse {
    animation: none !important;
    box-shadow: none !important;
}

/* Dashboard Tabs - Unified & Sharpened */
.premium-segmented-control {
    background: #f8fafc !important;
    padding: 6px !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    gap: 5px !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02) !important;
    border: 1px solid #e2e8f0 !important;
}

.premium-tab-btn {
    border: none !important;
    color: #64748b !important;
    font-weight: 600 !important;
    padding: 9px 20px !important;
    border-radius: 6px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: transparent !important;
    outline: none !important;
    cursor: pointer !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
}

.premium-tab-btn:hover:not(.active) {
    color: #3b82f6 !important;
    background: rgba(59, 130, 246, 0.08) !important;
}

.premium-tab-btn.active {
    color: #ffffff !important;
    background: #3b82f6 !important;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3) !important;
    font-weight: 700 !important;
}

html[dir="rtl"] .premium-tab-btn,
[data-textdirection="rtl"] .premium-tab-btn {
    flex-direction: row-reverse !important;
}

/* ==========================================================================
   Premium Page Components (Customer & Property Show Pages)
   ========================================================================== */
.header-customer-dark,
.header-property-dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15) !important;
    position: relative;
    overflow: hidden;
    padding: 25px 30px !important;
    border-radius: 2px !important;
}

.border-left-light-opacity {
    border-left: 1px solid rgba(255, 255, 255, 0.15) !important;
}

[data-textdirection="rtl"] .border-left-light-opacity {
    border-left: none !important;
    border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding-left: 0 !important;
    padding-right: 1rem !important;
}

/* Utilities */
.radius-10 {
    border-radius: 2px !important;
}

.radius-15 {
    border-radius: 2px !important;
}

.bg-light-primary-opacity {
    background-color: rgba(90, 141, 238, 0.1) !important;
}

.bg-light-success-opacity {
    background-color: rgba(40, 208, 148, 0.1) !important;
}

.bg-light-danger-opacity {
    background-color: rgba(255, 73, 97, 0.1) !important;
}

.bg-light-warning-opacity {
    background-color: rgba(255, 159, 67, 0.1) !important;
}

.bg-light-info-opacity {
    background-color: rgba(0, 207, 232, 0.1) !important;
}

.bg-light-dark-opacity {
    background-color: rgba(77, 82, 89, 0.1) !important;
}

.bg-light-blue-info {
    background-color: #f8fafc !important;
}

/* Data Grid System */
.data-grid-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 2px;
    border: 1px solid #f1f5f9;
    background: #fff;
    height: 100%;
    transition: all 0.2s ease;
}

.data-grid-item:hover {
    border-color: #5A8DEE !important;
    box-shadow: 0 5px 15px rgba(90, 141, 238, 0.15) !important;
    transform: translateY(-2px);
    z-index: 2;
    position: relative;
}

.data-grid-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    margin-right: 15px;
    flex-shrink: 0;
}

[data-textdirection="rtl"] .data-grid-icon {
    margin-right: 0;
    margin-left: 15px;
}

.data-grid-label {
    display: block;
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 2px;
    font-weight: 500;
}

.data-grid-value {
    display: block;
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

/* Borders & Dividers */
.border-left-primary-3 {
    border-left: 3px solid #5A8DEE !important;
}

.border-left-warning-3 {
    border-left: 3px solid #ff9f43 !important;
}

.border-dashed-premium {
    border: 1px dashed #e2e8f0 !important;
}

[data-textdirection="rtl"] .border-left-primary-3 {
    border-left: none !important;
    border-right: 3px solid #5A8DEE !important;
}

[data-textdirection="rtl"] .border-left-warning-3 {
    border-left: none !important;
    border-right: 3px solid #ff9f43 !important;
}

/* Sidebar Utilities */
.border-dashed-premium {
    border: 1px dashed rgba(90, 141, 238, 0.3) !important;
}

.border-right-light {
    border-right: 1px solid rgba(0, 0, 0, 0.05) !important;
}

[data-textdirection="rtl"] .border-right-light {
    border-right: none !important;
    border-left: 1px solid rgba(0, 0, 0, 0.05) !important;
}

[data-textdirection="rtl"] .text-right-rtl {
    text-align: right !important;
}

/* --- Premium Minimalist Nav Tabs --- */
.premium-nav-tabs {
    border-bottom: 2px solid #f1f3f4 !important;
    margin-bottom: 8px !important;
    padding: 0 1rem !important;
    background: #fff !important;
    margin-top: 0.5rem !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    /* Centered tabs navigation */
}

.premium-nav-tabs .nav-item {
    margin-bottom: 0 !important;
}

.premium-nav-tabs .nav-link {
    border: none !important;
    background: transparent !important;
    color: #64748b !important;
    font-weight: 600 !important;
    padding: 12px 20px !important;
    border-bottom: 2px solid transparent !important;
    transition: all 0.3s ease !important;
    border-radius: 0 !important;
    font-size: 1rem !important;
    /* Enlarge font size in main tabs to be larger than fields */
    box-shadow: none !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    flex-direction: row !important;
    /* Fix RTL icon issue globally for premium tabs */
    cursor: pointer !important;
}

.premium-nav-tabs .nav-link::after {
    display: none !important;
}

.premium-nav-tabs .nav-link i {
    font-size: 1.1rem;
    vertical-align: middle;
    margin-inline-end: 5px;
}

.premium-nav-tabs .nav-link:focus,
.premium-nav-tabs .nav-link:active {
    outline: none !important;
    box-shadow: none !important;
}

.premium-nav-tabs .nav-link:hover {
    color: #7367f0 !important;
    background-color: #f8f9fa !important;
    border-radius: 6px 6px 0 0 !important;
    cursor: pointer !important;
}

.premium-nav-tabs .nav-link.active {
    color: #7367f0 !important;
    border-bottom: 2px solid #7367f0 !important;
    background: transparent !important;
    font-weight: 700 !important;
}

/* --- PREMIUM QUICK SEARCH AREA --- */
.premium-quick-search-area {
    background-color: #f4f9ff !important;
    border-color: #d1e9ff !important;
}

/* ==========================================================================
   PREMIUM FINANCIAL SUMMARY REDESIGN
   ========================================================================== */
.payment-summary-card-premium {
    background: #ffffff;
    border-radius: 2px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.payment-summary-card-premium::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--premium-primary);
}

[data-textdirection="rtl"] .payment-summary-card-premium::before {
    left: auto;
    right: 0;
}

.summary-header-premium {
    padding: 20px;
    background: rgba(248, 250, 252, 0.5);
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Legendary Black & Yellow Tips Card */
.legendary-tips-card {
    background: linear-gradient(145deg, #1a1c23, #0f1014);
    border-radius: 12px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.legendary-tips-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.5);
}

.legendary-tips-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.legendary-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(245, 158, 11, 0.1);
}

.legendary-header i {
    color: #f59e0b;
    font-size: 1.2rem;
    margin-right: 10px;
    filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.5));
}

[data-textdirection="rtl"] .legendary-header i {
    margin-right: 0;
    margin-left: 10px;
}

.legendary-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.legendary-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legendary-list li {
    display: flex;
    align-items: flex-start;
    color: #cbd5e1;
    font-size: 0.85rem;
    margin-bottom: 12px;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.legendary-list li:hover {
    color: #f59e0b;
}

.legendary-list li i {
    color: #f59e0b;
    font-size: 0.75rem;
    margin-top: 4px;
    margin-right: 10px;
    flex-shrink: 0;
}

[data-textdirection="rtl"] .legendary-list li i {
    margin-right: 0;
    margin-left: 6px;
}

/* Premium Company Badge Style */
.premium-company-badge {
    display: inline-flex;
    align-items: center;
    background: #0f172a;
    /* Dark Navy/Black */
    color: #f59e0b;
    /* Yellow/Gold */
    padding: 6px 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.premium-company-badge i {
    margin-right: 8px;
    font-size: 0.9rem;
    color: #f59e0b;
}

[data-textdirection="rtl"] .premium-company-badge i {
    margin-right: 0;
    margin-left: 8px;
}

.premium-company-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
}

/* Premium Error Alerts */
.premium-error-alert {
    border-radius: 12px;
    border: none;
    border-right: 5px solid #ef4444;
    background: #fff;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.08);
}

[data-textdirection="ltr"] .premium-error-alert {
    border-right: none;
    border-left: 5px solid #ef4444;
}

.premium-warning-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.premium-warning-pill i {
    margin-right: 6px;
}

[data-textdirection="rtl"] .premium-warning-pill i {
    margin-right: 0;
    margin-left: 6px;
}

.summary-header-premium i {
    width: 36px;
    height: 36px;
    background: var(--premium-primary-soft);
    color: var(--premium-primary);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.summary-title-premium {
    font-weight: 800;
    font-size: 1rem;
    color: #1e293b;
}

.summary-body-premium {
    padding: 20px;
}

.summary-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.summary-stat-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}

.summary-stat-value {
    font-size: 1rem;
    font-weight: 800;
    color: #1e293b;
}

.financial-indicator-section {
    margin: 25px 0;
    padding: 15px;
    background: #f8fafc;
    border-radius: 2px;
    border: 1px dashed #e2e8f0;
}

.indicator-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: block;
    text-align: center;
}

.indicator-percentage {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--premium-success);
    display: block;
    text-align: center;
    margin-bottom: 5px;
}

/* Portfolio Styles */
.portfolio-section-premium {
    margin-top: 25px;
}

.portfolio-title-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.portfolio-title-text {
    font-weight: 800;
    font-size: 0.9rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cheque-portfolio-item {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 2px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.cheque-portfolio-item:hover {
    border-color: var(--premium-primary-soft);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateX(4px);
}

[data-textdirection="rtl"] .cheque-portfolio-item:hover {
    transform: translateX(-4px);
}

.cheque-portfolio-item.fully-used {
    background: #f8fafc;
    opacity: 0.8;
}

.cheque-item-left {
    display: flex;
    flex-direction: column;
}

.cheque-number-premium {
    font-weight: 800;
    font-size: 0.85rem;
    color: #1e293b;
}

.cheque-bank-premium {
    font-size: 0.7rem;
    color: #94a3b8;
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cheque-item-right {
    text-align: right;
}

.cheque-amount-total {
    font-weight: 700;
    font-size: 0.85rem;
    color: #64748b;
}

.cheque-amount-available {
    font-weight: 800;
    font-size: 0.8rem;
    color: var(--premium-success);
}

.summary-footer-premium {
    padding: 15px 20px;
    background: #fdfdfd;
    border-top: 1px solid #f1f5f9;
}

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

.footer-balance-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
}

.footer-balance-value {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--premium-danger);
}

/* Sticky Sidebar Fix */
.sticky-sidebar-premium {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 100px !important;
    z-index: 99 !important;
    align-self: flex-start !important;
}

.content-body,
section#basic-form-layouts {
    overflow: visible !important;
}

/* Financial Progress Bar */
.financial-progress-premium {
    height: 8px;
    background: #eef2f7;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 15px;
    display: flex;
}

.financial-progress-bar-premium {
    height: 100%;
}

.financial-progress-bar-paid {
    background-color: var(--premium-success);
}

.financial-progress-bar-cheques {
    background-color: var(--premium-warning);
    opacity: 0.75;
}

/* Legend Styles */
.financial-legend-premium {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 0.7rem;
    font-weight: 700;
}

.legend-item-premium {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-dot-premium {
    font-size: 6px;
    vertical-align: middle;
}

/* Portfolio Scrollable */
.linked-cheques-scrollable-premium {
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
}

/* Projected Balance Card */
.projected-balance-box-premium {
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    background: rgba(16, 185, 129, 0.04);
    border: 1px dashed rgba(16, 185, 129, 0.3);
    border-radius: 2px;
}

.projected-label-premium {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 4px;
    font-weight: 700;
}

.projected-value-premium {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--premium-success);
}

.projected-value-premium.negative {
    color: var(--premium-danger);
}

/* Cheque Details Pill */
.cheque-details-pill-premium {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #f8fafc;
    border-radius: 2px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.pill-info-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-grow: 1;
}

.pill-stat {
    display: flex;
    flex-direction: column;
    padding-right: 20px;
    border-right: 1px solid #e2e8f0;
}

[data-textdirection="rtl"] .pill-stat {
    padding-right: 0;
    padding-left: 20px;
    border-right: 0;
    border-left: 1px solid #e2e8f0;
}

.pill-label {
    font-size: 0.65rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pill-value {
    font-size: 0.9rem;
    font-weight: 800;
}

.pill-action-btn {
    border-radius: 8px !important;
    font-weight: 800 !important;
    padding: 6px 15px !important;
    white-space: nowrap;
}

/* Fully Paid Card */
.fully-paid-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    border: 1px solid var(--premium-success-soft);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.05);
}

.fully-paid-icon-wrapper {
    width: 50px;
    height: 50px;
    background: var(--premium-success-soft);
    color: var(--premium-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
}

.fully-paid-title {
    font-weight: 800;
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 5px;
}

.fully-paid-subtitle {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0;
}

/* ==========================================================================
   SMART BREAKDOWN & DIGITAL CHEQUE WALLET & LIVE PREVIEW
   ========================================================================== */
/* Smart Balance Breakdown */
.smart-balance-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.smart-balance-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

.breakdown-item.paid-item {
    background: #ecfdf5;
    color: #059669;
}

.breakdown-item.covered-item {
    background: #fffbeb;
    color: #d97706;
}

.breakdown-item.uncovered-item {
    background: #f1f5f9;
    color: #64748b;
}

.breakdown-item.uncovered-item.has-debt {
    background: #fef2f2;
    color: #dc2626;
    border-right: 3px solid #dc2626;
}

/* Triple Segment Progress Bar */
.financial-progress-premium.triple-segment {
    height: 12px;
    background: #f1f5f9;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
}

.financial-progress-bar-current-pulse {
    background: linear-gradient(90deg, #10b981, #34d399);
    animation: pulse-width 2s infinite alternate;
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.6);
    position: relative;
    z-index: 10;
}

.financial-progress-bar-current-pulse.pulse-blue {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    animation: pulse-width-blue 2s infinite alternate;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
    position: relative;
    z-index: 10;
}

.financial-progress-bar-cheques-striped {
    background: repeating-linear-gradient(45deg,
            #f59e0b,
            #f59e0b 10px,
            #fbbf24 10px,
            #fbbf24 20px);
    opacity: 0.85;
}

@keyframes pulse-width {
    0% {
        filter: brightness(1);
    }

    100% {
        filter: brightness(1.2);
    }
}

@keyframes pulse-width-blue {
    0% {
        filter: brightness(1);
    }

    100% {
        filter: brightness(1.2);
    }
}

/* Smart Assistant Box */
.smart-assistant-box {
    display: flex;
    gap: 12px;
    background: #eff6ff;
    border-right: 4px solid #3b82f6;
    border-radius: 8px;
    padding: 12px;
    font-size: 0.85rem;
    color: #1e3a8a;
    align-items: flex-start;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.smart-assistant-box.alert-state {
    background: #fef2f2;
    border-right: 4px solid #ef4444;
    color: #991b1b;
}

.assistant-icon {
    font-size: 1.2rem;
    margin-top: 2px;
}

/* Digital Cheque Wallet */
.digital-wallet-drawer {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 5px;
}

.cheque-card-premium {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    margin-top: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    position: relative;
    transition: all 0.3s ease;
}

.cheque-card-premium.selected-glow {
    border: 2px solid #10b981 !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.cheque-card-premium.fully-used-card {
    opacity: 0.65;
    background: #f8fafc;
}

.cheque-card-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cheque-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #cbd5e1;
    padding-bottom: 8px;
}

.bank-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #334155;
    font-size: 0.9rem;
}

.bank-icon {
    color: #94a3b8;
}

.cheque-number {
    font-family: monospace;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #475569;
}

.cheque-amount-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.cheque-amount-display.available {
    font-size: 0.85rem;
    margin-top: 4px;
}

.cheque-mini-progress {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    width: 100%;
}

.cheque-mini-progress .mini-progress-bar {
    height: 100%;
    background: #10b981;
    transition: width 0.3s ease;
}

/* Live Digital Cheque Preview */
.live-cheque-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.live-cheque-header {
    background: #f8fafc;
    padding: 10px 15px;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.live-cheque-canvas {
    padding: 15px;
    background: #f1f5f9;
    display: flex;
    justify-content: center;
}

.cheque-paper {
    width: 100%;
    background: repeating-linear-gradient(0deg,
            #fff,
            #fff 19px,
            #f1f5f9 20px);
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 15px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    border-left: 10px dashed #cbd5e1;
    color: #334155;
}

.cheque-paper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(#94a3b8 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
    pointer-events: none;
}

.cheque-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.85rem;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 5px;
}

.cheque-bank-name {
    font-weight: bold;
    color: #1e3a8a;
    font-size: 1rem;
}

.cheque-date .val {
    font-family: monospace;
    border-bottom: 1px dotted #94a3b8;
}

.cheque-pay-to {
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.cheque-pay-to .val {
    font-weight: bold;
    font-style: italic;
    border-bottom: 1px dotted #94a3b8;
    display: inline-block;
    min-width: 150px;
}

.cheque-amount-row {
    font-size: 0.85rem;
    background: #f8fafc;
    padding: 5px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 15px;
}

.cheque-amount-row .val {
    color: #059669;
}

.cheque-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 0.8rem;
}

.cheque-no .val {
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.cheque-signature {
    border-top: 1px solid #94a3b8;
    padding-top: 5px;
    width: 100px;
    text-align: center;
    color: #94a3b8;
    font-style: italic;
}

/* Maintenance Module Styles */
.maintenance-item-row {
    background-color: #f9fbfd;
    border-radius: 8px;
    padding: 15px 10px;
    margin-bottom: 15px;
    border: 1px solid #e1e5eb;
    transition: all 0.3s ease;
}

.maintenance-item-row:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: #d1d5db;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

/* Contract Clause Builder */
.cursor-move {
    cursor: move;
}

.clause-item {
    transition: all 0.2s;
}

.clause-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Premium Clause Library Styles */
.premium-clause-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 15px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    padding: 16px;
}

.premium-clause-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(135deg, #7367f0 0%, #9e95f5 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.premium-clause-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08), 0 6px 6px rgba(0, 0, 0, 0.05);
    border-color: rgba(115, 103, 240, 0.2);
}

.premium-clause-card:hover::before {
    opacity: 1;
}

.premium-clause-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
    padding-bottom: 10px;
}

.premium-clause-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #4b4b4b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.premium-clause-icon {
    color: #7367f0;
    font-size: 1.1rem;
}

html[dir="rtl"] .premium-clause-title {
    margin-right: 0;
}

html[dir="rtl"] .premium-clause-icon {
    margin-left: 8px;
}

html[dir="ltr"] .premium-clause-icon {
    margin-right: 8px;
}

.premium-clause-btn {
    background: rgba(40, 199, 111, 0.1);
    color: #28c76f;
    border: 1px solid rgba(40, 199, 111, 0.2);
    border-radius: 8px;
    padding: 6px 14px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    outline: none;
}

.premium-clause-btn:hover {
    background: #28c76f;
    color: #ffffff;
    border-color: #28c76f;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(40, 199, 111, 0.3);
}

.premium-clause-content {
    font-size: 0.95rem;
    color: #6e6b7b;
    line-height: 1.6;
    text-align: right;
    width: 100%;
    direction: rtl;
    margin: 0;
}

.clause-library-container {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 5px;
    padding-left: 5px;
    scrollbar-width: thin;
    scrollbar-color: #7367f0 rgba(0, 0, 0, 0.05);
}

.clause-library-container::-webkit-scrollbar {
    width: 6px;
}

.clause-library-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 10px;
}

.clause-library-container::-webkit-scrollbar-thumb {
    background: #d8d6f9;
    border-radius: 10px;
}

.clause-library-container::-webkit-scrollbar-thumb:hover {
    background: #7367f0;
}

/* Modern Smart Tags Tabs Styling (iOS-Style Segmented Control Pills) */
.smart-tags-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 10px !important;
}

.smart-tags-tabs {
    border: none !important;
    background: #f1f5f9 !important;
    /* light slate background */
    padding: 4px !important;
    border-radius: 30px !important;
    /* pill container */
    display: inline-flex !important;
    justify-content: center !important;
    margin: 12px auto !important;
    /* centered horizontally */
    align-items: center !important;
    width: auto !important;
    /* only occupies as much space as the tabs need */
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06) !important;
}

.smart-tags-tabs .nav-item {
    margin: 0 !important;
}

.smart-tags-tabs .nav-link {
    border: none !important;
    background: transparent !important;
    color: #475569 !important;
    font-weight: 700 !important;
    padding: 8px 20px !important;
    border-radius: 30px !important;
    font-size: 0.95rem !important;
    transition: all 0.25s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
}

.smart-tags-tabs .nav-link:focus,
.smart-tags-tabs .nav-link:active {
    outline: none !important;
    box-shadow: none !important;
}

.smart-tags-tabs .nav-link:hover {
    color: #7367f0 !important;
    background-color: transparent !important;
}

.smart-tags-tabs .nav-link.active {
    background: #ffffff !important;
    /* white pill for active tab */
    color: #7367f0 !important;
    box-shadow: 0 4px 10px rgba(115, 103, 240, 0.15) !important;
}

.smart-tags-tabs .nav-link i {
    margin-inline-end: 5px;
}

/* Tag Cards Styling */
.smart-tag-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    height: 100%;
}

.smart-tag-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.smart-tag-card.copied-success {
    border-color: #28c76f !important;
    background-color: rgba(40, 199, 111, 0.05) !important;
    transform: scale(0.98);
}

.tag-label {
    font-size: 0.98rem;
    font-weight: 600;
}

.tag-code {
    font-size: 0.95rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.bg-light-primary {
    background-color: rgba(115, 103, 240, 0.1) !important;
}

.text-primary {
    color: #7367f0 !important;
}

.bg-light-success {
    background-color: rgba(40, 199, 111, 0.1) !important;
}

.text-success {
    color: #28c76f !important;
}

.bg-light-warning {
    background-color: rgba(255, 159, 67, 0.1) !important;
}

.text-warning {
    color: #ff9f43 !important;
}

.bg-light-danger {
    background-color: rgba(234, 84, 85, 0.1) !important;
}

.text-danger {
    color: #ea5455 !important;
}

/* Custom Smart Tags Layout Overrides (Dashed Pill Alert) */
.smart-tags-hint-bar {
    background: linear-gradient(135deg, rgba(115, 103, 240, 0.06) 0%, rgba(115, 103, 240, 0.02) 100%) !important;
    border: 1px dashed rgba(115, 103, 240, 0.25) !important;
    border-radius: 12px !important;
    padding: 12px 20px !important;
    margin: 16px 16px 8px 16px !important;
    /* Margin around it to float inside the card */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.smart-tags-hint-bar p {
    color: #7367f0 !important;
    font-size: 0.98rem !important;
    font-weight: 700 !important;
    margin-bottom: 0 !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.smart-tags-hint-bar p i {
    color: #7367f0 !important;
    font-size: 1.15rem !important;
    margin-inline-end: 0 !important;
    animation: pulse-info 2s infinite !important;
}

@keyframes pulse-info {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.smart-tags-collapse-body {
    background-color: #fff !important;
    border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
}

.smart-tags-content {
    padding: 12px 16px 8px 16px !important;
}

/* Tab Error Indicator */
.tab-error-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background-color: #ff4d4d;
    border-radius: 50%;
    box-shadow: 0 0 8px #ff4d4d;
    animation: pulse-red 1.5s infinite;
    z-index: 10;
}

.premium-tab-btn {
    position: relative !important;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(255, 77, 77, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0);
    }
}

/* ==========================================================================
   CONTRACT DURATION & DATES STYLING
   ========================================================================== */
.contract-duration-wrapper {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.duration-label-badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(59, 130, 246, 0.08);
    color: #1e293b;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid rgba(59, 130, 246, 0.15);
    white-space: nowrap;
}

.duration-label-badge i {
    font-size: 0.95rem;
}

.duration-label-badge span {
    white-space: nowrap;
}

.contract-duration-wrapper .date-range-badge {
    display: inline-flex;
    align-items: center;
    background-color: #f8fafc;
    border-radius: 20px;
    padding: 4px 10px;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
}

.contract-duration-wrapper .date-range-badge .date-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.5px;
}

.contract-duration-wrapper .date-range-badge .date-arrow {
    margin: 0 8px;
    font-size: 0.8rem;
    opacity: 0.7;
}

[data-textdirection="rtl"] .duration-label-badge i,
[dir="rtl"] .duration-label-badge i {
    margin-left: 6px;
    margin-right: 0 !important;
}

[data-textdirection="ltr"] .duration-label-badge i,
[dir="ltr"] .duration-label-badge i {
    margin-right: 6px;
    margin-left: 0 !important;
}

/* ========================================================================
   PLATINUM DASHBOARD - UNIFIED PAGES STYLING (pages.css)
   Consolidates: Properties, Contracts, Cheques, Payments, Settings, etc.
   Supports: LTR & RTL in a single file.
   ======================================================================== */
:root {
    --premium-primary: #3b82f6;
    --premium-primary-soft: rgba(59, 130, 246, 0.1);
    --premium-success: #10b981;
    --premium-success-soft: rgba(16, 185, 129, 0.1);
    --premium-warning: #f59e0b;
    --premium-warning-soft: rgba(245, 158, 11, 0.1);
    --premium-danger: #ef4444;
    --premium-danger-soft: rgba(239, 68, 68, 0.1);
    --premium-info: #06b6d4;
    --premium-info-soft: rgba(6, 182, 212, 0.1);
    --premium-slate: #1e293b;
    --premium-slate-light: #64748b;
    /* Legacy Sync */
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
}

/* ==========================================================================
   GLOBAL PREMIUM COMPONENTS (Unified)
   ========================================================================== */
/* Removed redundant .premium-card - using system-style.css instead */
.premium-mandatory-header {
    background: #ffffff !important;
    color: #1e293b !important;
    font-weight: 700 !important;
    padding: 10px 20px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
}

[dir="rtl"] .premium-mandatory-header i,
html[dir="rtl"] .premium-mandatory-header i,
[data-textdirection="rtl"] .premium-mandatory-header i {
    margin-left: 10px !important;
    margin-right: 0 !important;
}

[dir="ltr"] .premium-mandatory-header i,
html[dir="ltr"] .premium-mandatory-header i {
    margin-right: 10px !important;
    margin-left: 0 !important;
}

/* Global Premium Buttons (Unified to Minimalist White Style) */
.btn-premium-save,
button.btn-premium-save,
.btn-premium-add,
.btn-premium-edit,
.btn-premium-back,
a.btn-premium-back {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 0 24px !important;
    height: 42px !important;
    margin: 0 4px !important;
    border-radius: 4px !important;
    /* Unified rounded style matching cancel button */
    font-weight: 700 !important;
    font-size: 1rem !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    cursor: pointer !important;
    text-decoration: none !important;
    background: #ffffff !important;
    color: #475569 !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
}

.btn-premium-save:hover,
button.btn-premium-save:hover,
.btn-premium-add:hover,
.btn-premium-edit:hover,
.btn-premium-back:hover,
.btn-premium-secondary:hover,
.btn-premium-cancel:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
    background: #ffffff !important;
    color: #1e293b !important;
    border-color: #5A8DEE !important;
}

.btn-premium-save i,
.btn-premium-add i,
.btn-premium-edit i,
.btn-premium-back i {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.btn-premium-save:hover i,
.btn-premium-add:hover i,
.btn-premium-edit:hover i,
.btn-premium-back:hover i {
    transform: translateX(4px);
}

[data-textdirection="rtl"] .btn-premium-save:hover i,
[data-textdirection="rtl"] .btn-premium-add:hover i,
[data-textdirection="rtl"] .btn-premium-edit:hover i,
[data-textdirection="rtl"] .btn-premium-back:hover i {
    transform: translateX(-4px);
}

.btn-premium-save.shadow-pulse,
.btn-premium-add.shadow-pulse {
    animation: pulse-indigo 2.5s infinite;
}

/* ==========================================================================
   MODULE: PROPERTIES (��� ��� ��������)
   ========================================================================== */
.header-bg-shape {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

[dir="ltr"] .header-bg-shape {
    right: auto;
    left: -50px;
}

/* Table Widths */
.col-owner-width {
    width: 60% !important;
}

.col-percentage-width {
    width: 15% !important;
}

.col-primary-width {
    width: 12% !important;
}

.col-actions-width {
    width: 13% !important;
}

/* Standardized Table Styling for Properties & Customers */
.premium-table thead th {
    background-color: #f8fafc !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    color: #475569 !important;
    padding: 15px 20px !important;
    vertical-align: middle !important;
    border-bottom: 2px solid #f1f5f9 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.premium-table tbody td {
    padding: 15px 20px !important;
    vertical-align: middle !important;
    color: #1e293b !important;
    font-weight: 500 !important;
}

.th-w-20 {
    width: 20% !important;
}

.th-w-25 {
    width: 25% !important;
}

.th-w-15 {
    width: 15% !important;
}

/* Heading Elements Icons Scaling */
.heading-elements ul li a i {
    font-size: 11px !important;
    color: #94a3b8 !important;
    transition: color 0.3s ease;
}

.heading-elements ul li a:hover i {
    color: #475569 !important;
}

.th-w-10 {
    width: 10% !important;
}

.th-w-actions {
    width: 30px !important;
}

.header-trash-icon {
    margin-inline-start: 4px !important;
    font-size: 1.1rem !important;
    color: #94a3b8 !important;
}

.btn-trash-cell {
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

/* ==========================================================================
   MODULE: CONTRACTS (��� ��� ����)
   ========================================================================== */
.contract-text-viewer {
    line-height: 1.7 !important;
    color: #334155 !important;
    background: #fff !important;
    border-radius: 12px !important;
    padding: 25px !important;
}

[dir="rtl"] .border-primary-left,
html[dir="rtl"] .border-primary-left,
[data-textdirection="rtl"] .border-primary-left {
    border-right: 4px solid #7367f0 !important;
    border-left: 0 !important;
}

[dir="ltr"] .border-primary-left,
html[dir="ltr"] .border-primary-left {
    border-left: 4px solid #7367f0 !important;
    border-right: 0 !important;
}

/* Premium Badge Hint (Insurance Locked) */
.premium-badge-hint {
    background-color: rgba(239, 68, 68, 0.08) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    padding: 6px 14px !important;
    border-radius: 50px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.05) !important;
    white-space: nowrap !important;
}

.premium-badge-hint i {
    font-size: 13px !important;
    animation: premium-pulse-lock 2s infinite !important;
}

@keyframes premium-pulse-lock {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

[data-textdirection="rtl"] .premium-badge-hint {
    letter-spacing: 0 !important;
}

/* ==========================================================================
   MODULE: CHEQUES (��� ���`� ����)
   ========================================================================== */
.cheque-summary-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    border-left: 5px solid #ef4444;
    padding: 24px;
}

[dir="rtl"] .cheque-summary-card {
    border-left: 1px solid #f1f5f9;
    border-right: 5px solid #ef4444;
}

/* ==========================================================================
   MODULE: PAYMENTS (��� ����������)
   ========================================================================== */
.payment-summary-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    border-left: 5px solid #10b981;
    padding: 24px;
}

[dir="rtl"] .payment-summary-card,
html[dir="rtl"] .payment-summary-card,
[data-textdirection="rtl"] .payment-summary-card {
    border-left: 1px solid #f1f5f9;
    border-right: 5px solid #10b981;
}

/* Property Mandatory Section (Matched to Contract Insurance Style) */
.property-mandatory-section {
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    margin: 30px 0 !important;
    background: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

.property-mandatory-header {
    background: #f8fafc !important;
    padding: 12px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.property-mandatory-header .title-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: #1e293b !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
}

.property-mandatory-header i {
    font-size: 1.15rem !important;
    color: #475569 !important;
}

.property-mandatory-body {
    padding: 25px 20px !important;
}

[data-textdirection="rtl"] .property-mandatory-header .title-wrapper {
    gap: 12px !important;
}

/* Sub-header inside mandatory body (e.g. Cheque Details) */
.mandatory-sub-header {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding-bottom: 8px !important;
    margin-bottom: 15px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.mandatory-sub-header i {
    font-size: 1.1rem !important;
    color: #3b82f6 !important;
    /* text-primary */
}

.mandatory-sub-header h6 {
    color: #3b82f6 !important;
    /* text-primary */
    margin: 0 !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
}

.mandatory-sub-header small {
    color: #64748b !important;
    /* text-muted */
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    margin-right: 5px !important;
}

[data-textdirection="rtl"] .mandatory-sub-header small {
    margin-right: 0 !important;
    margin-left: 5px !important;
}

/* ==========================================================================
   MODULE: SETTINGS (��� �������������� ��� �����& ��) - Scoped Styles Only
   ========================================================================== */
/* Use global .premium-card and .premium-mandatory-header from system-style.css */
.premium-card {
    margin-bottom: 17px !important;
}

.premium-mandatory-header {
    background: #f8fafc !important;
    padding: 12px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid #e2e8f0 !important;
    font-size: 1.58rem !important;
    font-weight: 800 !important;
    color: #1e293b !important;
}

.premium-mandatory-header .title-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: #1e293b !important;
    font-weight: 800 !important;
    font-size: 1.27rem !important;
}

.premium-mandatory-header i {
    font-size: 1.45rem !important;
    color: #475569 !important;
}

[data-textdirection="rtl"] .premium-mandatory-header .title-wrapper {
    gap: 12px !important;
}

.premium-form-group {
    margin-bottom: 27px !important;
    position: relative !important;
}

.premium-mandatory-body .row,
form.ajax-form .row {
    margin-bottom: 22px !important;
}

.error-text {
    position: relative !important;
    margin-top: 4px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    display: block !important;
    word-wrap: break-word !important;
    white-space: normal !important;
    animation: premiumFadeInUp 0.3s ease-out !important;
    z-index: 10 !important;
}

[dir="rtl"] .error-text,
html[dir="rtl"] .error-text,
[data-textdirection="rtl"] .error-text {
    text-align: right !important;
    padding-right: 2px !important;
    direction: rtl !important;
}

/* Static error text for titles or sections where absolute positioning is not suitable */
.premium-section-title .error-text {
    position: static !important;
    display: inline-block !important;
    width: auto !important;
    margin-right: 10px !important;
    margin-left: 10px !important;
    animation: none !important;
}

[dir="ltr"] .error-text,
html[dir="ltr"] .error-text {
    text-align: left !important;
    padding-left: 2px !important;
    direction: ltr !important;
}

/* Special styling for permissions error chip in section titles */
.premium-error-alert-chip {
    background-color: rgba(255, 73, 97, 0.1) !important;
    color: #ff4961 !important;
    border: 1px solid rgba(255, 73, 97, 0.3) !important;
    padding: 5px 15px !important;
    border-radius: 30px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    display: none;
    /* Hidden by default until text is filled */
    box-shadow: 0 4px 10px rgba(255, 73, 97, 0.15) !important;
    animation: premiumShake 0.5s ease-in-out !important;
}

.premium-error-alert-chip:not(:empty) {
    display: inline-block !important;
}

@keyframes premiumShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Global Hover Animation for Cancel/Close Icons */
.premium-modal-close:hover i,
.btn-premium-secondary:hover i {
    transform: rotate(90deg) !important;
    transition: transform 0.3s ease-in-out !important;
}

.premium-modal-close i,
.btn-premium-secondary i {
    transition: transform 0.3s ease-in-out !important;
}

/* Required Asterisk Styling */
label .text-danger,
.premium-label .text-danger {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin-left: 2px;
    margin-right: 2px;
}

@keyframes premiumFadeInUp {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.field-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
}

.field-header i {
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    font-size: 0.9rem !important;
    background: var(--premium-primary-soft) !important;
    color: var(--premium-primary) !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03) !important;
}

/* Contextual Icon Colors */
.field-header i.fa-font,
.field-header i.fa-language {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #3b82f6 !important;
}

.field-header i.fa-facebook-f {
    background: rgba(24, 119, 242, 0.1) !important;
    color: #1877f2 !important;
}

.field-header i.fa-twitter {
    background: rgba(29, 161, 242, 0.1) !important;
    color: #1da1f2 !important;
}

.field-header i.fa-instagram {
    background: rgba(225, 48, 108, 0.1) !important;
    color: #e1306c !important;
}

.field-header i.fa-youtube {
    background: rgba(255, 0, 0, 0.1) !important;
    color: #ff0000 !important;
}

.field-header i.fa-phone,
.field-header i.fa-mobile-alt,
.field-header i.fa-whatsapp {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #10b981 !important;
}

.field-header i.fa-envelope,
.field-header i.fa-envelope-open-text {
    background: rgba(6, 182, 212, 0.1) !important;
    color: #06b6d4 !important;
}

.premium-form-group:focus-within .field-header i {
    transform: scale(1.1) rotate(5deg) !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1) !important;
}

.field-header label {
    margin: 0 !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Global double-border fix moved to system-style.css for universal support */
.identity-summary-card {
    background: #ffffff !important;
    border-radius: 2px !important;
    padding: 30px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #f1f5f9 !important;
}

.summary-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 25px !important;
    padding-bottom: 15px !important;
    border-bottom: 2px dashed #f1f5f9 !important;
}

.summary-header i {
    font-size: 1.5rem !important;
    color: var(--premium-primary) !important;
}

.summary-title {
    font-weight: 800 !important;
    font-size: 1.2rem !important;
    color: #1e293b !important;
}

/* Save Button Enhancement */
.btn-premium-save {
    background: linear-gradient(135deg, var(--premium-primary) 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 35px !important;
    border-radius: 2px !important;
    font-weight: 800 !important;
    box-shadow: 0 10px 20px var(--premium-primary-soft) !important;
}

.btn-premium-save:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 15px 30px var(--premium-primary-soft) !important;
}

/* ==========================================================================
   MODULE: DASHBOARD HOME (��� �����`���`��)
   ========================================================================== */
.welcome-section {
    background: url('https://www.transparenttextures.com/patterns/cubes.png'), linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 6px;
    padding: 2.5rem 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 15px 30px rgba(67, 97, 238, 0.2);
    color: white;
    position: relative;
    overflow: hidden;
}

.welcome-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
}

[dir="rtl"] .welcome-section::after,
html[dir="rtl"] .welcome-section::after,
[data-textdirection="rtl"] .welcome-section::after {
    right: auto;
    left: -10%;
}

.welcome-section .welcome-title {
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.welcome-section .welcome-text {
    color: rgba(255, 255, 255, 0.8) !important;
    max-width: 500px;
    line-height: 1.7 !important;
    margin-bottom: 40px !important;
}

.welcome-date {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Premium Tabs (Segmented Control Style) */
.premium-tabs-wrapper {
    background: #f8f9fa;
    padding: 6px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 2rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.custom-pills .nav-link {
    border-radius: 6px;
    padding: 12px 30px;
    font-weight: 600;
    color: #6c757d;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin: 0 4px;
}

.custom-pills .nav-link:hover {
    color: var(--primary-color);
}

.custom-pills .nav-link.active {
    background: #ffffff;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Premium Breadcrumb */
.premium-breadcrumb {
    background: transparent !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
}

.premium-breadcrumb .breadcrumb-item a {
    color: var(--premium-primary) !important;
    font-weight: 600 !important;
}

.premium-breadcrumb .breadcrumb-item.active {
    color: #64748b !important;
}

/* Minimalist Premium Stat Cards (Updated to match requested screenshot) */
.premium-stat-card {
    background: #ffffff !important;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%2394a3b8' fill-opacity='0.07' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='1'/%3E%3C/g%3E%3C/svg%3E") !important;
    border-radius: 2px !important;
    padding: 1.5rem !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 100px !important;
}

.premium-stat-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(67, 97, 238, 0.3) !important;
}

.premium-stat-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
}

.stat-content {
    display: flex !important;
    flex-direction: column !important;
    z-index: 2 !important;
}

.stat-value {
    font-size: 2.1rem !important;
    /* Increased by 3px */
    font-weight: 800 !important;
    color: #1e293b !important;
    line-height: 1.2 !important;
    margin-bottom: 0.1rem !important;
}

.stat-title {
    font-size: 1.05rem !important;
    /* Increased by 3px */
    font-weight: 600 !important;
    color: #64748b !important;
    margin: 0 !important;
}

/* Icon Blob Container */
.stat-icon-wrapper {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    /* Made Circular */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 2 !important;
}

.stat-icon-wrapper i {
    font-size: 1.6rem !important;
    /* Increased by 3px */
}

/* Contextual Colors for Blobs and Icons */
.card-contracts .stat-icon-wrapper {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #3b82f6 !important;
}

.card-active .stat-icon-wrapper {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #10b981 !important;
}

.card-revenue .stat-icon-wrapper {
    background: rgba(6, 182, 212, 0.1) !important;
    color: #06b6d4 !important;
}

.card-expiring .stat-icon-wrapper {
    background: rgba(245, 158, 11, 0.1) !important;
    color: #f59e0b !important;
}

/* Remove old blob/floating icon styles */
.stat-icon-blob,
.stat-icon-floating {
    display: none !important;
}

.premium-stat-card::before {
    display: none !important;
}

/* Chart Card */
.premium-chart-card {
    border-radius: 6px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    border: none;
    padding: 1rem;
    background: #fff;
}

.premium-chart-card .card-header {
    background: transparent;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    padding-bottom: 1.5rem;
}

.premium-chart-card .card-title {
    font-weight: 700;
    color: #2d3436;
}

/* Simplified Animations */
.animate-up {
    opacity: 1;
    transform: none;
    transition: none !important;
    animation: none !important;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Company Identity Banner */
.company-identity-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    border-radius: 2px !important;
    border: none;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.25);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    color: #ffffff;
}

.company-identity-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0) 70%);
    border-radius: 50%;
}

.company-identity-banner:hover {
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35);
    transform: translateY(-5px);
}

.company-logo-frame {
    width: 70px;
    height: 70px;
    border-radius: 2px !important;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.company-logo-frame img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.company-initials {
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.welcome-text-premium {
    font-weight: 800;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.welcome-text-premium span.text-primary {
    color: #38bdf8 !important;
    /* Brighter blue for contrast */
}

.company-name-subtitle {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7) !important;
    letter-spacing: 0.5px;
}

.welcome-date-section .welcome-date {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.welcome-date-section .welcome-date i {
    color: #38bdf8 !important;
}

/* ==========================================================================
   MODULE: LOGIN & LOCK SCREEN (Scoped to Auth Container)
   ========================================================================== */
/* ==========================================================================
   MODULE: LOGIN & LOCK SCREEN (Premium Architecture)
   ========================================================================== */
/* 1. Global Reset for Auth Pages */
.login-main-wrapper~.header-navbar,
.login-main-wrapper~.footer,
.login-main-wrapper~.main-menu {
    display: none !important;
}

/* 2. Main Layout Container */
.login-main-wrapper {
    display: flex;
    width: 100%;
    height: 100vh;
    background: #0f172a;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    overflow: hidden;
}

[dir="rtl"] .login-main-wrapper {
    direction: rtl;
}

/* 3. Visual Content (Welcome Side) */
.welcome-side {
    background: url('../images/carbon-fibre.png'), url('../images/mjk/background.jpg') no-repeat center center;
    background-size: auto, cover;
    flex: 1;
    display: none;
    flex-direction: column;
    justify-content: flex-end;
    padding: 60px 8%;
    color: white;
    position: relative;
    z-index: 2;
}

.welcome-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #0f172a 0%, rgba(15, 23, 42, 0.4) 60%, transparent 100%);
    z-index: 1;
}

.welcome-side::after {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0) 70%);
    border-radius: 50%;
    z-index: 1;
}

[dir="rtl"] .welcome-side::after {
    right: auto;
    left: -10%;
}

.welcome-content-premium {
    position: relative;
    z-index: 3;
    animation: fadeInUp 1s ease-out;
}

.badge-welcome {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(56, 189, 248, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
}

.login-main-wrapper .welcome-title {
    font-weight: 900 !important;
    margin-bottom: 20px !important;
    line-height: 1.1 !important;
    letter-spacing: -2px !important;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.login-main-wrapper .welcome-text {
    color: rgba(255, 255, 255, 0.8) !important;
    max-width: 500px;
    line-height: 1.7 !important;
    margin-bottom: 40px !important;
}

@media (min-width: 992px) {
    .welcome-side {
        display: flex;
    }
}

/* 4. Form Side */
.form-side {
    position: relative;
    background: white;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    z-index: 5;
}

@media (min-width: 992px) {
    .form-side {
        width: 480px;
        box-shadow: -10px 0 50px rgba(0, 0, 0, 0.2);
    }
}

.login-form-box {
    width: 100%;
    max-width: 360px;
}

.brand-logo-modern {
    margin-bottom: 40px;
    text-align: center;
}

.brand-logo-modern img {
    max-height: 140px;
    width: auto;
}

.form-header-modern {
    text-align: center;
    margin-bottom: 30px;
}

.form-header-modern h2 {
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 8px;
}

.form-group-modern {
    margin-bottom: 32px;
    width: 100%;
}

.form-label-modern {
    display: block;
    font-weight: 700;
    color: #1e3a8a;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.login-options-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    margin-bottom: 30px;
}

.remember-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    color: #64748b;
}

.remember-modern input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #38bdf8;
    cursor: pointer;
}

.forgot-modern {
    font-weight: 700;
    color: #38bdf8;
    text-decoration: none;
    transition: all 0.3s;
}

.forgot-modern:hover {
    color: #1e3a8a;
    text-decoration: underline;
}

.form-control-modern {
    width: 100%;
    background: #f8fafc;
    border: 2px solid #f1f5f9;
    border-radius: 6px;
    padding: 16px 20px;
    padding-inline-start: 48px;
    color: #1e293b;
    transition: all 0.3s;
}

.form-control-modern:focus {
    background: white;
    border-color: #38bdf8;
    box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.1);
    outline: none;
}

.input-container-modern {
    position: relative;
}

.input-icon-modern {
    position: absolute;
    inset-inline-start: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #38bdf8;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 10;
}

.btn-login-modern {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #1e3a8a 100%);
    background-size: 200% auto;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.4);
}

.btn-login-modern:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.5);
}

.lang-toggle-container {
    position: absolute;
    top: 30px;
    inset-inline-end: 30px;
}

.btn-lang-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 50px;
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 800;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

@media (max-width: 991px) {
    .login-main-wrapper {
        background: #0f172a;
    }

    .form-side {
        background: transparent;
    }

    .login-form-box {
        background: rgba(255, 255, 255, 0.95);
        padding: 50px 35px;
        border-radius: 35px;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
        max-width: 440px;
        width: 92%;
    }
}

/* 5. Lock Screen Specific Styles */
.lock-avatar-premium {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    padding: 5px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 0 auto 1.5rem;
    position: relative;
    border: 2px solid #f1f5f9;
}

.lock-avatar-premium img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.lock-avatar-initials {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
}

.lock-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #f0fdf4;
    color: #166534;
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.different-account {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 2rem;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.different-account:hover {
    color: #38bdf8;
}

/* 6. Utility Animations & Components */
.stat-item {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #38bdf8;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   MODULE: PERMISSIONS & SWITCHES
   ========================================================================== */
/* Global Utilities */
.radius-20 {
    border-radius: 6px !important;
}

.radius-15 {
    border-radius: 6px !important;
}

.shadow-pulse {
    animation: none !important;
    box-shadow: none !important;
}

/* Dashboard Tabs - Unified & Sharpened */
.premium-segmented-control {
    background: #f8fafc !important;
    padding: 6px !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    gap: 5px !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02) !important;
    border: 1px solid #e2e8f0 !important;
}

.premium-tab-btn {
    border: none !important;
    color: #64748b !important;
    font-weight: 600 !important;
    padding: 9px 20px !important;
    border-radius: 6px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: transparent !important;
    outline: none !important;
    cursor: pointer !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
}

.premium-tab-btn:hover:not(.active) {
    color: #3b82f6 !important;
    background: rgba(59, 130, 246, 0.08) !important;
}

.premium-tab-btn.active {
    color: #ffffff !important;
    background: #3b82f6 !important;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3) !important;
    font-weight: 700 !important;
}

html[dir="rtl"] .premium-tab-btn,
[data-textdirection="rtl"] .premium-tab-btn {
    flex-direction: row-reverse !important;
}

/* ==========================================================================
   Premium Page Components (Customer & Property Show Pages)
   ========================================================================== */
.header-customer-dark,
.header-property-dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15) !important;
    position: relative;
    overflow: hidden;
    padding: 25px 30px !important;
    border-radius: 2px !important;
}

.border-left-light-opacity {
    border-left: 1px solid rgba(255, 255, 255, 0.15) !important;
}

[data-textdirection="rtl"] .border-left-light-opacity {
    border-left: none !important;
    border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding-left: 0 !important;
    padding-right: 1rem !important;
}

/* Utilities */
.radius-10 {
    border-radius: 2px !important;
}

.radius-15 {
    border-radius: 2px !important;
}

.bg-light-primary-opacity {
    background-color: rgba(90, 141, 238, 0.1) !important;
}

.bg-light-success-opacity {
    background-color: rgba(40, 208, 148, 0.1) !important;
}

.bg-light-danger-opacity {
    background-color: rgba(255, 73, 97, 0.1) !important;
}

.bg-light-warning-opacity {
    background-color: rgba(255, 159, 67, 0.1) !important;
}

.bg-light-info-opacity {
    background-color: rgba(0, 207, 232, 0.1) !important;
}

.bg-light-dark-opacity {
    background-color: rgba(77, 82, 89, 0.1) !important;
}

.bg-light-blue-info {
    background-color: #f8fafc !important;
}

/* Data Grid System */
.data-grid-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 2px;
    border: 1px solid #f1f5f9;
    background: #fff;
    height: 100%;
    transition: all 0.2s ease;
}

.data-grid-item:hover {
    border-color: #5A8DEE !important;
    box-shadow: 0 5px 15px rgba(90, 141, 238, 0.15) !important;
    transform: translateY(-2px);
    z-index: 2;
    position: relative;
}

.data-grid-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    margin-right: 15px;
    flex-shrink: 0;
}

[data-textdirection="rtl"] .data-grid-icon {
    margin-right: 0;
    margin-left: 15px;
}

.data-grid-label {
    display: block;
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 2px;
    font-weight: 500;
}

.data-grid-value {
    display: block;
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

/* Borders & Dividers */
.border-left-primary-3 {
    border-left: 3px solid #5A8DEE !important;
}

.border-left-warning-3 {
    border-left: 3px solid #ff9f43 !important;
}

.border-dashed-premium {
    border: 1px dashed #e2e8f0 !important;
}

[data-textdirection="rtl"] .border-left-primary-3 {
    border-left: none !important;
    border-right: 3px solid #5A8DEE !important;
}

[data-textdirection="rtl"] .border-left-warning-3 {
    border-left: none !important;
    border-right: 3px solid #ff9f43 !important;
}

/* Sidebar Utilities */
.border-dashed-premium {
    border: 1px dashed rgba(90, 141, 238, 0.3) !important;
}

.border-right-light {
    border-right: 1px solid rgba(0, 0, 0, 0.05) !important;
}

[data-textdirection="rtl"] .border-right-light {
    border-right: none !important;
    border-left: 1px solid rgba(0, 0, 0, 0.05) !important;
}

[data-textdirection="rtl"] .text-right-rtl {
    text-align: right !important;
}

/* --- Premium Minimalist Nav Tabs --- */
.premium-nav-tabs {
    border-bottom: 2px solid #f1f3f4 !important;
    margin-bottom: 8px !important;
    padding: 0 1rem !important;
    background: #fff !important;
    margin-top: 0.5rem !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    /* Centered tabs navigation */
}

.premium-nav-tabs .nav-item {
    margin-bottom: 0 !important;
}

.premium-nav-tabs .nav-link {
    border: none !important;
    background: transparent !important;
    color: #64748b !important;
    font-weight: 600 !important;
    padding: 12px 20px !important;
    border-bottom: 2px solid transparent !important;
    transition: all 0.3s ease !important;
    border-radius: 0 !important;
    font-size: 1rem !important;
    /* Enlarge font size in main tabs to be larger than fields */
    box-shadow: none !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    flex-direction: row !important;
    /* Fix RTL icon issue globally for premium tabs */
    cursor: pointer !important;
}

.premium-nav-tabs .nav-link::after {
    display: none !important;
}

.premium-nav-tabs .nav-link i {
    font-size: 1.1rem;
    vertical-align: middle;
    margin-inline-end: 5px;
}

.premium-nav-tabs .nav-link:focus,
.premium-nav-tabs .nav-link:active {
    outline: none !important;
    box-shadow: none !important;
}

.premium-nav-tabs .nav-link:hover {
    color: #7367f0 !important;
    background-color: #f8f9fa !important;
    border-radius: 6px 6px 0 0 !important;
    cursor: pointer !important;
}

.premium-nav-tabs .nav-link.active {
    color: #7367f0 !important;
    border-bottom: 2px solid #7367f0 !important;
    background: transparent !important;
    font-weight: 700 !important;
}

/* --- PREMIUM QUICK SEARCH AREA --- */
.premium-quick-search-area {
    background-color: #f4f9ff !important;
    border-color: #d1e9ff !important;
}

/* ==========================================================================
   PREMIUM FINANCIAL SUMMARY REDESIGN
   ========================================================================== */
.payment-summary-card-premium {
    background: #ffffff;
    border-radius: 2px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.payment-summary-card-premium::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--premium-primary);
}

[data-textdirection="rtl"] .payment-summary-card-premium::before {
    left: auto;
    right: 0;
}

.summary-header-premium {
    padding: 20px;
    background: rgba(248, 250, 252, 0.5);
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Legendary Black & Yellow Tips Card */
.legendary-tips-card {
    background: linear-gradient(145deg, #1a1c23, #0f1014);
    border-radius: 12px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.legendary-tips-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.5);
}

.legendary-tips-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.legendary-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(245, 158, 11, 0.1);
}

.legendary-header i {
    color: #f59e0b;
    font-size: 1.2rem;
    margin-right: 10px;
    filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.5));
}

[data-textdirection="rtl"] .legendary-header i {
    margin-right: 0;
    margin-left: 10px;
}

.legendary-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.legendary-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legendary-list li {
    display: flex;
    align-items: flex-start;
    color: #cbd5e1;
    font-size: 0.85rem;
    margin-bottom: 12px;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.legendary-list li:hover {
    color: #f59e0b;
}

.legendary-list li i {
    color: #f59e0b;
    font-size: 0.75rem;
    margin-top: 4px;
    margin-right: 10px;
    flex-shrink: 0;
}

[data-textdirection="rtl"] .legendary-list li i {
    margin-right: 0;
    margin-left: 6px;
}

/* Premium Company Badge Style */
.premium-company-badge {
    display: inline-flex;
    align-items: center;
    background: #0f172a;
    /* Dark Navy/Black */
    color: #f59e0b;
    /* Yellow/Gold */
    padding: 6px 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.premium-company-badge i {
    margin-right: 8px;
    font-size: 0.9rem;
    color: #f59e0b;
}

[data-textdirection="rtl"] .premium-company-badge i {
    margin-right: 0;
    margin-left: 8px;
}

.premium-company-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
}

/* Premium Error Alerts */
.premium-error-alert {
    border-radius: 12px;
    border: none;
    border-right: 5px solid #ef4444;
    background: #fff;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.08);
}

[data-textdirection="ltr"] .premium-error-alert {
    border-right: none;
    border-left: 5px solid #ef4444;
}

.premium-warning-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.premium-warning-pill i {
    margin-right: 6px;
}

[data-textdirection="rtl"] .premium-warning-pill i {
    margin-right: 0;
    margin-left: 6px;
}

.summary-header-premium i {
    width: 36px;
    height: 36px;
    background: var(--premium-primary-soft);
    color: var(--premium-primary);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.summary-title-premium {
    font-weight: 800;
    font-size: 1rem;
    color: #1e293b;
}

.summary-body-premium {
    padding: 20px;
}

.summary-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.summary-stat-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}

.summary-stat-value {
    font-size: 1rem;
    font-weight: 800;
    color: #1e293b;
}

.financial-indicator-section {
    margin: 25px 0;
    padding: 15px;
    background: #f8fafc;
    border-radius: 2px;
    border: 1px dashed #e2e8f0;
}

.indicator-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: block;
    text-align: center;
}

.indicator-percentage {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--premium-success);
    display: block;
    text-align: center;
    margin-bottom: 5px;
}

/* Portfolio Styles */
.portfolio-section-premium {
    margin-top: 25px;
}

.portfolio-title-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.portfolio-title-text {
    font-weight: 800;
    font-size: 0.9rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cheque-portfolio-item {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 2px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.cheque-portfolio-item:hover {
    border-color: var(--premium-primary-soft);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateX(4px);
}

[data-textdirection="rtl"] .cheque-portfolio-item:hover {
    transform: translateX(-4px);
}

.cheque-portfolio-item.fully-used {
    background: #f8fafc;
    opacity: 0.8;
}

.cheque-item-left {
    display: flex;
    flex-direction: column;
}

.cheque-number-premium {
    font-weight: 800;
    font-size: 0.85rem;
    color: #1e293b;
}

.cheque-bank-premium {
    font-size: 0.7rem;
    color: #94a3b8;
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cheque-item-right {
    text-align: right;
}

.cheque-amount-total {
    font-weight: 700;
    font-size: 0.85rem;
    color: #64748b;
}

.cheque-amount-available {
    font-weight: 800;
    font-size: 0.8rem;
    color: var(--premium-success);
}

.summary-footer-premium {
    padding: 15px 20px;
    background: #fdfdfd;
    border-top: 1px solid #f1f5f9;
}

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

.footer-balance-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
}

.footer-balance-value {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--premium-danger);
}

/* Sticky Sidebar Fix */
.sticky-sidebar-premium {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 100px !important;
    z-index: 99 !important;
    align-self: flex-start !important;
}

.content-body,
section#basic-form-layouts {
    overflow: visible !important;
}

/* Financial Progress Bar */
.financial-progress-premium {
    height: 8px;
    background: #eef2f7;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 15px;
    display: flex;
}

.financial-progress-bar-premium {
    height: 100%;
}

.financial-progress-bar-paid {
    background-color: var(--premium-success);
}

.financial-progress-bar-cheques {
    background-color: var(--premium-warning);
    opacity: 0.75;
}

/* Legend Styles */
.financial-legend-premium {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 0.7rem;
    font-weight: 700;
}

.legend-item-premium {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-dot-premium {
    font-size: 6px;
    vertical-align: middle;
}

/* Portfolio Scrollable */
.linked-cheques-scrollable-premium {
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
}

/* Projected Balance Card */
.projected-balance-box-premium {
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    background: rgba(16, 185, 129, 0.04);
    border: 1px dashed rgba(16, 185, 129, 0.3);
    border-radius: 2px;
}

.projected-label-premium {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 4px;
    font-weight: 700;
}

.projected-value-premium {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--premium-success);
}

.projected-value-premium.negative {
    color: var(--premium-danger);
}

/* Cheque Details Pill */
.cheque-details-pill-premium {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #f8fafc;
    border-radius: 2px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.pill-info-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-grow: 1;
}

.pill-stat {
    display: flex;
    flex-direction: column;
    padding-right: 20px;
    border-right: 1px solid #e2e8f0;
}

[data-textdirection="rtl"] .pill-stat {
    padding-right: 0;
    padding-left: 20px;
    border-right: 0;
    border-left: 1px solid #e2e8f0;
}

.pill-label {
    font-size: 0.65rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pill-value {
    font-size: 0.9rem;
    font-weight: 800;
}

.pill-action-btn {
    border-radius: 8px !important;
    font-weight: 800 !important;
    padding: 6px 15px !important;
    white-space: nowrap;
}

/* Fully Paid Card */
.fully-paid-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    border: 1px solid var(--premium-success-soft);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.05);
}

.fully-paid-icon-wrapper {
    width: 50px;
    height: 50px;
    background: var(--premium-success-soft);
    color: var(--premium-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
}

.fully-paid-title {
    font-weight: 800;
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 5px;
}

.fully-paid-subtitle {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0;
}

/* ==========================================================================
   SMART BREAKDOWN & DIGITAL CHEQUE WALLET & LIVE PREVIEW
   ========================================================================== */
/* Smart Balance Breakdown */
.smart-balance-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.smart-balance-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

.breakdown-item.paid-item {
    background: #ecfdf5;
    color: #059669;
}

.breakdown-item.covered-item {
    background: #fffbeb;
    color: #d97706;
}

.breakdown-item.uncovered-item {
    background: #f1f5f9;
    color: #64748b;
}

.breakdown-item.uncovered-item.has-debt {
    background: #fef2f2;
    color: #dc2626;
    border-right: 3px solid #dc2626;
}

/* Triple Segment Progress Bar */
.financial-progress-premium.triple-segment {
    height: 12px;
    background: #f1f5f9;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
}

.financial-progress-bar-current-pulse {
    background: linear-gradient(90deg, #10b981, #34d399);
    animation: pulse-width 2s infinite alternate;
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.6);
    position: relative;
    z-index: 10;
}

.financial-progress-bar-current-pulse.pulse-blue {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    animation: pulse-width-blue 2s infinite alternate;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
    position: relative;
    z-index: 10;
}

.financial-progress-bar-cheques-striped {
    background: repeating-linear-gradient(45deg,
            #f59e0b,
            #f59e0b 10px,
            #fbbf24 10px,
            #fbbf24 20px);
    opacity: 0.85;
}

@keyframes pulse-width {
    0% {
        filter: brightness(1);
    }

    100% {
        filter: brightness(1.2);
    }
}

@keyframes pulse-width-blue {
    0% {
        filter: brightness(1);
    }

    100% {
        filter: brightness(1.2);
    }
}

/* Smart Assistant Box */
.smart-assistant-box {
    display: flex;
    gap: 12px;
    background: #eff6ff;
    border-right: 4px solid #3b82f6;
    border-radius: 8px;
    padding: 12px;
    font-size: 0.85rem;
    color: #1e3a8a;
    align-items: flex-start;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.smart-assistant-box.alert-state {
    background: #fef2f2;
    border-right: 4px solid #ef4444;
    color: #991b1b;
}

.assistant-icon {
    font-size: 1.2rem;
    margin-top: 2px;
}

/* Digital Cheque Wallet */
.digital-wallet-drawer {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 5px;
}

.cheque-card-premium {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    margin-top: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    position: relative;
    transition: all 0.3s ease;
}

.cheque-card-premium.selected-glow {
    border: 2px solid #10b981 !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.cheque-card-premium.fully-used-card {
    opacity: 0.65;
    background: #f8fafc;
}

.cheque-card-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cheque-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #cbd5e1;
    padding-bottom: 8px;
}

.bank-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #334155;
    font-size: 0.9rem;
}

.bank-icon {
    color: #94a3b8;
}

.cheque-number {
    font-family: monospace;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #475569;
}

.cheque-amount-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.cheque-amount-display.available {
    font-size: 0.85rem;
    margin-top: 4px;
}

.cheque-mini-progress {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    width: 100%;
}

.cheque-mini-progress .mini-progress-bar {
    height: 100%;
    background: #10b981;
    transition: width 0.3s ease;
}

/* Live Digital Cheque Preview */
.live-cheque-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.live-cheque-header {
    background: #f8fafc;
    padding: 10px 15px;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.live-cheque-canvas {
    padding: 15px;
    background: #f1f5f9;
    display: flex;
    justify-content: center;
}

.cheque-paper {
    width: 100%;
    background: repeating-linear-gradient(0deg,
            #fff,
            #fff 19px,
            #f1f5f9 20px);
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 15px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    border-left: 10px dashed #cbd5e1;
    color: #334155;
}

.cheque-paper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(#94a3b8 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
    pointer-events: none;
}

.cheque-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.85rem;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 5px;
}

.cheque-bank-name {
    font-weight: bold;
    color: #1e3a8a;
    font-size: 1rem;
}

.cheque-date .val {
    font-family: monospace;
    border-bottom: 1px dotted #94a3b8;
}

.cheque-pay-to {
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.cheque-pay-to .val {
    font-weight: bold;
    font-style: italic;
    border-bottom: 1px dotted #94a3b8;
    display: inline-block;
    min-width: 150px;
}

.cheque-amount-row {
    font-size: 0.85rem;
    background: #f8fafc;
    padding: 5px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 15px;
}

.cheque-amount-row .val {
    color: #059669;
}

.cheque-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 0.8rem;
}

.cheque-no .val {
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.cheque-signature {
    border-top: 1px solid #94a3b8;
    padding-top: 5px;
    width: 100px;
    text-align: center;
    color: #94a3b8;
    font-style: italic;
}

/* Maintenance Module Styles */
.maintenance-item-row {
    background-color: #f9fbfd;
    border-radius: 8px;
    padding: 15px 10px;
    margin-bottom: 15px;
    border: 1px solid #e1e5eb;
    transition: all 0.3s ease;
}

.maintenance-item-row:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: #d1d5db;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

/* Contract Clause Builder */
.cursor-move {
    cursor: move;
}

.clause-item {
    transition: all 0.2s;
}

.clause-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Premium Clause Library Styles */
.premium-clause-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 15px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    padding: 16px;
}

.premium-clause-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(135deg, #7367f0 0%, #9e95f5 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.premium-clause-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08), 0 6px 6px rgba(0, 0, 0, 0.05);
    border-color: rgba(115, 103, 240, 0.2);
}

.premium-clause-card:hover::before {
    opacity: 1;
}

.premium-clause-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
    padding-bottom: 10px;
}

.premium-clause-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #4b4b4b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.premium-clause-icon {
    color: #7367f0;
    font-size: 1.1rem;
}

html[dir="rtl"] .premium-clause-title {
    margin-right: 0;
}

html[dir="rtl"] .premium-clause-icon {
    margin-left: 8px;
}

html[dir="ltr"] .premium-clause-icon {
    margin-right: 8px;
}

.premium-clause-btn {
    background: rgba(40, 199, 111, 0.1);
    color: #28c76f;
    border: 1px solid rgba(40, 199, 111, 0.2);
    border-radius: 8px;
    padding: 6px 14px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    outline: none;
}

.premium-clause-btn:hover {
    background: #28c76f;
    color: #ffffff;
    border-color: #28c76f;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(40, 199, 111, 0.3);
}

.premium-clause-content {
    font-size: 0.95rem;
    color: #6e6b7b;
    line-height: 1.6;
    text-align: right;
    width: 100%;
    direction: rtl;
    margin: 0;
}

.clause-library-container {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 5px;
    padding-left: 5px;
    scrollbar-width: thin;
    scrollbar-color: #7367f0 rgba(0, 0, 0, 0.05);
}

.clause-library-container::-webkit-scrollbar {
    width: 6px;
}

.clause-library-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 10px;
}

.clause-library-container::-webkit-scrollbar-thumb {
    background: #d8d6f9;
    border-radius: 10px;
}

.clause-library-container::-webkit-scrollbar-thumb:hover {
    background: #7367f0;
}

/* Modern Smart Tags Tabs Styling (iOS-Style Segmented Control Pills) */
.smart-tags-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 10px !important;
}

.smart-tags-tabs {
    border: none !important;
    background: #f1f5f9 !important;
    /* light slate background */
    padding: 4px !important;
    border-radius: 30px !important;
    /* pill container */
    display: inline-flex !important;
    justify-content: center !important;
    margin: 12px auto !important;
    /* centered horizontally */
    align-items: center !important;
    width: auto !important;
    /* only occupies as much space as the tabs need */
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06) !important;
}

.smart-tags-tabs .nav-item {
    margin: 0 !important;
}

.smart-tags-tabs .nav-link {
    border: none !important;
    background: transparent !important;
    color: #475569 !important;
    font-weight: 700 !important;
    padding: 8px 20px !important;
    border-radius: 30px !important;
    font-size: 0.95rem !important;
    transition: all 0.25s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
}

.smart-tags-tabs .nav-link:focus,
.smart-tags-tabs .nav-link:active {
    outline: none !important;
    box-shadow: none !important;
}

.smart-tags-tabs .nav-link:hover {
    color: #7367f0 !important;
    background-color: transparent !important;
}

.smart-tags-tabs .nav-link.active {
    background: #ffffff !important;
    /* white pill for active tab */
    color: #7367f0 !important;
    box-shadow: 0 4px 10px rgba(115, 103, 240, 0.15) !important;
}

.smart-tags-tabs .nav-link i {
    margin-inline-end: 5px;
}

/* Tag Cards Styling */
.smart-tag-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    height: 100%;
}

.smart-tag-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.smart-tag-card.copied-success {
    border-color: #28c76f !important;
    background-color: rgba(40, 199, 111, 0.05) !important;
    transform: scale(0.98);
}

.tag-label {
    font-size: 0.98rem;
    font-weight: 600;
}

.tag-code {
    font-size: 0.95rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.bg-light-primary {
    background-color: rgba(115, 103, 240, 0.1) !important;
}

.text-primary {
    color: #7367f0 !important;
}

.bg-light-success {
    background-color: rgba(40, 199, 111, 0.1) !important;
}

.text-success {
    color: #28c76f !important;
}

.bg-light-warning {
    background-color: rgba(255, 159, 67, 0.1) !important;
}

.text-warning {
    color: #ff9f43 !important;
}

.bg-light-danger {
    background-color: rgba(234, 84, 85, 0.1) !important;
}

.text-danger {
    color: #ea5455 !important;
}

/* Custom Smart Tags Layout Overrides (Dashed Pill Alert) */
.smart-tags-hint-bar {
    background: linear-gradient(135deg, rgba(115, 103, 240, 0.06) 0%, rgba(115, 103, 240, 0.02) 100%) !important;
    border: 1px dashed rgba(115, 103, 240, 0.25) !important;
    border-radius: 12px !important;
    padding: 12px 20px !important;
    margin: 16px 16px 8px 16px !important;
    /* Margin around it to float inside the card */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.smart-tags-hint-bar p {
    color: #7367f0 !important;
    font-size: 0.98rem !important;
    font-weight: 700 !important;
    margin-bottom: 0 !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.smart-tags-hint-bar p i {
    color: #7367f0 !important;
    font-size: 1.15rem !important;
    margin-inline-end: 0 !important;
    animation: pulse-info 2s infinite !important;
}

@keyframes pulse-info {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.smart-tags-collapse-body {
    background-color: #fff !important;
    border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
}

.smart-tags-content {
    padding: 12px 16px 8px 16px !important;
}

/* Tab Error Indicator */
.tab-error-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background-color: #ff4d4d;
    border-radius: 50%;
    box-shadow: 0 0 8px #ff4d4d;
    animation: pulse-red 1.5s infinite;
    z-index: 10;
}

.premium-tab-btn {
    position: relative !important;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(255, 77, 77, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0);
    }
}

/* ==========================================================================
   CONTRACT DURATION & DATES STYLING
   ========================================================================== */
.contract-duration-wrapper {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.duration-label-badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(59, 130, 246, 0.08);
    color: #1e293b;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid rgba(59, 130, 246, 0.15);
    white-space: nowrap;
}

.duration-label-badge i {
    font-size: 0.95rem;
}

.duration-label-badge span {
    white-space: nowrap;
}

.contract-duration-wrapper .date-range-badge {
    display: inline-flex;
    align-items: center;
    background-color: #f8fafc;
    border-radius: 20px;
    padding: 4px 10px;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
}

.contract-duration-wrapper .date-range-badge .date-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.5px;
}

.contract-duration-wrapper .date-range-badge .date-arrow {
    margin: 0 8px;
    font-size: 0.8rem;
    opacity: 0.7;
}

[data-textdirection="rtl"] .duration-label-badge i,
[dir="rtl"] .duration-label-badge i {
    margin-left: 6px;
    margin-right: 0 !important;
}

[data-textdirection="ltr"] .duration-label-badge i,
[dir="ltr"] .duration-label-badge i {
    margin-right: 6px;
    margin-left: 0 !important;
}

/* ========================================================================
   PLATINUM DASHBOARD - UNIFIED PAGES STYLING (pages.css)
   Consolidates: Properties, Contracts, Cheques, Payments, Settings, etc.
   Supports: LTR & RTL in a single file.
   ======================================================================== */
:root {
    --premium-primary: #3b82f6;
    --premium-primary-soft: rgba(59, 130, 246, 0.1);
    --premium-success: #10b981;
    --premium-success-soft: rgba(16, 185, 129, 0.1);
    --premium-warning: #f59e0b;
    --premium-warning-soft: rgba(245, 158, 11, 0.1);
    --premium-danger: #ef4444;
    --premium-danger-soft: rgba(239, 68, 68, 0.1);
    --premium-info: #06b6d4;
    --premium-info-soft: rgba(6, 182, 212, 0.1);
    --premium-slate: #1e293b;
    --premium-slate-light: #64748b;
    /* Legacy Sync */
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
}

/* ==========================================================================
   GLOBAL PREMIUM COMPONENTS (Unified)
   ========================================================================== */
/* Removed redundant .premium-card - using system-style.css instead */
.premium-mandatory-header {
    background: #ffffff !important;
    color: #1e293b !important;
    font-weight: 700 !important;
    padding: 10px 20px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
}

[dir="rtl"] .premium-mandatory-header i,
html[dir="rtl"] .premium-mandatory-header i,
[data-textdirection="rtl"] .premium-mandatory-header i {
    margin-left: 10px !important;
    margin-right: 0 !important;
}

[dir="ltr"] .premium-mandatory-header i,
html[dir="ltr"] .premium-mandatory-header i {
    margin-right: 10px !important;
    margin-left: 0 !important;
}

/* Global Premium Buttons (Unified to Minimalist White Style) */
.btn-premium-save,
button.btn-premium-save,
.btn-premium-add,
.btn-premium-edit,
.btn-premium-back,
a.btn-premium-back {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 0 24px !important;
    height: 42px !important;
    margin: 0 4px !important;
    border-radius: 4px !important;
    /* Unified rounded style matching cancel button */
    font-weight: 700 !important;
    font-size: 1rem !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    cursor: pointer !important;
    text-decoration: none !important;
    background: #ffffff !important;
    color: #475569 !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
}

.btn-premium-save:hover,
button.btn-premium-save:hover,
.btn-premium-add:hover,
.btn-premium-edit:hover,
.btn-premium-back:hover,
.btn-premium-secondary:hover,
.btn-premium-cancel:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
    background: #ffffff !important;
    color: #1e293b !important;
    border-color: #5A8DEE !important;
}

.btn-premium-save i,
.btn-premium-add i,
.btn-premium-edit i,
.btn-premium-back i {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.btn-premium-save:hover i,
.btn-premium-add:hover i,
.btn-premium-edit:hover i,
.btn-premium-back:hover i {
    transform: translateX(4px);
}

[data-textdirection="rtl"] .btn-premium-save:hover i,
[data-textdirection="rtl"] .btn-premium-add:hover i,
[data-textdirection="rtl"] .btn-premium-edit:hover i,
[data-textdirection="rtl"] .btn-premium-back:hover i {
    transform: translateX(-4px);
}

.btn-premium-save.shadow-pulse,
.btn-premium-add.shadow-pulse {
    animation: pulse-indigo 2.5s infinite;
}

/* ==========================================================================
   MODULE: PROPERTIES (��� ��� ��������)
   ========================================================================== */
.header-bg-shape {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

[dir="ltr"] .header-bg-shape {
    right: auto;
    left: -50px;
}

/* Table Widths */
.col-owner-width {
    width: 60% !important;
}

.col-percentage-width {
    width: 15% !important;
}

.col-primary-width {
    width: 12% !important;
}

.col-actions-width {
    width: 13% !important;
}

/* Standardized Table Styling for Properties & Customers */
.premium-table thead th {
    background-color: #f8fafc !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    color: #475569 !important;
    padding: 15px 20px !important;
    vertical-align: middle !important;
    border-bottom: 2px solid #f1f5f9 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.premium-table tbody td {
    padding: 15px 20px !important;
    vertical-align: middle !important;
    color: #1e293b !important;
    font-weight: 500 !important;
}

.th-w-20 {
    width: 20% !important;
}

.th-w-25 {
    width: 25% !important;
}

.th-w-15 {
    width: 15% !important;
}

/* Heading Elements Icons Scaling */
.heading-elements ul li a i {
    font-size: 11px !important;
    color: #94a3b8 !important;
    transition: color 0.3s ease;
}

.heading-elements ul li a:hover i {
    color: #475569 !important;
}

.th-w-10 {
    width: 10% !important;
}

.th-w-actions {
    width: 30px !important;
}

.header-trash-icon {
    margin-inline-start: 4px !important;
    font-size: 1.1rem !important;
    color: #94a3b8 !important;
}

.btn-trash-cell {
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

/* ==========================================================================
   MODULE: CONTRACTS (��� ��� ����)
   ========================================================================== */
.contract-text-viewer {
    line-height: 1.7 !important;
    color: #334155 !important;
    background: #fff !important;
    border-radius: 12px !important;
    padding: 25px !important;
}

[dir="rtl"] .border-primary-left,
html[dir="rtl"] .border-primary-left,
[data-textdirection="rtl"] .border-primary-left {
    border-right: 4px solid #7367f0 !important;
    border-left: 0 !important;
}

[dir="ltr"] .border-primary-left,
html[dir="ltr"] .border-primary-left {
    border-left: 4px solid #7367f0 !important;
    border-right: 0 !important;
}

/* Premium Badge Hint (Insurance Locked) */
.premium-badge-hint {
    background-color: rgba(239, 68, 68, 0.08) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    padding: 6px 14px !important;
    border-radius: 50px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.05) !important;
    white-space: nowrap !important;
}

.premium-badge-hint i {
    font-size: 13px !important;
    animation: premium-pulse-lock 2s infinite !important;
}

@keyframes premium-pulse-lock {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

[data-textdirection="rtl"] .premium-badge-hint {
    letter-spacing: 0 !important;
}

/* ==========================================================================
   MODULE: CHEQUES (��� ���`� ����)
   ========================================================================== */
.cheque-summary-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    border-left: 5px solid #ef4444;
    padding: 24px;
}

[dir="rtl"] .cheque-summary-card {
    border-left: 1px solid #f1f5f9;
    border-right: 5px solid #ef4444;
}

/* ==========================================================================
   MODULE: PAYMENTS (��� ����������)
   ========================================================================== */
.payment-summary-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    border-left: 5px solid #10b981;
    padding: 24px;
}

[dir="rtl"] .payment-summary-card,
html[dir="rtl"] .payment-summary-card,
[data-textdirection="rtl"] .payment-summary-card {
    border-left: 1px solid #f1f5f9;
    border-right: 5px solid #10b981;
}

/* Property Mandatory Section (Matched to Contract Insurance Style) */
.property-mandatory-section {
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    margin: 30px 0 !important;
    background: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

.property-mandatory-header {
    background: #f8fafc !important;
    padding: 12px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.property-mandatory-header .title-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: #1e293b !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
}

.property-mandatory-header i {
    font-size: 1.15rem !important;
    color: #475569 !important;
}

.property-mandatory-body {
    padding: 25px 20px !important;
}

[data-textdirection="rtl"] .property-mandatory-header .title-wrapper {
    gap: 12px !important;
}

/* Sub-header inside mandatory body (e.g. Cheque Details) */
.mandatory-sub-header {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding-bottom: 8px !important;
    margin-bottom: 15px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.mandatory-sub-header i {
    font-size: 1.1rem !important;
    color: #3b82f6 !important;
    /* text-primary */
}

.mandatory-sub-header h6 {
    color: #3b82f6 !important;
    /* text-primary */
    margin: 0 !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
}

.mandatory-sub-header small {
    color: #64748b !important;
    /* text-muted */
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    margin-right: 5px !important;
}

[data-textdirection="rtl"] .mandatory-sub-header small {
    margin-right: 0 !important;
    margin-left: 5px !important;
}

/* ==========================================================================
   MODULE: SETTINGS (��� �������������� ��� �����& ��) - Scoped Styles Only
   ========================================================================== */
/* Use global .premium-card and .premium-mandatory-header from system-style.css */
.premium-card {
    margin-bottom: 17px !important;
}

.premium-mandatory-header {
    background: #f8fafc !important;
    padding: 12px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid #e2e8f0 !important;
    font-size: 1.58rem !important;
    font-weight: 800 !important;
    color: #1e293b !important;
}

.premium-mandatory-header .title-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: #1e293b !important;
    font-weight: 800 !important;
    font-size: 1.27rem !important;
}

.premium-mandatory-header i {
    font-size: 1.45rem !important;
    color: #475569 !important;
}

[data-textdirection="rtl"] .premium-mandatory-header .title-wrapper {
    gap: 12px !important;
}

.premium-form-group {
    margin-bottom: 27px !important;
    position: relative !important;
}

.premium-mandatory-body .row,
form.ajax-form .row {
    margin-bottom: 22px !important;
}

.error-text {
    position: relative !important;
    margin-top: 4px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    display: block !important;
    word-wrap: break-word !important;
    white-space: normal !important;
    animation: premiumFadeInUp 0.3s ease-out !important;
    z-index: 10 !important;
}

[dir="rtl"] .error-text,
html[dir="rtl"] .error-text,
[data-textdirection="rtl"] .error-text {
    text-align: right !important;
    padding-right: 2px !important;
    direction: rtl !important;
}

/* Static error text for titles or sections where absolute positioning is not suitable */
.premium-section-title .error-text {
    position: static !important;
    display: inline-block !important;
    width: auto !important;
    margin-right: 10px !important;
    margin-left: 10px !important;
    animation: none !important;
}

[dir="ltr"] .error-text,
html[dir="ltr"] .error-text {
    text-align: left !important;
    padding-left: 2px !important;
    direction: ltr !important;
}

/* Special styling for permissions error chip in section titles */
.premium-error-alert-chip {
    background-color: rgba(255, 73, 97, 0.1) !important;
    color: #ff4961 !important;
    border: 1px solid rgba(255, 73, 97, 0.3) !important;
    padding: 5px 15px !important;
    border-radius: 30px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    display: none;
    /* Hidden by default until text is filled */
    box-shadow: 0 4px 10px rgba(255, 73, 97, 0.15) !important;
    animation: premiumShake 0.5s ease-in-out !important;
}

.premium-error-alert-chip:not(:empty) {
    display: inline-block !important;
}

@keyframes premiumShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Global Hover Animation for Cancel/Close Icons */
.premium-modal-close:hover i,
.btn-premium-secondary:hover i {
    transform: rotate(90deg) !important;
    transition: transform 0.3s ease-in-out !important;
}

.premium-modal-close i,
.btn-premium-secondary i {
    transition: transform 0.3s ease-in-out !important;
}

/* Required Asterisk Styling */
label .text-danger,
.premium-label .text-danger {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin-left: 2px;
    margin-right: 2px;
}

@keyframes premiumFadeInUp {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.field-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
}

.field-header i {
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    font-size: 0.9rem !important;
    background: var(--premium-primary-soft) !important;
    color: var(--premium-primary) !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03) !important;
}

/* Contextual Icon Colors */
.field-header i.fa-font,
.field-header i.fa-language {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #3b82f6 !important;
}

.field-header i.fa-facebook-f {
    background: rgba(24, 119, 242, 0.1) !important;
    color: #1877f2 !important;
}

.field-header i.fa-twitter {
    background: rgba(29, 161, 242, 0.1) !important;
    color: #1da1f2 !important;
}

.field-header i.fa-instagram {
    background: rgba(225, 48, 108, 0.1) !important;
    color: #e1306c !important;
}

.field-header i.fa-youtube {
    background: rgba(255, 0, 0, 0.1) !important;
    color: #ff0000 !important;
}

.field-header i.fa-phone,
.field-header i.fa-mobile-alt,
.field-header i.fa-whatsapp {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #10b981 !important;
}

.field-header i.fa-envelope,
.field-header i.fa-envelope-open-text {
    background: rgba(6, 182, 212, 0.1) !important;
    color: #06b6d4 !important;
}

.premium-form-group:focus-within .field-header i {
    transform: scale(1.1) rotate(5deg) !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1) !important;
}

.field-header label {
    margin: 0 !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Global double-border fix moved to system-style.css for universal support */
.identity-summary-card {
    background: #ffffff !important;
    border-radius: 2px !important;
    padding: 30px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #f1f5f9 !important;
}

.summary-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 25px !important;
    padding-bottom: 15px !important;
    border-bottom: 2px dashed #f1f5f9 !important;
}

.summary-header i {
    font-size: 1.5rem !important;
    color: var(--premium-primary) !important;
}

.summary-title {
    font-weight: 800 !important;
    font-size: 1.2rem !important;
    color: #1e293b !important;
}

/* Save Button Enhancement */
.btn-premium-save {
    background: linear-gradient(135deg, var(--premium-primary) 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 35px !important;
    border-radius: 2px !important;
    font-weight: 800 !important;
    box-shadow: 0 10px 20px var(--premium-primary-soft) !important;
}

.btn-premium-save:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 15px 30px var(--premium-primary-soft) !important;
}

/* ==========================================================================
   MODULE: DASHBOARD HOME (��� �����`���`��)
   ========================================================================== */
.welcome-section {
    background: url('https://www.transparenttextures.com/patterns/cubes.png'), linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 6px;
    padding: 2.5rem 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 15px 30px rgba(67, 97, 238, 0.2);
    color: white;
    position: relative;
    overflow: hidden;
}

.welcome-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
}

[dir="rtl"] .welcome-section::after,
html[dir="rtl"] .welcome-section::after,
[data-textdirection="rtl"] .welcome-section::after {
    right: auto;
    left: -10%;
}

.welcome-section .welcome-title {
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.welcome-section .welcome-text {
    color: rgba(255, 255, 255, 0.8) !important;
    max-width: 500px;
    line-height: 1.7 !important;
    margin-bottom: 40px !important;
}

.welcome-date {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Premium Tabs (Segmented Control Style) */
.premium-tabs-wrapper {
    background: #f8f9fa;
    padding: 6px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 2rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.custom-pills .nav-link {
    border-radius: 6px;
    padding: 12px 30px;
    font-weight: 600;
    color: #6c757d;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin: 0 4px;
}

.custom-pills .nav-link:hover {
    color: var(--primary-color);
}

.custom-pills .nav-link.active {
    background: #ffffff;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Premium Breadcrumb */
.premium-breadcrumb {
    background: transparent !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
}

.premium-breadcrumb .breadcrumb-item a {
    color: var(--premium-primary) !important;
    font-weight: 600 !important;
}

.premium-breadcrumb .breadcrumb-item.active {
    color: #64748b !important;
}

/* Minimalist Premium Stat Cards (Updated to match requested screenshot) */
.premium-stat-card {
    background: #ffffff !important;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%2394a3b8' fill-opacity='0.07' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='1'/%3E%3C/g%3E%3C/svg%3E") !important;
    border-radius: 2px !important;
    padding: 1.5rem !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 100px !important;
}

.premium-stat-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(67, 97, 238, 0.3) !important;
}

.premium-stat-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
}

.stat-content {
    display: flex !important;
    flex-direction: column !important;
    z-index: 2 !important;
}

.stat-value {
    font-size: 2.1rem !important;
    /* Increased by 3px */
    font-weight: 800 !important;
    color: #1e293b !important;
    line-height: 1.2 !important;
    margin-bottom: 0.1rem !important;
}

.stat-title {
    font-size: 1.05rem !important;
    /* Increased by 3px */
    font-weight: 600 !important;
    color: #64748b !important;
    margin: 0 !important;
}

/* Icon Blob Container */
.stat-icon-wrapper {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    /* Made Circular */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 2 !important;
}

.stat-icon-wrapper i {
    font-size: 1.6rem !important;
    /* Increased by 3px */
}

/* Contextual Colors for Blobs and Icons */
.card-contracts .stat-icon-wrapper {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #3b82f6 !important;
}

.card-active .stat-icon-wrapper {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #10b981 !important;
}

.card-revenue .stat-icon-wrapper {
    background: rgba(6, 182, 212, 0.1) !important;
    color: #06b6d4 !important;
}

.card-expiring .stat-icon-wrapper {
    background: rgba(245, 158, 11, 0.1) !important;
    color: #f59e0b !important;
}

/* Remove old blob/floating icon styles */
.stat-icon-blob,
.stat-icon-floating {
    display: none !important;
}

.premium-stat-card::before {
    display: none !important;
}

/* Chart Card */
.premium-chart-card {
    border-radius: 6px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    border: none;
    padding: 1rem;
    background: #fff;
}

.premium-chart-card .card-header {
    background: transparent;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    padding-bottom: 1.5rem;
}

.premium-chart-card .card-title {
    font-weight: 700;
    color: #2d3436;
}

/* Simplified Animations */
.animate-up {
    opacity: 1;
    transform: none;
    transition: none !important;
    animation: none !important;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Company Identity Banner */
.company-identity-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    border-radius: 2px !important;
    border: none;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.25);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    color: #ffffff;
}

.company-identity-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0) 70%);
    border-radius: 50%;
}

.company-identity-banner:hover {
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35);
    transform: translateY(-5px);
}

.company-logo-frame {
    width: 70px;
    height: 70px;
    border-radius: 2px !important;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.company-logo-frame img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.company-initials {
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.welcome-text-premium {
    font-weight: 800;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.welcome-text-premium span.text-primary {
    color: #38bdf8 !important;
    /* Brighter blue for contrast */
}

.company-name-subtitle {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7) !important;
    letter-spacing: 0.5px;
}

.welcome-date-section .welcome-date {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.welcome-date-section .welcome-date i {
    color: #38bdf8 !important;
}

/* ==========================================================================
   MODULE: LOGIN & LOCK SCREEN (Scoped to Auth Container)
   ========================================================================== */
/* ==========================================================================
   MODULE: LOGIN & LOCK SCREEN (Premium Architecture)
   ========================================================================== */
/* 1. Global Reset for Auth Pages */
.login-main-wrapper~.header-navbar,
.login-main-wrapper~.footer,
.login-main-wrapper~.main-menu {
    display: none !important;
}

/* 2. Main Layout Container */
.login-main-wrapper {
    display: flex;
    width: 100%;
    height: 100vh;
    background: #0f172a;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    overflow: hidden;
}

[dir="rtl"] .login-main-wrapper {
    direction: rtl;
}

/* 3. Visual Content (Welcome Side) */
.welcome-side {
    background: url('../images/carbon-fibre.png'), url('../images/mjk/background.jpg') no-repeat center center;
    background-size: auto, cover;
    flex: 1;
    display: none;
    flex-direction: column;
    justify-content: flex-end;
    padding: 60px 8%;
    color: white;
    position: relative;
    z-index: 2;
}

.welcome-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #0f172a 0%, rgba(15, 23, 42, 0.4) 60%, transparent 100%);
    z-index: 1;
}

.welcome-side::after {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0) 70%);
    border-radius: 50%;
    z-index: 1;
}

[dir="rtl"] .welcome-side::after {
    right: auto;
    left: -10%;
}

.welcome-content-premium {
    position: relative;
    z-index: 3;
    animation: fadeInUp 1s ease-out;
}

.badge-welcome {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(56, 189, 248, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
}

.login-main-wrapper .welcome-title {
    font-weight: 900 !important;
    margin-bottom: 20px !important;
    line-height: 1.1 !important;
    letter-spacing: -2px !important;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.login-main-wrapper .welcome-text {
    color: rgba(255, 255, 255, 0.8) !important;
    max-width: 500px;
    line-height: 1.7 !important;
    margin-bottom: 40px !important;
}

@media (min-width: 992px) {
    .welcome-side {
        display: flex;
    }
}

/* 4. Form Side */
.form-side {
    position: relative;
    background: white;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    z-index: 5;
}

@media (min-width: 992px) {
    .form-side {
        width: 480px;
        box-shadow: -10px 0 50px rgba(0, 0, 0, 0.2);
    }
}

.login-form-box {
    width: 100%;
    max-width: 360px;
}

.brand-logo-modern {
    margin-bottom: 40px;
    text-align: center;
}

.brand-logo-modern img {
    max-height: 140px;
    width: auto;
}

.form-header-modern {
    text-align: center;
    margin-bottom: 30px;
}

.form-header-modern h2 {
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 8px;
}

.form-group-modern {
    margin-bottom: 32px;
    width: 100%;
}

.form-label-modern {
    display: block;
    font-weight: 700;
    color: #1e3a8a;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.login-options-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    margin-bottom: 30px;
}

.remember-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    color: #64748b;
}

.remember-modern input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #38bdf8;
    cursor: pointer;
}

.forgot-modern {
    font-weight: 700;
    color: #38bdf8;
    text-decoration: none;
    transition: all 0.3s;
}

.forgot-modern:hover {
    color: #1e3a8a;
    text-decoration: underline;
}

.form-control-modern {
    width: 100%;
    background: #f8fafc;
    border: 2px solid #f1f5f9;
    border-radius: 6px;
    padding: 16px 20px;
    padding-inline-start: 48px;
    color: #1e293b;
    transition: all 0.3s;
}

.form-control-modern:focus {
    background: white;
    border-color: #38bdf8;
    box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.1);
    outline: none;
}

.input-container-modern {
    position: relative;
}

.input-icon-modern {
    position: absolute;
    inset-inline-start: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #38bdf8;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 10;
}

.btn-login-modern {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #1e3a8a 100%);
    background-size: 200% auto;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.4);
}

.btn-login-modern:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.5);
}

.lang-toggle-container {
    position: absolute;
    top: 30px;
    inset-inline-end: 30px;
}

.btn-lang-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 50px;
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 800;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

@media (max-width: 991px) {
    .login-main-wrapper {
        background: #0f172a;
    }

    .form-side {
        background: transparent;
    }

    .login-form-box {
        background: rgba(255, 255, 255, 0.95);
        padding: 50px 35px;
        border-radius: 35px;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
        max-width: 440px;
        width: 92%;
    }
}

/* 5. Lock Screen Specific Styles */
.lock-avatar-premium {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    padding: 5px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 0 auto 1.5rem;
    position: relative;
    border: 2px solid #f1f5f9;
}

.lock-avatar-premium img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.lock-avatar-initials {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
}

.lock-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #f0fdf4;
    color: #166534;
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.different-account {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 2rem;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.different-account:hover {
    color: #38bdf8;
}

/* 6. Utility Animations & Components */
.stat-item {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #38bdf8;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   MODULE: PERMISSIONS & SWITCHES
   ========================================================================== */
/* Global Utilities */
.radius-20 {
    border-radius: 6px !important;
}

.radius-15 {
    border-radius: 6px !important;
}

.shadow-pulse {
    animation: none !important;
    box-shadow: none !important;
}

/* Dashboard Tabs - Unified & Sharpened */
.premium-segmented-control {
    background: #f8fafc !important;
    padding: 6px !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    gap: 5px !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02) !important;
    border: 1px solid #e2e8f0 !important;
}

.premium-tab-btn {
    border: none !important;
    color: #64748b !important;
    font-weight: 600 !important;
    padding: 9px 20px !important;
    border-radius: 6px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: transparent !important;
    outline: none !important;
    cursor: pointer !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
}

.premium-tab-btn:hover:not(.active) {
    color: #3b82f6 !important;
    background: rgba(59, 130, 246, 0.08) !important;
}

.premium-tab-btn.active {
    color: #ffffff !important;
    background: #3b82f6 !important;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3) !important;
    font-weight: 700 !important;
}

html[dir="rtl"] .premium-tab-btn,
[data-textdirection="rtl"] .premium-tab-btn {
    flex-direction: row-reverse !important;
}

/* ==========================================================================
   Premium Page Components (Customer & Property Show Pages)
   ========================================================================== */
.header-customer-dark,
.header-property-dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15) !important;
    position: relative;
    overflow: hidden;
    padding: 25px 30px !important;
    border-radius: 2px !important;
}

.border-left-light-opacity {
    border-left: 1px solid rgba(255, 255, 255, 0.15) !important;
}

[data-textdirection="rtl"] .border-left-light-opacity {
    border-left: none !important;
    border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding-left: 0 !important;
    padding-right: 1rem !important;
}

/* Utilities */
.radius-10 {
    border-radius: 2px !important;
}

.radius-15 {
    border-radius: 2px !important;
}

.bg-light-primary-opacity {
    background-color: rgba(90, 141, 238, 0.1) !important;
}

.bg-light-success-opacity {
    background-color: rgba(40, 208, 148, 0.1) !important;
}

.bg-light-danger-opacity {
    background-color: rgba(255, 73, 97, 0.1) !important;
}

.bg-light-warning-opacity {
    background-color: rgba(255, 159, 67, 0.1) !important;
}

.bg-light-info-opacity {
    background-color: rgba(0, 207, 232, 0.1) !important;
}

.bg-light-dark-opacity {
    background-color: rgba(77, 82, 89, 0.1) !important;
}

.bg-light-blue-info {
    background-color: #f8fafc !important;
}

/* Data Grid System */
.data-grid-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 2px;
    border: 1px solid #f1f5f9;
    background: #fff;
    height: 100%;
    transition: all 0.2s ease;
}

.data-grid-item:hover {
    border-color: #5A8DEE !important;
    box-shadow: 0 5px 15px rgba(90, 141, 238, 0.15) !important;
    transform: translateY(-2px);
    z-index: 2;
    position: relative;
}

.data-grid-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    margin-right: 15px;
    flex-shrink: 0;
}

[data-textdirection="rtl"] .data-grid-icon {
    margin-right: 0;
    margin-left: 15px;
}

.data-grid-label {
    display: block;
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 2px;
    font-weight: 500;
}

.data-grid-value {
    display: block;
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

/* Borders & Dividers */
.border-left-primary-3 {
    border-left: 3px solid #5A8DEE !important;
}

.border-left-warning-3 {
    border-left: 3px solid #ff9f43 !important;
}

.border-dashed-premium {
    border: 1px dashed #e2e8f0 !important;
}

[data-textdirection="rtl"] .border-left-primary-3 {
    border-left: none !important;
    border-right: 3px solid #5A8DEE !important;
}

[data-textdirection="rtl"] .border-left-warning-3 {
    border-left: none !important;
    border-right: 3px solid #ff9f43 !important;
}

/* Sidebar Utilities */
.border-dashed-premium {
    border: 1px dashed rgba(90, 141, 238, 0.3) !important;
}

.border-right-light {
    border-right: 1px solid rgba(0, 0, 0, 0.05) !important;
}

[data-textdirection="rtl"] .border-right-light {
    border-right: none !important;
    border-left: 1px solid rgba(0, 0, 0, 0.05) !important;
}

[data-textdirection="rtl"] .text-right-rtl {
    text-align: right !important;
}

/* --- Premium Minimalist Nav Tabs --- */
.premium-nav-tabs {
    border-bottom: 2px solid #f1f3f4 !important;
    margin-bottom: 8px !important;
    padding: 0 1rem !important;
    background: #fff !important;
    margin-top: 0.5rem !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    /* Centered tabs navigation */
}

.premium-nav-tabs .nav-item {
    margin-bottom: 0 !important;
}

.premium-nav-tabs .nav-link {
    border: none !important;
    background: transparent !important;
    color: #64748b !important;
    font-weight: 600 !important;
    padding: 12px 20px !important;
    border-bottom: 2px solid transparent !important;
    transition: all 0.3s ease !important;
    border-radius: 0 !important;
    font-size: 1rem !important;
    /* Enlarge font size in main tabs to be larger than fields */
    box-shadow: none !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    flex-direction: row !important;
    /* Fix RTL icon issue globally for premium tabs */
    cursor: pointer !important;
}

.premium-nav-tabs .nav-link::after {
    display: none !important;
}

.premium-nav-tabs .nav-link i {
    font-size: 1.1rem;
    vertical-align: middle;
    margin-inline-end: 5px;
}

.premium-nav-tabs .nav-link:focus,
.premium-nav-tabs .nav-link:active {
    outline: none !important;
    box-shadow: none !important;
}

.premium-nav-tabs .nav-link:hover {
    color: #7367f0 !important;
    background-color: #f8f9fa !important;
    border-radius: 6px 6px 0 0 !important;
    cursor: pointer !important;
}

.premium-nav-tabs .nav-link.active {
    color: #7367f0 !important;
    border-bottom: 2px solid #7367f0 !important;
    background: transparent !important;
    font-weight: 700 !important;
}

/* --- PREMIUM QUICK SEARCH AREA --- */
.premium-quick-search-area {
    background-color: #f4f9ff !important;
    border-color: #d1e9ff !important;
}

/* ==========================================================================
   PREMIUM FINANCIAL SUMMARY REDESIGN
   ========================================================================== */
.payment-summary-card-premium {
    background: #ffffff;
    border-radius: 2px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.payment-summary-card-premium::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--premium-primary);
}

[data-textdirection="rtl"] .payment-summary-card-premium::before {
    left: auto;
    right: 0;
}

.summary-header-premium {
    padding: 20px;
    background: rgba(248, 250, 252, 0.5);
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Legendary Black & Yellow Tips Card */
.legendary-tips-card {
    background: linear-gradient(145deg, #1a1c23, #0f1014);
    border-radius: 12px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.legendary-tips-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.5);
}

.legendary-tips-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.legendary-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(245, 158, 11, 0.1);
}

.legendary-header i {
    color: #f59e0b;
    font-size: 1.2rem;
    margin-right: 10px;
    filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.5));
}

[data-textdirection="rtl"] .legendary-header i {
    margin-right: 0;
    margin-left: 10px;
}

.legendary-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.legendary-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legendary-list li {
    display: flex;
    align-items: flex-start;
    color: #cbd5e1;
    font-size: 0.85rem;
    margin-bottom: 12px;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.legendary-list li:hover {
    color: #f59e0b;
}

.legendary-list li i {
    color: #f59e0b;
    font-size: 0.75rem;
    margin-top: 4px;
    margin-right: 10px;
    flex-shrink: 0;
}

[data-textdirection="rtl"] .legendary-list li i {
    margin-right: 0;
    margin-left: 6px;
}

/* Premium Company Badge Style */
.premium-company-badge {
    display: inline-flex;
    align-items: center;
    background: #0f172a;
    /* Dark Navy/Black */
    color: #f59e0b;
    /* Yellow/Gold */
    padding: 6px 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.premium-company-badge i {
    margin-right: 8px;
    font-size: 0.9rem;
    color: #f59e0b;
}

[data-textdirection="rtl"] .premium-company-badge i {
    margin-right: 0;
    margin-left: 8px;
}

.premium-company-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
}

/* Premium Error Alerts */
.premium-error-alert {
    border-radius: 12px;
    border: none;
    border-right: 5px solid #ef4444;
    background: #fff;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.08);
}

[data-textdirection="ltr"] .premium-error-alert {
    border-right: none;
    border-left: 5px solid #ef4444;
}

.premium-warning-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.premium-warning-pill i {
    margin-right: 6px;
}

[data-textdirection="rtl"] .premium-warning-pill i {
    margin-right: 0;
    margin-left: 6px;
}

.summary-header-premium i {
    width: 36px;
    height: 36px;
    background: var(--premium-primary-soft);
    color: var(--premium-primary);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.summary-title-premium {
    font-weight: 800;
    font-size: 1rem;
    color: #1e293b;
}

.summary-body-premium {
    padding: 20px;
}

.summary-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.summary-stat-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}

.summary-stat-value {
    font-size: 1rem;
    font-weight: 800;
    color: #1e293b;
}

.financial-indicator-section {
    margin: 25px 0;
    padding: 15px;
    background: #f8fafc;
    border-radius: 2px;
    border: 1px dashed #e2e8f0;
}

.indicator-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: block;
    text-align: center;
}

.indicator-percentage {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--premium-success);
    display: block;
    text-align: center;
    margin-bottom: 5px;
}

/* Portfolio Styles */
.portfolio-section-premium {
    margin-top: 25px;
}

.portfolio-title-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.portfolio-title-text {
    font-weight: 800;
    font-size: 0.9rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cheque-portfolio-item {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 2px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.cheque-portfolio-item:hover {
    border-color: var(--premium-primary-soft);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateX(4px);
}

[data-textdirection="rtl"] .cheque-portfolio-item:hover {
    transform: translateX(-4px);
}

.cheque-portfolio-item.fully-used {
    background: #f8fafc;
    opacity: 0.8;
}

.cheque-item-left {
    display: flex;
    flex-direction: column;
}

.cheque-number-premium {
    font-weight: 800;
    font-size: 0.85rem;
    color: #1e293b;
}

.cheque-bank-premium {
    font-size: 0.7rem;
    color: #94a3b8;
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cheque-item-right {
    text-align: right;
}

.cheque-amount-total {
    font-weight: 700;
    font-size: 0.85rem;
    color: #64748b;
}

.cheque-amount-available {
    font-weight: 800;
    font-size: 0.8rem;
    color: var(--premium-success);
}

.summary-footer-premium {
    padding: 15px 20px;
    background: #fdfdfd;
    border-top: 1px solid #f1f5f9;
}

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

.footer-balance-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
}

.footer-balance-value {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--premium-danger);
}

/* Sticky Sidebar Fix */
.sticky-sidebar-premium {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 100px !important;
    z-index: 99 !important;
    align-self: flex-start !important;
}

.content-body,
section#basic-form-layouts {
    overflow: visible !important;
}

/* Financial Progress Bar */
.financial-progress-premium {
    height: 8px;
    background: #eef2f7;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 15px;
    display: flex;
}

.financial-progress-bar-premium {
    height: 100%;
}

.financial-progress-bar-paid {
    background-color: var(--premium-success);
}

.financial-progress-bar-cheques {
    background-color: var(--premium-warning);
    opacity: 0.75;
}

/* Legend Styles */
.financial-legend-premium {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 0.7rem;
    font-weight: 700;
}

.legend-item-premium {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-dot-premium {
    font-size: 6px;
    vertical-align: middle;
}

/* Portfolio Scrollable */
.linked-cheques-scrollable-premium {
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
}

/* Projected Balance Card */
.projected-balance-box-premium {
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    background: rgba(16, 185, 129, 0.04);
    border: 1px dashed rgba(16, 185, 129, 0.3);
    border-radius: 2px;
}

.projected-label-premium {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 4px;
    font-weight: 700;
}

.projected-value-premium {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--premium-success);
}

.projected-value-premium.negative {
    color: var(--premium-danger);
}

/* Cheque Details Pill */
.cheque-details-pill-premium {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #f8fafc;
    border-radius: 2px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.pill-info-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-grow: 1;
}

.pill-stat {
    display: flex;
    flex-direction: column;
    padding-right: 20px;
    border-right: 1px solid #e2e8f0;
}

[data-textdirection="rtl"] .pill-stat {
    padding-right: 0;
    padding-left: 20px;
    border-right: 0;
    border-left: 1px solid #e2e8f0;
}

.pill-label {
    font-size: 0.65rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pill-value {
    font-size: 0.9rem;
    font-weight: 800;
}

.pill-action-btn {
    border-radius: 8px !important;
    font-weight: 800 !important;
    padding: 6px 15px !important;
    white-space: nowrap;
}

/* Fully Paid Card */
.fully-paid-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    border: 1px solid var(--premium-success-soft);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.05);
}

.fully-paid-icon-wrapper {
    width: 50px;
    height: 50px;
    background: var(--premium-success-soft);
    color: var(--premium-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
}

.fully-paid-title {
    font-weight: 800;
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 5px;
}

.fully-paid-subtitle {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0;
}

/* ==========================================================================
   SMART BREAKDOWN & DIGITAL CHEQUE WALLET & LIVE PREVIEW
   ========================================================================== */
/* Smart Balance Breakdown */
.smart-balance-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.smart-balance-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

.breakdown-item.paid-item {
    background: #ecfdf5;
    color: #059669;
}

.breakdown-item.covered-item {
    background: #fffbeb;
    color: #d97706;
}

.breakdown-item.uncovered-item {
    background: #f1f5f9;
    color: #64748b;
}

.breakdown-item.uncovered-item.has-debt {
    background: #fef2f2;
    color: #dc2626;
    border-right: 3px solid #dc2626;
}

/* Triple Segment Progress Bar */
.financial-progress-premium.triple-segment {
    height: 12px;
    background: #f1f5f9;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
}

.financial-progress-bar-current-pulse {
    background: linear-gradient(90deg, #10b981, #34d399);
    animation: pulse-width 2s infinite alternate;
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.6);
    position: relative;
    z-index: 10;
}

.financial-progress-bar-current-pulse.pulse-blue {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    animation: pulse-width-blue 2s infinite alternate;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
    position: relative;
    z-index: 10;
}

.financial-progress-bar-cheques-striped {
    background: repeating-linear-gradient(45deg,
            #f59e0b,
            #f59e0b 10px,
            #fbbf24 10px,
            #fbbf24 20px);
    opacity: 0.85;
}

@keyframes pulse-width {
    0% {
        filter: brightness(1);
    }

    100% {
        filter: brightness(1.2);
    }
}

@keyframes pulse-width-blue {
    0% {
        filter: brightness(1);
    }

    100% {
        filter: brightness(1.2);
    }
}

/* Smart Assistant Box */
.smart-assistant-box {
    display: flex;
    gap: 12px;
    background: #eff6ff;
    border-right: 4px solid #3b82f6;
    border-radius: 8px;
    padding: 12px;
    font-size: 0.85rem;
    color: #1e3a8a;
    align-items: flex-start;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.smart-assistant-box.alert-state {
    background: #fef2f2;
    border-right: 4px solid #ef4444;
    color: #991b1b;
}

.assistant-icon {
    font-size: 1.2rem;
    margin-top: 2px;
}

/* Digital Cheque Wallet */
.digital-wallet-drawer {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 5px;
}

.cheque-card-premium {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    margin-top: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    position: relative;
    transition: all 0.3s ease;
}

.cheque-card-premium.selected-glow {
    border: 2px solid #10b981 !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.cheque-card-premium.fully-used-card {
    opacity: 0.65;
    background: #f8fafc;
}

.cheque-card-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cheque-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #cbd5e1;
    padding-bottom: 8px;
}

.bank-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #334155;
    font-size: 0.9rem;
}

.bank-icon {
    color: #94a3b8;
}

.cheque-number {
    font-family: monospace;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #475569;
}

.cheque-amount-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.cheque-amount-display.available {
    font-size: 0.85rem;
    margin-top: 4px;
}

.cheque-mini-progress {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    width: 100%;
}

.cheque-mini-progress .mini-progress-bar {
    height: 100%;
    background: #10b981;
    transition: width 0.3s ease;
}

/* Live Digital Cheque Preview */
.live-cheque-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.live-cheque-header {
    background: #f8fafc;
    padding: 10px 15px;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.live-cheque-canvas {
    padding: 15px;
    background: #f1f5f9;
    display: flex;
    justify-content: center;
}

.cheque-paper {
    width: 100%;
    background: repeating-linear-gradient(0deg,
            #fff,
            #fff 19px,
            #f1f5f9 20px);
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 15px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    border-left: 10px dashed #cbd5e1;
    color: #334155;
}

.cheque-paper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(#94a3b8 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
    pointer-events: none;
}

.cheque-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.85rem;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 5px;
}

.cheque-bank-name {
    font-weight: bold;
    color: #1e3a8a;
    font-size: 1rem;
}

.cheque-date .val {
    font-family: monospace;
    border-bottom: 1px dotted #94a3b8;
}

.cheque-pay-to {
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.cheque-pay-to .val {
    font-weight: bold;
    font-style: italic;
    border-bottom: 1px dotted #94a3b8;
    display: inline-block;
    min-width: 150px;
}

.cheque-amount-row {
    font-size: 0.85rem;
    background: #f8fafc;
    padding: 5px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 15px;
}

.cheque-amount-row .val {
    color: #059669;
}

.cheque-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 0.8rem;
}

.cheque-no .val {
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.cheque-signature {
    border-top: 1px solid #94a3b8;
    padding-top: 5px;
    width: 100px;
    text-align: center;
    color: #94a3b8;
    font-style: italic;
}

/* Maintenance Module Styles */
.maintenance-item-row {
    background-color: #f9fbfd;
    border-radius: 8px;
    padding: 15px 10px;
    margin-bottom: 15px;
    border: 1px solid #e1e5eb;
    transition: all 0.3s ease;
}

.maintenance-item-row:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: #d1d5db;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

/* Contract Clause Builder */
.cursor-move {
    cursor: move;
}

.clause-item {
    transition: all 0.2s;
}

.clause-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Premium Clause Library Styles */
.premium-clause-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 15px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    padding: 16px;
}

.premium-clause-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(135deg, #7367f0 0%, #9e95f5 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.premium-clause-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08), 0 6px 6px rgba(0, 0, 0, 0.05);
    border-color: rgba(115, 103, 240, 0.2);
}

.premium-clause-card:hover::before {
    opacity: 1;
}

.premium-clause-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
    padding-bottom: 10px;
}

.premium-clause-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #4b4b4b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.premium-clause-icon {
    color: #7367f0;
    font-size: 1.1rem;
}

html[dir="rtl"] .premium-clause-title {
    margin-right: 0;
}

html[dir="rtl"] .premium-clause-icon {
    margin-left: 8px;
}

html[dir="ltr"] .premium-clause-icon {
    margin-right: 8px;
}

.premium-clause-btn {
    background: rgba(40, 199, 111, 0.1);
    color: #28c76f;
    border: 1px solid rgba(40, 199, 111, 0.2);
    border-radius: 8px;
    padding: 6px 14px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    outline: none;
}

.premium-clause-btn:hover {
    background: #28c76f;
    color: #ffffff;
    border-color: #28c76f;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(40, 199, 111, 0.3);
}

.premium-clause-content {
    font-size: 0.95rem;
    color: #6e6b7b;
    line-height: 1.6;
    text-align: right;
    width: 100%;
    direction: rtl;
    margin: 0;
}

.clause-library-container {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 5px;
    padding-left: 5px;
    scrollbar-width: thin;
    scrollbar-color: #7367f0 rgba(0, 0, 0, 0.05);
}

.clause-library-container::-webkit-scrollbar {
    width: 6px;
}

.clause-library-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 10px;
}

.clause-library-container::-webkit-scrollbar-thumb {
    background: #d8d6f9;
    border-radius: 10px;
}

.clause-library-container::-webkit-scrollbar-thumb:hover {
    background: #7367f0;
}

/* Modern Smart Tags Tabs Styling (iOS-Style Segmented Control Pills) */
.smart-tags-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 10px !important;
}

.smart-tags-tabs {
    border: none !important;
    background: #f1f5f9 !important;
    /* light slate background */
    padding: 4px !important;
    border-radius: 30px !important;
    /* pill container */
    display: inline-flex !important;
    justify-content: center !important;
    margin: 12px auto !important;
    /* centered horizontally */
    align-items: center !important;
    width: auto !important;
    /* only occupies as much space as the tabs need */
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06) !important;
}

.smart-tags-tabs .nav-item {
    margin: 0 !important;
}

.smart-tags-tabs .nav-link {
    border: none !important;
    background: transparent !important;
    color: #475569 !important;
    font-weight: 700 !important;
    padding: 8px 20px !important;
    border-radius: 30px !important;
    font-size: 0.95rem !important;
    transition: all 0.25s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
}

.smart-tags-tabs .nav-link:focus,
.smart-tags-tabs .nav-link:active {
    outline: none !important;
    box-shadow: none !important;
}

.smart-tags-tabs .nav-link:hover {
    color: #7367f0 !important;
    background-color: transparent !important;
}

.smart-tags-tabs .nav-link.active {
    background: #ffffff !important;
    /* white pill for active tab */
    color: #7367f0 !important;
    box-shadow: 0 4px 10px rgba(115, 103, 240, 0.15) !important;
}

.smart-tags-tabs .nav-link i {
    margin-inline-end: 5px;
}

/* Tag Cards Styling */
.smart-tag-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    height: 100%;
}

.smart-tag-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.smart-tag-card.copied-success {
    border-color: #28c76f !important;
    background-color: rgba(40, 199, 111, 0.05) !important;
    transform: scale(0.98);
}

.tag-label {
    font-size: 0.98rem;
    font-weight: 600;
}

.tag-code {
    font-size: 0.95rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.bg-light-primary {
    background-color: rgba(115, 103, 240, 0.1) !important;
}

.text-primary {
    color: #7367f0 !important;
}

.bg-light-success {
    background-color: rgba(40, 199, 111, 0.1) !important;
}

.text-success {
    color: #28c76f !important;
}

.bg-light-warning {
    background-color: rgba(255, 159, 67, 0.1) !important;
}

.text-warning {
    color: #ff9f43 !important;
}

.bg-light-danger {
    background-color: rgba(234, 84, 85, 0.1) !important;
}

.text-danger {
    color: #ea5455 !important;
}

/* Custom Smart Tags Layout Overrides (Dashed Pill Alert) */
.smart-tags-hint-bar {
    background: linear-gradient(135deg, rgba(115, 103, 240, 0.06) 0%, rgba(115, 103, 240, 0.02) 100%) !important;
    border: 1px dashed rgba(115, 103, 240, 0.25) !important;
    border-radius: 12px !important;
    padding: 12px 20px !important;
    margin: 16px 16px 8px 16px !important;
    /* Margin around it to float inside the card */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.smart-tags-hint-bar p {
    color: #7367f0 !important;
    font-size: 0.98rem !important;
    font-weight: 700 !important;
    margin-bottom: 0 !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.smart-tags-hint-bar p i {
    color: #7367f0 !important;
    font-size: 1.15rem !important;
    margin-inline-end: 0 !important;
    animation: pulse-info 2s infinite !important;
}

@keyframes pulse-info {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.smart-tags-collapse-body {
    background-color: #fff !important;
    border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
}

.smart-tags-content {
    padding: 12px 16px 8px 16px !important;
}

/* Tab Error Indicator */
.tab-error-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background-color: #ff4d4d;
    border-radius: 50%;
    box-shadow: 0 0 8px #ff4d4d;
    animation: pulse-red 1.5s infinite;
    z-index: 10;
}

.premium-tab-btn {
    position: relative !important;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(255, 77, 77, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0);
    }
}

/* ==========================================================================
   CONTRACT DURATION & DATES STYLING
   ========================================================================== */
.contract-duration-wrapper {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.duration-label-badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(59, 130, 246, 0.08);
    color: #1e293b;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid rgba(59, 130, 246, 0.15);
    white-space: nowrap;
}

.duration-label-badge i {
    font-size: 0.95rem;
}

.duration-label-badge span {
    white-space: nowrap;
}

.contract-duration-wrapper .date-range-badge {
    display: inline-flex;
    align-items: center;
    background-color: #f8fafc;
    border-radius: 20px;
    padding: 4px 10px;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
}

.contract-duration-wrapper .date-range-badge .date-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.5px;
}

.contract-duration-wrapper .date-range-badge .date-arrow {
    margin: 0 8px;
    font-size: 0.8rem;
    opacity: 0.7;
}

[data-textdirection="rtl"] .duration-label-badge i,
[dir="rtl"] .duration-label-badge i {
    margin-left: 6px;
    margin-right: 0 !important;
}

[data-textdirection="ltr"] .duration-label-badge i,
[dir="ltr"] .duration-label-badge i {
    margin-right: 6px;
    margin-left: 0 !important;
}

/* ========================================================================
   PLATINUM DASHBOARD - UNIFIED PAGES STYLING (pages.css)
   Consolidates: Properties, Contracts, Cheques, Payments, Settings, etc.
   Supports: LTR & RTL in a single file.
   ======================================================================== */
:root {
    --premium-primary: #3b82f6;
    --premium-primary-soft: rgba(59, 130, 246, 0.1);
    --premium-success: #10b981;
    --premium-success-soft: rgba(16, 185, 129, 0.1);
    --premium-warning: #f59e0b;
    --premium-warning-soft: rgba(245, 158, 11, 0.1);
    --premium-danger: #ef4444;
    --premium-danger-soft: rgba(239, 68, 68, 0.1);
    --premium-info: #06b6d4;
    --premium-info-soft: rgba(6, 182, 212, 0.1);
    --premium-slate: #1e293b;
    --premium-slate-light: #64748b;
    /* Legacy Sync */
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
}

/* ==========================================================================
   GLOBAL PREMIUM COMPONENTS (Unified)
   ========================================================================== */
/* Removed redundant .premium-card - using system-style.css instead */
.premium-mandatory-header {
    background: #ffffff !important;
    color: #1e293b !important;
    font-weight: 700 !important;
    padding: 10px 20px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
}

[dir="rtl"] .premium-mandatory-header i,
html[dir="rtl"] .premium-mandatory-header i,
[data-textdirection="rtl"] .premium-mandatory-header i {
    margin-left: 10px !important;
    margin-right: 0 !important;
}

[dir="ltr"] .premium-mandatory-header i,
html[dir="ltr"] .premium-mandatory-header i {
    margin-right: 10px !important;
    margin-left: 0 !important;
}

/* Global Premium Buttons (Unified to Minimalist White Style) */
.btn-premium-save,
button.btn-premium-save,
.btn-premium-add,
.btn-premium-edit,
.btn-premium-back,
a.btn-premium-back {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 0 24px !important;
    height: 42px !important;
    margin: 0 4px !important;
    border-radius: 4px !important;
    /* Unified rounded style matching cancel button */
    font-weight: 700 !important;
    font-size: 1rem !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    cursor: pointer !important;
    text-decoration: none !important;
    background: #ffffff !important;
    color: #475569 !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
}

.btn-premium-save:hover,
button.btn-premium-save:hover,
.btn-premium-add:hover,
.btn-premium-edit:hover,
.btn-premium-back:hover,
.btn-premium-secondary:hover,
.btn-premium-cancel:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
    background: #ffffff !important;
    color: #1e293b !important;
    border-color: #5A8DEE !important;
}

.btn-premium-save i,
.btn-premium-add i,
.btn-premium-edit i,
.btn-premium-back i {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.btn-premium-save:hover i,
.btn-premium-add:hover i,
.btn-premium-edit:hover i,
.btn-premium-back:hover i {
    transform: translateX(4px);
}

[data-textdirection="rtl"] .btn-premium-save:hover i,
[data-textdirection="rtl"] .btn-premium-add:hover i,
[data-textdirection="rtl"] .btn-premium-edit:hover i,
[data-textdirection="rtl"] .btn-premium-back:hover i {
    transform: translateX(-4px);
}

.btn-premium-save.shadow-pulse,
.btn-premium-add.shadow-pulse {
    animation: pulse-indigo 2.5s infinite;
}

/* ==========================================================================
   MODULE: PROPERTIES (��� ��� ��������)
   ========================================================================== */
.header-bg-shape {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

[dir="ltr"] .header-bg-shape {
    right: auto;
    left: -50px;
}

/* Table Widths */
.col-owner-width {
    width: 60% !important;
}

.col-percentage-width {
    width: 15% !important;
}

.col-primary-width {
    width: 12% !important;
}

.col-actions-width {
    width: 13% !important;
}

/* Standardized Table Styling for Properties & Customers */
.premium-table thead th {
    background-color: #f8fafc !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    color: #475569 !important;
    padding: 15px 20px !important;
    vertical-align: middle !important;
    border-bottom: 2px solid #f1f5f9 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.premium-table tbody td {
    padding: 15px 20px !important;
    vertical-align: middle !important;
    color: #1e293b !important;
    font-weight: 500 !important;
}

.th-w-20 {
    width: 20% !important;
}

.th-w-25 {
    width: 25% !important;
}

.th-w-15 {
    width: 15% !important;
}

/* Heading Elements Icons Scaling */
.heading-elements ul li a i {
    font-size: 11px !important;
    color: #94a3b8 !important;
    transition: color 0.3s ease;
}

.heading-elements ul li a:hover i {
    color: #475569 !important;
}

.th-w-10 {
    width: 10% !important;
}

.th-w-actions {
    width: 30px !important;
}

.header-trash-icon {
    margin-inline-start: 4px !important;
    font-size: 1.1rem !important;
    color: #94a3b8 !important;
}

.btn-trash-cell {
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

/* ==========================================================================
   MODULE: CONTRACTS (��� ��� ����)
   ========================================================================== */
.contract-text-viewer {
    line-height: 1.7 !important;
    color: #334155 !important;
    background: #fff !important;
    border-radius: 12px !important;
    padding: 25px !important;
}

[dir="rtl"] .border-primary-left,
html[dir="rtl"] .border-primary-left,
[data-textdirection="rtl"] .border-primary-left {
    border-right: 4px solid #7367f0 !important;
    border-left: 0 !important;
}

[dir="ltr"] .border-primary-left,
html[dir="ltr"] .border-primary-left {
    border-left: 4px solid #7367f0 !important;
    border-right: 0 !important;
}

/* Premium Badge Hint (Insurance Locked) */
.premium-badge-hint {
    background-color: rgba(239, 68, 68, 0.08) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    padding: 6px 14px !important;
    border-radius: 50px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.05) !important;
    white-space: nowrap !important;
}

.premium-badge-hint i {
    font-size: 13px !important;
    animation: premium-pulse-lock 2s infinite !important;
}

@keyframes premium-pulse-lock {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

[data-textdirection="rtl"] .premium-badge-hint {
    letter-spacing: 0 !important;
}

/* ==========================================================================
   MODULE: CHEQUES (��� ���`� ����)
   ========================================================================== */
.cheque-summary-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    border-left: 5px solid #ef4444;
    padding: 24px;
}

[dir="rtl"] .cheque-summary-card {
    border-left: 1px solid #f1f5f9;
    border-right: 5px solid #ef4444;
}

/* ==========================================================================
   MODULE: PAYMENTS (��� ����������)
   ========================================================================== */
.payment-summary-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    border-left: 5px solid #10b981;
    padding: 24px;
}

[dir="rtl"] .payment-summary-card,
html[dir="rtl"] .payment-summary-card,
[data-textdirection="rtl"] .payment-summary-card {
    border-left: 1px solid #f1f5f9;
    border-right: 5px solid #10b981;
}

/* Property Mandatory Section (Matched to Contract Insurance Style) */
.property-mandatory-section {
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    margin: 30px 0 !important;
    background: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

.property-mandatory-header {
    background: #f8fafc !important;
    padding: 12px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.property-mandatory-header .title-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: #1e293b !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
}

.property-mandatory-header i {
    font-size: 1.15rem !important;
    color: #475569 !important;
}

.property-mandatory-body {
    padding: 25px 20px !important;
}

[data-textdirection="rtl"] .property-mandatory-header .title-wrapper {
    gap: 12px !important;
}

/* Sub-header inside mandatory body (e.g. Cheque Details) */
.mandatory-sub-header {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding-bottom: 8px !important;
    margin-bottom: 15px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.mandatory-sub-header i {
    font-size: 1.1rem !important;
    color: #3b82f6 !important;
    /* text-primary */
}

.mandatory-sub-header h6 {
    color: #3b82f6 !important;
    /* text-primary */
    margin: 0 !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
}

.mandatory-sub-header small {
    color: #64748b !important;
    /* text-muted */
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    margin-right: 5px !important;
}

[data-textdirection="rtl"] .mandatory-sub-header small {
    margin-right: 0 !important;
    margin-left: 5px !important;
}

/* ==========================================================================
   MODULE: SETTINGS (��� �������������� ��� �����& ��) - Scoped Styles Only
   ========================================================================== */
/* Use global .premium-card and .premium-mandatory-header from system-style.css */
.premium-card {
    margin-bottom: 17px !important;
}

.premium-mandatory-header {
    background: #f8fafc !important;
    padding: 12px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid #e2e8f0 !important;
    font-size: 1.58rem !important;
    font-weight: 800 !important;
    color: #1e293b !important;
}

.premium-mandatory-header .title-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: #1e293b !important;
    font-weight: 800 !important;
    font-size: 1.27rem !important;
}

.premium-mandatory-header i {
    font-size: 1.45rem !important;
    color: #475569 !important;
}

[data-textdirection="rtl"] .premium-mandatory-header .title-wrapper {
    gap: 12px !important;
}

.premium-form-group {
    margin-bottom: 27px !important;
    position: relative !important;
}

.premium-mandatory-body .row,
form.ajax-form .row {
    margin-bottom: 22px !important;
}

.error-text {
    position: relative !important;
    margin-top: 4px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    display: block !important;
    word-wrap: break-word !important;
    white-space: normal !important;
    animation: premiumFadeInUp 0.3s ease-out !important;
    z-index: 10 !important;
}

[dir="rtl"] .error-text,
html[dir="rtl"] .error-text,
[data-textdirection="rtl"] .error-text {
    text-align: right !important;
    padding-right: 2px !important;
    direction: rtl !important;
}

/* Static error text for titles or sections where absolute positioning is not suitable */
.premium-section-title .error-text {
    position: static !important;
    display: inline-block !important;
    width: auto !important;
    margin-right: 10px !important;
    margin-left: 10px !important;
    animation: none !important;
}

[dir="ltr"] .error-text,
html[dir="ltr"] .error-text {
    text-align: left !important;
    padding-left: 2px !important;
    direction: ltr !important;
}

/* Special styling for permissions error chip in section titles */
.premium-error-alert-chip {
    background-color: rgba(255, 73, 97, 0.1) !important;
    color: #ff4961 !important;
    border: 1px solid rgba(255, 73, 97, 0.3) !important;
    padding: 5px 15px !important;
    border-radius: 30px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    display: none;
    /* Hidden by default until text is filled */
    box-shadow: 0 4px 10px rgba(255, 73, 97, 0.15) !important;
    animation: premiumShake 0.5s ease-in-out !important;
}

.premium-error-alert-chip:not(:empty) {
    display: inline-block !important;
}

@keyframes premiumShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Global Hover Animation for Cancel/Close Icons */
.premium-modal-close:hover i,
.btn-premium-secondary:hover i {
    transform: rotate(90deg) !important;
    transition: transform 0.3s ease-in-out !important;
}

.premium-modal-close i,
.btn-premium-secondary i {
    transition: transform 0.3s ease-in-out !important;
}

/* Required Asterisk Styling */
label .text-danger,
.premium-label .text-danger {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin-left: 2px;
    margin-right: 2px;
}

@keyframes premiumFadeInUp {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.field-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
}

.field-header i {
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    font-size: 0.9rem !important;
    background: var(--premium-primary-soft) !important;
    color: var(--premium-primary) !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03) !important;
}

/* Contextual Icon Colors */
.field-header i.fa-font,
.field-header i.fa-language {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #3b82f6 !important;
}

.field-header i.fa-facebook-f {
    background: rgba(24, 119, 242, 0.1) !important;
    color: #1877f2 !important;
}

.field-header i.fa-twitter {
    background: rgba(29, 161, 242, 0.1) !important;
    color: #1da1f2 !important;
}

.field-header i.fa-instagram {
    background: rgba(225, 48, 108, 0.1) !important;
    color: #e1306c !important;
}

.field-header i.fa-youtube {
    background: rgba(255, 0, 0, 0.1) !important;
    color: #ff0000 !important;
}

.field-header i.fa-phone,
.field-header i.fa-mobile-alt,
.field-header i.fa-whatsapp {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #10b981 !important;
}

.field-header i.fa-envelope,
.field-header i.fa-envelope-open-text {
    background: rgba(6, 182, 212, 0.1) !important;
    color: #06b6d4 !important;
}

.premium-form-group:focus-within .field-header i {
    transform: scale(1.1) rotate(5deg) !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1) !important;
}

.field-header label {
    margin: 0 !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Global double-border fix moved to system-style.css for universal support */
.identity-summary-card {
    background: #ffffff !important;
    border-radius: 2px !important;
    padding: 30px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #f1f5f9 !important;
}

.summary-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 25px !important;
    padding-bottom: 15px !important;
    border-bottom: 2px dashed #f1f5f9 !important;
}

.summary-header i {
    font-size: 1.5rem !important;
    color: var(--premium-primary) !important;
}

.summary-title {
    font-weight: 800 !important;
    font-size: 1.2rem !important;
    color: #1e293b !important;
}

/* Save Button Enhancement */
.btn-premium-save {
    background: linear-gradient(135deg, var(--premium-primary) 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 35px !important;
    border-radius: 2px !important;
    font-weight: 800 !important;
    box-shadow: 0 10px 20px var(--premium-primary-soft) !important;
}

.btn-premium-save:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 15px 30px var(--premium-primary-soft) !important;
}

/* ==========================================================================
   MODULE: DASHBOARD HOME (��� �����`���`��)
   ========================================================================== */
.welcome-section {
    background: url('https://www.transparenttextures.com/patterns/cubes.png'), linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 6px;
    padding: 2.5rem 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 15px 30px rgba(67, 97, 238, 0.2);
    color: white;
    position: relative;
    overflow: hidden;
}

.welcome-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
}

[dir="rtl"] .welcome-section::after,
html[dir="rtl"] .welcome-section::after,
[data-textdirection="rtl"] .welcome-section::after {
    right: auto;
    left: -10%;
}

.welcome-section .welcome-title {
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.welcome-section .welcome-text {
    color: rgba(255, 255, 255, 0.8) !important;
    max-width: 500px;
    line-height: 1.7 !important;
    margin-bottom: 40px !important;
}

.welcome-date {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Premium Tabs (Segmented Control Style) */
.premium-tabs-wrapper {
    background: #f8f9fa;
    padding: 6px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 2rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.custom-pills .nav-link {
    border-radius: 6px;
    padding: 12px 30px;
    font-weight: 600;
    color: #6c757d;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin: 0 4px;
}

.custom-pills .nav-link:hover {
    color: var(--primary-color);
}

.custom-pills .nav-link.active {
    background: #ffffff;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Premium Breadcrumb */
.premium-breadcrumb {
    background: transparent !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
}

.premium-breadcrumb .breadcrumb-item a {
    color: var(--premium-primary) !important;
    font-weight: 600 !important;
}

.premium-breadcrumb .breadcrumb-item.active {
    color: #64748b !important;
}

/* Minimalist Premium Stat Cards (Updated to match requested screenshot) */
.premium-stat-card {
    background: #ffffff !important;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%2394a3b8' fill-opacity='0.07' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='1'/%3E%3C/g%3E%3C/svg%3E") !important;
    border-radius: 2px !important;
    padding: 1.5rem !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 100px !important;
}

.premium-stat-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(67, 97, 238, 0.3) !important;
}

.premium-stat-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
}

.stat-content {
    display: flex !important;
    flex-direction: column !important;
    z-index: 2 !important;
}

.stat-value {
    font-size: 2.1rem !important;
    /* Increased by 3px */
    font-weight: 800 !important;
    color: #1e293b !important;
    line-height: 1.2 !important;
    margin-bottom: 0.1rem !important;
}

.stat-title {
    font-size: 1.05rem !important;
    /* Increased by 3px */
    font-weight: 600 !important;
    color: #64748b !important;
    margin: 0 !important;
}

/* Icon Blob Container */
.stat-icon-wrapper {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    /* Made Circular */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 2 !important;
}

.stat-icon-wrapper i {
    font-size: 1.6rem !important;
    /* Increased by 3px */
}

/* Contextual Colors for Blobs and Icons */
.card-contracts .stat-icon-wrapper {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #3b82f6 !important;
}

.card-active .stat-icon-wrapper {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #10b981 !important;
}

.card-revenue .stat-icon-wrapper {
    background: rgba(6, 182, 212, 0.1) !important;
    color: #06b6d4 !important;
}

.card-expiring .stat-icon-wrapper {
    background: rgba(245, 158, 11, 0.1) !important;
    color: #f59e0b !important;
}

/* Remove old blob/floating icon styles */
.stat-icon-blob,
.stat-icon-floating {
    display: none !important;
}

.premium-stat-card::before {
    display: none !important;
}

/* Chart Card */
.premium-chart-card {
    border-radius: 6px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    border: none;
    padding: 1rem;
    background: #fff;
}

.premium-chart-card .card-header {
    background: transparent;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    padding-bottom: 1.5rem;
}

.premium-chart-card .card-title {
    font-weight: 700;
    color: #2d3436;
}

/* Simplified Animations */
.animate-up {
    opacity: 1;
    transform: none;
    transition: none !important;
    animation: none !important;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Company Identity Banner */
.company-identity-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    border-radius: 2px !important;
    border: none;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.25);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    color: #ffffff;
}

.company-identity-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0) 70%);
    border-radius: 50%;
}

.company-identity-banner:hover {
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35);
    transform: translateY(-5px);
}

.company-logo-frame {
    width: 70px;
    height: 70px;
    border-radius: 2px !important;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.company-logo-frame img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.company-initials {
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.welcome-text-premium {
    font-weight: 800;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.welcome-text-premium span.text-primary {
    color: #38bdf8 !important;
    /* Brighter blue for contrast */
}

.company-name-subtitle {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7) !important;
    letter-spacing: 0.5px;
}

.welcome-date-section .welcome-date {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.welcome-date-section .welcome-date i {
    color: #38bdf8 !important;
}

/* ==========================================================================
   MODULE: LOGIN & LOCK SCREEN (Scoped to Auth Container)
   ========================================================================== */
/* ==========================================================================
   MODULE: LOGIN & LOCK SCREEN (Premium Architecture)
   ========================================================================== */
/* 1. Global Reset for Auth Pages */
.login-main-wrapper~.header-navbar,
.login-main-wrapper~.footer,
.login-main-wrapper~.main-menu {
    display: none !important;
}

/* 2. Main Layout Container */
.login-main-wrapper {
    display: flex;
    width: 100%;
    height: 100vh;
    background: #0f172a;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    overflow: hidden;
}

[dir="rtl"] .login-main-wrapper {
    direction: rtl;
}

/* 3. Visual Content (Welcome Side) */
.welcome-side {
    background: url('../images/carbon-fibre.png'), url('../images/mjk/background.jpg') no-repeat center center;
    background-size: auto, cover;
    flex: 1;
    display: none;
    flex-direction: column;
    justify-content: flex-end;
    padding: 60px 8%;
    color: white;
    position: relative;
    z-index: 2;
}

.welcome-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #0f172a 0%, rgba(15, 23, 42, 0.4) 60%, transparent 100%);
    z-index: 1;
}

.welcome-side::after {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0) 70%);
    border-radius: 50%;
    z-index: 1;
}

[dir="rtl"] .welcome-side::after {
    right: auto;
    left: -10%;
}

.welcome-content-premium {
    position: relative;
    z-index: 3;
    animation: fadeInUp 1s ease-out;
}

.badge-welcome {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(56, 189, 248, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
}

.login-main-wrapper .welcome-title {
    font-weight: 900 !important;
    margin-bottom: 20px !important;
    line-height: 1.1 !important;
    letter-spacing: -2px !important;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.login-main-wrapper .welcome-text {
    color: rgba(255, 255, 255, 0.8) !important;
    max-width: 500px;
    line-height: 1.7 !important;
    margin-bottom: 40px !important;
}

@media (min-width: 992px) {
    .welcome-side {
        display: flex;
    }
}

/* 4. Form Side */
.form-side {
    position: relative;
    background: white;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    z-index: 5;
}

@media (min-width: 992px) {
    .form-side {
        width: 480px;
        box-shadow: -10px 0 50px rgba(0, 0, 0, 0.2);
    }
}

.login-form-box {
    width: 100%;
    max-width: 360px;
}

.brand-logo-modern {
    margin-bottom: 40px;
    text-align: center;
}

.brand-logo-modern img {
    max-height: 140px;
    width: auto;
}

.form-header-modern {
    text-align: center;
    margin-bottom: 30px;
}

.form-header-modern h2 {
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 8px;
}

.form-group-modern {
    margin-bottom: 32px;
    width: 100%;
}

.form-label-modern {
    display: block;
    font-weight: 700;
    color: #1e3a8a;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.login-options-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    margin-bottom: 30px;
}

.remember-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    color: #64748b;
}

.remember-modern input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #38bdf8;
    cursor: pointer;
}

.forgot-modern {
    font-weight: 700;
    color: #38bdf8;
    text-decoration: none;
    transition: all 0.3s;
}

.forgot-modern:hover {
    color: #1e3a8a;
    text-decoration: underline;
}

.form-control-modern {
    width: 100%;
    background: #f8fafc;
    border: 2px solid #f1f5f9;
    border-radius: 6px;
    padding: 16px 20px;
    padding-inline-start: 48px;
    color: #1e293b;
    transition: all 0.3s;
}

.form-control-modern:focus {
    background: white;
    border-color: #38bdf8;
    box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.1);
    outline: none;
}

.input-container-modern {
    position: relative;
}

.input-icon-modern {
    position: absolute;
    inset-inline-start: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #38bdf8;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 10;
}

.btn-login-modern {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #1e3a8a 100%);
    background-size: 200% auto;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.4);
}

.btn-login-modern:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.5);
}

.lang-toggle-container {
    position: absolute;
    top: 30px;
    inset-inline-end: 30px;
}

.btn-lang-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 50px;
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 800;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

@media (max-width: 991px) {
    .login-main-wrapper {
        background: #0f172a;
    }

    .form-side {
        background: transparent;
    }

    .login-form-box {
        background: rgba(255, 255, 255, 0.95);
        padding: 50px 35px;
        border-radius: 35px;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
        max-width: 440px;
        width: 92%;
    }
}

/* 5. Lock Screen Specific Styles */
.lock-avatar-premium {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    padding: 5px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 0 auto 1.5rem;
    position: relative;
    border: 2px solid #f1f5f9;
}

.lock-avatar-premium img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.lock-avatar-initials {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
}

.lock-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #f0fdf4;
    color: #166534;
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.different-account {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 2rem;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.different-account:hover {
    color: #38bdf8;
}

/* 6. Utility Animations & Components */
.stat-item {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #38bdf8;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   MODULE: PERMISSIONS & SWITCHES
   ========================================================================== */
/* Global Utilities */
.radius-20 {
    border-radius: 6px !important;
}

.radius-15 {
    border-radius: 6px !important;
}

.shadow-pulse {
    animation: none !important;
    box-shadow: none !important;
}

/* Dashboard Tabs - Unified & Sharpened */
.premium-segmented-control {
    background: #f8fafc !important;
    padding: 6px !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    gap: 5px !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02) !important;
    border: 1px solid #e2e8f0 !important;
}

.premium-tab-btn {
    border: none !important;
    color: #64748b !important;
    font-weight: 600 !important;
    padding: 9px 20px !important;
    border-radius: 6px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: transparent !important;
    outline: none !important;
    cursor: pointer !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
}

.premium-tab-btn:hover:not(.active) {
    color: #3b82f6 !important;
    background: rgba(59, 130, 246, 0.08) !important;
}

.premium-tab-btn.active {
    color: #ffffff !important;
    background: #3b82f6 !important;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3) !important;
    font-weight: 700 !important;
}

html[dir="rtl"] .premium-tab-btn,
[data-textdirection="rtl"] .premium-tab-btn {
    flex-direction: row-reverse !important;
}

/* ==========================================================================
   Premium Page Components (Customer & Property Show Pages)
   ========================================================================== */
.header-customer-dark,
.header-property-dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15) !important;
    position: relative;
    overflow: hidden;
    padding: 25px 30px !important;
    border-radius: 2px !important;
}

.border-left-light-opacity {
    border-left: 1px solid rgba(255, 255, 255, 0.15) !important;
}

[data-textdirection="rtl"] .border-left-light-opacity {
    border-left: none !important;
    border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding-left: 0 !important;
    padding-right: 1rem !important;
}

/* Utilities */
.radius-10 {
    border-radius: 2px !important;
}

.radius-15 {
    border-radius: 2px !important;
}

.bg-light-primary-opacity {
    background-color: rgba(90, 141, 238, 0.1) !important;
}

.bg-light-success-opacity {
    background-color: rgba(40, 208, 148, 0.1) !important;
}

.bg-light-danger-opacity {
    background-color: rgba(255, 73, 97, 0.1) !important;
}

.bg-light-warning-opacity {
    background-color: rgba(255, 159, 67, 0.1) !important;
}

.bg-light-info-opacity {
    background-color: rgba(0, 207, 232, 0.1) !important;
}

.bg-light-dark-opacity {
    background-color: rgba(77, 82, 89, 0.1) !important;
}

.bg-light-blue-info {
    background-color: #f8fafc !important;
}

/* Data Grid System */
.data-grid-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 2px;
    border: 1px solid #f1f5f9;
    background: #fff;
    height: 100%;
    transition: all 0.2s ease;
}

.data-grid-item:hover {
    border-color: #5A8DEE !important;
    box-shadow: 0 5px 15px rgba(90, 141, 238, 0.15) !important;
    transform: translateY(-2px);
    z-index: 2;
    position: relative;
}

.data-grid-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    margin-right: 15px;
    flex-shrink: 0;
}

[data-textdirection="rtl"] .data-grid-icon {
    margin-right: 0;
    margin-left: 15px;
}

.data-grid-label {
    display: block;
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 2px;
    font-weight: 500;
}

.data-grid-value {
    display: block;
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

/* Borders & Dividers */
.border-left-primary-3 {
    border-left: 3px solid #5A8DEE !important;
}

.border-left-warning-3 {
    border-left: 3px solid #ff9f43 !important;
}

.border-dashed-premium {
    border: 1px dashed #e2e8f0 !important;
}

[data-textdirection="rtl"] .border-left-primary-3 {
    border-left: none !important;
    border-right: 3px solid #5A8DEE !important;
}

[data-textdirection="rtl"] .border-left-warning-3 {
    border-left: none !important;
    border-right: 3px solid #ff9f43 !important;
}

/* Sidebar Utilities */
.border-dashed-premium {
    border: 1px dashed rgba(90, 141, 238, 0.3) !important;
}

.border-right-light {
    border-right: 1px solid rgba(0, 0, 0, 0.05) !important;
}

[data-textdirection="rtl"] .border-right-light {
    border-right: none !important;
    border-left: 1px solid rgba(0, 0, 0, 0.05) !important;
}

[data-textdirection="rtl"] .text-right-rtl {
    text-align: right !important;
}

/* --- Premium Minimalist Nav Tabs --- */
.premium-nav-tabs {
    border-bottom: 2px solid #f1f3f4 !important;
    margin-bottom: 8px !important;
    padding: 0 1rem !important;
    background: #fff !important;
    margin-top: 0.5rem !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    /* Centered tabs navigation */
}

.premium-nav-tabs .nav-item {
    margin-bottom: 0 !important;
}

.premium-nav-tabs .nav-link {
    border: none !important;
    background: transparent !important;
    color: #64748b !important;
    font-weight: 600 !important;
    padding: 12px 20px !important;
    border-bottom: 2px solid transparent !important;
    transition: all 0.3s ease !important;
    border-radius: 0 !important;
    font-size: 1rem !important;
    /* Enlarge font size in main tabs to be larger than fields */
    box-shadow: none !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    flex-direction: row !important;
    /* Fix RTL icon issue globally for premium tabs */
    cursor: pointer !important;
}

.premium-nav-tabs .nav-link::after {
    display: none !important;
}

.premium-nav-tabs .nav-link i {
    font-size: 1.1rem;
    vertical-align: middle;
    margin-inline-end: 5px;
}

.premium-nav-tabs .nav-link:focus,
.premium-nav-tabs .nav-link:active {
    outline: none !important;
    box-shadow: none !important;
}

.premium-nav-tabs .nav-link:hover {
    color: #7367f0 !important;
    background-color: #f8f9fa !important;
    border-radius: 6px 6px 0 0 !important;
    cursor: pointer !important;
}

.premium-nav-tabs .nav-link.active {
    color: #7367f0 !important;
    border-bottom: 2px solid #7367f0 !important;
    background: transparent !important;
    font-weight: 700 !important;
}

/* --- PREMIUM QUICK SEARCH AREA --- */
.premium-quick-search-area {
    background-color: #f4f9ff !important;
    border-color: #d1e9ff !important;
}

/* ==========================================================================
   PREMIUM FINANCIAL SUMMARY REDESIGN
   ========================================================================== */
.payment-summary-card-premium {
    background: #ffffff;
    border-radius: 2px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.payment-summary-card-premium::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--premium-primary);
}

[data-textdirection="rtl"] .payment-summary-card-premium::before {
    left: auto;
    right: 0;
}

.summary-header-premium {
    padding: 20px;
    background: rgba(248, 250, 252, 0.5);
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Legendary Black & Yellow Tips Card */
.legendary-tips-card {
    background: linear-gradient(145deg, #1a1c23, #0f1014);
    border-radius: 12px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.legendary-tips-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.5);
}

.legendary-tips-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.legendary-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(245, 158, 11, 0.1);
}

.legendary-header i {
    color: #f59e0b;
    font-size: 1.2rem;
    margin-right: 10px;
    filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.5));
}

[data-textdirection="rtl"] .legendary-header i {
    margin-right: 0;
    margin-left: 10px;
}

.legendary-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.legendary-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legendary-list li {
    display: flex;
    align-items: flex-start;
    color: #cbd5e1;
    font-size: 0.85rem;
    margin-bottom: 12px;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.legendary-list li:hover {
    color: #f59e0b;
}

.legendary-list li i {
    color: #f59e0b;
    font-size: 0.75rem;
    margin-top: 4px;
    margin-right: 10px;
    flex-shrink: 0;
}

[data-textdirection="rtl"] .legendary-list li i {
    margin-right: 0;
    margin-left: 6px;
}

/* Premium Company Badge Style */
.premium-company-badge {
    display: inline-flex;
    align-items: center;
    background: #0f172a;
    /* Dark Navy/Black */
    color: #f59e0b;
    /* Yellow/Gold */
    padding: 6px 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.premium-company-badge i {
    margin-right: 8px;
    font-size: 0.9rem;
    color: #f59e0b;
}

[data-textdirection="rtl"] .premium-company-badge i {
    margin-right: 0;
    margin-left: 8px;
}

.premium-company-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
}

/* Premium Error Alerts */
.premium-error-alert {
    border-radius: 12px;
    border: none;
    border-right: 5px solid #ef4444;
    background: #fff;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.08);
}

[data-textdirection="ltr"] .premium-error-alert {
    border-right: none;
    border-left: 5px solid #ef4444;
}

.premium-warning-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.premium-warning-pill i {
    margin-right: 6px;
}

[data-textdirection="rtl"] .premium-warning-pill i {
    margin-right: 0;
    margin-left: 6px;
}

.summary-header-premium i {
    width: 36px;
    height: 36px;
    background: var(--premium-primary-soft);
    color: var(--premium-primary);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.summary-title-premium {
    font-weight: 800;
    font-size: 1rem;
    color: #1e293b;
}

.summary-body-premium {
    padding: 20px;
}

.summary-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.summary-stat-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}

.summary-stat-value {
    font-size: 1rem;
    font-weight: 800;
    color: #1e293b;
}

.financial-indicator-section {
    margin: 25px 0;
    padding: 15px;
    background: #f8fafc;
    border-radius: 2px;
    border: 1px dashed #e2e8f0;
}

.indicator-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: block;
    text-align: center;
}

.indicator-percentage {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--premium-success);
    display: block;
    text-align: center;
    margin-bottom: 5px;
}

/* Portfolio Styles */
.portfolio-section-premium {
    margin-top: 25px;
}

.portfolio-title-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.portfolio-title-text {
    font-weight: 800;
    font-size: 0.9rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cheque-portfolio-item {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 2px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.cheque-portfolio-item:hover {
    border-color: var(--premium-primary-soft);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateX(4px);
}

[data-textdirection="rtl"] .cheque-portfolio-item:hover {
    transform: translateX(-4px);
}

.cheque-portfolio-item.fully-used {
    background: #f8fafc;
    opacity: 0.8;
}

.cheque-item-left {
    display: flex;
    flex-direction: column;
}

.cheque-number-premium {
    font-weight: 800;
    font-size: 0.85rem;
    color: #1e293b;
}

.cheque-bank-premium {
    font-size: 0.7rem;
    color: #94a3b8;
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cheque-item-right {
    text-align: right;
}

.cheque-amount-total {
    font-weight: 700;
    font-size: 0.85rem;
    color: #64748b;
}

.cheque-amount-available {
    font-weight: 800;
    font-size: 0.8rem;
    color: var(--premium-success);
}

.summary-footer-premium {
    padding: 15px 20px;
    background: #fdfdfd;
    border-top: 1px solid #f1f5f9;
}

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

.footer-balance-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
}

.footer-balance-value {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--premium-danger);
}

/* Sticky Sidebar Fix */
.sticky-sidebar-premium {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 100px !important;
    z-index: 99 !important;
    align-self: flex-start !important;
}

.content-body,
section#basic-form-layouts {
    overflow: visible !important;
}

/* Financial Progress Bar */
.financial-progress-premium {
    height: 8px;
    background: #eef2f7;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 15px;
    display: flex;
}

.financial-progress-bar-premium {
    height: 100%;
}

.financial-progress-bar-paid {
    background-color: var(--premium-success);
}

.financial-progress-bar-cheques {
    background-color: var(--premium-warning);
    opacity: 0.75;
}

/* Legend Styles */
.financial-legend-premium {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 0.7rem;
    font-weight: 700;
}

.legend-item-premium {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-dot-premium {
    font-size: 6px;
    vertical-align: middle;
}

/* Portfolio Scrollable */
.linked-cheques-scrollable-premium {
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
}

/* Projected Balance Card */
.projected-balance-box-premium {
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    background: rgba(16, 185, 129, 0.04);
    border: 1px dashed rgba(16, 185, 129, 0.3);
    border-radius: 2px;
}

.projected-label-premium {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 4px;
    font-weight: 700;
}

.projected-value-premium {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--premium-success);
}

.projected-value-premium.negative {
    color: var(--premium-danger);
}

/* Cheque Details Pill */
.cheque-details-pill-premium {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #f8fafc;
    border-radius: 2px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.pill-info-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-grow: 1;
}

.pill-stat {
    display: flex;
    flex-direction: column;
    padding-right: 20px;
    border-right: 1px solid #e2e8f0;
}

[data-textdirection="rtl"] .pill-stat {
    padding-right: 0;
    padding-left: 20px;
    border-right: 0;
    border-left: 1px solid #e2e8f0;
}

.pill-label {
    font-size: 0.65rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pill-value {
    font-size: 0.9rem;
    font-weight: 800;
}

.pill-action-btn {
    border-radius: 8px !important;
    font-weight: 800 !important;
    padding: 6px 15px !important;
    white-space: nowrap;
}

/* Fully Paid Card */
.fully-paid-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    border: 1px solid var(--premium-success-soft);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.05);
}

.fully-paid-icon-wrapper {
    width: 50px;
    height: 50px;
    background: var(--premium-success-soft);
    color: var(--premium-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
}

.fully-paid-title {
    font-weight: 800;
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 5px;
}

.fully-paid-subtitle {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0;
}

/* ==========================================================================
   SMART BREAKDOWN & DIGITAL CHEQUE WALLET & LIVE PREVIEW
   ========================================================================== */
/* Smart Balance Breakdown */
.smart-balance-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.smart-balance-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

.breakdown-item.paid-item {
    background: #ecfdf5;
    color: #059669;
}

.breakdown-item.covered-item {
    background: #fffbeb;
    color: #d97706;
}

.breakdown-item.uncovered-item {
    background: #f1f5f9;
    color: #64748b;
}

.breakdown-item.uncovered-item.has-debt {
    background: #fef2f2;
    color: #dc2626;
    border-right: 3px solid #dc2626;
}

/* Triple Segment Progress Bar */
.financial-progress-premium.triple-segment {
    height: 12px;
    background: #f1f5f9;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
}

.financial-progress-bar-current-pulse {
    background: linear-gradient(90deg, #10b981, #34d399);
    animation: pulse-width 2s infinite alternate;
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.6);
    position: relative;
    z-index: 10;
}

.financial-progress-bar-current-pulse.pulse-blue {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    animation: pulse-width-blue 2s infinite alternate;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
    position: relative;
    z-index: 10;
}

.financial-progress-bar-cheques-striped {
    background: repeating-linear-gradient(45deg,
            #f59e0b,
            #f59e0b 10px,
            #fbbf24 10px,
            #fbbf24 20px);
    opacity: 0.85;
}

@keyframes pulse-width {
    0% {
        filter: brightness(1);
    }

    100% {
        filter: brightness(1.2);
    }
}

@keyframes pulse-width-blue {
    0% {
        filter: brightness(1);
    }

    100% {
        filter: brightness(1.2);
    }
}

/* Smart Assistant Box */
.smart-assistant-box {
    display: flex;
    gap: 12px;
    background: #eff6ff;
    border-right: 4px solid #3b82f6;
    border-radius: 8px;
    padding: 12px;
    font-size: 0.85rem;
    color: #1e3a8a;
    align-items: flex-start;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.smart-assistant-box.alert-state {
    background: #fef2f2;
    border-right: 4px solid #ef4444;
    color: #991b1b;
}

.assistant-icon {
    font-size: 1.2rem;
    margin-top: 2px;
}

/* Digital Cheque Wallet */
.digital-wallet-drawer {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 5px;
}

.cheque-card-premium {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    margin-top: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    position: relative;
    transition: all 0.3s ease;
}

.cheque-card-premium.selected-glow {
    border: 2px solid #10b981 !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.cheque-card-premium.fully-used-card {
    opacity: 0.65;
    background: #f8fafc;
}

.cheque-card-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cheque-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #cbd5e1;
    padding-bottom: 8px;
}

.bank-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #334155;
    font-size: 0.9rem;
}

.bank-icon {
    color: #94a3b8;
}

.cheque-number {
    font-family: monospace;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #475569;
}

.cheque-amount-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.cheque-amount-display.available {
    font-size: 0.85rem;
    margin-top: 4px;
}

.cheque-mini-progress {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    width: 100%;
}

.cheque-mini-progress .mini-progress-bar {
    height: 100%;
    background: #10b981;
    transition: width 0.3s ease;
}

/* Live Digital Cheque Preview */
.live-cheque-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.live-cheque-header {
    background: #f8fafc;
    padding: 10px 15px;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.live-cheque-canvas {
    padding: 15px;
    background: #f1f5f9;
    display: flex;
    justify-content: center;
}

.cheque-paper {
    width: 100%;
    background: repeating-linear-gradient(0deg,
            #fff,
            #fff 19px,
            #f1f5f9 20px);
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 15px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    border-left: 10px dashed #cbd5e1;
    color: #334155;
}

.cheque-paper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(#94a3b8 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
    pointer-events: none;
}

.cheque-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.85rem;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 5px;
}

.cheque-bank-name {
    font-weight: bold;
    color: #1e3a8a;
    font-size: 1rem;
}

.cheque-date .val {
    font-family: monospace;
    border-bottom: 1px dotted #94a3b8;
}

.cheque-pay-to {
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.cheque-pay-to .val {
    font-weight: bold;
    font-style: italic;
    border-bottom: 1px dotted #94a3b8;
    display: inline-block;
    min-width: 150px;
}

.cheque-amount-row {
    font-size: 0.85rem;
    background: #f8fafc;
    padding: 5px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 15px;
}

.cheque-amount-row .val {
    color: #059669;
}

.cheque-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 0.8rem;
}

.cheque-no .val {
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.cheque-signature {
    border-top: 1px solid #94a3b8;
    padding-top: 5px;
    width: 100px;
    text-align: center;
    color: #94a3b8;
    font-style: italic;
}

/* Maintenance Module Styles */
.maintenance-item-row {
    background-color: #f9fbfd;
    border-radius: 8px;
    padding: 15px 10px;
    margin-bottom: 15px;
    border: 1px solid #e1e5eb;
    transition: all 0.3s ease;
}

.maintenance-item-row:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: #d1d5db;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

/* Contract Clause Builder */
.cursor-move {
    cursor: move;
}

.clause-item {
    transition: all 0.2s;
}

.clause-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Premium Clause Library Styles */
.premium-clause-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 15px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    padding: 16px;
}

.premium-clause-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(135deg, #7367f0 0%, #9e95f5 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.premium-clause-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08), 0 6px 6px rgba(0, 0, 0, 0.05);
    border-color: rgba(115, 103, 240, 0.2);
}

.premium-clause-card:hover::before {
    opacity: 1;
}

.premium-clause-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
    padding-bottom: 10px;
}

.premium-clause-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #4b4b4b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.premium-clause-icon {
    color: #7367f0;
    font-size: 1.1rem;
}

html[dir="rtl"] .premium-clause-title {
    margin-right: 0;
}

html[dir="rtl"] .premium-clause-icon {
    margin-left: 8px;
}

html[dir="ltr"] .premium-clause-icon {
    margin-right: 8px;
}

.premium-clause-btn {
    background: rgba(40, 199, 111, 0.1);
    color: #28c76f;
    border: 1px solid rgba(40, 199, 111, 0.2);
    border-radius: 8px;
    padding: 6px 14px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    outline: none;
}

.premium-clause-btn:hover {
    background: #28c76f;
    color: #ffffff;
    border-color: #28c76f;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(40, 199, 111, 0.3);
}

.premium-clause-content {
    font-size: 0.95rem;
    color: #6e6b7b;
    line-height: 1.6;
    text-align: right;
    width: 100%;
    direction: rtl;
    margin: 0;
}

.clause-library-container {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 5px;
    padding-left: 5px;
    scrollbar-width: thin;
    scrollbar-color: #7367f0 rgba(0, 0, 0, 0.05);
}

.clause-library-container::-webkit-scrollbar {
    width: 6px;
}

.clause-library-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 10px;
}

.clause-library-container::-webkit-scrollbar-thumb {
    background: #d8d6f9;
    border-radius: 10px;
}

.clause-library-container::-webkit-scrollbar-thumb:hover {
    background: #7367f0;
}

/* Modern Smart Tags Tabs Styling (iOS-Style Segmented Control Pills) */
.smart-tags-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 10px !important;
}

.smart-tags-tabs {
    border: none !important;
    background: #f1f5f9 !important;
    /* light slate background */
    padding: 4px !important;
    border-radius: 30px !important;
    /* pill container */
    display: inline-flex !important;
    justify-content: center !important;
    margin: 12px auto !important;
    /* centered horizontally */
    align-items: center !important;
    width: auto !important;
    /* only occupies as much space as the tabs need */
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06) !important;
}

.smart-tags-tabs .nav-item {
    margin: 0 !important;
}

.smart-tags-tabs .nav-link {
    border: none !important;
    background: transparent !important;
    color: #475569 !important;
    font-weight: 700 !important;
    padding: 8px 20px !important;
    border-radius: 30px !important;
    font-size: 0.95rem !important;
    transition: all 0.25s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
}

.smart-tags-tabs .nav-link:focus,
.smart-tags-tabs .nav-link:active {
    outline: none !important;
    box-shadow: none !important;
}

.smart-tags-tabs .nav-link:hover {
    color: #7367f0 !important;
    background-color: transparent !important;
}

.smart-tags-tabs .nav-link.active {
    background: #ffffff !important;
    /* white pill for active tab */
    color: #7367f0 !important;
    box-shadow: 0 4px 10px rgba(115, 103, 240, 0.15) !important;
}

.smart-tags-tabs .nav-link i {
    margin-inline-end: 5px;
}

/* Tag Cards Styling */
.smart-tag-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    height: 100%;
}

.smart-tag-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.smart-tag-card.copied-success {
    border-color: #28c76f !important;
    background-color: rgba(40, 199, 111, 0.05) !important;
    transform: scale(0.98);
}

.tag-label {
    font-size: 0.98rem;
    font-weight: 600;
}

.tag-code {
    font-size: 0.95rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.bg-light-primary {
    background-color: rgba(115, 103, 240, 0.1) !important;
}

.text-primary {
    color: #7367f0 !important;
}

.bg-light-success {
    background-color: rgba(40, 199, 111, 0.1) !important;
}

.text-success {
    color: #28c76f !important;
}

.bg-light-warning {
    background-color: rgba(255, 159, 67, 0.1) !important;
}

.text-warning {
    color: #ff9f43 !important;
}

.bg-light-danger {
    background-color: rgba(234, 84, 85, 0.1) !important;
}

.text-danger {
    color: #ea5455 !important;
}

/* Custom Smart Tags Layout Overrides (Dashed Pill Alert) */
.smart-tags-hint-bar {
    background: linear-gradient(135deg, rgba(115, 103, 240, 0.06) 0%, rgba(115, 103, 240, 0.02) 100%) !important;
    border: 1px dashed rgba(115, 103, 240, 0.25) !important;
    border-radius: 12px !important;
    padding: 12px 20px !important;
    margin: 16px 16px 8px 16px !important;
    /* Margin around it to float inside the card */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.smart-tags-hint-bar p {
    color: #7367f0 !important;
    font-size: 0.98rem !important;
    font-weight: 700 !important;
    margin-bottom: 0 !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.smart-tags-hint-bar p i {
    color: #7367f0 !important;
    font-size: 1.15rem !important;
    margin-inline-end: 0 !important;
    animation: pulse-info 2s infinite !important;
}

@keyframes pulse-info {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.smart-tags-collapse-body {
    background-color: #fff !important;
    border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
}

.smart-tags-content {
    padding: 12px 16px 8px 16px !important;
}

/* Tab Error Indicator */
.tab-error-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background-color: #ff4d4d;
    border-radius: 50%;
    box-shadow: 0 0 8px #ff4d4d;
    animation: pulse-red 1.5s infinite;
    z-index: 10;
}

.premium-tab-btn {
    position: relative !important;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(255, 77, 77, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0);
    }
}

/* ==========================================================================
   CONTRACT DURATION & DATES STYLING
   ========================================================================== */
.contract-duration-wrapper {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.duration-label-badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(59, 130, 246, 0.08);
    color: #1e293b;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid rgba(59, 130, 246, 0.15);
    white-space: nowrap;
}

.duration-label-badge i {
    font-size: 0.95rem;
}

.duration-label-badge span {
    white-space: nowrap;
}

.contract-duration-wrapper .date-range-badge {
    display: inline-flex;
    align-items: center;
    background-color: #f8fafc;
    border-radius: 20px;
    padding: 4px 10px;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
}

.contract-duration-wrapper .date-range-badge .date-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.5px;
}

.contract-duration-wrapper .date-range-badge .date-arrow {
    margin: 0 8px;
    font-size: 0.8rem;
    opacity: 0.7;
}

[data-textdirection="rtl"] .duration-label-badge i,
[dir="rtl"] .duration-label-badge i {
    margin-left: 6px;
    margin-right: 0 !important;
}

[data-textdirection="ltr"] .duration-label-badge i,
[dir="ltr"] .duration-label-badge i {
    margin-right: 6px;
    margin-left: 0 !important;
}

/* ========================================================================
   PLATINUM DASHBOARD - UNIFIED PAGES STYLING (pages.css)
   Consolidates: Properties, Contracts, Cheques, Payments, Settings, etc.
   Supports: LTR & RTL in a single file.
   ======================================================================== */
:root {
    --premium-primary: #3b82f6;
    --premium-primary-soft: rgba(59, 130, 246, 0.1);
    --premium-success: #10b981;
    --premium-success-soft: rgba(16, 185, 129, 0.1);
    --premium-warning: #f59e0b;
    --premium-warning-soft: rgba(245, 158, 11, 0.1);
    --premium-danger: #ef4444;
    --premium-danger-soft: rgba(239, 68, 68, 0.1);
    --premium-info: #06b6d4;
    --premium-info-soft: rgba(6, 182, 212, 0.1);
    --premium-slate: #1e293b;
    --premium-slate-light: #64748b;
    /* Legacy Sync */
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
}

/* ==========================================================================
   GLOBAL PREMIUM COMPONENTS (Unified)
   ========================================================================== */
/* Removed redundant .premium-card - using system-style.css instead */
.premium-mandatory-header {
    background: #ffffff !important;
    color: #1e293b !important;
    font-weight: 700 !important;
    padding: 10px 20px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
}

[dir="rtl"] .premium-mandatory-header i,
html[dir="rtl"] .premium-mandatory-header i,
[data-textdirection="rtl"] .premium-mandatory-header i {
    margin-left: 10px !important;
    margin-right: 0 !important;
}

[dir="ltr"] .premium-mandatory-header i,
html[dir="ltr"] .premium-mandatory-header i {
    margin-right: 10px !important;
    margin-left: 0 !important;
}

/* Global Premium Buttons (Unified to Minimalist White Style) */
.btn-premium-save,
button.btn-premium-save,
.btn-premium-add,
.btn-premium-edit,
.btn-premium-back,
a.btn-premium-back {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 0 24px !important;
    height: 42px !important;
    margin: 0 4px !important;
    border-radius: 4px !important;
    /* Unified rounded style matching cancel button */
    font-weight: 700 !important;
    font-size: 1rem !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    cursor: pointer !important;
    text-decoration: none !important;
    background: #ffffff !important;
    color: #475569 !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
}

.btn-premium-save:hover,
button.btn-premium-save:hover,
.btn-premium-add:hover,
.btn-premium-edit:hover,
.btn-premium-back:hover,
.btn-premium-secondary:hover,
.btn-premium-cancel:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
    background: #ffffff !important;
    color: #1e293b !important;
    border-color: #5A8DEE !important;
}

.btn-premium-save i,
.btn-premium-add i,
.btn-premium-edit i,
.btn-premium-back i {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.btn-premium-save:hover i,
.btn-premium-add:hover i,
.btn-premium-edit:hover i,
.btn-premium-back:hover i {
    transform: translateX(4px);
}

[data-textdirection="rtl"] .btn-premium-save:hover i,
[data-textdirection="rtl"] .btn-premium-add:hover i,
[data-textdirection="rtl"] .btn-premium-edit:hover i,
[data-textdirection="rtl"] .btn-premium-back:hover i {
    transform: translateX(-4px);
}

.btn-premium-save.shadow-pulse,
.btn-premium-add.shadow-pulse {
    animation: pulse-indigo 2.5s infinite;
}

/* ==========================================================================
   MODULE: PROPERTIES (��� ��� ��������)
   ========================================================================== */
.header-bg-shape {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

[dir="ltr"] .header-bg-shape {
    right: auto;
    left: -50px;
}

/* Table Widths */
.col-owner-width {
    width: 60% !important;
}

.col-percentage-width {
    width: 15% !important;
}

.col-primary-width {
    width: 12% !important;
}

.col-actions-width {
    width: 13% !important;
}

/* Standardized Table Styling for Properties & Customers */
.premium-table thead th {
    background-color: #f8fafc !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    color: #475569 !important;
    padding: 15px 20px !important;
    vertical-align: middle !important;
    border-bottom: 2px solid #f1f5f9 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.premium-table tbody td {
    padding: 15px 20px !important;
    vertical-align: middle !important;
    color: #1e293b !important;
    font-weight: 500 !important;
}

.th-w-20 {
    width: 20% !important;
}

.th-w-25 {
    width: 25% !important;
}

.th-w-15 {
    width: 15% !important;
}

/* Heading Elements Icons Scaling */
.heading-elements ul li a i {
    font-size: 11px !important;
    color: #94a3b8 !important;
    transition: color 0.3s ease;
}

.heading-elements ul li a:hover i {
    color: #475569 !important;
}

.th-w-10 {
    width: 10% !important;
}

.th-w-actions {
    width: 30px !important;
}

.header-trash-icon {
    margin-inline-start: 4px !important;
    font-size: 1.1rem !important;
    color: #94a3b8 !important;
}

.btn-trash-cell {
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

/* ==========================================================================
   MODULE: CONTRACTS (��� ��� ����)
   ========================================================================== */
.contract-text-viewer {
    line-height: 1.7 !important;
    color: #334155 !important;
    background: #fff !important;
    border-radius: 12px !important;
    padding: 25px !important;
}

[dir="rtl"] .border-primary-left,
html[dir="rtl"] .border-primary-left,
[data-textdirection="rtl"] .border-primary-left {
    border-right: 4px solid #7367f0 !important;
    border-left: 0 !important;
}

[dir="ltr"] .border-primary-left,
html[dir="ltr"] .border-primary-left {
    border-left: 4px solid #7367f0 !important;
    border-right: 0 !important;
}

/* Premium Badge Hint (Insurance Locked) */
.premium-badge-hint {
    background-color: rgba(239, 68, 68, 0.08) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    padding: 6px 14px !important;
    border-radius: 50px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.05) !important;
    white-space: nowrap !important;
}

.premium-badge-hint i {
    font-size: 13px !important;
    animation: premium-pulse-lock 2s infinite !important;
}

@keyframes premium-pulse-lock {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

[data-textdirection="rtl"] .premium-badge-hint {
    letter-spacing: 0 !important;
}

/* ==========================================================================
   MODULE: CHEQUES (��� ���`� ����)
   ========================================================================== */
.cheque-summary-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    border-left: 5px solid #ef4444;
    padding: 24px;
}

[dir="rtl"] .cheque-summary-card {
    border-left: 1px solid #f1f5f9;
    border-right: 5px solid #ef4444;
}

/* ==========================================================================
   MODULE: PAYMENTS (��� ����������)
   ========================================================================== */
.payment-summary-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    border-left: 5px solid #10b981;
    padding: 24px;
}

[dir="rtl"] .payment-summary-card,
html[dir="rtl"] .payment-summary-card,
[data-textdirection="rtl"] .payment-summary-card {
    border-left: 1px solid #f1f5f9;
    border-right: 5px solid #10b981;
}

/* Property Mandatory Section (Matched to Contract Insurance Style) */
.property-mandatory-section {
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    margin: 30px 0 !important;
    background: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

.property-mandatory-header {
    background: #f8fafc !important;
    padding: 12px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.property-mandatory-header .title-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: #1e293b !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
}

.property-mandatory-header i {
    font-size: 1.15rem !important;
    color: #475569 !important;
}

.property-mandatory-body {
    padding: 25px 20px !important;
}

[data-textdirection="rtl"] .property-mandatory-header .title-wrapper {
    gap: 12px !important;
}

/* Sub-header inside mandatory body (e.g. Cheque Details) */
.mandatory-sub-header {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding-bottom: 8px !important;
    margin-bottom: 15px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.mandatory-sub-header i {
    font-size: 1.1rem !important;
    color: #3b82f6 !important;
    /* text-primary */
}

.mandatory-sub-header h6 {
    color: #3b82f6 !important;
    /* text-primary */
    margin: 0 !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
}

.mandatory-sub-header small {
    color: #64748b !important;
    /* text-muted */
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    margin-right: 5px !important;
}

[data-textdirection="rtl"] .mandatory-sub-header small {
    margin-right: 0 !important;
    margin-left: 5px !important;
}

/* ==========================================================================
   MODULE: SETTINGS (��� �������������� ��� �����& ��) - Scoped Styles Only
   ========================================================================== */
/* Use global .premium-card and .premium-mandatory-header from system-style.css */
.premium-card {
    margin-bottom: 17px !important;
}

.premium-mandatory-header {
    background: #f8fafc !important;
    padding: 12px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid #e2e8f0 !important;
    font-size: 1.58rem !important;
    font-weight: 800 !important;
    color: #1e293b !important;
}

.premium-mandatory-header .title-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: #1e293b !important;
    font-weight: 800 !important;
    font-size: 1.27rem !important;
}

.premium-mandatory-header i {
    font-size: 1.45rem !important;
    color: #475569 !important;
}

[data-textdirection="rtl"] .premium-mandatory-header .title-wrapper {
    gap: 12px !important;
}

.premium-form-group {
    margin-bottom: 27px !important;
    position: relative !important;
}

.premium-mandatory-body .row,
form.ajax-form .row {
    margin-bottom: 22px !important;
}

.error-text {
    position: relative !important;
    margin-top: 4px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    display: block !important;
    word-wrap: break-word !important;
    white-space: normal !important;
    animation: premiumFadeInUp 0.3s ease-out !important;
    z-index: 10 !important;
}

[dir="rtl"] .error-text,
html[dir="rtl"] .error-text,
[data-textdirection="rtl"] .error-text {
    text-align: right !important;
    padding-right: 2px !important;
    direction: rtl !important;
}

/* Static error text for titles or sections where absolute positioning is not suitable */
.premium-section-title .error-text {
    position: static !important;
    display: inline-block !important;
    width: auto !important;
    margin-right: 10px !important;
    margin-left: 10px !important;
    animation: none !important;
}

[dir="ltr"] .error-text,
html[dir="ltr"] .error-text {
    text-align: left !important;
    padding-left: 2px !important;
    direction: ltr !important;
}

/* Special styling for permissions error chip in section titles */
.premium-error-alert-chip {
    background-color: rgba(255, 73, 97, 0.1) !important;
    color: #ff4961 !important;
    border: 1px solid rgba(255, 73, 97, 0.3) !important;
    padding: 5px 15px !important;
    border-radius: 30px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    display: none;
    /* Hidden by default until text is filled */
    box-shadow: 0 4px 10px rgba(255, 73, 97, 0.15) !important;
    animation: premiumShake 0.5s ease-in-out !important;
}

.premium-error-alert-chip:not(:empty) {
    display: inline-block !important;
}

@keyframes premiumShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Global Hover Animation for Cancel/Close Icons */
.premium-modal-close:hover i,
.btn-premium-secondary:hover i {
    transform: rotate(90deg) !important;
    transition: transform 0.3s ease-in-out !important;
}

.premium-modal-close i,
.btn-premium-secondary i {
    transition: transform 0.3s ease-in-out !important;
}

/* Required Asterisk Styling */
label .text-danger,
.premium-label .text-danger {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin-left: 2px;
    margin-right: 2px;
}

@keyframes premiumFadeInUp {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.field-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
}

.field-header i {
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    font-size: 0.9rem !important;
    background: var(--premium-primary-soft) !important;
    color: var(--premium-primary) !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03) !important;
}

/* Contextual Icon Colors */
.field-header i.fa-font,
.field-header i.fa-language {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #3b82f6 !important;
}

.field-header i.fa-facebook-f {
    background: rgba(24, 119, 242, 0.1) !important;
    color: #1877f2 !important;
}

.field-header i.fa-twitter {
    background: rgba(29, 161, 242, 0.1) !important;
    color: #1da1f2 !important;
}

.field-header i.fa-instagram {
    background: rgba(225, 48, 108, 0.1) !important;
    color: #e1306c !important;
}

.field-header i.fa-youtube {
    background: rgba(255, 0, 0, 0.1) !important;
    color: #ff0000 !important;
}

.field-header i.fa-phone,
.field-header i.fa-mobile-alt,
.field-header i.fa-whatsapp {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #10b981 !important;
}

.field-header i.fa-envelope,
.field-header i.fa-envelope-open-text {
    background: rgba(6, 182, 212, 0.1) !important;
    color: #06b6d4 !important;
}

.premium-form-group:focus-within .field-header i {
    transform: scale(1.1) rotate(5deg) !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1) !important;
}

.field-header label {
    margin: 0 !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Global double-border fix moved to system-style.css for universal support */
.identity-summary-card {
    background: #ffffff !important;
    border-radius: 2px !important;
    padding: 30px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #f1f5f9 !important;
}

.summary-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 25px !important;
    padding-bottom: 15px !important;
    border-bottom: 2px dashed #f1f5f9 !important;
}

.summary-header i {
    font-size: 1.5rem !important;
    color: var(--premium-primary) !important;
}

.summary-title {
    font-weight: 800 !important;
    font-size: 1.2rem !important;
    color: #1e293b !important;
}

/* Save Button Enhancement */
.btn-premium-save {
    background: linear-gradient(135deg, var(--premium-primary) 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 35px !important;
    border-radius: 2px !important;
    font-weight: 800 !important;
    box-shadow: 0 10px 20px var(--premium-primary-soft) !important;
}

.btn-premium-save:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 15px 30px var(--premium-primary-soft) !important;
}

/* ==========================================================================
   MODULE: DASHBOARD HOME (��� �����`���`��)
   ========================================================================== */
.welcome-section {
    background: url('https://www.transparenttextures.com/patterns/cubes.png'), linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 6px;
    padding: 2.5rem 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 15px 30px rgba(67, 97, 238, 0.2);
    color: white;
    position: relative;
    overflow: hidden;
}

.welcome-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
}

[dir="rtl"] .welcome-section::after,
html[dir="rtl"] .welcome-section::after,
[data-textdirection="rtl"] .welcome-section::after {
    right: auto;
    left: -10%;
}

.welcome-section .welcome-title {
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.welcome-section .welcome-text {
    color: rgba(255, 255, 255, 0.8) !important;
    max-width: 500px;
    line-height: 1.7 !important;
    margin-bottom: 40px !important;
}

.welcome-date {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Premium Tabs (Segmented Control Style) */
.premium-tabs-wrapper {
    background: #f8f9fa;
    padding: 6px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 2rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.custom-pills .nav-link {
    border-radius: 6px;
    padding: 12px 30px;
    font-weight: 600;
    color: #6c757d;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin: 0 4px;
}

.custom-pills .nav-link:hover {
    color: var(--primary-color);
}

.custom-pills .nav-link.active {
    background: #ffffff;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Premium Breadcrumb */
.premium-breadcrumb {
    background: transparent !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
}

.premium-breadcrumb .breadcrumb-item a {
    color: var(--premium-primary) !important;
    font-weight: 600 !important;
}

.premium-breadcrumb .breadcrumb-item.active {
    color: #64748b !important;
}

/* Minimalist Premium Stat Cards (Updated to match requested screenshot) */
.premium-stat-card {
    background: #ffffff !important;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%2394a3b8' fill-opacity='0.07' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='1'/%3E%3C/g%3E%3C/svg%3E") !important;
    border-radius: 2px !important;
    padding: 1.5rem !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 100px !important;
}

.premium-stat-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(67, 97, 238, 0.3) !important;
}

.premium-stat-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
}

.stat-content {
    display: flex !important;
    flex-direction: column !important;
    z-index: 2 !important;
}

.stat-value {
    font-size: 2.1rem !important;
    /* Increased by 3px */
    font-weight: 800 !important;
    color: #1e293b !important;
    line-height: 1.2 !important;
    margin-bottom: 0.1rem !important;
}

.stat-title {
    font-size: 1.05rem !important;
    /* Increased by 3px */
    font-weight: 600 !important;
    color: #64748b !important;
    margin: 0 !important;
}

/* Icon Blob Container */
.stat-icon-wrapper {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    /* Made Circular */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 2 !important;
}

.stat-icon-wrapper i {
    font-size: 1.6rem !important;
    /* Increased by 3px */
}

/* Contextual Colors for Blobs and Icons */
.card-contracts .stat-icon-wrapper {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #3b82f6 !important;
}

.card-active .stat-icon-wrapper {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #10b981 !important;
}

.card-revenue .stat-icon-wrapper {
    background: rgba(6, 182, 212, 0.1) !important;
    color: #06b6d4 !important;
}

.card-expiring .stat-icon-wrapper {
    background: rgba(245, 158, 11, 0.1) !important;
    color: #f59e0b !important;
}

/* Remove old blob/floating icon styles */
.stat-icon-blob,
.stat-icon-floating {
    display: none !important;
}

.premium-stat-card::before {
    display: none !important;
}

/* Chart Card */
.premium-chart-card {
    border-radius: 6px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    border: none;
    padding: 1rem;
    background: #fff;
}

.premium-chart-card .card-header {
    background: transparent;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    padding-bottom: 1.5rem;
}

.premium-chart-card .card-title {
    font-weight: 700;
    color: #2d3436;
}

/* Simplified Animations */
.animate-up {
    opacity: 1;
    transform: none;
    transition: none !important;
    animation: none !important;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Company Identity Banner */
.company-identity-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    border-radius: 2px !important;
    border: none;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.25);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    color: #ffffff;
}

.company-identity-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0) 70%);
    border-radius: 50%;
}

.company-identity-banner:hover {
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35);
    transform: translateY(-5px);
}

.company-logo-frame {
    width: 70px;
    height: 70px;
    border-radius: 2px !important;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.company-logo-frame img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.company-initials {
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.welcome-text-premium {
    font-weight: 800;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.welcome-text-premium span.text-primary {
    color: #38bdf8 !important;
    /* Brighter blue for contrast */
}

.company-name-subtitle {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7) !important;
    letter-spacing: 0.5px;
}

.welcome-date-section .welcome-date {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.welcome-date-section .welcome-date i {
    color: #38bdf8 !important;
}

/* ==========================================================================
   MODULE: LOGIN & LOCK SCREEN (Scoped to Auth Container)
   ========================================================================== */
/* ==========================================================================
   MODULE: LOGIN & LOCK SCREEN (Premium Architecture)
   ========================================================================== */
/* 1. Global Reset for Auth Pages */
.login-main-wrapper~.header-navbar,
.login-main-wrapper~.footer,
.login-main-wrapper~.main-menu {
    display: none !important;
}

/* 2. Main Layout Container */
.login-main-wrapper {
    display: flex;
    width: 100%;
    height: 100vh;
    background: #0f172a;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    overflow: hidden;
}

[dir="rtl"] .login-main-wrapper {
    direction: rtl;
}

/* 3. Visual Content (Welcome Side) */
.welcome-side {
    background: url('../images/carbon-fibre.png'), url('../images/mjk/background.jpg') no-repeat center center;
    background-size: auto, cover;
    flex: 1;
    display: none;
    flex-direction: column;
    justify-content: flex-end;
    padding: 60px 8%;
    color: white;
    position: relative;
    z-index: 2;
}

.welcome-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #0f172a 0%, rgba(15, 23, 42, 0.4) 60%, transparent 100%);
    z-index: 1;
}

.welcome-side::after {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0) 70%);
    border-radius: 50%;
    z-index: 1;
}

[dir="rtl"] .welcome-side::after {
    right: auto;
    left: -10%;
}

.welcome-content-premium {
    position: relative;
    z-index: 3;
    animation: fadeInUp 1s ease-out;
}

.badge-welcome {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(56, 189, 248, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
}

.login-main-wrapper .welcome-title {
    font-weight: 900 !important;
    margin-bottom: 20px !important;
    line-height: 1.1 !important;
    letter-spacing: -2px !important;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.login-main-wrapper .welcome-text {
    color: rgba(255, 255, 255, 0.8) !important;
    max-width: 500px;
    line-height: 1.7 !important;
    margin-bottom: 40px !important;
}

@media (min-width: 992px) {
    .welcome-side {
        display: flex;
    }
}

/* 4. Form Side */
.form-side {
    position: relative;
    background: white;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    z-index: 5;
}

@media (min-width: 992px) {
    .form-side {
        width: 480px;
        box-shadow: -10px 0 50px rgba(0, 0, 0, 0.2);
    }
}

.login-form-box {
    width: 100%;
    max-width: 360px;
}

.brand-logo-modern {
    margin-bottom: 40px;
    text-align: center;
}

.brand-logo-modern img {
    max-height: 140px;
    width: auto;
}

.form-header-modern {
    text-align: center;
    margin-bottom: 30px;
}

.form-header-modern h2 {
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 8px;
}

.form-group-modern {
    margin-bottom: 32px;
    width: 100%;
}

.form-label-modern {
    display: block;
    font-weight: 700;
    color: #1e3a8a;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.login-options-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    margin-bottom: 30px;
}

.remember-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    color: #64748b;
}

.remember-modern input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #38bdf8;
    cursor: pointer;
}

.forgot-modern {
    font-weight: 700;
    color: #38bdf8;
    text-decoration: none;
    transition: all 0.3s;
}

.forgot-modern:hover {
    color: #1e3a8a;
    text-decoration: underline;
}

.form-control-modern {
    width: 100%;
    background: #f8fafc;
    border: 2px solid #f1f5f9;
    border-radius: 6px;
    padding: 16px 20px;
    padding-inline-start: 48px;
    color: #1e293b;
    transition: all 0.3s;
}

.form-control-modern:focus {
    background: white;
    border-color: #38bdf8;
    box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.1);
    outline: none;
}

.input-container-modern {
    position: relative;
}

.input-icon-modern {
    position: absolute;
    inset-inline-start: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #38bdf8;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 10;
}

.btn-login-modern {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #1e3a8a 100%);
    background-size: 200% auto;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.4);
}

.btn-login-modern:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.5);
}

.lang-toggle-container {
    position: absolute;
    top: 30px;
    inset-inline-end: 30px;
}

.btn-lang-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 50px;
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 800;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

@media (max-width: 991px) {
    .login-main-wrapper {
        background: #0f172a;
    }

    .form-side {
        background: transparent;
    }

    .login-form-box {
        background: rgba(255, 255, 255, 0.95);
        padding: 50px 35px;
        border-radius: 35px;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
        max-width: 440px;
        width: 92%;
    }
}

/* 5. Lock Screen Specific Styles */
.lock-avatar-premium {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    padding: 5px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 0 auto 1.5rem;
    position: relative;
    border: 2px solid #f1f5f9;
}

.lock-avatar-premium img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.lock-avatar-initials {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
}

.lock-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #f0fdf4;
    color: #166534;
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.different-account {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 2rem;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.different-account:hover {
    color: #38bdf8;
}

/* 6. Utility Animations & Components */
.stat-item {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #38bdf8;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   MODULE: PERMISSIONS & SWITCHES
   ========================================================================== */
/* Global Utilities */
.radius-20 {
    border-radius: 6px !important;
}

.radius-15 {
    border-radius: 6px !important;
}

.shadow-pulse {
    animation: none !important;
    box-shadow: none !important;
}

/* Dashboard Tabs - Unified & Sharpened */
.premium-segmented-control {
    background: #f8fafc !important;
    padding: 6px !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    gap: 5px !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02) !important;
    border: 1px solid #e2e8f0 !important;
}

.premium-tab-btn {
    border: none !important;
    color: #64748b !important;
    font-weight: 600 !important;
    padding: 9px 20px !important;
    border-radius: 6px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: transparent !important;
    outline: none !important;
    cursor: pointer !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
}

.premium-tab-btn:hover:not(.active) {
    color: #3b82f6 !important;
    background: rgba(59, 130, 246, 0.08) !important;
}

.premium-tab-btn.active {
    color: #ffffff !important;
    background: #3b82f6 !important;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3) !important;
    font-weight: 700 !important;
}

html[dir="rtl"] .premium-tab-btn,
[data-textdirection="rtl"] .premium-tab-btn {
    flex-direction: row-reverse !important;
}

/* ==========================================================================
   Premium Page Components (Customer & Property Show Pages)
   ========================================================================== */
.header-customer-dark,
.header-property-dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15) !important;
    position: relative;
    overflow: hidden;
    padding: 25px 30px !important;
    border-radius: 2px !important;
}

.border-left-light-opacity {
    border-left: 1px solid rgba(255, 255, 255, 0.15) !important;
}

[data-textdirection="rtl"] .border-left-light-opacity {
    border-left: none !important;
    border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding-left: 0 !important;
    padding-right: 1rem !important;
}

/* Utilities */
.radius-10 {
    border-radius: 2px !important;
}

.radius-15 {
    border-radius: 2px !important;
}

.bg-light-primary-opacity {
    background-color: rgba(90, 141, 238, 0.1) !important;
}

.bg-light-success-opacity {
    background-color: rgba(40, 208, 148, 0.1) !important;
}

.bg-light-danger-opacity {
    background-color: rgba(255, 73, 97, 0.1) !important;
}

.bg-light-warning-opacity {
    background-color: rgba(255, 159, 67, 0.1) !important;
}

.bg-light-info-opacity {
    background-color: rgba(0, 207, 232, 0.1) !important;
}

.bg-light-dark-opacity {
    background-color: rgba(77, 82, 89, 0.1) !important;
}

.bg-light-blue-info {
    background-color: #f8fafc !important;
}

/* Data Grid System */
.data-grid-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 2px;
    border: 1px solid #f1f5f9;
    background: #fff;
    height: 100%;
    transition: all 0.2s ease;
}

.data-grid-item:hover {
    border-color: #5A8DEE !important;
    box-shadow: 0 5px 15px rgba(90, 141, 238, 0.15) !important;
    transform: translateY(-2px);
    z-index: 2;
    position: relative;
}

.data-grid-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    margin-right: 15px;
    flex-shrink: 0;
}

[data-textdirection="rtl"] .data-grid-icon {
    margin-right: 0;
    margin-left: 15px;
}

.data-grid-label {
    display: block;
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 2px;
    font-weight: 500;
}

.data-grid-value {
    display: block;
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

/* Borders & Dividers */
.border-left-primary-3 {
    border-left: 3px solid #5A8DEE !important;
}

.border-left-warning-3 {
    border-left: 3px solid #ff9f43 !important;
}

.border-dashed-premium {
    border: 1px dashed #e2e8f0 !important;
}

[data-textdirection="rtl"] .border-left-primary-3 {
    border-left: none !important;
    border-right: 3px solid #5A8DEE !important;
}

[data-textdirection="rtl"] .border-left-warning-3 {
    border-left: none !important;
    border-right: 3px solid #ff9f43 !important;
}

/* Sidebar Utilities */
.border-dashed-premium {
    border: 1px dashed rgba(90, 141, 238, 0.3) !important;
}

.border-right-light {
    border-right: 1px solid rgba(0, 0, 0, 0.05) !important;
}

[data-textdirection="rtl"] .border-right-light {
    border-right: none !important;
    border-left: 1px solid rgba(0, 0, 0, 0.05) !important;
}

[data-textdirection="rtl"] .text-right-rtl {
    text-align: right !important;
}

/* --- Premium Minimalist Nav Tabs --- */
.premium-nav-tabs {
    border-bottom: 2px solid #f1f3f4 !important;
    margin-bottom: 8px !important;
    padding: 0 1rem !important;
    background: #fff !important;
    margin-top: 0.5rem !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    /* Centered tabs navigation */
}

.premium-nav-tabs .nav-item {
    margin-bottom: 0 !important;
}

.premium-nav-tabs .nav-link {
    border: none !important;
    background: transparent !important;
    color: #64748b !important;
    font-weight: 600 !important;
    padding: 12px 20px !important;
    border-bottom: 2px solid transparent !important;
    transition: all 0.3s ease !important;
    border-radius: 0 !important;
    font-size: 1rem !important;
    /* Enlarge font size in main tabs to be larger than fields */
    box-shadow: none !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    flex-direction: row !important;
    /* Fix RTL icon issue globally for premium tabs */
    cursor: pointer !important;
}

.premium-nav-tabs .nav-link::after {
    display: none !important;
}

.premium-nav-tabs .nav-link i {
    font-size: 1.1rem;
    vertical-align: middle;
    margin-inline-end: 5px;
}

.premium-nav-tabs .nav-link:focus,
.premium-nav-tabs .nav-link:active {
    outline: none !important;
    box-shadow: none !important;
}

.premium-nav-tabs .nav-link:hover {
    color: #7367f0 !important;
    background-color: #f8f9fa !important;
    border-radius: 6px 6px 0 0 !important;
    cursor: pointer !important;
}

.premium-nav-tabs .nav-link.active {
    color: #7367f0 !important;
    border-bottom: 2px solid #7367f0 !important;
    background: transparent !important;
    font-weight: 700 !important;
}

/* --- PREMIUM QUICK SEARCH AREA --- */
.premium-quick-search-area {
    background-color: #f4f9ff !important;
    border-color: #d1e9ff !important;
}

/* ==========================================================================
   PREMIUM FINANCIAL SUMMARY REDESIGN
   ========================================================================== */
.payment-summary-card-premium {
    background: #ffffff;
    border-radius: 2px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.payment-summary-card-premium::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--premium-primary);
}

[data-textdirection="rtl"] .payment-summary-card-premium::before {
    left: auto;
    right: 0;
}

.summary-header-premium {
    padding: 20px;
    background: rgba(248, 250, 252, 0.5);
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Legendary Black & Yellow Tips Card */
.legendary-tips-card {
    background: linear-gradient(145deg, #1a1c23, #0f1014);
    border-radius: 12px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.legendary-tips-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.5);
}

.legendary-tips-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.legendary-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(245, 158, 11, 0.1);
}

.legendary-header i {
    color: #f59e0b;
    font-size: 1.2rem;
    margin-right: 10px;
    filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.5));
}

[data-textdirection="rtl"] .legendary-header i {
    margin-right: 0;
    margin-left: 10px;
}

.legendary-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.legendary-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legendary-list li {
    display: flex;
    align-items: flex-start;
    color: #cbd5e1;
    font-size: 0.85rem;
    margin-bottom: 12px;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.legendary-list li:hover {
    color: #f59e0b;
}

.legendary-list li i {
    color: #f59e0b;
    font-size: 0.75rem;
    margin-top: 4px;
    margin-right: 10px;
    flex-shrink: 0;
}

[data-textdirection="rtl"] .legendary-list li i {
    margin-right: 0;
    margin-left: 6px;
}

/* Premium Company Badge Style */
.premium-company-badge {
    display: inline-flex;
    align-items: center;
    background: #0f172a;
    /* Dark Navy/Black */
    color: #f59e0b;
    /* Yellow/Gold */
    padding: 6px 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.premium-company-badge i {
    margin-right: 8px;
    font-size: 0.9rem;
    color: #f59e0b;
}

[data-textdirection="rtl"] .premium-company-badge i {
    margin-right: 0;
    margin-left: 8px;
}

.premium-company-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
}

/* Premium Error Alerts */
.premium-error-alert {
    border-radius: 12px;
    border: none;
    border-right: 5px solid #ef4444;
    background: #fff;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.08);
}

[data-textdirection="ltr"] .premium-error-alert {
    border-right: none;
    border-left: 5px solid #ef4444;
}

.premium-warning-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.premium-warning-pill i {
    margin-right: 6px;
}

[data-textdirection="rtl"] .premium-warning-pill i {
    margin-right: 0;
    margin-left: 6px;
}

.summary-header-premium i {
    width: 36px;
    height: 36px;
    background: var(--premium-primary-soft);
    color: var(--premium-primary);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.summary-title-premium {
    font-weight: 800;
    font-size: 1rem;
    color: #1e293b;
}

.summary-body-premium {
    padding: 20px;
}

.summary-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.summary-stat-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}

.summary-stat-value {
    font-size: 1rem;
    font-weight: 800;
    color: #1e293b;
}

.financial-indicator-section {
    margin: 25px 0;
    padding: 15px;
    background: #f8fafc;
    border-radius: 2px;
    border: 1px dashed #e2e8f0;
}

.indicator-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: block;
    text-align: center;
}

.indicator-percentage {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--premium-success);
    display: block;
    text-align: center;
    margin-bottom: 5px;
}

/* Portfolio Styles */
.portfolio-section-premium {
    margin-top: 25px;
}

.portfolio-title-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.portfolio-title-text {
    font-weight: 800;
    font-size: 0.9rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cheque-portfolio-item {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 2px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.cheque-portfolio-item:hover {
    border-color: var(--premium-primary-soft);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateX(4px);
}

[data-textdirection="rtl"] .cheque-portfolio-item:hover {
    transform: translateX(-4px);
}

.cheque-portfolio-item.fully-used {
    background: #f8fafc;
    opacity: 0.8;
}

.cheque-item-left {
    display: flex;
    flex-direction: column;
}

.cheque-number-premium {
    font-weight: 800;
    font-size: 0.85rem;
    color: #1e293b;
}

.cheque-bank-premium {
    font-size: 0.7rem;
    color: #94a3b8;
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cheque-item-right {
    text-align: right;
}

.cheque-amount-total {
    font-weight: 700;
    font-size: 0.85rem;
    color: #64748b;
}

.cheque-amount-available {
    font-weight: 800;
    font-size: 0.8rem;
    color: var(--premium-success);
}

.summary-footer-premium {
    padding: 15px 20px;
    background: #fdfdfd;
    border-top: 1px solid #f1f5f9;
}

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

.footer-balance-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
}

.footer-balance-value {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--premium-danger);
}

/* Sticky Sidebar Fix */
.sticky-sidebar-premium {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 100px !important;
    z-index: 99 !important;
    align-self: flex-start !important;
}

.content-body,
section#basic-form-layouts {
    overflow: visible !important;
}

/* Financial Progress Bar */
.financial-progress-premium {
    height: 8px;
    background: #eef2f7;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 15px;
    display: flex;
}

.financial-progress-bar-premium {
    height: 100%;
}

.financial-progress-bar-paid {
    background-color: var(--premium-success);
}

.financial-progress-bar-cheques {
    background-color: var(--premium-warning);
    opacity: 0.75;
}

/* Legend Styles */
.financial-legend-premium {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 0.7rem;
    font-weight: 700;
}

.legend-item-premium {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-dot-premium {
    font-size: 6px;
    vertical-align: middle;
}

/* Portfolio Scrollable */
.linked-cheques-scrollable-premium {
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
}

/* Projected Balance Card */
.projected-balance-box-premium {
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    background: rgba(16, 185, 129, 0.04);
    border: 1px dashed rgba(16, 185, 129, 0.3);
    border-radius: 2px;
}

.projected-label-premium {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 4px;
    font-weight: 700;
}

.projected-value-premium {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--premium-success);
}

.projected-value-premium.negative {
    color: var(--premium-danger);
}

/* Cheque Details Pill */
.cheque-details-pill-premium {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #f8fafc;
    border-radius: 2px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.pill-info-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-grow: 1;
}

.pill-stat {
    display: flex;
    flex-direction: column;
    padding-right: 20px;
    border-right: 1px solid #e2e8f0;
}

[data-textdirection="rtl"] .pill-stat {
    padding-right: 0;
    padding-left: 20px;
    border-right: 0;
    border-left: 1px solid #e2e8f0;
}

.pill-label {
    font-size: 0.65rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pill-value {
    font-size: 0.9rem;
    font-weight: 800;
}

.pill-action-btn {
    border-radius: 8px !important;
    font-weight: 800 !important;
    padding: 6px 15px !important;
    white-space: nowrap;
}

/* Fully Paid Card */
.fully-paid-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    border: 1px solid var(--premium-success-soft);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.05);
}

.fully-paid-icon-wrapper {
    width: 50px;
    height: 50px;
    background: var(--premium-success-soft);
    color: var(--premium-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
}

.fully-paid-title {
    font-weight: 800;
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 5px;
}

.fully-paid-subtitle {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0;
}

/* ==========================================================================
   SMART BREAKDOWN & DIGITAL CHEQUE WALLET & LIVE PREVIEW
   ========================================================================== */
/* Smart Balance Breakdown */
.smart-balance-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.smart-balance-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

.breakdown-item.paid-item {
    background: #ecfdf5;
    color: #059669;
}

.breakdown-item.covered-item {
    background: #fffbeb;
    color: #d97706;
}

.breakdown-item.uncovered-item {
    background: #f1f5f9;
    color: #64748b;
}

.breakdown-item.uncovered-item.has-debt {
    background: #fef2f2;
    color: #dc2626;
    border-right: 3px solid #dc2626;
}

/* Triple Segment Progress Bar */
.financial-progress-premium.triple-segment {
    height: 12px;
    background: #f1f5f9;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
}

.financial-progress-bar-current-pulse {
    background: linear-gradient(90deg, #10b981, #34d399);
    animation: pulse-width 2s infinite alternate;
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.6);
    position: relative;
    z-index: 10;
}

.financial-progress-bar-current-pulse.pulse-blue {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    animation: pulse-width-blue 2s infinite alternate;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
    position: relative;
    z-index: 10;
}

.financial-progress-bar-cheques-striped {
    background: repeating-linear-gradient(45deg,
            #f59e0b,
            #f59e0b 10px,
            #fbbf24 10px,
            #fbbf24 20px);
    opacity: 0.85;
}

@keyframes pulse-width {
    0% {
        filter: brightness(1);
    }

    100% {
        filter: brightness(1.2);
    }
}

@keyframes pulse-width-blue {
    0% {
        filter: brightness(1);
    }

    100% {
        filter: brightness(1.2);
    }
}

/* Smart Assistant Box */
.smart-assistant-box {
    display: flex;
    gap: 12px;
    background: #eff6ff;
    border-right: 4px solid #3b82f6;
    border-radius: 8px;
    padding: 12px;
    font-size: 0.85rem;
    color: #1e3a8a;
    align-items: flex-start;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.smart-assistant-box.alert-state {
    background: #fef2f2;
    border-right: 4px solid #ef4444;
    color: #991b1b;
}

.assistant-icon {
    font-size: 1.2rem;
    margin-top: 2px;
}

/* Digital Cheque Wallet */
.digital-wallet-drawer {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 5px;
}

.cheque-card-premium {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    margin-top: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    position: relative;
    transition: all 0.3s ease;
}

.cheque-card-premium.selected-glow {
    border: 2px solid #10b981 !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.cheque-card-premium.fully-used-card {
    opacity: 0.65;
    background: #f8fafc;
}

.cheque-card-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cheque-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #cbd5e1;
    padding-bottom: 8px;
}

.bank-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #334155;
    font-size: 0.9rem;
}

.bank-icon {
    color: #94a3b8;
}

.cheque-number {
    font-family: monospace;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #475569;
}

.cheque-amount-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.cheque-amount-display.available {
    font-size: 0.85rem;
    margin-top: 4px;
}

.cheque-mini-progress {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    width: 100%;
}

.cheque-mini-progress .mini-progress-bar {
    height: 100%;
    background: #10b981;
    transition: width 0.3s ease;
}

/* Live Digital Cheque Preview */
.live-cheque-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.live-cheque-header {
    background: #f8fafc;
    padding: 10px 15px;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.live-cheque-canvas {
    padding: 15px;
    background: #f1f5f9;
    display: flex;
    justify-content: center;
}

.cheque-paper {
    width: 100%;
    background: repeating-linear-gradient(0deg,
            #fff,
            #fff 19px,
            #f1f5f9 20px);
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 15px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    border-left: 10px dashed #cbd5e1;
    color: #334155;
}

.cheque-paper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(#94a3b8 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
    pointer-events: none;
}

.cheque-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.85rem;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 5px;
}

.cheque-bank-name {
    font-weight: bold;
    color: #1e3a8a;
    font-size: 1rem;
}

.cheque-date .val {
    font-family: monospace;
    border-bottom: 1px dotted #94a3b8;
}

.cheque-pay-to {
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.cheque-pay-to .val {
    font-weight: bold;
    font-style: italic;
    border-bottom: 1px dotted #94a3b8;
    display: inline-block;
    min-width: 150px;
}

.cheque-amount-row {
    font-size: 0.85rem;
    background: #f8fafc;
    padding: 5px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 15px;
}

.cheque-amount-row .val {
    color: #059669;
}

.cheque-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 0.8rem;
}

.cheque-no .val {
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.cheque-signature {
    border-top: 1px solid #94a3b8;
    padding-top: 5px;
    width: 100px;
    text-align: center;
    color: #94a3b8;
    font-style: italic;
}

/* Maintenance Module Styles */
.maintenance-item-row {
    background-color: #f9fbfd;
    border-radius: 8px;
    padding: 15px 10px;
    margin-bottom: 15px;
    border: 1px solid #e1e5eb;
    transition: all 0.3s ease;
}

.maintenance-item-row:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: #d1d5db;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

/* Contract Clause Builder */
.cursor-move {
    cursor: move;
}

.clause-item {
    transition: all 0.2s;
}

.clause-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Premium Clause Library Styles */
.premium-clause-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 15px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    padding: 16px;
}

.premium-clause-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(135deg, #7367f0 0%, #9e95f5 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.premium-clause-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08), 0 6px 6px rgba(0, 0, 0, 0.05);
    border-color: rgba(115, 103, 240, 0.2);
}

.premium-clause-card:hover::before {
    opacity: 1;
}

.premium-clause-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
    padding-bottom: 10px;
}

.premium-clause-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #4b4b4b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.premium-clause-icon {
    color: #7367f0;
    font-size: 1.1rem;
}

html[dir="rtl"] .premium-clause-title {
    margin-right: 0;
}

html[dir="rtl"] .premium-clause-icon {
    margin-left: 8px;
}

html[dir="ltr"] .premium-clause-icon {
    margin-right: 8px;
}

.premium-clause-btn {
    background: rgba(40, 199, 111, 0.1);
    color: #28c76f;
    border: 1px solid rgba(40, 199, 111, 0.2);
    border-radius: 8px;
    padding: 6px 14px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    outline: none;
}

.premium-clause-btn:hover {
    background: #28c76f;
    color: #ffffff;
    border-color: #28c76f;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(40, 199, 111, 0.3);
}

.premium-clause-content {
    font-size: 0.95rem;
    color: #6e6b7b;
    line-height: 1.6;
    text-align: right;
    width: 100%;
    direction: rtl;
    margin: 0;
}

.clause-library-container {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 5px;
    padding-left: 5px;
    scrollbar-width: thin;
    scrollbar-color: #7367f0 rgba(0, 0, 0, 0.05);
}

.clause-library-container::-webkit-scrollbar {
    width: 6px;
}

.clause-library-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 10px;
}

.clause-library-container::-webkit-scrollbar-thumb {
    background: #d8d6f9;
    border-radius: 10px;
}

.clause-library-container::-webkit-scrollbar-thumb:hover {
    background: #7367f0;
}

/* Modern Smart Tags Tabs Styling (iOS-Style Segmented Control Pills) */
.smart-tags-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 10px !important;
}

.smart-tags-tabs {
    border: none !important;
    background: #f1f5f9 !important;
    /* light slate background */
    padding: 4px !important;
    border-radius: 30px !important;
    /* pill container */
    display: inline-flex !important;
    justify-content: center !important;
    margin: 12px auto !important;
    /* centered horizontally */
    align-items: center !important;
    width: auto !important;
    /* only occupies as much space as the tabs need */
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06) !important;
}

.smart-tags-tabs .nav-item {
    margin: 0 !important;
}

.smart-tags-tabs .nav-link {
    border: none !important;
    background: transparent !important;
    color: #475569 !important;
    font-weight: 700 !important;
    padding: 8px 20px !important;
    border-radius: 30px !important;
    font-size: 0.95rem !important;
    transition: all 0.25s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
}

.smart-tags-tabs .nav-link:focus,
.smart-tags-tabs .nav-link:active {
    outline: none !important;
    box-shadow: none !important;
}

.smart-tags-tabs .nav-link:hover {
    color: #7367f0 !important;
    background-color: transparent !important;
}

.smart-tags-tabs .nav-link.active {
    background: #ffffff !important;
    /* white pill for active tab */
    color: #7367f0 !important;
    box-shadow: 0 4px 10px rgba(115, 103, 240, 0.15) !important;
}

.smart-tags-tabs .nav-link i {
    margin-inline-end: 5px;
}

/* Tag Cards Styling */
.smart-tag-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    height: 100%;
}

.smart-tag-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.smart-tag-card.copied-success {
    border-color: #28c76f !important;
    background-color: rgba(40, 199, 111, 0.05) !important;
    transform: scale(0.98);
}

.tag-label {
    font-size: 0.98rem;
    font-weight: 600;
}

.tag-code {
    font-size: 0.95rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.bg-light-primary {
    background-color: rgba(115, 103, 240, 0.1) !important;
}

.text-primary {
    color: #7367f0 !important;
}

.bg-light-success {
    background-color: rgba(40, 199, 111, 0.1) !important;
}

.text-success {
    color: #28c76f !important;
}

.bg-light-warning {
    background-color: rgba(255, 159, 67, 0.1) !important;
}

.text-warning {
    color: #ff9f43 !important;
}

.bg-light-danger {
    background-color: rgba(234, 84, 85, 0.1) !important;
}

.text-danger {
    color: #ea5455 !important;
}

/* Custom Smart Tags Layout Overrides (Dashed Pill Alert) */
.smart-tags-hint-bar {
    background: linear-gradient(135deg, rgba(115, 103, 240, 0.06) 0%, rgba(115, 103, 240, 0.02) 100%) !important;
    border: 1px dashed rgba(115, 103, 240, 0.25) !important;
    border-radius: 12px !important;
    padding: 12px 20px !important;
    margin: 16px 16px 8px 16px !important;
    /* Margin around it to float inside the card */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.smart-tags-hint-bar p {
    color: #7367f0 !important;
    font-size: 0.98rem !important;
    font-weight: 700 !important;
    margin-bottom: 0 !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.smart-tags-hint-bar p i {
    color: #7367f0 !important;
    font-size: 1.15rem !important;
    margin-inline-end: 0 !important;
    animation: pulse-info 2s infinite !important;
}

@keyframes pulse-info {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.smart-tags-collapse-body {
    background-color: #fff !important;
    border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
}

.smart-tags-content {
    padding: 12px 16px 8px 16px !important;
}

/* Tab Error Indicator */
.tab-error-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background-color: #ff4d4d;
    border-radius: 50%;
    box-shadow: 0 0 8px #ff4d4d;
    animation: pulse-red 1.5s infinite;
    z-index: 10;
}

.premium-tab-btn {
    position: relative !important;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(255, 77, 77, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0);
    }
}

/* ==========================================================================
   CONTRACT DURATION & DATES STYLING
   ========================================================================== */
.contract-duration-wrapper {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.duration-label-badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(59, 130, 246, 0.08);
    color: #1e293b;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid rgba(59, 130, 246, 0.15);
    white-space: nowrap;
}

.duration-label-badge i {
    font-size: 0.95rem;
}

.duration-label-badge span {
    white-space: nowrap;
}

.contract-duration-wrapper .date-range-badge {
    display: inline-flex;
    align-items: center;
    background-color: #f8fafc;
    border-radius: 20px;
    padding: 4px 10px;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
}

.contract-duration-wrapper .date-range-badge .date-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.5px;
}

.contract-duration-wrapper .date-range-badge .date-arrow {
    margin: 0 8px;
    font-size: 0.8rem;
    opacity: 0.7;
}

[data-textdirection="rtl"] .duration-label-badge i,
[dir="rtl"] .duration-label-badge i {
    margin-left: 6px;
    margin-right: 0 !important;
}

[data-textdirection="ltr"] .duration-label-badge i,
[dir="ltr"] .duration-label-badge i {
    margin-right: 6px;
    margin-left: 0 !important;
}

/* ========================================================================
   PLATINUM DASHBOARD - UNIFIED PAGES STYLING (pages.css)
   Consolidates: Properties, Contracts, Cheques, Payments, Settings, etc.
   Supports: LTR & RTL in a single file.
   ======================================================================== */
:root {
    --premium-primary: #3b82f6;
    --premium-primary-soft: rgba(59, 130, 246, 0.1);
    --premium-success: #10b981;
    --premium-success-soft: rgba(16, 185, 129, 0.1);
    --premium-warning: #f59e0b;
    --premium-warning-soft: rgba(245, 158, 11, 0.1);
    --premium-danger: #ef4444;
    --premium-danger-soft: rgba(239, 68, 68, 0.1);
    --premium-info: #06b6d4;
    --premium-info-soft: rgba(6, 182, 212, 0.1);
    --premium-slate: #1e293b;
    --premium-slate-light: #64748b;
    /* Legacy Sync */
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
}

/* ==========================================================================
   GLOBAL PREMIUM COMPONENTS (Unified)
   ========================================================================== */
/* Removed redundant .premium-card - using system-style.css instead */
.premium-mandatory-header {
    background: #ffffff !important;
    color: #1e293b !important;
    font-weight: 700 !important;
    padding: 10px 20px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
}

[dir="rtl"] .premium-mandatory-header i,
html[dir="rtl"] .premium-mandatory-header i,
[data-textdirection="rtl"] .premium-mandatory-header i {
    margin-left: 10px !important;
    margin-right: 0 !important;
}

[dir="ltr"] .premium-mandatory-header i,
html[dir="ltr"] .premium-mandatory-header i {
    margin-right: 10px !important;
    margin-left: 0 !important;
}

/* Global Premium Buttons (Unified to Minimalist White Style) */
.btn-premium-save,
button.btn-premium-save,
.btn-premium-add,
.btn-premium-edit,
.btn-premium-back,
a.btn-premium-back {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 0 24px !important;
    height: 42px !important;
    margin: 0 4px !important;
    border-radius: 4px !important;
    /* Unified rounded style matching cancel button */
    font-weight: 700 !important;
    font-size: 1rem !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    cursor: pointer !important;
    text-decoration: none !important;
    background: #ffffff !important;
    color: #475569 !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
}

.btn-premium-save:hover,
button.btn-premium-save:hover,
.btn-premium-add:hover,
.btn-premium-edit:hover,
.btn-premium-back:hover,
.btn-premium-secondary:hover,
.btn-premium-cancel:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
    background: #ffffff !important;
    color: #1e293b !important;
    border-color: #5A8DEE !important;
}

.btn-premium-save i,
.btn-premium-add i,
.btn-premium-edit i,
.btn-premium-back i {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.btn-premium-save:hover i,
.btn-premium-add:hover i,
.btn-premium-edit:hover i,
.btn-premium-back:hover i {
    transform: translateX(4px);
}

[data-textdirection="rtl"] .btn-premium-save:hover i,
[data-textdirection="rtl"] .btn-premium-add:hover i,
[data-textdirection="rtl"] .btn-premium-edit:hover i,
[data-textdirection="rtl"] .btn-premium-back:hover i {
    transform: translateX(-4px);
}

.btn-premium-save.shadow-pulse,
.btn-premium-add.shadow-pulse {
    animation: pulse-indigo 2.5s infinite;
}

/* ==========================================================================
   MODULE: PROPERTIES (��� ��� ��������)
   ========================================================================== */
.header-bg-shape {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

[dir="ltr"] .header-bg-shape {
    right: auto;
    left: -50px;
}

/* Table Widths */
.col-owner-width {
    width: 60% !important;
}

.col-percentage-width {
    width: 15% !important;
}

.col-primary-width {
    width: 12% !important;
}

.col-actions-width {
    width: 13% !important;
}

/* Standardized Table Styling for Properties & Customers */
.premium-table thead th {
    background-color: #f8fafc !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    color: #475569 !important;
    padding: 15px 20px !important;
    vertical-align: middle !important;
    border-bottom: 2px solid #f1f5f9 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.premium-table tbody td {
    padding: 15px 20px !important;
    vertical-align: middle !important;
    color: #1e293b !important;
    font-weight: 500 !important;
}

.th-w-20 {
    width: 20% !important;
}

.th-w-25 {
    width: 25% !important;
}

.th-w-15 {
    width: 15% !important;
}

/* Heading Elements Icons Scaling */
.heading-elements ul li a i {
    font-size: 11px !important;
    color: #94a3b8 !important;
    transition: color 0.3s ease;
}

.heading-elements ul li a:hover i {
    color: #475569 !important;
}

.th-w-10 {
    width: 10% !important;
}

.th-w-actions {
    width: 30px !important;
}

.header-trash-icon {
    margin-inline-start: 4px !important;
    font-size: 1.1rem !important;
    color: #94a3b8 !important;
}

.btn-trash-cell {
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

/* ==========================================================================
   MODULE: CONTRACTS (��� ��� ����)
   ========================================================================== */
.contract-text-viewer {
    line-height: 1.7 !important;
    color: #334155 !important;
    background: #fff !important;
    border-radius: 12px !important;
    padding: 25px !important;
}

[dir="rtl"] .border-primary-left,
html[dir="rtl"] .border-primary-left,
[data-textdirection="rtl"] .border-primary-left {
    border-right: 4px solid #7367f0 !important;
    border-left: 0 !important;
}

[dir="ltr"] .border-primary-left,
html[dir="ltr"] .border-primary-left {
    border-left: 4px solid #7367f0 !important;
    border-right: 0 !important;
}

/* Premium Badge Hint (Insurance Locked) */
.premium-badge-hint {
    background-color: rgba(239, 68, 68, 0.08) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    padding: 6px 14px !important;
    border-radius: 50px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.05) !important;
    white-space: nowrap !important;
}

.premium-badge-hint i {
    font-size: 13px !important;
    animation: premium-pulse-lock 2s infinite !important;
}

@keyframes premium-pulse-lock {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

[data-textdirection="rtl"] .premium-badge-hint {
    letter-spacing: 0 !important;
}

/* ==========================================================================
   MODULE: CHEQUES (��� ���`� ����)
   ========================================================================== */
.cheque-summary-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    border-left: 5px solid #ef4444;
    padding: 24px;
}

[dir="rtl"] .cheque-summary-card {
    border-left: 1px solid #f1f5f9;
    border-right: 5px solid #ef4444;
}

/* ==========================================================================
   MODULE: PAYMENTS (��� ����������)
   ========================================================================== */
.payment-summary-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    border-left: 5px solid #10b981;
    padding: 24px;
}

[dir="rtl"] .payment-summary-card,
html[dir="rtl"] .payment-summary-card,
[data-textdirection="rtl"] .payment-summary-card {
    border-left: 1px solid #f1f5f9;
    border-right: 5px solid #10b981;
}

/* Property Mandatory Section (Matched to Contract Insurance Style) */
.property-mandatory-section {
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    margin: 30px 0 !important;
    background: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

.property-mandatory-header {
    background: #f8fafc !important;
    padding: 12px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.property-mandatory-header .title-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: #1e293b !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
}

.property-mandatory-header i {
    font-size: 1.15rem !important;
    color: #475569 !important;
}

.property-mandatory-body {
    padding: 25px 20px !important;
}

[data-textdirection="rtl"] .property-mandatory-header .title-wrapper {
    gap: 12px !important;
}

/* Sub-header inside mandatory body (e.g. Cheque Details) */
.mandatory-sub-header {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding-bottom: 8px !important;
    margin-bottom: 15px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.mandatory-sub-header i {
    font-size: 1.1rem !important;
    color: #3b82f6 !important;
    /* text-primary */
}

.mandatory-sub-header h6 {
    color: #3b82f6 !important;
    /* text-primary */
    margin: 0 !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
}

.mandatory-sub-header small {
    color: #64748b !important;
    /* text-muted */
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    margin-right: 5px !important;
}

[data-textdirection="rtl"] .mandatory-sub-header small {
    margin-right: 0 !important;
    margin-left: 5px !important;
}

/* ==========================================================================
   MODULE: SETTINGS (��� �������������� ��� �����& ��) - Scoped Styles Only
   ========================================================================== */
/* Use global .premium-card and .premium-mandatory-header from system-style.css */
.premium-card {
    margin-bottom: 17px !important;
}

.premium-mandatory-header {
    background: #f8fafc !important;
    padding: 12px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid #e2e8f0 !important;
    font-size: 1.58rem !important;
    font-weight: 800 !important;
    color: #1e293b !important;
}

.premium-mandatory-header .title-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: #1e293b !important;
    font-weight: 800 !important;
    font-size: 1.27rem !important;
}

.premium-mandatory-header i {
    font-size: 1.45rem !important;
    color: #475569 !important;
}

[data-textdirection="rtl"] .premium-mandatory-header .title-wrapper {
    gap: 12px !important;
}

.premium-form-group {
    margin-bottom: 27px !important;
    position: relative !important;
}

.premium-mandatory-body .row,
form.ajax-form .row {
    margin-bottom: 22px !important;
}

.error-text {
    position: relative !important;
    margin-top: 4px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    display: block !important;
    word-wrap: break-word !important;
    white-space: normal !important;
    animation: premiumFadeInUp 0.3s ease-out !important;
    z-index: 10 !important;
}

[dir="rtl"] .error-text,
html[dir="rtl"] .error-text,
[data-textdirection="rtl"] .error-text {
    text-align: right !important;
    padding-right: 2px !important;
    direction: rtl !important;
}

/* Static error text for titles or sections where absolute positioning is not suitable */
.premium-section-title .error-text {
    position: static !important;
    display: inline-block !important;
    width: auto !important;
    margin-right: 10px !important;
    margin-left: 10px !important;
    animation: none !important;
}

[dir="ltr"] .error-text,
html[dir="ltr"] .error-text {
    text-align: left !important;
    padding-left: 2px !important;
    direction: ltr !important;
}

/* Special styling for permissions error chip in section titles */
.premium-error-alert-chip {
    background-color: rgba(255, 73, 97, 0.1) !important;
    color: #ff4961 !important;
    border: 1px solid rgba(255, 73, 97, 0.3) !important;
    padding: 5px 15px !important;
    border-radius: 30px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    display: none;
    /* Hidden by default until text is filled */
    box-shadow: 0 4px 10px rgba(255, 73, 97, 0.15) !important;
    animation: premiumShake 0.5s ease-in-out !important;
}

.premium-error-alert-chip:not(:empty) {
    display: inline-block !important;
}

@keyframes premiumShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Global Hover Animation for Cancel/Close Icons */
.premium-modal-close:hover i,
.btn-premium-secondary:hover i {
    transform: rotate(90deg) !important;
    transition: transform 0.3s ease-in-out !important;
}

.premium-modal-close i,
.btn-premium-secondary i {
    transition: transform 0.3s ease-in-out !important;
}

/* Required Asterisk Styling */
label .text-danger,
.premium-label .text-danger {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin-left: 2px;
    margin-right: 2px;
}

@keyframes premiumFadeInUp {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.field-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
}

.field-header i {
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    font-size: 0.9rem !important;
    background: var(--premium-primary-soft) !important;
    color: var(--premium-primary) !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03) !important;
}

/* Contextual Icon Colors */
.field-header i.fa-font,
.field-header i.fa-language {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #3b82f6 !important;
}

.field-header i.fa-facebook-f {
    background: rgba(24, 119, 242, 0.1) !important;
    color: #1877f2 !important;
}

.field-header i.fa-twitter {
    background: rgba(29, 161, 242, 0.1) !important;
    color: #1da1f2 !important;
}

.field-header i.fa-instagram {
    background: rgba(225, 48, 108, 0.1) !important;
    color: #e1306c !important;
}

.field-header i.fa-youtube {
    background: rgba(255, 0, 0, 0.1) !important;
    color: #ff0000 !important;
}

.field-header i.fa-phone,
.field-header i.fa-mobile-alt,
.field-header i.fa-whatsapp {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #10b981 !important;
}

.field-header i.fa-envelope,
.field-header i.fa-envelope-open-text {
    background: rgba(6, 182, 212, 0.1) !important;
    color: #06b6d4 !important;
}

.premium-form-group:focus-within .field-header i {
    transform: scale(1.1) rotate(5deg) !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1) !important;
}

.field-header label {
    margin: 0 !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Global double-border fix moved to system-style.css for universal support */
.identity-summary-card {
    background: #ffffff !important;
    border-radius: 2px !important;
    padding: 30px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #f1f5f9 !important;
}

.summary-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 25px !important;
    padding-bottom: 15px !important;
    border-bottom: 2px dashed #f1f5f9 !important;
}

.summary-header i {
    font-size: 1.5rem !important;
    color: var(--premium-primary) !important;
}

.summary-title {
    font-weight: 800 !important;
    font-size: 1.2rem !important;
    color: #1e293b !important;
}

/* Save Button Enhancement */
.btn-premium-save {
    background: linear-gradient(135deg, var(--premium-primary) 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 35px !important;
    border-radius: 2px !important;
    font-weight: 800 !important;
    box-shadow: 0 10px 20px var(--premium-primary-soft) !important;
}

.btn-premium-save:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 15px 30px var(--premium-primary-soft) !important;
}

/* ==========================================================================
   MODULE: DASHBOARD HOME (��� �����`���`��)
   ========================================================================== */
.welcome-section {
    background: url('https://www.transparenttextures.com/patterns/cubes.png'), linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 6px;
    padding: 2.5rem 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 15px 30px rgba(67, 97, 238, 0.2);
    color: white;
    position: relative;
    overflow: hidden;
}

.welcome-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
}

[dir="rtl"] .welcome-section::after,
html[dir="rtl"] .welcome-section::after,
[data-textdirection="rtl"] .welcome-section::after {
    right: auto;
    left: -10%;
}

.welcome-section .welcome-title {
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.welcome-section .welcome-text {
    color: rgba(255, 255, 255, 0.8) !important;
    max-width: 500px;
    line-height: 1.7 !important;
    margin-bottom: 40px !important;
}

.welcome-date {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Premium Tabs (Segmented Control Style) */
.premium-tabs-wrapper {
    background: #f8f9fa;
    padding: 6px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 2rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.custom-pills .nav-link {
    border-radius: 6px;
    padding: 12px 30px;
    font-weight: 600;
    color: #6c757d;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin: 0 4px;
}

.custom-pills .nav-link:hover {
    color: var(--primary-color);
}

.custom-pills .nav-link.active {
    background: #ffffff;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Premium Breadcrumb */
.premium-breadcrumb {
    background: transparent !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
}

.premium-breadcrumb .breadcrumb-item a {
    color: var(--premium-primary) !important;
    font-weight: 600 !important;
}

.premium-breadcrumb .breadcrumb-item.active {
    color: #64748b !important;
}

/* Minimalist Premium Stat Cards (Updated to match requested screenshot) */
.premium-stat-card {
    background: #ffffff !important;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%2394a3b8' fill-opacity='0.07' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='1'/%3E%3C/g%3E%3C/svg%3E") !important;
    border-radius: 2px !important;
    padding: 1.5rem !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 100px !important;
}

.premium-stat-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(67, 97, 238, 0.3) !important;
}

.premium-stat-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
}

.stat-content {
    display: flex !important;
    flex-direction: column !important;
    z-index: 2 !important;
}

.stat-value {
    font-size: 2.1rem !important;
    /* Increased by 3px */
    font-weight: 800 !important;
    color: #1e293b !important;
    line-height: 1.2 !important;
    margin-bottom: 0.1rem !important;
}

.stat-title {
    font-size: 1.05rem !important;
    /* Increased by 3px */
    font-weight: 600 !important;
    color: #64748b !important;
    margin: 0 !important;
}

/* Icon Blob Container */
.stat-icon-wrapper {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    /* Made Circular */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 2 !important;
}

.stat-icon-wrapper i {
    font-size: 1.6rem !important;
    /* Increased by 3px */
}

/* Contextual Colors for Blobs and Icons */
.card-contracts .stat-icon-wrapper {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #3b82f6 !important;
}

.card-active .stat-icon-wrapper {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #10b981 !important;
}

.card-revenue .stat-icon-wrapper {
    background: rgba(6, 182, 212, 0.1) !important;
    color: #06b6d4 !important;
}

.card-expiring .stat-icon-wrapper {
    background: rgba(245, 158, 11, 0.1) !important;
    color: #f59e0b !important;
}

/* Remove old blob/floating icon styles */
.stat-icon-blob,
.stat-icon-floating {
    display: none !important;
}

.premium-stat-card::before {
    display: none !important;
}

/* Chart Card */
.premium-chart-card {
    border-radius: 6px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    border: none;
    padding: 1rem;
    background: #fff;
}

.premium-chart-card .card-header {
    background: transparent;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    padding-bottom: 1.5rem;
}

.premium-chart-card .card-title {
    font-weight: 700;
    color: #2d3436;
}

/* Simplified Animations */
.animate-up {
    opacity: 1;
    transform: none;
    transition: none !important;
    animation: none !important;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Company Identity Banner */
.company-identity-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    border-radius: 2px !important;
    border: none;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.25);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    color: #ffffff;
}

.company-identity-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0) 70%);
    border-radius: 50%;
}

.company-identity-banner:hover {
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35);
    transform: translateY(-5px);
}

.company-logo-frame {
    width: 70px;
    height: 70px;
    border-radius: 2px !important;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.company-logo-frame img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.company-initials {
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.welcome-text-premium {
    font-weight: 800;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.welcome-text-premium span.text-primary {
    color: #38bdf8 !important;
    /* Brighter blue for contrast */
}

.company-name-subtitle {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7) !important;
    letter-spacing: 0.5px;
}

.welcome-date-section .welcome-date {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.welcome-date-section .welcome-date i {
    color: #38bdf8 !important;
}

/* ==========================================================================
   MODULE: LOGIN & LOCK SCREEN (Scoped to Auth Container)
   ========================================================================== */
/* ==========================================================================
   MODULE: LOGIN & LOCK SCREEN (Premium Architecture)
   ========================================================================== */
/* 1. Global Reset for Auth Pages */
.login-main-wrapper~.header-navbar,
.login-main-wrapper~.footer,
.login-main-wrapper~.main-menu {
    display: none !important;
}

/* 2. Main Layout Container */
.login-main-wrapper {
    display: flex;
    width: 100%;
    height: 100vh;
    background: #0f172a;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    overflow: hidden;
}

[dir="rtl"] .login-main-wrapper {
    direction: rtl;
}

/* 3. Visual Content (Welcome Side) */
.welcome-side {
    background: url('../images/carbon-fibre.png'), url('../images/mjk/background.jpg') no-repeat center center;
    background-size: auto, cover;
    flex: 1;
    display: none;
    flex-direction: column;
    justify-content: flex-end;
    padding: 60px 8%;
    color: white;
    position: relative;
    z-index: 2;
}

.welcome-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #0f172a 0%, rgba(15, 23, 42, 0.4) 60%, transparent 100%);
    z-index: 1;
}

.welcome-side::after {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0) 70%);
    border-radius: 50%;
    z-index: 1;
}

[dir="rtl"] .welcome-side::after {
    right: auto;
    left: -10%;
}

.welcome-content-premium {
    position: relative;
    z-index: 3;
    animation: fadeInUp 1s ease-out;
}

.badge-welcome {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(56, 189, 248, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
}

.login-main-wrapper .welcome-title {
    font-weight: 900 !important;
    margin-bottom: 20px !important;
    line-height: 1.1 !important;
    letter-spacing: -2px !important;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.login-main-wrapper .welcome-text {
    color: rgba(255, 255, 255, 0.8) !important;
    max-width: 500px;
    line-height: 1.7 !important;
    margin-bottom: 40px !important;
}

@media (min-width: 992px) {
    .welcome-side {
        display: flex;
    }
}

/* 4. Form Side */
.form-side {
    position: relative;
    background: white;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    z-index: 5;
}

@media (min-width: 992px) {
    .form-side {
        width: 480px;
        box-shadow: -10px 0 50px rgba(0, 0, 0, 0.2);
    }
}

.login-form-box {
    width: 100%;
    max-width: 360px;
}

.brand-logo-modern {
    margin-bottom: 40px;
    text-align: center;
}

.brand-logo-modern img {
    max-height: 140px;
    width: auto;
}

.form-header-modern {
    text-align: center;
    margin-bottom: 30px;
}

.form-header-modern h2 {
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 8px;
}

.form-group-modern {
    margin-bottom: 32px;
    width: 100%;
}

.form-label-modern {
    display: block;
    font-weight: 700;
    color: #1e3a8a;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.login-options-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    margin-bottom: 30px;
}

.remember-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    color: #64748b;
}

.remember-modern input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #38bdf8;
    cursor: pointer;
}

.forgot-modern {
    font-weight: 700;
    color: #38bdf8;
    text-decoration: none;
    transition: all 0.3s;
}

.forgot-modern:hover {
    color: #1e3a8a;
    text-decoration: underline;
}

.form-control-modern {
    width: 100%;
    background: #f8fafc;
    border: 2px solid #f1f5f9;
    border-radius: 6px;
    padding: 16px 20px;
    padding-inline-start: 48px;
    color: #1e293b;
    transition: all 0.3s;
}

.form-control-modern:focus {
    background: white;
    border-color: #38bdf8;
    box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.1);
    outline: none;
}

.input-container-modern {
    position: relative;
}

.input-icon-modern {
    position: absolute;
    inset-inline-start: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #38bdf8;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 10;
}

.btn-login-modern {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #1e3a8a 100%);
    background-size: 200% auto;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.4);
}

.btn-login-modern:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.5);
}

.lang-toggle-container {
    position: absolute;
    top: 30px;
    inset-inline-end: 30px;
}

.btn-lang-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 50px;
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 800;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

@media (max-width: 991px) {
    .login-main-wrapper {
        background: #0f172a;
    }

    .form-side {
        background: transparent;
    }

    .login-form-box {
        background: rgba(255, 255, 255, 0.95);
        padding: 50px 35px;
        border-radius: 35px;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
        max-width: 440px;
        width: 92%;
    }
}

/* 5. Lock Screen Specific Styles */
.lock-avatar-premium {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    padding: 5px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 0 auto 1.5rem;
    position: relative;
    border: 2px solid #f1f5f9;
}

.lock-avatar-premium img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.lock-avatar-initials {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
}

.lock-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #f0fdf4;
    color: #166534;
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.different-account {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 2rem;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.different-account:hover {
    color: #38bdf8;
}

/* 6. Utility Animations & Components */
.stat-item {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #38bdf8;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   MODULE: PERMISSIONS & SWITCHES
   ========================================================================== */
/* Global Utilities */
.radius-20 {
    border-radius: 6px !important;
}

.radius-15 {
    border-radius: 6px !important;
}

.shadow-pulse {
    animation: none !important;
    box-shadow: none !important;
}

/* Dashboard Tabs - Unified & Sharpened */
.premium-segmented-control {
    background: #f8fafc !important;
    padding: 6px !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    gap: 5px !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02) !important;
    border: 1px solid #e2e8f0 !important;
}

.premium-tab-btn {
    border: none !important;
    color: #64748b !important;
    font-weight: 600 !important;
    padding: 9px 20px !important;
    border-radius: 6px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: transparent !important;
    outline: none !important;
    cursor: pointer !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
}

.premium-tab-btn:hover:not(.active) {
    color: #3b82f6 !important;
    background: rgba(59, 130, 246, 0.08) !important;
}

.premium-tab-btn.active {
    color: #ffffff !important;
    background: #3b82f6 !important;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3) !important;
    font-weight: 700 !important;
}

html[dir="rtl"] .premium-tab-btn,
[data-textdirection="rtl"] .premium-tab-btn {
    flex-direction: row-reverse !important;
}

/* ==========================================================================
   Premium Page Components (Customer & Property Show Pages)
   ========================================================================== */
.header-customer-dark,
.header-property-dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15) !important;
    position: relative;
    overflow: hidden;
    padding: 25px 30px !important;
    border-radius: 2px !important;
}

.border-left-light-opacity {
    border-left: 1px solid rgba(255, 255, 255, 0.15) !important;
}

[data-textdirection="rtl"] .border-left-light-opacity {
    border-left: none !important;
    border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding-left: 0 !important;
    padding-right: 1rem !important;
}

/* Utilities */
.radius-10 {
    border-radius: 2px !important;
}

.radius-15 {
    border-radius: 2px !important;
}

.bg-light-primary-opacity {
    background-color: rgba(90, 141, 238, 0.1) !important;
}

.bg-light-success-opacity {
    background-color: rgba(40, 208, 148, 0.1) !important;
}

.bg-light-danger-opacity {
    background-color: rgba(255, 73, 97, 0.1) !important;
}

.bg-light-warning-opacity {
    background-color: rgba(255, 159, 67, 0.1) !important;
}

.bg-light-info-opacity {
    background-color: rgba(0, 207, 232, 0.1) !important;
}

.bg-light-dark-opacity {
    background-color: rgba(77, 82, 89, 0.1) !important;
}

.bg-light-blue-info {
    background-color: #f8fafc !important;
}

/* Data Grid System */
.data-grid-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 2px;
    border: 1px solid #f1f5f9;
    background: #fff;
    height: 100%;
    transition: all 0.2s ease;
}

.data-grid-item:hover {
    border-color: #5A8DEE !important;
    box-shadow: 0 5px 15px rgba(90, 141, 238, 0.15) !important;
    transform: translateY(-2px);
    z-index: 2;
    position: relative;
}

.data-grid-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    margin-right: 15px;
    flex-shrink: 0;
}

[data-textdirection="rtl"] .data-grid-icon {
    margin-right: 0;
    margin-left: 15px;
}

.data-grid-label {
    display: block;
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 2px;
    font-weight: 500;
}

.data-grid-value {
    display: block;
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

/* Borders & Dividers */
.border-left-primary-3 {
    border-left: 3px solid #5A8DEE !important;
}

.border-left-warning-3 {
    border-left: 3px solid #ff9f43 !important;
}

.border-dashed-premium {
    border: 1px dashed #e2e8f0 !important;
}

[data-textdirection="rtl"] .border-left-primary-3 {
    border-left: none !important;
    border-right: 3px solid #5A8DEE !important;
}

[data-textdirection="rtl"] .border-left-warning-3 {
    border-left: none !important;
    border-right: 3px solid #ff9f43 !important;
}

/* Sidebar Utilities */
.border-dashed-premium {
    border: 1px dashed rgba(90, 141, 238, 0.3) !important;
}

.border-right-light {
    border-right: 1px solid rgba(0, 0, 0, 0.05) !important;
}

[data-textdirection="rtl"] .border-right-light {
    border-right: none !important;
    border-left: 1px solid rgba(0, 0, 0, 0.05) !important;
}

[data-textdirection="rtl"] .text-right-rtl {
    text-align: right !important;
}

/* --- Premium Minimalist Nav Tabs --- */
.premium-nav-tabs {
    border-bottom: 2px solid #f1f3f4 !important;
    margin-bottom: 8px !important;
    padding: 0 1rem !important;
    background: #fff !important;
    margin-top: 0.5rem !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    /* Centered tabs navigation */
}

.premium-nav-tabs .nav-item {
    margin-bottom: 0 !important;
}

.premium-nav-tabs .nav-link {
    border: none !important;
    background: transparent !important;
    color: #64748b !important;
    font-weight: 600 !important;
    padding: 12px 20px !important;
    border-bottom: 2px solid transparent !important;
    transition: all 0.3s ease !important;
    border-radius: 0 !important;
    font-size: 1rem !important;
    /* Enlarge font size in main tabs to be larger than fields */
    box-shadow: none !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    flex-direction: row !important;
    /* Fix RTL icon issue globally for premium tabs */
    cursor: pointer !important;
}

.premium-nav-tabs .nav-link::after {
    display: none !important;
}

.premium-nav-tabs .nav-link i {
    font-size: 1.1rem;
    vertical-align: middle;
    margin-inline-end: 5px;
}

.premium-nav-tabs .nav-link:focus,
.premium-nav-tabs .nav-link:active {
    outline: none !important;
    box-shadow: none !important;
}

.premium-nav-tabs .nav-link:hover {
    color: #7367f0 !important;
    background-color: #f8f9fa !important;
    border-radius: 6px 6px 0 0 !important;
    cursor: pointer !important;
}

.premium-nav-tabs .nav-link.active {
    color: #7367f0 !important;
    border-bottom: 2px solid #7367f0 !important;
    background: transparent !important;
    font-weight: 700 !important;
}

/* --- PREMIUM QUICK SEARCH AREA --- */
.premium-quick-search-area {
    background-color: #f4f9ff !important;
    border-color: #d1e9ff !important;
}

/* ==========================================================================
   PREMIUM FINANCIAL SUMMARY REDESIGN
   ========================================================================== */
.payment-summary-card-premium {
    background: #ffffff;
    border-radius: 2px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.payment-summary-card-premium::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--premium-primary);
}

[data-textdirection="rtl"] .payment-summary-card-premium::before {
    left: auto;
    right: 0;
}

.summary-header-premium {
    padding: 20px;
    background: rgba(248, 250, 252, 0.5);
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Legendary Black & Yellow Tips Card */
.legendary-tips-card {
    background: linear-gradient(145deg, #1a1c23, #0f1014);
    border-radius: 12px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.legendary-tips-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.5);
}

.legendary-tips-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.legendary-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(245, 158, 11, 0.1);
}

.legendary-header i {
    color: #f59e0b;
    font-size: 1.2rem;
    margin-right: 10px;
    filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.5));
}

[data-textdirection="rtl"] .legendary-header i {
    margin-right: 0;
    margin-left: 10px;
}

.legendary-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.legendary-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legendary-list li {
    display: flex;
    align-items: flex-start;
    color: #cbd5e1;
    font-size: 0.85rem;
    margin-bottom: 12px;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.legendary-list li:hover {
    color: #f59e0b;
}

.legendary-list li i {
    color: #f59e0b;
    font-size: 0.75rem;
    margin-top: 4px;
    margin-right: 10px;
    flex-shrink: 0;
}

[data-textdirection="rtl"] .legendary-list li i {
    margin-right: 0;
    margin-left: 6px;
}

/* Premium Company Badge Style */
.premium-company-badge {
    display: inline-flex;
    align-items: center;
    background: #0f172a;
    /* Dark Navy/Black */
    color: #f59e0b;
    /* Yellow/Gold */
    padding: 6px 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.premium-company-badge i {
    margin-right: 8px;
    font-size: 0.9rem;
    color: #f59e0b;
}

[data-textdirection="rtl"] .premium-company-badge i {
    margin-right: 0;
    margin-left: 8px;
}

.premium-company-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
}

/* Premium Error Alerts */
.premium-error-alert {
    border-radius: 12px;
    border: none;
    border-right: 5px solid #ef4444;
    background: #fff;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.08);
}

[data-textdirection="ltr"] .premium-error-alert {
    border-right: none;
    border-left: 5px solid #ef4444;
}

.premium-warning-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.premium-warning-pill i {
    margin-right: 6px;
}

[data-textdirection="rtl"] .premium-warning-pill i {
    margin-right: 0;
    margin-left: 6px;
}

.summary-header-premium i {
    width: 36px;
    height: 36px;
    background: var(--premium-primary-soft);
    color: var(--premium-primary);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.summary-title-premium {
    font-weight: 800;
    font-size: 1rem;
    color: #1e293b;
}

.summary-body-premium {
    padding: 20px;
}

.summary-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.summary-stat-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}

.summary-stat-value {
    font-size: 1rem;
    font-weight: 800;
    color: #1e293b;
}

.financial-indicator-section {
    margin: 25px 0;
    padding: 15px;
    background: #f8fafc;
    border-radius: 2px;
    border: 1px dashed #e2e8f0;
}

.indicator-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: block;
    text-align: center;
}

.indicator-percentage {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--premium-success);
    display: block;
    text-align: center;
    margin-bottom: 5px;
}

/* Portfolio Styles */
.portfolio-section-premium {
    margin-top: 25px;
}

.portfolio-title-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.portfolio-title-text {
    font-weight: 800;
    font-size: 0.9rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cheque-portfolio-item {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 2px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.cheque-portfolio-item:hover {
    border-color: var(--premium-primary-soft);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateX(4px);
}

[data-textdirection="rtl"] .cheque-portfolio-item:hover {
    transform: translateX(-4px);
}

.cheque-portfolio-item.fully-used {
    background: #f8fafc;
    opacity: 0.8;
}

.cheque-item-left {
    display: flex;
    flex-direction: column;
}

.cheque-number-premium {
    font-weight: 800;
    font-size: 0.85rem;
    color: #1e293b;
}

.cheque-bank-premium {
    font-size: 0.7rem;
    color: #94a3b8;
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cheque-item-right {
    text-align: right;
}

.cheque-amount-total {
    font-weight: 700;
    font-size: 0.85rem;
    color: #64748b;
}

.cheque-amount-available {
    font-weight: 800;
    font-size: 0.8rem;
    color: var(--premium-success);
}

.summary-footer-premium {
    padding: 15px 20px;
    background: #fdfdfd;
    border-top: 1px solid #f1f5f9;
}

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

.footer-balance-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
}

.footer-balance-value {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--premium-danger);
}

/* Sticky Sidebar Fix */
.sticky-sidebar-premium {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 100px !important;
    z-index: 99 !important;
    align-self: flex-start !important;
}

.content-body,
section#basic-form-layouts {
    overflow: visible !important;
}

/* Financial Progress Bar */
.financial-progress-premium {
    height: 8px;
    background: #eef2f7;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 15px;
    display: flex;
}

.financial-progress-bar-premium {
    height: 100%;
}

.financial-progress-bar-paid {
    background-color: var(--premium-success);
}

.financial-progress-bar-cheques {
    background-color: var(--premium-warning);
    opacity: 0.75;
}

/* Legend Styles */
.financial-legend-premium {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 0.7rem;
    font-weight: 700;
}

.legend-item-premium {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-dot-premium {
    font-size: 6px;
    vertical-align: middle;
}

/* Portfolio Scrollable */
.linked-cheques-scrollable-premium {
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
}

/* Projected Balance Card */
.projected-balance-box-premium {
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    background: rgba(16, 185, 129, 0.04);
    border: 1px dashed rgba(16, 185, 129, 0.3);
    border-radius: 2px;
}

.projected-label-premium {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 4px;
    font-weight: 700;
}

.projected-value-premium {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--premium-success);
}

.projected-value-premium.negative {
    color: var(--premium-danger);
}

/* Cheque Details Pill */
.cheque-details-pill-premium {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #f8fafc;
    border-radius: 2px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.pill-info-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-grow: 1;
}

.pill-stat {
    display: flex;
    flex-direction: column;
    padding-right: 20px;
    border-right: 1px solid #e2e8f0;
}

[data-textdirection="rtl"] .pill-stat {
    padding-right: 0;
    padding-left: 20px;
    border-right: 0;
    border-left: 1px solid #e2e8f0;
}

.pill-label {
    font-size: 0.65rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pill-value {
    font-size: 0.9rem;
    font-weight: 800;
}

.pill-action-btn {
    border-radius: 8px !important;
    font-weight: 800 !important;
    padding: 6px 15px !important;
    white-space: nowrap;
}

/* Fully Paid Card */
.fully-paid-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    border: 1px solid var(--premium-success-soft);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.05);
}

.fully-paid-icon-wrapper {
    width: 50px;
    height: 50px;
    background: var(--premium-success-soft);
    color: var(--premium-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
}

.fully-paid-title {
    font-weight: 800;
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 5px;
}

.fully-paid-subtitle {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0;
}

/* ==========================================================================
   SMART BREAKDOWN & DIGITAL CHEQUE WALLET & LIVE PREVIEW
   ========================================================================== */
/* Smart Balance Breakdown */
.smart-balance-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.smart-balance-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

.breakdown-item.paid-item {
    background: #ecfdf5;
    color: #059669;
}

.breakdown-item.covered-item {
    background: #fffbeb;
    color: #d97706;
}

.breakdown-item.uncovered-item {
    background: #f1f5f9;
    color: #64748b;
}

.breakdown-item.uncovered-item.has-debt {
    background: #fef2f2;
    color: #dc2626;
    border-right: 3px solid #dc2626;
}

/* Triple Segment Progress Bar */
.financial-progress-premium.triple-segment {
    height: 12px;
    background: #f1f5f9;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
}

.financial-progress-bar-current-pulse {
    background: linear-gradient(90deg, #10b981, #34d399);
    animation: pulse-width 2s infinite alternate;
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.6);
    position: relative;
    z-index: 10;
}

.financial-progress-bar-current-pulse.pulse-blue {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    animation: pulse-width-blue 2s infinite alternate;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
    position: relative;
    z-index: 10;
}

.financial-progress-bar-cheques-striped {
    background: repeating-linear-gradient(45deg,
            #f59e0b,
            #f59e0b 10px,
            #fbbf24 10px,
            #fbbf24 20px);
    opacity: 0.85;
}

@keyframes pulse-width {
    0% {
        filter: brightness(1);
    }

    100% {
        filter: brightness(1.2);
    }
}

@keyframes pulse-width-blue {
    0% {
        filter: brightness(1);
    }

    100% {
        filter: brightness(1.2);
    }
}

/* Smart Assistant Box */
.smart-assistant-box {
    display: flex;
    gap: 12px;
    background: #eff6ff;
    border-right: 4px solid #3b82f6;
    border-radius: 8px;
    padding: 12px;
    font-size: 0.85rem;
    color: #1e3a8a;
    align-items: flex-start;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.smart-assistant-box.alert-state {
    background: #fef2f2;
    border-right: 4px solid #ef4444;
    color: #991b1b;
}

.assistant-icon {
    font-size: 1.2rem;
    margin-top: 2px;
}

/* Digital Cheque Wallet */
.digital-wallet-drawer {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 5px;
}

.cheque-card-premium {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    margin-top: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    position: relative;
    transition: all 0.3s ease;
}

.cheque-card-premium.selected-glow {
    border: 2px solid #10b981 !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.cheque-card-premium.fully-used-card {
    opacity: 0.65;
    background: #f8fafc;
}

.cheque-card-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cheque-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #cbd5e1;
    padding-bottom: 8px;
}

.bank-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #334155;
    font-size: 0.9rem;
}

.bank-icon {
    color: #94a3b8;
}

.cheque-number {
    font-family: monospace;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #475569;
}

.cheque-amount-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.cheque-amount-display.available {
    font-size: 0.85rem;
    margin-top: 4px;
}

.cheque-mini-progress {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    width: 100%;
}

.cheque-mini-progress .mini-progress-bar {
    height: 100%;
    background: #10b981;
    transition: width 0.3s ease;
}

/* Live Digital Cheque Preview */
.live-cheque-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.live-cheque-header {
    background: #f8fafc;
    padding: 10px 15px;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.live-cheque-canvas {
    padding: 15px;
    background: #f1f5f9;
    display: flex;
    justify-content: center;
}

.cheque-paper {
    width: 100%;
    background: repeating-linear-gradient(0deg,
            #fff,
            #fff 19px,
            #f1f5f9 20px);
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 15px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    border-left: 10px dashed #cbd5e1;
    color: #334155;
}

.cheque-paper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(#94a3b8 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
    pointer-events: none;
}

.cheque-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.85rem;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 5px;
}

.cheque-bank-name {
    font-weight: bold;
    color: #1e3a8a;
    font-size: 1rem;
}

.cheque-date .val {
    font-family: monospace;
    border-bottom: 1px dotted #94a3b8;
}

.cheque-pay-to {
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.cheque-pay-to .val {
    font-weight: bold;
    font-style: italic;
    border-bottom: 1px dotted #94a3b8;
    display: inline-block;
    min-width: 150px;
}

.cheque-amount-row {
    font-size: 0.85rem;
    background: #f8fafc;
    padding: 5px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 15px;
}

.cheque-amount-row .val {
    color: #059669;
}

.cheque-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 0.8rem;
}

.cheque-no .val {
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.cheque-signature {
    border-top: 1px solid #94a3b8;
    padding-top: 5px;
    width: 100px;
    text-align: center;
    color: #94a3b8;
    font-style: italic;
}

/* Maintenance Module Styles */
.maintenance-item-row {
    background-color: #f9fbfd;
    border-radius: 8px;
    padding: 15px 10px;
    margin-bottom: 15px;
    border: 1px solid #e1e5eb;
    transition: all 0.3s ease;
}

.maintenance-item-row:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: #d1d5db;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

/* Contract Clause Builder */
.cursor-move {
    cursor: move;
}

.clause-item {
    transition: all 0.2s;
}

.clause-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Premium Clause Library Styles */
.premium-clause-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 15px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    padding: 16px;
}

.premium-clause-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(135deg, #7367f0 0%, #9e95f5 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.premium-clause-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08), 0 6px 6px rgba(0, 0, 0, 0.05);
    border-color: rgba(115, 103, 240, 0.2);
}

.premium-clause-card:hover::before {
    opacity: 1;
}

.premium-clause-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
    padding-bottom: 10px;
}

.premium-clause-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #4b4b4b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.premium-clause-icon {
    color: #7367f0;
    font-size: 1.1rem;
}

html[dir="rtl"] .premium-clause-title {
    margin-right: 0;
}

html[dir="rtl"] .premium-clause-icon {
    margin-left: 8px;
}

html[dir="ltr"] .premium-clause-icon {
    margin-right: 8px;
}

.premium-clause-btn {
    background: rgba(40, 199, 111, 0.1);
    color: #28c76f;
    border: 1px solid rgba(40, 199, 111, 0.2);
    border-radius: 8px;
    padding: 6px 14px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    outline: none;
}

.premium-clause-btn:hover {
    background: #28c76f;
    color: #ffffff;
    border-color: #28c76f;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(40, 199, 111, 0.3);
}

.premium-clause-content {
    font-size: 0.95rem;
    color: #6e6b7b;
    line-height: 1.6;
    text-align: right;
    width: 100%;
    direction: rtl;
    margin: 0;
}

.clause-library-container {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 5px;
    padding-left: 5px;
    scrollbar-width: thin;
    scrollbar-color: #7367f0 rgba(0, 0, 0, 0.05);
}

.clause-library-container::-webkit-scrollbar {
    width: 6px;
}

.clause-library-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 10px;
}

.clause-library-container::-webkit-scrollbar-thumb {
    background: #d8d6f9;
    border-radius: 10px;
}

.clause-library-container::-webkit-scrollbar-thumb:hover {
    background: #7367f0;
}

/* Modern Smart Tags Tabs Styling (iOS-Style Segmented Control Pills) */
.smart-tags-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 10px !important;
}

.smart-tags-tabs {
    border: none !important;
    background: #f1f5f9 !important;
    /* light slate background */
    padding: 4px !important;
    border-radius: 30px !important;
    /* pill container */
    display: inline-flex !important;
    justify-content: center !important;
    margin: 12px auto !important;
    /* centered horizontally */
    align-items: center !important;
    width: auto !important;
    /* only occupies as much space as the tabs need */
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06) !important;
}

.smart-tags-tabs .nav-item {
    margin: 0 !important;
}

.smart-tags-tabs .nav-link {
    border: none !important;
    background: transparent !important;
    color: #475569 !important;
    font-weight: 700 !important;
    padding: 8px 20px !important;
    border-radius: 30px !important;
    font-size: 0.95rem !important;
    transition: all 0.25s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
}

.smart-tags-tabs .nav-link:focus,
.smart-tags-tabs .nav-link:active {
    outline: none !important;
    box-shadow: none !important;
}

.smart-tags-tabs .nav-link:hover {
    color: #7367f0 !important;
    background-color: transparent !important;
}

.smart-tags-tabs .nav-link.active {
    background: #ffffff !important;
    /* white pill for active tab */
    color: #7367f0 !important;
    box-shadow: 0 4px 10px rgba(115, 103, 240, 0.15) !important;
}

.smart-tags-tabs .nav-link i {
    margin-inline-end: 5px;
}

/* Tag Cards Styling */
.smart-tag-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    height: 100%;
}

.smart-tag-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.smart-tag-card.copied-success {
    border-color: #28c76f !important;
    background-color: rgba(40, 199, 111, 0.05) !important;
    transform: scale(0.98);
}

.tag-label {
    font-size: 0.98rem;
    font-weight: 600;
}

.tag-code {
    font-size: 0.95rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.bg-light-primary {
    background-color: rgba(115, 103, 240, 0.1) !important;
}

.text-primary {
    color: #7367f0 !important;
}

.bg-light-success {
    background-color: rgba(40, 199, 111, 0.1) !important;
}

.text-success {
    color: #28c76f !important;
}

.bg-light-warning {
    background-color: rgba(255, 159, 67, 0.1) !important;
}

.text-warning {
    color: #ff9f43 !important;
}

.bg-light-danger {
    background-color: rgba(234, 84, 85, 0.1) !important;
}

.text-danger {
    color: #ea5455 !important;
}

/* Custom Smart Tags Layout Overrides (Dashed Pill Alert) */
.smart-tags-hint-bar {
    background: linear-gradient(135deg, rgba(115, 103, 240, 0.06) 0%, rgba(115, 103, 240, 0.02) 100%) !important;
    border: 1px dashed rgba(115, 103, 240, 0.25) !important;
    border-radius: 12px !important;
    padding: 12px 20px !important;
    margin: 16px 16px 8px 16px !important;
    /* Margin around it to float inside the card */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.smart-tags-hint-bar p {
    color: #7367f0 !important;
    font-size: 0.98rem !important;
    font-weight: 700 !important;
    margin-bottom: 0 !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.smart-tags-hint-bar p i {
    color: #7367f0 !important;
    font-size: 1.15rem !important;
    margin-inline-end: 0 !important;
    animation: pulse-info 2s infinite !important;
}

@keyframes pulse-info {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.smart-tags-collapse-body {
    background-color: #fff !important;
    border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
}

.smart-tags-content {
    padding: 12px 16px 8px 16px !important;
}

/* Tab Error Indicator */
.tab-error-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background-color: #ff4d4d;
    border-radius: 50%;
    box-shadow: 0 0 8px #ff4d4d;
    animation: pulse-red 1.5s infinite;
    z-index: 10;
}

.premium-tab-btn {
    position: relative !important;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(255, 77, 77, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0);
    }
}

/* ==========================================================================
   CONTRACT DURATION & DATES STYLING
   ========================================================================== */
.contract-duration-wrapper {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.duration-label-badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(59, 130, 246, 0.08);
    color: #1e293b;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid rgba(59, 130, 246, 0.15);
    white-space: nowrap;
}

.duration-label-badge i {
    font-size: 0.95rem;
}

.duration-label-badge span {
    white-space: nowrap;
}

.contract-duration-wrapper .date-range-badge {
    display: inline-flex;
    align-items: center;
    background-color: #f8fafc;
    border-radius: 20px;
    padding: 4px 10px;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
}

.contract-duration-wrapper .date-range-badge .date-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.5px;
}

.contract-duration-wrapper .date-range-badge .date-arrow {
    margin: 0 8px;
    font-size: 0.8rem;
    opacity: 0.7;
}

[data-textdirection="rtl"] .duration-label-badge i,
[dir="rtl"] .duration-label-badge i {
    margin-left: 6px;
    margin-right: 0 !important;
}

[data-textdirection="ltr"] .duration-label-badge i,
[dir="ltr"] .duration-label-badge i {
    margin-right: 6px;
    margin-left: 0 !important;
}

/* ========================================================================
   PLATINUM DASHBOARD - UNIFIED PAGES STYLING (pages.css)
   Consolidates: Properties, Contracts, Cheques, Payments, Settings, etc.
   Supports: LTR & RTL in a single file.
   ======================================================================== */
:root {
    --premium-primary: #3b82f6;
    --premium-primary-soft: rgba(59, 130, 246, 0.1);
    --premium-success: #10b981;
    --premium-success-soft: rgba(16, 185, 129, 0.1);
    --premium-warning: #f59e0b;
    --premium-warning-soft: rgba(245, 158, 11, 0.1);
    --premium-danger: #ef4444;
    --premium-danger-soft: rgba(239, 68, 68, 0.1);
    --premium-info: #06b6d4;
    --premium-info-soft: rgba(6, 182, 212, 0.1);
    --premium-slate: #1e293b;
    --premium-slate-light: #64748b;
    /* Legacy Sync */
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
}

/* ==========================================================================
   GLOBAL PREMIUM COMPONENTS (Unified)
   ========================================================================== */
/* Removed redundant .premium-card - using system-style.css instead */
.premium-mandatory-header {
    background: #ffffff !important;
    color: #1e293b !important;
    font-weight: 700 !important;
    padding: 10px 20px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
}

[dir="rtl"] .premium-mandatory-header i,
html[dir="rtl"] .premium-mandatory-header i,
[data-textdirection="rtl"] .premium-mandatory-header i {
    margin-left: 10px !important;
    margin-right: 0 !important;
}

[dir="ltr"] .premium-mandatory-header i,
html[dir="ltr"] .premium-mandatory-header i {
    margin-right: 10px !important;
    margin-left: 0 !important;
}

/* Global Premium Buttons (Unified to Minimalist White Style) */
.btn-premium-save,
button.btn-premium-save,
.btn-premium-add,
.btn-premium-edit,
.btn-premium-back,
a.btn-premium-back {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 0 24px !important;
    height: 42px !important;
    margin: 0 4px !important;
    border-radius: 4px !important;
    /* Unified rounded style matching cancel button */
    font-weight: 700 !important;
    font-size: 1rem !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    cursor: pointer !important;
    text-decoration: none !important;
    background: #ffffff !important;
    color: #475569 !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
}

.btn-premium-save:hover,
button.btn-premium-save:hover,
.btn-premium-add:hover,
.btn-premium-edit:hover,
.btn-premium-back:hover,
.btn-premium-secondary:hover,
.btn-premium-cancel:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
    background: #ffffff !important;
    color: #1e293b !important;
    border-color: #5A8DEE !important;
}

.btn-premium-save i,
.btn-premium-add i,
.btn-premium-edit i,
.btn-premium-back i {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.btn-premium-save:hover i,
.btn-premium-add:hover i,
.btn-premium-edit:hover i,
.btn-premium-back:hover i {
    transform: translateX(4px);
}

[data-textdirection="rtl"] .btn-premium-save:hover i,
[data-textdirection="rtl"] .btn-premium-add:hover i,
[data-textdirection="rtl"] .btn-premium-edit:hover i,
[data-textdirection="rtl"] .btn-premium-back:hover i {
    transform: translateX(-4px);
}

.btn-premium-save.shadow-pulse,
.btn-premium-add.shadow-pulse {
    animation: pulse-indigo 2.5s infinite;
}

/* ==========================================================================
   MODULE: PROPERTIES (��� ��� ��������)
   ========================================================================== */
.header-bg-shape {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

[dir="ltr"] .header-bg-shape {
    right: auto;
    left: -50px;
}

/* Table Widths */
.col-owner-width {
    width: 60% !important;
}

.col-percentage-width {
    width: 15% !important;
}

.col-primary-width {
    width: 12% !important;
}

.col-actions-width {
    width: 13% !important;
}

/* Standardized Table Styling for Properties & Customers */
.premium-table thead th {
    background-color: #f8fafc !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    color: #475569 !important;
    padding: 15px 20px !important;
    vertical-align: middle !important;
    border-bottom: 2px solid #f1f5f9 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.premium-table tbody td {
    padding: 15px 20px !important;
    vertical-align: middle !important;
    color: #1e293b !important;
    font-weight: 500 !important;
}

.th-w-20 {
    width: 20% !important;
}

.th-w-25 {
    width: 25% !important;
}

.th-w-15 {
    width: 15% !important;
}

/* Heading Elements Icons Scaling */
.heading-elements ul li a i {
    font-size: 11px !important;
    color: #94a3b8 !important;
    transition: color 0.3s ease;
}

.heading-elements ul li a:hover i {
    color: #475569 !important;
}

.th-w-10 {
    width: 10% !important;
}

.th-w-actions {
    width: 30px !important;
}

.header-trash-icon {
    margin-inline-start: 4px !important;
    font-size: 1.1rem !important;
    color: #94a3b8 !important;
}

.btn-trash-cell {
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

/* ==========================================================================
   MODULE: CONTRACTS (��� ��� ����)
   ========================================================================== */
.contract-text-viewer {
    line-height: 1.7 !important;
    color: #334155 !important;
    background: #fff !important;
    border-radius: 12px !important;
    padding: 25px !important;
}

[dir="rtl"] .border-primary-left,
html[dir="rtl"] .border-primary-left,
[data-textdirection="rtl"] .border-primary-left {
    border-right: 4px solid #7367f0 !important;
    border-left: 0 !important;
}

[dir="ltr"] .border-primary-left,
html[dir="ltr"] .border-primary-left {
    border-left: 4px solid #7367f0 !important;
    border-right: 0 !important;
}

/* Premium Badge Hint (Insurance Locked) */
.premium-badge-hint {
    background-color: rgba(239, 68, 68, 0.08) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    padding: 6px 14px !important;
    border-radius: 50px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.05) !important;
    white-space: nowrap !important;
}

.premium-badge-hint i {
    font-size: 13px !important;
    animation: premium-pulse-lock 2s infinite !important;
}

@keyframes premium-pulse-lock {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

[data-textdirection="rtl"] .premium-badge-hint {
    letter-spacing: 0 !important;
}

/* ==========================================================================
   MODULE: CHEQUES (��� ���`� ����)
   ========================================================================== */
.cheque-summary-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    border-left: 5px solid #ef4444;
    padding: 24px;
}

[dir="rtl"] .cheque-summary-card {
    border-left: 1px solid #f1f5f9;
    border-right: 5px solid #ef4444;
}

/* ==========================================================================
   MODULE: PAYMENTS (��� ����������)
   ========================================================================== */
.payment-summary-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    border-left: 5px solid #10b981;
    padding: 24px;
}

[dir="rtl"] .payment-summary-card,
html[dir="rtl"] .payment-summary-card,
[data-textdirection="rtl"] .payment-summary-card {
    border-left: 1px solid #f1f5f9;
    border-right: 5px solid #10b981;
}

/* Property Mandatory Section (Matched to Contract Insurance Style) */
.property-mandatory-section {
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    margin: 30px 0 !important;
    background: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

.property-mandatory-header {
    background: #f8fafc !important;
    padding: 12px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.property-mandatory-header .title-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: #1e293b !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
}

.property-mandatory-header i {
    font-size: 1.15rem !important;
    color: #475569 !important;
}

.property-mandatory-body {
    padding: 25px 20px !important;
}

[data-textdirection="rtl"] .property-mandatory-header .title-wrapper {
    gap: 12px !important;
}

/* Sub-header inside mandatory body (e.g. Cheque Details) */
.mandatory-sub-header {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding-bottom: 8px !important;
    margin-bottom: 15px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.mandatory-sub-header i {
    font-size: 1.1rem !important;
    color: #3b82f6 !important;
    /* text-primary */
}

.mandatory-sub-header h6 {
    color: #3b82f6 !important;
    /* text-primary */
    margin: 0 !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
}

.mandatory-sub-header small {
    color: #64748b !important;
    /* text-muted */
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    margin-right: 5px !important;
}

[data-textdirection="rtl"] .mandatory-sub-header small {
    margin-right: 0 !important;
    margin-left: 5px !important;
}

/* ==========================================================================
   MODULE: SETTINGS (��� �������������� ��� �����& ��) - Scoped Styles Only
   ========================================================================== */
/* Use global .premium-card and .premium-mandatory-header from system-style.css */
.premium-card {
    margin-bottom: 17px !important;
}

.premium-mandatory-header {
    background: #f8fafc !important;
    padding: 12px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid #e2e8f0 !important;
    font-size: 1.58rem !important;
    font-weight: 800 !important;
    color: #1e293b !important;
}

.premium-mandatory-header .title-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: #1e293b !important;
    font-weight: 800 !important;
    font-size: 1.27rem !important;
}

.premium-mandatory-header i {
    font-size: 1.45rem !important;
    color: #475569 !important;
}

[data-textdirection="rtl"] .premium-mandatory-header .title-wrapper {
    gap: 12px !important;
}

.premium-form-group {
    margin-bottom: 27px !important;
    position: relative !important;
}

.premium-mandatory-body .row,
form.ajax-form .row {
    margin-bottom: 22px !important;
}

.error-text {
    position: relative !important;
    margin-top: 4px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    display: block !important;
    word-wrap: break-word !important;
    white-space: normal !important;
    animation: premiumFadeInUp 0.3s ease-out !important;
    z-index: 10 !important;
}

[dir="rtl"] .error-text,
html[dir="rtl"] .error-text,
[data-textdirection="rtl"] .error-text {
    text-align: right !important;
    padding-right: 2px !important;
    direction: rtl !important;
}

/* Static error text for titles or sections where absolute positioning is not suitable */
.premium-section-title .error-text {
    position: static !important;
    display: inline-block !important;
    width: auto !important;
    margin-right: 10px !important;
    margin-left: 10px !important;
    animation: none !important;
}

[dir="ltr"] .error-text,
html[dir="ltr"] .error-text {
    text-align: left !important;
    padding-left: 2px !important;
    direction: ltr !important;
}

/* Special styling for permissions error chip in section titles */
.premium-error-alert-chip {
    background-color: rgba(255, 73, 97, 0.1) !important;
    color: #ff4961 !important;
    border: 1px solid rgba(255, 73, 97, 0.3) !important;
    padding: 5px 15px !important;
    border-radius: 30px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    display: none;
    /* Hidden by default until text is filled */
    box-shadow: 0 4px 10px rgba(255, 73, 97, 0.15) !important;
    animation: premiumShake 0.5s ease-in-out !important;
}

.premium-error-alert-chip:not(:empty) {
    display: inline-block !important;
}

@keyframes premiumShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Global Hover Animation for Cancel/Close Icons */
.premium-modal-close:hover i,
.btn-premium-secondary:hover i {
    transform: rotate(90deg) !important;
    transition: transform 0.3s ease-in-out !important;
}

.premium-modal-close i,
.btn-premium-secondary i {
    transition: transform 0.3s ease-in-out !important;
}

/* Required Asterisk Styling */
label .text-danger,
.premium-label .text-danger {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin-left: 2px;
    margin-right: 2px;
}

@keyframes premiumFadeInUp {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.field-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
}

.field-header i {
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    font-size: 0.9rem !important;
    background: var(--premium-primary-soft) !important;
    color: var(--premium-primary) !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03) !important;
}

/* Contextual Icon Colors */
.field-header i.fa-font,
.field-header i.fa-language {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #3b82f6 !important;
}

.field-header i.fa-facebook-f {
    background: rgba(24, 119, 242, 0.1) !important;
    color: #1877f2 !important;
}

.field-header i.fa-twitter {
    background: rgba(29, 161, 242, 0.1) !important;
    color: #1da1f2 !important;
}

.field-header i.fa-instagram {
    background: rgba(225, 48, 108, 0.1) !important;
    color: #e1306c !important;
}

.field-header i.fa-youtube {
    background: rgba(255, 0, 0, 0.1) !important;
    color: #ff0000 !important;
}

.field-header i.fa-phone,
.field-header i.fa-mobile-alt,
.field-header i.fa-whatsapp {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #10b981 !important;
}

.field-header i.fa-envelope,
.field-header i.fa-envelope-open-text {
    background: rgba(6, 182, 212, 0.1) !important;
    color: #06b6d4 !important;
}

.premium-form-group:focus-within .field-header i {
    transform: scale(1.1) rotate(5deg) !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1) !important;
}

.field-header label {
    margin: 0 !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Global double-border fix moved to system-style.css for universal support */
.identity-summary-card {
    background: #ffffff !important;
    border-radius: 2px !important;
    padding: 30px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #f1f5f9 !important;
}

.summary-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 25px !important;
    padding-bottom: 15px !important;
    border-bottom: 2px dashed #f1f5f9 !important;
}

.summary-header i {
    font-size: 1.5rem !important;
    color: var(--premium-primary) !important;
}

.summary-title {
    font-weight: 800 !important;
    font-size: 1.2rem !important;
    color: #1e293b !important;
}

/* Save Button Enhancement */
.btn-premium-save {
    background: linear-gradient(135deg, var(--premium-primary) 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 35px !important;
    border-radius: 2px !important;
    font-weight: 800 !important;
    box-shadow: 0 10px 20px var(--premium-primary-soft) !important;
}

.btn-premium-save:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 15px 30px var(--premium-primary-soft) !important;
}

/* ==========================================================================
   MODULE: DASHBOARD HOME (��� �����`���`��)
   ========================================================================== */
.welcome-section {
    background: url('https://www.transparenttextures.com/patterns/cubes.png'), linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 6px;
    padding: 2.5rem 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 15px 30px rgba(67, 97, 238, 0.2);
    color: white;
    position: relative;
    overflow: hidden;
}

.welcome-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
}

[dir="rtl"] .welcome-section::after,
html[dir="rtl"] .welcome-section::after,
[data-textdirection="rtl"] .welcome-section::after {
    right: auto;
    left: -10%;
}

.welcome-section .welcome-title {
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.welcome-section .welcome-text {
    color: rgba(255, 255, 255, 0.8) !important;
    max-width: 500px;
    line-height: 1.7 !important;
    margin-bottom: 40px !important;
}

.welcome-date {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Premium Tabs (Segmented Control Style) */
.premium-tabs-wrapper {
    background: #f8f9fa;
    padding: 6px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 2rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.custom-pills .nav-link {
    border-radius: 6px;
    padding: 12px 30px;
    font-weight: 600;
    color: #6c757d;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin: 0 4px;
}

.custom-pills .nav-link:hover {
    color: var(--primary-color);
}

.custom-pills .nav-link.active {
    background: #ffffff;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Premium Breadcrumb */
.premium-breadcrumb {
    background: transparent !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
}

.premium-breadcrumb .breadcrumb-item a {
    color: var(--premium-primary) !important;
    font-weight: 600 !important;
}

.premium-breadcrumb .breadcrumb-item.active {
    color: #64748b !important;
}

/* Minimalist Premium Stat Cards (Updated to match requested screenshot) */
.premium-stat-card {
    background: #ffffff !important;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%2394a3b8' fill-opacity='0.07' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='1'/%3E%3C/g%3E%3C/svg%3E") !important;
    border-radius: 2px !important;
    padding: 1.5rem !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 100px !important;
}

.premium-stat-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(67, 97, 238, 0.3) !important;
}

.premium-stat-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
}

.stat-content {
    display: flex !important;
    flex-direction: column !important;
    z-index: 2 !important;
}

.stat-value {
    font-size: 2.1rem !important;
    /* Increased by 3px */
    font-weight: 800 !important;
    color: #1e293b !important;
    line-height: 1.2 !important;
    margin-bottom: 0.1rem !important;
}

.stat-title {
    font-size: 1.05rem !important;
    /* Increased by 3px */
    font-weight: 600 !important;
    color: #64748b !important;
    margin: 0 !important;
}

/* Icon Blob Container */
.stat-icon-wrapper {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    /* Made Circular */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 2 !important;
}

.stat-icon-wrapper i {
    font-size: 1.6rem !important;
    /* Increased by 3px */
}

/* Contextual Colors for Blobs and Icons */
.card-contracts .stat-icon-wrapper {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #3b82f6 !important;
}

.card-active .stat-icon-wrapper {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #10b981 !important;
}

.card-revenue .stat-icon-wrapper {
    background: rgba(6, 182, 212, 0.1) !important;
    color: #06b6d4 !important;
}

.card-expiring .stat-icon-wrapper {
    background: rgba(245, 158, 11, 0.1) !important;
    color: #f59e0b !important;
}

/* Remove old blob/floating icon styles */
.stat-icon-blob,
.stat-icon-floating {
    display: none !important;
}

.premium-stat-card::before {
    display: none !important;
}

/* Chart Card */
.premium-chart-card {
    border-radius: 6px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    border: none;
    padding: 1rem;
    background: #fff;
}

.premium-chart-card .card-header {
    background: transparent;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    padding-bottom: 1.5rem;
}

.premium-chart-card .card-title {
    font-weight: 700;
    color: #2d3436;
}

/* Simplified Animations */
.animate-up {
    opacity: 1;
    transform: none;
    transition: none !important;
    animation: none !important;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Company Identity Banner */
.company-identity-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    border-radius: 2px !important;
    border: none;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.25);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    color: #ffffff;
}

.company-identity-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0) 70%);
    border-radius: 50%;
}

.company-identity-banner:hover {
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35);
    transform: translateY(-5px);
}

.company-logo-frame {
    width: 70px;
    height: 70px;
    border-radius: 2px !important;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.company-logo-frame img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.company-initials {
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.welcome-text-premium {
    font-weight: 800;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.welcome-text-premium span.text-primary {
    color: #38bdf8 !important;
    /* Brighter blue for contrast */
}

.company-name-subtitle {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7) !important;
    letter-spacing: 0.5px;
}

.welcome-date-section .welcome-date {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.welcome-date-section .welcome-date i {
    color: #38bdf8 !important;
}

/* ==========================================================================
   MODULE: LOGIN & LOCK SCREEN (Scoped to Auth Container)
   ========================================================================== */
/* ==========================================================================
   MODULE: LOGIN & LOCK SCREEN (Premium Architecture)
   ========================================================================== */
/* 1. Global Reset for Auth Pages */
.login-main-wrapper~.header-navbar,
.login-main-wrapper~.footer,
.login-main-wrapper~.main-menu {
    display: none !important;
}

/* 2. Main Layout Container */
.login-main-wrapper {
    display: flex;
    width: 100%;
    height: 100vh;
    background: #0f172a;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    overflow: hidden;
}

[dir="rtl"] .login-main-wrapper {
    direction: rtl;
}

/* 3. Visual Content (Welcome Side) */
.welcome-side {
    background: url('../images/carbon-fibre.png'), url('../images/mjk/background.jpg') no-repeat center center;
    background-size: auto, cover;
    flex: 1;
    display: none;
    flex-direction: column;
    justify-content: flex-end;
    padding: 60px 8%;
    color: white;
    position: relative;
    z-index: 2;
}

.welcome-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #0f172a 0%, rgba(15, 23, 42, 0.4) 60%, transparent 100%);
    z-index: 1;
}

.welcome-side::after {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0) 70%);
    border-radius: 50%;
    z-index: 1;
}

[dir="rtl"] .welcome-side::after {
    right: auto;
    left: -10%;
}

.welcome-content-premium {
    position: relative;
    z-index: 3;
    animation: fadeInUp 1s ease-out;
}

.badge-welcome {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(56, 189, 248, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
}

.login-main-wrapper .welcome-title {
    font-weight: 900 !important;
    margin-bottom: 20px !important;
    line-height: 1.1 !important;
    letter-spacing: -2px !important;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.login-main-wrapper .welcome-text {
    color: rgba(255, 255, 255, 0.8) !important;
    max-width: 500px;
    line-height: 1.7 !important;
    margin-bottom: 40px !important;
}

@media (min-width: 992px) {
    .welcome-side {
        display: flex;
    }
}

/* 4. Form Side */
.form-side {
    position: relative;
    background: white;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    z-index: 5;
}

@media (min-width: 992px) {
    .form-side {
        width: 480px;
        box-shadow: -10px 0 50px rgba(0, 0, 0, 0.2);
    }
}

.login-form-box {
    width: 100%;
    max-width: 360px;
}

.brand-logo-modern {
    margin-bottom: 40px;
    text-align: center;
}

.brand-logo-modern img {
    max-height: 140px;
    width: auto;
}

.form-header-modern {
    text-align: center;
    margin-bottom: 30px;
}

.form-header-modern h2 {
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 8px;
}

.form-group-modern {
    margin-bottom: 32px;
    width: 100%;
}

.form-label-modern {
    display: block;
    font-weight: 700;
    color: #1e3a8a;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.login-options-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    margin-bottom: 30px;
}

.remember-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    color: #64748b;
}

.remember-modern input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #38bdf8;
    cursor: pointer;
}

.forgot-modern {
    font-weight: 700;
    color: #38bdf8;
    text-decoration: none;
    transition: all 0.3s;
}

.forgot-modern:hover {
    color: #1e3a8a;
    text-decoration: underline;
}

.form-control-modern {
    width: 100%;
    background: #f8fafc;
    border: 2px solid #f1f5f9;
    border-radius: 6px;
    padding: 16px 20px;
    padding-inline-start: 48px;
    color: #1e293b;
    transition: all 0.3s;
}

.form-control-modern:focus {
    background: white;
    border-color: #38bdf8;
    box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.1);
    outline: none;
}

.input-container-modern {
    position: relative;
}

.input-icon-modern {
    position: absolute;
    inset-inline-start: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #38bdf8;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 10;
}

.btn-login-modern {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #1e3a8a 100%);
    background-size: 200% auto;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.4);
}

.btn-login-modern:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.5);
}

.lang-toggle-container {
    position: absolute;
    top: 30px;
    inset-inline-end: 30px;
}

.btn-lang-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 50px;
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 800;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

@media (max-width: 991px) {
    .login-main-wrapper {
        background: #0f172a;
    }

    .form-side {
        background: transparent;
    }

    .login-form-box {
        background: rgba(255, 255, 255, 0.95);
        padding: 50px 35px;
        border-radius: 35px;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
        max-width: 440px;
        width: 92%;
    }
}

/* 5. Lock Screen Specific Styles */
.lock-avatar-premium {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    padding: 5px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 0 auto 1.5rem;
    position: relative;
    border: 2px solid #f1f5f9;
}

.lock-avatar-premium img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.lock-avatar-initials {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
}

.lock-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #f0fdf4;
    color: #166534;
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.different-account {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 2rem;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.different-account:hover {
    color: #38bdf8;
}

/* 6. Utility Animations & Components */
.stat-item {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #38bdf8;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   MODULE: PERMISSIONS & SWITCHES
   ========================================================================== */
/* Global Utilities */
.radius-20 {
    border-radius: 6px !important;
}

.radius-15 {
    border-radius: 6px !important;
}

.shadow-pulse {
    animation: none !important;
    box-shadow: none !important;
}

/* Dashboard Tabs - Unified & Sharpened */
.premium-segmented-control {

    /* Smart Tag Copied Effect */
    .smart-tag-copied-effect {
        transform: scale(0.95);
        background-color: #e8f5e9 !important;
        border-color: #28c76f !important;
        box-shadow: 0 0 15px rgba(40, 199, 111, 0.4) !important;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    }

    .smart-tag-copied-effect .tag-code {
        background-color: #28c76f !important;
        color: #ffffff !important;
        transform: scale(1.05);
        transition: all 0.3s ease !important;
    }

    /* Maintenance Items Header Styles */
    .maintenance-items-header {
        background: #f8fafc;
        border-bottom: 1px solid #e2e8f0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
    }

    .maintenance-items-header-title {
        color: #475569;
        display: flex;
        align-items: center;
        gap: 10px;
        font-weight: 700;
        font-size: 1.15rem;
    }

    .maintenance-items-header-title i {
        font-size: 1.3rem;
    }

    /* Small Premium File Box */
    .premium-file-box-sm {
        min-height: 38px !important;
        height: 38px !important;
        padding: 5px 10px !important;
        border-radius: 2px !important;
    }

    .premium-file-box-sm .file-icon-box {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.9rem !important;
    }

    /* Action Button Wrapper for vertical alignment */
    .action-btn-wrapper {
        min-height: 42px;
    }

    /* File box exact match to 42px inputs */
    .premium-file-box-match {
        height: 42px !important;
        min-height: 42px !important;
        padding: 0 12px !important;
    }

    .premium-file-box-match .file-icon-box {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.9rem !important;
    }

    .premium-file-box-match .browse-badge {
        padding: 4px 10px !important;
    }

    /* Ultimate Alignment Fixes */
    .premium-file-upload-wrapper {
        margin-top: 0 !important;
    }

    .action-btn-wrapper,
    .btn-premium-action {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .align-all-items-row .premium-input,
    .align-all-items-row .premium-file-box,
    .align-all-items-row .action-btn-wrapper,
    .align-all-items-row .btn-premium-action {
        height: 42px !important;
        min-height: 42px !important;
    }

    .align-all-items-row .btn-premium-action {
        width: 42px !important;
    }

    /* Absolute Alignment Fixes */
    .maintenance-item-row .premium-file-upload-wrapper {
        margin-top: 2px !important;
    }

    html[dir="rtl"] .maintenance-item-row .file-preview-container,
    html[dir="rtl"] .maintenance-item-row>.col-md-5>.premium-form-group>.d-flex>.btn-premium-action {
        margin-right: 5px !important;
        margin-top: 2px !important;
    }

    html[dir="ltr"] .maintenance-item-row .file-preview-container,
    html[dir="ltr"] .maintenance-item-row>.col-md-5>.premium-form-group>.d-flex>.btn-premium-action {
        margin-left: 5px !important;
        margin-top: 2px !important;
    }

    .maintenance-item-row .premium-file-box {
        height: 42px !important;
        min-height: 42px !important;
        padding: 0 10px !important;
    }

    .maintenance-item-row .premium-file-box .file-icon-box {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.9rem !important;
    }

    .maintenance-item-row .btn-premium-action {
        width: 42px !important;
        height: 42px !important;
        margin: 0 !important;
        transform: none !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .maintenance-item-row .action-btn-wrapper {
        min-height: 42px !important;
        height: 42px !important;
        margin-top: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    .maintenance-item-row .file-preview-container {
        height: 42px !important;
        display: flex !important;
        align-items: center !important;
    }

    .maintenance-item-row .d-flex.align-items-center.w-100 {
        height: 42px !important;
    }

    .maintenance-item-row .premium-form-group>label.premium-label {
        margin-bottom: 8px !important;
        height: 21px !important;
        display: block !important;
    }

    /* --- Sticky Table Actions --- */
    .sticky-actions {
        position: sticky !important;
        left: 0 !important;
        z-index: 2;
        background-color: #fff;
    }

    th.sticky-actions {
        z-index: 3;
    }

    .table-hover tbody tr:hover .sticky-actions {
        background-color: #f6f6f6;
    }

    .dark-layout .sticky-actions,
    .dark-layout th.sticky-actions {
        background-color: #283046 !important;
    }

    .dark-layout .table-hover tbody tr:hover .sticky-actions {
        background-color: #343d55 !important;
    }

    /* ---------------------------- */
    /* ========================================================================
}
/* ========================================================================
/* --- Sticky Table Actions --- */
    .sticky-actions {
        position: sticky !important;
        left: 0 !important;
        z-index: 2;
        background-color: #fff;
    }

    th.sticky-actions {
        z-index: 3;
    }

    .table-hover tbody tr:hover .sticky-actions {
        background-color: #f6f6f6;
    }

    .dark-layout .sticky-actions,
    .dark-layout th.sticky-actions {
        background-color: #283046 !important;
    }

    .dark-layout .table-hover tbody tr:hover .sticky-actions {
        background-color: #343d55 !important;
    }

    /* ==========================================================================
   MODULE: IMPORT CHEQUES PREMIUM VALIDATION & ERRORS
   ========================================================================== */
    .premium-checkbox-custom {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .premium-checkbox-custom input[type="checkbox"] {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        width: 28px;
        height: 28px;
        border: 2px solid #cbd5e1;
        border-radius: 6px;
        background-color: #ffffff;
        cursor: pointer;
        outline: none;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .premium-checkbox-custom input[type="checkbox"]:hover {
        border-color: #3b82f6;
        box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    }

    .premium-checkbox-custom input[type="checkbox"]:focus {
        outline: none;
        border-color: #3b82f6;
    }

    .premium-checkbox-custom input[type="checkbox"]:checked {
        background-color: #ffffff;
        border-color: #1d4ed8;
        border-width: 2.5px;
        box-shadow: 0 0 0 5px rgba(29, 78, 216, 0.15);
    }

    .premium-checkbox-custom input[type="checkbox"]::after {
        content: "";
        position: absolute;
        width: 7px;
        height: 13px;
        border: solid #1d4ed8;
        border-width: 0 3px 3px 0;
        left: 50%;
        top: 45%;
        transform: translate(-50%, -50%) rotate(45deg) scale(0);
        opacity: 0;
        transition: transform 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46), opacity 0.15s ease-in-out;
    }

    .premium-checkbox-custom input[type="checkbox"]:checked::after {
        transform: translate(-50%, -50%) rotate(45deg) scale(1);
        opacity: 1;
    }

    .import-row-error {
        background-color: hsla(0, 100%, 99%, 0.9) !important;
        border-inline-start: 4px solid hsl(0, 85%, 60%) !important;
        transition: all 0.25s ease;
    }

    .import-row-error:hover {
        background-color: hsla(0, 100%, 97%, 0.9) !important;
    }

    .import-row-warning {
        background-color: hsla(38, 100%, 99%, 0.9) !important;
        border-inline-start: 4px solid hsl(38, 95%, 50%) !important;
        transition: all 0.25s ease;
    }

    .import-row-warning:hover {
        background-color: hsla(38, 100%, 97%, 0.9) !important;
    }

    .premium-error-bubble {
        background-color: #ffffff;
        border: 1px solid hsl(0, 100%, 94%);
        border-inline-start: 3.5px solid hsl(0, 85%, 60%);
        border-radius: 8px;
        padding: 8px 12px;
        margin-top: 8px;
        display: flex;
        align-items: flex-start;
        gap: 8px;
        box-shadow: 0 4px 10px rgba(220, 38, 38, 0.06);
        max-width: 100%;
        width: fit-content;
        word-break: break-word;
        text-align: start;
        position: relative;
        animation: bubbleSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .premium-error-bubble::before {
        content: "";
        position: absolute;
        top: -6px;
        right: 15px;
        border-width: 0 6px 6px 6px;
        border-style: solid;
        border-color: transparent transparent hsl(0, 100%, 94%) transparent;
    }

    html[dir='ltr'] .premium-error-bubble::before {
        right: auto;
        left: 15px;
    }

    .premium-error-bubble::after {
        content: "";
        position: absolute;
        top: -5px;
        right: 16px;
        border-width: 0 5px 5px 5px;
        border-style: solid;
        border-color: transparent transparent #ffffff transparent;
    }

    html[dir='ltr'] .premium-error-bubble::after {
        right: auto;
        left: 16px;
    }

    .premium-error-bubble i {
        color: hsl(0, 85%, 60%);
        font-size: 0.95rem;
        margin-top: 2px;
        flex-shrink: 0;
    }

    .premium-error-bubble span {
        color: hsl(0, 75%, 35%);
        font-weight: 700;
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .error-badge-pulse {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        background: linear-gradient(135deg, hsl(0, 100%, 96%) 0%, hsl(0, 100%, 92%) 100%);
        color: hsl(0, 85%, 60%);
        border: 1px solid hsl(0, 100%, 90%);
        border-radius: 50%;
        font-size: 0.95rem;
        box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.1), 0 2px 4px -1px rgba(220, 38, 38, 0.06);
        animation: errorPulse 2.5s infinite;
    }

    @keyframes errorPulse {
        0% {
            box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
        }

        70% {
            box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
        }

        100% {
            box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
        }
    }

    .premium-success-chip {
        background: linear-gradient(135deg, hsl(142, 60%, 98%) 0%, hsl(142, 60%, 95%) 100%);
        border: 1px solid hsl(142, 50%, 90%);
        color: hsl(142, 60%, 35%);
        padding: 6px 12px;
        border-radius: 8px;
        font-weight: 700;
        font-size: 0.82rem;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        box-shadow: 0 2px 4px rgba(22, 163, 74, 0.05);
        transition: all 0.2s ease;
    }

    .premium-success-chip:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 6px rgba(22, 163, 74, 0.08);
    }

    .premium-warning-chip {
        background: linear-gradient(135deg, hsl(38, 100%, 99%) 0%, hsl(38, 100%, 96%) 100%);
        border: 1px solid hsl(38, 100%, 91%);
        color: hsl(38, 95%, 35%);
        padding: 6px 12px;
        border-radius: 8px;
        font-weight: 700;
        font-size: 0.82rem;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        box-shadow: 0 2px 4px rgba(217, 119, 6, 0.05);
        transition: all 0.2s ease;
    }

    .premium-warning-chip:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 6px rgba(217, 119, 6, 0.08);
    }

    .premium-warning-badge {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        background: linear-gradient(135deg, hsl(38, 100%, 99%) 0%, hsl(38, 100%, 96%) 100%);
        border: 1px solid hsl(38, 100%, 91%);
        color: hsl(38, 95%, 35%);
        padding: 4px 8px;
        border-radius: 6px;
        font-weight: 700;
        font-size: 0.78rem;
        box-shadow: 0 2px 4px rgba(217, 119, 6, 0.05);
        margin-inline-start: 8px;
        vertical-align: middle;
        animation: slideInFade 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .premium-warning-badge i {
        font-size: 0.85rem;
        color: hsl(38, 95%, 35%);
    }

    .premium-field-error {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: hsl(0, 85%, 60%);
        font-size: 0.82rem;
        font-weight: 700;
        margin-top: 6px;
        animation: slideDownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .premium-field-error i {
        font-size: 0.9rem;
        color: hsl(0, 85%, 60%);
    }

    .premium-alert-banner {
        background: linear-gradient(135deg, hsl(38, 100%, 99%) 0%, hsl(38, 100%, 96%) 100%);
        border-inline-start: 4px solid hsl(38, 95%, 50%);
        border-radius: 8px;
        padding: 12px 16px;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        gap: 12px;
        box-shadow: 0 4px 10px rgba(217, 119, 6, 0.05);
        animation: alertSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .premium-alert-banner .alert-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background: hsla(38, 100%, 50%, 0.1);
        color: hsl(38, 95%, 50%);
        border-radius: 50%;
        font-size: 1.1rem;
        flex-shrink: 0;
    }

    .premium-alert-banner .alert-content {
        color: hsl(38, 95%, 25%);
        font-weight: 700;
        font-size: 0.95rem;
        line-height: 1.6;
        text-align: start;
        width: 100%;
    }

    @keyframes slideDownFade {
        from {
            opacity: 0;
            transform: translateY(-6px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes bubbleSlideUp {
        from {
            opacity: 0;
            transform: translateY(10px) scale(0.98);
        }

        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    @keyframes alertSlideDown {
        from {
            opacity: 0;
            transform: translateY(-12px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes slideInFade {
        from {
            opacity: 0;
            transform: translateX(10px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

.premium-checkbox-custom {
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-checkbox-custom input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 28px;
    height: 28px;
    border: 2px solid #cbd5e1;
    /* Sleek natural border color */
    border-radius: 6px;
    /* Modern natural square shape */
    background-color: #ffffff;
    /* White background */
    cursor: pointer;
    outline: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Hover effect */
.premium-checkbox-custom input[type="checkbox"]:hover {
    border-color: #3b82f6;
    /* Modern blue hover */
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

/* Focus state */
.premium-checkbox-custom input[type="checkbox"]:focus {
    outline: none;
    border-color: #3b82f6;
}

/* Checked state - Keep background white */
.premium-checkbox-custom input[type="checkbox"]:checked {
    background-color: #ffffff;
    /* Explicitly white background */
    border-color: #1d4ed8;
    /* Premium deeper blue border when checked */
    border-width: 2.5px;
    /* Thicker border for clarity */
    box-shadow: 0 0 0 5px rgba(29, 78, 216, 0.15);
    /* Soft premium blue glow */
}

/* Custom checkmark check icon (Pure CSS for maximum reliability and sharpness) */
.premium-checkbox-custom input[type="checkbox"]::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 13px;
    border: solid #1d4ed8;
    /* Match the premium deeper blue border */
    border-width: 0 3px 3px 0;
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%) rotate(45deg) scale(0);
    opacity: 0;
    transition: transform 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46), opacity 0.15s ease-in-out;
}

/* Pop-in animation when checked */
.premium-checkbox-custom input[type="checkbox"]:checked::after {
    transform: translate(-50%, -50%) rotate(45deg) scale(1);
    opacity: 1;
}

/* Import table custom classes */
.import-row-error {
    background-color: hsla(0, 100%, 99%, 0.9) !important;
    border-inline-start: 4px solid hsl(0, 85%, 60%) !important;
    transition: all 0.25s ease;
}

.import-row-error:hover {
    background-color: hsla(0, 100%, 97%, 0.9) !important;
}

.import-row-warning {
    background-color: hsla(38, 100%, 99%, 0.9) !important;
    border-inline-start: 4px solid hsl(38, 95%, 50%) !important;
    transition: all 0.25s ease;
}

.import-row-warning:hover {
    background-color: hsla(38, 100%, 97%, 0.9) !important;
}

/* Error validation bubble - Speech bubble pointing up */
.premium-error-bubble {
    background-color: #ffffff;
    border: 1px solid hsl(0, 100%, 94%);
    border-inline-start: 3.5px solid hsl(0, 85%, 60%);
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.06);
    max-width: 100%;
    width: fit-content;
    word-break: break-word;
    text-align: start;
    position: relative;
    animation: bubbleSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Small triangle arrow on the top */
.premium-error-bubble::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 15px;
    border-width: 0 6px 6px 6px;
    border-style: solid;
    border-color: transparent transparent hsl(0, 100%, 94%) transparent;
}

html[dir='ltr'] .premium-error-bubble::before {
    right: auto;
    left: 15px;
}

.premium-error-bubble::after {
    content: "";
    position: absolute;
    top: -5px;
    right: 16px;
    border-width: 0 5px 5px 5px;
    border-style: solid;
    border-color: transparent transparent #ffffff transparent;
}

html[dir='ltr'] .premium-error-bubble::after {
    right: auto;
    left: 16px;
}

.premium-error-bubble i {
    color: hsl(0, 85%, 60%);
    font-size: 0.95rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.premium-error-bubble span {
    color: hsl(0, 75%, 35%);
    font-weight: 700;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Pulsing error icon */
.error-badge-pulse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, hsl(0, 100%, 96%) 0%, hsl(0, 100%, 92%) 100%);
    color: hsl(0, 85%, 60%);
    border: 1px solid hsl(0, 100%, 90%);
    border-radius: 50%;
    font-size: 0.95rem;
    box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.1), 0 2px 4px -1px rgba(220, 38, 38, 0.06);
    animation: errorPulse 2.5s infinite;
}

@keyframes errorPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Premium status chips */
.premium-success-chip {
    background: linear-gradient(135deg, hsl(142, 60%, 98%) 0%, hsl(142, 60%, 95%) 100%);
    border: 1px solid hsl(142, 50%, 90%);
    color: hsl(142, 60%, 35%);
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(22, 163, 74, 0.05);
    transition: all 0.2s ease;
}

.premium-success-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(22, 163, 74, 0.08);
}

.premium-warning-chip {
    background: linear-gradient(135deg, hsl(38, 100%, 99%) 0%, hsl(38, 100%, 96%) 100%);
    border: 1px solid hsl(38, 100%, 91%);
    color: hsl(38, 95%, 35%);
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(217, 119, 6, 0.05);
    transition: all 0.2s ease;
}

.premium-warning-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(217, 119, 6, 0.08);
}

/* Premium warning badge */
.premium-warning-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, hsl(38, 100%, 99%) 0%, hsl(38, 100%, 96%) 100%);
    border: 1px solid hsl(38, 100%, 91%);
    color: hsl(38, 95%, 35%);
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.78rem;
    box-shadow: 0 2px 4px rgba(217, 119, 6, 0.05);
    margin-inline-start: 8px;
    vertical-align: middle;
    animation: slideInFade 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-warning-badge i {
    font-size: 0.85rem;
    color: hsl(38, 95%, 35%);
}

/* Premium field error */
.premium-field-error {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: hsl(0, 85%, 60%);
    font-size: 0.82rem;
    font-weight: 700;
    margin-top: 6px;
    animation: slideDownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-field-error i {
    font-size: 0.9rem;
    color: hsl(0, 85%, 60%);
}

/* Premium Alert Banner */
.premium-alert-banner {
    background: linear-gradient(135deg, hsl(38, 100%, 99%) 0%, hsl(38, 100%, 96%) 100%);
    border-inline-start: 4px solid hsl(38, 95%, 50%);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.05);
    animation: alertSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-alert-banner .alert-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: hsla(38, 100%, 50%, 0.1);
    color: hsl(38, 95%, 50%);
    border-radius: 50%;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.premium-alert-banner .alert-content {
    color: hsl(38, 95%, 25%);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: start;
    width: 100%;
}

/* Animations */
@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bubbleSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes alertSlideDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFade {
    from {
        opacity: 0;
        transform: translateX(10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


.premium-checkbox-custom {
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-checkbox-custom input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 28px;
    height: 28px;
    border: 2px solid #cbd5e1;
    /* Sleek natural border color */
    border-radius: 6px;
    /* Modern natural square shape */
    background-color: #ffffff;
    /* White background */
    cursor: pointer;
    outline: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Hover effect */
.premium-checkbox-custom input[type="checkbox"]:hover {
    border-color: #3b82f6;
    /* Modern blue hover */
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

/* Focus state */
.premium-checkbox-custom input[type="checkbox"]:focus {
    outline: none;
    border-color: #3b82f6;
}

/* Checked state - Keep background white */
.premium-checkbox-custom input[type="checkbox"]:checked {
    background-color: #ffffff;
    /* Explicitly white background */
    border-color: #1d4ed8;
    /* Premium deeper blue border when checked */
    border-width: 2.5px;
    /* Thicker border for clarity */
    box-shadow: 0 0 0 5px rgba(29, 78, 216, 0.15);
    /* Soft premium blue glow */
}

/* Custom checkmark check icon (Pure CSS for maximum reliability and sharpness) */
.premium-checkbox-custom input[type="checkbox"]::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 13px;
    border: solid #1d4ed8;
    /* Match the premium deeper blue border */
    border-width: 0 3px 3px 0;
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%) rotate(45deg) scale(0);
    opacity: 0;
    transition: transform 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46), opacity 0.15s ease-in-out;
}

/* Pop-in animation when checked */
.premium-checkbox-custom input[type="checkbox"]:checked::after {
    transform: translate(-50%, -50%) rotate(45deg) scale(1);
    opacity: 1;
}

/* Import table custom classes */
.import-row-error {
    background-color: hsla(0, 100%, 99%, 0.9) !important;
    border-inline-start: 4px solid hsl(0, 85%, 60%) !important;
    transition: all 0.25s ease;
}

.import-row-error:hover {
    background-color: hsla(0, 100%, 97%, 0.9) !important;
}

.import-row-warning {
    background-color: hsla(38, 100%, 99%, 0.9) !important;
    border-inline-start: 4px solid hsl(38, 95%, 50%) !important;
    transition: all 0.25s ease;
}

.import-row-warning:hover {
    background-color: hsla(38, 100%, 97%, 0.9) !important;
}

/* Error validation bubble - Speech bubble pointing up */
.premium-error-bubble {
    background-color: #ffffff;
    border: 1px solid hsl(0, 100%, 94%);
    border-inline-start: 3.5px solid hsl(0, 85%, 60%);
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.06);
    max-width: 100%;
    width: fit-content;
    word-break: break-word;
    text-align: start;
    position: relative;
    animation: bubbleSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Small triangle arrow on the top */
.premium-error-bubble::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 15px;
    border-width: 0 6px 6px 6px;
    border-style: solid;
    border-color: transparent transparent hsl(0, 100%, 94%) transparent;
}

html[dir='ltr'] .premium-error-bubble::before {
    right: auto;
    left: 15px;
}

.premium-error-bubble::after {
    content: "";
    position: absolute;
    top: -5px;
    right: 16px;
    border-width: 0 5px 5px 5px;
    border-style: solid;
    border-color: transparent transparent #ffffff transparent;
}

html[dir='ltr'] .premium-error-bubble::after {
    right: auto;
    left: 16px;
}

.premium-error-bubble i {
    color: hsl(0, 85%, 60%);
    font-size: 0.95rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.premium-error-bubble span {
    color: hsl(0, 75%, 35%);
    font-weight: 700;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Pulsing error icon */
.error-badge-pulse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, hsl(0, 100%, 96%) 0%, hsl(0, 100%, 92%) 100%);
    color: hsl(0, 85%, 60%);
    border: 1px solid hsl(0, 100%, 90%);
    border-radius: 50%;
    font-size: 0.95rem;
    box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.1), 0 2px 4px -1px rgba(220, 38, 38, 0.06);
    animation: errorPulse 2.5s infinite;
}

@keyframes errorPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Premium status chips */
.premium-success-chip {
    background: linear-gradient(135deg, hsl(142, 60%, 98%) 0%, hsl(142, 60%, 95%) 100%);
    border: 1px solid hsl(142, 50%, 90%);
    color: hsl(142, 60%, 35%);
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(22, 163, 74, 0.05);
    transition: all 0.2s ease;
}

.premium-success-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(22, 163, 74, 0.08);
}

.premium-warning-chip {
    background: linear-gradient(135deg, hsl(38, 100%, 99%) 0%, hsl(38, 100%, 96%) 100%);
    border: 1px solid hsl(38, 100%, 91%);
    color: hsl(38, 95%, 35%);
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(217, 119, 6, 0.05);
    transition: all 0.2s ease;
}

.premium-warning-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(217, 119, 6, 0.08);
}

/* Premium warning badge */
.premium-warning-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, hsl(38, 100%, 99%) 0%, hsl(38, 100%, 96%) 100%);
    border: 1px solid hsl(38, 100%, 91%);
    color: hsl(38, 95%, 35%);
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.78rem;
    box-shadow: 0 2px 4px rgba(217, 119, 6, 0.05);
    margin-inline-start: 8px;
    vertical-align: middle;
    animation: slideInFade 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-warning-badge i {
    font-size: 0.85rem;
    color: hsl(38, 95%, 35%);
}

/* Premium field error */
.premium-field-error {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: hsl(0, 85%, 60%);
    font-size: 0.82rem;
    font-weight: 700;
    margin-top: 6px;
    animation: slideDownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-field-error i {
    font-size: 0.9rem;
    color: hsl(0, 85%, 60%);
}

/* Premium Alert Banner */
.premium-alert-banner {
    background: linear-gradient(135deg, hsl(38, 100%, 99%) 0%, hsl(38, 100%, 96%) 100%);
    border-inline-start: 4px solid hsl(38, 95%, 50%);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.05);
    animation: alertSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-alert-banner .alert-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: hsla(38, 100%, 50%, 0.1);
    color: hsl(38, 95%, 50%);
    border-radius: 50%;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.premium-alert-banner .alert-content {
    color: hsl(38, 95%, 25%);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: start;
    width: 100%;
}

/* Animations */
@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bubbleSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes alertSlideDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFade {
    from {
        opacity: 0;
        transform: translateX(10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* --- Dashboard Revolution Styles --- */

.dashboard-revolution-wrapper {
    position: relative;
    z-index: 1;
}

/* Premium Glass Card */
.premium-glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.07);
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
}

.premium-glass-card:hover {
    border-color: rgba(255, 255, 255, 0.8);
}

/* Smart Alert Header */
.alert-header-gradient {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 18px 24px;
}

/* Quick Action Buttons */
.btn-quick-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.25s ease;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155 !important;
    cursor: pointer;
    text-decoration: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.01);
}

.btn-quick-action:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
}

.btn-quick-action i {
    margin-right: 8px;
    margin-left: 8px;
    /* For RTL */
    font-size: 0.95rem;
}

/* Individual Icon Accent Colors */
.btn-qa-contract i {
    color: #3b82f6 !important;
}

/* blue */
.btn-qa-property i {
    color: #10b981 !important;
}

/* green */
.btn-qa-customer i {
    color: #8b5cf6 !important;
}

/* purple */
.btn-qa-payment i {
    color: #f59e0b !important;
}

/* orange */
.btn-qa-cheque i {
    color: #06b6d4 !important;
}

/* teal */

/* Actionable Table Enhancements */
.actionable-table th {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: #888ea8;
    background: #fafafa;
    border-top: none;
    padding: 15px 20px;
}

.actionable-table td {
    vertical-align: middle;
    padding: 15px 20px;
    border-bottom: 1px solid #f1f2f3;
}

.actionable-table tr:hover td {
    background: #fbfbfc;
}

/* Inline Action Mini Buttons */
.btn-mini-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: none;
    background: #f1f2f3;
    color: #515365;
}

.btn-mini-action:hover {
    transform: scale(1.1);
}

.btn-mini-success {
    background: rgba(46, 204, 113, 0.15);
    color: #27ae60;
}

.btn-mini-success:hover {
    background: #2ecc71;
    color: white;
}

.btn-mini-warning {
    background: rgba(243, 156, 18, 0.15);
    color: #d35400;
}

.btn-mini-warning:hover {
    background: #f39c12;
    color: white;
}

/* Status Badges */
.status-badge-urgent {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(255, 65, 108, 0.3);
    animation: pulse-red 2s infinite;
}

.status-badge-upcoming {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(253, 160, 133, 0.3);
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 65, 108, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(255, 65, 108, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 65, 108, 0);
    }
}

/* Quick Actions Top Bar */
.quick-actions-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 12px 18px;
    border-radius: 4px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

/* Enhanced stats layout for new structure */
.revolutionary-stats-container {
    margin-bottom: 8px !important;
}

/* Scrollable table container for alerts */
.scrollable-table-container {
    max-height: 380px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    position: relative !important;
}

/* Customize scrollbar to look premium and sleek */
.scrollable-table-container::-webkit-scrollbar {
    width: 8px !important;
    height: 8px !important;
}

.scrollable-table-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02) !important;
}

.scrollable-table-container::-webkit-scrollbar-thumb {
    background: rgba(67, 97, 238, 0.3) !important;
    border-radius: 10px !important;
}

.scrollable-table-container::-webkit-scrollbar-thumb:hover {
    background: rgba(67, 97, 238, 0.5) !important;
}

/* --- Premium Financial Progress Bar Styles (Override) --- */
.financial-progress-bar-paid {
    background: linear-gradient(90deg, #059669, #10b981) !important;
    box-shadow: inset 0 -2px 5px rgba(0, 0, 0, 0.1) !important;
}

.financial-progress-bar-cheques-striped {
    background: repeating-linear-gradient(
        45deg,
        #f59e0b,
        #f59e0b 10px,
        #fbbf24 10px,
        #fbbf24 20px
    ) !important;
    opacity: 0.95 !important;
    box-shadow: inset 0 -2px 5px rgba(0, 0, 0, 0.1) !important;
}

.financial-progress-bar-current-pulse.pulse-blue {
    background: linear-gradient(90deg, #2563eb, #3b82f6) !important;
    animation: pulse-width-blue-premium 1.5s infinite alternate !important;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.6), inset 0 -2px 5px rgba(0, 0, 0, 0.1) !important;
}

@keyframes pulse-width-blue-premium {
    0% {
        box-shadow: 0 0 8px rgba(59, 130, 246, 0.4), inset 0 -2px 5px rgba(0, 0, 0, 0.1);
        filter: brightness(1);
    }
    100% {
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.8), inset 0 -2px 5px rgba(0, 0, 0, 0.1);
        filter: brightness(1.15);
    }
}
