/* نظام المبيعات - ملف الأنماط الرئيسي */

* {
    font-family: 'Cairo', sans-serif;
}

html {
    direction: rtl;
}

body {
    background-color: #f0f2f8;
    min-height: 100vh;
    direction: rtl;
    text-align: right;
}

body.app-body {
    display: block;
}

.container-fluid {
    flex: 1;
}

/* ===== التخطيط مع القائمة الجانبية ===== */
:root {
    --sidebar-width: 280px;
    --sidebar-bg: #151521;
    --sidebar-bg-soft: #1e1e2f;
    --sidebar-border: rgba(255, 255, 255, 0.08);
    --sidebar-text: rgba(255, 255, 255, 0.88);
    --sidebar-text-muted: rgba(255, 255, 255, 0.55);
    --sidebar-accent: #667eea;
    --sidebar-accent-2: #764ba2;
    --topbar-height: 64px;
}

.app-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, var(--sidebar-bg-soft) 0%, var(--sidebar-bg) 100%);
    border-left: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    z-index: 1040;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.18);
    transition: transform 0.3s ease;
}

.sidebar-brand {
    padding: 22px 20px 18px;
    border-bottom: 1px solid var(--sidebar-border);
}

.sidebar-brand-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
}

.sidebar-brand-link:hover {
    color: #fff;
}

.sidebar-brand-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sidebar-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sidebar-brand-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-brand-sub {
    font-size: 0.78rem;
    color: var(--sidebar-text-muted);
    margin-top: 2px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 8px 10px 12px;
}

.sidebar-panel {
    display: none;
}

.sidebar-panel.is-active {
    display: block;
}

.sidebar-panel-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px 14px;
    margin-bottom: 4px;
    font-weight: 700;
    font-size: 0.92rem;
    color: #fff;
    border-bottom: 1px solid var(--sidebar-border);
}

.sidebar-panel-heading i {
    width: 22px;
    text-align: center;
    color: var(--sidebar-accent);
}

.sidebar-panel-menu {
    list-style: none;
    margin: 0;
    padding: 8px 4px 0;
}

.sidebar-panel-menu li {
    margin-bottom: 2px;
}

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

.sidebar-section {
    margin-bottom: 4px;
}

.sidebar-section-toggle,
.sidebar-single-link {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border: none;
    background: transparent;
    color: var(--sidebar-text);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.2s ease;
    cursor: pointer;
    text-align: right;
}

.sidebar-section-toggle:hover,
.sidebar-single-link:hover {
    background: var(--sidebar-bg-hover, rgba(255, 255, 255, 0.06));
    color: #fff;
}

.sidebar-single-link.active,
.sidebar-section-toggle[aria-expanded="true"] {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.25) 0%, rgba(118, 75, 162, 0.2) 100%);
    color: #fff;
}

.sidebar-link-icon {
    width: 22px;
    text-align: center;
    font-size: 1rem;
    opacity: 0.9;
}

.sidebar-chevron {
    margin-right: auto;
    font-size: 0.72rem;
    opacity: 0.6;
    transition: transform 0.25s ease;
}

.sidebar-section.is-open .sidebar-chevron {
    transform: rotate(180deg);
}

.sidebar-submenu {
    list-style: none;
    margin: 0;
    padding: 0 8px 6px 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.sidebar-section.is-open .sidebar-submenu {
    max-height: 600px;
}

.sidebar-submenu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px 9px 12px;
    margin: 2px 0;
    border-radius: 8px;
    color: var(--sidebar-text-muted);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-right: 3px solid transparent;
}

.sidebar-submenu-link i {
    width: 18px;
    text-align: center;
    font-size: 0.82rem;
}

.sidebar-submenu-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.sidebar-submenu-link.active {
    background: rgba(102, 126, 234, 0.15);
    color: #fff;
    border-right-color: var(--sidebar-accent);
}

.sidebar-footer {
    padding: 14px 16px 18px;
    border-top: 1px solid var(--sidebar-border);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sidebar-accent) 0%, var(--sidebar-accent-2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.sidebar-user-name {
    display: block;
    color: #fff;
    font-weight: 600;
    font-size: 0.88rem;
}

.sidebar-user-role {
    display: block;
    color: var(--sidebar-text-muted);
    font-size: 0.75rem;
}

.app-shell {
    margin-right: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin 0.3s ease;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    min-height: var(--topbar-height);
    background: #fff;
    border-bottom: 1px solid #e8ecf4;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 8px 20px;
    gap: 10px 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.app-mainnav {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    gap: 6px;
    overflow-x: auto;
    min-width: 0;
    padding: 2px 0;
    scrollbar-width: thin;
}

.app-mainnav::-webkit-scrollbar {
    height: 4px;
}

.app-mainnav::-webkit-scrollbar-thumb {
    background: #d0d5e0;
    border-radius: 4px;
}

.mainnav-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1px solid #e0e4ef;
    border-radius: 10px;
    background: #f8f9fc;
    color: #495057;
    font-weight: 600;
    font-size: 0.86rem;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.mainnav-btn i {
    font-size: 0.9rem;
    opacity: 0.85;
}

.mainnav-btn:hover {
    background: #eef1f8;
    border-color: #c8cfe0;
    color: #2d3748;
}

.mainnav-btn.is-active {
    background: linear-gradient(135deg, var(--sidebar-accent) 0%, var(--sidebar-accent-2) 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.mainnav-btn.is-active i {
    opacity: 1;
}

.sidebar-nav::-webkit-scrollbar {
    width: 5px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.sidebar-toggle-btn {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid #e0e4ef;
    border-radius: 10px;
    background: #fff;
    color: #495057;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.sidebar-toggle-btn:hover {
    background: #f4f6fb;
    border-color: var(--sidebar-accent);
    color: var(--sidebar-accent);
}

.topbar-title {
    flex: 0 1 auto;
    order: 3;
    width: 100%;
}

@media (min-width: 992px) {
    .topbar-title {
        order: 0;
        width: auto;
        flex: 0 0 auto;
        margin-right: auto;
    }
}

.topbar-page-label {
    font-weight: 700;
    color: #2d3748;
    font-size: 1.05rem;
}

.topbar-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #e0e4ef;
    border-radius: 10px;
    background: #fff;
    color: #495057;
    font-weight: 600;
    font-size: 0.9rem;
}

.topbar-user-btn:hover,
.topbar-user-btn:focus {
    background: #f4f6fb;
    border-color: var(--sidebar-accent);
    color: var(--sidebar-accent);
}

.app-main {
    flex: 1;
    padding: 24px 0 0;
}

.app-container {
    padding-bottom: 24px;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1035;
}

@media (max-width: 991.98px) {
    .app-mainnav {
        order: 2;
        width: 100%;
        flex: 1 1 100%;
    }

    .topbar-actions {
        margin-right: auto;
    }

    .app-sidebar {
        transform: translateX(100%);
    }

    body.sidebar-mobile-open .app-sidebar {
        transform: translateX(0);
    }

    body.sidebar-mobile-open .sidebar-overlay {
        display: block;
    }

    .app-shell {
        margin-right: 0;
    }

    .sidebar-toggle-btn {
        display: inline-flex;
    }
}

@media print {
    .app-sidebar,
    .app-topbar,
    .sidebar-overlay,
    .no-print {
        display: none !important;
    }

    .app-shell {
        margin-right: 0 !important;
    }
}

/* بطاقات */
.card {
    border: none;
    box-shadow: 0 0 20px rgba(0,0,0,0.08);
    border-radius: 10px;
    margin-bottom: 20px;
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px 10px 0 0 !important;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 1.1rem;
}

/* الجداول */
.table {
    background: white;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* الأزرار */
.btn {
    border-radius: 5px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
    border: none;
}

.btn-danger {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    border: none;
}

.btn-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border: none;
}

.btn-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    color: white;
}

/* النماذج */
.form-control, .form-select {
    border-radius: 5px;
    border: 1px solid #ced4da;
    padding: 10px 15px;
}

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

/* شريط التنقل (صفحات بدون قائمة جانبية) */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s;
}

.nav-link:hover {
    transform: translateY(-2px);
}

/* الفوتر */
.footer {
    margin-top: auto;
    border-top: 1px solid #dee2e6;
}

/* صفحة تسجيل الدخول */
.login-page {
    min-height: 100vh;
    margin: 0;
    font-family: 'Cairo', sans-serif;
    background: #0f172a;
    color: #1e293b;
    overflow-x: hidden;
}

.login-page__backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 60% at 10% 20%, rgba(99, 102, 241, 0.45), transparent 55%),
        radial-gradient(ellipse 70% 50% at 90% 80%, rgba(168, 85, 247, 0.35), transparent 50%),
        linear-gradient(145deg, #0f172a 0%, #1e1b4b 45%, #312e81 100%);
}

.login-page__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

.login-page__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
    animation: loginOrbFloat 14s ease-in-out infinite;
}

.login-page__orb--1 {
    width: 320px;
    height: 320px;
    background: #6366f1;
    top: -80px;
    right: -60px;
}

.login-page__orb--2 {
    width: 280px;
    height: 280px;
    background: #a855f7;
    bottom: 10%;
    left: -40px;
    animation-delay: -4s;
}

.login-page__orb--3 {
    width: 200px;
    height: 200px;
    background: #22d3ee;
    top: 40%;
    left: 35%;
    animation-delay: -8s;
    opacity: 0.35;
}

@keyframes loginOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(12px, -18px) scale(1.06); }
}

.login-page__shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px;
    gap: 24px;
    align-items: center;
}

.login-page__intro {
    color: #f8fafc;
    padding: 24px 16px 24px 32px;
}

.login-page__intro-inner {
    max-width: 480px;
}

.login-page__logo-wrap,
.login-page__logo-fallback {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.login-page__logo {
    max-width: 72px;
    max-height: 72px;
    object-fit: contain;
}

.login-page__logo-fallback {
    font-size: 2rem;
    color: #c7d2fe;
}

.login-page__company {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.25;
    background: linear-gradient(135deg, #fff 0%, #c7d2fe 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.login-page__tagline {
    font-size: 1.05rem;
    color: rgba(248, 250, 252, 0.78);
    margin-bottom: 28px;
    line-height: 1.7;
}

.login-page__features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.login-page__features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: rgba(248, 250, 252, 0.88);
    font-size: 0.95rem;
}

.login-page__features i {
    color: #4ade80;
    font-size: 1rem;
}

.login-page__company-contact {
    margin: 0;
    color: rgba(248, 250, 252, 0.65);
    font-size: 0.9rem;
}

.login-page__panel {
    display: flex;
    justify-content: center;
}

.login-page__card {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 24px;
    padding: 36px 32px 28px;
    box-shadow:
        0 25px 50px rgba(15, 23, 42, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    backdrop-filter: blur(16px);
}

.login-page__card-head {
    text-align: center;
    margin-bottom: 28px;
}

.login-page__pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #eef2ff, #f5f3ff);
    color: #4f46e5;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.login-page__card-head h2 {
    font-size: 1.65rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: #0f172a;
}

.login-page__card-head p {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
}

.login-page__alert {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    border: none;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.login-page__form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-field__label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    color: #334155;
    margin-bottom: 8px;
}

.login-field__control {
    position: relative;
}

.login-field__icon {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    z-index: 2;
}

.login-field__control .form-control {
    height: 52px;
    padding-right: 44px;
    padding-left: 44px;
    border-radius: 14px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.login-field__control .form-control:focus {
    border-color: #6366f1;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.login-field__toggle {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #94a3b8;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

.login-field__toggle:hover {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.08);
}

.login-page__submit {
    margin-top: 8px;
    height: 52px;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
    color: #fff;
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.login-page__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(99, 102, 241, 0.42);
    color: #fff;
}

.login-page__card-foot {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-page__card-foot small {
    color: #94a3b8;
    font-size: 0.8rem;
}

/* اعتماد المطوّر */
.dev-credit {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px;
    font-size: 0.82rem;
    color: #64748b;
}

.dev-credit__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #475569;
}

.dev-credit__label i {
    color: #6366f1;
    font-size: 0.75rem;
}

.dev-credit__phone {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    direction: ltr;
    unicode-bidi: embed;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.08);
    transition: background 0.2s, color 0.2s;
}

.dev-credit__phone:hover {
    color: #4f46e5;
    background: rgba(99, 102, 241, 0.15);
}

.dev-credit--login {
    margin-top: 4px;
}

.dev-credit--footer {
    font-size: 0.8rem;
}

.app-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 28px;
    padding: 16px 24px;
    text-align: center;
    color: #6c757d;
    font-size: 0.85rem;
    border-top: 1px solid #e8ecf4;
    background: #fff;
}

.app-footer__copy {
    color: #6c757d;
}

@media (max-width: 991px) {
    .login-page__shell {
        grid-template-columns: 1fr;
        padding: 20px 16px 32px;
    }

    .login-page__intro {
        text-align: center;
        padding: 16px 8px 0;
    }

    .login-page__intro-inner {
        margin: 0 auto;
    }

    .login-page__logo-wrap,
    .login-page__logo-fallback {
        margin-left: auto;
        margin-right: auto;
    }

    .login-page__features li {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .login-page__card {
        padding: 28px 20px 22px;
        border-radius: 20px;
    }
}

/* legacy login (unused) */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
    max-width: 450px;
    width: 100%;
}

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

.login-header i {
    font-size: 4rem;
    color: #667eea;
}

/* الرسائل */
.alert {
    border-radius: 8px;
    border: none;
}

/* جدول الأصناف في الفاتورة */
#itemsTable tbody tr {
    transition: all 0.3s;
}

#itemsTable tbody tr:hover {
    background-color: #f8f9fa;
}

.item-row input, .item-row select, .item-row textarea {
    font-size: 0.9rem;
}

/* صفحة الطباعة */
@media print {
    body * {
        visibility: hidden;
    }
    
    .print-area, .print-area * {
        visibility: visible;
    }
    
    .print-area {
        position: absolute;
        right: 0;
        top: 0;
        width: 100%;
    }
    
    .no-print {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}

.print-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #667eea;
}

.print-header h1 {
    color: #667eea;
    font-weight: 700;
    margin-bottom: 10px;
}

.print-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.print-table {
    margin-top: 20px;
}

.print-table th {
    background-color: #667eea;
    color: white;
}

.print-summary {
    margin-top: 30px;
    text-align: left;
}

.print-summary table {
    width: 300px;
    margin-right: auto;
}

.print-notes {
    margin-top: 30px;
    padding: 15px;
    background-color: #fff3cd;
    border-right: 4px solid #ffc107;
    border-radius: 5px;
}

/* Badge */
.badge {
    padding: 6px 12px;
    font-weight: 500;
}

/* كشف الحساب */
.account-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.account-summary h3 {
    font-weight: 700;
    margin-bottom: 20px;
}

.account-summary .summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.account-summary .summary-item:last-child {
    border-bottom: none;
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 10px;
}

/* تحسينات إضافية */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.5rem;
}

.icon-box.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.icon-box.success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
    color: white;
}

.icon-box.danger {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .card-header {
        font-size: 1rem;
    }
    
    .btn {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
    
    .table {
        font-size: 0.85rem;
    }
}

/* Select2 — RTL عربي */
.select2-container--bootstrap-5 {
    direction: rtl;
    text-align: right;
    width: 100% !important;
}

.select2-container--bootstrap-5 .select2-selection {
    text-align: right;
    min-height: 42px;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    padding-right: 12px;
    padding-left: 2.5rem;
    line-height: 1.5;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
    left: 0.75rem;
    right: auto;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__clear {
    left: 2rem;
    right: auto;
}

.select2-container--bootstrap-5 .select2-dropdown {
    direction: rtl;
    text-align: right;
}

.select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field {
    text-align: right;
    direction: rtl;
}

.select2-container--bootstrap-5 .select2-results__option {
    text-align: right;
}

#itemsTable .select2-container--bootstrap-5 {
    min-width: 180px;
}

/* قائمة منسدلة + زر إضافة */
.select-with-add {
    display: flex;
    align-items: stretch;
    gap: 6px;
    width: 100%;
}

.select-with-add .select2-container {
    flex: 1;
    min-width: 0;
    width: auto !important;
}

.select-with-add > select.form-select {
    flex: 1;
    min-width: 0;
}

.select-with-add .btn-quick-add {
    flex: 0 0 auto;
    width: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}

/* ===== لوحة التحكم — تصميم احترافي ===== */
.dashboard-page {
    --dash-radius: 16px;
    --dash-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    --dash-shadow-hover: 0 12px 40px rgba(102, 126, 234, 0.15);
}

.dashboard-page .card {
    margin-bottom: 0;
}

.dashboard-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 32px;
    margin-bottom: 28px;
    border-radius: var(--dash-radius);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 55%, #5b4bb7 100%);
    color: #fff;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.35);
    position: relative;
    overflow: hidden;
}

.dashboard-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -10%;
    width: 280px;
    height: 280px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.dashboard-hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -5%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.dashboard-hero__content,
.dashboard-hero__aside {
    position: relative;
    z-index: 1;
}

.dashboard-hero__badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 10px;
    backdrop-filter: blur(4px);
}

.dashboard-hero__title {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 6px;
    color: #fff;
}

.dashboard-hero__sub {
    margin: 0;
    opacity: 0.92;
    font-size: 0.95rem;
}

.dashboard-hero__date {
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
    backdrop-filter: blur(4px);
}

.dashboard-hero__hint {
    font-size: 0.82rem;
    opacity: 0.85;
    text-align: center;
}

.dash-section {
    margin-bottom: 32px;
}

.dash-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8ecf4;
}

.dash-section__head h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

.dash-section__head h2 i {
    margin-left: 8px;
    color: #667eea;
}

.dash-section__chip {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    background: #eef1f8;
    color: #667eea;
}

.dash-section__head--sales h2 i { color: #667eea; }
.dash-section__head--sales .dash-section__chip { background: rgba(102, 126, 234, 0.12); color: #667eea; }
.dash-section__head--purchases h2 i { color: #0ea5e9; }
.dash-section__head--purchases .dash-section__chip { background: rgba(14, 165, 233, 0.12); color: #0ea5e9; }
.dash-section__head--employees h2 i { color: #8b5cf6; }
.dash-section__head--employees .dash-section__chip { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }

.dash-section__head--employees h2 i { color: #8b5cf6; }
.dash-section__head--employees .dash-section__chip { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }
.dash-section__head--checks h2 i { color: #059669; }
.dash-section__head--checks .dash-section__chip { background: rgba(5, 150, 105, 0.12); color: #059669; }

.dash-table-card__header--checks {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.08), rgba(14, 165, 233, 0.08));
}

.dash-checks-panel {
    background: #fff;
    border: 1px solid #eef1f8;
    border-radius: var(--dash-radius);
    box-shadow: var(--dash-shadow);
    padding: 20px;
    height: 100%;
}

.dash-checks-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.dash-checks-panel__head h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    color: #2d3748;
}

.dash-checks-panel__head h3 i {
    margin-left: 6px;
    color: #059669;
}

.checks-status-bar {
    display: flex;
    height: 14px;
    border-radius: 999px;
    overflow: hidden;
    background: #eef1f8;
    gap: 2px;
}

.checks-status-bar__seg {
    min-width: 4px;
    transition: width 0.3s ease;
}

.checks-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
}

.checks-status-chip {
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #eef1f8;
    background: #fafbfe;
    text-align: center;
}

.checks-status-chip__label {
    display: block;
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 4px;
}

.checks-status-chip strong {
    display: block;
    font-size: 1.25rem;
    line-height: 1.2;
}

.checks-status-chip small {
    color: #94a3b8;
    font-size: 0.72rem;
}

.checks-status-chip--pending { border-color: rgba(245, 158, 11, 0.35); background: rgba(245, 158, 11, 0.08); }
.checks-status-chip--collected { border-color: rgba(34, 197, 94, 0.35); background: rgba(34, 197, 94, 0.08); }
.checks-status-chip--spent { border-color: rgba(14, 165, 233, 0.35); background: rgba(14, 165, 233, 0.08); }
.checks-status-chip--returned { border-color: rgba(239, 68, 68, 0.35); background: rgba(239, 68, 68, 0.08); }
.checks-status-chip--cancelled { border-color: rgba(148, 163, 184, 0.35); background: rgba(148, 163, 184, 0.08); }

.checks-alert-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checks-alert-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    border: 1px solid #eef1f8;
    background: #fafbfe;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.checks-alert-item:hover {
    transform: translateX(-3px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    color: inherit;
}

.checks-alert-item strong {
    font-size: 1.15rem;
}

.checks-alert-item span {
    font-size: 0.78rem;
    color: #64748b;
}

.checks-alert-item--danger { border-color: rgba(239, 68, 68, 0.25); background: rgba(239, 68, 68, 0.06); }
.checks-alert-item--warning { border-color: rgba(245, 158, 11, 0.25); background: rgba(245, 158, 11, 0.06); }
.checks-alert-item--info { border-color: rgba(14, 165, 233, 0.25); background: rgba(14, 165, 233, 0.06); }
.checks-alert-item--muted { opacity: 0.92; }

.checks-flow-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
}

.checks-flow-item {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
}

.checks-flow-item span {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
}

.checks-flow-item strong {
    font-size: 0.95rem;
}

.checks-flow-item--in { background: rgba(34, 197, 94, 0.1); color: #15803d; }
.checks-flow-item--out { background: rgba(14, 165, 233, 0.1); color: #0369a1; }
.checks-flow-arrow { color: #94a3b8; font-size: 0.9rem; }

.dashboard-stat-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.dashboard-stat-link:hover {
    color: inherit;
}

.kpi-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    height: 100%;
    min-height: 118px;
    padding: 20px 18px;
    background: #fff;
    border-radius: var(--dash-radius);
    border: 1px solid #eef1f8;
    box-shadow: var(--dash-shadow);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.dashboard-stat-link:hover .kpi-card {
    transform: translateY(-4px);
    box-shadow: var(--dash-shadow-hover);
    border-color: rgba(102, 126, 234, 0.25);
}

.kpi-card__glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    border-radius: 0 4px 4px 0;
}

.kpi-card--primary .kpi-card__glow { background: linear-gradient(180deg, #667eea, #764ba2); }
.kpi-card--success .kpi-card__glow { background: linear-gradient(180deg, #22c55e, #16a34a); }
.kpi-card--danger .kpi-card__glow { background: linear-gradient(180deg, #ef4444, #dc2626); }
.kpi-card--warning .kpi-card__glow { background: linear-gradient(180deg, #f59e0b, #d97706); }
.kpi-card--info .kpi-card__glow { background: linear-gradient(180deg, #0ea5e9, #0284c7); }
.kpi-card--purple .kpi-card__glow { background: linear-gradient(180deg, #8b5cf6, #7c3aed); }
.kpi-card--teal .kpi-card__glow { background: linear-gradient(180deg, #14b8a6, #0d9488); }
.kpi-card--slate .kpi-card__glow { background: linear-gradient(180deg, #64748b, #475569); }

.kpi-card__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.kpi-card--primary .kpi-card__icon { background: rgba(102, 126, 234, 0.12); color: #667eea; }
.kpi-card--success .kpi-card__icon { background: rgba(34, 197, 94, 0.12); color: #16a34a; }
.kpi-card--danger .kpi-card__icon { background: rgba(239, 68, 68, 0.12); color: #dc2626; }
.kpi-card--warning .kpi-card__icon { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.kpi-card--info .kpi-card__icon { background: rgba(14, 165, 233, 0.12); color: #0284c7; }
.kpi-card--purple .kpi-card__icon { background: rgba(139, 92, 246, 0.12); color: #7c3aed; }
.kpi-card--teal .kpi-card__icon { background: rgba(20, 184, 166, 0.12); color: #0d9488; }
.kpi-card--slate .kpi-card__icon { background: rgba(100, 116, 139, 0.12); color: #475569; }

.kpi-card__content {
    flex: 1;
    min-width: 0;
}

.kpi-card__label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 6px;
    line-height: 1.3;
}

.kpi-card__value {
    display: block;
    font-size: 1.45rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.kpi-card__value.text-success { color: #16a34a; }
.kpi-card__value.text-danger { color: #dc2626; }
.kpi-card__value.text-warning { color: #d97706; }
.kpi-card__value.text-info { color: #0284c7; }

.kpi-card__meta {
    margin-top: 8px;
    font-size: 0.72rem;
    color: #94a3b8;
    line-height: 1.4;
}

.kpi-card__action {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    opacity: 0;
    transform: translateX(6px);
    transition: all 0.25s ease;
}

.dashboard-stat-link:hover .kpi-card__action {
    opacity: 1;
    transform: translateX(0);
    background: rgba(102, 126, 234, 0.12);
    color: #667eea;
}

.financial-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

@media (max-width: 1199.98px) {
    .financial-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575.98px) {
    .financial-grid { grid-template-columns: 1fr; }
}

.financial-tile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 16px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #eef1f8;
    box-shadow: var(--dash-shadow);
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

.financial-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--dash-shadow-hover);
    color: inherit;
}

.financial-tile__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.financial-tile--primary .financial-tile__icon { background: rgba(102, 126, 234, 0.12); color: #667eea; }
.financial-tile--success .financial-tile__icon { background: rgba(34, 197, 94, 0.12); color: #16a34a; }
.financial-tile--danger .financial-tile__icon { background: rgba(239, 68, 68, 0.12); color: #dc2626; }
.financial-tile--warning .financial-tile__icon { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.financial-tile--info .financial-tile__icon { background: rgba(14, 165, 233, 0.12); color: #0284c7; }
.financial-tile--teal .financial-tile__icon { background: rgba(20, 184, 166, 0.12); color: #0d9488; }
.financial-tile--purple .financial-tile__icon { background: rgba(139, 92, 246, 0.12); color: #7c3aed; }
.financial-tile--slate .financial-tile__icon { background: rgba(100, 116, 139, 0.12); color: #475569; }

.financial-tile__label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
}

.financial-tile__value {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e293b;
}

.financial-tile--primary:hover { border-color: rgba(102, 126, 234, 0.3); }
.financial-tile--success:hover { border-color: rgba(34, 197, 94, 0.3); }
.financial-tile--danger:hover { border-color: rgba(239, 68, 68, 0.3); }
.financial-tile--warning:hover { border-color: rgba(245, 158, 11, 0.3); }

.dash-table-card {
    background: #fff;
    border-radius: var(--dash-radius);
    border: 1px solid #eef1f8;
    box-shadow: var(--dash-shadow);
    overflow: hidden;
    height: 100%;
}

.dash-table-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    color: #fff;
}

.dash-table-card__header--sales { background: linear-gradient(135deg, #667eea, #764ba2); }
.dash-table-card__header--receipts { background: linear-gradient(135deg, #22c55e, #16a34a); }
.dash-table-card__header--purchases { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.dash-table-card__header--disburse { background: linear-gradient(135deg, #f59e0b, #d97706); }

.dash-table-card__title {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
}

.dash-table-card__title:hover {
    color: rgba(255, 255, 255, 0.9);
}

.dash-table-card__title i {
    margin-left: 8px;
}

.dash-table thead th {
    background: #f8fafc;
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    text-transform: none;
    border-bottom: 1px solid #eef1f8;
    padding: 12px 16px;
}

.dash-table tbody td {
    padding: 12px 16px;
    vertical-align: middle;
    font-size: 0.88rem;
    border-bottom: 1px solid #f1f5f9;
}

.dash-table tbody tr:last-child td {
    border-bottom: none;
}

.dashboard-row-link {
    cursor: pointer;
    transition: background 0.15s;
}

.dashboard-row-link:hover {
    background: #f8fafc !important;
}

.dash-id {
    display: inline-block;
    padding: 2px 8px;
    background: #f1f5f9;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
}

.dash-empty {
    text-align: center;
    color: #94a3b8;
    padding: 32px 16px !important;
}

.btn-dash-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
}

.btn-dash-icon:hover {
    background: #667eea;
    border-color: #667eea;
    color: #fff;
}

/* صفحة تفاصيل الإحصائية */
.dashboard-detail-hero {
    border: none;
    border-radius: var(--dash-radius);
    box-shadow: var(--dash-shadow);
    border-right: 4px solid #667eea;
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
}

.dashboard-detail-hero .dashboard-hero__badge {
    background: rgba(102, 126, 234, 0.12);
    color: #667eea;
    backdrop-filter: none;
}

.dashboard-detail-value {
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.dashboard-breakdown {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.dashboard-breakdown-item {
    background: linear-gradient(135deg, #f8fafc, #fff);
    border: 1px solid #e8ecf4;
    border-radius: 12px;
    padding: 14px 20px;
    min-width: 130px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.dashboard-breakdown-item .label {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 4px;
    font-weight: 600;
}

.dashboard-breakdown-item strong {
    font-size: 1.1rem;
    color: #1e293b;
}

.dashboard-breakdown-op {
    font-size: 1.3rem;
    font-weight: 800;
    color: #667eea;
    padding: 0 2px;
}

@media (max-width: 767.98px) {
    .dashboard-hero {
        padding: 20px;
    }

    .dashboard-hero__title {
        font-size: 1.4rem;
    }

    .kpi-card__value {
        font-size: 1.2rem;
    }

    .kpi-card__action {
        display: none;
    }
}

/* ===== نظام الشيكات ===== */
.table-checks tbody tr.check-row-incoming {
    background-color: rgba(25, 135, 84, 0.08);
}

.table-checks tbody tr.check-row-outgoing {
    background-color: rgba(13, 202, 240, 0.08);
}

.table-checks tbody tr.check-status-returned {
    background-color: rgba(220, 53, 69, 0.12) !important;
}

.table-checks tbody tr.check-status-collected {
    background-color: rgba(25, 135, 84, 0.16) !important;
}

.table-checks tbody tr.check-status-spent {
    background-color: rgba(13, 110, 253, 0.12) !important;
}

.table-checks tbody tr.check-status-cancelled {
    background-color: rgba(108, 117, 125, 0.12) !important;
    opacity: 0.85;
}

.table-checks tbody tr.check-due-overdue {
    box-shadow: inset 4px 0 0 #dc3545;
    background-color: rgba(220, 53, 69, 0.08) !important;
}

.table-checks tbody tr.check-due-soon {
    box-shadow: inset 4px 0 0 #ffc107;
    background-color: rgba(255, 193, 7, 0.1) !important;
}

.table-checks tbody tr:hover {
    filter: brightness(0.98);
}

.checks-legend .check-legend-item {
    margin-left: 6px;
    padding: 6px 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.checks-legend .check-row-incoming {
    background: rgba(25, 135, 84, 0.15);
    color: #146c43;
}

.checks-legend .check-row-outgoing {
    background: rgba(13, 202, 240, 0.15);
    color: #055160;
}

.checks-legend .check-due-soon {
    background: rgba(255, 193, 7, 0.2);
    color: #664d03;
}

.checks-legend .check-due-overdue {
    background: rgba(220, 53, 69, 0.15);
    color: #842029;
}

.card.check-row-incoming {
    border-right: 4px solid #198754;
}

.card.check-row-outgoing {
    border-right: 4px solid #0dcaf0;
}

.card.check-due-overdue {
    border-right-color: #dc3545 !important;
}

.card.check-due-soon {
    border-right-color: #ffc107 !important;
}

.card.check-status-returned {
    border-right-color: #dc3545 !important;
    background: rgba(220, 53, 69, 0.04);
}

