/* ============================================================
   JALPOOREE FOODS - OFFICIAL DISTRIBUTOR & WHOLESALE RATE CARD
   Dedicated Professional Stylesheet | Desktop, Tablet & Mobile
   ============================================================ */

:root {
    --primary: #059669;
    --primary-dark: #047857;
    --primary-light: #ecfdf5;
    --primary-border: #a7f3d0;
    
    --brand-gold: #d97706;
    --brand-gold-light: #fffbeb;
    --brand-gold-border: #fde68a;

    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50:  #f8fafc;

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

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 35px -5px rgba(0, 0, 0, 0.15);

    --font-heading: 'Fraunces', Georgia, serif;
    --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-page);
    color: var(--slate-800);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-bottom: 90px; /* Space for floating order bar */
}

/* ============================================================
   HEADER & NAVBAR
   ============================================================ */
.dist-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-card);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.dist-navbar {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.dist-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dist-logo-wrap {
    display: inline-block;
    text-decoration: none;
}

.dist-logo {
    height: 44px;
    width: auto;
    display: block;
    object-fit: contain;
}

.dist-divider {
    width: 1px;
    height: 30px;
    background: var(--slate-200);
}

.dist-badge-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dist-badge {
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--primary-border);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.01em;
}

.dist-verified-pill {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.dist-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dist-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.18s ease;
    border: 1px solid transparent;
}

.dist-btn-copy {
    background: #ffffff;
    color: var(--slate-700);
    border-color: var(--slate-200);
}

.dist-btn-copy:hover {
    background: var(--slate-100);
    color: var(--slate-900);
}

.dist-btn-print {
    background: #ffffff;
    color: var(--slate-700);
    border-color: var(--slate-200);
}

.dist-btn-print:hover {
    background: var(--slate-100);
    color: var(--slate-900);
}

.dist-btn-whatsapp {
    background: #25d366;
    color: #ffffff;
    border-color: #22c55e;
}

.dist-btn-whatsapp:hover {
    background: #1eb857;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.28);
}

/* ============================================================
   CONTAINER & HERO BANNER
   ============================================================ */
.dist-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 20px;
}

.dist-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.dist-hero::after {
    content: '';
    position: absolute;
    right: -20px;
    top: -20px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.dist-hero-sub {
    font-size: 0.78rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--primary);
    display: inline-block;
    margin-bottom: 6px;
}

.dist-hero-title {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--slate-900);
    line-height: 1.25;
    margin-bottom: 10px;
}

.dist-hero-desc {
    color: var(--slate-600);
    font-size: 0.95rem;
    max-width: 820px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.dist-meta-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid rgba(5, 150, 105, 0.15);
}

.dist-meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dist-meta-item i {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: #ffffff;
    border: 1px solid var(--primary-border);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.dist-meta-item small {
    display: block;
    font-size: 0.72rem;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.dist-meta-item strong {
    display: block;
    font-size: 0.88rem;
    color: var(--slate-900);
}

/* ============================================================
   TOOLBAR: SEARCH, CATEGORIES & VIEW SWITCHER
   ============================================================ */
.dist-toolbar {
    background: #ffffff;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 14px 18px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
}

.dist-toolbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 280px;
    flex-wrap: wrap;
}

.dist-search-box {
    position: relative;
    width: 320px;
    max-width: 100%;
}

.dist-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-400);
    font-size: 0.85rem;
}

.dist-search-box input {
    width: 100%;
    padding: 9px 36px 9px 34px;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-full);
    font-size: 0.84rem;
    font-family: inherit;
    background: var(--slate-50);
    color: var(--slate-800);
    outline: none;
    transition: all 0.18s ease;
}

.dist-search-box input:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.dist-search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--slate-400);
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
}

.dist-category-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.cat-tab {
    background: var(--slate-100);
    color: var(--slate-600);
    border: 1px solid transparent;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cat-tab:hover {
    background: var(--slate-200);
    color: var(--slate-800);
}

.cat-tab.active {
    background: var(--primary);
    color: #ffffff;
}

.cat-tab .tab-count {
    background: rgba(0, 0, 0, 0.1);
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
}

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

.dist-toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dist-view-toggle {
    display: inline-flex;
    background: var(--slate-100);
    padding: 3px;
    border-radius: var(--radius-sm);
    gap: 2px;
}

.view-btn {
    border: none;
    background: transparent;
    color: var(--slate-600);
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.view-btn.active {
    background: #ffffff;
    color: var(--slate-900);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ============================================================
   PRODUCTS GRID: CARDS VIEW
   ============================================================ */
.dist-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dist-card {
    background: #ffffff;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    position: relative;
}

.dist-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.dist-card-badge-row {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}

.dist-item-num {
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.dist-stock-tag {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dist-stock-tag.in-stock {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.dist-stock-tag.low-stock {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.dist-card-img-wrap {
    height: 190px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-card);
    position: relative;
}

.dist-card-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.dist-card:hover .dist-card-img {
    transform: scale(1.04);
}

.dist-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dist-card-cat {
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.dist-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--slate-900);
    line-height: 1.3;
    margin-bottom: 2px;
}

.dist-card-sub {
    font-size: 0.78rem;
    color: var(--slate-500);
    margin-bottom: 12px;
}

.dist-pack-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: var(--slate-50);
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    margin-bottom: 12px;
}

.dist-pack-label {
    color: var(--slate-500);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dist-pack-val {
    color: var(--slate-800);
    font-weight: 600;
}

.dist-price-matrix {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    margin-bottom: 14px;
}

.price-col {
    display: flex;
    flex-direction: column;
}

.price-col.margin-col {
    grid-column: 1 / -1;
    border-top: 1px dashed var(--slate-200);
    padding-top: 6px;
    margin-top: 2px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.price-label {
    font-size: 0.68rem;
    color: var(--slate-500);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 2px;
}

.price-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
}

.mrp-val {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--slate-400);
    text-decoration: line-through;
}

.margin-badge {
    background: #ecfdf5;
    color: #059669;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.dist-order-row {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-card);
}

.dist-order-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--slate-700);
}

.dist-qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--slate-300);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #ffffff;
}

.qty-btn {
    width: 32px;
    height: 32px;
    background: var(--slate-100);
    border: none;
    color: var(--slate-700);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.qty-btn:hover {
    background: var(--slate-200);
}

.qty-input {
    width: 48px;
    height: 32px;
    border: none;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--slate-900);
    outline: none;
    -moz-appearance: textfield;
}

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

.dist-qty-stepper.compact .qty-btn {
    width: 26px;
    height: 26px;
    font-size: 0.85rem;
}

.dist-qty-stepper.compact .qty-input {
    width: 38px;
    height: 26px;
    font-size: 0.8rem;
}

/* ============================================================
   RESPONSIVE DATA TABLE VIEW (Modern Web Guidance Compliant)
   ============================================================ */
.dist-table-container {
    background: #ffffff;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.table-wrapper {
    overflow-x: auto;
    max-inline-size: 100%;
    container-type: inline-size;
}

.dist-rate-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.85rem;
}

.dist-rate-table thead {
    position: sticky;
    inset-block-start: 0;
    z-index: 2;
    background: #f8fafc;
}

.dist-rate-table th {
    padding: 12px 14px;
    text-align: left;
    font-weight: 700;
    color: var(--slate-700);
    border-bottom: 2px solid var(--border-card);
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
}

.dist-rate-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--slate-200);
    color: var(--slate-800);
    vertical-align: middle;
}

.dist-rate-table tbody tr:hover {
    background: #f0fdf4;
}

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

.tbl-num {
    color: var(--slate-400);
    font-size: 0.78rem;
}

.tbl-product-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tbl-thumb {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: var(--slate-50);
    padding: 3px;
    border: 1px solid var(--border-card);
    flex-shrink: 0;
}

.tbl-pname {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--slate-900);
    display: block;
}

.tbl-psub {
    font-size: 0.72rem;
    color: var(--slate-500);
    display: block;
}

.tbl-cat-badge {
    background: var(--slate-100);
    color: var(--slate-700);
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

.tbl-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
}

.tbl-margin-tag {
    background: #ecfdf5;
    color: #059669;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.text-right {
    text-align: right !important;
}

.text-center {
    text-align: center !important;
}

.text-muted {
    color: var(--slate-400);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   EMPTY STATE & TERMS CARD
   ============================================================ */
.dist-empty-state {
    text-align: center;
    padding: 48px 20px;
    background: #ffffff;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
}

.dist-empty-state i {
    font-size: 2.5rem;
    color: var(--slate-300);
    margin-bottom: 12px;
}

.dist-empty-state h3 {
    font-size: 1.15rem;
    color: var(--slate-800);
    margin-bottom: 6px;
}

.dist-empty-state p {
    color: var(--slate-500);
    font-size: 0.88rem;
    margin-bottom: 16px;
}

.dist-terms-card {
    background: #ffffff;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.dist-terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.terms-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.terms-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--primary-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.terms-item h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 4px;
}

.terms-item p {
    font-size: 0.78rem;
    color: var(--slate-600);
    line-height: 1.5;
}

/* ============================================================
   FLOATING ORDER ESTIMATOR BAR
   ============================================================ */
.dist-order-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.25);
    z-index: 999;
    display: none; /* Completely hidden when 0 items selected */
}

.dist-order-bar.active {
    display: block;
    animation: orderBarSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes orderBarSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.desktop-text {
    display: inline;
}

.mobile-text {
    display: none;
}

.mobile-count-badge {
    display: none;
}

.dist-order-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.order-summary-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.order-metric {
    display: flex;
    flex-direction: column;
}

.om-label {
    font-size: 0.68rem;
    color: var(--slate-400);
    text-transform: uppercase;
    font-weight: 600;
    line-height: 1.2;
}

.om-val {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.om-val.highlight {
    color: #34d399;
}

.om-val.margin {
    color: #fde047;
}

.order-divider {
    width: 1px;
    height: 28px;
    background: #334155;
}

.order-actions-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-clear-order {
    background: #334155;
    color: var(--slate-300);
    border: none;
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-clear-order:hover {
    background: #475569;
    color: #ffffff;
}

.btn-send-whatsapp {
    background: #25d366;
    color: #ffffff;
    border: none;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
    transition: all 0.18s ease;
}

.btn-send-whatsapp:hover {
    background: #1eb857;
    transform: translateY(-1px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.dist-footer {
    background: #ffffff;
    border-top: 1px solid var(--border-card);
    padding: 32px 0 20px;
    margin-top: 20px;
}

.dist-footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--slate-200);
}

.footer-col-brand .footer-logo {
    height: 40px;
    margin-bottom: 12px;
}

.footer-col-brand p {
    font-size: 0.82rem;
    color: var(--slate-600);
    line-height: 1.6;
}

.footer-col-contact h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 10px;
}

.footer-col-contact p {
    font-size: 0.82rem;
    color: var(--slate-600);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col-contact a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.dist-footer-bottom {
    padding-top: 16px;
    text-align: center;
    font-size: 0.74rem;
    color: var(--slate-500);
}

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.dist-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #0f172a;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 0.84rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.25s ease;
    pointer-events: none;
}

.dist-toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* ============================================================
   RESPONSIVE MEDIA QUERIES (MOBILE OPTIMIZED)
   ============================================================ */
@media (max-width: 860px) {
    .dist-navbar {
        padding: 8px 12px;
        gap: 8px;
        overflow: hidden;
        width: 100%;
        box-sizing: border-box;
    }

    .dist-brand {
        gap: 0;
        flex-shrink: 0;
    }

    .dist-logo {
        height: 32px;
        max-width: 105px;
    }

    .dist-divider,
    .dist-badge-group,
    .dist-verified-pill {
        display: none !important;
    }

    .dist-nav-actions {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
    }

    .dist-nav-actions .dist-btn {
        width: 34px;
        height: 34px;
        min-width: 34px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        font-size: 0.82rem;
        position: relative;
        box-sizing: border-box;
    }

    .dist-nav-actions .dist-btn .desktop-text,
    .dist-nav-actions .dist-btn span:not(.mobile-count-badge) {
        display: none !important;
    }

    .mobile-count-badge {
        display: inline-block;
        position: absolute;
        top: -4px;
        right: -4px;
        background: #059669;
        color: #ffffff;
        font-size: 0.62rem;
        font-weight: 800;
        min-width: 16px;
        height: 16px;
        line-height: 14px;
        border-radius: 8px;
        text-align: center;
        padding: 0 3px;
        border: 1.5px solid #ffffff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    }

    .dist-hero {
        padding: 20px 18px;
    }

    .dist-hero-title {
        font-size: 1.45rem;
    }

    .dist-hero-desc {
        font-size: 0.86rem;
    }

    .dist-meta-strip {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .dist-toolbar {
        padding: 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .dist-toolbar-left {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: 100%;
        min-width: 0;
    }

    .dist-search-box {
        width: 100%;
    }

    .dist-category-tabs {
        display: flex;
        align-items: center;
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        white-space: nowrap;
        width: 100%;
        padding: 4px 2px 6px;
        flex-wrap: nowrap;
    }

    .dist-category-tabs::-webkit-scrollbar {
        display: none;
    }

    .cat-tab {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 7px 14px;
        font-size: 0.8rem;
    }

    .dist-toolbar-right {
        width: 100%;
        justify-content: center;
    }

    .dist-view-toggle {
        width: 100%;
        display: flex;
    }

    .dist-view-toggle .view-btn {
        flex: 1;
        text-align: center;
        justify-content: center;
    }

    .dist-products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .dist-footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hide-mobile {
        display: none !important;
    }

    .dist-order-inner {
        padding: 10px 14px;
        gap: 10px;
    }

    .btn-download-quotation {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .btn-send-whatsapp {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .btn-send-whatsapp span {
        display: inline;
    }
}

.mobile-only {
    display: none !important;
}

@media (max-width: 640px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: inline-flex !important;
    }
}

/* ============================================================
   B2B COMMERCIAL QUOTATION MODAL & ACTION BUTTONS
   ============================================================ */
.dist-btn-quotation {
    background: #ecfdf5;
    color: #059669;
    border: 1.5px solid #a7f3d0;
    font-weight: 700;
}

.dist-btn-quotation:hover {
    background: #059669;
    color: #ffffff;
    border-color: #059669;
}

.btn-download-quotation {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #059669;
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
    white-space: nowrap;
}

.btn-download-quotation:hover {
    background: #047857;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.35);
}

.btn-download-quotation i {
    font-size: 1rem;
    color: #a7f3d0;
}

/* Modal Overlay & Dialog */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.quotation-modal-dialog {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 900px;
    max-height: 94vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Modal Toolbar */
.qm-toolbar {
    background: #0f172a;
    color: #ffffff;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border-bottom: 2px solid #059669;
}

.qm-toolbar-top-row {
    display: contents;
}

.qm-toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qm-badge-icon {
    width: 38px;
    height: 38px;
    background: #059669;
    color: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.qm-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.qm-sub {
    font-size: 0.75rem;
    color: #94a3b8;
    display: block;
}

.qm-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qm-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: var(--font-body);
}

.qm-btn-print {
    background: #059669;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.4);
}

.qm-btn-print:hover {
    background: #047857;
    transform: translateY(-1px);
}

.qm-btn-wa {
    background: #25D366;
    color: #ffffff;
}

.qm-btn-wa:hover {
    background: #1eb956;
    transform: translateY(-1px);
}

.qm-btn-close {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.qm-btn-close:hover {
    background: rgba(239, 68, 68, 0.8);
    color: #ffffff;
}

/* Customizer Strip */
.qm-customizer-strip {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 20px;
}

.qm-customizer-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.qm-customizer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.qm-customizer-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.qm-customizer-label i {
    color: #059669;
}

.qm-customizer-hint {
    font-size: 0.74rem;
    color: #059669;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    background: #ecfdf5;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid #a7f3d0;
}

.qm-customizer-input {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.84rem;
    font-family: inherit;
    background: #ffffff;
    color: #0f172a;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.qm-customizer-input:focus {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

/* Preview Paper Container */
.qm-preview-container {
    background: #475569;
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    justify-content: center;
}

.qm-paper {
    background: #ffffff;
    width: 100%;
    max-width: 794px; /* A4 aspect width at screen res */
    min-height: 1000px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    border-radius: 4px;
    padding: 28px 32px;
    box-sizing: border-box;
}

/* Screen Document Layout */
.quotation-sheet {
    font-family: 'Poppins', sans-serif;
    color: #0f172a;
    font-size: 11px;
    line-height: 1.35;
}

.qdoc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 2.5px solid #059669;
}

.qdoc-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 65%;
}

.qdoc-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.qdoc-company {
    font-family: 'Fraunces', serif;
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 2px 0;
    line-height: 1.15;
}

.qdoc-tagline {
    display: block;
    font-size: 9.5px;
    font-weight: 600;
    color: #059669;
    margin-bottom: 2px;
}

.qdoc-address {
    display: block;
    font-size: 8.5px;
    color: #475569;
    line-height: 1.3;
    margin-bottom: 2px;
}

.qdoc-fssai {
    display: block;
    font-size: 8px;
    color: #334155;
    line-height: 1.3;
}

.qdoc-meta-box {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.qdoc-title-badge {
    background: #059669;
    color: #ffffff;
    padding: 4px 10px;
    font-size: 10.5px;
    font-weight: 800;
    border-radius: 4px;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.qdoc-meta-item {
    font-size: 9px;
    color: #334155;
    line-height: 1.25;
}

.qdoc-meta-item span {
    color: #64748b;
}

.qdoc-meta-item strong {
    color: #0f172a;
}

/* Recipient Bar */
.qdoc-recipient-bar {
    background: #f1f5f9;
    border-left: 4px solid #059669;
    border-radius: 4px;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 9.5px;
}

.qdoc-label {
    color: #64748b;
    font-size: 8.5px;
    display: block;
}

.qdoc-partner-name {
    font-size: 11px;
    color: #0f172a;
    font-weight: 700;
}

.qdoc-recip-meta {
    text-align: right;
    display: flex;
    gap: 16px;
}

/* Quotation Table */
.qdoc-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
}

.qdoc-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 10px;
    margin-bottom: 0;
    border: none;
}

.qdoc-table thead {
    background: #f8fafc;
}

.qdoc-table th {
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 800;
    border: 1px solid #cbd5e1;
    padding: 6px 8px;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    vertical-align: middle;
}

.qdoc-table td {
    border: 1px solid #e2e8f0;
    padding: 6px 8px;
    vertical-align: middle;
    font-size: 10px;
    line-height: 1.3;
}

.qdoc-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.qth-num { width: 5%; text-align: center; }
.qth-desc { width: 33%; }
.qth-cat { width: 16%; }
.qth-pack { width: 12%; text-align: center; }
.qth-mrp { width: 9%; text-align: right; }
.qth-rate { width: 11%; text-align: right; }
.qth-qty { width: 9%; text-align: center; }
.qth-subtotal { width: 13%; text-align: right; }

.qtr-num { text-align: center; font-weight: 700; color: #64748b; font-size: 9px; }
.qtr-pname { font-size: 10px; font-weight: 700; color: #0f172a; display: block; }
.qtr-psub { font-size: 8px; color: #64748b; display: block; line-height: 1.1; }
.qtr-cat { font-size: 8.5px; color: #475569; }
.qtr-qty-val { font-size: 10.5px; font-weight: 800; color: #0f172a; }
.qtr-rate strong { color: #059669; font-weight: 800; font-size: 10.5px; }

.qdoc-total-row td {
    background: #f1f5f9;
    border-top: 2px solid #cbd5e1;
    font-weight: 700;
    padding: 8px 8px;
    font-size: 10px;
}

.qdoc-grand-val {
    font-size: 12px;
    font-weight: 800;
    color: #059669;
}

/* Calculation & Margin Grid */
.qdoc-calc-grid {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.qdoc-words-block {
    flex: 1;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.qdoc-words-label {
    font-size: 8px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.qdoc-words-val {
    font-size: 10px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 6px;
}

.qdoc-margin-insight {
    font-size: 8.5px;
    color: #334155;
    border-top: 1px dashed #cbd5e1;
    padding-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.qdoc-margin-insight i {
    color: #059669;
}

.margin-green {
    color: #059669;
}

.qdoc-summary-box {
    width: 250px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.qdoc-sum-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 9px;
    color: #475569;
}

.qdoc-sum-line strong {
    color: #0f172a;
}

.qdoc-sum-line.total-highlight {
    border-top: 1.5px solid #059669;
    padding-top: 6px;
    margin-top: 4px;
    font-weight: 800;
    font-size: 10px;
    color: #0f172a;
}

.qdoc-sum-line .final-amt {
    font-size: 13px;
    color: #059669;
    font-weight: 900;
}

.gst-extra {
    color: #d97706 !important;
    font-size: 8.5px;
}

/* Terms Box */
.qdoc-terms-box {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 0;
}

.qdoc-terms-header {
    font-size: 8.5px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.03em;
    margin-bottom: 4px;
}

.qdoc-terms-list {
    margin: 0;
    padding-left: 14px;
    font-size: 8px;
    color: #475569;
    line-height: 1.35;
}

.qdoc-terms-list li {
    margin-bottom: 2px;
}

.qdoc-terms-list strong {
    color: #1e293b;
}

/* Quotation Footer (Side-by-Side Executive Block) */
.qdoc-footer {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 14px;
    padding-top: 8px;
    border-top: 1.5px solid #cbd5e1;
}

.qdoc-footer-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.qdoc-footer-left .qdoc-terms-box {
    margin-bottom: 0;
    padding: 6px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.qdoc-bank-info {
    font-size: 7.5px;
    color: #475569;
    line-height: 1.35;
    background: #f1f5f9;
    padding: 4px 8px;
    border-left: 2.5px solid #059669;
    border-radius: 2px;
}

.qdoc-bank-info strong {
    color: #0f172a;
}

.qdoc-sign-block {
    text-align: center;
    width: 180px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    border-radius: 4px;
    padding: 6px 8px;
    box-sizing: border-box;
}

.qdoc-sign-for {
    font-size: 8px;
    font-weight: 700;
    color: #0f172a;
    display: block;
}

.qdoc-sign-space {
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px dashed #94a3b8;
    margin-bottom: 4px;
}

.qdoc-certified-pill {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 7.5px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.qdoc-sign-title {
    font-size: 7.5px;
    color: #64748b;
    text-transform: uppercase;
    display: block;
}

.qdoc-sign-block small {
    font-size: 7px;
    color: #94a3b8;
    display: block;
}

/* Dedicated Container Hidden on Screen */
.dist-quotation-print-container {
    display: none;
}

/* Responsive Modal Adjustments */
@media (max-width: 768px) {
    .quotation-modal-dialog {
        max-height: 98vh;
        border-radius: 14px;
        margin: 6px;
        width: calc(100% - 12px);
    }

    .qm-toolbar {
        padding: 10px 14px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .qm-toolbar-top-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .qm-toolbar-actions {
        width: 100%;
        display: flex;
        gap: 8px;
    }

    .qm-toolbar-actions .qm-btn {
        flex: 1;
        justify-content: center;
        padding: 9px 10px;
        font-size: 0.8rem;
    }

    .qm-customizer-strip {
        padding: 10px 14px;
    }

    .qm-customizer-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .qm-preview-container {
        padding: 10px 6px;
        display: block;
        overflow-y: auto;
    }

    .qm-paper {
        max-width: 100%;
        min-width: 0;
        padding: 16px 12px;
        margin: 0 auto;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    .qdoc-table-wrap {
        border-radius: 4px;
        margin-bottom: 8px;
    }

    .qdoc-table-wrap .qdoc-table {
        min-width: 580px; /* Allows smooth horizontal swipe while preserving clear table cells */
    }

    .qdoc-header {
        flex-direction: column;
        gap: 8px;
    }

    .qdoc-brand {
        max-width: 100%;
    }

    .qdoc-meta-box {
        text-align: left;
        align-items: flex-start;
    }

    .qdoc-calc-grid {
        flex-direction: column;
    }

    .qdoc-summary-box {
        width: 100%;
    }

    .qdoc-footer {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .qdoc-sign-block {
        text-align: left;
        width: 100%;
    }
}

@media (max-width: 640px) {
    body.has-active-order {
        padding-bottom: 175px !important;
    }

    .desktop-text {
        display: none !important;
    }

    .mobile-text {
        display: inline !important;
    }

    .dist-order-bar {
        padding-bottom: max(8px, env(safe-area-inset-bottom));
    }

    .dist-order-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 8px 12px 10px;
    }

    .order-summary-group {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        border-bottom: 1px solid #334155;
        padding-bottom: 6px;
    }

    .order-actions-group {
        width: 100%;
        display: flex;
        gap: 8px;
    }

    .btn-download-quotation, 
    .btn-send-whatsapp {
        flex: 1 1 0;
        min-width: 0;
        min-height: 42px;
        height: 42px;
        max-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 0 8px;
        font-size: 0.76rem;
        font-weight: 700;
        white-space: nowrap;
        border-radius: 8px;
        gap: 5px;
        box-sizing: border-box;
    }

    .btn-clear-order.mobile-only {
        padding: 6px 10px;
        font-size: 0.75rem;
        margin-left: auto;
    }

    .btn-clear-order span {
        display: inline;
    }
}

/* ============================================================
   PRINT STYLESHEET (@media print) - Executive 1-Page A4 Rate Card & Quotation
   ============================================================ */
.dist-print-header,
.dist-print-footer {
    display: none;
}

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

    html, body {
        background: #ffffff !important;
        color: #0f172a !important;
        font-family: 'Poppins', -apple-system, sans-serif !important;
        font-size: 11px !important;
        line-height: 1.35 !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .dist-header,
    .dist-hero,
    .dist-toolbar,
    .dist-products-grid,
    .dist-terms-card,
    .dist-order-bar,
    .dist-footer,
    .dist-toast,
    .hide-print {
        display: none !important;
    }

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

    /* Printable Letterhead Header */
    .dist-print-header {
        display: flex !important;
        justify-content: space-between;
        align-items: flex-start;
        padding-bottom: 8px;
        margin-bottom: 10px;
        border-bottom: 2.5px solid #059669;
    }

    .dph-brand {
        display: flex;
        align-items: center;
        gap: 12px;
        max-width: 65%;
    }

    .dph-logo {
        height: 52px;
        width: auto;
        object-fit: contain;
    }

    .dph-company {
        font-family: 'Fraunces', serif;
        font-size: 16px;
        font-weight: 800;
        color: #0f172a;
        margin: 0 0 2px 0;
        line-height: 1.15;
    }

    .dph-sub {
        display: block;
        font-size: 9px;
        font-weight: 600;
        color: #059669;
        margin-bottom: 2px;
    }

    .dph-address {
        display: block;
        font-size: 8.5px;
        color: #475569;
        line-height: 1.3;
    }

    .dph-meta {
        text-align: right;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 2px;
    }

    .dph-title-badge {
        background: #059669 !important;
        color: #ffffff !important;
        padding: 3px 8px;
        font-size: 10px;
        font-weight: 800;
        border-radius: 3px;
        letter-spacing: 0.04em;
        margin-bottom: 3px;
        text-transform: uppercase;
    }

    .dph-meta-line {
        font-size: 9px;
        color: #334155;
        line-height: 1.25;
    }

    .dph-meta-line strong {
        color: #0f172a;
    }

    /* Printable Table */
    .dist-table-container {
        display: block !important;
        box-shadow: none !important;
        border: 1.5px solid #cbd5e1 !important;
        border-radius: 4px !important;
        margin: 0 0 8px 0 !important;
        padding: 0 !important;
        width: 100% !important;
        overflow: visible !important;
    }

    .table-wrapper {
        overflow: visible !important;
        width: 100% !important;
    }

    .dist-rate-table {
        width: 100% !important;
        table-layout: fixed !important;
        border-collapse: collapse !important;
        font-size: 10.5px !important;
        margin: 0 !important;
    }

    .dist-rate-table thead {
        position: static !important;
        background: #f1f5f9 !important;
    }

    .dist-rate-table th {
        background: #f1f5f9 !important;
        color: #0f172a !important;
        font-weight: 800 !important;
        border: 1px solid #cbd5e1 !important;
        padding: 6px 6px !important;
        font-size: 9.5px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.02em !important;
        vertical-align: middle !important;
    }

    .dist-rate-table td {
        border: 1px solid #e2e8f0 !important;
        padding: 5px 6px !important;
        vertical-align: middle !important;
        font-size: 10px !important;
        line-height: 1.25 !important;
    }

    .dist-rate-table tbody tr:nth-child(even) {
        background: #f8fafc !important;
    }

    /* Fixed percentage widths fitting exactly 100% of A4 portrait */
    .th-num, .td-num { width: 5% !important; max-width: 5% !important; text-align: center !important; }
    .th-sku, .td-sku { width: 33% !important; max-width: 33% !important; word-break: break-word !important; }
    .th-cat, .td-cat { width: 17% !important; max-width: 17% !important; word-break: break-word !important; }
    .th-pack, .td-pack { width: 13% !important; max-width: 13% !important; text-align: center !important; }
    .th-mrp, .td-mrp { width: 10% !important; max-width: 10% !important; text-align: right !important; }
    .th-price, .td-price { width: 11% !important; max-width: 11% !important; text-align: right !important; }
    .th-margin, .td-margin { width: 11% !important; max-width: 11% !important; text-align: center !important; }

    .td-num { text-align: center !important; }
    .tbl-num { font-size: 10px !important; color: #475569 !important; }
    
    .tbl-product-cell {
        gap: 0 !important;
    }

    .tbl-pname {
        font-size: 10.5px !important;
        font-weight: 700 !important;
        color: #0f172a !important;
        margin-bottom: 1px !important;
    }

    .tbl-psub {
        font-size: 8.5px !important;
        color: #64748b !important;
        line-height: 1.1 !important;
    }

    .tbl-cat-badge {
        font-size: 9px !important;
        padding: 0 !important;
        background: none !important;
        color: #334155 !important;
        font-weight: 500 !important;
    }

    .td-pack strong {
        font-size: 9.5px !important;
        color: #0f172a !important;
    }

    .tbl-price {
        font-size: 11px !important;
        font-weight: 800 !important;
        color: #059669 !important;
    }

    .tbl-margin-tag {
        font-size: 9px !important;
        background: none !important;
        color: #047857 !important;
        padding: 0 !important;
        font-weight: 700 !important;
    }

    /* Printable Footer */
    .dist-print-footer {
        display: flex !important;
        justify-content: space-between;
        align-items: flex-end;
        margin-top: 8px;
        padding-top: 6px;
        border-top: 1.5px solid #cbd5e1;
    }

    .dpf-terms {
        max-width: 68%;
        font-size: 8px;
        color: #475569;
        line-height: 1.35;
    }

    .dpf-terms strong {
        color: #0f172a;
        font-size: 8.5px;
        display: block;
        margin-bottom: 2px;
    }

    .dpf-terms ol {
        padding-left: 14px;
        margin: 0;
    }

    .dpf-sign {
        text-align: right;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .dpf-sign-box {
        text-align: center;
        width: 170px;
    }

    .dpf-sign-label {
        font-size: 8px;
        font-weight: 700;
        color: #0f172a;
        display: block;
    }

    .dpf-sign-line {
        height: 28px;
        border-bottom: 1px dashed #94a3b8;
        margin-bottom: 4px;
    }

    .dpf-sign-auth {
        font-size: 7.5px;
        color: #64748b;
        text-transform: uppercase;
        display: block;
    }

    .dpf-sign-box small {
        font-size: 7px;
        color: #94a3b8;
        display: block;
    }

    /* ============================================================
       QUOTATION MODE PRINT STYLES (Clean Single-Page A4 Quotation)
       ============================================================ */
    body.print-quotation-mode .dist-print-header,
    body.print-quotation-mode .dist-table-container,
    body.print-quotation-mode .dist-print-footer,
    body.print-quotation-mode .modal-overlay,
    body.print-quotation-mode .qm-toolbar,
    body.print-quotation-mode .qm-customizer-strip,
    body.print-quotation-mode .qm-preview-container {
        display: none !important;
    }

    body.print-quotation-mode .dist-quotation-print-container {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    body.print-quotation-mode .quotation-sheet {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        font-size: 9px !important;
        line-height: 1.25 !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        page-break-after: avoid !important;
        break-after: avoid !important;
    }

    body.print-quotation-mode .qdoc-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        padding-bottom: 4px !important;
        margin-bottom: 5px !important;
        border-bottom: 2px solid #059669 !important;
    }

    body.print-quotation-mode .qdoc-brand {
        max-width: 65% !important;
        gap: 8px !important;
    }

    body.print-quotation-mode .qdoc-logo {
        height: 38px !important;
    }

    body.print-quotation-mode .qdoc-company {
        font-size: 13.5px !important;
        line-height: 1.15 !important;
        margin: 0 0 1px 0 !important;
    }

    body.print-quotation-mode .qdoc-tagline {
        font-size: 7.5px !important;
        margin-bottom: 1px !important;
    }

    body.print-quotation-mode .qdoc-address {
        font-size: 7px !important;
        line-height: 1.2 !important;
        margin-bottom: 1px !important;
    }

    body.print-quotation-mode .qdoc-fssai {
        font-size: 7px !important;
    }

    body.print-quotation-mode .qdoc-title-badge {
        font-size: 8.5px !important;
        padding: 2px 6px !important;
        background: #059669 !important;
        color: #ffffff !important;
        margin-bottom: 2px !important;
    }

    body.print-quotation-mode .qdoc-meta-item {
        font-size: 7.5px !important;
        line-height: 1.2 !important;
    }

    body.print-quotation-mode .qdoc-recipient-bar {
        background: #f1f5f9 !important;
        border-left: 3px solid #059669 !important;
        padding: 3px 8px !important;
        margin-bottom: 5px !important;
        font-size: 8px !important;
    }

    body.print-quotation-mode .qdoc-table-wrap {
        overflow: visible !important;
        border: 1px solid #cbd5e1 !important;
        margin-bottom: 5px !important;
        width: 100% !important;
    }

    body.print-quotation-mode .qdoc-table-wrap .qdoc-table,
    body.print-quotation-mode .qdoc-table {
        min-width: 100% !important;
        width: 100% !important;
        table-layout: fixed !important;
        font-size: 8.5px !important;
        margin-bottom: 0 !important;
        border: none !important;
    }

    body.print-quotation-mode .qdoc-table th {
        background: #f1f5f9 !important;
        color: #0f172a !important;
        padding: 3px 5px !important;
        font-size: 7.5px !important;
        border: 1px solid #cbd5e1 !important;
        vertical-align: middle !important;
    }

    body.print-quotation-mode .qdoc-table td {
        padding: 2.5px 5px !important;
        font-size: 8px !important;
        border: 1px solid #e2e8f0 !important;
        vertical-align: middle !important;
        line-height: 1.2 !important;
    }

    body.print-quotation-mode .qtr-num { font-size: 7.5px !important; }
    body.print-quotation-mode .qtr-pname { font-size: 8.5px !important; }
    body.print-quotation-mode .qtr-psub { font-size: 6.5px !important; line-height: 1.1 !important; }
    body.print-quotation-mode .qtr-cat { font-size: 7px !important; }
    body.print-quotation-mode .qtr-qty-val { font-size: 9px !important; }
    body.print-quotation-mode .qtr-rate strong { font-size: 9px !important; }

    body.print-quotation-mode .qdoc-total-row td {
        background: #f1f5f9 !important;
        padding: 4px 5px !important;
        font-size: 8.5px !important;
    }

    body.print-quotation-mode .qdoc-grand-val {
        font-size: 10px !important;
    }

    body.print-quotation-mode .qdoc-calc-grid {
        gap: 8px !important;
        margin-bottom: 5px !important;
        display: flex !important;
    }

    body.print-quotation-mode .qdoc-words-block {
        padding: 4px 8px !important;
        flex: 1 !important;
    }

    body.print-quotation-mode .qdoc-words-label {
        font-size: 7px !important;
        margin-bottom: 1px !important;
    }

    body.print-quotation-mode .qdoc-words-val {
        font-size: 8.5px !important;
        margin-bottom: 2px !important;
        line-height: 1.2 !important;
    }

    body.print-quotation-mode .qdoc-margin-insight {
        font-size: 7px !important;
    }

    body.print-quotation-mode .qdoc-summary-box {
        width: 195px !important;
        padding: 4px 8px !important;
        gap: 2px !important;
    }

    body.print-quotation-mode .qdoc-sum-line {
        font-size: 7.5px !important;
        line-height: 1.2 !important;
    }

    body.print-quotation-mode .qdoc-sum-line.total-highlight {
        font-size: 8.5px !important;
        padding-top: 3px !important;
        margin-top: 1px !important;
    }

    body.print-quotation-mode .qdoc-sum-line .final-amt {
        font-size: 10.5px !important;
    }

    body.print-quotation-mode .qdoc-footer {
        display: flex !important;
        justify-content: space-between !important;
        align-items: stretch !important;
        gap: 8px !important;
        padding-top: 4px !important;
        border-top: 1.5px solid #cbd5e1 !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    body.print-quotation-mode .qdoc-footer-left {
        flex: 1 !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 3px !important;
    }

    body.print-quotation-mode .qdoc-terms-box {
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 3px !important;
        padding: 3px 6px !important;
        margin-bottom: 0 !important;
    }

    body.print-quotation-mode .qdoc-terms-header {
        font-size: 7px !important;
        font-weight: 800 !important;
        color: #0f172a !important;
        margin-bottom: 2px !important;
        letter-spacing: 0.02em !important;
    }

    body.print-quotation-mode .qdoc-terms-list {
        margin: 0 !important;
        padding-left: 10px !important;
        font-size: 6.5px !important;
        line-height: 1.2 !important;
        color: #334155 !important;
    }

    body.print-quotation-mode .qdoc-terms-list li {
        margin-bottom: 1px !important;
    }

    body.print-quotation-mode .qdoc-bank-info {
        background: #f1f5f9 !important;
        border-left: 2.5px solid #059669 !important;
        padding: 2.5px 6px !important;
        font-size: 6.5px !important;
        line-height: 1.2 !important;
        color: #334155 !important;
        border-radius: 2px !important;
        margin: 0 !important;
    }

    body.print-quotation-mode .qdoc-sign-block {
        width: 155px !important;
        flex-shrink: 0 !important;
        border: 1px solid #cbd5e1 !important;
        background: #f8fafc !important;
        border-radius: 3px !important;
        padding: 4px 6px !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }

    body.print-quotation-mode .qdoc-sign-for {
        font-size: 7.5px !important;
        font-weight: 700 !important;
        color: #0f172a !important;
        display: block !important;
    }

    body.print-quotation-mode .qdoc-sign-space {
        height: 16px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-bottom: 1px dashed #94a3b8 !important;
        margin-bottom: 3px !important;
    }

    body.print-quotation-mode .qdoc-certified-pill {
        background: #ecfdf5 !important;
        color: #059669 !important;
        border: 1px solid #a7f3d0 !important;
        font-size: 6.5px !important;
        font-weight: 800 !important;
        padding: 1px 5px !important;
        border-radius: 2px !important;
    }

    body.print-quotation-mode .qdoc-sign-title {
        font-size: 7px !important;
        font-weight: 700 !important;
        color: #334155 !important;
        display: block !important;
    }

    body.print-quotation-mode .qdoc-sign-block small {
        font-size: 6px !important;
        color: #64748b !important;
        display: block !important;
    }
}

