:root {
            --zydus-teal: #00a5a5;
            --zydus-teal-dark: #008289;
            --zydus-teal-light: #e6f6f7;
            --zydus-teal-border: #b2e3e6;
            --zydus-purple: #aa55a0;
            --zydus-text-dark: #1e293b;
            --zydus-text-muted: #64748b;
            --zydus-border: #e2e8f0;
            --zydus-row-alt: #f8fafb;
            --zydus-row-hover: #eef8f8;
        }

        .cancer-medicine-page-section {
            padding: 35px 0 60px;
            background-color: #ffffff;
        }

        .medicine-intro-header {
            margin-bottom: 24px;
        }

        .medicine-intro-header .medicine-main-title {
            font-size: 28px;
            line-height: 36px;
            font-weight: 700;
            color: var(--zydus-text-dark);
            margin-bottom: 8px;
            position: relative;
            padding-bottom: 12px;
        }

        .medicine-intro-header .medicine-main-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 60px;
            height: 3px;
            background: linear-gradient(90deg, var(--zydus-teal) 0%, var(--zydus-purple) 100%);
            border-radius: 2px;
        }

        .medicine-intro-header .medicine-main-desc {
            font-size: 15.5px;
            line-height: 24px;
            color: var(--zydus-text-muted);
            margin: 0;
        }

        /* Controls Card & Flex Container */
        .medicine-controls-card {
            background: #ffffff;
            border: 1px solid var(--zydus-border);
            border-radius: 12px;
            padding: 16px 24px;
            margin-bottom: 22px;
            box-shadow: 0 2px 10px rgba(0, 165, 165, 0.05);
        }

        .medicine-controls-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            gap: 20px;
        }

        /* Left Side Corner: Search Box */
        .medicine-search-wrapper {
            flex: 0 1 480px;
            max-width: 480px;
            width: 100%;
        }

        .medicine-search-input-group {
            border-radius: 8px;
            overflow: hidden;
            border: 1.5px solid #cbd5e1;
            transition: all 0.2s ease-in-out;
            background-color: #ffffff;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
            display: flex;
            align-items: center;
            width: 100%;
        }

        .medicine-search-input-group:focus-within {
            border-color: var(--zydus-teal) !important;
            box-shadow: 0 0 0 3px rgba(0, 165, 165, 0.18) !important;
        }

        .medicine-search-addon {
            background-color: #ffffff !important;
            border: none !important;
            color: #94a3b8 !important;
            padding-left: 14px !important;
            padding-right: 6px !important;
            display: flex;
            align-items: center;
        }

        .medicine-search-input {
            height: 44px !important;
            border: none !important;
            font-size: 14px !important;
            color: var(--zydus-text-dark) !important;
            background-color: transparent !important;
            box-shadow: none !important;
            padding-left: 6px !important;
            padding-right: 12px !important;
            flex: 1;
        }

        .medicine-search-input:focus {
            outline: none !important;
            box-shadow: none !important;
            background-color: transparent !important;
        }

        .medicine-search-clear-btn {
            background-color: transparent !important;
            border: none !important;
            color: #94a3b8 !important;
            padding: 0 14px !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            cursor: pointer !important;
            transition: color 0.15s ease !important;
        }

        .medicine-search-clear-btn:hover {
            color: var(--zydus-purple) !important;
        }

        /* Right Side Corner: Per-Page Selector */
        .medicine-perpage-wrapper {
            margin-left: auto !important; /* Locks selector to the far right corner */
            margin-right: 0 !important;
            display: inline-flex !important;
            align-items: center !important;
            gap: 10px !important;
            font-size: 14px !important;
            color: var(--zydus-text-muted) !important;
            white-space: nowrap !important;
            flex-shrink: 0 !important;
        }

        .medicine-perpage-wrapper label,
        .medicine-perpage-wrapper span {
            white-space: nowrap !important;
            color: var(--zydus-text-muted) !important;
            font-size: 14px !important;
            margin: 0 !important;
            line-height: 1 !important;
        }

        .page-size-select {
            height: 42px !important;
            width: 80px !important;
            min-width: 80px !important;
            max-width: 88px !important;
            padding: 0 28px 0 12px !important;
            border: 1.5px solid #cbd5e1 !important;
            border-radius: 8px !important;
            font-size: 14px !important;
            font-weight: 600 !important;
            color: var(--zydus-text-dark) !important;
            background-color: #ffffff !important;
            cursor: pointer !important;
            white-space: nowrap !important;
            display: inline-block !important;
        }

        .page-size-select:focus {
            border-color: var(--zydus-teal) !important;
            outline: none !important;
            box-shadow: 0 0 0 3px rgba(0, 165, 165, 0.15) !important;
        }

        /* Mobile Scroll Hint */
        .medicine-scroll-hint {
            display: none;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            font-weight: 600;
            color: var(--zydus-teal-dark);
            background-color: var(--zydus-teal-light);
            border: 1px solid var(--zydus-teal-border);
            padding: 8px 14px;
            border-radius: 6px;
            margin-bottom: 14px;
        }

        @media (max-width: 991px) {
            .medicine-scroll-hint {
                display: flex;
            }
        }

        /* Table Card & Responsive Scrolling */
        .medicine-table-card {
            background: #ffffff;
            border: 1px solid var(--zydus-border);
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04);
            margin-bottom: 22px;
        }

        .medicine-table-responsive {
            width: 100%;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }

        .medicine-table-responsive::-webkit-scrollbar {
            height: 8px;
        }

        .medicine-table-responsive::-webkit-scrollbar-track {
            background: #f1f5f9;
        }

        .medicine-table-responsive::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 4px;
        }

        .medicine-table-responsive::-webkit-scrollbar-thumb:hover {
            background: var(--zydus-teal);
        }

        /* Table Structure */
        .cancer-medicine-table {
            width: 100%;
            min-width: 960px;
            margin-bottom: 0;
            border-collapse: separate;
            border-spacing: 0;
            font-family: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        }

        .cancer-medicine-table thead {
            background: #00a5a5 !important;
            position: sticky;
            top: 0;
            z-index: 2;
        }

        .cancer-medicine-table thead tr th {
            background-color: #00a5a5 !important;
            color: #ffffff !important;
            font-weight: 700;
            font-size: 13px;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            padding: 14px 16px;
            border: none;
            vertical-align: middle;
            white-space: nowrap;
        }

        .cancer-medicine-table thead tr th.col-code { width: 140px; min-width: 140px; }
        .cancer-medicine-table thead tr th.col-name { width: 220px; min-width: 200px; }
        .cancer-medicine-table thead tr th.col-uom { width: 70px; min-width: 70px; text-align: center; }
        .cancer-medicine-table thead tr th.col-pack { width: 95px; min-width: 90px; text-align: center; }
        .cancer-medicine-table thead tr th.col-desc { width: 270px; min-width: 240px; }
        .cancer-medicine-table thead tr th.col-mfg { width: 230px; min-width: 200px; }
        .cancer-medicine-table thead tr th.col-fsp { width: 140px; min-width: 130px; text-align: left; }

        .cancer-medicine-table tbody tr {
            background-color: #ffffff;
            transition: background-color 0.15s ease-in-out;
        }

        .cancer-medicine-table tbody tr:nth-child(even) {
            background-color: var(--zydus-row-alt);
        }

        .cancer-medicine-table tbody tr:hover {
            background-color: var(--zydus-row-hover);
        }

        .cancer-medicine-table tbody tr td {
            padding: 12px 16px;
            vertical-align: middle;
            border-top: 1px solid #edf2f7;
            font-size: 14px;
            color: var(--zydus-text-dark);
            line-height: 1.4;
        }

        .badge-item-code {
            display: inline-block;
            padding: 4px 8px;
            background-color: var(--zydus-teal-light);
            color: var(--zydus-teal-dark);
            border: 1px solid var(--zydus-teal-border);
            border-radius: 5px;
            font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
            font-size: 12.5px;
            font-weight: 600;
            white-space: nowrap;
        }

        .medicine-name-text {
            font-weight: 700;
            color: var(--zydus-text-dark);
            font-size: 14px;
            line-height: 1.35;
        }

        .medicine-center-cell {
            text-align: center;
            color: #475569;
            font-weight: 600;
            font-size: 13.5px;
        }

        .medicine-desc-text {
            color: #334155;
            font-size: 13.5px;
            line-height: 1.45;
            word-break: break-word;
            overflow-wrap: break-word;
        }

        .medicine-mfg-text {
            color: #1e293b;
            font-size: 13.5px;
            font-weight: 600;
            line-height: 1.4;
            word-break: break-word;
            overflow-wrap: break-word;
        }

        .medicine-fsp-cell {
            text-align: left;
            white-space: nowrap;
        }

        .medicine-fsp-amount {
            font-weight: 800;
            color: var(--zydus-purple);
            font-size: 15px;
        }

        .medicine-fsp-currency {
            font-weight: 600;
            color: var(--zydus-purple);
            margin-right: 2px;
            font-size: 14px;
        }

        /* Empty State */
        .medicine-no-results {
            text-align: center;
            padding: 48px 20px;
        }

        .no-results-icon {
            width: 52px;
            height: 52px;
            margin: 0 auto 14px;
            border-radius: 50%;
            background-color: var(--zydus-teal-light);
            color: var(--zydus-teal);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .no-results-title {
            font-size: 18px;
            font-weight: 700;
            color: var(--zydus-text-dark);
            margin-bottom: 6px;
        }

        .no-results-text {
            font-size: 14px;
            color: var(--zydus-text-muted);
            margin-bottom: 16px;
        }

        .btn-reset-search {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background-color: var(--zydus-teal);
            color: #ffffff;
            border: none;
            padding: 10px 22px;
            font-size: 14px;
            font-weight: 600;
            border-radius: 50px;
            cursor: pointer;
            transition: background-color 0.2s ease;
        }

        .btn-reset-search:hover {
            background-color: var(--zydus-teal-dark);
            color: #ffffff;
        }

        /* Pagination Bar */
        .medicine-pagination-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 16px;
            margin-top: 20px;
        }

        .medicine-records-summary {
            font-size: 14px;
            color: var(--zydus-text-muted);
            font-weight: 500;
        }

        .medicine-records-summary strong {
            color: var(--zydus-text-dark);
            font-weight: 700;
        }

        .pagination-buttons-group {
            display: flex;
            align-items: center;
            gap: 5px;
            flex-wrap: wrap;
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .pagination-btn {
            min-width: 38px;
            height: 38px;
            padding: 0 10px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 1px solid #cbd5e1;
            background-color: #ffffff;
            color: var(--zydus-text-dark);
            font-size: 13.5px;
            font-weight: 600;
            border-radius: 6px;
            cursor: pointer;
            user-select: none;
            transition: all 0.15s ease-in-out;
            text-decoration: none;
        }

        .pagination-btn:hover:not(:disabled):not(.active) {
            background-color: var(--zydus-teal-light);
            border-color: var(--zydus-teal);
            color: var(--zydus-teal-dark);
        }

        .pagination-btn.active {
            background-color: var(--zydus-teal);
            border-color: var(--zydus-teal);
            color: #ffffff;
            font-weight: 700;
            box-shadow: 0 2px 8px rgba(0, 165, 165, 0.25);
            cursor: default;
        }

        .pagination-btn:disabled {
            opacity: 0.4;
            cursor: not-allowed;
            background-color: #f8fafc;
            border-color: #e2e8f0;
            color: #94a3b8;
        }

        .pagination-btn-nav {
            padding: 0 14px;
            gap: 6px;
        }

        .pagination-ellipsis {
            min-width: 28px;
            height: 38px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: #94a3b8;
            font-weight: 700;
            font-size: 14px;
        }

        /* Mobile specific adjustments (< 768px) */
        @media (max-width: 767px) {
            .medicine-intro-header .medicine-main-title {
                font-size: 24px;
                line-height: 32px;
            }

            .medicine-controls-card {
                padding: 14px 16px;
            }

            .medicine-controls-container {
                flex-direction: column;
                align-items: stretch;
                gap: 14px;
            }

            .medicine-search-wrapper {
                flex: 1 1 100%;
                max-width: 100%;
                width: 100%;
            }

            .medicine-perpage-wrapper {
                margin-left: auto !important;
                margin-right: 0 !important;
                align-self: flex-end !important;
            }

            .medicine-pagination-bar {
                flex-direction: column;
                align-items: center;
                text-align: center;
                gap: 14px;
            }

            .pagination-buttons-group {
                justify-content: center;
            }

            .pagination-btn {
                min-width: 34px;
                height: 34px;
                font-size: 13px;
                padding: 0 8px;
            }

            .pagination-btn-nav {
                padding: 0 10px;
            }
        }

        @media (max-width: 420px) {
            .medicine-perpage-wrapper {
                gap: 6px !important;
                font-size: 13px !important;
            }

            .medicine-perpage-wrapper label,
            .medicine-perpage-wrapper span {
                font-size: 13px !important;
            }

            .page-size-select {
                height: 38px !important;
                width: 72px !important;
                min-width: 72px !important;
                font-size: 13px !important;
                padding: 0 24px 0 10px !important;
            }
        }
