.blgcomment-list>li:nth-child(n+2) {
    margin-block-start: 15px !important;
}
.custom-card {
    border: 1px solid #ced4da;
}
.customizer-action svg{
    width: 23px !important;
    color: #ffffff !important;
}
.active-mode{
    border: solid 2px #000000 !important;
}
.property-img{
    max-width: 507px;
    max-height: 286px;
}
.text-justify{
    text-align: justify;
}
.custom .media{
    padding: 10px !important;
}
.user-avatar{
    width: 30px;
    height: 30px;
}
@media only screen and (max-width: 410px) {
    .header_li {
        display: none !important;
    }
}
.blgcomment-list li .media img{
    width: auto;
    height: 40px !important;
}

#card-element {
    border: 1px solid #e5e5e5 !important;
    border-radius: 5px !important;
    padding: 13px !important;
}
.codex-sidebar .logo-gridwrap{
    padding: 0px 16px !important;
}

/* Dashboard Sidebar Logo Sizing */
.pc-sidebar .m-header .b-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
}

.pc-sidebar .m-header .b-brand .logo {
    max-width: 225px !important;
    max-height: 75px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

.setting-logo{
    width:300px !important;;
}

.landing-logo{
    max-width: 35px !important;
    max-height: 35px !important;
    width: 35px !important;
    height: 35px !important;
}
.auth-main .auth-wrapper.v2 .logo{
    max-width: 300px;

}
.b-brand .logo{
    max-width: 225px !important;
    height: auto !important;
    max-height: 75px !important;

}
.lan-footer .codex-brand{
    margin-block-end: 0px !important;
}
.email-sidebar ul.custom-sidebarmenu-list {
    margin-block-start: 0px;
}
.invoice-logo{
    width: 250px;
}

.codex-calendar .events-list li{
    font-size: 13px;
    font-weight: 500;
    padding: 10px 10px;
    border-radius: 5px;
    color: #fff;
    line-height: 1;
}
.codex-calendar .events-list{
    overflow: auto;
    height: 863px;
}
.landing_logo{
    filter: drop-shadow(2px 3px 7px #011C4B);
}
.head-invoice img{
    width: 250px;
}
.cdx-invoice .body-invoice .table tr td{
    padding: 10px 10px !important;
}


.codex-brand img{
    width: 300px;
}
.codex-authbox .auth-header .codex-brand {
    margin-block-end: 0px;
}


.intro {
    background-repeat: no-repeat;
    background-size: cover;
}

.landing_dash {
    position: absolute;
    right: 0px;
    top: 50%;
    left: auto;
    bottom: 0;
    transform: translateY(-50%);
    overflow: hidden;
    height: 585px;
    display: flex;
    align-items: center;
    width: 60%;
}

.landing_dash img {
    object-fit: cover;
    position: relative;
    right: -220px;
    border-radius: 10px;
    left: auto;
    width: 100%;
    height: 100%;
}

@media only screen and (max-width: 1440px) {
    .landing_dash {
        display: none;
    }
}

.lan-footer {
    text-align: center;
    background-color: unset;
}
.lan-footer .support-contain p {
    color: #051722;
    font-size: calc(16px + 4*(100vw - 420px) / 1500);
}
.select2-container .select2-selection--single {
    height: 43px !important;
    border-color: #e5e5e5;
}
.select2-container .select2-selection--multiple{
    min-height: 43px !important;
}
.select2-container--default .select2-selection--multiple{
    border: 1px solid #e5e5e5;
}

/* =========================================================================== */
.dt-length{
    padding-left: 7px !important;
}
.dt-search{
    padding-right: 7px !important;
}
.dt-info{
    padding-left: 7px !important;
}
.dt-paging{
    padding-right: 7px !important;
}
.dt-buttons{
    padding-left: 7px !important;
    float: left;
}
.dt-container{
    margin-top: 10px;
}
.dt-info{
    float: left;
}
.dt-paging{
    float: right;
    padding-top: .85em;
}
.form-group{
    margin-bottom: 15px;
}
div:where(.swal2-container) h2:where(.swal2-title){
    font-size: 1.2em !important;
}
div:where(.swal2-container) .swal2-html-container{
    font-size: 0.9em !important;
}
div:where(.swal2-container) button:where(.swal2-styled).swal2-cancel {
    font-size: 0.8em !important;
}
div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm{
    font-size: 0.8em !important;
}
div:where(.swal2-icon){
    width: 4em !important;
    height: 4em !important;
}
.account-tabs .nav-item .nav-link {
    position: relative;
    padding: 0.7rem 1rem;
    font-weight: 500;
    color: var(--primary);
    display: flex;
    align-items: center;
}
.testaments-cards::after {
    background: transparent !important;
}
.pricingpricing .price-card .product-list li::before {
    content : '\eb55';
    color: red;
}
.pricingpricing .price-card .product-list li.enable::before {
    content: "\ea5e";
    color: #00c853;
}
.pricingpricing .price-card .product-list li {
    opacity: 1 !important;
}

.account-tabs .nav-item .nav-link.active
{
    color: var(--bs-secondary-rgb);
    background: rgba(var(--bs-secondary-rgb), 0.1);
}
form label{
    text-transform: capitalize;
}

@media print {
    .table-responsive {
    overflow: visible !important;
    height: auto !important;
    display: block !important;
    }
}
.color_type {
    position: relative;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.15s ease-in-out;
    margin-right: 10px;
    margin-top: 10px;
    width: 48px;
    height: 48px;
    flex: none;
    cursor: pointer;
}

.cutom_colorr.active::after,
.cutom_colorr.custom::after {
    content: "✓";
    color: #fff;
    font-size: 30px;
    background: none !important;
    font-weight: 900;
    background-color: transparent !important;
    display: inline-block;
    position: absolute;
    top: 50%;
    right: 10px;
    line-height: 0;
}


.select2-container .select2-selection--single {
    height: 43px !important;
    border-color: #e5e5e5;
}
.select2-container .select2-selection--multiple{
    min-height: 43px !important;
}
.select2-container--default .select2-selection--multiple{
    border: 1px solid #e5e5e5;
}


.modal-body .select2-container {
    z-index: 1024;
    width: 100% !important;
}
.modal-backdrop ~ .select2-container {
    width: 100% !important;
    z-index: 10000 !important;
  }
.select2-container--default .select2-selection--single .select2-selection__arrow {
    line-height: 40px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 40px !important;
}

.select2-container,
.modal-body .select2-container {
    z-index: 1024;
    width: 100% !important;
}

.notifier-container {
    z-index: 1072;
}

/*
|--------------------------------------------------------------------------
| Arabic Localization & RTL Support - Mohami Legal System
|--------------------------------------------------------------------------
|
| Comprehensive Arabic font integration and RTL layout support
| for Sudan Legal System compliance
|
*/

/* Arabic Font Loading - DISABLED TO FIX ICONS */
/* @import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Tajawal:wght@200;300;400;500;700;800;900&family=Amiri:ital,wght@0,400;0,700;1,400;1,700&display=swap'); */

/* Root Variables for Arabic Support */
:root {
    --arabic-font-primary: 'Cairo', 'Tajawal', 'Amiri', Arial, sans-serif;
    --arabic-font-legal: 'Amiri', 'Cairo', serif;
    --arabic-font-body: 'Tajawal', 'Cairo', Arial, sans-serif;
    --arabic-line-height: 1.8;
    --arabic-letter-spacing: 0.02em;
}

/* Base Arabic Text Styling */
.arabic-text {
    font-family: var(--arabic-font-primary);
    line-height: var(--arabic-line-height);
    letter-spacing: var(--arabic-letter-spacing);
    font-weight: 500;
}

/* CRITICAL: EXCLUDE ICONS FROM ARABIC FONTS */
.arabic-text i:not(.text),
.arabic-text [class*="ti-"],
.arabic-text [class*="icon-"],
.arabic-text [class*="fa-"],
.arabic-text [class*="feather-"],
.arabic-text [class*="material-"],
.arabic-text [class*="phosphor-"],
.arabic-text [class*="tabler-"] {
    font-family: inherit !important;
}

/* RTL Layout Base */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] body {
    font-family: var(--arabic-font-body);
    text-align: right;
    line-height: var(--arabic-line-height);
}

/* Fix RTL Bootstrap Grid Issues */
[dir="rtl"] .container,
[dir="rtl"] .container-fluid,
[dir="rtl"] .container-lg,
[dir="rtl"] .container-md,
[dir="rtl"] .container-sm,
[dir="rtl"] .container-xl,
[dir="rtl"] .container-xxl {
    padding-right: 15px;
    padding-left: 15px;
}

[dir="rtl"] .row {
    margin-right: -15px;
    margin-left: -15px;
}

[dir="rtl"] .col,
[dir="rtl"] [class*="col-"] {
    padding-right: 15px;
    padding-left: 15px;
}

/* Arabic Legal Term Styling */
.legal-term-ar {
    font-family: var(--arabic-font-legal);
    font-weight: 600;
    color: #2c5aa0;
    line-height: var(--arabic-line-height);
}

.court-name-ar {
    font-family: var(--arabic-font-legal);
    font-weight: 700;
    color: #8b4513;
    font-size: 1.1em;
    line-height: var(--arabic-line-height);
}

.case-title-ar {
    font-family: var(--arabic-font-primary);
    font-weight: 600;
    color: #1a365d;
    font-size: 1.2em;
    line-height: var(--arabic-line-height);
}

.document-ar {
    font-family: var(--arabic-font-legal);
    font-weight: 400;
    line-height: 2;
    text-align: justify;
    color: #2d3748;
}

.hearing-details-ar {
    font-family: var(--arabic-font-primary);
    font-weight: 500;
    color: #744210;
    line-height: var(--arabic-line-height);
}

.judgment-text-ar {
    font-family: var(--arabic-font-legal);
    font-weight: 600;
    color: #2a4365;
    line-height: 2.2;
    text-align: justify;
}

.legal-reference-ar {
    font-family: var(--arabic-font-legal);
    font-weight: 500;
    color: #805ad5;
    font-size: 0.95em;
    font-style: italic;
}

/* Sudan Court Header Styling */
.sudan-court-header {
    font-family: var(--arabic-font-legal);
    font-weight: 800;
    color: #2d3748;
    text-align: center;
    font-size: 1.4em;
    line-height: var(--arabic-line-height);
    border-bottom: 3px solid #2c5aa0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.sudan-case-number {
    font-family: var(--arabic-font-primary);
    font-weight: 700;
    color: #d69e2e;
    background: #fffbeb;
    padding: 8px 15px;
    border-radius: 5px;
    border-right: 4px solid #d69e2e;
}

.sudan-legal-article {
    font-family: var(--arabic-font-legal);
    font-weight: 600;
    color: #553c9a;
    background: #faf5ff;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.9em;
}

/* RTL Sidebar and Navigation */
[dir="rtl"] .codex-sidebar {
    right: 0;
    left: auto;
    border-left: 1px solid #e2e8f0;
    border-right: none;
}

[dir="rtl"] .codex-main-wrapper {
    margin-right: 260px;
    margin-left: 0;
}

/* Fix Navigation Alignment */
[dir="rtl"] .navbar-nav {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .navbar-brand {
    margin-left: auto;
    margin-right: 0;
}

[dir="rtl"] .navbar-toggler {
    margin-left: 0;
    margin-right: auto;
}

[dir="rtl"] .sidebar-nav .nav-item .nav-link {
    text-align: right;
    padding-right: 15px;
    padding-left: 45px;
}

[dir="rtl"] .sidebar-nav .nav-item .nav-link .nav-icon {
    right: 15px;
    left: auto;
}

/* RTL Forms */
[dir="rtl"] .form-control {
    text-align: right;
}

[dir="rtl"] .form-label {
    text-align: right;
    font-family: var(--arabic-font-primary);
    font-weight: 500;
}

[dir="rtl"] .input-group-text {
    border-left: 1px solid #ced4da;
    border-right: 0;
}

[dir="rtl"] .input-group > .form-control:not(:last-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

/* RTL Tables */
[dir="rtl"] .table th {
    text-align: right;
    font-family: var(--arabic-font-primary);
    font-weight: 600;
}

[dir="rtl"] .table td {
    text-align: right;
    font-family: var(--arabic-font-body);
}

/* RTL Cards */
[dir="rtl"] .card-header {
    text-align: right;
}

[dir="rtl"] .card-title {
    font-family: var(--arabic-font-primary);
    font-weight: 600;
}

[dir="rtl"] .card-body {
    text-align: right;
}

/* RTL Buttons */
[dir="rtl"] .btn {
    font-family: var(--arabic-font-primary);
    font-weight: 500;
}

/* RTL Dropdowns */
[dir="rtl"] .dropdown-menu {
    right: 0;
    left: auto;
    text-align: right;
}

[dir="rtl"] .dropdown-item {
    text-align: right;
    font-family: var(--arabic-font-body);
}

/* RTL Modals */
[dir="rtl"] .modal-header {
    text-align: right;
}

[dir="rtl"] .modal-title {
    font-family: var(--arabic-font-primary);
    font-weight: 600;
}

[dir="rtl"] .modal-body {
    text-align: right;
    font-family: var(--arabic-font-body);
}

/* RTL Alerts */
[dir="rtl"] .alert {
    text-align: right;
    font-family: var(--arabic-font-body);
}

/* RTL Breadcrumbs */
[dir="rtl"] .breadcrumb {
    direction: rtl;
}

[dir="rtl"] .breadcrumb-item + .breadcrumb-item::before {
    float: right;
    padding-left: 0;
    padding-right: 0.5rem;
    content: "\\";
}

[dir="rtl"] .breadcrumb-item.active {
    font-family: var(--arabic-font-primary);
    font-weight: 500;
}

/* RTL Pagination */
[dir="rtl"] .pagination {
    direction: rtl;
}

[dir="rtl"] .page-link {
    font-family: var(--arabic-font-primary);
}

/* Arabic Number Styling */
.arabic-numerals {
    font-family: var(--arabic-font-primary);
    font-feature-settings: "ss01" on;
    direction: ltr;
    unicode-bidi: embed;
}

/* Legal Status Badges */
.status-badge-ar {
    font-family: var(--arabic-font-primary);
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
}

.status-pending-ar {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #f59e0b;
}

.status-active-ar {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.status-closed-ar {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* Case Type Icons with Arabic Text */
.case-type-ar {
    display: flex;
    align-items: center;
    font-family: var(--arabic-font-primary);
    font-weight: 500;
    gap: 8px;
}

.case-type-ar .icon {
    order: 2;
}

.case-type-ar .text {
    order: 1;
}

/* Court Hierarchy Display */
.court-hierarchy-ar {
    font-family: var(--arabic-font-legal);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Legal Document Format */
.legal-document-ar {
    font-family: var(--arabic-font-legal);
    line-height: 2.5;
    text-align: justify;
    padding: 30px;
    background: #fdfdfd;
    border: 2px solid #2c5aa0;
    border-radius: 5px;
    margin: 20px 0;
}

.legal-document-ar .header {
    text-align: center;
    font-weight: 800;
    font-size: 1.3em;
    margin-bottom: 25px;
    color: #2c5aa0;
    border-bottom: 2px solid #2c5aa0;
    padding-bottom: 10px;
}

.legal-document-ar .article {
    margin: 15px 0;
    padding-right: 20px;
    border-right: 3px solid #e2e8f0;
}

.legal-document-ar .signature-area {
    margin-top: 40px;
    text-align: left;
    font-weight: 600;
}

/* Responsive Design for Arabic */
@media (max-width: 768px) {
    [dir="rtl"] .codex-sidebar {
        transform: translateX(100%);
    }
    
    [dir="rtl"] .codex-main-wrapper {
        margin-right: 0;
    }
    
    .legal-document-ar {
        padding: 15px;
        font-size: 0.95em;
    }
    
    .court-hierarchy-ar {
        font-size: 1em;
        padding: 10px;
    }
    
    /* Mobile RTL Navigation Fixes */
    [dir="rtl"] .navbar-collapse {
        text-align: right;
    }
    
    [dir="rtl"] .navbar-nav .nav-link {
        text-align: right;
        padding: 10px 15px;
    }
    
    /* Mobile Typography */
    [dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 {
        text-align: right;
        line-height: 1.6;
    }
    
    /* Mobile Cards */
    [dir="rtl"] .card {
        text-align: right;
    }
    
    [dir="rtl"] .feature-card {
        margin-bottom: 2rem;
    }
}

/* Print Styles for Arabic Legal Documents */
@media print {
    .legal-document-ar {
        font-family: var(--arabic-font-legal);
        font-size: 14pt;
        line-height: 2.8;
        color: black;
        background: white;
        border: 2pt solid black;
        page-break-inside: avoid;
    }
    
    .legal-document-ar .header {
        font-size: 16pt;
        font-weight: bold;
    }
    
    [dir="rtl"] {
        direction: rtl;
        text-align: right;
    }
}

/* Custom Scrollbar for RTL */
[dir="rtl"] ::-webkit-scrollbar {
    width: 8px;
}

[dir="rtl"] ::-webkit-scrollbar-track {
    background: #f1f1f1;
}

[dir="rtl"] ::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

[dir="rtl"] ::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Arabic Text Selection */
::selection {
    background-color: #3182ce;
    color: white;
}

::-moz-selection {
    background-color: #3182ce;
    color: white;
}

/* Legal Form Enhancements */
.legal-form-ar {
    font-family: var(--arabic-font-body);
}

.legal-form-ar .form-group {
    margin-bottom: 1.5rem;
}

.legal-form-ar .form-label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.legal-form-ar .required-field::after {
    content: ' *';
    color: #e53e3e;
}

/* Success and Error Messages in Arabic */
.alert-success-ar {
    background-color: #f0fff4;
    border: 1px solid #9ae6b4;
    color: #276749;
    font-family: var(--arabic-font-body);
    border-radius: 5px;
    padding: 12px 16px;
}

.alert-error-ar {
    background-color: #fed7d7;
    border: 1px solid #feb2b2;
    color: #c53030;
    font-family: var(--arabic-font-body);
    border-radius: 5px;
    padding: 12px 16px;
}

/* Landing Page Specific RTL Improvements */
[dir="rtl"] .landing-page header h1 {
    text-align: right;
    font-family: var(--arabic-font-primary);
    font-weight: 700;
    line-height: 1.2;
}

[dir="rtl"] .landing-page header h4 {
    text-align: right;
    font-family: var(--arabic-font-body);
    line-height: var(--arabic-line-height);
}

/* Fix Hero Section Alignment */
[dir="rtl"] .hero-image {
    text-align: center;
}

/* Fix Feature Cards for RTL */
[dir="rtl"] .feature-card .d-flex {
    flex-direction: row-reverse;
}

[dir="rtl"] .feature-card .flex-grow-1 {
    margin-right: 1rem;
    margin-left: 0;
    text-align: right;
}

/* Fix Statistics Cards */
[dir="rtl"] .feature-card .text-end {
    text-align: right !important;
}

/* Footer RTL Improvements */
[dir="rtl"] footer {
    text-align: right;
}

[dir="rtl"] .footer-link {
    text-align: right;
}

[dir="rtl"] .footer-link a {
    text-align: right;
    display: block;
    padding: 5px 0;
}

/* Button RTL Improvements */
[dir="rtl"] .btn {
    font-family: var(--arabic-font-primary);
    font-weight: 500;
}

/* Swiper RTL Fix */
[dir="rtl"] .swiper-button-next {
    left: 10px;
    right: auto;
}

[dir="rtl"] .swiper-button-prev {
    right: 10px;
    left: auto;
}

/* Accordion RTL Fix */
[dir="rtl"] .accordion-button {
    text-align: right;
    font-family: var(--arabic-font-primary);
}

/* Price Card RTL Fix */
[dir="rtl"] .price-card {
    text-align: right;
}

[dir="rtl"] .price-card .price-price {
    direction: ltr;
    text-align: center;
    font-family: var(--arabic-font-primary);
}

/* List Items RTL */
[dir="rtl"] .list-unstyled li,
[dir="rtl"] .customize-list li {
    text-align: right;
    flex-direction: row-reverse;
}

[dir="rtl"] .customize-list li i {
    margin-left: 0.7rem;
    margin-right: 0;
}

/* Testimonials RTL */
[dir="rtl"] .testaments-cards .card {
    text-align: right;
}

[dir="rtl"] .testaments-cards .d-flex {
    flex-direction: row-reverse;
}

[dir="rtl"] .testaments-cards .flex-grow-1 {
    margin-right: 0.5rem;
    margin-left: 0;
    text-align: right;
}
