.service-card-report { grid-column:1/-1; }
.service-report-controls { display:flex; flex-wrap:wrap; align-items:end; gap:10px; margin-bottom:16px; }
.service-report-dates { display:flex; flex-wrap:wrap; gap:8px; }
.service-report-dates label { display:grid; gap:4px; color:var(--muted); font-size:12px; }
.service-report-dates input { box-sizing:border-box; min-width:0; min-height:44px; padding:8px; border:1px solid var(--border); border-radius:8px; background:var(--surface); color:var(--text); font:inherit; }
.service-report-controls button { min-height:44px; }
.service-report-csv:disabled { opacity:.5; cursor:default; }
.service-report-presets { display:flex; flex-wrap:wrap; gap:8px; }
.service-report-types { display:flex; flex-wrap:wrap; gap:6px; flex-basis:100%; }
.service-report-types button { min-height:44px; padding:7px 10px; border:1px solid var(--border); border-radius:8px; background:var(--surface); color:var(--text); font:inherit; font-size:12px; cursor:pointer; }
.service-report-types button[aria-pressed="true"] { border-color:#3972a3; background:#e8f2fa; font-weight:700; }
.service-report-types button:focus-visible { outline:2px solid #3972a3; outline-offset:2px; }
.service-report-warning { margin:0; padding:10px; border-radius:8px; background:#fff3df; color:#754d16; }
.service-report-sheet { max-width:850px; color:var(--text); }
.service-report-sheet header { padding-bottom:12px; border-bottom:2px solid #254b70; }
.service-report-sheet header p { margin:0; color:var(--muted); font-size:12px; }
.service-report-sheet h3 { margin:3px 0 9px; font-size:20px; }
.service-report-identity { display:flex; flex-wrap:wrap; gap:4px 16px; font-size:13px; }
.service-report-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin:14px 0; }
.service-report-summary div { display:grid; gap:3px; padding:10px; border:1px solid var(--border); border-radius:8px; background:#f7fafc; }
.service-report-summary strong { font-size:18px; font-variant-numeric:tabular-nums; }
.service-report-summary span { font-size:11px; color:var(--muted); }
.service-report-weeks { display:grid; gap:7px; margin:0 0 14px; }
.service-report-weeks h4 { display:flex; justify-content:space-between; margin:0; font-size:14px; }
.service-report-weeks h4 span { color:var(--muted); font-variant-numeric:tabular-nums; }
.service-report-weeks details { min-width:0; border:1px solid var(--border); border-radius:8px; background:#f7fafc; }
.service-report-weeks summary { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:4px 12px; min-height:44px; padding:8px 11px; cursor:pointer; font-size:12px; }
.service-report-weeks summary:focus-visible,.service-report-weeks a:focus-visible { outline:2px solid #3972a3; outline-offset:2px; }
.service-report-weeks summary strong { min-width:0; overflow-wrap:anywhere; }
.service-report-weeks summary span { color:var(--muted); font-variant-numeric:tabular-nums; }
.service-report-week-csv { min-height:44px; max-width:calc(100% - 22px); margin:0 11px 6px; padding:6px 10px; white-space:normal; text-align:left; }
.service-report-week-csv:focus-visible { outline:2px solid #3972a3; outline-offset:2px; }
.service-report-weeks ol,.service-report-weeks ul { margin:0; padding:0; list-style:none; }
.service-report-weeks ol { padding:0 11px 9px; }
.service-report-weeks ol > li { border-top:1px solid var(--border); padding:7px 0; }
.service-report-weeks h5 { display:flex; justify-content:space-between; gap:8px; margin:0 0 3px; font-size:12px; }
.service-report-weeks h5 span { color:var(--muted); }
.service-report-weeks ul > li { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:3px 0; font-size:12px; }
.service-report-weeks ul > li span { min-width:0; overflow-wrap:anywhere; }
.service-report-weeks ul a { flex:none; display:inline-flex; align-items:center; min-height:44px; }
.service-report-latest { margin:0 0 14px; border:1px solid var(--border); border-radius:8px; background:#f7fafc; }
.service-report-latest summary { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:4px 12px; min-height:44px; padding:8px 11px; cursor:pointer; font-size:12px; }
.service-report-latest summary:focus-visible { outline:2px solid #3972a3; outline-offset:2px; }
.service-report-latest summary strong { font-size:13px; }
.service-report-latest summary span { color:var(--muted); font-variant-numeric:tabular-nums; }
.service-report-latest ul { margin:0; padding:0 11px 8px; list-style:none; }
.service-report-latest li { display:flex; justify-content:space-between; gap:8px; padding:6px 0; border-top:1px solid var(--border); font-size:12px; }
.service-report-latest li span { min-width:0; overflow-wrap:anywhere; }
.service-report-latest li a { flex:none; min-height:44px; display:inline-flex; align-items:center; }
.service-report-responsible { margin:16px 0; }
.service-report-responsible-heading { display:flex; align-items:center; gap:7px; margin-bottom:6px; }
.service-report-responsible-heading h4 { margin:0; font-size:14px; }
.service-report-responsible ul { margin:0; padding:0; list-style:none; border:1px solid var(--border); border-radius:8px; }
.service-report-responsible li { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) minmax(0,1fr); gap:8px; align-items:center; padding:8px 10px; font-size:12px; break-inside:avoid-page; }
.service-report-responsible li + li { border-top:1px solid var(--border); }
.service-report-responsible li strong { overflow-wrap:anywhere; }
.service-report-responsible li span { color:var(--muted); font-variant-numeric:tabular-nums; }
.service-report-group { margin-top:16px; }
.service-report-group h4 { display:flex; justify-content:space-between; margin:0 0 6px; padding-bottom:5px; border-bottom:1px solid var(--border); font-size:14px; }
.service-report-group ol { margin:0; padding:0; list-style:none; }
.service-report-group li { padding:9px 0; border-bottom:1px solid var(--border); break-inside:avoid-page; }
.service-report-row-head { display:grid; grid-template-columns:85px minmax(0,1fr) auto; gap:7px; align-items:start; font-size:12px; }
.service-report-row-head time { color:var(--muted); }
.service-report-row-head strong,.service-report-group p { overflow-wrap:anywhere; }
.service-report-row-head span { color:#276449; }
.service-report-group li p { margin:5px 0 0; font-size:12px; }
.service-report-row-meta { display:flex; flex-wrap:wrap; gap:5px 16px; margin-top:4px; color:var(--muted); font-size:11px; }
.service-report-row-meta a { margin-left:auto; }
.service-report-empty { margin:8px 0; color:var(--muted); font-size:12px; }
.service-report-sheet footer { margin-top:20px; padding-top:6px; border-top:1px solid var(--border); color:var(--muted); font-size:10px; }
@media (max-width:600px) {
  .service-report-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .service-report-responsible li { grid-template-columns:minmax(0,1fr); gap:2px; }
  .service-report-row-head { grid-template-columns:80px minmax(0,1fr); }
  .service-report-row-head span { grid-column:2; }
  .service-report-latest li { flex-wrap:wrap; }
  .service-report-latest li a { width:100%; }
  .service-report-weeks ul > li { flex-wrap:wrap; }
  .service-report-weeks ul a { width:100%; }
  .service-report-week-csv { width:calc(100% - 22px); }
}
@media (max-width:390px) { .service-report-dates { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; } .service-report-dates label { min-width:0; } .service-report-dates input { width:100%; } .service-report-presets { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; } .service-report-presets button { min-width:0; white-space:normal; } }
@media (max-width:390px) { .service-report-types { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; } .service-report-types button { min-width:0; white-space:normal; } }
@media (max-width:390px) { .service-report-csv { width:100%; white-space:normal; } }
@page service-activity-report { size:A4 portrait; margin:14mm 12mm; }
@media print {
  body.print-service-activity-report .sidebar, body.print-service-activity-report .topbar,
  body.print-service-activity-report .mobile-status-bar, body.print-service-activity-report .service-card-heading,
  body.print-service-activity-report .service-card-view-nav, body.print-service-activity-report .service-card-report > h2,
  body.print-service-activity-report .service-report-controls, body.print-service-activity-report .service-report-row-meta a,
  body.print-service-activity-report .service-report-weeks,
  body.print-service-activity-report .service-card-section:not(.service-card-report) { display:none !important; }
  body.print-service-activity-report .app-shell, body.print-service-activity-report .main,
  body.print-service-activity-report #page-service-lift, body.print-service-activity-report #service-lift-card-root,
  body.print-service-activity-report .service-card-grid, body.print-service-activity-report .service-card-report { display:block !important; width:auto !important; max-width:none !important; margin:0 !important; padding:0 !important; border:0 !important; box-shadow:none !important; background:#fff !important; }
  body.print-service-activity-report .page:not(#page-service-lift) { display:none !important; }
  body.print-service-activity-report .service-report-sheet { page:service-activity-report; max-width:none; color:#111; font:10pt/1.35 Arial,sans-serif; }
  body.print-service-activity-report .service-report-summary div { background:#fff; border-color:#aab7c3; }
  body.print-service-activity-report .service-report-group li { break-inside:avoid; }
}
