/* ===================================
   DIAGNOSTIC CENTER WEBSITE CSS
   =================================== */

/* CSS Variables */
:root {
 --primary-color: #cc0000c9;
    --secondary-color: #a89200ea;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* Top Bar */
.top-bar {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.top-bar a {
    color: var(--white);
    margin-right: 20px;
    font-size: 14px;
}

.top-bar a:hover {
    color: var(--secondary-color);
}

.top-bar i {
    margin-right: 5px;
}

.top-contact a,
.top-links a {
    display: inline-block;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
}

/* =========================
   BRAND / LOGO
========================= */
.brand-wrapper {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    width: 42px;
    height: auto;
    margin-right: 10px;
}

/* Text container */
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

/* Main brand name */
.brand-name {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* Color styling */
.brand-dr {
    color: #e53935; /* red */
}

.brand-rr {
    color: #e53935; /* red */
}

.brand-lab {
    color: #2e7d32; /* green */
}

/* Tagline */
.brand-tagline {
    font-size: 12px;
    font-style: italic;
    color: #555;
    margin-top: 2px;
}

/* Hover safety */
.navbar-brand:hover {
    text-decoration: none;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .brand-name {
        font-size: 20px;
    }

    .brand-tagline {
        font-size: 11px;
    }
}


.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 25px;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #c04444 0%, #a29a4b 100%);
    padding: 80px 0;
    color: var(--white);
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.9);
}

.hero-buttons .btn {
    margin-right: 15px;
    margin-bottom: 10px;
}

.hero-buttons .btn-light {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Features Section */
.features-section {
    background-color: var(--white);
}

.feature-box {
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.feature-box:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 32px;
}

.feature-box h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.feature-box p {
    color: var(--text-light);
    font-size: 14px;
}

/* Section Header */
.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
}

/* Test Card */
.test-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.test-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.test-card h5 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 15px;
}

.test-description {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
}

.test-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
}

.test-time {
    color: var(--text-light);
    font-size: 14px;
}

.test-price {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 700;
}
.test-option {
    transition: all 0.2s ease;
    cursor: pointer;
}

.test-option:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.test-option input[type="checkbox"]:checked + label {
    font-weight: 600;
}

.btn-check:checked + .btn-outline-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-check:checked + .btn-outline-success {
    background-color: #198754;
    border-color: #198754;
}

.btn-check:checked + .btn-outline-info {
    background-color: #0dcaf0;
    border-color: #0dcaf0;
}

#selectedTestsList .badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.test-option[data-type="package"] .form-check-input:checked {
    background-color: #198754;
    border-color: #198754;
}

/* Package Card */
.package-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    border: 2px solid transparent;
}

.package-card:hover {
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    transform: translateY(-10px);
}

.package-card.featured {
    border-color: var(--primary-color);
    box-shadow: 0 5px 30px rgba(0,102,204,0.2);
}

.package-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.package-card h4 {
    color: var(--text-dark);
    font-size: 22px;
    margin-bottom: 10px;
}

.package-tests {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 20px;
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.package-features li {
    padding: 10px 0;
    color: var(--text-dark);
    font-size: 14px;
}

.package-features i {
    color: var(--success-color);
    margin-right: 10px;
}

.package-price {
    text-align: center;
    padding: 20px 0;
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
    margin: 20px 0;
}

.price-old {
    color: var(--text-light);
    text-decoration: line-through;
    font-size: 18px;
    margin-right: 10px;
}

.price-new {
    color: var(--primary-color);
    font-size: 32px;
    font-weight: 700;
}

/* Why Choose Section */
.why-item {
    display: flex;
    margin-bottom: 20px;
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.why-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    margin-right: 20px;
}

.why-content h5 {
    font-size: 18px;
    margin-bottom: 10px;
}

.why-content p {
    color: var(--text-light);
    font-size: 14px;
    margin: 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

/* Testimonials Section */
.testimonials-section { background: #f8f9fa; }

.testimonials-slider-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 50px;
}

.testimonials-slider {
    overflow: hidden;
    position: relative;
}

.testimonial-slide {
    display: none;
    animation: fadeSlide 0.4s ease;
}
.testimonial-slide.active { display: block; }

@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    border-top: 4px solid #c62828;
    position: relative;
    text-align: center;
}

.quote-icon {
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: #c62828;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.testimonial-text {
    font-size: 16px;
    color: #555;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 24px;
}

.testimonial-author {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #c62828;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
}

/* Nav buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #c62828;
    background: white;
    color: #c62828;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}
.slider-btn:hover { background: #c62828; color: white; }
.slider-prev { left: 0; }
.slider-next { right: 0; }

/* Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}
.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}
.slider-dot.active {
    background: #c62828;
    transform: scale(1.2);
}
/* Testimonials Section */

/* Form Styles */
.form-control,
.form-select {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0,102,204,0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dark);
}

/* Alert Styles */
.alert {
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: rgba(255,255,255,0.8);
}

.footer-top {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-title {
    color: var(--white);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-widget p {
    font-size: 14px;
    line-height: 1.8;
}

.footer-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: var(--white);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary-color);
}

.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    font-size: 14px;
}

.footer-contact i {
    color: var(--secondary-color);
    margin-right: 15px;
    font-size: 16px;
    width: 20px;
}

.footer-bottom {
    background-color: rgba(0,0,0,0.2);
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
}

.footer-bottom-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-bottom-links li {
    display: inline-block;
    margin-left: 20px;
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

.footer-bottom-links a:hover {
    color: var(--white);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    display: none;
    z-index: 999;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-5px);
}

.back-to-top.show {
    display: block;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 60px 0;
    color: var(--white);
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    font-size: 42px;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 10px 0 0;
    justify-content: center;
}

.breadcrumb-item,
.breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

.breadcrumb-item.active {
    color: var(--white);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.6);
}

/* Content Section */
.content-section {
    padding: 60px 0;
}

/* About Page Styles */
.about-content {
    font-size: 16px;
    line-height: 1.8;
}

.about-stats {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
}

.stat-item {
    margin-bottom: 20px;
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: 16px;
    color: var(--text-light);
}

/* Contact Page */
.contact-info-box {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.contact-info-box:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 28px;
}

.contact-info-box h5 {
    font-size: 18px;
    margin-bottom: 10px;
}

.contact-info-box p {
    color: var(--text-light);
    margin: 0;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

/* Test Filter */
.test-filter {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    position: sticky;
    top: 90px; /* adjust based on your header height */
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.filter-group {
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-title {
        font-size: 36px;
    }
    
    .top-bar .text-end {
        text-align: start !important;
        margin-top: 10px;
    }
    
    .footer-widget {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
}

/* Error Pages */
.error-page {
    padding: 40px 0;
}

.error-page .error-code {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-search .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0,102,204,0.25);
}


/* ============================================
   ADMIN LOGIN PAGE
   ============================================ */
.admin-login-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    max-width: 900px;
    width: 100%;
}

.login-left {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-right {
    padding: 60px 40px;
}

.login-logo {
    font-size: 48px;
    margin-bottom: 20px;
}

.btn-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.feature-item i {
    font-size: 24px;
    margin-right: 15px;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .login-left { padding: 30px 20px; }
    .login-right { padding: 30px 20px; }
}


/* ============================================
   ADMIN PANEL
   ============================================ */
.admin-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 0;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.admin-header h2 {
    color: white;
    margin-bottom: 0;
}

.stat-card {
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.stat-card.today {
    border-left-color: #28a745;
}

.stat-card.test-stat {
    border-left-color: #17a2b8;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
}

.stat-card.today .stat-number {
    color: #28a745;
}

.stat-card.test-stat .stat-number {
    color: #17a2b8;
}

.admin-table-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filter-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.btn-action {
    padding: 5px 10px;
    font-size: 12px;
}

.action-buttons a {
    margin-right: 5px;
}

.nav-tabs .nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.pagination {
    margin-bottom: 0;
}

.active-filter-badge {
    display: inline-block;
    margin-left: 5px;
    padding: 2px 8px;
    background: #667eea;
    color: white;
    border-radius: 12px;
    font-size: 11px;
}

.test-stats-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.test-stats-list li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.test-stats-list li:last-child {
    border-bottom: none;
}


/* ============================================
   INVOICE STYLES
   ============================================ */

@media screen {
    .invoice-screen-wrapper { background: #f5f5f5; padding: 20px 0; }

    .action-buttons {
        max-width: 210mm;
        margin: 0 auto 20px;
        display: flex;
        gap: 10px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .page { box-shadow: 0 0 15px rgba(0,0,0,0.15); margin-bottom: 20px; }

    .item-row {
        background: #f8f9fa;
        padding: 15px;
        margin-bottom: 10px;
        border-radius: 5px;
        border-left: 3px solid #667eea;
    }

    .total-display {
        background: #e7f3ff;
        padding: 15px;
        border-radius: 5px;
        font-size: 18px;
        font-weight: bold;
    }

    .autocomplete-suggestions {
        border: 1px solid #ddd;
        max-height: 200px;
        overflow-y: auto;
        position: absolute;
        background: white;
        z-index: 1000;
        width: 100%;
        display: none;
        border-radius: 0 0 5px 5px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .autocomplete-suggestion {
        padding: 10px;
        cursor: pointer;
        border-bottom: 1px solid #eee;
        font-size: 13px;
    }

    .autocomplete-suggestion:hover { background: #f0f0f0; }
    .autocomplete-suggestion strong { color: #667eea; }
}

/* Shared */
.page {
    width: 210mm;
    min-height: 297mm;
    padding: 15mm;
    margin: 0 auto;
    background: white;
    position: relative;
    font-family: 'Arial', sans-serif;
    font-size: 10pt;
    line-height: 1.5;
    color: #000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 10px;
    border-bottom: 2px solid #c62828;
    margin-bottom: 15px;
}

.logo-section { display: flex; align-items: center; }
.logo { width: 50px; height: 50px; margin-right: 12px; }

.lab-name { font-size: 16pt; font-weight: bold; margin-bottom: 2px; }
.lab-name .dr  { color: #c62828; }
.lab-name .rr  { color: #1976d2; }
.lab-name .lab { color: #c62828; }

.company-info { font-size: 8pt; color: #333; line-height: 1.4; margin-top: 3px; }
.header-right { text-align: right; font-size: 9pt; line-height: 1.8; }

.info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
}

.info-box { border: 1px solid #000; padding: 10px; }
.info-box h3 { font-size: 9pt; color: #c62828; margin-bottom: 8px; font-weight: bold; }
.info-item { display: flex; margin-bottom: 3px; font-size: 8pt; line-height: 1.4; }
.info-label { font-weight: bold; width: 100px; }

.invoice-table { width: 100%; border-collapse: collapse; margin: 15px 0; }
.invoice-table th {
    padding: 8px;
    text-align: left;
    font-size: 9pt;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    font-weight: bold;
    color: #555;
}
.invoice-table td { padding: 8px; border-bottom: 1px solid #ddd; font-size: 9pt; }
.invoice-table tbody tr:last-child td { border-bottom: 1px solid #000; }

.totals-section { float: right; width: 40%; margin-top: 10px; font-size: 9pt; }
.total-row { display: flex; justify-content: space-between; padding: 5px 0; line-height: 1.6; }
.total-row.grand {
    font-weight: bold;
    font-size: 10pt;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    padding: 8px 0;
    margin: 5px 0;
}

.amount-words {
    clear: both;
    margin-top: 15px;
    padding: 8px;
    border: 1px solid #000;
    font-size: 8pt;
    font-weight: bold;
}

.payment-section { margin-top: 20px; padding: 8px; border: 1px solid #000; font-size: 8pt; }

.invoice-footer {
    margin-top: 25px;
    padding-top: 12px;
    border-top: 1px solid #000;
    font-size: 7pt;
    color: #333;
    page-break-inside: avoid;
}

.footer-notes strong { display: block; margin-bottom: 5px; font-size: 8pt; }
.footer-notes ul { margin-left: 15px; line-height: 1.5; }
.footer-notes li { margin-bottom: 2px; }

.footer-contact {
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
    color: #c62828;
    font-size: 8pt;
    padding-top: 8px;
    border-top: 1px solid #ddd;
}

/* Print */
@media print {
    body { margin: 0; padding: 0; background: white; }
    .no-print { display: none !important; }
    .page { margin: 0; box-shadow: none; padding: 10mm; width: 100%; }
    @page { size: A4; margin: 0; }
}

/* ============================================
   INVOICE STYLES END
   ============================================ */