.calendar-production-dialog {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 0.8rem;
}

.calendar-production-dialog .dialog-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.95rem;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.calendar-production-dialog .dialog-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.calendar-production-dialog .dialog-description,
.calendar-production-dialog .dialog-summary {
    font-size: 0.8rem;
    color: #475569;
}

.calendar-production-dialog .dialog-grid {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.calendar-production-dialog .dialog-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.calendar-production-dialog .field-label {
    font-size: 0.76rem;
    font-weight: 700;
    color: #334155;
}

.calendar-production-dialog .dialog-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.calendar-production-dialog .dialog-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.calendar-production-popup-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: calc(1rem + env(safe-area-inset-top)) calc(1rem + env(safe-area-inset-right)) calc(1rem + env(safe-area-inset-bottom)) calc(1rem + env(safe-area-inset-left));
}

.calendar-production-popup-card {
    width: min(920px, 100%);
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: #ffffff;
    border-radius: 20px;
    padding: 1rem;
    overflow: hidden;
}

.calendar-production-popup-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.calendar-production-popup-body {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    overflow: auto;
    padding-right: 0.1rem;
}

.calendar-production-print-header {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #e2e8f0;
}

.calendar-production-print-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}

.calendar-production-print-subtitle {
    font-size: 0.82rem;
    color: #64748b;
}

.calendar-production-slide-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.calendar-production-slide-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.8rem;
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    background: #f8fafc;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.calendar-production-slide-row.is-completed {
    background: #dcfce7;
    border-color: #22c55e;
}

.calendar-production-slide-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.calendar-production-slide-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
}

.calendar-production-slide-detail {
    font-size: 0.78rem;
    color: #475569;
}

.calendar-production-slide-row.is-completed .calendar-production-slide-detail {
    color: #166534;
}

.calendar-production-print-sheet {
    position: fixed;
    left: -9999px;
    top: 0;
    width: 794px;
    padding: 24px;
    background: #ffffff;
    color: #0f172a;
}

.calendar-production-print-table {
    display: flex;
    flex-direction: column;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    overflow: hidden;
}

.calendar-production-print-table-head,
.calendar-production-print-row {
    display: flex;
    gap: 0.75rem;
    padding: 0.65rem 0.8rem;
}

.calendar-production-print-table-head {
    background: #e2e8f0;
    font-weight: 700;
}

.calendar-production-print-table-head span,
.calendar-production-print-row span {
    flex: 1 1 0;
}

.calendar-production-print-row {
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
}

.calendar-production-print-row.is-completed {
    background: #dcfce7;
}

@media (min-width: 760px) {
    .calendar-production-dialog .dialog-grid {
        flex-direction: row;
    }

    .calendar-production-dialog .dialog-field {
        flex: 1 1 0;
    }

    .calendar-production-dialog .dialog-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .calendar-production-slide-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .calendar-production-slide-meta {
        flex: 1 1 auto;
        min-width: 0;
    }
}
