/* ==========================================================
   Bhadkad Agriculture ERP - JBZALA Classic Enterprise Theme
   Microsoft Dynamics / SAP Inspired Royal Blue & Mandi Gold Palette
   ========================================================== */

:root {
    --primary: #005A9E;
    /* Royal Dynamics Blue */
    --primary-hover: #004578;
    --primary-light: #f3f9fd;
    --accent: #FFC107;
    /* Mandi Gold / Amber Yellow */
    --accent-hover: #e0a800;
    --sidebar-bg: #ffffff;
    --sidebar-hover: #f3f9fd;
    --sidebar-text: #005A9E;
    --sidebar-active-border: #FFC107;
    --body-bg: #f3f4f7;
    --card-bg: #ffffff;
    --text-main: #323130;
    --text-muted: #605e5c;
    --border: #e1dfdd;
    --border-light: #e5e7eb;
    --success: #107c10;
    --danger: #d13438;
    --warning: #ffaa44;
    --info: #005A9E;
    --header-height: 70px;
    --sidebar-width: 260px;
    --radius: 6px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--body-bg);
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.5;
    overflow-x: hidden;
}

/* ==========================================
   SVG ICONS (JBZALA Signature)
========================================== */
svg {
    max-width: 100%;
}

svg:not([width]) {
    width: 20px;
    height: 20px;
    max-width: 24px;
    max-height: 24px;
}

.app-svg-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25em;
    height: 1.25em;
    max-width: 24px;
    max-height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
    margin-right: 6px;
    flex-shrink: 0;
}

.app-svg-icon.no-margin {
    margin-right: 0 !important;
}

.app-svg-icon.icon-lg {
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
    margin-right: 8px;
}

.btn .app-svg-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

.section-title .app-svg-icon {
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    margin-right: 8px;
    color: var(--primary);
}

.page-title .app-svg-icon {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    margin-right: 8px;
    color: var(--primary);
}

/* ==========================================
   LEFT SIDEBAR NAVIGATION (JBZALA Style)
========================================== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: #ffffff;
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.02);
}

.nav-brand {
    font-weight: 800;
    font-size: 24px;
    color: #005A9E;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--header-height);
    border-bottom: 3px solid #FFC107;
    flex-shrink: 0;
    letter-spacing: 0.5px;
    gap: 8px;
}

.nav-brand span.badge-agro {
    background: #FFC107;
    color: #005A9E;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 800;
}

.sidebar-nav {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow-y: auto;
    flex: 1;
}

.sidebar-module-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8a8886;
    padding: 12px 14px 4px;
    font-weight: 800;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #005A9E;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover,
.nav-item.active {
    background: #f3f9fd;
    border-left-color: #FFC107;
    color: #005A9E;
}

.menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.menu-icon svg {
    width: 20px;
    height: 20px;
}

/* ==========================================
   TOP HEADER (Fixed, JBZALA Style)
========================================== */
.top-header {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--header-height);
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 999;
    transition: left 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.sidebar-toggle {
    background: none;
    border: none;
    color: #005A9E;
    font-size: 24px;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.sidebar-toggle:hover {
    background: #f3f9fd;
}

/* Omni-Search Bar in Top Header */
.global-search-container {
    flex: 1;
    min-width: 250px;
    max-width: 420px;
    position: relative;
    margin-left: 8px;
    overflow: visible !important;
}

.global-search-input {
    width: 100%;
    height: 38px;
    padding: 6px 72px 6px 36px; /* 72px right padding guarantees placeholder & text never collide with Ctrl+K badge */
    border: 1.5px solid #c7e0f4;
    border-radius: 8px;
    font-size: 13.5px;
    outline: none;
    background: #f3f9fd;
    color: #0f172a;
    text-overflow: ellipsis;
    transition: all 0.2s ease;
}

.global-search-input:focus {
    background: #ffffff;
    border-color: #005A9E;
    box-shadow: 0 0 0 3px rgba(0, 90, 158, 0.12);
}

.search-icon-overlay {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: #005A9E;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.search-icon-overlay svg {
    width: 17px;
    height: 17px;
}

.hotkey-badge {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 5px;
    font-weight: 700;
    pointer-events: none;
    line-height: 1.2;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.global-search-results {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: max(100%, 380px);
    background: #ffffff;
    border: 1.5px solid #005A9E;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    max-height: 420px;
    overflow-y: auto;
    z-index: 999999;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: #0f172a;
    transition: all 0.15s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover,
.search-result-item.active {
    background: #f0f7fc;
    border-left: 3px solid #005A9E;
}

.search-result-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.search-result-title {
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-sub {
    font-size: 11.5px;
    color: #64748b;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-badge {
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.badge-farmer { background: #e0f2fe; color: #0284c7; }
.badge-buyer { background: #fef3c7; color: #b45309; }
.badge-pavti { background: #f0fdf4; color: #16a34a; }
.badge-bill { background: #f5f3ff; color: #7c3aed; }
.badge-voucher { background: #fdf2f8; color: #db2777; }

.top-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.firm-select,
.season-select {
    padding: 7px 30px 7px 12px;
    border: 1px solid #c7e0f4;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #005A9E;
    background-color: #f3f9fd;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2.2' stroke='%23005A9E'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 13px 13px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.firm-select:hover,
.season-select:hover {
    background-color: #e6f2fb;
    border-color: #005A9E;
}

.firm-select:focus,
.season-select:focus {
    background-color: #fff;
    border-color: #005A9E;
    box-shadow: 0 0 0 3px rgba(0, 90, 158, 0.15);
}

/* ==========================================
   MAIN CONTENT AREA
========================================== */
.main-content {
    margin-left: var(--sidebar-width);
    padding-top: var(--header-height);
    height: 100vh;
    overflow-y: auto;
    transition: margin-left 0.3s ease;
    background: var(--body-bg);
}

.content-inner {
    padding: 24px;
}

.page-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

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

/* ==========================================
   CARDS & CONTAINERS
========================================== */
.card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    margin-bottom: 24px;
    overflow: visible;
}

.card.filter-box,
.filter-box,
.filter-box .card-body,
.card-overflow-visible,
.card:has([id*="suggestions"]),
.card:has([class*="suggestions"]) {
    overflow: visible !important;
}

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

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-body {
    padding: 20px;
}

/* ==========================================
   TABLES (Clean ERP Styling)
========================================== */
.table-container {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.table-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    background: #faf9f8;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

th,
td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    font-weight: 700;
    color: var(--text-muted);
    background: #faf9f8;
    position: sticky;
    top: 0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

tr:hover td {
    background-color: #f8fafc;
}

/* ==========================================
   BUTTONS & FORM CONTROLS
========================================== */
.btn {
    padding: 10px 18px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 13.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: #e1dfdd;
    color: var(--text-main);
}

.btn-secondary:hover {
    background-color: #d2d0ce;
}

.btn-success {
    background-color: #25D366;
    color: #fff;
}

.btn-success:hover {
    background-color: #1ebc59;
}

.btn-warning {
    background-color: #FFC107;
    color: #005A9E;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-danger {
    background-color: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background-color: #a82024;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    background-color: #fff;
    transition: border-color 0.2s;
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 90, 158, 0.1);
}

.form-control[readonly],
.form-control[disabled] {
    background-color: #f3f2f1;
    color: var(--text-muted);
    cursor: not-allowed;
    font-weight: 600;
}

/* ==========================================
   MODERN FORM SELECT / DROPDOWN CHEVRON ICON
========================================== */
select,
.form-select,
.form-control:is(select) {
    display: block;
    width: 100%;
    min-height: 42px;
    height: 42px;
    padding: 9px 36px 9px 14px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-main, #1e293b);
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2.2' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 14px 14px !important;
    border: 1.5px solid var(--border, #cbd5e1);
    border-radius: var(--radius, 6px);
    transition: all 0.2s ease-in-out;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

select:hover,
.form-select:hover,
.form-control:is(select):hover {
    border-color: #94a3b8;
    background-color: #f8fafc;
}

select[size]:not([size="1"]),
.form-select[size]:not([size="1"]) {
    height: auto !important;
    min-height: 120px;
    padding: 6px 10px !important;
    background-image: none !important;
    overflow-y: auto;
}

select:focus,
.form-select:focus,
.form-control:is(select):focus {
    border-color: var(--primary, #005A9E);
    background-color: #ffffff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 90, 158, 0.15);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2.4' stroke='%23005A9E'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E") !important;
}

select:disabled,
.form-select:disabled,
.form-control:is(select):disabled {
    background-color: #f1f5f9;
    border-color: #e2e8f0;
    color: var(--text-muted, #94a3b8);
    cursor: not-allowed;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E") !important;
}

/* Small select variant for tables & filter toolbars */
.form-select-sm,
select.form-select-sm,
select.form-control-sm {
    min-height: 34px;
    height: 34px;
    padding: 4px 28px 4px 10px;
    font-size: 13px;
    background-position: right 8px center !important;
    background-size: 12px 12px !important;
}

/* Large select variant for main entry fields (like Crop selector) */
.form-select-lg,
#crop_select_box {
    min-height: 44px;
    height: 44px;
    font-size: 15px;
    font-weight: 700;
    padding: 10px 38px 10px 14px;
    border-color: #cbd5e1;
    background-position: right 14px center !important;
    background-size: 15px 15px !important;
}

/* Option & Optgroup styling inside custom selects */
select optgroup,
.form-select optgroup {
    font-weight: 800;
    color: #475569;
    background-color: #f1f5f9;
    padding: 6px 10px;
    font-size: 12.5px;
    letter-spacing: 0.3px;
}

select option,
.form-select option {
    font-weight: 600;
    color: #1e293b;
    background-color: #ffffff;
    padding: 10px 14px;
    font-size: 14px;
}


.form-group {
    margin-bottom: 16px;
}

.form-label {
    font-weight: 700;
    font-size: 13px;
    color: var(--text-main);
    display: block;
    margin-bottom: 6px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

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

/* Badges */
.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    display: inline-block;
}

.badge-in {
    background: #dff6dd;
    color: var(--success);
}

.badge-out {
    background: #fde7e9;
    color: var(--danger);
}

.badge-info {
    background: #f3f9fd;
    color: #005A9E;
    border: 1px solid #c7e0f4;
}

.badge-warning {
    background: #fff8e1;
    color: #b78103;
    border: 1px solid #ffe082;
}

/* ==========================================
   JBZALA CROP SELECTION DASHBOARD
========================================== */
.receipt-dash-layout {
    display: flex;
    gap: 24px;
    margin-bottom: 30px;
}

.paddy-section {
    flex: 4;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.other-section {
    flex: 1.5;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.section-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
    border-bottom: 2px solid #FFC107;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.crop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.crop-list-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.crop-card {
    background: #ffffff;
    border: 1.5px solid var(--border);
    border-left: 5px solid var(--border);
    border-radius: 10px;
    padding: 20px 16px 16px;
    text-align: left;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.crop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.crop-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.crop-card .crop-title {
    font-size: 18px !important;
    font-weight: 800 !important;
    margin: 0 !important;
    color: inherit;
}

.crop-card .abbr {
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

/* Paddy Colors */
.crop-G {
    background: linear-gradient(135deg, #f8fdf9 0%, #f0fdf4 100%);
    border-color: #dcfce7;
    border-left-color: #22c55e !important;
    color: #15803d;
}

.crop-G .abbr {
    background: rgba(34, 197, 94, 0.15);
    color: #166534;
}

.crop-PL {
    background: linear-gradient(135deg, #fefdf0 0%, #fffbeb 100%);
    border-color: #fde047;
    border-left-color: #eab308 !important;
    color: #854d0e;
}

.crop-PL .abbr {
    background: rgba(234, 179, 8, 0.15);
    color: #854d0e;
}

.crop-PT {
    background: linear-gradient(135deg, #fffaf5 0%, #fff7ed 100%);
    border-color: #fed7aa;
    border-left-color: #f97316 !important;
    color: #a63e1b;
}

.crop-PT .abbr {
    background: rgba(249, 115, 22, 0.15);
    color: #a63e1b;
}

.crop-M {
    background: linear-gradient(135deg, #f5fdfd 0%, #ecfeff 100%);
    border-color: #a5f3fc;
    border-left-color: #06b6d4 !important;
    color: #0369a1;
}

.crop-M .abbr {
    background: rgba(6, 182, 212, 0.15);
    color: #0369a1;
}

.crop-GJ {
    background: linear-gradient(135deg, #fafaff 0%, #e0e7ff 100%);
    border-color: #a5b4fc;
    border-left-color: #6366f1 !important;
    color: #4338ca;
}

.crop-GJ .abbr {
    background: rgba(99, 102, 241, 0.15);
    color: #4338ca;
}

.crop-OT {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-color: #cbd5e1;
    border-left-color: #64748b !important;
    color: #475569;
}

.crop-OT .abbr {
    background: rgba(100, 116, 139, 0.15);
    color: #475569;
}

/* Other Crops Colors */
.crop-B {
    background: linear-gradient(135deg, #fafaf9 0%, #f5f5f4 100%);
    border-color: #d6d3d1;
    border-left-color: #78716c !important;
    color: #57534e;
}

.crop-B .abbr {
    background: rgba(120, 113, 108, 0.15);
    color: #57534e;
}

.crop-W {
    background: linear-gradient(135deg, #fffbeb 0%, #fef9c3 100%);
    border-color: #fef08a;
    border-left-color: #d97706 !important;
    color: #b45309;
}

.crop-W .abbr {
    background: rgba(217, 119, 6, 0.15);
    color: #b45309;
}

.crop-MF {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-color: #e9d5ff;
    border-left-color: #a855f7 !important;
    color: #7e22ce;
}

.crop-MF .abbr {
    background: rgba(168, 85, 247, 0.15);
    color: #7e22ce;
}

.crop-R {
    background: linear-gradient(135deg, #fafdf5 0%, #f9fbe7 100%);
    border-color: #e6f4a3;
    border-left-color: #84cc16 !important;
    color: #4f5b02;
}

.crop-R .abbr {
    background: rgba(132, 204, 22, 0.15);
    color: #4f5b02;
}

.crop-T {
    background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
    border-color: #fecdd3;
    border-left-color: #f43f5e !important;
    color: #be123c;
}

.crop-T .abbr {
    background: rgba(244, 63, 94, 0.15);
    color: #be123c;
}

.crop-OO {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    border-color: #99f6e4;
    border-left-color: #14b8a6 !important;
    color: #0f766e;
}

.crop-OO .abbr {
    background: rgba(20, 184, 166, 0.15);
    color: #0f766e;
}

/* ==========================================
   AUTHENTIC BHADKAD PHYSICAL YELLOW SLIP (.bhadkad-yellow-slip)
   Exact replica of canary yellow Mandi Kharid Pavti
========================================== */
.bhadkad-yellow-slip {
    background-color: #fffb54;
    border: 1px solid #eae53d;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18);
    max-width: 520px;
    margin: 0 auto;
    padding: 24px 22px 28px 22px;
    position: relative;
    color: #000;
    font-family: 'Noto Sans Gujarati', 'Outfit', Arial, sans-serif;
    border-radius: 0;
}

/* Sawtooth serrated top edge */
.bhadkad-yellow-slip::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(135deg, transparent 4px, #fffb54 4px),
        linear-gradient(-135deg, transparent 4px, #fffb54 4px);
    background-size: 8px 8px;
}

/* Sawtooth serrated bottom edge */
.bhadkad-yellow-slip::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(45deg, transparent 4px, #fffb54 4px),
        linear-gradient(-45deg, transparent 4px, #fffb54 4px);
    background-size: 8px 8px;
}

.slip-header-brand-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.slip-brand-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.slip-deity-logo {
    width: 48px;
    height: 60px;
    object-fit: contain;
}

.slip-center-badge-wrap {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slip-badge-book {
    background-color: #000;
    color: #fff;
    font-weight: 900;
    font-size: 15px;
    padding: 4px 14px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    display: inline-block;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.slip-contact-info {
    flex: 1;
    text-align: right;
    font-size: 13.5px;
    font-weight: 800;
    color: #000;
    line-height: 1.35;
}

.slip-contact-name {
    font-size: 14.5px;
    font-weight: 900;
}

.slip-contact-phone {
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.slip-meta-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 8px;
}

.slip-red-number {
    color: #d32f2f;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 1px;
    font-family: 'Outfit', sans-serif;
    border: none;
    background: transparent;
    width: 90px;
    outline: none;
}

.slip-farmer-strip {
    display: flex;
    align-items: baseline;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 12px;
    white-space: nowrap;
}

.slip-dotted-line {
    flex: 1;
    border-bottom: 1.5px dotted #000;
    margin-left: 6px;
    padding-bottom: 2px;
}

.slip-grid-box {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid #000;
    margin-bottom: 12px;
    background: transparent;
}

.slip-grid-box th {
    border: 1.5px solid #000;
    padding: 5px 6px;
    font-size: 14.5px;
    font-weight: 900;
    text-align: center;
    background: rgba(0, 0, 0, 0.02);
}

.slip-grid-box td {
    border: 1.5px solid #000;
    padding: 4px 8px;
    font-weight: 700;
    color: #000;
}

.slip-col-crop {
    width: 32%;
    text-align: center;
    vertical-align: middle;
    font-size: 22px;
    font-weight: 900;
    border-right: 2px solid #000 !important;
}

.slip-col-lbl {
    width: 38%;
    text-align: right;
    font-size: 15px;
    font-weight: 800;
    padding-right: 14px;
    white-space: nowrap;
}

.slip-col-val {
    width: 30%;
    text-align: center !important;
    padding: 2px 6px;
}

.slip-row-input {
    width: 100%;
    border: none !important;
    background: transparent !important;
    text-align: center !important;
    font-size: 19px;
    font-weight: 900;
    color: #000;
    font-family: 'Outfit', 'Noto Sans Gujarati', sans-serif;
    outline: none;
    padding: 2px 4px;
}

.slip-row-input:focus {
    background: transparent !important;
    outline: none !important;
}

.slip-row-readonly {
    background: transparent !important;
    color: #000 !important;
    cursor: default;
    outline: none !important;
}

.slip-row-total td {
    border-top: 2px solid #000 !important;
    padding-top: 6px;
    padding-bottom: 6px;
}

.slip-row-total .slip-col-lbl {
    font-size: 15.5px;
    font-weight: 900;
}

.slip-row-total .slip-row-input {
    font-size: 19px;
    font-weight: 900;
}

.slip-bottom-notes {
    font-size: 13.5px;
    font-weight: 800;
    line-height: 1.5;
    margin-top: 8px;
}

.slip-bill-notice {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.slip-sig-text {
    font-size: 15px;
    font-weight: 900;
    text-align: right;
}

/* ==========================================
   JBZALA AUTHENTIC YELLOW BILL SLIP (.bill-slip)
========================================== */
.bill-slip {
    background: #fffde7;
    border: 2px solid #ccc;
    border-radius: 8px;
    padding: 30px;
    max-width: 920px;
    margin: 0 auto;
    color: #000;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06);
}

.slip-header-gods {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #d32f2f;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.slip-select-line,
.slip-input-line {
    border: none !important;
    border-bottom: 1px dashed #000 !important;
    background: transparent !important;
    padding: 4px 6px !important;
    font-size: 15px !important;
    font-weight: bold !important;
    color: #000 !important;
    outline: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    height: auto !important;
}

.slip-select-line:focus,
.slip-input-line:focus {
    background: rgba(0, 0, 0, 0.03) !important;
    border-bottom: 1.5px solid #005A9E !important;
}

.slip-input-line::-webkit-outer-spin-button,
.slip-input-line::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.slip-input-line {
    -moz-appearance: textfield;
}

/* ==========================================
   MODALS
========================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #ffffff;
    width: 92%;
    max-width: 480px;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-top: 4px solid var(--primary);
    position: relative;
}

.modal-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
}

.btn-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #999;
}

.btn-close:hover {
    color: #333;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .top-header {
        left: 0;
    }

    .main-content {
        margin-left: 0;
    }

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

    .receipt-dash-layout {
        flex-direction: column;
    }

    .crop-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================
   TALLY-STYLE SIDE-BY-SIDE REALTIME SLIP WORKSPACE
========================================== */
.tally-workspace {
    display: grid;
    grid-template-columns: minmax(460px, 1.25fr) minmax(380px, 460px);
    gap: 24px;
    align-items: start;
    margin-bottom: 30px;
}

@media (max-width: 1100px) {
    .tally-workspace {
        grid-template-columns: 1fr;
    }
}

.slip-sticky-preview {
    position: sticky;
    top: 75px;
    z-index: 5;
}

.slip-cell-text {
    font-size: 19px;
    font-weight: 900;
    color: #000;
    font-family: 'Outfit', 'Noto Sans Gujarati', sans-serif;
    text-align: center;
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crop-pills-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 18px;
    scrollbar-width: thin;
}

.crop-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 20px;
    background: #f1f5f9;
    border: 1.5px solid #cbd5e1;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease-in-out;
}

.crop-pill-btn:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}

.crop-pill-btn.active {
    background: #005A9E;
    border-color: #005A9E;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 90, 158, 0.35);
}

.crop-pill-btn .pill-badge {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
}

.crop-pill-btn.active .pill-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* Prevent accidental spin button scrolling and hide arrows on number inputs */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

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

/* Pagination Hover & Navigation */
.pagination-link:hover {
    background: #005A9E !important;
    color: #ffffff !important;
    border-color: #005A9E !important;
}

/* Crop Category Tabs (Only Paddy vs Other Crops) */
.crop-selection-wrapper {
    background: #ffffff;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.crop-cat-tabs {
    display: inline-flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    gap: 4px;
}

.crop-cat-btn {
    border: none;
    background: transparent;
    color: #475569;
    font-weight: 700;
    font-size: 13.5px;
    padding: 7px 18px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s ease-in-out;
}

.crop-cat-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.crop-cat-btn.active {
    background: #005A9E;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 90, 158, 0.3);
}

.crop-cat-btn .crop-cat-count {
    background: rgba(0, 0, 0, 0.08);
    color: inherit;
    font-size: 11px;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 10px;
}

.crop-cat-btn.active .crop-cat-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Searchable Custom Crop Dropdown in Form */
.crop-searchable-select {
    position: relative;
    width: 100%;
}

.crop-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 12px;
    height: 38px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease-in-out;
}

.crop-select-trigger:hover,
.crop-select-trigger:focus,
.crop-searchable-select.open .crop-select-trigger {
    border-color: #005A9E;
    box-shadow: 0 0 0 3px rgba(0, 90, 158, 0.15);
    outline: none;
}

.crop-select-arrow {
    font-size: 10px;
    color: #64748b;
    margin-left: 6px;
    transition: transform 0.2s ease;
}

.crop-searchable-select.open .crop-select-arrow {
    transform: rotate(180deg);
}

.crop-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.14);
    z-index: 1050;
    overflow: hidden;
}

.crop-options-list {
    max-height: 220px;
    overflow-y: auto;
    padding: 4px;
}

.crop-option-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.1s ease;
}

.crop-option-item:hover,
.crop-option-item.highlighted {
    background: #f0f7ff;
}

.crop-option-item.selected {
    background: #e0f2fe;
    font-weight: 700;
}

.crop-badge-code {
    background: #e2e8f0;
    color: #0f172a;
    font-family: monospace;
    font-weight: 800;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    display: inline-block;
}

.crop-option-item.selected .crop-badge-code {
    background: #005A9E;
    color: #ffffff;
    border-color: #005A9E;
}

/* =======================================================
   TALLY ERP STYLE POPUP FOR VILLAGES & FARMERS
   ======================================================= */
.tally-lookup-popup {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    min-width: 340px;
    background: #ffffff;
    border: 2px solid #005A9E;
    border-radius: 8px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.22);
    z-index: 1050;
    overflow: hidden;
    animation: tallyFadeIn 0.15s ease-out;
}

@keyframes tallyFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tally-lookup-header {
    background: #005A9E;
    color: #ffffff;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.tally-lookup-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 10px;
}

.tally-lookup-hint {
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-bottom: 1px solid #e2e8f0;
}

.tally-lookup-body {
    max-height: 250px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.tally-lookup-row {
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13.5px;
    transition: background 0.1s ease;
}

.tally-lookup-row:hover,
.tally-lookup-row.highlighted {
    background: #005A9E !important;
    color: #ffffff !important;
}

.tally-lookup-row.highlighted .tally-subtext {
    color: #e0f2fe !important;
}

.tally-lookup-row.highlighted .tally-badge {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

.tally-subtext {
    font-size: 11.5px;
    color: #64748b;
}

.tally-badge {
    background: #f1f5f9;
    color: #0f172a;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    font-family: monospace;
}

/* Action Buttons Keyboard Focus Styling */
#save_btn:focus,
#save_and_print_btn:focus,
#save_and_whatsapp_btn:focus {
    outline: 3px solid #f59e0b !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.45) !important;
    transform: scale(1.02);
    transition: all 0.12s ease-in-out;
}

/* ==========================================
   ENTERPRISE TABLE ROW ACTIONS
   ========================================== */
.row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: nowrap;
    vertical-align: middle;
}

.row-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-inline-size: 30px;
    min-block-size: 30px;
    padding: 0 7px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    vertical-align: middle;
    box-sizing: border-box;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.row-action-btn.is-icon-only {
    padding: 0;
    inline-size: 30px;
}

.row-action-btn .app-svg-icon {
    width: 15px;
    height: 15px;
    max-width: 15px;
    max-height: 15px;
    margin-right: 0 !important;
    flex-shrink: 0;
}

/* Primary Pill (e.g. Slip View) */
.row-action-btn--primary {
    background-color: #eff6ff;
    border-color: #bfdbfe;
    color: #005A9E;
    padding: 0 10px;
    font-weight: 700;
}

/* Semantic Variants (Restrained Enterprise Tints) */
.row-action-btn--print {
    color: #005A9E;
    border-color: #cbd5e1;
}

.row-action-btn--edit {
    color: #b45309;
    border-color: #fde68a;
    background-color: #fffbeb;
}

.row-action-btn--danger {
    color: #dc2626;
    border-color: #fecaca;
    background-color: #fff5f5;
}

.row-action-btn--whatsapp {
    color: #15803d;
    border-color: #bbf7d0;
    background-color: #f0fdf4;
}

.row-action-btn--accent {
    color: #92400e;
    border-color: #fcd34d;
    background-color: #fef3c7;
    font-weight: 700;
}

.row-action-btn--neutral {
    color: #475569;
    border-color: #cbd5e1;
    background-color: #f8fafc;
}

.row-action-badge-cancelled {
    display: inline-flex;
    align-items: center;
    min-block-size: 30px;
    padding: 0 8px;
    border-radius: 6px;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

/* Hover, Press & Focus States */
@media (prefers-reduced-motion: no-preference) {
    .row-action-btn {
        transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out, box-shadow 150ms ease-out, transform 120ms ease-out;
    }
}

@media (hover: hover) {
    .row-action-btn:hover {
        background-color: #f1f5f9;
        border-color: #94a3b8;
        color: #0f172a;
        box-shadow: 0 2px 4px rgba(15, 23, 42, 0.08);
    }
    .row-action-btn--primary:hover {
        background-color: #005A9E;
        border-color: #005A9E;
        color: #ffffff;
    }
    .row-action-btn--print:hover {
        background-color: #eff6ff;
        border-color: #93c5fd;
        color: #004578;
    }
    .row-action-btn--edit:hover {
        background-color: #fef3c7;
        border-color: #f59e0b;
        color: #92400e;
    }
    .row-action-btn--danger:hover {
        background-color: #dc2626;
        border-color: #dc2626;
        color: #ffffff;
    }
    .row-action-btn--whatsapp:hover {
        background-color: #16a34a;
        border-color: #16a34a;
        color: #ffffff;
    }
    .row-action-btn--accent:hover {
        background-color: #f59e0b;
        border-color: #d97706;
        color: #ffffff;
    }
}

.row-action-btn:active {
    transform: scale(0.96);
}

.row-action-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

@media (pointer: coarse) {
    .row-action-btn {
        min-inline-size: 36px;
        min-block-size: 36px;
    }
    .row-action-btn.is-icon-only {
        inline-size: 36px;
    }
}

@media (forced-colors: active) {
    .row-action-btn {
        border: 1px solid ButtonText;
        color: ButtonText;
        background-color: ButtonFace;
    }
    .row-action-btn:focus-visible {
        outline: 2px solid Highlight;
    }
}

/* ==========================================
   CUSTOM A4 STATEMENT & KHATAVAHI PRINT FORMAT
   ========================================== */
.print-statement-header {
    display: none;
}

@media print {
    @page {
        size: A4 portrait;
        margin: 8mm;
    }

    html, body {
        background: #ffffff !important;
        color: #000000 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        font-size: 11px !important;
        line-height: 1.35 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Hide all interactive UI chrome, navigation, filters, and action buttons */
    .sidebar,
    .top-header,
    .mobile-menu-toggle,
    .no-print,
    .btn,
    button,
    .pagination,
    .book-pagination-bar,
    .row-actions,
    .active-firm-top-banner,
    .kakko-bar-wrapper,
    .section-nav-bar,
    #translit-indicator-badge {
        display: none !important;
    }

    .main-wrapper,
    .main-content,
    .content-inner {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-shadow: none !important;
        background: #ffffff !important;
    }

    /* Formal Statement Letterhead (auto-hidden on pages with custom Chopda header) */
    .print-statement-header {
        display: flex !important;
        justify-content: space-between;
        align-items: flex-end;
        border-bottom: 2px double #000000;
        padding-bottom: 6px;
        margin-bottom: 10px;
    }

    .content-inner:has(.chopda-book-outer) > .print-statement-header {
        display: none !important;
    }

    .psh-firm {
        font-size: 17px;
        font-weight: 900;
        color: #000000;
    }

    .psh-sub {
        font-size: 10px;
        font-weight: 600;
        color: #334155;
    }

    .psh-right {
        text-align: right;
    }

    .psh-title {
        font-size: 13px;
        font-weight: 800;
        color: #000000;
    }

    .psh-meta {
        font-size: 10px;
        color: #334155;
    }

    /* Flatten screen cards into clean statement blocks */
    .card {
        box-shadow: none !important;
        border: 1px solid #94a3b8 !important;
        border-radius: 0 !important;
        margin-bottom: 8px !important;
        background: #ffffff !important;
        break-inside: auto;
    }

    .card-header {
        background: #f8fafc !important;
        border-bottom: 1.5px solid #000000 !important;
        padding: 6px 8px !important;
    }

    .card-title {
        font-size: 13px !important;
        color: #000000 !important;
    }

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

    .table-responsive {
        overflow: visible !important;
    }

    /* Crisp A4 Statement Table */
    .data-table {
        width: 100% !important;
        border-collapse: collapse !important;
        font-size: 10px !important;
    }

    .data-table thead {
        display: table-header-group;
    }

    .data-table tfoot {
        display: table-footer-group;
    }

    .data-table tr {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .data-table th {
        background: #f1f5f9 !important;
        color: #000000 !important;
        border: 1px solid #64748b !important;
        padding: 4px 5px !important;
        font-size: 9.5px !important;
        font-weight: 800 !important;
    }

    .data-table td {
        border: 1px solid #cbd5e1 !important;
        padding: 3.5px 5px !important;
        color: #000000 !important;
        font-size: 9.5px !important;
    }

    .data-table tfoot td {
        border-top: 1.5px solid #000000 !important;
        background: #f8fafc !important;
        font-weight: 900 !important;
    }

    /* Full-Page A4 Chopda Khatavahi Ledgers (Kharid, Vechan, Farmer) */
    .chopda-book-outer {
        min-height: 278mm !important;
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        margin: 0 !important;
        box-shadow: none !important;
        border: 1.5px solid #000000 !important;
        background: #ffffff !important;
    }

    .chopda-columns-grid {
        flex: 1 !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
    }

    .chopda-col-jama,
    .chopda-col-udhar {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
    }

    .chopda-table {
        flex: 1 !important;
        height: 100% !important;
        font-size: 10px !important;
    }

    .chopda-table td {
        height: 24px !important;
        font-size: 9.5px !important;
        line-height: 1.25 !important;
        padding: 3px 5px !important;
    }

    .chopda-footer-bar {
        margin-top: auto !important;
        border-top: 1.5px solid #000000 !important;
        background: #ffffff !important;
        padding: 6px 10px !important;
    }
}
