body { font-family: 'Plus Jakarta Sans', sans-serif; background-color: #f8fafc; }
.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.material-symbols-outlined.filled { font-variation-settings: 'FILL' 1; }

/* Upload PDF Progress & Dialog Styles */
.pdf-dialog.swal2-popup { width: min(34rem, calc(100vw - 2rem)); border-radius: 20px; padding: 1.25rem 0 1.5rem; font-family: 'Plus Jakarta Sans', sans-serif; color: #0f172a; }
.pdf-dialog .pdf-dialog-title { font-size: 24px; line-height: 1.3; font-weight: 700; padding: .5rem 1.5rem 0; }
.pdf-dialog .pdf-dialog-content { margin: 1rem 1.5rem 0; font-size: 14px; line-height: 1.6; color: #475569; }
.pdf-dialog .swal2-footer { font-size: 12px; color: #475569; }
.pdf-dialog-button { border-radius: 10px !important; min-height: 44px; font-family: inherit; font-weight: 600; box-shadow: none !important; }
.pdf-splash { text-align: left; }
.pdf-task { margin: 0 0 1rem; color: #334155; font-weight: 500; overflow-wrap: anywhere; }
.pdf-file { display: flex; align-items: center; gap: 12px; padding: 16px; background: #f1f5f9; border-radius: 12px; }
.pdf-file > .material-symbols-outlined { color: #475569; font-size: 28px; flex: none; }
.pdf-file > div { min-width: 0; }
.pdf-file strong { display: block; color: #0f172a; font-size: 14px; overflow-wrap: anywhere; }
.pdf-file span:not(.material-symbols-outlined) { display: block; margin-top: 4px; color: #475569; font-size: 12px; }
.pdf-phase { display: flex; align-items: center; gap: 10px; margin: 20px 0 16px; color: #0f172a; }
.pdf-spinner { display: inline-block; flex: none; width: 18px; height: 18px; border: 2px solid #cbd5e1; border-top-color: #047857; border-radius: 50%; animation: pdf-spin .8s linear infinite; }
@keyframes pdf-spin { to { transform: rotate(360deg); } }
.pdf-progress-label { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.pdf-progress-label strong, .pdf-elapsed { font-variant-numeric: tabular-nums; }
.pdf-progress { width: 100%; height: 8px; display: block; margin-top: 8px; border: 0; border-radius: 999px; overflow: hidden; background: #e2e8f0; accent-color: #047857; }
.pdf-progress::-webkit-progress-bar { background: #e2e8f0; }
.pdf-progress::-webkit-progress-value { background: #047857; }
.pdf-progress::-moz-progress-bar { background: #047857; }
.pdf-stages { display: flex; justify-content: space-between; gap: 12px; list-style: none; padding: 0; margin: 16px 0; font-size: 12px; color: #475569; }
.pdf-stages li { flex: 1; padding-top: 8px; border-top: 3px solid #e2e8f0; }
.pdf-stages .is-active { color: #0f172a; border-top-color: #0f172a; font-weight: 600; }
.pdf-stages .is-done { color: #047857; border-top-color: #047857; }
.pdf-upload-hint { margin: 16px 0; color: #334155; }
.pdf-help { margin-top: 16px; border-top: 1px solid #e2e8f0; padding-top: 12px; }
.pdf-help summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: #0f172a; font-weight: 600; }
.pdf-help summary::before { content: '+'; margin-right: 8px; font-size: 18px; }
.pdf-help[open] summary::before { content: '−'; }
.pdf-help p { margin: 0 0 8px; }
.pdf-elapsed { color: #475569; font-size: 12px; margin: 8px 0 0; }
.pdf-inline-notice { padding: 16px; border-radius: 12px; background: #f1f5f9; color: #0f172a; margin-bottom: 16px; }
[data-pdf-upload] input[type=file]:focus-visible { outline: 3px solid #047857; outline-offset: -4px; opacity: 1; background: #fff; }
[data-pdf-upload] button:disabled { cursor: wait; opacity: .65; }
[data-change-pdf] { color: #0f172a; text-decoration: underline; min-height: 44px; font-size: 14px; font-weight: 600; align-self: flex-start; }
[data-change-pdf][hidden] { display: none; }
@media (max-width: 480px) {
    .pdf-dialog .pdf-dialog-title { font-size: 22px; padding-left: 1rem; padding-right: 1rem; }
    .pdf-dialog .pdf-dialog-content { margin-left: 1rem; margin-right: 1rem; }
    .pdf-stages { gap: 8px; }
    .pdf-file { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .pdf-spinner { animation: none; }
    .pdf-dialog { animation: none !important; }
}
/* Mobile Bottom Navigation & Accordion Polish (v3.2) */
@media (max-width: 767px) {
    .swal2-container { padding-bottom: 4.5rem; }
}


@media print {
    body { background: #ffffff !important; color: #0f172a !important; }
    main { max-width: 100% !important; padding: 0 !important; margin: 0 !important; }
    table, th, td { border-color: #334155 !important; }
}
