/* Print stylesheet for SlotJolt schedules */
@media print {
    /* Hide navigation and interactive elements */
    nav.bg-gray-800,
    form[action="/logout"],
    button,
    [hx-post],
    [hx-delete],
    [hx-get]:not(main *),
    .no-print {
        display: none !important;
    }

    /* Reset backgrounds and colors for clean printing */
    html,
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
    }

    /* Remove max-width constraints for full-page use */
    .max-w-7xl {
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Adjust main content for paper */
    main {
        padding: 0 !important;
    }

    main > div {
        padding: 10px !important;
    }

    /* Schedule grid adjustments for paper */
    .grid-cols-7 {
        display: grid !important;
        grid-template-columns: repeat(7, 1fr) !important;
        gap: 4px !important;
        page-break-inside: avoid;
    }

    /* Day columns */
    .grid-cols-7 > div {
        background: white !important;
        border: 1px solid #333 !important;
        box-shadow: none !important;
        min-height: auto !important;
        page-break-inside: avoid;
    }

    /* Day headers */
    .grid-cols-7 > div > div:first-child {
        background: #f0f0f0 !important;
        border-bottom: 1px solid #333 !important;
        padding: 4px !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Today indicator - use border instead of ring */
    .ring-2.ring-blue-500 {
        border: 2px solid black !important;
        box-shadow: none !important;
    }

    /* Shift cards */
    .rounded-md.border-l-4 {
        background: white !important;
        border: 1px solid #666 !important;
        border-left-width: 4px !important;
        margin-bottom: 4px !important;
        padding: 4px !important;
        page-break-inside: avoid;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Ensure text is readable */
    .text-gray-900,
    .text-gray-700,
    .text-gray-600,
    .text-gray-500 {
        color: black !important;
    }

    /* Status badges - ensure visibility */
    .bg-yellow-50,
    .bg-green-50 {
        background: #f0f0f0 !important;
        border: 1px solid #666 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Hide unfilled warnings icons but keep text */
    .text-amber-600 svg {
        display: none;
    }

    /* Hide add shift buttons and dropdowns */
    .border-dashed,
    [x-data] > div[x-show],
    .relative[x-data] {
        display: none !important;
    }

    /* Links should appear as plain text */
    a {
        color: black !important;
        text-decoration: none !important;
    }

    /* Hide navigation arrows in week selector */
    a[title] svg {
        display: none;
    }

    /* Week navigation - show only week display text */
    .flex.items-center.gap-2 > a {
        display: none !important;
    }

    /* Page title styling */
    h1 {
        font-size: 16pt !important;
        margin-bottom: 10px !important;
    }

    /* Control area (location selector, etc.) */
    .bg-white.rounded-lg.shadow {
        background: white !important;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        padding: 8px !important;
        margin-bottom: 10px !important;
    }

    /* Hide select dropdowns (non-functional when printed) */
    select {
        display: none !important;
    }

    /* Show location name as text instead */
    select + input[type="hidden"] {
        display: none !important;
    }

    /* Page setup */
    @page {
        size: landscape;
        margin: 0.5in;
    }

    /* Prevent page breaks inside key elements */
    .space-y-6 > * {
        page-break-inside: avoid;
    }

    /* Conflict warnings - print with border */
    .bg-amber-50 {
        background: white !important;
        border: 1px dashed #666 !important;
    }

    /* My Schedule and My Hours pages */
    .divide-y > * {
        border-color: #ccc !important;
    }

    /* Tables for hours summary */
    table {
        border-collapse: collapse !important;
    }

    th,
    td {
        border: 1px solid #ccc !important;
        padding: 4px 8px !important;
    }

    thead {
        background: #f0f0f0 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Summary cards */
    .bg-white.rounded-xl,
    .bg-blue-50,
    .bg-green-50,
    .bg-purple-50 {
        background: white !important;
        border: 1px solid #ccc !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
