/* ==========================================================================
   Weekly Timesheet Calculator - Enterprise Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
    --ts-primary: #0066cc;
    --ts-primary-dark: #004d99;
    --ts-primary-light: #e6f2ff;
    --ts-success: #0d9488;
    --ts-success-dark: #0a756b;
    --ts-success-light: #ccf5f2;
    --ts-warning: #d97706;
    --ts-warning-light: #fef3c7;
    --ts-danger: #dc2626;
    --ts-gray-50: #f9fafb;
    --ts-gray-100: #f3f4f6;
    --ts-gray-200: #e5e7eb;
    --ts-gray-300: #d1d5db;
    --ts-gray-400: #9ca3af;
    --ts-gray-500: #6b7280;
    --ts-gray-600: #4b5563;
    --ts-gray-700: #374151;
    --ts-gray-800: #1f2937;
    --ts-gray-900: #111827;
    --ts-white: #ffffff;
    --ts-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --ts-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --ts-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --ts-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --ts-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --ts-radius-sm: 0.25rem;
    --ts-radius: 0.5rem;
    --ts-radius-lg: 0.75rem;
    --ts-radius-xl: 1rem;
    --ts-transition: all 0.2s ease-in-out;
}

/* --------------------------------------------------------------------------
   Page Layout & Container
   -------------------------------------------------------------------------- */
.timesheet-calculator {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.timesheet-calculator h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--ts-gray-900);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.timesheet-intro {
    font-size: 1.125rem;
    color: var(--ts-gray-600);
    line-height: 1.75;
    margin-bottom: 2.5rem;
    max-width: 900px;
}

/* --------------------------------------------------------------------------
   Form Card Container
   -------------------------------------------------------------------------- */
.timesheet-form-card {
    background: var(--ts-white);
    border: 1px solid var(--ts-gray-200);
    border-radius: var(--ts-radius-xl);
    box-shadow: var(--ts-shadow-lg);
    overflow: hidden;
    margin-bottom: 3rem;
}

/* --------------------------------------------------------------------------
   Employee Information Section
   -------------------------------------------------------------------------- */
.employee-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-bottom: 3px solid var(--ts-primary);
}

.employee-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--ts-gray-900);
}

.employee-section-title svg {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    color: var(--ts-primary);
}

.employee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.employee-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.employee-field label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ts-gray-700);
}

.employee-field input {
    padding: 0.75rem 1rem;
    border: 2px solid var(--ts-gray-300);
    border-radius: var(--ts-radius);
    background: var(--ts-white);
    color: var(--ts-gray-900);
    font-size: 1rem;
    transition: var(--ts-transition);
}

.employee-field input::placeholder {
    color: var(--ts-gray-400);
}

.employee-field input:focus {
    outline: none;
    border-color: var(--ts-primary);
    box-shadow: 0 0 0 3px var(--ts-primary-light);
}

/* --------------------------------------------------------------------------
   Time Entry Section
   -------------------------------------------------------------------------- */
.time-entry-section {
    padding: 2rem;
}

.time-entry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--ts-gray-200);
}

.time-entry-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ts-gray-800);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.time-entry-title svg {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    color: var(--ts-primary);
}

.quick-fill-group {
    display: flex;
    gap: 0.5rem;
}

.quick-fill-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid var(--ts-gray-300);
    border-radius: var(--ts-radius);
    background: var(--ts-white);
    color: var(--ts-gray-600);
    cursor: pointer;
    transition: var(--ts-transition);
}

.quick-fill-btn:hover {
    background: var(--ts-gray-50);
    border-color: var(--ts-primary);
    color: var(--ts-primary);
}

/* --------------------------------------------------------------------------
   Day Entry Cards
   -------------------------------------------------------------------------- */
.days-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.day-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    background: var(--ts-white);
    border: 1px solid var(--ts-gray-200);
    border-radius: var(--ts-radius-lg);
    overflow: hidden;
    transition: var(--ts-transition);
}

.day-card:hover {
    border-color: var(--ts-primary);
    box-shadow: var(--ts-shadow-md);
}

.day-card.weekend {
    background: var(--ts-gray-50);
}

.day-card.non-working {
    background: var(--ts-gray-100);
    opacity: 0.7;
}

.day-card.non-working:hover {
    border-color: var(--ts-gray-400);
}

.day-card.non-working .day-inputs input {
    background: var(--ts-gray-100);
    color: var(--ts-gray-400);
    pointer-events: none;
}

.day-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 1.25rem;
    background: var(--ts-gray-50);
    border-right: 1px solid var(--ts-gray-200);
}

.day-card:hover .day-label {
    background: var(--ts-primary-light);
}

.day-card.non-working .day-label {
    background: var(--ts-gray-200);
}

.day-card.non-working:hover .day-label {
    background: var(--ts-gray-200);
}

.day-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ts-gray-800);
}

.day-date {
    font-size: 0.8125rem;
    color: var(--ts-gray-500);
    margin-top: 0.25rem;
}

.day-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.day-toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--ts-primary);
    cursor: pointer;
}

.day-toggle label {
    font-size: 0.75rem;
    color: var(--ts-gray-500);
    cursor: pointer;
    user-select: none;
}

.day-inputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem 1.25rem;
    align-items: center;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.input-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ts-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.input-group input {
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--ts-gray-300);
    border-radius: var(--ts-radius);
    font-size: 0.9375rem;
    color: var(--ts-gray-800);
    transition: var(--ts-transition);
    width: 100%;
    box-sizing: border-box;
}

.input-group input:focus {
    outline: none;
    border-color: var(--ts-primary);
    box-shadow: 0 0 0 3px var(--ts-primary-light);
}

.input-group input[type="number"] {
    -moz-appearance: textfield;
}

.input-group input[type="number"]::-webkit-outer-spin-button,
.input-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* --------------------------------------------------------------------------
   Action Buttons
   -------------------------------------------------------------------------- */
.form-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--ts-gray-50);
    border-top: 1px solid var(--ts-gray-200);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--ts-radius-lg);
    border: none;
    cursor: pointer;
    transition: var(--ts-transition);
    text-decoration: none;
}

.btn svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.btn-primary {
    background: linear-gradient(135deg, var(--ts-primary) 0%, var(--ts-primary-dark) 100%);
    color: var(--ts-white);
    box-shadow: var(--ts-shadow-md), 0 4px 14px rgba(0, 102, 204, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--ts-shadow-lg), 0 6px 20px rgba(0, 102, 204, 0.35);
}

.btn-success {
    background: linear-gradient(135deg, var(--ts-success) 0%, var(--ts-success-dark) 100%);
    color: var(--ts-white);
    box-shadow: var(--ts-shadow-md), 0 4px 14px rgba(13, 148, 136, 0.25);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: var(--ts-shadow-lg), 0 6px 20px rgba(13, 148, 136, 0.35);
}

.btn-outline {
    background: var(--ts-white);
    color: var(--ts-gray-700);
    border: 2px solid var(--ts-gray-300);
}

.btn-outline:hover {
    border-color: var(--ts-primary);
    color: var(--ts-primary);
    background: var(--ts-primary-light);
}

/* --------------------------------------------------------------------------
   Results Section
   -------------------------------------------------------------------------- */
.results-section {
    margin-bottom: 3rem;
}

.results-card {
    background: var(--ts-white);
    border: 2px solid var(--ts-primary);
    border-radius: var(--ts-radius-xl);
    box-shadow: var(--ts-shadow-xl);
    overflow: hidden;
}

.results-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem 2rem;
    border-bottom: 3px solid var(--ts-primary);
}

.results-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--ts-gray-900);
}

.results-subtitle {
    font-size: 0.9375rem;
    margin-top: 0.25rem;
    color: var(--ts-gray-600);
}

.results-body {
    padding: 2rem;
}

/* Employee Info Display */
.employee-info-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1.25rem;
    background: var(--ts-gray-50);
    border-radius: var(--ts-radius-lg);
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ts-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.info-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--ts-gray-800);
}

/* Daily Breakdown Table */
.breakdown-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ts-gray-800);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    color: var(--ts-primary);
}

.timesheet-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--ts-gray-200);
    border-radius: var(--ts-radius-lg);
    overflow: hidden;
    font-size: 0.9375rem;
}

.timesheet-table thead {
    background: var(--ts-gray-800);
}

.timesheet-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--ts-white);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.timesheet-table tbody tr {
    border-bottom: 1px solid var(--ts-gray-200);
    transition: var(--ts-transition);
}

.timesheet-table tbody tr:last-child {
    border-bottom: none;
}

.timesheet-table tbody tr:hover {
    background: var(--ts-primary-light);
}

.timesheet-table tbody tr.non-work-day {
    background: var(--ts-gray-50);
    color: var(--ts-gray-400);
}

.timesheet-table tbody tr.non-work-day:hover {
    background: var(--ts-gray-100);
}

.timesheet-table td {
    padding: 0.875rem 1rem;
    color: var(--ts-gray-700);
}

.timesheet-table td:first-child {
    font-weight: 600;
    color: var(--ts-gray-800);
}

.timesheet-table td:last-child {
    font-weight: 700;
    color: var(--ts-primary);
}

.timesheet-table tbody tr.non-work-day td:last-child {
    color: var(--ts-gray-400);
}

/* Summary Cards Grid */
.totals-section {
    margin-bottom: 2rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.summary-card {
    background: var(--ts-white);
    border: 1px solid var(--ts-gray-200);
    border-radius: var(--ts-radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: var(--ts-transition);
}

.summary-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ts-shadow-lg);
}

.summary-card.highlight {
    background: linear-gradient(135deg, var(--ts-success-light) 0%, #e6fffa 100%);
    border-color: var(--ts-success);
}

.summary-card.overtime {
    background: var(--ts-warning-light);
    border-color: var(--ts-warning);
}

.summary-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ts-gray-100);
    border-radius: 50%;
}

.summary-card.highlight .summary-icon {
    background: var(--ts-success);
    color: var(--ts-white);
}

.summary-card.overtime .summary-icon {
    background: var(--ts-warning);
    color: var(--ts-white);
}

.summary-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
}

.summary-metric {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ts-gray-800);
    line-height: 1;
}

.summary-card.highlight .summary-metric {
    color: var(--ts-success-dark);
}

.summary-card.overtime .summary-metric {
    color: var(--ts-warning);
}

.summary-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ts-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-top: 0.5rem;
}

.summary-sublabel {
    font-size: 0.75rem;
    color: var(--ts-gray-400);
    margin-top: 0.25rem;
}

/* Results Footer */
.results-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ts-gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.timestamp {
    font-size: 0.8125rem;
    color: var(--ts-gray-500);
}

.results-actions {
    display: flex;
    gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   SEO Content Section
   -------------------------------------------------------------------------- */
.seo-content {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--ts-gray-200);
}

.seo-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--ts-gray-900);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.seo-content h2:first-child {
    margin-top: 0;
}

.seo-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ts-gray-800);
    margin-bottom: 0.5rem;
}

.seo-content p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--ts-gray-600);
    margin-bottom: 1rem;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: var(--ts-white);
    border: 1px solid var(--ts-gray-200);
    border-radius: var(--ts-radius-lg);
    padding: 1.5rem;
    transition: var(--ts-transition);
}

.feature-card:hover {
    box-shadow: var(--ts-shadow-lg);
    border-color: var(--ts-primary);
}

.feature-card-header {
    margin-bottom: 1rem;
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ts-primary-light);
    border-radius: var(--ts-radius);
    margin-bottom: 1rem;
}

.feature-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    color: var(--ts-primary);
}

.feature-card h4 {
    color: var(--ts-gray-900);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--ts-gray-600);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
}

.benefit-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--ts-gray-50);
    border-radius: var(--ts-radius);
    border: 1px solid var(--ts-gray-200);
}

.benefit-icon {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ts-success-light);
    border-radius: 50%;
}

.benefit-icon svg {
    width: 1rem;
    height: 1rem;
    color: var(--ts-success);
}

.benefit-item h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.benefit-item p {
    font-size: 0.875rem;
    margin: 0;
}

/* Steps Guide */
.steps-guide {
    margin: 2rem 0;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step-number {
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ts-primary);
    color: var(--ts-white);
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50%;
}

.step-content h4 {
    margin-bottom: 0.5rem;
}

.step-content p {
    margin: 0;
}

/* FAQ Section */
.faq-section {
    margin: 2rem 0;
}

.faq-item {
    background: var(--ts-white);
    border: 1px solid var(--ts-gray-200);
    border-radius: var(--ts-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.faq-question {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ts-gray-900);
    margin-bottom: 0.75rem;
}

.faq-answer {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--ts-gray-600);
    margin: 0;
}

/* CTA Section */
.cta-section {
    margin: 3rem 0;
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--ts-primary-light) 0%, #e6f7ff 100%);
    border-radius: var(--ts-radius-xl);
    text-align: center;
}

.cta-section h2 {
    margin-top: 0;
}

.cta-section p {
    font-size: 1.125rem;
    max-width: 800px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Printable Timesheet - Screen Styles (Hidden)
   -------------------------------------------------------------------------- */
.printable-timesheet {
    display: none;
}

/* Print Signature Section - visible on screen and print */
.print-signature-section {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ts-gray-200);
}

.signature-line {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.signature-line span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ts-gray-700);
}

.signature-underline {
    border-bottom: 2px solid var(--ts-gray-800);
    padding-top: 2rem;
}

/* Print Header Row - visible on screen and print */
.print-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.print-logo-container {
    display: none; /* Hidden on screen, shown in print */
}

.print-logo-img {
    width: 28px;
    height: auto;
}

.print-logo-text {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    letter-spacing: 0.5px;
}

.print-title-container {
    flex: 1;
}

.print-footer-section {
    display: none; /* Hidden on screen, shown in print */
}

/* --------------------------------------------------------------------------
   Print Styles - CSS-Only Architecture (Reliable Across All Browsers)
   -------------------------------------------------------------------------- */
@media print {
    /* ===== PAGE SETUP - LANDSCAPE ===== */
    @page {
        size: letter landscape;
        margin: 0.5in;
    }

    /* ===== FORCE PRINT COLORS ===== */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* ===== RESET BODY & HTML ===== */
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
        overflow: visible !important;
    }

    /* ===== HIDE LAYOUT STRUCTURE ===== */
    /* Hide header, footer, navigation from layout */
    header, footer, nav,
    .header, .footer, .navigation,
    [role="navigation"],
    [role="banner"],
    [role="contentinfo"] {
        display: none !important;
    }

    /* ===== HIDE SCREEN CONTENT FROM PAGE ===== */
    #pageTitle,
    #pageIntro,
    #formCard,
    #timeEntrySection,
    #formActions,
    #screenActions,
    #seoContent,
    .no-print {
        display: none !important;
    }

    /* ===== HIDE CONTAINER PADDING/MARGINS ===== */
    .container,
    .container-fluid,
    .container-md-80,
    #content {
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* ===== HIDE EVERYTHING, THEN SHOW ONLY TIMESHEET ===== */
    body > * {
        display: none !important;
    }

    /* Show only the container that has our timesheet */
    body > .container-fluid {
        display: block !important;
    }

    /* Within container, hide everything except main content */
    .container-fluid > * {
        display: none !important;
    }

    .container-fluid > main {
        display: block !important;
    }

    /* Within main, hide everything except timesheet calculator */
    main > * {
        display: none !important;
    }

    main > .timesheet-calculator {
        display: block !important;
    }

    /* Within timesheet calculator, hide everything except results */
    .timesheet-calculator > * {
        display: none !important;
    }

    .timesheet-calculator > #resultsSection {
        display: block !important;
    }

    /* ===== SHOW PRINTABLE CONTENT ===== */
    #resultsSection,
    #resultsSection * {
        display: revert !important;
    }

    #printableTimesheetContent {
        display: block !important;
    }

    /* ===== REMOVE ALL ROUNDED CORNERS & BORDERS ===== */
    * {
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    /* ===== PRINT HEADER ===== */
    #printHeader {
        display: block !important;
        padding: 10px 15px 12px 15px !important;
        border-bottom: 2px solid #000;
        margin-bottom: 15px;
        page-break-after: avoid;
        border-radius: 0 !important;
    }

    .print-header-row {
        display: flex !important;
        justify-content: space-between;
        align-items: flex-start;
    }

    .print-logo-container {
        display: flex !important;
        align-items: center;
        gap: 8px;
        padding-right: 15px;
    }

    .print-logo-img {
        width: 24px;
        height: auto;
        border-radius: 0 !important;
    }

    .print-logo-text {
        font-size: 14px;
        font-weight: 700;
        color: #000;
    }

    .print-title-container {
        text-align: right;
        padding-left: 15px;
    }

    #printTitle {
        font-size: 16px !important;
        font-weight: 700 !important;
        color: #000 !important;
        margin: 0 !important;
    }

    #printSubtitle {
        font-size: 11px !important;
        color: #333 !important;
        margin: 2px 0 0 0 !important;
    }

    /* ===== PRINT BODY ===== */
    #printBody {
        display: block !important;
        border-radius: 0 !important;
    }

    /* ===== EMPLOYEE INFO ===== */
    #printEmployeeInfo {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px 15px;
        padding: 10px;
        background: #f5f5f5 !important;
        border: 1px solid #999 !important;
        border-radius: 0 !important;
        margin-bottom: 12px;
        page-break-inside: avoid;
    }

    .info-item {
        display: flex !important;
        gap: 6px;
        font-size: 10px !important;
    }

    .info-label {
        font-weight: 700 !important;
        color: #000 !important;
    }

    .info-value {
        color: #333 !important;
    }

    /* ===== SECTION HEADERS ===== */
    .section-title {
        font-size: 11px !important;
        font-weight: 700 !important;
        color: #000 !important;
        margin: 12px 0 6px 0 !important;
    }

    .section-title svg {
        display: none !important;
    }

    /* ===== TIMESHEET TABLE ===== */
    #printBreakdown {
        display: block !important;
        margin-bottom: 12px;
    }

    #printTable {
        display: table !important;
        width: 100%;
        border-collapse: collapse;
        font-size: 9px !important;
        page-break-inside: avoid;
        border-radius: 0 !important;
    }

    #printTable thead {
        display: table-header-group !important;
    }

    #printTable tbody {
        display: table-row-group !important;
    }

    #printTable tr {
        display: table-row !important;
        page-break-inside: avoid;
    }

    #printTable th {
        display: table-cell !important;
        background: #333 !important;
        color: #fff !important;
        padding: 6px;
        text-align: left;
        font-weight: 700 !important;
        border: 1px solid #333 !important;
        border-radius: 0 !important;
    }

    #printTable td {
        display: table-cell !important;
        padding: 5px 6px;
        border: 1px solid #999 !important;
        color: #000 !important;
        border-radius: 0 !important;
    }

    #printTable tbody tr:nth-child(even) {
        background: #f9f9f9 !important;
    }

    #printTable tbody tr.non-work-day {
        background: #eee !important;
    }

    #printTable tbody tr.non-work-day td {
        color: #666 !important;
    }

    /* ===== WEEKLY SUMMARY ===== */
    #printTotals {
        display: block !important;
        margin-bottom: 12px;
    }

    #printTotals .summary-grid {
        display: grid !important;
        grid-template-columns: repeat(6, 1fr);
        gap: 8px;
        page-break-inside: avoid;
    }

    #printTotals .summary-card {
        display: block !important;
        text-align: center;
        padding: 8px;
        border: 1px solid #333 !important;
        border-radius: 0 !important;
        background: #f5f5f5 !important;
    }

    #printTotals .summary-icon {
        display: none !important;
    }

    #printTotals .summary-metric {
        display: block !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        color: #000 !important;
        margin-bottom: 2px;
    }

    #printTotals .summary-label {
        display: block !important;
        font-size: 8px !important;
        color: #333 !important;
        text-transform: uppercase;
    }

    #printTotals .summary-sublabel {
        display: block !important;
        font-size: 7px !important;
        color: #666 !important;
        margin-top: 2px;
    }

    /* ===== SIGNATURES ===== */
    #printSignatures {
        display: flex !important;
        gap: 20px;
        margin-top: 20px;
        page-break-inside: avoid;
    }

    #printSignatures .signature-line {
        flex: 1;
        display: block !important;
    }

    #printSignatures .signature-line span {
        display: block !important;
        font-size: 8px !important;
        color: #333 !important;
        margin-bottom: 3px;
    }

    #printSignatures .signature-underline {
        border-top: 1px solid #000 !important;
        border-radius: 0 !important;
        height: 25px;
    }

    /* ===== FOOTER ===== */
    #resultsFooter {
        margin-top: 15px;
        padding: 10px 15px 8px 15px !important;
        border-top: 1px solid #999 !important;
        border-radius: 0 !important;
    }

    #printTimestamp {
        display: block !important;
        font-size: 7px !important;
        color: #666 !important;
        text-align: center;
        margin-bottom: 6px;
    }

    #printFooter {
        display: flex !important;
        justify-content: space-between;
        font-size: 7px !important;
        color: #666 !important;
        border-radius: 0 !important;
        padding: 0 5px !important;
    }

    #printFooter span {
        padding: 0 10px;
    }

    .print-branding {
        font-weight: 700 !important;
        color: #000 !important;
    }

    /* ===== HIDE RESULTS ACTIONS ===== */
    #screenActions {
        display: none !important;
    }

    /* ===== ENSURE SINGLE PAGE - NO ROUNDED CORNERS ===== */
    .timesheet-calculator {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }

    .results-card {
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .results-header {
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }

    .results-body {
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }

    .results-section {
        border-radius: 0 !important;
    }

    #printableTimesheetContent {
        border-radius: 0 !important;
    }
}

/* --------------------------------------------------------------------------
   Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .day-card {
        grid-template-columns: 1fr;
    }

    .day-label {
        border-right: none;
        border-bottom: 1px solid var(--ts-gray-200);
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .day-date {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .timesheet-calculator {
        padding: 1rem;
    }

    .timesheet-calculator h1 {
        font-size: 1.75rem;
    }

    .employee-section {
        padding: 1.5rem;
    }

    .time-entry-section {
        padding: 1.5rem;
    }

    .day-inputs {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .form-actions {
        flex-direction: column;
        padding: 1.5rem;
    }

    .btn {
        width: 100%;
    }

    .results-body {
        padding: 1.5rem;
    }

    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .results-footer {
        flex-direction: column;
        text-align: center;
    }

    .results-actions {
        width: 100%;
        flex-direction: column;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .seo-content h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }

    .employee-info-display {
        grid-template-columns: 1fr;
    }

    .quick-fill-group {
        display: none;
    }

    .step-item {
        flex-direction: column;
        gap: 1rem;
    }
}
