/* Calendar day/week/month controls keep each date's detail action inside its cell. */
.calendar-view-controls,.calendar-period-controls,.calendar-view-switch { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.calendar-view-controls { justify-content:space-between; margin:0 0 16px; }
.calendar-report-actions { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.calendar-view-switch .btn { min-width:90px; }
.calendar-period-controls { margin:0 0 18px; }
.calendar-period-controls > strong { font-size:21px; }
.calendar-period-controls label { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin-left:auto; font-size:17px; }
.calendar-period-controls input { min-height:48px; max-width:100%; padding:9px 10px; border:1px solid #aebfb3; border-radius:7px; color:#304f40; font:inherit; background:#fff; }
.calendar-board { overflow:hidden; }
.calendar-grid-scroll { overflow-x:auto; }
.calendar-dates-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:7px; min-width:770px; padding:14px; }
.calendar-week-heading { padding:7px; font-size:18px; font-weight:700; text-align:center; color:#526d5d; }
.calendar-week-heading:first-child { color:#af3e3e; }.calendar-week-heading:nth-child(7) { color:#326f9b; }
.calendar-date-cell { min-width:0; min-height:225px; display:flex; flex-direction:column; gap:8px; padding:10px; background:#fff; border:1px solid #c4d4c9; border-radius:8px; }
.calendar-date-cell.is-selected { border:2px solid #28695c; padding:9px; }.calendar-date-cell.is-today { background:#f0f7f2; }.calendar-date-cell.is-past { background:#f3f4f2; }
.calendar-cell-date { display:flex; align-items:center; gap:5px; flex-wrap:wrap; font-size:20px; font-weight:700; }
.calendar-cell-date .tag { font-size:12px; padding:2px 5px; }
.calendar-cell-count { font-size:18px; }.calendar-cell-names { display:flex; flex-direction:column; gap:4px; font-size:18px; overflow-wrap:anywhere; }
.calendar-cell-names small { color:#607365; }.calendar-date-cell > .btn { margin-top:auto; width:100%; min-height:44px; padding:8px; font-size:18px; justify-content:center; }
.calendar-week-grid .calendar-date-cell { min-height:340px; }.calendar-week-grid { min-width:980px; }
.calendar-day-detail .panel-head { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; }
.calendar-day-body { padding:20px; }.calendar-detail-summary { display:flex; flex-wrap:wrap; align-items:center; gap:10px 20px; font-size:19px; }
.calendar-patients { display:grid; gap:12px; margin:18px 0 0; }.calendar-patient { padding:16px; border:1px solid #c8d6cc; border-radius:8px; background:#fbfdfb; }
.calendar-patient-title { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; }.calendar-patient-title strong { font-size:20px; }.calendar-patient-title small { font-size:14px; color:#5b7063; }
.calendar-patient p { margin:9px 0 0; font-size:18px; overflow-wrap:anywhere; }.calendar-patient .reservation-note { color:#a23131; }.calendar-footnote { margin:18px 0; }

/* Reports are HTML previews plus an isolated printable copy, never an external upload. */
.transport-report-modal { width:min(1120px,calc(100vw - 32px)); max-width:calc(100vw - 32px); }
.transport-report-modal .modal-body { padding:20px; }.report-preview { overflow-x:auto; border:1px solid #bacabe; background:#edf1ed; padding:14px; }
.transport-report { color:#15251d; background:#fff; font-family:Arial,'Yu Gothic','Meiryo',sans-serif; font-size:15px; line-height:1.55; }
.transport-report h1,.transport-report h2,.transport-report p { color:inherit; }.transport-report h1 { font-size:27px; line-height:1.4; margin:0 0 8px; }.transport-report h2 { font-size:21px; margin:0; }
.transport-vehicle-sheet,.transport-all-sheet { padding:24px; min-width:760px; }.transport-vehicle-sheet + .transport-vehicle-sheet { border-top:8px solid #edf1ed; margin-top:18px; }
.transport-calendar-sheet { padding:24px; min-width:760px; }.transport-calendar-sheet + .transport-calendar-sheet { border-top:8px solid #edf1ed; margin-top:18px; }
.transport-calendar-day-heading { margin-top:20px !important; }
.transport-report-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; border-bottom:2px solid #526f5d; padding-bottom:12px; }
.transport-report-label { margin:0 0 6px; font-size:14px; }.transport-report-base { max-width:42%; font-size:14px; overflow-wrap:anywhere; }
.transport-report-caution { font-size:13px; margin:10px 0; }.transport-report-summary { display:flex; flex-wrap:wrap; gap:10px 24px; margin:14px 0; }
.transport-trip { margin:20px 0 0; }.transport-trip-heading { display:flex; flex-wrap:wrap; align-items:center; gap:8px 18px; padding:9px 10px; border:1px solid #a5b9ac; border-bottom:0; background:#edf4ee; }
.transport-report table { width:100%; border-collapse:collapse; margin:0; table-layout:fixed; }.transport-report th,.transport-report td { padding:8px; border:1px solid #a8b8ac; vertical-align:top; text-align:left; font-size:14px; white-space:normal; overflow-wrap:anywhere; }
.transport-report th { background:#eaf0eb; font-weight:700; }.transport-report td strong { font-size:15px; }.transport-report td small { display:block; font-size:12px; }
.transport-patient-table th:nth-child(1) { width:5%; }.transport-patient-table th:nth-child(2) { width:10%; }.transport-patient-table th:nth-child(3) { width:17%; }.transport-patient-table th:nth-child(4) { width:10%; }.transport-patient-table th:nth-child(5) { width:31%; }.transport-patient-table th:nth-child(6) { width:27%; }
.transport-schedule-table th:nth-child(1) { width:13%; }.transport-schedule-table th:nth-child(2) { width:13%; }.transport-schedule-table th:nth-child(3) { width:9%; }.transport-schedule-table th:nth-child(4) { width:43%; }.transport-schedule-table th:nth-child(5) { width:13%; }.transport-schedule-table th:nth-child(6) { width:9%; }
.transport-calendar-table th:nth-child(1) { width:20%; }.transport-calendar-table th:nth-child(2) { width:24%; }.transport-calendar-table th:nth-child(3) { width:13%; }.transport-calendar-table th:nth-child(4) { width:24%; }.transport-calendar-table th:nth-child(5) { width:19%; }
.report-time { font-variant-numeric:tabular-nums; }.report-schedule-patients > div + div { margin-top:8px; padding-top:7px; border-top:1px dotted #bdc8c0; }.transport-trip-memo { min-height:45px; border:1px solid #a8b8ac; border-top:0; padding:8px; font-size:13px; }
.transport-unassigned { margin-top:18px; border:2px solid #9c6230; padding:10px 12px; }.transport-unassigned p { margin:5px 0 0; }.transport-report-footer,.transport-report-idle { margin-top:16px; font-size:13px; }.transport-report-empty { padding:24px 0; }
#transport-print-root { display:none; }
@media(max-width:760px) {
  .calendar-period-controls { gap:8px; }.calendar-period-controls > strong { font-size:18px; flex:1; }.calendar-period-controls label { width:100%; margin-left:0; }
  .calendar-view-switch { gap:6px; }.calendar-view-switch .btn { min-width:74px; }.calendar-day-body { padding:14px; }.calendar-day-detail .panel-head { padding:14px; }.calendar-day-detail .panel-head .btn { width:100%; }
  .transport-report-modal { width:calc(100vw - 20px); max-width:calc(100vw - 20px); }.transport-report-modal .modal-body { padding:12px; }.report-preview { padding:7px; }
}
@media print {
  @page { size:A4 portrait; margin:10mm; }
  body.transport-printing { margin:0 !important; padding:0 !important; background:#fff !important; overflow:visible !important; height:auto !important; }
  body.transport-printing > * { display:none !important; }
  body.transport-printing > #transport-print-root { display:block !important; position:static !important; width:auto !important; overflow:visible !important; }
  body.transport-printing dialog { display:none !important; }
  .transport-report { font-size:10pt; color:#000; background:#fff; line-height:1.45; }
  .transport-vehicle-sheet,.transport-all-sheet,.transport-calendar-sheet { min-width:0; padding:0; margin:0; border:0; }
  .transport-vehicle-sheet + .transport-vehicle-sheet,.transport-calendar-sheet + .transport-calendar-sheet { break-before:page; page-break-before:always; margin:0; border:0; }
  .transport-report h1 { font-size:18pt; }.transport-report h2 { font-size:13pt; }.transport-report-heading { gap:10mm; break-inside:avoid; }.transport-report-base { font-size:9pt; }
  .transport-report-label,.transport-report-caution,.transport-report-footer,.transport-report-idle { font-size:8.5pt; }
  .transport-report th,.transport-report td { font-size:10pt; padding:2mm; color:#000; }.transport-report td strong { font-size:11pt; }.transport-report td small { font-size:9pt; }
  .transport-report thead { display:table-header-group; }.transport-report tr { break-inside:avoid; page-break-inside:avoid; }.transport-trip-heading { break-after:avoid; page-break-after:avoid; font-size:9pt; }
  .transport-trip { margin-top:6mm; }.transport-trip-memo { min-height:10mm; break-before:avoid; font-size:8.5pt; }.transport-unassigned { break-inside:avoid; }
}
