/* PDF to Calendar (Story 5580) -- read a PDF of dates, review them, download an add file and
   a roll back file. */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: #F2F2F4; color: #222; font-family: "Segoe UI", system-ui, sans-serif; }

/* Pinned chrome: only .pc-body scrolls; the icon band, header and footer stay put. */
.page-shell { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; }
#lwIconBand, .ct-header, .pc-footer { flex: 0 0 auto; }

.ct-header { background: #3C3C3C; color: #fff; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.ct-header h1 { margin: 0; font-size: 14pt; font-weight: 600; flex: 1; }

.pc-body { flex: 1; overflow: auto; padding: 14px 16px 20px; }
.spacer { flex: 1; }

.pc-btn {
    background: #fff; color: #333; border: 1px solid #C9C9D1; border-radius: 6px;
    padding: 8px 14px; font: inherit; font-size: 14px; cursor: pointer;
}
.pc-btn:hover { background: #F5F5FA; }
.pc-btn:disabled { opacity: .55; cursor: default; }
.pc-btn-primary { background: #4F46E5; border-color: #4F46E5; color: #fff; }
.pc-btn-primary:hover { background: #6257F0; }
.pc-btn-undo { background: #fff; border-color: #B45309; color: #B45309; }
.pc-btn-undo:hover { background: #FFF7ED; }
.pc-btn-small { padding: 5px 10px; font-size: 13px; }

.pc-source { background: #fff; border: 1px solid #E2E2E8; border-radius: 10px; padding: 12px; margin-bottom: 14px; }
.pc-source-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.pc-paste { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.pc-paste[hidden] { display: none; }
.pc-paste textarea {
    width: 100%; font: inherit; font-size: 14px; padding: 8px; border: 1px solid #C9C9D1; border-radius: 6px; resize: vertical;
}
.pc-status { font-size: 13px; color: #666; margin-top: 10px; }
.pc-status.warn { color: #B45309; }

.pc-review-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.pc-count { font-size: 13px; color: #444; font-weight: 600; }

.pc-row {
    background: #fff; border: 1px solid #E2E2E8; border-left: 4px solid #4F46E5; border-radius: 8px;
    padding: 10px 12px; margin-bottom: 8px; display: grid; grid-template-columns: auto 1fr; gap: 6px 10px;
}
.pc-row.off { border-left-color: #C9C9D1; opacity: .6; }
.pc-row .pc-keep { width: 20px; height: 20px; margin-top: 6px; }
.pc-row .pc-fields { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pc-row input[type=text], .pc-row input[type=date], .pc-row input[type=time] {
    font: inherit; font-size: 14px; padding: 6px 8px; border: 1px solid #C9C9D1; border-radius: 6px; background: #fff;
}
.pc-row .pc-title { width: 100%; font-weight: 600; }
.pc-when { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 13px; color: #555; }
.pc-when label { display: inline-flex; align-items: center; gap: 4px; }
.pc-line { font-size: 12px; color: #888; overflow-wrap: anywhere; }
.pc-guess { display: inline-block; font-size: 11px; color: #B45309; background: #FFF7ED; border: 1px solid #FCD9B6;
    border-radius: 10px; padding: 1px 8px; }

.pc-footer {
    background: #fff; border-top: 1px solid #DDD; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.pc-footer[hidden], .pc-review[hidden] { display: none; }
.pc-footer-note { flex-basis: 100%; font-size: 12px; color: #666; }
