.sw-cts-updated-header-v2160 {
  position: relative !important;
  min-height: 62px;
  padding-right: 270px !important;
}
.sw-cts-report-controls {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
}
.sw-cts-period-select {
  min-width: 112px;
  height: 36px;
  padding: 0 30px 0 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font: 500 12px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.sw-cts-generate-button,
.sw-cts-print-button {
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #2954E5;
  color: #fff;
  font: 600 12px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
.sw-cts-generate-button:hover,
.sw-cts-print-button:hover { filter: brightness(.97); }
.sw-cts-generate-button:disabled { opacity: .6; cursor: wait; }
.sw-cts-modal {
  position: fixed;
  inset: 0;
  z-index: 999985;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(11,23,57,.65);
  padding: 28px 18px;
  box-sizing: border-box;
}
.sw-cts-doc-toolbar {
  width: min(842px, calc(100vw - 36px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.sw-cts-doc-title { font-size: 14px; font-weight: 700; }
.sw-cts-doc-title span { margin-left: 6px; font-size: 10px; font-weight: 400; opacity: .65; }
.sw-cts-doc-actions { display: flex; align-items: center; gap: 8px; }
.sw-cts-close-button {
  height: 36px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font: 600 12px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
}
.sw-cts-doc-area {
  width: min(842px, calc(100vw - 36px));
  overflow: auto;
  max-height: calc(100vh - 92px);
  padding: 18px 24px 28px;
  background: #cbd2df;
  box-sizing: border-box;
}
.sw-cts-a4-page {
  width: 794px;
  min-height: 1123px;
  box-sizing: border-box;
  padding: 76px;
  margin: 0 auto;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 6px 20px rgba(11,23,57,.18);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.sw-cts-report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.sw-cts-report-head h2 { margin: 0; font-size: 16px; line-height: 1.2; }
.sw-cts-report-period { margin-top: 4px; color: #94a3b8; font-size: 9px; }
.sw-cts-report-head time { color: #94a3b8; font-size: 9px; }
.sw-cts-summary-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.sw-cts-summary-chip { min-width: 112px; padding: 7px 12px; border-radius: 8px; background: #f7f9fc; }
.sw-cts-summary-chip div { color: #94a3b8; font-size: 8.5px; text-transform: uppercase; letter-spacing: .3px; }
.sw-cts-summary-chip strong { display: block; margin-top: 2px; color: #0B1739; font-size: 13px; }
.sw-cts-report-table { width: 100%; border-collapse: collapse; table-layout: auto; font-size: 8.7px; }
.sw-cts-report-table th { padding: 4px; text-align: left; color: #334155; border-bottom: 1.5px solid #1e293b; }
.sw-cts-report-table td { padding: 4px; vertical-align: top; border-bottom: 1px solid #f1f5f9; overflow-wrap: anywhere; }
.sw-cts-empty-report { padding: 10px 0; color: #cbd2e0; font-size: 11px; }
.sw-cts-report-footer { margin-top: 14px; padding-top: 7px; border-top: 1px solid #e2e8f0; color: #94a3b8; font-size: 8.5px; text-align: center; }

@media (max-width: 1023px) {
  .sw-cts-updated-header-v2160 { padding-right: 0 !important; }
  .sw-cts-report-controls {
    position: static;
    margin-top: 12px;
    width: 100%;
    flex-wrap: wrap;
  }
  .sw-cts-period-select { flex: 1 1 150px; }
  .sw-cts-generate-button { flex: 0 0 auto; }
}
@media (max-width: 640px) {
  .sw-cts-report-controls { display: grid; grid-template-columns: 1fr; }
  .sw-cts-period-select, .sw-cts-generate-button { width: 100%; }
  .sw-cts-modal { padding: 10px 0; }
  .sw-cts-doc-toolbar { width: 100%; padding: 0 10px; box-sizing: border-box; flex-wrap: wrap; }
  .sw-cts-doc-title { width: 100%; }
  .sw-cts-doc-area { width: 100%; padding: 12px; }
}
@media print {
  body * { visibility: hidden !important; }
  #sw-cts-report-modal-v2160,
  #sw-cts-report-modal-v2160 * { visibility: visible !important; }
  #sw-cts-report-modal-v2160 { position: absolute !important; inset: 0 !important; display: block !important; padding: 0 !important; background: #fff !important; }
  #sw-cts-report-modal-v2160 .sw-cts-doc-toolbar { display: none !important; }
  #sw-cts-report-modal-v2160 .sw-cts-doc-area { width: auto !important; max-height: none !important; overflow: visible !important; padding: 0 !important; background: #fff !important; }
  #sw-cts-report-modal-v2160 .sw-cts-a4-page { width: 210mm !important; min-height: 297mm !important; padding: 20mm !important; margin: 0 !important; box-shadow: none !important; }
  #sw-cts-report-modal-v2160 table, #sw-cts-report-modal-v2160 tr { break-inside: avoid; }
  @page { size: A4 portrait; margin: 0; }
}
