.ttdjubo-wrap {
  max-width: none;
}
.ttdjubo-card {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 10px;
  padding: 18px 20px;
  margin: 18px 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.ttdjubo-card h2 {
  margin-top: 0;
}
.ttdjubo-grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.ttdjubo-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.ttdjubo-stat-card {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 10px;
  padding: 16px 18px;
  min-height: 72px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.ttdjubo-stat-card span {
  display: block;
  color: #646970;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.ttdjubo-stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.1;
}
.ttdjubo-filter-bar {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 10px;
  padding: 14px;
  margin: 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: end;
}
.ttdjubo-filter-bar label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 600;
  color: #1d2327;
}
.ttdjubo-filter-bar input,
.ttdjubo-filter-bar select {
  min-width: 150px;
}
.ttdjubo-result-box {
  background: #0b1020;
  color: #e9edf5;
  border-radius: 8px;
  padding: 14px;
  overflow: auto;
  max-height: 520px;
  margin: 16px 0;
}
.ttdjubo-result-box pre {
  white-space: pre-wrap;
  margin: 0;
  color: inherit;
}
.ttdjubo-table-scroll {
  overflow-x: auto;
}
.ttdjubo-bookings-table th,
.ttdjubo-bookings-table td {
  white-space: nowrap;
}
.ttdjubo-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f0f0f1;
  color: #1d2327;
  font-size: 12px;
  font-weight: 600;
}
.ttdjubo-badge-success {
  background: #edfaef;
  color: #008a20;
}
.ttdjubo-badge-error {
  background: #fcf0f1;
  color: #b32d2e;
}
.ttdjubo-badge-running,
.ttdjubo-badge-warning {
  background: #fcf9e8;
  color: #996800;
}
.ttdjubo-danger-zone {
  border-color: #f0a8a8;
}
.ttdjubo-inline-form {
  margin-top: 12px;
}
.ttdjubo-shortcode {
  max-width: 100%;
}
@media (max-width: 960px) {
  .ttdjubo-grid-two,
  .ttdjubo-cards {
    grid-template-columns: 1fr;
  }
  .ttdjubo-filter-bar {
    display: block;
  }
  .ttdjubo-filter-bar label {
    margin: 0 0 10px;
  }
}

.ttdjubo-result-box summary {
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}
.ttdjubo-result-box:not([open]) {
  max-height: none;
}
.ttdjubo-result-box:not([open]) pre {
  display: none;
}
.ttdjubo-match-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.ttdjubo-match-row input,
.ttdjubo-match-row select {
  min-width: 180px;
}
.ttdjubo-muted { color:#646970; }
.ttdjubo-inline-notice { margin: 10px 0 0; }
.ttdjubo-detailed-table th,
.ttdjubo-detailed-table td {
  font-size: 12px;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ttdjubo-detailed-table th {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.ttdjubo-admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
  border-bottom: 1px solid #dcdcde;
}
.ttdjubo-admin-tab {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  margin-bottom: -1px;
  background: #f6f7f7;
  border: 1px solid #dcdcde;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  text-decoration: none;
  color: #1d2327;
  font-weight: 600;
}
.ttdjubo-admin-tab:hover,
.ttdjubo-admin-tab:focus {
  color: #d60302;
  background: #fff;
}
.ttdjubo-admin-tab.is-active {
  background: #fff;
  color: #d60302;
  border-top: 3px solid #d60302;
  padding-top: 8px;
}
.ttdjubo-card-heading-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ttdjubo-month-form {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ttdjubo-coverage-table th,
.ttdjubo-coverage-table td {
  text-align: center;
  white-space: nowrap;
  min-width: 38px;
}
.ttdjubo-coverage-table tbody th {
  text-align: left;
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 2;
}
.ttdjubo-coverage-cell {
  font-weight: 700;
  border-radius: 4px;
}
.ttdjubo-coverage-none { background: #f0f0f1; color: #646970; }
.ttdjubo-coverage-complete { background: #edfaef; color: #008a20; }
.ttdjubo-coverage-success { background: #edfaef; color: #008a20; }
.ttdjubo-coverage-warning,
.ttdjubo-coverage-partial { background: #fcf9e8; color: #996800; }
.ttdjubo-coverage-error { background: #fcf0f1; color: #b32d2e; }
.ttdjubo-coverage-running { background: #e7f0ff; color: #135e96; }
.ttdjubo-export-buttons {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ttdjubo-diagnostics-box summary {
  cursor: pointer;
}

.ttdjubo-coverage-card .ttdjubo-coverage-scroll {
  overflow-x: visible;
  width: 100%;
}
.ttdjubo-coverage-table {
  table-layout: fixed;
  width: 100%;
  min-width: 0;
}
.ttdjubo-coverage-table th,
.ttdjubo-coverage-table td {
  text-align: center;
  white-space: nowrap;
  min-width: 0;
  padding: 4px 3px;
  font-size: 12px;
  line-height: 1.25;
}
.ttdjubo-coverage-table .ttdjubo-coverage-property-head,
.ttdjubo-coverage-table .ttdjubo-coverage-property {
  width: 210px;
}
.ttdjubo-coverage-table tbody .ttdjubo-coverage-property {
  text-align: left;
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 210px;
}
@media (max-width: 1400px) {
  .ttdjubo-coverage-table .ttdjubo-coverage-property-head,
  .ttdjubo-coverage-table .ttdjubo-coverage-property {
    width: 180px;
  }
  .ttdjubo-coverage-table th,
  .ttdjubo-coverage-table td {
    padding: 3px 2px;
    font-size: 11px;
  }
}

/* v1.0.22 DJUBO safe sync progress */
.ttdjubo-sync-progress {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #c3dafe;
  border-radius: 10px;
  background: #f8fbff;
}
.ttdjubo-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.ttdjubo-progress-head strong {
  color: #1d2327;
}
.ttdjubo-progress-head span {
  color: #135e96;
  font-weight: 700;
  font-size: 12px;
}
.ttdjubo-progress-bar {
  height: 12px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.08);
}
.ttdjubo-progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #d60302, #ff7a59);
  transition: width .25s ease;
}
.ttdjubo-progress-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  margin: 12px 0 8px;
}
.ttdjubo-progress-grid > div {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
  min-width: 0;
}
.ttdjubo-progress-grid span,
.ttdjubo-progress-grid strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ttdjubo-progress-grid span {
  color: #646970;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ttdjubo-progress-grid strong {
  color: #1d2327;
  font-size: 13px;
  margin-top: 3px;
}
.ttdjubo-sync-progress-error {
  border-color: #f0a8a8;
  background: #fff7f7;
}
.ttdjubo-sync-progress-error .ttdjubo-progress-bar span {
  background: #b32d2e;
}
@media (max-width: 960px) {
  .ttdjubo-progress-head {
    display: block;
  }
  .ttdjubo-progress-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* v1.0.23 Knowlarity-style DJUBO sync tab */
.ttdjubo-sync-wrap {
  --ttdjubo-dark: #17112f;
  --ttdjubo-dark-2: #21164a;
  --ttdjubo-line: rgba(214, 3, 2, .22);
  --ttdjubo-accent: #d60302;
  --ttdjubo-accent-2: #ffb703;
  --ttdjubo-soft: #fff7f7;
}
.ttdjubo-dash-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  background: radial-gradient(circle at top right, rgba(214,3,2,.20), transparent 30%), linear-gradient(135deg, var(--ttdjubo-dark), var(--ttdjubo-dark-2));
  color: #fff;
  border: 1px solid var(--ttdjubo-line);
  border-radius: 18px;
  padding: 24px 28px;
  margin: 16px 0;
  box-shadow: 0 16px 35px rgba(23,17,47,.18);
}
.ttdjubo-dash-hero h1 {
  color: #fff;
  margin: 4px 0 8px;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
}
.ttdjubo-dash-hero h1 span {
  font-size: 13px;
  font-weight: 500;
  color: #ffd7d7;
}
.ttdjubo-dash-hero p {
  color: #ffe5e5;
  max-width: 860px;
  margin: 0;
  font-size: 14px;
}
.ttdjubo-eyebrow {
  display: inline-block;
  color: var(--ttdjubo-accent-2);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 11px;
}
.ttdjubo-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.ttdjubo-sync-wrap .ttdjubo-hero-actions .button,
.ttdjubo-sync-wrap .button-primary {
  border-radius: 999px;
  min-height: 36px;
  padding: 4px 16px;
}
.ttdjubo-sync-wrap .button-primary {
  background: var(--ttdjubo-accent);
  border-color: var(--ttdjubo-accent);
}
.ttdjubo-sync-wrap .button-primary:hover,
.ttdjubo-sync-wrap .button-primary:focus {
  background: #b80000;
  border-color: #b80000;
}
.ttdjubo-panel {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 10px;
  padding: 16px;
  margin: 16px 0;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.ttdjubo-sync-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 16px;
  align-items: stretch;
}
.ttdjubo-grid-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 12px;
}
.ttdjubo-grid-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-weight: 600;
}
.ttdjubo-grid-form input[type="date"],
.ttdjubo-grid-form input[type="number"],
.ttdjubo-grid-form input[type="text"],
.ttdjubo-grid-form select {
  min-height: 34px;
}
.ttdjubo-wide-label {
  flex-basis: 100%;
}
.ttdjubo-check {
  flex-direction: row !important;
  align-items: center;
  padding-bottom: 7px;
}
.ttdjubo-sync-wrap .ttdjubo-panel h2 {
  font-size: 18px;
  font-weight: 800;
  margin-top: 0;
}
.ttdjubo-panel-dark {
  background: linear-gradient(145deg, #21164a, #17112f) !important;
  color: #fff;
  border-color: var(--ttdjubo-line) !important;
}
.ttdjubo-panel-dark h2,
.ttdjubo-panel-dark strong {
  color: #fff;
}
.ttdjubo-panel-dark .description,
.ttdjubo-panel-dark .ttdjubo-muted {
  color: #ffe5e5;
}
.ttdjubo-snapshot-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 14px;
}
.ttdjubo-snapshot-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.05);
}
.ttdjubo-snapshot-list span {
  color: #ffd7d7;
}
.ttdjubo-snapshot-list strong {
  text-align: right;
}
.ttdjubo-sync-progress {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(214, 3, 2, .25);
  border-radius: 14px;
  background: #fff7f7;
}
.ttdjubo-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.ttdjubo-progress-head span {
  color: #b80000;
  font-weight: 800;
}
.ttdjubo-progress-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #ffe0e0;
  box-shadow: inset 0 0 0 1px rgba(214, 3, 2, .15);
}
.ttdjubo-progress-bar span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d60302, #ffb703);
  transition: width .25s ease;
}
.ttdjubo-sync-progress-error {
  background: #fff1f2;
  border-color: #fecdd3;
}
.ttdjubo-sync-progress-error .ttdjubo-progress-bar span {
  background: #e11d48;
}
.ttdjubo-panel-title-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.ttdjubo-panel-title-row h2 {
  margin-top: 0;
  margin-bottom: 4px;
}
.ttdjubo-month-form {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.ttdjubo-month-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-weight: 700;
}
.ttdjubo-calendar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 12px;
}
.ttdjubo-calendar-legend {
  display: flex;
  gap: 10px 16px;
  align-items: center;
  flex-wrap: wrap;
  margin: 10px 0 14px;
  font-size: 12px;
  color: #3c434a;
}
.ttdjubo-lg {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  margin-right: 4px;
  font-size: 13px;
  line-height: 1;
}
.ttdjubo-lg-complete,
.ttdjubo-lg-zero { background: #dcfce7; color: #166534; }
.ttdjubo-lg-partial { background: #fef3c7; color: #92400e; }
.ttdjubo-lg-running { background: #e0f2fe; color: #075985; }
.ttdjubo-lg-error,
.ttdjubo-lg-missing { background: #fee2e2; color: #991b1b; }
.ttdjubo-sync-calendar-panel {
  overflow: hidden;
}
.ttdjubo-sync-calendar-wrap {
  width: 100%;
  overflow-x: hidden;
  padding-bottom: 4px;
}
.ttdjubo-sync-calendar-table {
  --ttdjubo-name-col: 190px;
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 2px;
}
.ttdjubo-sync-calendar-table .ttdjubo-property-col { width: 190px; }
.ttdjubo-sync-calendar-table .ttdjubo-month-total-col { width: 52px; }
.ttdjubo-sync-calendar-table th,
.ttdjubo-sync-calendar-table td {
  padding: 0;
  text-align: center;
  vertical-align: middle;
}
.ttdjubo-property-head,
.ttdjubo-property-cell {
  text-align: left !important;
  background: #fff;
}
.ttdjubo-month-total-head {
  height: 34px;
  border-radius: 9px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e40af;
  font-weight: 900;
  font-size: 10px;
}
.ttdjubo-month-total-cell {
  height: 38px;
  border-radius: 9px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 900;
  overflow: hidden;
}
.ttdjubo-month-total-cell strong {
  display: block;
  font-size: 12px;
  line-height: 38px;
}
.ttdjubo-month-total-overall {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}
.ttdjubo-property-head {
  padding: 8px 10px !important;
  font-weight: 800;
}
.ttdjubo-property-cell {
  padding: 6px 8px !important;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  overflow: hidden;
}
.ttdjubo-property-cell strong,
.ttdjubo-property-cell span,
.ttdjubo-property-cell em {
  display: block;
}
.ttdjubo-property-cell strong {
  font-size: 12px;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ttdjubo-property-cell span {
  font-size: 11px;
  color: #4b5563;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ttdjubo-day-head {
  height: 34px;
  border-radius: 9px;
  background: #f3f4f6;
  color: #111827;
  border: 1px solid #e5e7eb;
}
.ttdjubo-day-head span,
.ttdjubo-day-head small {
  display: block;
  line-height: 1.05;
}
.ttdjubo-day-head span {
  font-size: 12px;
  font-weight: 800;
  padding-top: 5px;
}
.ttdjubo-day-head small {
  font-size: 9px;
  color: #6b7280;
  margin-top: 2px;
}
.ttdjubo-day-today {
  background: #fff1f1;
  border-color: #fca5a5;
}
.ttdjubo-sync-cell,
.ttdjubo-total-day-cell {
  height: 38px;
  border-radius: 9px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-weight: 800;
  overflow: hidden;
}
.ttdjubo-sync-cell span,
.ttdjubo-sync-cell small {
  display: block;
  line-height: 1;
}
.ttdjubo-sync-cell span {
  font-size: 14px;
  margin-top: 7px;
}
.ttdjubo-sync-cell small {
  font-size: 10px;
  margin-top: 3px;
  font-weight: 700;
  color: rgba(0,0,0,.62);
}
.ttdjubo-sync-complete,
.ttdjubo-sync-success { background: #dcfce7; border-color: #86efac; color: #166534; }
.ttdjubo-sync-partial,
.ttdjubo-sync-warning { background: #fef3c7; border-color: #fcd34d; color: #92400e; }
.ttdjubo-sync-running { background: #e0f2fe; border-color: #7dd3fc; color: #075985; }
.ttdjubo-sync-error,
.ttdjubo-sync-missing { background: #fee2e2; border-color: #fecaca; color: #991b1b; }
.ttdjubo-total-row .ttdjubo-property-cell,
.ttdjubo-total-cell {
  background: #fff7ed !important;
  border-color: #fed7aa !important;
  color: #9a3412;
}
.ttdjubo-total-cell strong { color: #9a3412; font-size: 12px; }
.ttdjubo-total-day-cell {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}
.ttdjubo-total-day-cell strong {
  display: block;
  line-height: 38px;
  font-size: 12px;
}
.ttdjubo-total-day-zero {
  background: #f9fafb;
  color: #9ca3af;
  border-color: #e5e7eb;
}
.ttdjubo-auto-sync-monitor {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: rgba(255,255,255,.055);
}
.ttdjubo-auto-sync-monitor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.ttdjubo-auto-sync-monitor-head strong {
  color: #fff;
  font-size: 14px;
}
.ttdjubo-auto-sync-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  border: 1px solid transparent;
}
.ttdjubo-auto-sync-chip-ok { background: #dcfce7; border-color: #86efac; color: #166534; }
.ttdjubo-auto-sync-chip-running { background: #dbeafe; border-color: #93c5fd; color: #1d4ed8; }
.ttdjubo-auto-sync-chip-warn { background: #fef3c7; border-color: #fcd34d; color: #92400e; }
.ttdjubo-auto-sync-chip-error { background: #fee2e2; border-color: #fecaca; color: #991b1b; }
.ttdjubo-auto-sync-chip-neutral { background: #f3f4f6; border-color: #e5e7eb; color: #374151; }
.ttdjubo-auto-sync-monitor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.ttdjubo-auto-sync-monitor-grid > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.09);
}
.ttdjubo-auto-sync-monitor-grid span {
  color: #ffe5e5;
  font-size: 12px;
}
.ttdjubo-auto-sync-monitor-grid strong {
  color: #fff;
  font-size: 12px;
  text-align: right;
}
.ttdjubo-auto-sync-message,
.ttdjubo-auto-sync-note {
  margin: 9px 0 0;
  color: #f5f5f5;
  font-size: 12px;
  line-height: 1.35;
}
.ttdjubo-auto-sync-note {
  color: #fdd8d8;
  opacity: .92;
}
.ttdjubo-auto-sync-action { margin-top: 10px; }
.ttdjubo-auto-sync-action .button { min-height: 30px; line-height: 28px; padding: 0 12px; }
.ttdjubo-diagnostics-grid { margin-top: 14px; }
@media (max-width: 1180px) {
  .ttdjubo-sync-grid { grid-template-columns: 1fr; }
  .ttdjubo-sync-calendar-table { min-width: 1040px; }
  .ttdjubo-sync-calendar-wrap { overflow-x: auto; }
}
@media (max-width: 782px) {
  .ttdjubo-dash-hero { display: block; padding: 20px; }
  .ttdjubo-hero-actions { justify-content: flex-start; margin-top: 16px; }
  .ttdjubo-panel-title-row { display: block; }
  .ttdjubo-month-form { justify-content: flex-start; margin-top: 10px; }
  .ttdjubo-grid-form { display: block; }
  .ttdjubo-grid-form label { margin-bottom: 12px; }
  .ttdjubo-auto-sync-monitor-grid { grid-template-columns: 1fr; }
}

/* v1.0.25 initial DJUBO Insight dashboard */
.ttdjubo-insight-wrap {
  margin-top: 10px;
}
.ttdjubo-insight-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 0;
  margin: 10px 0 14px;
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 12px;
  overflow: hidden;
}
.ttdjubo-insight-tab {
  display: block;
  padding: 16px 14px 14px;
  text-align: center;
  text-decoration: none;
  color: #3c434a;
  border-right: 1px solid #f0f0f1;
  background: #fff;
  min-height: 64px;
}
.ttdjubo-insight-tab:last-child { border-right: none; }
.ttdjubo-insight-tab span {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: #646970;
  font-weight: 700;
}
.ttdjubo-insight-tab strong {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  color: #1d2327;
}
.ttdjubo-insight-tab.is-active {
  background: #fff7f7;
  box-shadow: inset 0 -3px 0 #d60302;
}
.ttdjubo-insight-tab.is-active span,
.ttdjubo-insight-tab.is-active strong {
  color: #d60302;
}
.ttdjubo-insight-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 12px 0;
}
.ttdjubo-insight-toolbar p { margin: 3px 0 0; }
.ttdjubo-insight-grain {
  display: inline-flex;
  gap: 0;
  white-space: nowrap;
}
.ttdjubo-insight-grain .button {
  border-radius: 0;
  min-width: 74px;
  text-align: center;
}
.ttdjubo-insight-grain .button:first-child { border-radius: 8px 0 0 8px; }
.ttdjubo-insight-grain .button:last-child { border-radius: 0 8px 8px 0; }
.ttdjubo-insight-filter-pill {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}
.ttdjubo-insight-filter-pill select {
  min-width: 180px;
  min-height: 36px;
}
.ttdjubo-insight-filter-pill span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  font-weight: 700;
  color: #1d2327;
}
.ttdjubo-insight-filter-pill em {
  color: #646970;
  font-style: normal;
}
.ttdjubo-insight-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.ttdjubo-insight-kpi {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.ttdjubo-insight-kpi span {
  display: block;
  color: #646970;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 700;
}
.ttdjubo-insight-kpi strong {
  display: block;
  margin-top: 7px;
  color: #1d2327;
  font-size: 22px;
  line-height: 1.1;
}
.ttdjubo-insight-grid-one,
.ttdjubo-insight-grid-two {
  display: grid;
  gap: 14px;
  margin: 14px 0;
}
.ttdjubo-insight-grid-one {
  grid-template-columns: 1fr;
}
.ttdjubo-insight-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ttdjubo-insight-card {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 12px;
  padding: 14px 16px 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  min-width: 0;
}
.ttdjubo-insight-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.ttdjubo-insight-card h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #1d2327;
}
.ttdjubo-empty-chart {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #646970;
  background: #f6f7f7;
  border-radius: 10px;
  border: 1px dashed #c3c4c7;
}
.ttdjubo-svg-chart {
  display: block;
  width: 100%;
  height: 300px;
}
.ttdjubo-svg-grid {
  stroke: #e5e7eb;
  stroke-width: 1;
}
.ttdjubo-svg-line {
  fill: none;
  stroke: #d60302;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ttdjubo-svg-dot {
  fill: #fff;
  stroke: #d60302;
  stroke-width: 2;
}
.ttdjubo-svg-label,
.ttdjubo-svg-xlabel {
  fill: #646970;
  font-size: 10px;
}
.ttdjubo-insight-bars {
  display: grid;
  gap: 10px;
}
.ttdjubo-insight-bar-row {
  display: grid;
  gap: 5px;
}
.ttdjubo-insight-bar-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ttdjubo-insight-bar-meta strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1d2327;
  font-size: 13px;
}
.ttdjubo-insight-bar-meta span {
  white-space: nowrap;
  font-weight: 800;
  color: #d60302;
  font-size: 13px;
}
.ttdjubo-insight-bar-track {
  height: 10px;
  border-radius: 999px;
  background: #f0f0f1;
  overflow: hidden;
}
.ttdjubo-insight-bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d60302, #ff8a66);
}
.ttdjubo-insight-bar-row small {
  color: #646970;
  font-size: 11px;
}
@media (max-width: 1180px) {
  .ttdjubo-insight-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ttdjubo-insight-grid-two,
  .ttdjubo-insight-kpis { grid-template-columns: 1fr; }
  .ttdjubo-insight-toolbar { display: block; }
  .ttdjubo-insight-grain { margin-top: 12px; }
}

/* Frontend shortcode shell: keeps the admin report UI usable outside wp-admin. */
.ttdjubo-frontend-shell {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: #1d2327;
}
.ttdjubo-frontend-shell .wrap {
  margin: 0;
  padding: 18px 14px;
  max-width: none;
}
.ttdjubo-frontend-shell * {
  box-sizing: border-box;
}
.ttdjubo-frontend-shell .button,
.ttdjubo-frontend-shell input[type="submit"].button,
.ttdjubo-frontend-shell button.button,
.ttdjubo-frontend-shell a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid #c3c4c7;
  border-radius: 4px;
  background: #f6f7f7;
  color: #1d2327;
  text-decoration: none;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.2;
}
.ttdjubo-frontend-shell .button:hover,
.ttdjubo-frontend-shell a.button:hover {
  background: #fff;
  border-color: #8c8f94;
}
.ttdjubo-frontend-shell .button-primary,
.ttdjubo-frontend-shell input[type="submit"].button-primary,
.ttdjubo-frontend-shell button.button-primary,
.ttdjubo-frontend-shell a.button-primary {
  background: #d60302;
  border-color: #d60302;
  color: #fff;
}
.ttdjubo-frontend-shell .button-primary:hover,
.ttdjubo-frontend-shell a.button-primary:hover {
  background: #b90202;
  border-color: #b90202;
  color: #fff;
}
.ttdjubo-frontend-shell .widefat {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #dcdcde;
}
.ttdjubo-frontend-shell .widefat th,
.ttdjubo-frontend-shell .widefat td {
  border-bottom: 1px solid #f0f0f1;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.ttdjubo-frontend-shell .widefat thead th {
  background: #f6f7f7;
  font-weight: 700;
}
.ttdjubo-frontend-shell .striped tbody tr:nth-child(odd) {
  background: #f8f9fa;
}
.ttdjubo-frontend-shell .form-table {
  width: 100%;
  border-collapse: collapse;
}
.ttdjubo-frontend-shell .form-table th {
  width: 220px;
  padding: 14px 10px 14px 0;
  text-align: left;
  vertical-align: top;
}
.ttdjubo-frontend-shell .form-table td {
  padding: 10px 0;
}
.ttdjubo-frontend-shell input[type="text"],
.ttdjubo-frontend-shell input[type="url"],
.ttdjubo-frontend-shell input[type="password"],
.ttdjubo-frontend-shell input[type="number"],
.ttdjubo-frontend-shell input[type="date"],
.ttdjubo-frontend-shell input[type="month"],
.ttdjubo-frontend-shell input[type="search"],
.ttdjubo-frontend-shell select,
.ttdjubo-frontend-shell textarea {
  border: 1px solid #c3c4c7;
  border-radius: 4px;
  padding: 6px 8px;
  max-width: 100%;
}
.ttdjubo-frontend-shell .regular-text { width: 25em; }
.ttdjubo-frontend-shell .large-text { width: 100%; }
.ttdjubo-frontend-shell .description {
  color: #646970;
  font-size: 13px;
}
.ttdjubo-frontend-shell .notice {
  border-left: 4px solid #72aee6;
  background: #fff;
  padding: 10px 12px;
  margin: 12px 0;
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
}
.ttdjubo-frontend-shell .notice-success { border-left-color: #00a32a; }
.ttdjubo-frontend-shell .notice-error { border-left-color: #d63638; }
.ttdjubo-frontend-shell .notice-warning { border-left-color: #dba617; }
.ttdjubo-frontend-shell .tablenav-pages {
  margin-top: 14px;
}
.ttdjubo-frontend-shell .tablenav-pages a,
.ttdjubo-frontend-shell .tablenav-pages span {
  display: inline-block;
  padding: 5px 9px;
  margin: 0 2px;
  border: 1px solid #dcdcde;
  border-radius: 4px;
  text-decoration: none;
}
.ttdjubo-frontend-shell .tablenav-pages .current {
  background: #d60302;
  border-color: #d60302;
  color: #fff;
}
