:root {
    --factory-seokjeon-label: #e2f2dc;
}

@media screen {
    html {
        scrollbar-gutter: stable;
    }
}

.document-header {
    align-items: center;
    border-bottom: 1px solid #d1d5db;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 16px;
}

.document-brand {
    align-items: center;
    color: #1f2937;
    display: flex;
    gap: 12px;
    min-width: 0;
    text-decoration: none;
}

.document-brand img {
    flex: 0 0 auto;
    height: 40px;
    object-fit: contain;
    width: 40px;
}

.document-brand-title {
    color: #111827;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
}

.document-header-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.document-return-link {
    align-items: center;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    color: #374151;
    display: inline-flex;
    font-size: 14px;
    font-weight: 600;
    min-height: 38px;
    padding: 0 14px;
    text-decoration: none;
}

.document-return-link:hover {
    background: #f9fafb;
}

.document-tabs {
    border-bottom: 1px solid #d1d5db;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.document-tabs a,
.document-tabs button {
    border-bottom: 3px solid transparent;
    color: #6b7280;
    display: block;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 2px 8px;
    text-decoration: none;
}

.document-tabs button {
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
    cursor: pointer;
    font-family: inherit;
}

.document-tabs a:hover,
.document-tabs button:hover {
    color: #111827;
}

.document-tabs a[aria-current="page"] {
    border-bottom-color: #1f2937;
    color: #111827;
}

@media screen {
    .checklist-frame:focus-visible,
    .factory-preview-frame:focus-visible,
    .dust-frame:focus-visible,
    .wastewater-frame:focus-visible,
    .production-preview-frame:focus-visible,
    .checklist-workspace button:focus-visible,
    .forklift-app button:focus-visible,
    .dust-workspace button:focus-visible,
    .wastewater-workspace button:focus-visible,
    .report-workspace button:focus-visible {
        outline: 3px solid #2563eb;
        outline-offset: 3px;
    }
}

@media screen and (hover: hover) {
    .checklist-frame:hover,
    .factory-preview-frame:hover,
    .dust-frame:hover,
    .wastewater-frame:hover,
    .production-preview-frame:hover {
        border-color: #64748b;
        box-shadow: 0 8px 18px rgb(15 23 42 / 20%);
        transform: translateY(-2px);
    }

    #print-all-checklists:hover,
    #print-checklist:hover,
    #print-all-forklifts:hover,
    #print-forklift-modal:hover,
    #print-all-dust:hover,
    #print-dust:hover,
    #print-all-wastewater:hover,
    #print-wastewater:hover,
    #print-production-three:not(:disabled):hover,
    #print-production-modal:hover {
        background-color: #374151;
    }

    #close-checklist:hover,
    #close-editor:hover,
    #close-dust:hover,
    #close-wastewater:hover,
    #close-production-modal:hover,
    .dust-date-button:hover {
        background-color: #e5e7eb;
    }
}

@media screen and (prefers-reduced-motion: no-preference) {
    .checklist-frame,
    .factory-preview-frame,
    .dust-frame,
    .wastewater-frame,
    .production-preview-frame {
        transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
    }

    .checklist-workspace button,
    .forklift-app button,
    .dust-workspace button,
    .wastewater-workspace button,
    .report-workspace button {
        transition: background-color 150ms ease;
    }
}

@media print {
    .document-header,
    .document-tabs {
        display: none !important;
    }
}