:root {
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 80px;
    --sidebar-bg: #0d6efd;
    --sidebar-hover: #0b5ed7;
    --sidebar-color: #fff;
    --transition-speed: 0.3s;
}

body {
    margin: 0;
    direction: ltr;
    font-family: 'Segoe UI', sans-serif;
}

.app-container {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    /*height: 100vh;*/
    background-color: var(--sidebar-bg);
    color: var(--sidebar-color);
    transition: width var(--transition-speed);
   /* overflow-x: hidden;
    overflow-y: auto;*/
    flex-shrink: 0;
}
/*    .sidebar.collapsed {
        min-width: 60px;
        max-width: 60px;
        overflow: hidden;
    }*/

    .sidebar.collapsed {
        width: var(--sidebar-collapsed-width);
        overflow: hidden;
    }

.sidebar-header {
    font-size: 1.3rem;
    font-weight: bold;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: bold;
    white-space: nowrap;
}

.sidebar.collapsed .sidebar-title,
.sidebar.collapsed .sidebar-header span {
    display: none;
}

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

.sidebar-menu > li {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-menu li a,
.submenu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: var(--sidebar-color);
    text-decoration: none;
    white-space: wrap;
    transition: background-color var(--transition-speed);
}

.sidebar-menu li a:hover,
.submenu-link:hover {
    background-color: var(--sidebar-hover);
}

.sidebar-menu li ul {
    padding-left: 1.5rem;
}

.sidebar-menu li ul li ul {
    padding-left: 1.5rem;
}

.sidebar.collapsed .sidebar-menu span,
.sidebar.collapsed .sidebar-menu li ul,
.sidebar.collapsed .link-text,
.sidebar.collapsed i.bi-chevron-down {
    display: none;
}

.main-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.nav > li > a {
    padding: 6px 10px;
    font-size: 14px;
}

.sidebar .nav li {
    margin-bottom: 4px;
}

.sidebar .nav .submenu-link {
    padding: 6px 10px;
    font-size: 14px;
}

.sidebar .collapse ul {
    padding-left: 12px;
}

.sidebar .collapse ul li a {
    padding: 4px 6px;
    font-size: 13px;
}

.sidebar .submenu {
    padding-right: 15px;
    padding-left: 30px;
}

.sidebar .submenu-item {
    padding: 5px 0;
    font-size: 0.9rem;
    color: #dcdcdc;
}

.sidebar .nav-icon {
    font-size: 1.2rem;
}

.sidebar .toggle-btn {
    border: none;
    background: none;
    color: var(--sidebar-color);
    font-size: 1.2rem;
    padding: 10px 15px;
    text-align: left;
    width: 100%;
}

.link-text {
    white-space: nowrap;
}

/* Shake animation */
.input-shadow {
    box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

.shake {
    animation: shake 0.3s;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

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

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

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

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

/* Flash animation */
@keyframes flashRow {
    0% {
        background-color: #ffff99;
    }
    /* light yellow */
    50% {
        background-color: #fff;
    }

    100% {
        background-color: #fff;
    }
}

.flash-highlight {
    animation: flashRow 1s ease;
}
/* Footer Top Info */
.footer-top-bar {
    background: #0b1a55;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Main Footer */
.footer-main {
    /*background: #22355d;*/
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    color: #f8f9fa;
}

.footer-logo {
    max-width: 120px;
    height: auto;
}

.footer-main h6 {
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.footer-links a {
    display: block;
    color: rgba(248, 249, 250, 0.85);
    text-decoration: none;
    padding: 3px 0;
    /*transition: all 0.3s ease;*/
}

    .footer-links a:hover {
        /*color: #ffc107;*/
        padding-left: 5px;
        font-weight: 500;
    }

/* Social Icons */
.social-icons a {
    font-size: 1.3rem;
    margin-right: 12px;
    color: rgba(248, 249, 250, 0.85);
/*    transition: transform 0.3s, color 0.3s;
*/}

    .social-icons a:hover {
        /*transform: scale(1.2);*/
        /*color: #ffca28;*/
    }

/* Scroll-to-Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #3949ab, #1a237e);
    color: #fff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

    .scroll-top-btn.show {
        opacity: 1;
        visibility: visible;
    }

    .scroll-top-btn:hover {
        transform: scale(1.1);
        background: linear-gradient(135deg, #ffca28, #ffc107);
    }

/* Responsive Layout */
@media (max-width: 767px) {
    .footer-main .text-md-start {
        text-align: center !important;
    }

    .footer-top-bar {
        text-align: center;
    }
}
/* Logo scales with navbar height */
.brand-logo {
    height: 2.2rem; /* matches toggler button height */
    width: auto;
    max-height: 48px;
}

/* Larger on desktop */
@media (min-width: 992px) {
    .brand-logo {
        height: 2.6rem;
        max-height: 56px;
    }
}

/* Custom navbar toggler */
.custom-toggler {
    border: none; /* remove default border */
    padding: 0.5rem 0.6rem; /* balanced spacing */
    border-radius: 0.75rem; /* smooth rounded corners */
    background-color: #f8f9fa; /* subtle light bg */
    box-shadow: 0 2px 6px rgba(0,0,0,0.08); /* soft shadow */
    transition: all 0.3s ease-in-out;
}

    /* Hover / focus effect */
    .custom-toggler:hover,
    .custom-toggler:focus {
        background-color: #e9ecef; /* slightly darker */
        transform: scale(1.05); /* subtle zoom */
    }

/* Optional: dark mode adjustment */
@media (prefers-color-scheme: dark) {
    .custom-toggler {
        background-color: #2c2c2c;
        box-shadow: 0 2px 6px rgba(255,255,255,0.05);
    }

        .custom-toggler:hover {
            background-color: #3a3a3a;
        }
}
/* Dropdown menu refinement */
.dropdown-menu {
    min-width: 220px;
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}
 
/* Mobile */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: -250px;
        z-index: 1000;
        box-shadow: 0 0 0 rgba(0,0,0,0);
    }

        .sidebar.active {
            left: 0;
            box-shadow: 4px 0 12px rgba(0,0,0,0.3);
        }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.35);
        backdrop-filter: blur(2px);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

        .sidebar-overlay.active {
            display: block;
            opacity: 1;
        }

    .mobile-toggle {
        position: fixed;
        top: 10px;
        left: 10px;
        z-index: 1100;
        border: none;
        background: #333;
        color: #fff;
        font-size: 1.5rem;
        padding: 6px 12px;
        border-radius: 4px;
    }
    .toggle-btn{
        display:none;
    }
}
/* Sidebar base */
.sidebar {
    /*position: relative;*/
    width: 250px;
    height: 100vh;
    /*background: #163ccc;*/
    color: #fff;
    transition: left 0.3s ease, box-shadow 0.3s ease;
    overflow-y: auto;
}

.sidebar-header {
    /*background: linear-gradient(90deg, #1f2937, #111827);*/ /* Dark professional gradient */
    border-bottom: 1px solid rgba(255,255,255,0.1);
    height: 60px;
    padding: 0 1rem;
}

    .sidebar-header i {
        transition: transform 0.3s ease;
    }

    .sidebar-header .toggle-btn {
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.35rem 0.5rem;
        border-radius: 4px;
        transition: background 0.2s ease;
    }

        .sidebar-header .toggle-btn:hover {
            background: rgba(255,255,255,0.1);
        }

    .sidebar-header span {
        letter-spacing: 0.5px;
    }


.sidebar a {
    display: block;
    padding: 0.75rem 1rem;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s;
}

    .sidebar a:hover {
        background: rgba(255,255,255,0.1);
    }

.toggle-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
}

/* Child menu animation */
.child-menu {
    transition: all 0.3s ease;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
}

.collapse.show > .child-menu {
    opacity: 1;
    max-height: 500px;
}

/* Chevron rotation */
.chevron-icon {
    transition: transform 0.3s ease;
}

.collapse.show + .chevron-icon,
.parent-link.collapsed + .chevron-icon {
    transform: rotate(0deg);
}

.parent-link[aria-expanded="true"] .chevron-icon {
    transform: rotate(180deg);
}

.sidebar {
    /*position: fixed;*/
    /*left: -250px;
    top: 0;
    width: 250px;*/
    height: 100%;
    background: #22355d; /* #111827;*/
    color: #fff;
    transition: left 0.3s ease;
    z-index: 1050;
    overflow-y: auto;
}

    .sidebar.active {
        left: 0;
    }

.sidebar-header {
    height: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 0 1rem;
}

.sidebar a {
    display: block;
    padding: .75rem 1rem;
    color: #fff;
    text-decoration: none;
    transition: .2s;
}

    .sidebar a:hover {
        background: rgba(255,255,255,0.1);
    }

.submenu-text {
    display: inline-block;
    max-width: 180px;
    word-wrap: break-word;
}

/*.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.35);
    backdrop-filter: blur(2px);
    z-index: 1040;
    opacity: 0;
    transition: .3s;
}*/

    .sidebar-overlay.active {
        display: block;
        opacity: 1;
    }

/*#sidebarSearch {
    border-radius: 0.35rem;
    padding-left: 2rem;
    background: #1f2937;
    color: #fff;*/
    /*margin: 0.5rem 1rem;*/
/*}

    #sidebarSearch::placeholder {
        color: #9ca3af;
    }

#sidebarSearch {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%239ca3af' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0.5rem center;
    background-size: 1rem;*/
    /*padding-left: 2.5rem;*/
/*}*/
/* Sidebar search styling */
.sidebar-search .form-control {
    font-size: 0.9rem;
    /*padding: 0.35rem 0.5rem;*/
    background-color: #f8f9fa;
    border-radius: 0.5rem;
}

.sidebar-search .input-group-text {
    background: transparent;
    font-size: 1rem;
    /*padding: 0 0.25rem;*/
}

.sidebar-search button {
    background: transparent !important;
    /*padding: 0 0.25rem;*/
}

/* Mobile optimization: smaller spacing */
@media (max-width: 768px) {
    .sidebar-search {
        margin-bottom: 0.25rem;
    }

        .sidebar-search .form-control {
            font-size: 0.85rem;
            /*padding: 0.25rem 0.4rem;*/
        }

        .sidebar-search .input-group-text i {
            font-size: 0.9rem;
        }

        .sidebar-search button i {
            font-size: 0.9rem;
        }
}
/* Base save button style */
/*#btnSave {
    transition: all 0.25s ease-in-out;
    font-weight: 500;
    border-radius: 0.45rem;
    padding: 0.375rem 0.9rem;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    cursor: pointer;
}*/

    /* Enabled state */
    /*#btnSave.enabled {
        opacity: 1;
        pointer-events: auto;
        color: #fff;
        background: linear-gradient(135deg, #0d6efd, #6610f2);*/ /* Gradient button */
        /*border: none;
        box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
    }

        #btnSave.enabled:hover {
            background: linear-gradient(135deg, #6610f2, #0d6efd);
            box-shadow: 0 6px 12px rgba(13, 110, 253, 0.4);
            transform: translateY(-1px);
        }*/

    /* Disabled state */
    /*#btnSave.disabled {
        opacity: 0.7;
        pointer-events: none;
        background: #e9ecef;
        color: #6c757d;
        border: 1px solid #ced4da;
        box-shadow: none;
    }*/


/* Base button style */
.save-btn, #newBtn, #updateBtn, #deleteBtn {
    transition: all 0.25s ease-in-out;
    font-weight: 500;
    border-radius: 0.45rem;
    padding: 0.375rem 0.9rem;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    cursor: pointer;
}

/* Enabled states */

/* Save Button */
#btnSave.enabled {
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    color: #fff;
    border: none;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

    #btnSave.enabled:hover {
        background: linear-gradient(135deg, #6610f2, #0d6efd);
        box-shadow: 0 6px 12px rgba(13, 110, 253, 0.4);
        transform: translateY(-1px);
    }

/* New Button */
#newBtn.enabled {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
    border: none;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}

    #newBtn.enabled:hover {
        background: linear-gradient(135deg, #20c997, #28a745);
        box-shadow: 0 6px 12px rgba(40, 167, 69, 0.4);
        transform: translateY(-1px);
    }

/* Update Button */
#updateBtn.enabled {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: #fff;
    border: none;
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.3);
}

    #updateBtn.enabled:hover {
        background: linear-gradient(135deg, #fd7e14, #ffc107);
        box-shadow: 0 6px 12px rgba(255, 193, 7, 0.4);
        transform: translateY(-1px);
    }

/* Delete Button */
#deleteBtn.enabled {
    background: linear-gradient(135deg, #dc3545, #e83e8c);
    color: #fff;
    border: none;
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3);
}

    #deleteBtn.enabled:hover {
        background: linear-gradient(135deg, #e83e8c, #dc3545);
        box-shadow: 0 6px 12px rgba(220, 53, 69, 0.4);
        transform: translateY(-1px);
    }

/* Disabled states */
.save-btn.disabled, #newBtn.disabled, #updateBtn.disabled, #deleteBtn.disabled {
    opacity: 0.65;
    pointer-events: none;
    background: #e9ecef;
    color: #6c757d;
    border: 1px solid #ced4da;
    box-shadow: none;
}
/*  Shared style for all navigation buttons */
#firstBtn,
#prevBtn,
#nextBtn,
#lastBtn {
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    transition: all 0.25s ease-in-out;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    gap: 0.35rem;
}

    /* Hover state */
    #firstBtn:hover,
    #prevBtn:hover,
    #nextBtn:hover,
    #lastBtn:hover {
        color: #fff;
        background-color: #0d6efd;
        border-color: #0d6efd;
        box-shadow: 0 2px 6px rgba(13, 110, 253, 0.35);
        transform: translateY(-1px);
    }

    /* Active state */
    #firstBtn:active,
    #prevBtn:active,
    #nextBtn:active,
    #lastBtn:active {
        transform: translateY(0px) scale(0.97);
        box-shadow: 0 1px 2px rgba(13, 110, 253, 0.25);
    }

    /* Disabled state */
    #firstBtn:disabled,
    #prevBtn:disabled,
    #nextBtn:disabled,
    #lastBtn:disabled {
        background-color: #f8f9fa !important;
        color: #adb5bd !important;
        border-color: #dee2e6 !important;
        box-shadow: none !important;
        cursor: not-allowed;
    }

    /*  Optional: subtle color accents per button */
    #firstBtn i {
        color: #198754;
    }
    /* green for "الأول" */
    #prevBtn i {
        color: #ffc107;
    }
    /* yellow for "السابق" */
    #nextBtn i {
        color: #0dcaf0;
    }
    /* cyan for "التالي" */
    #lastBtn i {
        color: #d63384;
    }
/* pink for "الأخير" */

/* Responsive adjustments */
@media (max-width: 576px) {
    #firstBtn,
    #prevBtn,
    #nextBtn,
    #lastBtn {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
        gap: 0.25rem;
        border-radius: 4px;
    }
}
#exitmodalbtn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem; /* px-2 py-1 */
    gap: 0.35rem; /* space between icon and text */
    font-size: 0.85rem;
    border-radius: 6px;
    transition: all 0.25s ease-in-out;
    width:fit-content;
}

    /* Hover */
    #exitmodalbtn:hover {
        background-color: #5c636a;
        border-color: #565e64;
        color: #fff;
    }

    /* Active */
    #exitmodalbtn:active {
        transform: scale(0.97);
        box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    }

    /* Disabled */
    #exitmodalbtn:disabled {
        background-color: #e9ecef !important;
        border-color: #dee2e6 !important;
        color: #adb5bd !important;
        cursor: not-allowed;
        opacity: 0.75;
    }
/* Modal Header Gradient */
#permissionsModal .modal-header {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
}

/* Buttons (common style) */
.permission-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    border-radius: 10px;
    padding: 0.6rem 1rem;
    transition: all 0.25s ease-in-out;
    border: none;
}

    /* Specific Button Colors */
    .permission-btn.btn-update {
        background-color: #e7f1ff;
        color: #0d6efd;
    }

        .permission-btn.btn-update:hover {
            background-color: #0d6efd;
            color: #fff;
        }

    .permission-btn.btn-delete {
        background-color: #fde7e7;
        color: #dc3545;
    }

        .permission-btn.btn-delete:hover {
            background-color: #dc3545;
            color: #fff;
        }

    .permission-btn.btn-grant {
        background-color: #e9f9ee;
        color: #198754;
    }

        .permission-btn.btn-grant:hover {
            background-color: #198754;
            color: #fff;
        }

    .permission-btn.btn-default {
        background-color: #f8f9fa;
        color: #6c757d;
    }

        .permission-btn.btn-default:hover {
            background-color: #6c757d;
            color: #fff;
        }

/* Responsive Adjustments */
@media (max-width: 576px) {
    #permissionsModal .modal-dialog {
        margin: 0.5rem;
    }

    #permissionsModal .modal-body {
        padding: 1rem;
    }

    .permission-btn {
        font-size: 0.85rem;
        padding: 0.5rem;
    }
}
/* Search panel slide effect */
#searchPanel.collapse:not(.show) {
    display: block;
    height: 0;
    overflow: hidden;
    transition: height 0.35s ease;
    padding: 0 !important;
}
#searchPanel.collapse.show {
    height: auto;
    transition: height 0.35s ease;
}

 

/* Rounded tooltips */
.tooltip-inner {
    border-radius: 10px;
    padding: 6px 12px;
}
/* Card styling */
.user-permissions-card {
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .user-permissions-card .card-header {
        border-bottom: none;
    }

.header-gradient {
    background: linear-gradient(120deg, #f4f8fc, #dce6f4);
    border-bottom: 1px solid #c8d4e3;
}

.header-gradient-alt {
    background: linear-gradient(135deg, #e9f0fd, #dce5f7);
    border-bottom: 1px solid #d0d7e1;
}

.icon-secondary {
    opacity: 0.75;
}

/* Buttons inside card header */
.user-permissions-card .btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.6rem;
    font-size: 0.85rem;
    border-radius: 0.4rem;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

    .user-permissions-card .btn-icon:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    }

/* Table hover */
.user-permissions-table tbody tr:hover {
    background-color: #f1f5fb;
    transition: background-color 0.2s ease-in-out;
}

/* Switches */
.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .user-permissions-card .card-header h6 {
        font-size: 0.9rem;
    }

    .user-permissions-card .btn-icon {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }

    .form-check-label {
        font-size: 0.85rem;
    }
}
/* Footer card buttons */
.footer-buttons .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem; /* Slightly smaller for compact look */
    padding: 0.35rem 0.75rem; /* Reduce padding */
    min-width: 90px; /* Ensure uniform button width */
    border-radius: 0.4rem; /* Smooth rounded corners */
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

    .footer-buttons .btn i {
        font-size: 0.95rem; /* Slightly smaller icons */
    }

.footer-buttons .btn-light {
    background: #f8f9fa;
    color: #495057;
}

    .footer-buttons .btn-outline-primary:hover,
    .footer-buttons .btn-outline-secondary:hover,
    .footer-buttons .btn-warning:hover,
    .footer-buttons .btn-danger:hover,
    .footer-buttons .btn-light:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }

/* Responsive adjustments for mobile */
@media (max-width: 576px) {
    .footer-buttons .btn {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
        min-width: 75px;
    }

    .footer-buttons {
        gap: 0.4rem;
    }
}
/* General read-only state */
.readonly {
    /*background-color: #f9f9f9 !important;*/
    color: #6c757d !important;
    pointer-events: none; /* prevent interaction */
    opacity: 0.85;
}

    /* Disabled input fields */
    .readonly input,
    .readonly select,
    .readonly textarea {
        background-color: #f1f3f5 !important;
        border-color: #dee2e6 !important;
        color: #6c757d !important;
    }

/* Disabled buttons */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
}

/* Highlight editable row in table */
.table-warning {
    background-color: #fff3cd !important;
}

/* Subtle overlay for whole form when disabled */
.form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.6);
    z-index: 10;
    border-radius: 8px;
}
.metric-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

    .metric-card:hover {
        transform: translateY(-4px);
    }

.icon-circle {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 10px;
    right: 10px;
}

.growth-badge {
    font-size: 0.85rem;
    font-weight: 600;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #4e73df, #224abe);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #1cc88a, #13855b);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #f6c23e, #dda20a);
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #e74a3b, #a91d0d);
}

@media (max-width: 767px) {
    .metric-card h3 {
        font-size: 1.2rem;
    }

    .metric-card h6 {
        font-size: 0.85rem;
    }

    .icon-circle {
        width: 30px;
        height: 30px;
    }
}
@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.no-result-msg {
    color: #dc3545; /* Bootstrap red */
    font-size: 0.85rem;
    margin-top: 4px;
    display: none;
    opacity: 1;
    transition: opacity 0.5s ease;
}

    .no-result-msg.fade-out {
        animation: fadeOut 0.5s forwards;
    }
.active-row {
    background-color: #d0ebff !important;
    outline: 2px solid #0d6efd;
}
/* Professional and Attractive Input Field Styling */
.input-attractive {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgb(171 147 147 / 60%)) !important;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

    .input-attractive:focus {
        border-color: #007bff;
        box-shadow: 0 0 8px rgba(0, 123, 255, 0.4);
        background-color: #ffffff;
    }

/* Disabled Fields */
input:disabled {
    /*background-color: #f5f5f5 !important;*/
    border: 1px solid #ccc !important;
    cursor: not-allowed;
}
#printSanadModal .modal-content {
    border-radius: 1rem !important;
}

#printSanadModal .table th {
    background: #f8f9fb !important;
    color: #333;
    font-weight: 600;
}

#printSanadModal .table td {
    background: #fff;
}

#printSanadModal .modal-body {
    background: linear-gradient(180deg, #f9fafc 0%, #fff 100%);
}
.sanad-header {
    /*background: #fff url('/images/orasoft_watermark.png') center/200px no-repeat;*/
    background-blend-mode: lighten;
    border-radius: 1rem;
}

@media (min-width: 768px) {
    #searchInvoiceModal .modal-dialog {
        max-width: 420px;
    }
}

@media (max-width: 767px) {
    #searchInvoiceModal .modal-dialog {
        width: 92%;
        margin: auto;
    }
}

/*  Compact modal layout */
/*.swal2-popup {
    padding: 1rem !important;
    margin: 0.5rem auto !important;
    width: 320px !important;
}*/

/*  Smaller icons */
/*.swal2-icon {
    width: 2.5em !important;
    height: 2.5em !important;
    margin: 0.5em auto !important;
}

    .swal2-icon .swal2-icon-content {
        font-size: 1.8em !important;
    }*/

/*  Compact buttons */
/*.swal2-actions .btn {
    padding: 0.4rem 0.75rem !important;
    font-size: 0.85rem !important;
}*/

/*  Responsive text */
/*.swal2-title {
    font-size: 1.1rem !important;
}

.swal2-html-container {
    font-size: 0.95rem !important;
}*/
/*  Highlight animation for totals */
@keyframes totalHighlight {
    0% {
        background-color: #fff8e1;
    }

    50% {
        background-color: #fff3cd;
    }

    100% {
        background-color: transparent;
    }
}

.total-highlight {
    animation: totalHighlight 0.8s ease-in-out;
}
/* Responsive Font Sizes */
/*@media (max-width: 768px) {
    .metric-card h4 {
        font-size: 1.1rem;
    }

    .metric-card h6 {
        font-size: 0.7rem;
    }

    .icon-circle {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .metric-card h4 {
        font-size: 1rem;
    }

    .metric-card h6 {
        font-size: 0.65rem;
    }

    .icon-circle {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.9rem;
    }
}
@media (max-width: 576px) {
    .card-header h5 {
        font-size: 0.9rem;
    }

    #collapseIcon {
        font-size: 0.85rem;
    }

    .btn-sm i {
        font-size: 0.85rem;
    }
}*/
/* Pulse Animation */
@keyframes pulse {
    0%,100% {
        transform: scale(1);
        opacity: 1;
    }

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

@media (max-width: 768px) {
    .metric-card h4 {
        font-size: 1.1rem;
    }

    .metric-card h6 {
        font-size: 0.75rem;
    }

    .icon-circle {
        width: 2rem;
        height: 2rem;
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .metric-card h4 {
        font-size: 1rem;
    }

    .metric-card h6 {
        font-size: 0.7rem;
    }

    .icon-circle {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 1rem;
    }
}
@media (max-width: 576px) {
    .card-header h5 {
        font-size: 0.9rem;
    }

    #collapseIcon {
        font-size: 0.85rem;
    }

    .btn-sm i {
        font-size: 0.85rem;
    }
}
 /* Test*/
.metric-card {
    padding: 0.75rem !important;
    margin: 0 !important;
    border-radius: 1rem !important;
    transition: transform 0.25s, box-shadow 0.25s;
    cursor: default;
}

    .metric-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.18);
    }

.icon-circle {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.3rem;
    transition: all 0.3s;
}

.metric-card:hover .icon-circle {
    background: rgba(255,255,255,0.25);
    transform: scale(1.1);
}

.growth-badge {
    position: absolute;
    bottom: 0.6rem;
    right: 0.6rem;
    font-size: 0.75rem;
    padding: 0.2rem 0.45rem;
    border-radius: 0.5rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    animation: pulse 2s infinite;
}

    .growth-badge.up {
        background-color: rgba(0, 200, 83, 0.85);
        color: #fff;
    }

    .growth-badge.down {
        background-color: rgba(255, 82, 82, 0.85);
        color: #fff;
    }

.metric-card .progress {
    height: 5px;
    border-radius: 2px;
    background: rgba(255,255,255,0.15);
}

.metric-card .progress-bar {
    border-radius: 2px;
    transition: width 1.5s ease-in-out;
}


/* Compact, clean, thermal-style */
#InvoiceNewPrintPreview table th,
#InvoiceNewPrintPreview table td {
    padding: 2px 4px;
    border-color: #ddd !important;
}

#InvoiceNewPrintPreview h6 {
    font-size: 13px;
}

#InvoiceNewPrintPreview .small {
    font-size: 10px;
}
/* Applied when printing on thermal printer */
/*.thermal-mode {
    font-size: 10px;
    line-height: 1.2;
}

    .thermal-mode table th,
    .thermal-mode table td {
        padding: 1px 2px !important;
    }*/
/* Ensure barcode and QR scale nicely */
/*.barcode-qr-container > div {
    flex: 1 1 45%;*/ /* each takes 45% max width */
    /*min-width: 120px;*/ /* never too small */
    /*margin: 2px;
}

.barcode-qr-container svg,
#qrCodeContainer canvas {
    max-width: 100%;
    height: auto;
}*/

/* Small receipt (58mm) special scaling */
/*@media (max-width: 240px) {
    .barcode-qr-container > div {
        flex: 1 1 100%;*/ /* stack vertically on tiny receipts */
    /*}
}*/

@media (max-width: 576px) {
    .dashboard-welcome-card .card-header {
        flex-direction: column;
        text-align: center;
    }

        .dashboard-welcome-card .card-header .btn {
            margin-top: 0.25rem;
        }
}
@media (max-width: 576px) {
    .card-header {
        flex-direction: row;
        align-items: stretch !important;
        text-align: center;
    }

        .card-header .badge {
            width: min-content;
            justify-content: center;
        }

        .card-header .d-flex.flex-wrap {
            justify-content: center;
        }
}
@media (width <= 768px) {
    .btn-primary
    {
        background-color: #0d6efd;
        border: none;
        border-radius: 6px;
        font-weight: 700;
        padding: 4px 20px!important;
    }
}

/* Compact responsive style */
#generalinfozatca .form-label {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

#generalinfozatca .input-group-text {
    padding: 0.25rem 0.5rem;
}

#generalinfozatca .form-select,
#generalinfozatca .form-control {
    padding: 0.25rem 0.4rem;
    font-size: 0.85rem;
}

#generalinfozatca .response-badge {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    transition: transform 0.2s ease, filter 0.3s ease;
}

    #generalinfozatca .response-badge:hover {
        filter: brightness(1.05);
        transform: scale(1.03);
    }

@media (max-width: 768px) {
    #generalinfozatca {
        font-size: 0.85rem;
    }

        #generalinfozatca .form-select,
        #generalinfozatca .form-control {
            font-size: 0.8rem;
        }

        #generalinfozatca .row {
            --bs-gutter-x: 0.5rem !important;
        }
}

@media (max-width: 576px) {
    #generalinfozatca {
        padding: 0.5rem !important;
    }

        #generalinfozatca .form-label {
            font-size: 0.75rem;
        }
}

/* ================================
   OraSoft Invoice Responsive Layouts
   ================================ */

/* Compact, clean, thermal-style */
#InvoiceNewPrintPreview table th,
#InvoiceNewPrintPreview table td {
    padding: 2px 2px;
    border-color: #ddd !important;
}

#InvoiceNewPrintPreview h6 {
    font-size: 13px;
}

#InvoiceNewPrintPreview .small {
    font-size: 9px;
}

/* Ensure barcode and QR scale nicely */
/*.barcode-qr-container > div {
    flex: 1 1 45%;*/ /* each takes 45% max width */
/*min-width: 120px;*/ /* never too small */
/*margin: 2px;
}

.barcode-qr-container svg,
#qrCodeContainer canvas {
    max-width: 100%;
    height: auto;
}*/

/* Small receipt (58mm) special scaling */
/*@media (max-width: 240px) {
    .barcode-qr-container > div {
        flex: 1 1 100%;*/ /* stack vertically on tiny receipts */
/*}
}*/



@media (max-width: 573px) {
    .card-header {
        /*flex-direction: column;*/
        /*align-items: stretch !important;*/
        text-align: center;
    }

        .card-header .badge {
            width: min-content;
            justify-content: center;
        }

        .card-header .d-flex.flex-wrap {
            justify-content: center;
        }
}

@media (width <= 768px) {
    .btn-primary {
        background-color: #0d6efd;
        border: none;
        border-radius: 3px;
        font-weight: 700;
        padding: 2px 20px !important;
    }
}


/* ================================
   OraSoft Invoice Responsive Layouts
   ================================ */

/*div#InvoiceNewPrintModal {
    display: inline-flex!important;
}*/
/* Hide borders that divide columns */
#InvoiceNewPrintModal .border-end,
#InvoiceNewPrintModal .border-start {
    border: none !important;
    display: flex;
}
/*  Default (A4 / Desktop) */
#InvoiceNewPrintPreview {
    /*font-family: 'Cairo', sans-serif;*/
    color: #000;
}

    #InvoiceNewPrintPreview .card {
        border: none;
        border-radius: 1rem;
        box-shadow: 0 1px 3px rgba(0,0,0,0.08);
        /*margin-bottom: .75rem;*/
    }

    #InvoiceNewPrintPreview .card-header {
        background: linear-gradient(90deg, #0d6efd, #0b5ed7);
        color: #fff;
        font-weight: 600;
        font-size: 12px;
        padding: 3px 10px;
        border-top-left-radius: 1rem;
        border-top-right-radius: 1rem;
    }

    #InvoiceNewPrintPreview .card-body {
        padding: 3px 10px;
    }

/* ================================
    80mm Layout (Medium Receipts)
   ================================ */

/*  Shared layout classes */
.receipt-80mm,
.a5-layout {
    /* Compact base styles */
    font-size: 10px !important;
    line-height: 1.2 !important;
}

    .receipt-80mm *,
    .a5-layout * {
        font-size: 10px !important;
        line-height: 1.2 !important;
    }

    /*  Full-width blocks */
    .receipt-80mm .col-lg-2,
    .receipt-80mm .col-lg-10,
    .receipt-80mm .col-12,
    .a5-layout .col-lg-2,
    .a5-layout .col-lg-10,
    .a5-layout .col-12,
    .receipt-80mm #dateandtime,
    .a5-layout #dateandtime {
        width: 100% !important;
        flex: 0 0 100% !important;
        text-align: center;
        padding-left: 2px !important;
        padding-right: 2px !important;
        margin-bottom: 3px;
    }

    /*  Two-column layout */
    .receipt-80mm .col-md-6,
    .receipt-80mm .col-6,
    .receipt-80mm #invoiceHeader > div,
    .receipt-80mm #p_NOs,
    .receipt-80mm #fS_DATEs,
    .receipt-80mm #discounts,
    .receipt-80mm #invoiceTitles,
    .receipt-80mm #fwatirTypeTexts,
    .receipt-80mm #fwatirPoxTexts,
    .receipt-80mm #activitiesListTexts,
    .a5-layout .col-md-6,
    .a5-layout .col-6,
    .a5-layout #invoiceHeader > div,
    .a5-layout #p_NOs,
    .a5-layout #fS_DATEs,
    .a5-layout #discounts,
    .a5-layout #invoiceTitles,
    .a5-layout #fwatirTypeTexts,
    .a5-layout #fwatirPoxTexts,
    .a5-layout #activitiesListTexts ,.receipt-80mm .col-md-3:not(#paymentSection8),
    .a5-layout .col-md-3:not(#paymentSection8) {
        width: 50% !important;
        flex: 0 0 50% !important;
        padding-left: 2px !important;
        padding-right: 2px !important;
        margin-bottom: 2px !important;
        text-align: center;
    }

    /*  Card stacking */
    .receipt-80mm .col-md-8,
    .receipt-80mm .col-md-4,
    .receipt-80mm .col-8,
    .a5-layout .col-md-8,
    .a5-layout .col-md-4,
    .a5-layout .col-8 {
        width: 100% !important;
        flex: 0 0 100% !important;
        margin-bottom: 3px !important;
        padding-left: 2px !important;
        padding-right: 2px !important;
        text-align: center;
    }

    /*  Compact card body */
    .receipt-80mm .card-body,
    .a5-layout .card-body {
        padding: 2px !important;
    }

    /*  Compact input groups and labels */
    .receipt-80mm .form-label,
    .receipt-80mm .form-control,
    .receipt-80mm .input-group-text,
    .a5-layout .form-label,
    .a5-layout .form-control,
    .a5-layout .input-group-text {
        font-size: 10px !important;
        padding: 2px 2px !important;
        margin-bottom: 2px !important;
    }

    /*  Prevent wrapping inside input groups */
    .receipt-80mm .input-group,
    .a5-layout .input-group {
        flex-wrap: nowrap !important;
    }

    /*  Centered notes and address */
    .receipt-80mm .text-center,
    .a5-layout .text-center {
        font-size: 9px !important;
        margin-top: 2px !important;
    }

    /*  Ensure wrapping inside rows */
    .receipt-80mm #invoiceHeader,
    .a5-layout #invoiceHeader {
        flex-wrap: wrap !important;
    }

/* Default (mobile & small screens) */
.a4-layout {
    width: 595px !important;
    margin: 0 auto;
    font-size: 11px;
}

/* If screen width is greater than 595px, make it full width */
@media (min-width: 596px) {
    .a4-layout {
        width: 100% !important;
        margin: 0;
    }
    #InvoiceNewPrintPreview.a4-layout {
        width: 100%!important;
        font-size: 13px;
    }
}


 


    .a4-layout .form-label,
    .a4-layout .form-control,
    .a4-layout .input-group-text {
        font-size: 12px !important;
        padding: 2px 2px !important;
        line-height: 1.4 !important;
    }

#InvoiceNewPrintArea .a4-layout {
    background: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    padding: 13px;
    border-radius: 3px;
}

.a4-layout .col-md-8,
.a4-layout .col-8 {
    width: 70% !important;
    flex: 0 0 70% !important;
    margin-bottom: 2px !important;
    padding-left: 1px !important;
    padding-right: 1px !important;
}

.a4-layout .col-md-4,
.a4-layout .col-4 {
    width: 30% !important;
    flex: 0 0 30% !important;
    margin-bottom: 2px !important;
    padding-left: 1px !important;
    padding-right: 1px !important;
}


/* ================================
   General Thermal Mode
   ================================ */

/*  Base thermal-mode font and spacing */
.thermal-mode * {
    font-size: 9px !important;
    line-height: 1.1 !important;
}
/*.thermal-mode .hr, .a4-layout .hr, .receipt-80mm .hr,
.a5-layout .hr {
    margin: unset !important;
}*/
.thermal-mode hr, .a4-layout hr, .receipt-80mm hr,
.a5-layout hr {
    margin-bottom: 3px !important;
    margin-top: 3px !important;
}
/*  Ensure .row containers are flex */
.thermal-mode .row {
    display: flex !important;
    flex-wrap: wrap !important;
}

/*  Two-column layout for fields */
.thermal-mode #detailstawrids > div,
.thermal-mode #detailAccounts > div,
.thermal-mode #invoiceHeader > div {
    width: 50% !important;
    flex: 0 0 50% !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
    margin-bottom: 2px !important;
}

/*  Full-width blocks */
.thermal-mode #dateandtime,
.thermal-mode .col-12 {
    width: 100% !important;
    flex: 0 0 100% !important;
}

/* Prevent receipt-80mm from overriding thermal-mode layout */
.receipt-80mm .col-md-3:not(#paymentSection8),
.a5-layout .col-md-3:not(#paymentSection8) {
    width: 50% !important;
    flex: 0 0 50% !important;
}

/* Ensure full width in thermal-mode */
.thermal-mode #paymentSection8 {
    width: 100% !important;
    flex: 0 0 100% !important;
}

    /* Optional: ensure child card stretches too */
    .thermal-mode #paymentSection8 > .card {
        width: 100% !important;
        flex: 0 0 100% !important;
    }
/*  Full-width blocks */
/*.thermal-mode #paymentSection8 {
    width: 100% !important;
    flex: 0 0 100% !important;
}*/
/*.thermal-mode .col-md-3:not(#paymentSection8) {
    width: 50% !important;
    flex: 0 0 50% !important;
}
    .thermal-mode #paymentSection8 > div {
        width: 100% !important;
        flex: 0 0 100% !important;
    }*/
/*  Compact input groups */
.thermal-mode .form-label,
.thermal-mode .form-control,
.thermal-mode .input-group-text {
    font-size: 9px !important;
    padding: 2px 2px !important;
    line-height: 1.2 !important;
    margin-bottom: 2px !important;
}

/* Prevent wrapping inside input groups */
.thermal-mode .input-group {
    flex-wrap: nowrap !important;
}

/*  Card body spacing */
.thermal-mode .card-body {
    padding: 2px !important;
}

/*  Logo and header stacking */
.thermal-mode .col-lg-2,
.thermal-mode .col-lg-10 {
    width: 100% !important;
    flex: 0 0 100% !important;
    text-align: center;
    margin-bottom: 3px;
}
.receipt-80mm .col-lg-2,
.a5-layout .col-lg-10,
.receipt-80mm #storeImageblock,
.a5-layout #storeImageblock {
    width: 100% !important;
    flex: 0 0 100% !important;
    text-align: center;
    margin-bottom: 8px!important;
    margin-top: 8px!important;
}
/* Apply full width to all column classes inside thermal-mode */
/*  Force full width for logo block in compact layouts */
.thermal-mode #storeImageblock,
.receipt-80mm #storeImageblock,
.a5-layout #storeImageblock {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    margin-bottom: 6px !important;
}

    /*  Ensure image inside stays centered and responsive */
    .thermal-mode #storeImageblock img,
    .receipt-80mm #storeImageblock img,
    .a5-layout #storeImageblock img {
        display: inline-block;
        max-width: 100%;
        height: auto;
        margin: 0 auto;
    }

/*  Preserve col-lg-2 layout for logo in A4 */
.a4-layout #storeImageblock {
    /*width: auto !important;*/
    flex: 0 0 auto !important;
    max-width: none !important;
    text-align: center;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}
/*div#storeblocks{
    display: flex;
}
div#qrbarcode{
    display: flex;
}*/

/* ================================
    A4 Full Layout
   ================================ */
/*#InvoiceNewPrintPreview.a4-layout {
    width: 595px;
    font-size: 13px;
}*/

    #InvoiceNewPrintPreview.a4-layout .card {
        box-shadow: 0 2px 3px rgba(0,0,0,0.1);
        margin-bottom: 1rem;
    }

    #InvoiceNewPrintPreview.a4-layout .card-header {
        font-size: 15px;
        padding: 8px 12px;
    }

/* Table Styles */
#purchaseItemsTable th {
    background: linear-gradient(90deg, #f0f4ff, #dbe4ff);
    font-weight: 600;
    color: #333;
}

#purchaseItemsTable td {
    background: #f9f9f9;
    border-radius: 0.3rem;
    padding: 6px 8px;
}

#purchaseItemsTable tbody tr {
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 3px;
}

    #purchaseItemsTable tbody tr:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

/* Mobile Card Styles */
#purchaseItemsCardView .card-label {
    font-weight: 600;
    color: #555;
    font-size: 0.85rem;
}

#purchaseItemsCardView .card-value {
    font-weight: 700;
    color: #000;
    font-size: 0.9rem;
}

#purchaseItemsCardView .card {
    border: 1px solid #e3e3e3;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
} 

/* === Printer Settings Card Style === */


/* Highlight active printer */
.active-printer {
    border: 1px solid #28a745 !important;
    background-color: #e9f8ef !important;
}

/* Smaller switch */
.printer-card .form-check-input {
    transform: scale(0.9);
    cursor: pointer;
}

/* Badge compactness */
.printer-card .badge {
    font-size: 0.65rem;
    padding: 0.25em 0.45em;
    vertical-align: middle;
}

/* Subtext */
.extra-small {
    font-size: 0.75rem;
    line-height: 1.1;
}

/* Responsive tweaks */
@media (max-width: 576px) {
    .printer-card {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}
/* Compact, elegant printer cards */
.printer-card {
    background: #fff;
    transition: all 0.25s ease;
    cursor: pointer;
}

    .printer-card:hover {
        border: 1px solid #ffc107 !important;
        background-color: #ccc !important;
        /*transform: translateY(-2px);*/
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.07);
    }

/* Tooltip style */
.hover-tooltip {
    position: absolute;
    bottom: 110%;
    right: 15px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 5px 10px;
    font-size: 0.75rem;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: all 0.25s ease;
}

    .hover-tooltip::after {
        content: "";
        position: absolute;
        top: 100%;
        right: 10px;
        border-width: 5px;
        border-style: solid;
        border-color: rgba(0, 0, 0, 0.85) transparent transparent transparent;
    }

    .hover-tooltip.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* Toggle animation pulse */
.toggle-animate {
    animation: pulse 0.3s ease-in-out;
}

@keyframes pulse {
    0% {
        background-color: #f1fdf3;
        transform: scale(0.98);
    }

    50% {
        background-color: #f8fff8;
        transform: scale(1.02);
    }

    100% {
        background-color: #fff;
        transform: scale(1);
    }
}

/* Smooth border highlight for active input */
.border-highlight {
    border: 2px solid #198754 !important; /* Bootstrap success color */
    box-shadow: 0 0 6px rgba(25, 135, 84, 0.5);
    transition: all 0.3s ease-in-out;
}
/* Sidebar base state */
#shortcutSidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

 Overlay behind sidebar 
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1050;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
    backdrop-filter: blur(2px);
}

    .sidebar-overlay.visible {
        opacity: 1;
        pointer-events: auto;
    }


/* Sidebar Container */
.shortcut-sidebar {
    width: 280px !important;
    background-color: #fdfdfd;
    border-inline-end: 1px solid #dee2e6;
    box-shadow: 0 0 10px rgba(0,0,0,0.08);
    font-size: 0.875rem;
}

    /* Header */
    .shortcut-sidebar .bg-info {
        padding: 0.5rem 0.75rem;
        font-size: 0.95rem;
        background: linear-gradient(90deg, #0dcaf0, #31d2f2);
    }

    /* List Items */
    .shortcut-sidebar .list-group-item {
        padding: 0.4rem 0.6rem;
        border: none;
        border-bottom: 1px solid #f1f1f1;
        background-color: transparent;
    }

        /* Icon + Text */
        .shortcut-sidebar .list-group-item span {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            font-weight: 500;
        }

    /* Shortcut Badges & Buttons */
    .shortcut-sidebar .badge,
    .shortcut-sidebar kbd,
    .shortcut-sidebar .btn-sm {
        padding: 0.2rem 0.5rem;
        font-size: 0.75rem;
        border-radius: 0.375rem;
    }

    /* Card Headers (ZATCA & Printer) */
    .shortcut-sidebar .card-header {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
        background: linear-gradient(90deg, #0d6efd, #0b5ed7);
        border-radius: 0.5rem 0.5rem 0 0;
    }

    /* Card Body */
    .shortcut-sidebar .card-body {
        padding: 0.75rem 0.5rem;
    }

    /* Radio Buttons Group */
    .shortcut-sidebar .btn-group .btn {
        padding: 0.25rem 0.75rem;
        font-size: 0.75rem;
    }

    /* Footer */
    .shortcut-sidebar .bg-light {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
        border-top: 1px solid #e9ecef;
    }

    /* Collapse Icons */
    .shortcut-sidebar .card-header i.bi-chevron-down {
        font-size: 0.9rem;
        margin-inline-start: auto;
    }

    /* Responsive Scroll */
    .shortcut-sidebar .overflow-auto {
        scrollbar-width: thin;
    }

        .shortcut-sidebar .overflow-auto::-webkit-scrollbar {
            width: 6px;
        }

        .shortcut-sidebar .overflow-auto::-webkit-scrollbar-thumb {
            background-color: #ccc;
            border-radius: 3px;
        }
/* ===============================
   Elegant Modal Styling (Enhanced + Slide-Up + Sticky Header)
   =============================== */

.elegant-modal {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    animation: modalFadeIn 0.25s ease-in-out;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .elegant-modal:hover {
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
    }

/* Default desktop fade + scale animation */
@keyframes modalFadeIn {
    from {
        transform: scale(0.96);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===============================
   Sticky Elegant Header
   =============================== */
.elegant-header {
    position: sticky;
    top: 0;
    z-index: 1056; /* above modal body but below close button focus ring */
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    backdrop-filter: blur(6px);
    border-bottom: none;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
}

    .elegant-header .modal-title {
        font-size: 1rem;
        letter-spacing: 0.3px;
    }

/* Sticky header subtle shadow on scroll */
.elegant-body:has(.form-control:focus),
.elegant-body:active {
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.08);
}

/* ===============================
   Close Button
   =============================== */

/* Close Button */
.small-close {
    filter: brightness(100%);
    opacity: 0.9;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    transition: all 0.2s ease;
}

    .small-close:hover {
        transform: rotate(90deg) scale(1.1);
        background-color: #fff;
    }



/* ===============================
   Modal Body
   =============================== */
.elegant-body {
    background: #f8f9fa;
    color: #333;
    overflow-y: auto;
    scrollbar-width: thin;
    padding: 0.75rem;
    max-height: calc(100vh - 3.5rem); /* Ensures body fits within viewport */
}

    .elegant-body::-webkit-scrollbar {
        width: 6px;
    }

    .elegant-body::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: 3px;
    }

/* ===============================
   Backdrop Blur
   =============================== */
.modal-backdrop.show {
    opacity: 0.4 !important;
    backdrop-filter: blur(3px);
    background-color: rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease;
}

/* ===============================
   Responsive Adjustments
   =============================== */
@media (max-width: 992px) {
    .modal-dialog.modal-fullscreen-md-down {
        width: 100%;
        margin: 0;
        height: 100%;
    }
}

/* ===============================
   Mobile Slide-Up Transition
   =============================== */
@media (max-width: 768px) {
    .modal.show .elegant-modal {
        animation: slideUpModal 0.35s ease-out;
    }

    @keyframes slideUpModal {
        from {
            transform: translateY(100%);
            opacity: 0;
        }

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

    .elegant-body {
        padding: 0.45rem !important;
        max-height: calc(100vh - 3rem);
    }
}

/* Compact phones */
@media (max-width: 576px) {
    .elegant-body {
        padding: 0.3rem !important;
        max-height: calc(100vh - 2.8rem);
    }
}



/* ========== OraSoft Professional UI Modal ========== */
.uix-modal .modal-dialog {
    /*max-width: calc(100% - 280px);*/ /* Auto-adjust if sidebar is visible */
    transition: transform 0.25s ease, opacity 0.25s ease;
    margin: auto;
}

body.sidebar-collapsed .uix-modal .modal-dialog {
    /*max-width: calc(100% - 100px);*/
}

/* Smooth show effect */
.uix-modal.show .modal-dialog {
    transform: scale(1.015);
    opacity: 1;
}

/* ====== Content ====== */
.uix-modal .modal-content {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.15);
}

/* ====== Header ====== */
.uix-modal .modal-header {
    border: none;
    background: linear-gradient(90deg, #198754 0%, #20c997 100%) !important;
    backdrop-filter: blur(8px);
    min-height: 42px;
}

.uix-modal .modal-title {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-left:40px!important;
}

    .uix-modal .modal-title i {
        font-size: 1rem;
        opacity: 0.9;
    }

/* ====== Close Button ====== */
.uix-modal .btn-close {
    width: 11px;
    height: 11px;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    opacity: 1;
    transition: all 0.2s ease;
    margin-right:30px!important;
}

    .uix-modal .btn-close:hover {
        background-color: #fff;
        transform: rotate(90deg);
    }

/* ====== Body ====== */
.uix-modal .modal-body {
    background: #f9fafb;
    border-radius: 0 0 0.75rem 0.75rem;
    overflow-y: auto;
    max-height: 82vh;
    padding: 0.75rem 1rem !important;
}

/* ====== Overlay ====== */
.modal-backdrop.show {
    opacity: 0.75 !important;
    background-color: #1a1d20 !important;
    backdrop-filter: blur(6px);
}

/* ====== Responsiveness ====== */
@media (max-width: 1200px) {
    .uix-modal .modal-dialog {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .uix-modal .modal-dialog {
        max-width: 100%;
        margin: 0.75rem auto;
    }

    .uix-modal .modal-title {
        font-size: 0.9rem;
    }

    .uix-modal .modal-body {
        padding: 0.75rem;
    }
}

/* ====== Small Close Button Variant ====== */
.btn-close-sm {
    width: 12px !important;
    height: 12px !important;
}

#printSettingsAccordion .accordion-button {
    font-size: 0.75rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}
#zatcaStatusBadge {
    margin-left: 10px;
    margin-right: 10px;
    width: fit-content;
    min-width: 80px; /* optional for consistent size */
}
/*  Custom switch animation */
.custom-switch {
    width: 60px !important;
    height: 25px;
    margin: 0px!important;
    background-color: #dc3545; /* red when off */
    border: none;
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

    .custom-switch:focus {
        box-shadow: none;
    }

    .custom-switch::before {
        content: "";
        position: absolute;
        top: 3px;
        right: 3px;
        width: 19px;
        height: 19px;
        background-color: white;
        border-radius: 50%;
        transition: transform 0.4s ease, background-color 0.4s ease;
    }

    /*  When active */
    .custom-switch:checked {
        background-color: #28a745;
        box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
    }

        .custom-switch:checked::before {
            transform: translateX(-25px);
            background-color: #fff;
        }

/*  Smooth badge transition */
#zatcaStatusBadge {
    transition: all 0.3s ease-in-out;
}


/*@media (min-width: 992px) {
    .modal-dialog.modal-xl {
        max-width: 960px;*/ /* Matches .container width on lg screens */
    /*}
}*/



/*@media (max-width: 768px) {
    #itemList {
        display: none !important;
    }

    #itemSearch.show #itemList {
        display: block !important;
    }

    .modal-body .col-md-3 {
        max-height: 60vh;
        overflow-y: auto;
    }

    .modal-body .col-md-9 {
        display: none;
    }
}*/

/*
@media print {
    body > *:not(#InvoicePrintFullPage) {
        display: none !important;
    }

    #InvoicePrintFullPage {
        display: block !important;
        position: static !important;
    }
}*/

/* ================================
    Flex/Grid Adjustments
   ================================ */
/*@media print {
    body {
        background: #fff;
    }

    #InvoiceNewPrintPreview {
        margin: 0;
        box-shadow: none;
    }

        #InvoiceNewPrintPreview .card {
            page-break-inside: avoid;
        }
}
@media print {
    #InvoiceNewPrintPreview {
        padding: 6px !important;
        font-size: 11px;
    }

    .card, .card-body, .card-header {
        border-radius: 0 !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 4px !important;
    }

    .card-header {
        background-color: rgb(33 37 41 / 9%) !important;
        color: black;
    }

    .row.g-2 > [class*='col-'] {
        padding: 2px 4px !important;
    }

    .form-label {
        font-size: 10px !important;
        margin-bottom: 2px;
    }

    .input-group-text, .form-control {
        padding: 2px 4px !important;
        font-size: 10px !important;
    }

    #purchaseItemsTable {
        font-size: 10px !important;
    }

        #purchaseItemsTable th,
        #purchaseItemsTable td {
            padding: 3px 4px !important;
            white-space: nowrap;
        }

    #barcodeSvg, #qrCodeContainer {
        margin: 0 auto;
        display: block;
    }

    .sanad-header img {
        max-height: 50px !important;
    }

    @media (max-width: 480px) {
        .col-6 {
            flex: 0 0 100%;
            max-width: 100%;
        }

        #purchaseItemsTable th:nth-child(5),
        #purchaseItemsTable td:nth-child(5),
        #purchaseItemsTable th:nth-child(6),
        #purchaseItemsTable td:nth-child(6),
        #purchaseItemsTable th:nth-child(7),
        #purchaseItemsTable td:nth-child(7) {
            display: none;
        }
    }
}

@media print {
    .sanad-header {
        box-shadow: none !important;
        border: none !important;
        background: none !important;
    }
}*/
/*@media print {
    body {
        margin: 0;
        padding: 4px;
        font-family: 'Cairo', sans-serif;
        background: white;
        width: auto;
    }*/

    /*  Font sizing by layout */
    /*.thermal-mode * {
        font-size: 9px !important;
        line-height: 1.1 !important;
    }

    .receipt-80mm * {
        font-size: 10px !important;
        line-height: 1.2 !important;
    }

    .a5-layout * {
        font-size: 11px !important;
        line-height: 1.3 !important;
    }

    .a4-layout * {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }*/

    /*  Full-width blocks */
    /*.thermal-mode .col-12,
    .receipt-80mm .col-12,
    .a5-layout .col-12,
    .a4-layout .col-12,
    #dateandtime,
    .col-lg-2,
    .col-lg-10 {
        width: 100% !important;
        flex: 0 0 100% !important;
        padding-left: 4px !important;
        padding-right: 4px !important;
        margin-bottom: 6px !important;
        text-align: center;
    }*/

    /*  Two-column layout */
    /*.thermal-mode .col-md-6,
    .thermal-mode .col-md-3,
    .thermal-mode .col-6,
    .thermal-mode #invoiceHeader > div,
    .thermal-mode #detailstawrids > div,
    .receipt-80mm .col-md-6,
    .receipt-80mm .col-md-3,
    .receipt-80mm .col-6,
    .receipt-80mm #invoiceHeader > div,
    .receipt-80mm #detailstawrids > div,
    .a5-layout .col-md-6,
    .a5-layout .col-md-3,
    .a5-layout .col-6,
    .a5-layout #invoiceHeader > div,
    .a5-layout #detailstawrids > div {
        width: 50% !important;
        flex: 0 0 50% !important;
        padding-left: 4px !important;
        padding-right: 4px !important;
        margin-bottom: 4px !important;
    }*/

    /*  Stack cards vertically */
    /*.thermal-mode .col-md-8,
    .thermal-mode .col-md-4,
    .receipt-80mm .col-md-8,
    .receipt-80mm .col-md-4,
    .a5-layout .col-md-8,
    .a5-layout .col-md-4 {
        width: 100% !important;
        flex: 0 0 100% !important;
        margin-bottom: 6px !important;
        padding-left: 4px !important;
        padding-right: 4px !important;
    }*/

    /*  Compact input groups and labels */
    /*.form-label,
    .form-control,
    .input-group-text {
        font-size: inherit !important;
        padding: 2px 4px !important;
        margin-bottom: 2px !important;
    }

    .input-group {
        flex-wrap: nowrap !important;
    }

    .card-body {
        padding: 4px !important;
    }

    .text-center {
        font-size: 9px !important;
        margin-top: 4px !important;
    }*/

    /*  Ensure wrapping inside rows */
    /*#invoiceHeader,
    #detailstawrids,
    #detailAccounts {
        display: flex !important;
        flex-wrap: wrap !important;
    }*/

    /*  Table styling */
    /*table {
        width: 100%;
        border-collapse: collapse;
        font-size: inherit;
    }

    th, td {
        padding: 2px 4px;
        text-align: right;
    }

    th {
        border-bottom: 1px dashed #000;
        font-weight: 600;
    }
}*/

tr.editing {
    background-color: #fff3cd !important;
    border-left: 4px solid #ffc107;
}

tr.modified {
    background-color: #d1ecf1 !important;
    border-left: 4px solid #17a2b8;
}

tr.saving {
    opacity: 0.7;
    pointer-events: none;
}

tr.error {
    border-left: 4px solid #dc3545;
}

tr.new-row {
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0% {
        background-color: transparent;
    }

    50% {
        background-color: rgba(40, 167, 69, 0.1);
    }

    100% {
        background-color: transparent;
    }
}
.disabled-li {
    opacity: 0.6;
    pointer-events: none; /* Disable all clicks inside */
    background-color: #f1f1f1 !important;
}
@media (max-width:720px) {
    .modal-card {
        padding: 10px;
    }

    table.table thead th, table.table tbody td {
        padding: 6px 8px;
        font-size: 0.78rem;
    }

    .nav-tabs {
        gap: 4px;
        overflow: auto;
    }
}
/* ============================================
   LIGHT MODE (Default)
============================================ */

/* Table cells in light mode */
#tabledetails td {
    background-color: #ffffff;
    border-top: 1px solid #dee2e6;
}

/* DataTables Length Selector - Light Mode */
#tabledetails_length select.form-select.form-select-sm,
.dataTables_wrapper .dataTables_length select.form-select.form-select-sm {
    background-color: #ffffff;
    border: 1px solid #ced4da;
    color: #212529;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23212529' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

#tabledetails_length label,
.dataTables_wrapper .dataTables_length label {
    color: #212529;
}

/* DataTables Filter Input - Light Mode */
#tabledetails_filter input.form-control.form-control-sm,
.dataTables_wrapper .dataTables_filter input.form-control.form-control-sm {
    background-color: #ffffff;
    border: 1px solid #ced4da;
    color: #212529;
}

    #tabledetails_filter input.form-control.form-control-sm::placeholder {
        color: #6c757d;
    }

    #tabledetails_filter input.form-control.form-control-sm:focus {
        background-color: #ffffff;
        border-color: #86b7fe;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
        color: #212529;
    }

#tabledetails_filter label,
.dataTables_wrapper .dataTables_filter label {
    color: #212529;
}

/* ============================================
   DARK MODE
============================================ */

/* Dark Mode Table cells */
/*[data-bs-theme="dark"] #tabledetails td,
.dark-mode #tabledetails td,
body.dark-mode #tabledetails td {
    background-color: #000000 !important;
    border-top: 1px solid #444 !important;
    color: #e2e8f0 !important;
}*/

/* DataTables Length Selector - Dark Mode */
/*[data-bs-theme="dark"] #tabledetails_length select.form-select.form-select-sm,
[data-bs-theme="dark"] .dataTables_wrapper .dataTables_length select.form-select.form-select-sm,
.dark-mode #tabledetails_length select.form-select.form-select-sm,
.dark-mode .dataTables_wrapper .dataTables_length select.form-select.form-select-sm,
body.dark-mode #tabledetails_length select.form-select.form-select-sm {
    background-color: #000000 !important;
    border: 1px solid #444 !important;
    color: #e2e8f0 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23e2e8f0' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
}

    [data-bs-theme="dark"] #tabledetails_length select.form-select.form-select-sm:focus,
    .dark-mode #tabledetails_length select.form-select.form-select-sm:focus {
        border-color: #86b7fe !important;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
        background-color: #000000 !important;
        color: #ffffff !important;
    }

[data-bs-theme="dark"] #tabledetails_length label,
[data-bs-theme="dark"] .dataTables_wrapper .dataTables_length label,
.dark-mode #tabledetails_length label,
.dark-mode .dataTables_wrapper .dataTables_length label {
    color: #e2e8f0 !important;
}*/

/* DataTables Filter Input - Dark Mode */
/*[data-bs-theme="dark"] #tabledetails_filter input.form-control.form-control-sm,
[data-bs-theme="dark"] .dataTables_wrapper .dataTables_filter input.form-control.form-control-sm,
.dark-mode #tabledetails_filter input.form-control.form-control-sm,
.dark-mode .dataTables_wrapper .dataTables_filter input.form-control.form-control-sm {
    background-color: #000000 !important;
    border: 1px solid #444 !important;
    color: #e2e8f0 !important;
}

    [data-bs-theme="dark"] #tabledetails_filter input.form-control.form-control-sm::placeholder,
    .dark-mode #tabledetails_filter input.form-control.form-control-sm::placeholder {
        color: #a0aec0 !important;
    }

    [data-bs-theme="dark"] #tabledetails_filter input.form-control.form-control-sm:focus,
    .dark-mode #tabledetails_filter input.form-control.form-control-sm:focus {
        background-color: #000000 !important;
        border-color: #86b7fe !important;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
        color: #ffffff !important;
    }

[data-bs-theme="dark"] #tabledetails_filter label,
[data-bs-theme="dark"] .dataTables_wrapper .dataTables_filter label,
.dark-mode #tabledetails_filter label,
.dark-mode .dataTables_wrapper .dataTables_filter label {
    color: #e2e8f0 !important;
}*/

/* ============================================
   ADDITIONAL STYLES FOR COMPLETE DATA TABLE DARK MODE
============================================ */

/* Table header in dark mode */
/*[data-bs-theme="dark"] #tabledetails thead th,
.dark-mode #tabledetails thead th {
    background-color: #222 !important;
    border-color: #444 !important;
    color: #e2e8f0 !important;
}*/

/* Table hover effect in dark mode */
/*[data-bs-theme="dark"] #tabledetails tbody tr:hover td,
.dark-mode #tabledetails tbody tr:hover td {
    background-color: #111 !important;
}*/

/* Table borders in dark mode */
/*[data-bs-theme="dark"] #tabledetails,
[data-bs-theme="dark"] #tabledetails th,
[data-bs-theme="dark"] #tabledetails td,
.dark-mode #tabledetails,
.dark-mode #tabledetails th,
.dark-mode #tabledetails td {
    border-color: #444 !important;
}*/

/* Pagination in dark mode */
/*[data-bs-theme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button,
.dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button {
    color: #e2e8f0 !important;
    background-color: #000 !important;
    border: 1px solid #444 !important;
}

    [data-bs-theme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button.current,
    .dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button.current {
        background-color: #0d6efd !important;
        color: white !important;
        border-color: #0d6efd !important;
    }*/

/* Info text in dark mode */
/*[data-bs-theme="dark"] .dataTables_info,
.dark-mode .dataTables_info {
    color: #e2e8f0 !important;
}*/

/* ============================================
   UTILITY CLASSES FOR FORCE OVERRIDE
============================================ */

/* Force dark mode styles (use when needed) */
/*.force-dark-mode #tabledetails td {
    background-color: #000 !important;
    color: #e2e8f0 !important;
}

.force-dark-mode #tabledetails_length select {
    background-color: #000 !important;
    color: #e2e8f0 !important;
}

.force-dark-mode #tabledetails_filter input {
    background-color: #000 !important;
    color: #e2e8f0 !important;
}*/

/* ============================================
   RESPONSIVE ADJUSTMENTS
============================================ */

/*@media (max-width: 768px) {
    #tabledetails_length label,
    #tabledetails_filter label {
        font-size: 0.875rem;
    }

    #tabledetails_length select,
    #tabledetails_filter input {
        font-size: 0.875rem;
        padding: 0.25rem 0.5rem;
    }
}*/

/* ============================================
   SPECIFIC FOR YOUR HTML STRUCTURE
============================================ */

/* Style for your specific column structure */
/*#tabledetails_length .col-sm-12.col-md-6,
#tabledetails_filter .col-sm-12.col-md-6 {
    padding: 0.5rem;
}*/

/* Ensure proper spacing */
/*.dataTables_wrapper .row {
    margin-bottom: 1rem;
}*/

/* Custom focus styles for better visibility */
/*#tabledetails_length select:focus,
#tabledetails_filter input:focus {
    outline: none;
    transition: all 0.2s ease;
}*/

/* Hover effects */
/*#tabledetails_length select:hover,
#tabledetails_filter input:hover {
    border-color: #adb5bd;
    cursor: pointer;
}

[data-bs-theme="dark"] #tabledetails_length select:hover,
[data-bs-theme="dark"] #tabledetails_filter input:hover,
.dark-mode #tabledetails_length select:hover,
.dark-mode #tabledetails_filter input:hover {
    border-color: #666;
}*/

/* Responsive adjustments */
@@media (max-width: 768px) {
    .accounting-table {
        font-size: 0.8rem;
    }

        .accounting-table th,
        .accounting-table td {
            padding: 8px 4px;
        }

    .account-badge {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
}
/* Loading Animation */
@@keyframes loading {
    0% {
        transform: translateX(-100%);
    }

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

/* Responsive Design */
@@media (max-width: 768px) {
    .modern-header {
        padding: 8px 12px;
    }

    .header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .action-bar {
        justify-content: center;
    }

    .modern-table {
        display: block;
        overflow-x: auto;
    }

        .modern-table th,
        .modern-table td {
            padding: 6px 4px;
            font-size: 12px;
        }

    .action-buttons {
        flex-wrap: wrap;
    }

    .type-badge {
        font-size: 10px;
        padding: 2px 6px;
    }
}

@@media (max-width: 480px) {
    .title-text {
        font-size: 13px;
    }

    .action-btn {
        width: 28px;
        height: 28px;
    }

    .modern-table th,
    .modern-table td {
        font-size: 11px;
        padding: 4px 2px;
    }

    .invoice-badge {
        font-size: 11px;
        padding: 2px 6px;
    }
}
.processing-row {
    position: relative;
    opacity: 0.7;
}

    .processing-row::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.5);
        z-index: 1;
    }

.form-check-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-check-input.processing {
    background - color: #ffc107;
    border-color: #ffc107;
}

.alert ul {
    padding - left: 1.5rem;
    margin-bottom: 0.5rem;
}

.alert li {
    margin - bottom: 0.25rem;
}
.btn-xs {
    padding: 0.2rem 0.45rem;
    font-size: 0.75rem;
    min-height: 26px;
}

.form-control-xs {
    padding: 0.3rem 0.5rem;
    font-size: 0.8rem;
}

.icon-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Table ===== */
.compact-table th {
    padding: 0.4rem 0.4rem;
    font-size: 0.8rem;
    white-space: nowrap;
}

.compact-table td {
    padding: 0.35rem 0.4rem;
    font-size: 0.8rem;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.06);
}

/* ===== Badges & Switch ===== */
.badge-xs {
    padding: 0.25em 0.45em;
    font-size: 0.7rem;
}

.form-switch-xs {
    transform: scale(0.85);
}

/* ===== Utilities ===== */
.max-w-180 {
    max-width: 180px;
}

/* Dropdown */
.dropdown-menu {
    border: 1px solid rgba(0,0,0,.08);
}
/* Disabled user row */
tr.user-disabled {
    background: linear-gradient( 90deg, rgba(255, 193, 7, 0.14), rgba(255, 193, 7, 0.06) );
    border-left: 4px solid #ffc107;
    transition: background-color .25s ease;
}

    /* Text muted */
    tr.user-disabled td {
        color: #6c757d;
    }

    /* Hover */
    tr.user-disabled:hover {
        background: rgba(255, 193, 7, 0.18);
    }

    /* Buttons softer */
    tr.user-disabled .btn {
        opacity: .6;
    }

    /* Prevent delete */
    tr.user-disabled .btn-outline-danger {
        pointer-events: none;
    }

    /* Switch cursor */
    tr.user-disabled .form-check-input {
        cursor: pointer;
    }
 
/* Wrapper inside Swal icon */
.swal-icon-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Icon itself */
.swal2-icon.swal2-error i {
    font-size: 1.6rem;
    color: #dc3545; /* Bootstrap danger */
    line-height: 1;
}
/* Center icon content */
.swal-icon-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Success icon */
.swal2-icon.swal2-success i {
    font-size: 1.6rem;
    color: #198754; /* Bootstrap success */
    line-height: 1;
}
/* Semi-danger style for soft-deleted invoice */
tr.invoice-disabled {
    background-color: rgba(220, 53, 69, 0.15); /* Bootstrap danger, transparent */
    opacity: 0.7; /* slightly faded */
}

    tr.invoice-disabled .btn {
        pointer-events: none; /* disable clicks */
        opacity: 0.5; /* visual cue */
    }

/* financial-dashboard.css - Professional Financial Dashboard Styles */
 
/* Compact Header */
.compact-header .card-header {
    /*background: linear-gradient(135deg, #0d6efd, #6f42c1, #6610f2) !important;*/
    color: white !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem 1rem !important;
}

.compact-header .btn-group .btn {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.8rem !important;
    border-radius: 0.375rem !important;
}

.compact-header .btn-light {
    background: rgba(255, 255, 255, 0.9) !important;
    border: none !important;
}

    .compact-header .btn-light:hover {
        background: white !important;
        transform: translateY(-1px);
        box-shadow: var(--shadow-md);
    }

.compact-header .btn-outline-light {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

    .compact-header .btn-outline-light:hover {
        background: rgba(255, 255, 255, 0.2) !important;
        border-color: white !important;
    }

/* Compact Table */
.compact-table .card-body {
    padding: 0.5rem !important;
}

.compact-table .table-responsive {
    max-height: 350px;
    border-radius: 0.5rem;
    overflow: auto;
}

.compact-table #tabledetails {
    font-size: 0.8rem;
    margin-bottom: 0;
}

    .compact-table #tabledetails thead th {
        position: sticky;
        top: 0;
        background: #1e293b;
        color: white;
        padding: 0.5rem 0.375rem !important;
        font-size: 0.75rem;
        font-weight: 600;
        border-bottom: 2px solid #334155;
        z-index: 10;
    }

    .compact-table #tabledetails tbody td {
        padding: 0.375rem 0.25rem !important;
        border-bottom: 1px solid #f1f5f9;
        vertical-align: middle;
    }

    .compact-table #tabledetails tbody tr:hover {
        background-color: #f8fafc !important;
    }

    /* Color-coded columns */
    .compact-table #tabledetails tbody td:nth-child(1) {
        background: rgba(79, 70, 229, 0.05);
        border-left: 3px solid var(--primary-color);
    }

    .compact-table #tabledetails tbody td:nth-child(2) {
        background: rgba(16, 185, 129, 0.05);
        border-left: 3px solid var(--secondary-color);
    }

/* Numeric cells - right aligned */
.compact-table .numeric-cell {
    text-align: right !important;
    font-feature-settings: 'tnum';
    font-variant-numeric: tabular-nums;
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

/* Debit columns - green */
.compact-table td:nth-child(3),
.compact-table td:nth-child(5),
.compact-table td:nth-child(7) {
    color: var(--secondary-color) !important;
    font-weight: 500;
}

/* Credit columns - red */
.compact-table td:nth-child(4),
.compact-table td:nth-child(6),
.compact-table td:nth-child(8) {
    color: var(--danger-color) !important;
    font-weight: 500;
}

/* Balance column */
.compact-table td:nth-child(9) {
    font-weight: 600;
}

    .compact-table td:nth-child(9).positive {
        color: var(--secondary-color) !important;
    }

    .compact-table td:nth-child(9).negative {
        color: var(--danger-color) !important;
    }

/* Actions column */
.compact-table td:nth-child(10) {
    text-align: center;
    width: 70px;
    min-width: 70px;
}

.compact-table .dropdown-toggle {
    padding: 0.125rem 0.375rem !important;
    font-size: 0.75rem !important;
}

.compact-table .dropdown-menu {
    min-width: 180px;
    font-size: 0.8rem;
    padding: 0.25rem;
    border-radius: 0.375rem;
    box-shadow: var(--shadow-lg);
}

.compact-table .dropdown-item {
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    margin-bottom: 0.125rem;
}

    .compact-table .dropdown-item:last-child {
        margin-bottom: 0;
    }

    .compact-table .dropdown-item i {
        width: 16px;
        text-align: center;
    }

/* Footer totals */
.compact-table tfoot {
    position: sticky;
    bottom: 0;
    background: #f1f5f9;
    border-top: 2px solid var(--border-color);
    z-index: 5;
}

    .compact-table tfoot td {
        padding: 0.5rem 0.375rem !important;
        font-weight: 600;
        font-size: 0.8rem;
    }

        .compact-table tfoot td:first-child {
            color: var(--dark-color);
        }

        /* Color-coded footer totals */
        .compact-table tfoot td:nth-child(3),
        .compact-table tfoot td:nth-child(5),
        .compact-table tfoot td:nth-child(7) {
            color: var(--secondary-color) !important;
        }

        .compact-table tfoot td:nth-child(4),
        .compact-table tfoot td:nth-child(6),
        .compact-table tfoot td:nth-child(8) {
            color: var(--danger-color) !important;
        }

        .compact-table tfoot td:nth-child(9) {
            color: var(--primary-color) !important;
        }

/* Loading spinner */
#loadingSpinner {
    width: 1.5rem;
    height: 1.5rem;
    border-width: 0.15rem;
}

/* Empty and error states */
.empty-state, .error-state {
    padding: 2rem 1rem;
    text-align: center;
}

    .empty-state i, .error-state i {
        font-size: 3rem;
        opacity: 0.5;
        margin-bottom: 1rem;
    }

/* Responsive design */
@media (max-width: 768px) {
    .compact-header .card-header {
        padding: 0.5rem !important;
    }

    .compact-header .btn-group {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

        .compact-header .btn-group .btn {
            flex: 1;
            min-width: 80px;
        }

    .compact-table #tabledetails {
        font-size: 0.7rem;
    }

        .compact-table #tabledetails thead th,
        .compact-table #tabledetails tbody td {
            padding: 0.25rem 0.125rem !important;
        }

        /* Hide some columns on mobile */
        .compact-table #tabledetails th:nth-child(5),
        .compact-table #tabledetails td:nth-child(5),
        .compact-table #tabledetails th:nth-child(6),
        .compact-table #tabledetails td:nth-child(6) {
            display: none;
        }

    .compact-table .dropdown-menu {
        font-size: 0.75rem;
        min-width: 160px;
    }
}

@media (max-width: 576px) {
    .compact-header .btn-group .btn span {
        display: none;
    }

    .compact-header .btn-group .btn i {
        margin: 0 !important;
    }

    /* Hide more columns on very small screens */
    .compact-table #tabledetails th:nth-child(3),
    .compact-table #tabledetails td:nth-child(3),
    .compact-table #tabledetails th:nth-child(4),
    .compact-table #tabledetails td:nth-child(4) {
        display: none;
    }
}

/* Print styles */
@media print {
    .compact-header,
    .compact-table .dropdown,
    .btn-group {
        display: none !important;
    }

    .compact-table .card {
        border: none !important;
        box-shadow: none !important;
    }

    .compact-table .table-responsive {
        max-height: none !important;
        overflow: visible !important;
    }

    #tabledetails {
        font-size: 9pt !important;
        break-inside: avoid;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .compact-table .card {
        background-color: #1f2937;
        border-color: #374151;
    }

    .compact-table #tabledetails tbody tr:hover {
        background-color: #374151 !important;
    }

    .compact-table tfoot {
        background: #111827;
        border-color: #374151;
    }

        .compact-table tfoot td:first-child {
            color: #f3f4f6;
        }
}
/* Quick Stats */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

    .stat-icon.debit {
        background: rgba(16, 185, 129, 0.1);
        color: var(--debit-color);
    }

    .stat-icon.credit {
        background: rgba(239, 68, 68, 0.1);
        color: var(--credit-color);
    }

    .stat-icon.balance {
        background: rgba(59, 130, 246, 0.1);
        color: var(--balance-color);
    }

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.stat-value {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
    font-feature-settings: 'tnum';
    font-variant-numeric: tabular-nums;
}

/* Loading Indicator */
.loading-indicator {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 20;
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(4px);
}

.spinner-wave {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-bottom: 1rem;
}

    .spinner-wave .wave {
        width: 4px;
        height: 20px;
        background: var(--primary-gradient);
        border-radius: 2px;
        animation: wave 1.2s ease-in-out infinite;
    }

        .spinner-wave .wave:nth-child(2) {
            animation-delay: -0.2s;
        }

        .spinner-wave .wave:nth-child(3) {
            animation-delay: -0.4s;
        }
.toggle-btn {
    border: none;
    background: none;
    color:blue!important;
    font-size: 1.2rem;
}

/* Responsive Table */
@media (max-width: 992px) {
    .table-responsive {
        border: 1px solid #dee2e6;
        border-radius: 0.5rem;
    }

    .action-btn span {
        display: none;
    }

    .action-btn {
        padding: 0.25rem 0.5rem !important;
    }
}

@media (max-width: 768px) {
    #invoiceTable {
        min-width: 800px;
    }

    .card-header h6 {
        font-size: 0.9rem;
    }

    .badge {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.75rem;
    }
}

/* Loading Animation */
@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}
@media (max-width: 768px) {
    .custom-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .btn-group {
        justify-content: center;
        width: 100%;
    }

    .d-flex.gap-2 {
        width: 100%;
        justify-content: center;
    }
}
/* Responsive Adjustments */
@media (max-width: 768px) {
    .report-summary {
        font-size: 0.8rem;
    }

    .table-sm th, .table-sm td {
        padding: 0.3rem 0.4rem;
        font-size: 0.75rem;
    }

    .payment-methods .card-body {
        padding: 0.5rem;
    }

    .payment-methods .fs-5 {
        font-size: 1rem !important;
    }

    .payment-methods .fs-4 {
        font-size: 1.25rem !important;
    }
}

@media (max-width: 400px) {
    .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Print Styles */
@media print {
    .report-summary {
        font-size: 10pt;
    }

    .summary-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

    .payment-methods .card {
        break-inside: avoid;
    }
}
/* Responsive adjustments */
@media (max-width: 768px) {
    #period-date-section .col-md-6 {
        margin-bottom: 1rem;
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

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

/* Ultra Compact Table Styling */
/*.table-compact {
    --table-font-size: 11px;
    --table-padding: 4px 6px;
    --input-height: 28px;
    --header-font-size: 10px;
    --min-column-width: 70px;
}

#invoiceTable {
    font-size: var(--table-font-size);
    min-width: 1600px;
    table-layout: fixed;
    width: 100%;
}

    #invoiceTable th,
    #invoiceTable td {
        padding: var(--table-padding);
        vertical-align: middle !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: var(--min-column-width);
        max-width: 120px;
    }*/

    /* Header Styling */
    /*#invoiceTable thead th {*/
       /* font-size: var(--header-font-size);*/
        /*font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        position: sticky;
        top: 0;
        z-index: 10;
        border-bottom: 2px solid #4a5568;
    }*/

    /* Input Field Optimization */
    /*#invoiceTable .form-control-sm {
        font-size: var(--table-font-size);
        height: var(--input-height);
        padding: 2px 4px;
        min-height: var(--input-height);
        border: 1px solid #cbd5e0;
        border-radius: 3px;
    }

        #invoiceTable .form-control-sm:focus {
            border-color: #4299e1;
            box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.2);
            outline: none;
        }*/

    /* Column Width Optimization */
    /*#invoiceTable th:nth-child(1),*/ /* رقم الصنف */
    /*#invoiceTable td:nth-child(1) {
        min-width: 180px;
        max-width: 200px;
    }

    #invoiceTable th:nth-child(3),*/ /* اسم الصنف */
    /*#invoiceTable td:nth-child(3) {
        min-width: 150px;
        max-width: 180px;
    }

    #invoiceTable th:nth-child(19),*/ /* إجراء */
    /*#invoiceTable td:nth-child(19) {
        min-width: 60px;
        max-width: 70px;
    }*/

    /* Numeric Columns */
    /*#invoiceTable td:nth-child(n+5):nth-child(-n+18) {
        text-align: center;
        font-family: 'Courier New', monospace;
        font-weight: 500;
    }*/

    /* Button Styling */
    /*#invoiceTable .btn-sm {
        padding: 2px 6px;
        font-size: 10px;
        min-width: 40px;
    }*/

    /* Hover Effects */
    /*#invoiceTable tbody tr:hover {
        background-color: #f7fafc !important;
        box-shadow: inset 0 0 0 1px #e2e8f0;
    }*/

    /* Readonly Inputs */
    /*#invoiceTable input[readonly] {
        background-color: #f8f9fa;
        cursor: default;
        font-weight: 600;
    }*/

/* Important Cells Highlight */
/*.line-total,
.line-tax,
.line-before-tax {
    background-color: #f0f9ff !important;
}

    .line-total input {
        font-weight: 700 !important;
        color: #1a56db !important;
    }*/

/* Responsive Container */
/*.table-responsive {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    position: relative;
    max-height: 500px;
    overflow: auto;
}*/

    /* Scrollbar Styling */
    /*.table-responsive::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    .table-responsive::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }

    .table-responsive::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 4px;
    }

        .table-responsive::-webkit-scrollbar-thumb:hover {
            background: #a1a1a1;
        }*/

/* Mobile Optimization */
/*@media (max-width: 768px) {
    .table-compact {
        --table-font-size: 10px;
        --table-padding: 3px 4px;
        --input-height: 26px;
        --header-font-size: 9px;
        --min-column-width: 60px;
    }

    .table-responsive {
        max-height: 400px;
    }

    #invoiceTable th:nth-child(1),
    #invoiceTable td:nth-child(1) {
        min-width: 150px;
    }
}*/

/* Dark Mode Support */
/*@media (prefers-color-scheme: dark) {
    #invoiceTable {
        background-color: #1a202c;
        color: #e2e8f0;
    }

        #invoiceTable thead th {
            background: linear-gradient(135deg, #4c51bf 0%, #6b46c1 100%);
        }

        #invoiceTable tbody tr:hover {
            background-color: #2d3748 !important;
        }

        #invoiceTable .form-control-sm {
            background-color: #2d3748;
            border-color: #4a5568;
            color: #e2e8f0;
        }

        #invoiceTable input[readonly] {
            background-color: #2d3748;
        }
}*/

/* Print Optimization */
/*@media print {
    #invoiceTable {
        font-size: 9px;
        min-width: auto;
    }

        #invoiceTable th,
        #invoiceTable td {
            padding: 2px 3px;
        }

    .table-responsive {
        overflow: visible;
        max-height: none;
    }

    #invoiceTable .btn {
        display: none;
    }
}*/
/* Hide spinners/arrows from number inputs */
#invoiceTable input[type="number"]::-webkit-inner-spin-button,
#invoiceTable input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#invoiceTable input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* For Firefox */
#invoiceTable input[type="number"] {
    -moz-appearance: textfield;
}

/* Optional: Custom styling for number inputs */
#invoiceTable input[type="number"] {
    text-align: center;
    padding-right: 8px !important; /* Adjust for RTL */
}