/* ==========================================================================
   PRIMA GATE CONTROL - ENTERPRISE INDUSTRIAL DESIGN SYSTEM
   Visual Pattern Aligned with Bascol (https://bascol.ferion.ir)
   Theme: Industrial Slate / Navy / Precision Logistics
   ========================================================================== */

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-navy: #0f172a;
    --secondary-slate: #1e293b;
    --sidebar-bg: #0f172a;
    --sidebar-hover: #1e293b;
    --sidebar-active: #2563eb;
    --sidebar-text: #94a3b8;
    --sidebar-text-active: #ffffff;

    --app-bg: #f8fafc;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;

    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-subtle: #94a3b8;

    --color-primary: #1e40af;
    --color-accent: #2563eb;
    --color-success: #059669;
    --color-warning: #d97706;
    --color-danger: #dc2626;
    --color-info: #0284c7;

    --font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --bs-body-font-family: var(--font-family);
}

/* Base resets & typography */
body {
    font-family: var(--font-family);
    background-color: var(--app-bg);
    color: var(--text-main);
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    font-size: 0.92rem;
    letter-spacing: -0.01em;
    min-height: 100vh;
}

/* ==========================================================================
   LAYOUT CORE (Industrial Sidebar + Sticky Header + Workspace)
   ========================================================================== */
#app-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

/* Sidebar */
#app-sidebar {
    width: 270px;
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.15);
}

#app-sidebar .sidebar-brand {
    padding: 1.15rem 1.25rem 1rem;
    background-color: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#app-sidebar .sidebar-nav {
    padding: 0.75rem 0.5rem;
    overflow-y: auto;
    flex-grow: 1;
}

.sidebar-nav .nav-section-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #64748b;
    padding: 0.75rem 0.85rem 0.35rem;
    letter-spacing: 0.05em;
}

.sidebar-nav .nav-link {
    color: var(--sidebar-text);
    padding: 0.65rem 0.85rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 0.88rem;
    transition: all 0.15s ease;
    margin-bottom: 2px;
    text-decoration: none;
}

.sidebar-nav .nav-link i {
    font-size: 1.15rem;
    width: 24px;
    margin-left: 0.65rem;
    color: #64748b;
    transition: color 0.15s ease;
}

.sidebar-nav .nav-link:hover {
    background-color: var(--sidebar-hover);
    color: #ffffff;
}

.sidebar-nav .nav-link:hover i {
    color: #38bdf8;
}

.sidebar-nav > .nav-link.active,
.sidebar-nav .nav-link.active {
    background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
    border-right: 4px solid #38bdf8 !important;
}

.sidebar-nav > .nav-link.active i,
.sidebar-nav .nav-link.active i {
    color: #ffffff !important;
}

/* Sidebar Backdrop on Mobile */
.sidebar-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(15, 23, 42, 0.65);
    z-index: 1035;
    backdrop-filter: blur(2px);
    display: none;
    transition: opacity 0.25s ease;
}

.sidebar-backdrop.show {
    display: block;
}

/* Main Workspace */
#app-main {
    flex-grow: 1;
    min-width: 0;
    margin-right: 270px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-right 0.25s ease;
    background-color: var(--app-bg);
}

#app-main.public-content-main,
#app-wrapper.public-layout #app-main {
    margin-right: 0 !important;
}

/* Header */
#app-header {
    height: 64px;
    flex-shrink: 0;
    gap: 1rem;
    background-color: #ffffff;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

/* ==========================================================================
   INDUSTRIAL CARDS & CONTAINERS
   ========================================================================== */
.industrial-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.industrial-card-header {
    padding: 0.85rem 1.25rem;
    background: #ffffff;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.industrial-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.industrial-card-body {
    padding: 1.25rem;
}

/* ==========================================================================
   METRIC & KPI HERO CARDS
   ========================================================================== */
.card-metric {
    border: 1px solid var(--card-border);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    background: #ffffff;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-metric:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.card-metric .metric-value {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.1;
    font-family: 'Vazirmatn', monospace;
}

.card-metric .metric-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
}

.net-hero-metric {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.net-hero-metric .title {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.net-hero-metric .value {
    font-size: 2.25rem;
    font-weight: 900;
    color: #10b981;
    font-family: 'Vazirmatn', monospace;
}

/* ==========================================================================
   DATA TABLES (Industrial Slate Theme)
   ========================================================================== */
.industrial-table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.industrial-table thead th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 0.85rem 1rem;
    border-bottom: 1.5px solid #cbd5e1;
    position: sticky;
    top: 0;
    z-index: 10;
    white-space: nowrap;
}

.industrial-table tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.88rem;
    color: var(--text-main);
}

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

.table-density-compact thead th {
    padding: 0.5rem 0.75rem;
    font-size: 0.78rem;
}

.table-density-compact tbody td {
    padding: 0.45rem 0.75rem;
    font-size: 0.82rem;
}

/* Status Badges */
.badge-status {
    font-size: 0.78rem;
    padding: 0.35em 0.75em;
    font-weight: 600;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.badge-draft { background-color: #94a3b8; color: #ffffff; }
.badge-pending { background-color: #f59e0b; color: #ffffff; }
.badge-approved { background-color: #10b981; color: #ffffff; }
.badge-rejected { background-color: #ef4444; color: #ffffff; }
.badge-passed { background-color: #0284c7; color: #ffffff; }
.badge-partial { background-color: #6366f1; color: #ffffff; }
.badge-delivered { background-color: #059669; color: #ffffff; }
.badge-discrepancy { background-color: #e11d48; color: #ffffff; }

/* Filter Pills */
.quick-filter-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.15s ease;
    margin-left: 0.4rem;
    margin-bottom: 0.4rem;
}

.quick-filter-pill:hover,
.quick-filter-pill.active {
    background-color: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

/* Form Controls */
.form-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.35rem;
}

.form-control,
.form-select {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.92rem;
    min-height: 42px;
    color: var(--text-main);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Large Touch Buttons for Industrial Ops */
.btn-touch {
    min-height: 48px;
    font-size: 1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.4rem;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-primary {
    background-color: #0f172a;
    border-color: #0f172a;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #1e293b;
    border-color: #1e293b;
}

/* Sticky Action Bar */
.sticky-bottom-action-bar {
    position: sticky;
    bottom: 0;
    background: #ffffff;
    border-top: 2px solid #cbd5e1;
    padding: 0.85rem 1.5rem;
    z-index: 1010;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Key Hint Badges */
.key-hint-badge {
    display: inline-block;
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.72rem;
    font-family: monospace;
    color: #475569;
    margin-right: 4px;
    font-weight: 700;
}

/* ==============================================================================
   IRANIAN NATIONAL VEHICLE LICENSE PLATE WIDGET (پلاک ملی ایران)
   ============================================================================== */
.iran-plate-container {
    display: inline-block;
    max-width: 100%;
}

.iran-plate-f2-badge {
    display: inline-block;
    background-color: #f8fafc;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.5;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    transition: all 0.15s ease-in-out;
}

.iran-plate-f2-badge:hover {
    background-color: #e2e8f0;
    color: #0f172a;
    border-color: #94a3b8;
}

.iran-plate-box {
    display: inline-flex;
    direction: ltr !important;
    align-items: stretch;
    height: 48px;
    background: #ffffff;
    border: 2px solid #0f172a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    user-select: none;
}

.iran-plate-box:focus-within {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
}

/* Flag & IRAN Blue Section */
.iran-plate-flag-zone {
    width: 44px;
    background-color: #0b2972;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3px 0;
    user-select: none;
    flex-shrink: 0;
}

.iran-plate-flag-icon {
    width: 22px;
    height: 12px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 2px;
}

.iran-plate-flag-icon .stripe-green {
    height: 33.3%;
    background-color: #239f40;
}

.iran-plate-flag-icon .stripe-white {
    height: 33.4%;
    background-color: #ffffff;
}

.iran-plate-flag-icon .stripe-red {
    height: 33.3%;
    background-color: #da0000;
}

.iran-plate-flag-text {
    font-size: 8px;
    font-weight: 800;
    line-height: 1.05;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    letter-spacing: 0.5px;
    text-align: center;
}

.iran-plate-flag-text span {
    display: block;
}

/* 2-digit number (part 1) */
.iran-plate-input-2 {
    width: 46px;
    border: none;
    outline: none;
    background: transparent;
    text-align: center;
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    font-family: 'Vazirmatn', -apple-system, sans-serif;
    padding: 0;
    user-select: text;
}

/* Letter select */
.iran-plate-letter-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    width: 52px;
}

.iran-plate-select-letter {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    text-align: center;
    text-align-last: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    font-family: 'Vazirmatn', -apple-system, sans-serif;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    padding-left: 14px;
    padding-right: 2px;
}

.iran-plate-select-letter:focus {
    color: #0284c7;
}

.iran-plate-letter-arrow {
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 3-digit number (part 2) */
.iran-plate-input-3 {
    width: 62px;
    border: none;
    outline: none;
    background: transparent;
    text-align: center;
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    font-family: 'Vazirmatn', -apple-system, sans-serif;
    padding: 0;
    user-select: text;
}

/* Left zone: Iran + City Code */
.iran-plate-city-zone {
    width: 48px;
    border-right: 2px solid #0f172a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #f8fafc;
    flex-shrink: 0;
    padding: 1px 0;
}

.iran-plate-city-label {
    font-size: 9px;
    font-weight: 700;
    color: #475569;
    line-height: 1;
    margin-bottom: 1px;
    user-select: none;
    font-family: 'Vazirmatn', sans-serif;
}

.iran-plate-input-city {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    font-family: 'Vazirmatn', -apple-system, sans-serif;
    padding: 0;
    line-height: 1;
    user-select: text;
}

/* Visual Badge for Iranian license plate */
.iran-plate-badge {
    display: inline-flex;
    direction: ltr !important;
    align-items: stretch;
    height: 30px;
    background: #ffffff;
    border: 1.5px solid #0f172a;
    border-radius: 5px;
    overflow: hidden;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    vertical-align: middle;
    user-select: none;
}

.iran-plate-badge-city {
    border-right: 1.5px solid #0f172a;
    padding: 0 4px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1;
}

.iran-plate-badge-city-lbl {
    font-size: 7px;
    font-weight: 700;
    color: #475569;
    display: block;
    line-height: 1;
}

.iran-plate-badge-city-num {
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1;
    font-family: 'Vazirmatn', -apple-system, sans-serif;
}

.iran-plate-badge-p2 {
    padding: 0 6px;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 800;
    font-family: 'Vazirmatn', -apple-system, sans-serif;
}

.iran-plate-badge-letter {
    padding: 0 3px;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    font-family: 'Vazirmatn', -apple-system, sans-serif;
}

.iran-plate-badge-p1 {
    padding: 0 6px;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 800;
    font-family: 'Vazirmatn', -apple-system, sans-serif;
}

.iran-plate-badge-flag {
    width: 22px;
    background-color: #0b2972;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1px 0;
    flex-shrink: 0;
}

.iran-plate-flag-icon.mini {
    width: 14px;
    height: 8px;
    margin-bottom: 1px;
}

.iran-plate-flag-text.mini {
    font-size: 5.5px;
    line-height: 1;
    font-weight: 800;
}

/* ==============================================================================
   RESPONSIVE DESIGN & MOBILE OPTIMIZATIONS
   ============================================================================== */

/* Table Smooth Touch Scroll & Custom Scrollbar */
.table-responsive {
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
    position: relative;
    border: 1px solid var(--card-border);
    border-radius: 8px;
}

.table-responsive::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}

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

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

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Ensure flex children like select/input in input-group don't overflow */
.input-group > .form-select,
.input-group > .form-control {
    min-width: 0;
}

@media (max-width: 992px) {
    #app-sidebar {
        right: -270px;
    }
    #app-sidebar.show {
        right: 0;
    }
    #app-main {
        margin-right: 0 !important;
    }
}

@media (max-width: 768px) {
    .btn-touch {
        width: 100%;
        margin-bottom: 6px;
    }

    /* Prevent mobile Safari automatic zooming on input focus */
    .form-control,
    .form-select {
        font-size: 16px;
        min-height: 44px;
    }

    .btn {
        min-height: 40px;
    }

    .industrial-table thead th {
        padding: 0.65rem 0.75rem;
        font-size: 0.75rem;
    }

    .industrial-table tbody td {
        padding: 0.6rem 0.75rem;
        font-size: 0.82rem;
    }

    .mobile-w-100 {
        width: 100% !important;
    }
}

@media (max-width: 576px) {
    #app-header {
        padding: 0 0.85rem;
        height: 56px;
    }

    #app-content {
        padding: 0.75rem !important;
    }

    .industrial-card-body,
    .card-body {
        padding: 0.85rem !important;
    }

    .industrial-card-header,
    .card-header {
        padding: 0.75rem 0.85rem !important;
    }

    .card-metric .metric-value {
        font-size: 1.65rem;
    }

    .net-hero-metric .value {
        font-size: 1.75rem;
    }

    .kpi-card h3 {
        font-size: 1.45rem;
    }

    .mobile-stack {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .mobile-stack > * {
        width: 100% !important;
    }

    .sticky-bottom-action-bar {
        padding: 0.75rem 0.85rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .sticky-bottom-action-bar .btn {
        width: 100%;
    }
}

@media (max-width: 380px) {
    .iran-plate-box {
        transform: scale(0.88);
        transform-origin: right center;
    }
}

@media (max-width: 340px) {
    .iran-plate-box {
        transform: scale(0.78);
        transform-origin: right center;
    }
}

/* ==============================================================================
   COMPREHENSIVE PRINT ENGINE & STYLESHEET
   ============================================================================== */
@media print {
    /* 1. Global Page Setup */
    @page {
        size: A4 landscape;
        margin: 6mm 8mm;
    }

    body {
        background-color: #ffffff !important;
        font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
        font-size: 8pt !important;
        color: #000000 !important;
        margin: 0 !important;
        padding: 0 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* 2. Hide all non-printable chrome */
    #app-sidebar,
    #app-header,
    .no-print,
    .btn,
    footer,
    .alert,
    .pagination,
    .modal,
    nav[aria-label="breadcrumb"],
    .filter-card,
    form:not(.printable-form),
    .bi {
        display: none !important;
    }

    /* 3. Main container full width expansion */
    #app-main {
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .container, .container-fluid {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* 4. Fix table-responsive overflow clipping bug */
    .table-responsive {
        overflow: visible !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* 5. Fluid, auto-scaled table for exact page fit */
    table, .table, .industrial-table {
        width: 100% !important;
        max-width: 100% !important;
        table-layout: auto !important;
        border-collapse: collapse !important;
        font-size: 7.5pt !important;
        margin-bottom: 0 !important;
    }

    /* Overwrite all fixed pixel min-widths and widths on table headers */
    table th, .table th,
    table td, .table td {
        min-width: unset !important;
        width: auto !important;
        padding: 3px 5px !important;
        border: 1px solid #94a3b8 !important;
        color: #0f172a !important;
        word-break: break-word !important;
        font-size: 7.5pt !important;
        line-height: 1.25 !important;
        vertical-align: middle !important;
    }

    /* Repeat table headers cleanly across multiple printed pages */
    thead {
        display: table-header-group !important;
    }

    thead th {
        background-color: #f1f5f9 !important;
        color: #0f172a !important;
        font-weight: 800 !important;
        border-bottom: 2px solid #334155 !important;
    }

    /* Prevent table rows from cutting in half across page breaks */
    tr {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    /* 6. Strip all boxes, pills, backgrounds and borders from data values in print */
    .badge,
    .iran-plate-badge,
    .plate-box {
        border: none !important;
        background: transparent !important;
        background-color: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        font-size: inherit !important;
        color: #0f172a !important;
        border-radius: 0 !important;
        display: inline !important;
        white-space: normal !important;
        font-weight: 600 !important;
    }

    .iran-plate-badge-flag,
    .iran-plate-flag-icon,
    .iran-plate-badge-city-lbl {
        display: none !important;
    }

    /* Cards in print */
    .card {
        border: none !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
    }

    .card-header,
    .card-footer {
        display: none !important;
    }

    .card-body {
        padding: 0 !important;
    }

    /* Links in print */
    a {
        text-decoration: none !important;
        color: #000000 !important;
    }

    /* Print only element display */
    .print-only {
        display: block !important;
    }

    /* 7. Hide notes/descriptions column in print reports to open up horizontal space */
    .col-print-notes,
    th.col-print-notes,
    td.col-print-notes,
    .col-cardex-notes,
    th.col-cardex-notes,
    td.col-cardex-notes,
    th.col-notes,
    td.col-notes {
        display: none !important;
    }
}
