#tcs-scheduler-root{font-family:Arial,Helvetica,sans-serif;color:#17202a;width:100vw;max-width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);padding-left:clamp(10px,1.5vw,24px);padding-right:clamp(10px,1.5vw,24px);box-sizing:border-box}#tcs-scheduler-root *{box-sizing:border-box}.tcs-login-card,.tcs-card{background:white;border-radius:14px;padding:18px;margin-bottom:18px;box-shadow:0 4px 14px rgba(0,0,0,.08)}.tcs-login-card{max-width:430px;margin:40px auto}.tcs-header{background:#111827;color:white;padding:18px;border-radius:14px 14px 0 0;display:flex;justify-content:space-between;align-items:center;gap:12px}.tcs-header h2{margin:0;color:white}.tcs-header p{margin:4px 0 0;opacity:.8}.tcs-tabs{display:flex;gap:8px;padding:12px;background:white;border:1px solid #e5e7eb;overflow-x:auto}.tcs-tab,#tcs-scheduler-root button{background:#0f766e;color:white;border:none;border-radius:10px;padding:11px 16px;font-weight:bold;cursor:pointer}.tcs-tab{background:#e5e7eb!important;color:#111827!important}.tcs-tab.active{background:#0f766e!important;color:white!important}.tcs-secondary{background:#2563eb!important}.tcs-delete{background:#dc2626!important}.tcs-page{display:none;background:#f4f6f8;padding:18px 0}.tcs-page.active{display:block}.tcs-card h3,.tcs-login-card h2{margin-top:0}.tcs-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.tcs-inline{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.tcs-grid{display:grid;grid-template-columns:repeat(3,minmax(170px,1fr));gap:12px}#tcs-scheduler-root label{display:block;font-weight:bold;margin-bottom:12px}#tcs-scheduler-root input,#tcs-scheduler-root select,#tcs-scheduler-root textarea{width:100%;padding:11px;border:1px solid #d0d7de;border-radius:10px;margin-top:6px;font-size:15px}#tcs-scheduler-root textarea{min-height:80px}.tcs-actions{display:flex;gap:10px;flex-wrap:wrap}.tcs-days{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:8px;background:#f9fafb;border:1px solid #e5e7eb;border-radius:12px;padding:12px;margin:12px 0}.tcs-days label{margin:0!important}.tcs-days input{width:auto!important;margin-right:6px}.tcs-item,.tcs-assignment{border:1px solid #e5e7eb;padding:12px;border-radius:12px;margin-bottom:10px;background:#fafafa}.tcs-assignment strong,.tcs-item strong{font-size:17px}.tcs-meta{color:#4b5563;margin-top:4px}.tcs-assignment button,.tcs-item button{margin-top:8px;margin-right:6px;padding:8px 10px}.tcs-badge{display:inline-block;background:#e0f2fe;color:#075985;padding:3px 8px;border-radius:999px;font-size:12px;margin-left:6px}.tcs-badge-in{background:#dcfce7;color:#166534}.tcs-badge-out{background:#fee2e2;color:#991b1b}.tcs-table-wrap{width:100%;overflow-x:auto}#tcs-scheduler-root table{width:100%;border-collapse:collapse;min-width:1100px;background:white}#tcs-scheduler-root th,#tcs-scheduler-root td{border:1px solid #d1d5db;text-align:left;padding:8px;vertical-align:top;font-size:13px}#tcs-scheduler-root th{background:#f3f4f6}.tcs-small{color:#6b7280}.tcs-cell{min-height:34px}.tcs-cell-item{background:#eef2ff;border:1px solid #c7d2fe;border-radius:8px;padding:5px;margin:3px 0}.tcs-whatsapp-panel{margin-top:14px;padding:12px;border:1px solid #bbf7d0;background:#f0fdf4;border-radius:12px}.tcs-whatsapp-link{display:inline-block;margin:6px 6px 0 0;background:#16a34a;color:white!important;padding:8px 10px;border-radius:8px;text-decoration:none;font-weight:bold}.tcs-warning-panel{margin-top:14px;padding:12px;border:1px solid #fde68a;background:#fffbeb;border-radius:12px}.tcs-portal-card{border:1px solid #e5e7eb;border-radius:14px;padding:16px;margin-bottom:14px;background:#fff}.tcs-map-link{display:inline-block;margin-top:8px;background:#111827;color:white!important;padding:9px 12px;border-radius:8px;text-decoration:none;font-weight:bold}@media(max-width:800px){.tcs-header{flex-direction:column;align-items:flex-start}.tcs-grid,.tcs-days{grid-template-columns:1fr}}
.tcs-badge-way{background:#fef3c7;color:#92400e}

.tcs-route-link{display:inline-block;margin-top:4px}

.tcs-vertical-week { min-width: 1200px; }
.tcs-day-stack { min-width: 190px; padding: 0 !important; }
.tcs-period-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  min-height: 58px;
  border-bottom: 1px solid #e5e7eb;
}
.tcs-period-row:last-child { border-bottom: none; }
.tcs-period-label {
  background: #f9fafb;
  color: #374151;
  font-weight: bold;
  padding: 8px 6px;
  border-right: 1px solid #e5e7eb;
  font-size: 12px;
}
.tcs-period-row > div:last-child {
  padding: 5px;
}

.tcs-item button { margin-top: 8px; }

.tcs-gps-note {
  display:block;
  margin-top:6px;
  color:#374151;
}

.tcs-warning-panel strong,
.tcs-whatsapp-panel strong { display:inline-block; margin-bottom:4px; }

:root {
  --tcs-black: #211f20;
  --tcs-bluegray: #5f7881;
  --tcs-teal: #47aebe;
  --tcs-light: #f5f8f9;
  --tcs-border: #d6e1e4;
}
#tcs-scheduler-root { color: var(--tcs-black); }
.tcs-header {
  background: linear-gradient(135deg, var(--tcs-black), #2f3e43) !important;
  border-bottom: 5px solid var(--tcs-teal);
}
.tcs-tab, #tcs-scheduler-root button { background: var(--tcs-bluegray); }
.tcs-tab.active, #tcs-scheduler-root button:not(.tcs-delete):not(.tcs-secondary) {
  background: var(--tcs-teal) !important;
  color: white !important;
}
.tcs-secondary { background: var(--tcs-bluegray) !important; }
.tcs-delete { background: #9a2e2e !important; }
.tcs-card { border: 1px solid var(--tcs-border); }
.tcs-page { background: var(--tcs-light); }
.tcs-cell-item { background: #e9f5f7; border-color: #b8dfe5; }
.tcs-period-label { background: #eef4f5; color: var(--tcs-bluegray); }
.tcs-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.tcs-dashboard-card {
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--tcs-border);
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
.tcs-dashboard-card h4 { margin: 0 0 8px; font-size: 19px; }
.tcs-dashboard-card p { margin: 0 0 10px; }
.tcs-dashboard-card span {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  font-weight: bold;
  font-size: 12px;
}
.tcs-status-in span { background: #dcfce7; color: #166534; }
.tcs-status-way span { background: #fef3c7; color: #92400e; }
.tcs-status-out span { background: #e0f2fe; color: #075985; }
.tcs-status-off span { background: #e5e7eb; color: #374151; }
.tcs-small-btn {
  padding: 5px 8px !important;
  font-size: 11px !important;
  margin-top: 8px !important;
}
.tcs-month-table td { height: 125px; width: 14.28%; }
.tcs-muted-day { background: #f3f4f6; color: #9ca3af; }
.tcs-month-item {
  margin-top: 5px;
  padding: 5px;
  border-radius: 8px;
  background: #e9f5f7;
  border: 1px solid #b8dfe5;
  font-size: 12px;
}

.tcs-employee-avatar {
  width: 62px;
  height: 62px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid var(--tcs-teal, #47aebe);
  display: block;
  margin-bottom: 10px;
}
.tcs-avatar-fallback {
  background: var(--tcs-bluegray, #5f7881);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: bold;
}
.tcs-employee-preview {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid var(--tcs-teal, #47aebe);
  margin: 8px 0 14px;
}
.tcs-employee-row {
  display: flex;
  gap: 14px;
  align-items: center;
}
.tcs-employee-row .tcs-employee-avatar {
  margin-bottom: 0;
}

.tcs-debug-hidden { display:none; }

.tcs-sms-link {
  display: inline-block;
  margin: 6px 6px 0 0;
  background: #211f20;
  color: white !important;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}
.tcs-overtime-alert {
  margin: 6px;
  padding: 6px 8px;
  background: #fee2e2;
  border: 1px solid #ef4444;
  color: #991b1b;
  border-radius: 8px;
  font-weight: bold;
  font-size: 12px;
}
.tcs-hours-ok {
  margin: 6px;
  padding: 6px 8px;
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
  border-radius: 8px;
  font-weight: bold;
  font-size: 12px;
}
.tcs-receipt-box {
  margin-top: 12px;
  padding: 10px;
  border: 1px dashed var(--tcs-bluegray, #5f7881);
  border-radius: 12px;
  background: #f8fbfc;
}
.tcs-receipt-grid {
  grid-template-columns: 1fr 120px 1fr;
}
.tcs-receipt-thumb {
  margin-top: 8px;
  width: 120px;
  max-height: 160px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #d6e1e4;
}
.tcs-past-item {
  padding: 10px;
  border-bottom: 1px solid #e5e7eb;
}

.tcs-checkout-screen {
  max-width: 680px;
  margin: 0 auto;
  background: white;
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 6px 22px rgba(0,0,0,.10);
  text-align: center;
  border: 1px solid var(--tcs-border, #d6e1e4);
}
.tcs-checkout-screen h2 {
  font-size: 30px;
  margin: 0 0 10px;
  color: var(--tcs-black, #211f20);
}
.tcs-camera-panel { margin: 22px auto; }
.tcs-camera-button {
  cursor: pointer;
  border: 3px dashed var(--tcs-teal, #47aebe);
  border-radius: 18px;
  padding: 28px;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #f0fbfd;
  color: var(--tcs-black, #211f20);
  font-weight: bold;
}
.tcs-camera-button input { display: none; }
.tcs-camera-icon { font-size: 54px; line-height: 1; }
.tcs-checkout-fields { text-align: left; grid-template-columns: 1fr 1fr; }
.tcs-checkout-actions { justify-content: center; margin-top: 18px; }
.tcs-complete-checkout { background: #16a34a !important; }
.tcs-receipt-preview-large {
  max-width: 260px;
  max-height: 360px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid #d6e1e4;
  margin-top: 10px;
}
@media(max-width:700px){
  .tcs-checkout-fields { grid-template-columns: 1fr; }
  .tcs-checkout-screen { padding: 18px; }
  .tcs-checkout-screen h2 { font-size: 25px; }
}

.tcs-big-icon {
  font-size: 52px;
  line-height: 1;
  margin-bottom: 8px;
}
.tcs-simple-text {
  font-size: 17px;
  max-width: 520px;
  margin: 0 auto 18px;
}
.tcs-amount-only {
  max-width: 220px;
  margin: 16px auto !important;
  text-align: left;
}
.tcs-large-action {
  font-size: 18px !important;
  padding: 15px 22px !important;
  margin: 8px !important;
  min-width: 210px;
}
.tcs-back-button {
  background: #6b7280 !important;
  font-size: 16px !important;
  padding: 12px 18px !important;
  margin-top: 12px !important;
}
.tcs-success-box {
  margin: 18px auto;
  padding: 18px;
  border-radius: 16px;
  background: #ecfdf5;
  border: 1px solid #86efac;
  color: #166534;
  max-width: 420px;
}
.tcs-checkout-screen .tcs-camera-button {
  max-width: 420px;
  margin: 0 auto;
}

/* v24 safe improvements based directly on stable v20 */
.tcs-assignment-chip{padding:7px!important;margin:4px!important;background:#fff!important;border:1px solid #cfe5e9!important;box-shadow:0 1px 4px rgba(0,0,0,.04)}
.tcs-chip-project{font-weight:700;font-size:13px;color:var(--tcs-black,#211f20);margin-bottom:2px}
.tcs-chip-meta{font-size:11px;color:#64748b;margin-bottom:4px}
.tcs-chip-status{font-size:11px}
.tcs-compact-actions{display:flex;gap:4px;margin-top:5px;flex-wrap:wrap}
.tcs-compact-actions button,.tcs-mini-delete{padding:4px 6px!important;min-width:0!important;font-size:10px!important;border-radius:6px!important;line-height:1.1!important}
.tcs-mini-delete{margin-top:5px!important}
.tcs-receipt-pill{display:inline-block;margin-top:4px;padding:3px 6px!important;font-size:10px!important;border-radius:999px!important;background:#fef3c7!important;color:#92400e!important}
.tcs-receipt-summary-card{background:#fffbeb;border:1px solid #fde68a;border-radius:16px;padding:14px;margin-bottom:14px}
.tcs-receipt-summary-card h3{margin:0 0 6px}
.tcs-receipt-summary-line{padding:5px 0;border-top:1px solid #fde68a;font-size:13px}


/* v25 Full Width Mode - helps the dispatch system escape narrow WordPress theme containers */
body.tcs-dispatch-fullwidth-active .entry-content,
body.tcs-dispatch-fullwidth-active .wp-block-post-content,
body.tcs-dispatch-fullwidth-active .site-content,
body.tcs-dispatch-fullwidth-active .content-area,
body.tcs-dispatch-fullwidth-active .container,
body.tcs-dispatch-fullwidth-active .ast-container,
body.tcs-dispatch-fullwidth-active .elementor-container,
body.tcs-dispatch-fullwidth-active .elementor-widget-container,
body.tcs-dispatch-fullwidth-active .wp-site-blocks,
.tcs-force-wide-parent {
  max-width: none !important;
}

#tcs-scheduler-root {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

#tcs-scheduler-root * {
  box-sizing: border-box;
}

#tcs-scheduler-root .tcs-header,
#tcs-scheduler-root .tcs-tabs,
#tcs-scheduler-root .tcs-page,
#tcs-scheduler-root .tcs-card {
  width: 100% !important;
  max-width: none !important;
}

#tcs-scheduler-root .tcs-table-wrap {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

#tcs-scheduler-root table {
  width: max-content !important;
  min-width: 1800px !important;
}

#tcs-scheduler-root .tcs-vertical-week {
  min-width: 1900px !important;
}

#tcs-scheduler-root .tcs-month-table {
  min-width: 1200px !important;
}

#tcs-scheduler-root .tcs-day-stack {
  min-width: 210px !important;
}

#tcs-scheduler-root .tcs-tabs {
  overflow-x: auto !important;
  white-space: nowrap !important;
  flex-wrap: nowrap !important;
  -webkit-overflow-scrolling: touch;
}

#tcs-scheduler-root .tcs-tab {
  flex: 0 0 auto !important;
}

@media (max-width: 900px) {
  #tcs-scheduler-root {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  #tcs-scheduler-root table {
    min-width: 1500px !important;
  }
  #tcs-scheduler-root .tcs-vertical-week {
    min-width: 1650px !important;
  }
}

/* v26 PDF and receipt worksheet fix */
#tcs-scheduler-root #generateWorksheetPdfBtn {
  background: #211f20 !important;
}
.tcs-receipt-pill {
  cursor: pointer;
}


/* v27 professional clean interface */
#tcs-scheduler-root {
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif !important;
  background: #f6f8fa !important;
  color: #1f2937 !important;
}

#tcs-scheduler-root .tcs-header {
  background: #ffffff !important;
  color: #1f2937 !important;
  border: 1px solid #e5edf0 !important;
  border-left: 5px solid #47aebe !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06) !important;
  padding: 18px 22px !important;
  margin-bottom: 14px !important;
}

#tcs-scheduler-root .tcs-header h2 {
  color: #1f2937 !important;
  font-size: 24px !important;
  letter-spacing: -0.03em !important;
  margin-bottom: 4px !important;
  font-weight: 750 !important;
}

#tcs-scheduler-root .tcs-header p {
  color: #64748b !important;
  font-size: 13px !important;
  margin: 0 !important;
}

#tcs-scheduler-root .tcs-tabs {
  background: transparent !important;
  border: none !important;
  gap: 8px !important;
  padding: 4px 0 12px !important;
}

#tcs-scheduler-root .tcs-tab {
  background: #ffffff !important;
  color: #475569 !important;
  border: 1px solid #dbe7eb !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  padding: 9px 14px !important;
}

#tcs-scheduler-root .tcs-tab.active {
  background: #47aebe !important;
  border-color: #47aebe !important;
  color: #ffffff !important;
}

#tcs-scheduler-root .tcs-card {
  background: #ffffff !important;
  border: 1px solid #e5edf0 !important;
  border-radius: 18px !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05) !important;
}

#tcs-scheduler-root .tcs-card h3,
#tcs-scheduler-root .tcs-section-head h3 {
  color: #1f2937 !important;
  font-size: 18px !important;
  letter-spacing: -0.02em !important;
  font-weight: 750 !important;
}

#tcs-scheduler-root button,
#tcs-scheduler-root .tcs-secondary {
  border-radius: 10px !important;
  font-weight: 700 !important;
  border: none !important;
}

#tcs-scheduler-root button:not(.tcs-delete):not(.tcs-secondary),
#tcs-scheduler-root .tcs-pdf-btn {
  background: #47aebe !important;
  color: #ffffff !important;
}

#tcs-scheduler-root .tcs-secondary {
  background: #5f7881 !important;
  color: #ffffff !important;
}

#tcs-scheduler-root .tcs-pdf-btn {
  background: #1f2937 !important;
}

#tcs-scheduler-root input,
#tcs-scheduler-root select,
#tcs-scheduler-root textarea {
  border: 1px solid #dbe7eb !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: #1f2937 !important;
  box-shadow: none !important;
}

#tcs-scheduler-root label {
  color: #334155 !important;
  font-weight: 650 !important;
  font-size: 13px !important;
}

#tcs-scheduler-root th {
  background: #eef6f8 !important;
  color: #1f2937 !important;
  border-color: #d5e3e7 !important;
}

#tcs-scheduler-root td {
  border-color: #e2eaed !important;
}

#tcs-scheduler-root .tcs-badge {
  border-radius: 999px !important;
  font-weight: 700 !important;
}

/* v28 Project Coverage and active/inactive projects */
.tcs-project-coverage-table {
  min-width: 1800px !important;
}
.tcs-project-name-cell {
  min-width: 230px;
  background: #f8fafc;
}
.tcs-coverage-chip {
  background: #eef9fb;
  border: 1px solid #cfe5e9;
  border-radius: 10px;
  padding: 7px;
  margin: 4px 0;
  font-size: 12px;
}
.tcs-coverage-chip span {
  color: #5f7881;
  font-size: 11px;
}
.tcs-unassigned {
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 7px;
  font-size: 11px;
  font-weight: 700;
}
.tcs-project-active,
.tcs-project-inactive {
  display: inline-block;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  margin-left: 8px;
  font-weight: 700;
}
.tcs-project-active {
  background: #dcfce7;
  color: #166534;
}
.tcs-project-inactive {
  background: #e5e7eb;
  color: #374151;
}

/* v31 conservative repair for project planning */
#projectPlanDaysInput{min-height:92px}
.tcs-not-planned{color:#94a3b8;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:7px;font-size:11px}
.tcs-unassigned-click{width:100%;text-align:center;cursor:pointer}
.tcs-unassigned-click small{color:inherit;opacity:.85}

/* v33 dashboard grouped by employee */
.tcs-dash-project-list {
  margin-top: 12px;
}
.tcs-dash-subitem {
  margin-top: 9px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.35;
}
.tcs-dash-subitem strong {
  color: #1f2937;
}
.tcs-dash-subitem small {
  color: #64748b;
}

/* v34 clickable receipts on Dashboard */
.tcs-receipt-summary-click {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent !important;
  color: #1f2937 !important;
  border: none !important;
  border-top: 1px solid #fde68a !important;
  border-radius: 0 !important;
  padding: 8px 0 !important;
  margin: 0 !important;
  font-size: 13px !important;
  cursor: pointer;
}
.tcs-receipt-summary-click:hover {
  background: #fff7d6 !important;
}
.tcs-receipt-summary-click small {
  color: #92400e;
}
.tcs-dashboard-card .tcs-receipt-pill {
  cursor: pointer;
}

/* v35 refinements */
.tcs-receipt-summary-card {
  padding: 12px 14px !important;
}
.tcs-receipt-summary-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.tcs-receipt-summary-head h3 {
  margin: 0 !important;
  font-size: 16px !important;
}
.tcs-receipt-summary-head span {
  background: #fef3c7;
  color: #92400e;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
}
.tcs-receipt-summary-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.tcs-receipt-summary-chip {
  width: auto !important;
  max-width: 260px !important;
  display: inline-flex !important;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  background: #fff8dc !important;
  color: #1f2937 !important;
  border: 1px solid #fde68a !important;
  border-radius: 12px !important;
  padding: 8px 10px !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
}
.tcs-receipt-summary-chip:hover {
  background: #fff3bf !important;
}
.tcs-receipt-summary-chip span {
  color: #475569;
}
.tcs-receipt-summary-chip small {
  color: #92400e;
}
.tcs-plan-days-field {
  grid-column: 1 / -1;
}
.tcs-plan-days-field > label {
  display: block;
  margin-bottom: 6px;
}
.tcs-plan-days {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  background: #f8fafc;
  border: 1px solid #dbe7eb;
  border-radius: 12px;
  padding: 10px;
}
.tcs-plan-days label {
  background: white;
  border: 1px solid #dbe7eb;
  border-radius: 999px;
  padding: 7px 10px;
  cursor: pointer;
}
.tcs-plan-days input {
  margin-right: 5px;
}

/* v36 Project Coverage status indicators */
.tcs-coverage-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 12px;
  font-size: 13px;
  color: #475569;
}
.tcs-coverage-legend span {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 6px 10px;
}
.tcs-coverage-legend .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-right: 5px;
}
.tcs-coverage-legend .green { background: #22c55e; }
.tcs-coverage-legend .yellow { background: #f59e0b; }
.tcs-coverage-legend .red { background: #ef4444; }

.tcs-project-status {
  margin: 8px 0;
  padding: 6px 8px;
  border-radius: 999px;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
}
.tcs-project-status-ok {
  background: #dcfce7;
  color: #166534;
}
.tcs-project-status-noplan {
  background: #fef3c7;
  color: #92400e;
}
.tcs-project-status-missed {
  background: #fee2e2;
  color: #991b1b;
}
.tcs-planned-day {
  background: #fbfeff;
}
.tcs-no-plan-day {
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 7px;
  font-size: 11px;
  font-weight: 700;
}
.tcs-unassigned-missed {
  background: #fee2e2 !important;
  border-color: #ef4444 !important;
  color: #991b1b !important;
}

/* v37 Project Coverage future assignment logic */
.tcs-coverage-legend .gray { background: #94a3b8; }
.tcs-project-status small {
  font-weight: 600;
  opacity: .85;
}
.tcs-project-status-offweek {
  background: #f1f5f9;
  color: #475569;
}

/* v38 Project Coverage color logic */
.tcs-project-status-partial {
  background: #fef3c7;
  color: #92400e;
}
.tcs-project-status-nocoverage {
  background: #fee2e2;
  color: #991b1b;
}
.tcs-project-status-missed {
  background: #fee2e2;
  color: #991b1b;
}
/* Empty planned day cells are action items, but project-level status decides yellow vs red */
.tcs-unassigned-missed {
  background: #fef3c7 !important;
  border-color: #f59e0b !important;
  color: #92400e !important;
}

/* v39 auto plan days */
#autoPlanDaysBtn {
  margin-top: 8px !important;
  padding: 6px 10px !important;
  font-size: 12px !important;
}
.tcs-plan-days-field .tcs-small {
  margin-top: 6px;
}

/* v40 dashboard planned projects row */
.tcs-dashboard-projects-card {
  margin-top: 16px !important;
}
.tcs-dashboard-project-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.tcs-project-day-card {
  border: 1px solid #dbe7eb;
  border-radius: 14px;
  padding: 12px;
  background: #ffffff;
}
.tcs-project-day-card h4 {
  margin: 0 0 6px;
  font-size: 15px;
  color: #1f2937;
}
.tcs-project-day-card p {
  margin: 0 0 10px;
  font-size: 12px;
  color: #64748b;
}
.tcs-project-has-employee {
  border-left: 5px solid #22c55e;
}
.tcs-project-no-employee {
  border-left: 5px solid #f59e0b;
  background: #fffbeb;
}
.tcs-project-employee-line {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 9px;
  margin-top: 8px;
  font-size: 13px;
}
.tcs-project-employee-line span {
  color: #64748b;
}
.tcs-no-employee-badge {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  border-radius: 999px;
  padding: 5px 9px;
  font-weight: 700;
  font-size: 12px;
  margin: 4px 8px 8px 0;
}
.tcs-outside-plan-badge {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  border-radius: 999px;
  padding: 5px 9px;
  font-weight: 700;
  font-size: 12px;
}

/* v41 Employee Portal redesign */
.portal-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 12px;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}
.portal-header {
  background: #ffffff;
  border: 1px solid #e5edf0;
  border-radius: 22px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  box-shadow: 0 6px 20px rgba(15,23,42,.06);
}
.portal-profile {
  display: flex;
  gap: 14px;
  align-items: center;
}
.portal-avatar {
  width: 68px;
  height: 68px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid #47aebe;
  flex: 0 0 auto;
}
.portal-avatar-fallback {
  background: #5f7881;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 800;
}
.portal-header h1 {
  margin: 0;
  font-size: 22px;
  color: #1f2937;
  letter-spacing: -.03em;
}
.portal-header p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
}
.portal-top-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.portal-lang,
.portal-logout {
  border-radius: 999px !important;
  padding: 9px 12px !important;
  border: 1px solid #dbe7eb !important;
  background: white !important;
  color: #1f2937 !important;
  font-weight: 700 !important;
}
.portal-logout {
  background: #f1f5f9 !important;
}
.portal-menu {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 12px 0;
}
.portal-menu button {
  background: #ffffff !important;
  color: #334155 !important;
  border: 1px solid #dbe7eb !important;
  border-radius: 16px !important;
  padding: 13px 8px !important;
  font-weight: 800 !important;
  font-size: 14px !important;
}
.portal-menu button.active {
  background: #47aebe !important;
  color: #ffffff !important;
  border-color: #47aebe !important;
}
.portal-section {
  background: #ffffff;
  border: 1px solid #e5edf0;
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 6px 20px rgba(15,23,42,.05);
}
.portal-section h2 {
  margin: 0 0 6px;
  color: #1f2937;
  font-size: 22px;
}
.portal-helper {
  margin: 0 0 14px;
  color: #64748b;
  font-size: 13px;
}
.portal-job-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 14px;
  margin-top: 12px;
}
.portal-job-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.portal-job-top h3 {
  margin: 0;
  color: #1f2937;
  font-size: 19px;
}
.portal-job-top p {
  margin: 4px 0 0;
  color: #64748b;
  font-weight: 700;
}
.portal-status {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.portal-status-off { background: #e5e7eb; color: #374151; }
.portal-status-way { background: #dbeafe; color: #1d4ed8; }
.portal-status-active { background: #dcfce7; color: #166534; }
.portal-status-done { background: #ede9fe; color: #6d28d9; }
.portal-address {
  margin-top: 12px;
  color: #334155;
  font-weight: 700;
}
.portal-notes {
  margin-top: 12px;
  background: white;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  padding: 11px;
  color: #334155;
  line-height: 1.4;
}
.portal-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 8px;
  margin-top: 14px;
}
.portal-action-btn,
.portal-map-btn {
  text-align: center;
  text-decoration: none;
  border-radius: 14px !important;
  padding: 14px 10px !important;
  font-weight: 900 !important;
  font-size: 15px !important;
  background: #47aebe !important;
  color: white !important;
  border: none !important;
}
.portal-action-btn.secondary {
  background: #16a34a !important;
}
.portal-map-btn {
  background: #1f2937 !important;
}
.portal-mini-status {
  margin-top: 10px;
}
.portal-empty {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  color: #64748b;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  font-weight: 700;
}
.portal-date-label {
  margin: 14px 0 0;
  font-weight: 900;
  color: #5f7881;
}
.portal-receipt-card {
  width: 100%;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 6px 10px;
  align-items: center;
  text-align: left;
  background: #fffbeb !important;
  color: #1f2937 !important;
  border: 1px solid #fde68a !important;
  border-radius: 16px !important;
  padding: 12px !important;
  margin-top: 10px !important;
}
.portal-receipt-card span {
  grid-row: span 2;
  font-size: 28px;
}
.portal-receipt-card small {
  color: #92400e;
}
@media(max-width:700px){
  .portal-header {
    flex-direction: column;
    align-items: stretch;
  }
  .portal-top-actions {
    justify-content: space-between;
  }
  .portal-menu {
    grid-template-columns: repeat(2,1fr);
  }
  .portal-actions {
    grid-template-columns: 1fr;
  }
}

/* v42 employee portal photo fix */
.portal-avatar {
  background: #f1f5f9;
}

/* v43 employee photo hard fix */
.portal-avatar { background: #f1f5f9; }

/* v44 employee photo final fix */
.portal-avatar {
  object-fit: cover !important;
}
.tcs-employee-avatar,
.tcs-employee-preview {
  object-fit: cover !important;
}

/* v51 Weekly drag and drop cleaning board */
.tcs-dnd-help{background:#eef6ff;border:1px solid #bfdbfe;border-radius:12px;padding:10px 12px;margin:10px 0;color:#1e3a8a;font-size:13px;}
.tcs-coverage-dnd th{position:sticky;top:0;z-index:1;}
.tcs-coverage-dropzone{min-width:170px;vertical-align:top;transition:background .15s ease, outline .15s ease;}
.tcs-coverage-dropzone.tcs-drop-hover{background:#e0f2fe!important;outline:2px dashed #0284c7;outline-offset:-6px;}
.tcs-draggable-cleaning{cursor:grab;position:relative;}
.tcs-draggable-cleaning:active{cursor:grabbing;}
.tcs-dragging{opacity:.55;transform:scale(.98);}
.tcs-drag-handle{float:right;color:#64748b;font-weight:800;letter-spacing:-3px;margin-left:6px;}
.tcs-unassigned-drag{border:1px dashed #f59e0b;border-radius:12px;padding:8px;background:#fff7ed;}


/* v52 card drag/drop boards */
.tcs-draggable-cleaning{cursor:grab;position:relative;transition:transform .12s ease, box-shadow .12s ease;}
.tcs-draggable-cleaning:active{cursor:grabbing;}
.tcs-draggable-cleaning.tcs-dragging{opacity:.55;transform:scale(.98);}
.tcs-drag-handle{font-size:14px;line-height:1;color:#64748b;float:right;margin-left:6px;letter-spacing:-2px;}
.tcs-cleaning-dropzone{min-height:82px;}
.tcs-cleaning-dropzone.tcs-drop-hover{background:#e0f2fe!important;outline:2px dashed #0284c7;outline-offset:-6px;}
.tcs-month-card-board td{min-width:155px;height:138px;background:#fff;}
.tcs-month-day-number{font-weight:800;margin-bottom:6px;color:#0f172a;}
.tcs-month-card{background:#f0fdfa;border:1px solid #99f6e4;border-radius:10px;padding:7px;margin:5px 0;box-shadow:0 1px 4px rgba(15,23,42,.08);}
.tcs-month-card strong{font-size:13px;color:#0f172a;}
.tcs-month-card span{font-size:12px;color:#334155;}
.tcs-empty-drop-hint{border:1px dashed #cbd5e1;border-radius:9px;color:#94a3b8;font-size:12px;text-align:center;padding:10px;margin-top:8px;}
.tcs-worksheet-dropzone .tcs-cell-item{box-shadow:0 1px 4px rgba(15,23,42,.08);}

.tcs-month-card{position:relative;}
.tcs-card-x-delete{position:absolute;top:4px;right:4px;border:none;background:#dc2626!important;color:#fff!important;border-radius:999px;width:22px;height:22px;line-height:18px;font-weight:800;cursor:pointer;padding:0!important;z-index:3;}
.tcs-card-x-delete:hover{background:#991b1b!important;}
.tcs-finance-summary{background:#eefdf3;border:1px solid #bbf7d0;border-radius:12px;padding:12px;margin:0 0 12px 0;}

/* v54 Google Calendar style card edit modal */
.tcs-draggable-cleaning{cursor:pointer;}
.tcs-drag-handle{cursor:grab;}
.tcs-modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.42);z-index:999999;display:flex;align-items:center;justify-content:center;padding:20px;}
.tcs-cleaning-modal{width:min(620px,96vw);background:#fff;border-radius:18px;box-shadow:0 24px 80px rgba(15,23,42,.28);padding:18px;border:1px solid #e2e8f0;}
.tcs-cleaning-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;border-bottom:1px solid #e5e7eb;padding-bottom:12px;margin-bottom:14px;}
.tcs-cleaning-modal-head h3{margin:0;color:#0f172a;font-size:20px;}
.tcs-cleaning-modal-head p{margin:4px 0 0;color:#64748b;font-size:13px;}
.tcs-modal-close{border:none!important;background:#f1f5f9!important;color:#0f172a!important;border-radius:999px!important;width:34px;height:34px;padding:0!important;font-size:24px;line-height:28px;cursor:pointer;}
.tcs-modal-grid{margin-bottom:12px;}
.tcs-modal-note{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:10px 12px;color:#475569;font-size:13px;margin:12px 0;}
.tcs-modal-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;margin-top:12px;}
.tcs-modal-actions button{min-height:38px;}
@media(max-width:640px){.tcs-cleaning-modal{padding:14px}.tcs-modal-actions{justify-content:stretch}.tcs-modal-actions button{width:100%;}}

/* v55 mobile-first Google Calendar inspired views */
.tcs-gcal-topbar{display:none;align-items:center;justify-content:space-between;gap:12px;margin:6px 0 12px 0;color:#111827;}
.tcs-gcal-topbar strong{font-size:24px;font-weight:650;letter-spacing:-.02em;}
.tcs-gcal-today{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border:2px solid #4b5563;border-radius:8px;font-weight:800;font-size:14px;}
.tcs-gcal-month{table-layout:fixed;border-collapse:collapse;background:#fff;}
.tcs-gcal-month th{font-size:13px;font-weight:700;color:#6b7280;text-align:center;padding:8px 4px;background:#fff;border-bottom:1px solid #e5e7eb;}
.tcs-gcal-month td{vertical-align:top;border:1px solid #e5e7eb;overflow:hidden;}
.tcs-today-number{background:#1a73e8;color:#fff!important;border-radius:999px;display:inline-flex!important;align-items:center;justify-content:center;width:28px;height:28px;}
.tcs-month-events{display:flex;flex-direction:column;gap:3px;}
.tcs-gcal-event{padding:4px 6px!important;margin:2px 0!important;border-radius:5px!important;border:0!important;background:#0ea5a3!important;color:#fff!important;box-shadow:none!important;line-height:1.15;overflow:hidden;}
.tcs-gcal-event strong{color:#fff!important;font-size:12px!important;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.tcs-event-line{display:flex;align-items:center;gap:4px;min-width:0;}
.tcs-event-time{font-size:10px;font-weight:800;opacity:.95;white-space:nowrap;}
.tcs-event-cleaner{font-size:10.5px;opacity:.95;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.tcs-more-events{border:0!important;background:transparent!important;color:#2563eb!important;padding:1px 2px!important;font-size:11px!important;text-align:left!important;font-weight:700;min-height:auto!important;box-shadow:none!important;}
.tcs-day-drawer{width:min(520px,96vw);max-height:82vh;overflow:auto;background:#fff;border-radius:22px 22px 0 0;box-shadow:0 -18px 60px rgba(15,23,42,.25);padding:16px;border:1px solid #e5e7eb;}
.tcs-day-drawer-backdrop{align-items:flex-end!important;padding:0!important;}
.tcs-day-drawer-list{display:flex;flex-direction:column;gap:8px;}
.tcs-day-drawer .tcs-gcal-event{padding:10px 12px!important;border-radius:12px!important;}
.tcs-mobile-fab{display:none;position:fixed!important;right:22px;bottom:24px;z-index:99990;width:64px!important;height:64px!important;border-radius:20px!important;background:#dbeafe!important;color:#0b57d0!important;font-size:38px!important;line-height:1!important;box-shadow:0 10px 30px rgba(15,23,42,.28)!important;border:0!important;padding:0!important;}
.tcs-coverage-mobile-board,.tcs-worksheet-mobile{display:none;}
.tcs-cleaner-week-card{background:#fff;border:1px solid #e5e7eb;border-radius:18px;margin:12px 0;overflow:hidden;box-shadow:0 2px 12px rgba(15,23,42,.06);}
.tcs-cleaner-week-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;background:#f8fafc;border-bottom:1px solid #e5e7eb;}
.tcs-cleaner-week-head>div{display:flex;align-items:center;gap:10px;min-width:0;}
.tcs-cleaner-week-head h4{margin:0;font-size:16px;color:#0f172a;}
.tcs-cleaner-week-head strong{font-size:17px;color:#047857;}
.tcs-mobile-day-row{display:grid;grid-template-columns:58px 1fr;gap:10px;padding:10px 12px;border-bottom:1px solid #eef2f7;min-height:60px;}
.tcs-mobile-day-row:last-child{border-bottom:0;}
.tcs-mobile-day-label{font-weight:800;color:#334155;text-align:center;font-size:13px;}
.tcs-mobile-day-label span{font-size:12px;color:#64748b;font-weight:600;}
.tcs-mobile-day-cards{display:flex;flex-direction:column;gap:7px;min-width:0;}
.tcs-coverage-mobile-board{gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;padding:4px 2px 12px;margin:8px -2px;}
.tcs-mobile-coverage-day{min-width:82vw;scroll-snap-align:start;background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:12px;box-shadow:0 2px 12px rgba(15,23,42,.06);}
.tcs-mobile-coverage-day h4{margin:0 0 10px 0;color:#0f172a;font-size:16px;}
.tcs-mobile-coverage-day h4 span{color:#64748b;font-weight:600;}
.tcs-mobile-unassigned{width:100%;margin-top:8px;border:1px dashed #f59e0b!important;background:#fff7ed!important;color:#92400e!important;border-radius:12px!important;padding:9px!important;font-size:12px!important;text-align:left!important;}
@media(max-width:760px){
  #tcs-scheduler-root{font-size:14px;}
  #tcs-scheduler-root .tcs-header{display:none;}
  #tcs-scheduler-root .tcs-tabs{display:flex;overflow-x:auto;gap:8px;padding:8px 2px;margin-bottom:8px;position:sticky;top:0;background:#fff;z-index:50;border-bottom:1px solid #e5e7eb;}
  #tcs-scheduler-root .tcs-tab{flex:0 0 auto;border-radius:999px;padding:8px 12px;font-size:12px;white-space:nowrap;}
  #tcs-scheduler-root .tcs-card{padding:12px;border-radius:16px;box-shadow:none;border:1px solid #e5e7eb;}
  #tcs-scheduler-root .tcs-section-head{align-items:flex-start;gap:10px;}
  #tcs-scheduler-root .tcs-section-head h3{font-size:18px;margin-bottom:4px;}
  #tcs-scheduler-root .tcs-inline{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:8px;}
  #tcs-scheduler-root .tcs-inline input,#tcs-scheduler-root .tcs-inline select,#tcs-scheduler-root .tcs-inline button{width:100%;min-width:0;}
  #tcs-scheduler-root .tcs-grid{grid-template-columns:1fr!important;gap:10px;}
  .tcs-gcal-topbar{display:flex;}
  .tcs-desktop-help{display:none;}
  .tcs-month-scroll{overflow:visible!important;}
  .tcs-gcal-month{width:100%;min-width:0!important;}
  .tcs-gcal-month th{font-size:13px;padding:7px 0;}
  .tcs-gcal-month td{width:14.28%!important;min-width:0!important;height:116px!important;padding:3px!important;}
  .tcs-month-day-number{font-size:12px!important;margin:0 0 3px 0!important;font-weight:600!important;color:#374151;}
  .tcs-today-number{width:24px;height:24px;font-size:12px!important;}
  .tcs-gcal-event{font-size:10px!important;padding:3px 4px!important;border-radius:4px!important;}
  .tcs-gcal-event .tcs-card-x-delete{display:none;}
  .tcs-event-time{display:none;}
  .tcs-event-cleaner{font-size:9px;}
  .tcs-month-card .tcs-drag-handle{display:none;}
  .tcs-mobile-fab{display:block;}
  .tcs-coverage-mobile-board{display:flex;}
  .tcs-project-coverage-table{display:none!important;}
  .tcs-worksheet-mobile{display:block;}
  .tcs-worksheet-desktop{display:none!important;}
  .tcs-cell-item.tcs-assignment-chip{border-radius:12px!important;padding:9px 10px!important;margin:0!important;}
  .tcs-cell-item .tcs-chip-project{font-size:13px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .tcs-cell-item .tcs-chip-meta{font-size:11px!important;}
  .tcs-cell-item .tcs-actions-inline,.tcs-cell-item .tcs-mini-delete,.tcs-cell-item .tcs-drag-handle{display:none!important;}
  .tcs-cleaning-modal{width:100vw!important;max-height:92vh;overflow:auto;border-radius:22px 22px 0 0!important;margin-top:auto;padding:16px!important;}
  .tcs-modal-backdrop{align-items:flex-end!important;padding:0!important;}
  .tcs-modal-actions{display:grid!important;grid-template-columns:1fr!important;}
  .tcs-modal-actions button{width:100%;min-height:46px;}
}

/* v59 professional finance reports */
.tcs-finance-page .tcs-finance-hero{display:flex;justify-content:space-between;align-items:center;gap:16px;background:linear-gradient(135deg,#0f3443,#1f6f8b);color:#fff;border:0;box-shadow:0 10px 28px rgba(15,52,67,.18)}
.tcs-finance-page .tcs-finance-hero h3{color:#fff;margin:0 0 4px}.tcs-finance-page .tcs-finance-hero .tcs-small{color:rgba(255,255,255,.82)}
.tcs-finance-period-buttons{display:flex;gap:8px;flex-wrap:wrap}.tcs-finance-period-buttons button{background:rgba(255,255,255,.16)!important;color:#fff!important;border:1px solid rgba(255,255,255,.28)!important}
.tcs-finance-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:14px 0}.tcs-kpi-card{background:#fff;border:1px solid #dbe7ee;border-radius:16px;padding:16px;box-shadow:0 6px 18px rgba(15,52,67,.06)}.tcs-kpi-card span{display:block;color:#64748b;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.tcs-kpi-card strong{display:block;margin-top:8px;font-size:24px;color:#0f3443}
.tcs-finance-columns{display:grid;grid-template-columns:1fr 1fr;gap:14px}.tcs-finance-line{display:flex;justify-content:space-between;gap:12px;align-items:center;border:1px solid #e1edf3;background:#fbfdfe;border-radius:14px;padding:12px 14px;margin-bottom:10px}.tcs-finance-line span{display:block;color:#64748b;font-size:12px;margin-top:3px}.tcs-finance-line>strong{font-size:17px;color:#0f766e;white-space:nowrap}.tcs-report-actions{align-items:center;flex-wrap:wrap}.tcs-report-actions button{border-radius:999px;padding:10px 14px;font-weight:800}
@media(max-width:760px){.tcs-finance-page .tcs-finance-hero{display:block}.tcs-finance-period-buttons{margin-top:12px}.tcs-finance-kpis{grid-template-columns:1fr 1fr}.tcs-finance-columns{grid-template-columns:1fr}.tcs-kpi-card{padding:13px}.tcs-kpi-card strong{font-size:20px}.tcs-finance-line{align-items:flex-start}.tcs-finance-line>strong{font-size:15px}}

/* v60 finance workflow */
.tcs-finance-done{display:inline-block;background:#dcfce7;color:#166534;border:1px solid #86efac;border-radius:999px;padding:3px 8px;font-size:11px;font-weight:800;white-space:nowrap}
.tcs-finance-open{display:inline-block;background:#fef3c7;color:#92400e;border:1px solid #fde68a;border-radius:999px;padding:3px 8px;font-size:11px;font-weight:800;white-space:nowrap}
.tcs-success-panel{background:#ecfdf5;border:1px solid #a7f3d0;color:#065f46;border-radius:12px;padding:10px 12px;margin-top:10px;font-weight:700}

/* v62 lightweight finance polish */
.tcs-finance-options{display:flex;gap:14px;flex-wrap:wrap;margin:10px 0 4px;font-size:13px;color:#334155}.tcs-finance-options label{display:flex;align-items:center;gap:6px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:8px 10px}.tcs-finance-alert{background:#ecfeff;border:1px solid #bae6fd;color:#0f3f56;border-radius:14px;padding:12px 14px;margin:10px 0 18px;font-size:13px}.tcs-finance-page table th{white-space:nowrap}.tcs-finance-page table td{vertical-align:top}.tcs-finance-done{display:inline-block;background:#dcfce7;color:#166534;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:700}.tcs-finance-open{display:inline-block;background:#fff7ed;color:#9a3412;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:700}@media(max-width:720px){.tcs-finance-options{display:block}.tcs-finance-options label{margin-bottom:8px}.tcs-finance-page .tcs-report-actions button{width:100%;margin-bottom:8px}.tcs-finance-line{align-items:flex-start}.tcs-finance-line>div:last-child{text-align:left;width:100%;margin-top:10px}.tcs-finance-line button{width:100%;margin-top:6px}}

/* v63 brand header + settings gear */
#tcs-scheduler-root .tcs-topbar{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:14px 16px;margin-bottom:0;border-radius:18px 18px 0 0;
  background:linear-gradient(135deg,#0f766e,#164e63);color:#fff;box-shadow:0 8px 24px rgba(15,118,110,.18);
}
#tcs-scheduler-root .tcs-brand-left{min-width:0;display:flex;flex-direction:column;gap:4px;}
#tcs-scheduler-root .tcs-brand-title{font-size:20px;font-weight:800;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
#tcs-scheduler-root .tcs-brand-sub{font-size:12px;opacity:.86;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
#tcs-scheduler-root .tcs-brand-right{display:flex;align-items:center;gap:10px;flex:0 0 auto;}
#tcs-scheduler-root .tcs-brand-logo{height:46px;width:auto;max-width:160px;object-fit:contain;background:#fff;border-radius:12px;padding:5px;}
#tcs-scheduler-root .tcs-settings-gear{width:42px;height:42px;border-radius:999px!important;padding:0!important;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.18)!important;color:#fff!important;border:1px solid rgba(255,255,255,.28)!important;font-size:19px;}
#tcs-scheduler-root .tcs-settings-gear:hover{background:rgba(255,255,255,.28)!important;}
#tcs-scheduler-root .tcs-tabs{border-radius:0 0 18px 18px;margin-bottom:14px;}
@media(max-width:800px){
  #tcs-scheduler-root .tcs-topbar{display:flex!important;position:sticky;top:0;z-index:90;border-radius:0;margin:0 -4px 8px -4px;padding:10px 12px;}
  #tcs-scheduler-root .tcs-brand-title{font-size:15px;max-width:190px;}
  #tcs-scheduler-root .tcs-brand-sub{font-size:11px;max-width:210px;}
  #tcs-scheduler-root .tcs-brand-logo{height:34px;max-width:82px;border-radius:9px;padding:3px;}
  #tcs-scheduler-root .tcs-brand-right{gap:6px;}
  #tcs-scheduler-root .tcs-settings-gear{width:36px;height:36px;font-size:16px;}
  #tcs-scheduler-root .tcs-brand-right #logoutBtn{display:none;}
}


/* v64 clean sticky header + fixed settings page activation support */
#tcs-scheduler-root .tcs-topbar{
  position:sticky;
  top:0;
  z-index:120;
  background:#ffffff!important;
  color:#0f172a!important;
  border:1px solid #e5e7eb!important;
  border-bottom:1px solid #dbe2ea!important;
  box-shadow:0 1px 0 rgba(15,23,42,.04),0 8px 18px rgba(15,23,42,.04)!important;
  border-radius:16px 16px 0 0!important;
  padding:12px 16px!important;
}
#tcs-scheduler-root .tcs-brand-title{color:#0f172a!important;}
#tcs-scheduler-root .tcs-brand-sub{color:#64748b!important;opacity:1!important;}
#tcs-scheduler-root .tcs-brand-logo{
  background:#fff!important;
  border:1px solid #e5e7eb!important;
  box-shadow:none!important;
}
#tcs-scheduler-root .tcs-settings-gear{
  background:#f8fafc!important;
  color:#334155!important;
  border:1px solid #e2e8f0!important;
}
#tcs-scheduler-root .tcs-settings-gear:hover{background:#eef2f7!important;color:#0f172a!important;}
#tcs-scheduler-root .tcs-brand-right #logoutBtn{
  background:#f8fafc!important;
  color:#334155!important;
  border:1px solid #e2e8f0!important;
}
#tcs-scheduler-root .tcs-tabs{
  position:sticky;
  top:74px;
  z-index:115;
  background:#ffffff!important;
  border:1px solid #e5e7eb!important;
  border-top:0!important;
  border-radius:0 0 16px 16px!important;
  box-shadow:0 8px 18px rgba(15,23,42,.04)!important;
}
#tcs-scheduler-root .tcs-page.active{display:block;}
@media(max-width:800px){
  #tcs-scheduler-root .tcs-topbar{
    position:sticky!important;
    top:0!important;
    z-index:120!important;
    border-radius:0!important;
    margin:0 -4px 0 -4px!important;
    padding:9px 12px!important;
  }
  #tcs-scheduler-root .tcs-tabs{
    position:sticky!important;
    top:56px!important;
    z-index:115!important;
    border-radius:0!important;
    margin:0 -4px 10px -4px!important;
  }
}

/* v66 true fixed header/navigation */
#tcs-scheduler-root{padding-top:138px!important;}
#tcs-scheduler-root .tcs-topbar{
  position:fixed!important;
  top:0!important;
  left:50%!important;
  transform:translateX(-50%)!important;
  width:min(1400px,100vw)!important;
  z-index:99999!important;
  border-radius:0!important;
  margin:0!important;
}
#tcs-scheduler-root .tcs-tabs{
  position:fixed!important;
  top:70px!important;
  left:50%!important;
  transform:translateX(-50%)!important;
  width:min(1400px,100vw)!important;
  z-index:99998!important;
  border-radius:0!important;
  margin:0!important;
}
body.admin-bar #tcs-scheduler-root .tcs-topbar{top:32px!important;}
body.admin-bar #tcs-scheduler-root .tcs-tabs{top:102px!important;}
@media(max-width:800px){
  #tcs-scheduler-root{padding-top:120px!important;}
  #tcs-scheduler-root .tcs-topbar{top:0!important;width:100vw!important;padding:9px 12px!important;}
  #tcs-scheduler-root .tcs-tabs{top:56px!important;width:100vw!important;}
  body.admin-bar #tcs-scheduler-root .tcs-topbar{top:46px!important;}
  body.admin-bar #tcs-scheduler-root .tcs-tabs{top:102px!important;}
}


/* v67 professional full-width fixed app chrome */
#tcs-scheduler-root{
  max-width:none!important;
  width:100%!important;
  margin:0!important;
  padding-top:132px!important;
  background:#f8fafc;
}
#tcs-scheduler-root .tcs-topbar{
  position:fixed!important;
  top:0!important;
  left:0!important;
  right:0!important;
  transform:none!important;
  width:100vw!important;
  max-width:none!important;
  min-height:68px!important;
  border-radius:0!important;
  margin:0!important;
  padding:14px 28px!important;
  background:#ffffff!important;
  border:0!important;
  border-bottom:1px solid #e5e7eb!important;
  box-shadow:0 1px 8px rgba(15,23,42,.05)!important;
  color:#0f172a!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  z-index:99998!important;
}
#tcs-scheduler-root .tcs-brand-left{display:flex!important;flex-direction:column!important;justify-content:center!important;min-width:0!important;gap:4px!important;}
#tcs-scheduler-root .tcs-brand-title{font-size:21px!important;line-height:1.15!important;font-weight:800!important;color:#0f172a!important;letter-spacing:-.02em!important;}
#tcs-scheduler-root .tcs-brand-sub{font-size:12px!important;color:#64748b!important;opacity:1!important;font-weight:500!important;}
#tcs-scheduler-root .tcs-brand-right{display:flex!important;align-items:center!important;gap:12px!important;}
#tcs-scheduler-root .tcs-brand-logo{height:42px!important;max-width:150px!important;border-radius:12px!important;background:#f8fafc!important;border:1px solid #e5e7eb!important;padding:4px!important;object-fit:contain!important;}
#tcs-scheduler-root .tcs-settings-gear{width:40px!important;height:40px!important;background:#f1f5f9!important;color:#0f766e!important;border:1px solid #dbe7ee!important;box-shadow:none!important;font-size:18px!important;}
#tcs-scheduler-root .tcs-settings-gear:hover{background:#e6f7f9!important;}
#tcs-scheduler-root .tcs-brand-right #logoutBtn{background:#ffffff!important;color:#0f172a!important;border:1px solid #cbd5e1!important;border-radius:10px!important;padding:10px 16px!important;box-shadow:none!important;}
#tcs-scheduler-root .tcs-tabs{
  position:fixed!important;
  top:68px!important;
  left:0!important;
  right:0!important;
  width:100vw!important;
  max-width:none!important;
  transform:none!important;
  z-index:99997!important;
  border-radius:0!important;
  margin:0!important;
  padding:10px 28px!important;
  background:#ffffff!important;
  border:0!important;
  border-bottom:1px solid #e5e7eb!important;
  box-shadow:0 1px 6px rgba(15,23,42,.04)!important;
  overflow-x:auto!important;
  display:flex!important;
  gap:10px!important;
}
#tcs-scheduler-root .tcs-tab{border-radius:999px!important;padding:9px 16px!important;background:#e8f7fa!important;color:#0f5963!important;border:1px solid #c7edf3!important;white-space:nowrap!important;font-size:13px!important;}
#tcs-scheduler-root .tcs-tab.active{background:#0f766e!important;color:#fff!important;border-color:#0f766e!important;}
#tcs-scheduler-root .tcs-page{padding:18px 28px!important;}
#tcs-scheduler-root .tcs-project-coverage-table .tcs-cancel-only-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;background:#dc2626!important;color:#fff!important;}
@media(max-width:760px){
  #tcs-scheduler-root{padding-top:118px!important;}
  #tcs-scheduler-root .tcs-topbar{min-height:60px!important;padding:10px 14px!important;}
  #tcs-scheduler-root .tcs-brand-title{font-size:16px!important;max-width:58vw!important;}
  #tcs-scheduler-root .tcs-brand-sub{font-size:11px!important;max-width:60vw!important;}
  #tcs-scheduler-root .tcs-brand-logo{height:34px!important;max-width:78px!important;}
  #tcs-scheduler-root .tcs-tabs{top:60px!important;padding:8px 12px!important;gap:8px!important;}
  #tcs-scheduler-root .tcs-tab{font-size:12px!important;padding:8px 12px!important;}
  #tcs-scheduler-root .tcs-page{padding:12px!important;}
}

/* v68 app shell polish: professional fixed header with reliable spacing */
#tcs-scheduler-root{
  max-width:none!important;
  width:100%!important;
  margin:0!important;
  padding-top:150px!important;
  background:#f8fafc!important;
}
#tcs-scheduler-root .tcs-topbar{
  position:fixed!important;
  top:0!important;
  left:0!important;
  right:0!important;
  width:100%!important;
  max-width:none!important;
  min-height:76px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:24px!important;
  padding:14px 32px!important;
  background:#fff!important;
  color:#0f172a!important;
  border:0!important;
  border-bottom:1px solid #e5e7eb!important;
  box-shadow:0 1px 10px rgba(15,23,42,.045)!important;
  border-radius:0!important;
  z-index:2147483000!important;
  transform:none!important;
}
#tcs-scheduler-root .tcs-brand-left{min-width:0!important;display:flex!important;flex-direction:column!important;gap:5px!important;}
#tcs-scheduler-root .tcs-brand-title{font-size:22px!important;font-weight:800!important;letter-spacing:-.025em!important;color:#0f172a!important;line-height:1.1!important;}
#tcs-scheduler-root .tcs-brand-sub{font-size:12px!important;font-weight:600!important;color:#64748b!important;opacity:1!important;line-height:1.2!important;}
#tcs-scheduler-root .tcs-brand-right{display:flex!important;align-items:center!important;gap:12px!important;flex-shrink:0!important;}
#tcs-scheduler-root .tcs-brand-logo{order:2!important;height:44px!important;max-width:160px!important;object-fit:contain!important;background:#fff!important;border:1px solid #e5e7eb!important;border-radius:12px!important;padding:4px!important;}
#tcs-scheduler-root .tcs-settings-gear{order:1!important;width:42px!important;height:42px!important;border-radius:999px!important;background:#f8fafc!important;color:#0f766e!important;border:1px solid #dbe7ee!important;box-shadow:none!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;}
#tcs-scheduler-root .tcs-brand-right #logoutBtn{order:3!important;background:#fff!important;color:#0f172a!important;border:1px solid #cbd5e1!important;border-radius:10px!important;padding:10px 16px!important;box-shadow:none!important;}
#tcs-scheduler-root .tcs-tabs{
  position:fixed!important;
  top:76px!important;
  left:0!important;
  right:0!important;
  width:100%!important;
  max-width:none!important;
  transform:none!important;
  display:flex!important;
  gap:10px!important;
  padding:11px 32px!important;
  background:#fff!important;
  border:0!important;
  border-bottom:1px solid #e5e7eb!important;
  border-radius:0!important;
  box-shadow:0 1px 8px rgba(15,23,42,.035)!important;
  overflow-x:auto!important;
  z-index:2147482999!important;
}
#tcs-scheduler-root .tcs-tab{border-radius:999px!important;padding:9px 16px!important;font-size:13px!important;line-height:1!important;white-space:nowrap!important;box-shadow:none!important;}
#tcs-scheduler-root .tcs-page{padding:22px 32px!important;}
body.admin-bar #tcs-scheduler-root .tcs-topbar{top:32px!important;}
body.admin-bar #tcs-scheduler-root .tcs-tabs{top:108px!important;}
body.admin-bar #tcs-scheduler-root{padding-top:182px!important;}
@media(max-width:760px){
  #tcs-scheduler-root{padding-top:126px!important;}
  #tcs-scheduler-root .tcs-topbar{min-height:62px!important;padding:10px 14px!important;gap:10px!important;}
  #tcs-scheduler-root .tcs-brand-title{font-size:16px!important;max-width:56vw!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
  #tcs-scheduler-root .tcs-brand-sub{font-size:11px!important;max-width:58vw!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
  #tcs-scheduler-root .tcs-brand-logo{height:34px!important;max-width:74px!important;}
  #tcs-scheduler-root .tcs-settings-gear{width:36px!important;height:36px!important;}
  #tcs-scheduler-root .tcs-brand-right #logoutBtn{display:none!important;}
  #tcs-scheduler-root .tcs-tabs{top:62px!important;padding:8px 12px!important;gap:8px!important;}
  #tcs-scheduler-root .tcs-tab{font-size:12px!important;padding:8px 12px!important;}
  #tcs-scheduler-root .tcs-page{padding:12px!important;}
  body.admin-bar #tcs-scheduler-root .tcs-topbar{top:46px!important;}
  body.admin-bar #tcs-scheduler-root .tcs-tabs{top:108px!important;}
}


/* v71 cleaner colors + dashboard priority */
.tcs-month-card{overflow:hidden;}
.tcs-month-card .tcs-event-line,.tcs-month-card .tcs-event-cleaner{padding-left:2px;}
.tcs-dashboard-card{position:relative;}
.tcs-dashboard-has-today{border-color:#37b6c8;box-shadow:0 10px 24px rgba(55,182,200,.18);transform:translateY(-1px);}
.tcs-dashboard-no-today{opacity:.45;filter:grayscale(.15);background:#f8fafc;}
.tcs-dashboard-no-today:hover{opacity:.75;}
.tcs-dashboard-priority-badge{position:absolute;top:12px;right:12px;background:#e0f7fa;color:#0f766e;border:1px solid #99f6e4;border-radius:999px;font-size:11px;font-weight:800;padding:4px 8px;}

/* v74 mobile calendar + cleaner color polish */
.tcs-gcal-event{background:var(--cleaner-color,#37b6c8)!important;color:#fff!important;border-left:0!important;}
.tcs-gcal-event .tcs-event-cleaner,.tcs-gcal-event .tcs-event-time{color:rgba(255,255,255,.92)!important;}
@media(max-width:760px){
  #tcs-scheduler-root .tcs-card:has(#monthViewTable){padding:6px!important;border:0!important;box-shadow:none!important;}
  .tcs-mobile-month-shell{width:100%;overflow:hidden;touch-action:pan-y;background:#fff;}
  .tcs-gcal-topbar{padding:4px 2px 8px;margin:0 0 4px!important;}
  .tcs-gcal-topbar strong{font-size:20px!important;}
  .tcs-gcal-month{width:100%!important;table-layout:fixed!important;border-collapse:collapse!important;}
  .tcs-gcal-month th{font-size:11px!important;height:22px!important;padding:2px 0!important;}
  .tcs-gcal-month td{height:82px!important;padding:2px!important;border-color:#eef2f7!important;}
  .tcs-month-day-number{font-size:11px!important;height:16px!important;line-height:16px!important;margin:0 0 1px!important;}
  .tcs-today-number{width:18px!important;height:18px!important;line-height:18px!important;font-size:10px!important;}
  .tcs-month-events{gap:1px!important;}
  .tcs-gcal-event{min-height:14px!important;font-size:8.5px!important;line-height:1.05!important;padding:2px 3px!important;margin:1px 0!important;border-radius:3px!important;}
  .tcs-gcal-event strong{font-size:8.5px!important;max-width:100%;}
  .tcs-event-line{display:block!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .tcs-event-cleaner{font-size:7.5px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .tcs-more-events{font-size:8px!important;padding:1px 2px!important;margin:1px 0!important;line-height:1!important;}
}


/* v75: real mobile Google-calendar month fit + cache-bust fix */
@media(max-width:760px){
  #tcs-scheduler-root #monthview .tcs-card{padding:4px!important;margin:0!important;border-radius:0!important;box-shadow:none!important;background:#fff!important;}
  #tcs-scheduler-root #monthview .tcs-section-head{padding:4px 2px!important;margin:0!important;gap:6px!important;}
  #tcs-scheduler-root #monthview .tcs-section-head h3{display:none!important;}
  #tcs-scheduler-root #monthPicker{max-width:150px!important;padding:7px 8px!important;font-size:13px!important;}
  #tcs-scheduler-root .tcs-month-scroll{width:100%!important;max-width:100vw!important;overflow:hidden!important;margin:0!important;padding:0!important;}
  #tcs-scheduler-root .tcs-gcal-month,
  #tcs-scheduler-root table.tcs-gcal-month{
    min-width:0!important;
    width:100%!important;
    max-width:100%!important;
    table-layout:fixed!important;
    border-collapse:collapse!important;
  }
  #tcs-scheduler-root table.tcs-gcal-month th,
  #tcs-scheduler-root table.tcs-gcal-month td{
    min-width:0!important;
    width:14.2857%!important;
    padding:1px!important;
    font-size:10px!important;
  }
  #tcs-scheduler-root table.tcs-gcal-month th{
    height:20px!important;
    text-align:center!important;
    background:#fff!important;
    border:0!important;
    color:#64748b!important;
    font-weight:700!important;
  }
  #tcs-scheduler-root table.tcs-gcal-month td{
    height:74px!important;
    vertical-align:top!important;
    border:1px solid #edf2f7!important;
    background:#fff!important;
  }
  #tcs-scheduler-root table.tcs-gcal-month td.tcs-muted-day{background:#fafafa!important;color:#cbd5e1!important;}
  #tcs-scheduler-root .tcs-month-day-number{font-size:10px!important;height:14px!important;line-height:14px!important;text-align:center!important;margin:0!important;}
  #tcs-scheduler-root .tcs-today-number{width:16px!important;height:16px!important;line-height:16px!important;margin:0 auto!important;font-size:9px!important;}
  #tcs-scheduler-root .tcs-month-events{display:flex!important;flex-direction:column!important;gap:1px!important;min-width:0!important;}
  #tcs-scheduler-root .tcs-gcal-event{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    min-height:12px!important;
    padding:1px 2px!important;
    margin:0!important;
    border-radius:3px!important;
    line-height:1.05!important;
    overflow:hidden!important;
  }
  #tcs-scheduler-root .tcs-gcal-event .tcs-card-x-delete{display:none!important;}
  #tcs-scheduler-root .tcs-gcal-event .tcs-event-line{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:8px!important;}
  #tcs-scheduler-root .tcs-gcal-event .tcs-event-line strong{font-size:8px!important;font-weight:700!important;}
  #tcs-scheduler-root .tcs-gcal-event .tcs-event-time{font-size:7px!important;margin-right:1px!important;}
  #tcs-scheduler-root .tcs-gcal-event .tcs-event-cleaner{font-size:6.8px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
  #tcs-scheduler-root .tcs-more-events{font-size:7px!important;padding:0 2px!important;min-height:10px!important;line-height:10px!important;border-radius:3px!important;}
  #tcs-scheduler-root .tcs-gcal-topbar{padding:2px 0 6px!important;margin:0!important;display:flex!important;align-items:center!important;justify-content:space-between!important;}
  #tcs-scheduler-root .tcs-gcal-topbar strong{font-size:18px!important;}
}


/* v76 mobile full-screen month + modal accessibility fixes */
@media(max-width:760px){
  html, body{max-width:100%; overflow-x:hidden;}
  #tcs-scheduler-root{min-height:100vh!important; padding-bottom:0!important;}
  #tcs-scheduler-root .tcs-page{padding:0!important;}
  #tcs-scheduler-root #monthview{
    height:calc(100vh - 118px)!important;
    min-height:calc(100vh - 118px)!important;
    overflow:hidden!important;
    background:#fff!important;
  }
  body.admin-bar #tcs-scheduler-root #monthview{
    height:calc(100vh - 164px)!important;
    min-height:calc(100vh - 164px)!important;
  }
  #tcs-scheduler-root #monthview .tcs-card{
    height:100%!important;
    min-height:100%!important;
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    max-width:100vw!important;
    overflow:hidden!important;
  }
  #tcs-scheduler-root #monthview .tcs-section-head{flex:0 0 auto!important;}
  #tcs-scheduler-root #monthview .tcs-mobile-month-shell,
  #tcs-scheduler-root #monthview .tcs-month-scroll{
    flex:1 1 auto!important;
    height:100%!important;
    min-height:0!important;
    width:100%!important;
    max-width:100vw!important;
    overflow:hidden!important;
  }
  #tcs-scheduler-root #monthview table.tcs-gcal-month{
    height:100%!important;
  }
  #tcs-scheduler-root #monthview table.tcs-gcal-month tbody tr{
    height:16.66%!important;
  }
  #tcs-scheduler-root #monthview table.tcs-gcal-month td{
    height:auto!important;
    min-height:0!important;
    padding:1px!important;
  }
  #tcs-scheduler-root .tcs-mobile-fab{display:none!important;visibility:hidden!important;pointer-events:none!important;}
}

/* v76 modal must always sit above fixed header/menu */
.tcs-modal-backdrop{
  z-index:2147483647!important;
  padding:0!important;
}
.tcs-cleaning-modal{
  position:relative!important;
  z-index:2147483647!important;
}
.tcs-modal-close{
  position:relative!important;
  z-index:2147483647!important;
  flex:0 0 auto!important;
}
@media(max-width:760px){
  .tcs-modal-backdrop{
    align-items:flex-end!important;
    justify-content:center!important;
    inset:0!important;
  }
  .tcs-cleaning-modal{
    width:100vw!important;
    max-width:100vw!important;
    max-height:92vh!important;
    overflow:auto!important;
    border-radius:18px 18px 0 0!important;
    padding:14px!important;
    margin:0!important;
  }
  .tcs-cleaning-modal-head{
    position:sticky!important;
    top:0!important;
    background:#fff!important;
    z-index:2147483647!important;
    padding-top:4px!important;
  }
  .tcs-modal-close{
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    font-size:28px!important;
    line-height:38px!important;
  }
}


/* v77: mobile month view true full-viewport/full-width layout */
@media(max-width:760px){
  html, body{width:100%!important;max-width:100%!important;overflow-x:hidden!important;}
  #tcs-scheduler-root{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    overflow-x:hidden!important;
  }
  #tcs-scheduler-root .tcs-page{padding:0!important;margin:0!important;}

  /* Month page breaks out of narrow WP content containers and fills the phone viewport. */
  #tcs-scheduler-root #monthview.tcs-page.active,
  #tcs-scheduler-root #monthview.active{
    display:flex!important;
    flex-direction:column!important;
    width:100vw!important;
    max-width:100vw!important;
    margin-left:calc(50% - 50vw)!important;
    margin-right:calc(50% - 50vw)!important;
    padding:0!important;
    height:calc(100dvh - 112px)!important;
    min-height:calc(100dvh - 112px)!important;
    overflow:hidden!important;
    background:#fff!important;
  }
  body.admin-bar #tcs-scheduler-root #monthview.tcs-page.active,
  body.admin-bar #tcs-scheduler-root #monthview.active{
    height:calc(100dvh - 158px)!important;
    min-height:calc(100dvh - 158px)!important;
  }

  #tcs-scheduler-root #monthview .tcs-card{
    flex:1 1 auto!important;
    display:flex!important;
    flex-direction:column!important;
    width:100vw!important;
    max-width:100vw!important;
    height:100%!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    background:#fff!important;
    overflow:hidden!important;
  }
  #tcs-scheduler-root #monthview .tcs-section-head{
    flex:0 0 auto!important;
    min-height:38px!important;
    padding:4px 8px!important;
    margin:0!important;
    border-bottom:1px solid #e5e7eb!important;
    background:#fff!important;
  }
  #tcs-scheduler-root #monthview .tcs-section-head h3{display:none!important;}
  #tcs-scheduler-root #monthview #monthPicker{
    width:150px!important;
    max-width:150px!important;
    height:30px!important;
    padding:3px 8px!important;
    margin:0!important;
    font-size:13px!important;
    border-radius:8px!important;
  }

  #tcs-scheduler-root #monthViewTable{
    flex:1 1 auto!important;
    display:flex!important;
    min-height:0!important;
    width:100%!important;
    max-width:100vw!important;
    overflow:hidden!important;
  }
  #tcs-scheduler-root #monthview .tcs-mobile-month-shell{
    flex:1 1 auto!important;
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    max-width:100vw!important;
    height:100%!important;
    min-height:0!important;
    overflow:hidden!important;
    background:#fff!important;
    touch-action:pan-y!important;
  }
  #tcs-scheduler-root #monthview .tcs-gcal-topbar{
    flex:0 0 34px!important;
    height:34px!important;
    min-height:34px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    padding:2px 8px!important;
    margin:0!important;
    border-bottom:1px solid #eef2f7!important;
    background:#fff!important;
  }
  #tcs-scheduler-root #monthview .tcs-gcal-topbar strong{font-size:17px!important;line-height:1!important;font-weight:700!important;}
  #tcs-scheduler-root #monthview .tcs-gcal-topbar button{height:28px!important;min-width:34px!important;padding:0 8px!important;border-radius:8px!important;}
  #tcs-scheduler-root #monthview .tcs-gcal-today{font-size:12px!important;min-width:24px!important;text-align:center!important;}
  #tcs-scheduler-root #monthview .tcs-dnd-help{display:none!important;}

  #tcs-scheduler-root #monthview .tcs-month-scroll{
    flex:1 1 auto!important;
    width:100%!important;
    max-width:100vw!important;
    height:auto!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    background:#fff!important;
  }
  #tcs-scheduler-root #monthview table.tcs-gcal-month{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:100%!important;
    min-height:100%!important;
    table-layout:fixed!important;
    border-collapse:collapse!important;
    border-spacing:0!important;
    background:#fff!important;
  }
  #tcs-scheduler-root #monthview table.tcs-gcal-month thead{height:22px!important;}
  #tcs-scheduler-root #monthview table.tcs-gcal-month th{
    height:22px!important;
    padding:0!important;
    font-size:11px!important;
    line-height:22px!important;
    text-align:center!important;
    color:#64748b!important;
    background:#fff!important;
    border:0!important;
    border-bottom:1px solid #e5e7eb!important;
  }
  #tcs-scheduler-root #monthview table.tcs-gcal-month tbody{height:calc(100% - 22px)!important;}
  #tcs-scheduler-root #monthview table.tcs-gcal-month tr{height:16.6667%!important;}
  #tcs-scheduler-root #monthview table.tcs-gcal-month td{
    width:14.2857%!important;
    min-width:0!important;
    height:16.6667%!important;
    min-height:calc((100dvh - 196px) / 6)!important;
    padding:2px!important;
    vertical-align:top!important;
    border:1px solid #eef2f7!important;
    background:#fff!important;
    overflow:hidden!important;
  }
  #tcs-scheduler-root #monthview .tcs-month-day-number{
    height:15px!important;
    line-height:15px!important;
    margin:0 0 1px!important;
    text-align:center!important;
    font-size:10px!important;
    font-weight:600!important;
    color:#374151!important;
  }
  #tcs-scheduler-root #monthview .tcs-today-number{
    width:16px!important;
    height:16px!important;
    line-height:16px!important;
    margin:0 auto 1px!important;
    font-size:9px!important;
  }
  #tcs-scheduler-root #monthview .tcs-month-events{
    display:flex!important;
    flex-direction:column!important;
    gap:1px!important;
    width:100%!important;
    min-width:0!important;
    max-height:calc(100% - 17px)!important;
    overflow:hidden!important;
  }
  #tcs-scheduler-root #monthview .tcs-gcal-event{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:13px!important;
    padding:1px 2px!important;
    margin:0!important;
    border-radius:3px!important;
    line-height:1.05!important;
    overflow:hidden!important;
    box-shadow:none!important;
  }
  #tcs-scheduler-root #monthview .tcs-gcal-event .tcs-event-line{
    display:block!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    font-size:8.5px!important;
    line-height:1.05!important;
  }
  #tcs-scheduler-root #monthview .tcs-gcal-event .tcs-event-line strong{font-size:8.5px!important;font-weight:700!important;}
  #tcs-scheduler-root #monthview .tcs-gcal-event .tcs-event-time{font-size:7.5px!important;margin-right:1px!important;}
  #tcs-scheduler-root #monthview .tcs-gcal-event .tcs-event-cleaner{
    font-size:7px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    line-height:1.05!important;
  }
  #tcs-scheduler-root #monthview .tcs-more-events{
    width:100%!important;
    min-height:11px!important;
    line-height:11px!important;
    font-size:7px!important;
    padding:0 2px!important;
    margin:0!important;
    border-radius:3px!important;
  }

  /* Keep the editor modal usable above fixed app chrome. */
  #tcs-scheduler-root .tcs-mobile-fab{display:none!important;}
  .tcs-modal-backdrop{z-index:2147483647!important;align-items:flex-end!important;}
  .tcs-cleaning-modal{z-index:2147483647!important;width:100vw!important;max-width:100vw!important;max-height:88dvh!important;border-radius:18px 18px 0 0!important;overflow:auto!important;}
  .tcs-cleaning-modal-head{position:sticky!important;top:0!important;background:#fff!important;z-index:2147483647!important;}
}

/* v78: device-safe mobile month sizing. Avoid 100vw negative breakout clipping on iPhone/Safari/WordPress containers. */
@media(max-width:760px){
  html, body{
    width:100%!important;
    max-width:100%!important;
    overflow-x:hidden!important;
  }
  *, *::before, *::after{box-sizing:border-box!important;}
  #tcs-scheduler-root,
  #tcs-scheduler-root *{
    max-width:100%!important;
  }
  #tcs-scheduler-root{
    width:100%!important;
    inline-size:100%!important;
    margin-left:0!important;
    margin-right:0!important;
    padding-left:0!important;
    padding-right:0!important;
    overflow-x:hidden!important;
  }
  #tcs-scheduler-root .tcs-topbar,
  #tcs-scheduler-root .tcs-header,
  #tcs-scheduler-root .tcs-admin-header,
  #tcs-scheduler-root .tcs-menu,
  #tcs-scheduler-root .tcs-tabs,
  #tcs-scheduler-root .tcs-nav{
    width:100%!important;
    max-width:100%!important;
    left:0!important;
    right:0!important;
    margin-left:0!important;
    margin-right:0!important;
    transform:none!important;
  }

  /* Critical: do not use viewport breakout/negative margins. The calendar adapts to the actual available screen width. */
  #tcs-scheduler-root #monthview.tcs-page.active,
  #tcs-scheduler-root #monthview.active{
    position:relative!important;
    left:auto!important;
    right:auto!important;
    transform:none!important;
    width:100%!important;
    inline-size:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    display:flex!important;
    flex-direction:column!important;
    height:calc(var(--tcs-real-vh, 100vh) - var(--tcs-app-chrome, 150px))!important;
    min-height:560px!important;
    background:#fff!important;
  }
  body.admin-bar #tcs-scheduler-root #monthview.tcs-page.active,
  body.admin-bar #tcs-scheduler-root #monthview.active{
    height:calc(var(--tcs-real-vh, 100vh) - var(--tcs-app-chrome-admin, 190px))!important;
  }

  #tcs-scheduler-root #monthview .tcs-card,
  #tcs-scheduler-root #monthViewTable,
  #tcs-scheduler-root #monthview .tcs-mobile-month-shell,
  #tcs-scheduler-root #monthview .tcs-month-scroll{
    width:100%!important;
    inline-size:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
  }
  #tcs-scheduler-root #monthview .tcs-card{
    height:100%!important;
    flex:1 1 auto!important;
    display:flex!important;
    flex-direction:column!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
  }
  #tcs-scheduler-root #monthViewTable,
  #tcs-scheduler-root #monthview .tcs-mobile-month-shell,
  #tcs-scheduler-root #monthview .tcs-month-scroll{
    flex:1 1 auto!important;
    min-height:0!important;
    display:flex!important;
    flex-direction:column!important;
  }

  #tcs-scheduler-root #monthview .tcs-gcal-topbar{
    width:100%!important;
    max-width:100%!important;
    flex:0 0 36px!important;
    height:36px!important;
    padding:3px max(8px, env(safe-area-inset-left)) 3px max(8px, env(safe-area-inset-right))!important;
  }
  #tcs-scheduler-root #monthview .tcs-section-head{display:none!important;}

  #tcs-scheduler-root #monthview table.tcs-gcal-month{
    width:100%!important;
    inline-size:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:100%!important;
    table-layout:fixed!important;
    border-collapse:collapse!important;
    border-spacing:0!important;
  }
  #tcs-scheduler-root #monthview table.tcs-gcal-month col,
  #tcs-scheduler-root #monthview table.tcs-gcal-month th,
  #tcs-scheduler-root #monthview table.tcs-gcal-month td{
    width:14.285714%!important;
    max-width:14.285714%!important;
    min-width:0!important;
  }
  #tcs-scheduler-root #monthview table.tcs-gcal-month thead{height:24px!important;display:table-header-group!important;}
  #tcs-scheduler-root #monthview table.tcs-gcal-month tbody{height:calc(100% - 24px)!important;display:table-row-group!important;}
  #tcs-scheduler-root #monthview table.tcs-gcal-month tr{height:16.666666%!important;display:table-row!important;}
  #tcs-scheduler-root #monthview table.tcs-gcal-month th{
    height:24px!important;
    line-height:24px!important;
    padding:0!important;
    font-size:11px!important;
    text-align:center!important;
  }
  #tcs-scheduler-root #monthview table.tcs-gcal-month td{
    height:16.666666%!important;
    padding:2px!important;
    overflow:hidden!important;
    vertical-align:top!important;
  }
  #tcs-scheduler-root #monthview .tcs-month-day-number{
    height:14px!important;
    line-height:14px!important;
    margin:0 0 2px!important;
    font-size:10px!important;
    text-align:center!important;
  }
  #tcs-scheduler-root #monthview .tcs-month-events{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow:hidden!important;
    gap:1px!important;
  }
  #tcs-scheduler-root #monthview .tcs-gcal-event{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:12px!important;
    border-radius:3px!important;
    padding:1px 2px!important;
    margin:0!important;
    overflow:hidden!important;
  }
  #tcs-scheduler-root #monthview .tcs-gcal-event .tcs-event-line,
  #tcs-scheduler-root #monthview .tcs-gcal-event .tcs-event-cleaner{
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    line-height:1.05!important;
  }
  #tcs-scheduler-root #monthview .tcs-gcal-event .tcs-event-line,
  #tcs-scheduler-root #monthview .tcs-gcal-event .tcs-event-line strong{font-size:clamp(7px, 2.15vw, 9px)!important;}
  #tcs-scheduler-root #monthview .tcs-gcal-event .tcs-event-cleaner{font-size:clamp(6px, 1.85vw, 8px)!important;}

  /* Stop horizontal nav from increasing the document width; it scrolls inside itself. */
  #tcs-scheduler-root .tcs-tabs,
  #tcs-scheduler-root .tcs-nav,
  #tcs-scheduler-root .tcs-main-tabs{
    overflow-x:auto!important;
    overflow-y:hidden!important;
    -webkit-overflow-scrolling:touch!important;
    scrollbar-width:none!important;
  }
  #tcs-scheduler-root .tcs-tabs::-webkit-scrollbar,
  #tcs-scheduler-root .tcs-nav::-webkit-scrollbar,
  #tcs-scheduler-root .tcs-main-tabs::-webkit-scrollbar{display:none!important;}
}


/* v79: final responsive month placement and desktop full-width calendar
   - keeps content below the fixed app chrome on mobile
   - prevents month title from hiding under menu
   - lets desktop Month View use the full available width
*/
#tcs-scheduler-root #monthview.tcs-page.active{
  width:100%!important;
  max-width:100%!important;
}
#tcs-scheduler-root #monthview .tcs-card,
#tcs-scheduler-root #monthview .tcs-month-scroll,
#tcs-scheduler-root #monthview table.tcs-gcal-month{
  width:100%!important;
  max-width:100%!important;
}
#tcs-scheduler-root #monthview table.tcs-gcal-month{
  min-width:0!important;
  table-layout:fixed!important;
}
#tcs-scheduler-root #monthview .tcs-month-scroll{
  overflow:hidden!important;
}
@media(min-width:761px){
  #tcs-scheduler-root #monthview.tcs-page.active{
    padding-left:24px!important;
    padding-right:24px!important;
  }
  #tcs-scheduler-root #monthview .tcs-card{
    margin-left:0!important;
    margin-right:0!important;
  }
  #tcs-scheduler-root #monthview table.tcs-gcal-month td{
    width:14.285714%!important;
  }
}
@media(max-width:760px){
  :root{
    --tcs-app-chrome:126px;
    --tcs-app-chrome-admin:172px;
  }
  html,body{
    overflow-x:hidden!important;
  }
  #tcs-scheduler-root{
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding-top:var(--tcs-app-chrome,126px)!important;
    padding-left:0!important;
    padding-right:0!important;
    overflow-x:hidden!important;
  }
  body.admin-bar #tcs-scheduler-root{
    padding-top:var(--tcs-app-chrome-admin,172px)!important;
  }
  #tcs-scheduler-root .tcs-topbar,
  #tcs-scheduler-root .tcs-tabs{
    width:100%!important;
    max-width:100%!important;
    left:0!important;
    right:0!important;
    transform:none!important;
  }
  #tcs-scheduler-root .tcs-tabs{
    overflow-x:auto!important;
    overflow-y:hidden!important;
    -webkit-overflow-scrolling:touch!important;
  }
  #tcs-scheduler-root #monthview.tcs-page.active,
  #tcs-scheduler-root #monthview.active{
    width:100%!important;
    inline-size:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    display:flex!important;
    flex-direction:column!important;
    height:calc(var(--tcs-real-vh, 100vh) - var(--tcs-app-chrome,126px))!important;
    min-height:calc(var(--tcs-real-vh, 100vh) - var(--tcs-app-chrome,126px))!important;
    overflow:hidden!important;
    background:#fff!important;
  }
  body.admin-bar #tcs-scheduler-root #monthview.tcs-page.active,
  body.admin-bar #tcs-scheduler-root #monthview.active{
    height:calc(var(--tcs-real-vh, 100vh) - var(--tcs-app-chrome-admin,172px))!important;
    min-height:calc(var(--tcs-real-vh, 100vh) - var(--tcs-app-chrome-admin,172px))!important;
  }
  #tcs-scheduler-root #monthview .tcs-gcal-topbar{
    display:flex!important;
    visibility:visible!important;
    position:relative!important;
    z-index:2!important;
    flex:0 0 42px!important;
    height:42px!important;
    min-height:42px!important;
    padding:4px 10px!important;
    margin:0!important;
    background:#fff!important;
    border-bottom:1px solid #e5e7eb!important;
  }
  #tcs-scheduler-root #monthview .tcs-gcal-topbar strong{
    display:block!important;
    font-size:18px!important;
    line-height:1!important;
    white-space:nowrap!important;
  }
  #tcs-scheduler-root #monthview .tcs-card,
  #tcs-scheduler-root #monthViewTable,
  #tcs-scheduler-root #monthview .tcs-mobile-month-shell,
  #tcs-scheduler-root #monthview .tcs-month-scroll{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow:hidden!important;
  }
  #tcs-scheduler-root #monthview .tcs-card{
    flex:1 1 auto!important;
    height:100%!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    display:flex!important;
    flex-direction:column!important;
  }
  #tcs-scheduler-root #monthViewTable,
  #tcs-scheduler-root #monthview .tcs-mobile-month-shell,
  #tcs-scheduler-root #monthview .tcs-month-scroll{
    flex:1 1 auto!important;
    min-height:0!important;
    display:flex!important;
    flex-direction:column!important;
  }
  #tcs-scheduler-root #monthview table.tcs-gcal-month{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:100%!important;
    table-layout:fixed!important;
    border-collapse:collapse!important;
  }
  #tcs-scheduler-root #monthview table.tcs-gcal-month th,
  #tcs-scheduler-root #monthview table.tcs-gcal-month td{
    width:14.285714%!important;
    max-width:14.285714%!important;
    min-width:0!important;
  }
  #tcs-scheduler-root #monthview table.tcs-gcal-month thead{
    height:24px!important;
  }
  #tcs-scheduler-root #monthview table.tcs-gcal-month tbody{
    height:calc(100% - 24px)!important;
  }
  #tcs-scheduler-root #monthview table.tcs-gcal-month tr{
    height:16.666666%!important;
  }
  #tcs-scheduler-root #monthview table.tcs-gcal-month td{
    height:16.666666%!important;
    padding:2px!important;
    overflow:hidden!important;
  }
  #tcs-scheduler-root #monthview .tcs-gcal-event{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
}


/* v80 full-bleed desktop shell + simplified cleaning navigation */
html, body { overflow-x: hidden; }
#tcs-scheduler-root{
  width:100vw!important;
  max-width:none!important;
  margin-left:calc(50% - 50vw)!important;
  margin-right:calc(50% - 50vw)!important;
  padding-left:0!important;
  padding-right:0!important;
  background:#f8fafc!important;
}
#tcs-scheduler-root #tcsApp{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
}
#tcs-scheduler-root .tcs-topbar,
#tcs-scheduler-root .tcs-tabs{
  width:100vw!important;
  max-width:none!important;
  left:0!important;
  right:0!important;
  transform:none!important;
}
#tcs-scheduler-root .tcs-tabs{
  padding-left:clamp(16px,2.4vw,42px)!important;
  padding-right:clamp(16px,2.4vw,42px)!important;
}
#tcs-scheduler-root .tcs-topbar{
  padding-left:clamp(18px,2.8vw,48px)!important;
  padding-right:clamp(18px,2.8vw,48px)!important;
}
#tcs-scheduler-root .tcs-page{
  width:100%!important;
  max-width:none!important;
  padding-left:clamp(16px,2.4vw,42px)!important;
  padding-right:clamp(16px,2.4vw,42px)!important;
}
#tcs-scheduler-root .tcs-card{
  width:100%!important;
  max-width:none!important;
}
#tcs-scheduler-root .tcs-tab[data-page="bulk"]{display:none!important;}
@media (min-width: 900px){
  #tcs-scheduler-root .tcs-month-table,
  #tcs-scheduler-root #monthViewTable,
  #tcs-scheduler-root .tcs-table-wrap{
    width:100%!important;
    max-width:none!important;
  }
  #tcs-scheduler-root table.tcs-month-table{
    table-layout:fixed!important;
  }
}
@media(max-width:760px){
  #tcs-scheduler-root{
    margin-left:0!important;
    margin-right:0!important;
    width:100%!important;
  }
  #tcs-scheduler-root .tcs-topbar,
  #tcs-scheduler-root .tcs-tabs{width:100%!important;}
}


/* v81 refinements: professional header, desktop sticky month title, searchable lists, dashboard call button */
#tcs-scheduler-root .tcs-brand-left{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  min-width:0!important;
}
#tcs-scheduler-root .tcs-brand-copy{min-width:0!important;}
#tcs-scheduler-root .tcs-brand-logo-left{
  width:44px!important;
  height:44px!important;
  object-fit:contain!important;
  border-radius:12px!important;
  border:1px solid #e5e7eb!important;
  background:#fff!important;
  flex:0 0 auto!important;
}
#tcs-scheduler-root .tcs-brand-right .tcs-brand-logo{display:none!important;}
#tcs-scheduler-root .tcs-search-label{
  max-width:320px!important;
  width:100%!important;
  margin:0!important;
  font-size:12px!important;
  color:#64748b!important;
}
#tcs-scheduler-root .tcs-search-label input{
  margin-top:4px!important;
  border-radius:999px!important;
  padding:9px 14px!important;
}
#tcs-scheduler-root .tcs-dashboard-name-row{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
}
#tcs-scheduler-root .tcs-dashboard-name-row h4{margin:0!important;}
#tcs-scheduler-root .tcs-phone-action{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:34px!important;
  height:34px!important;
  border-radius:999px!important;
  background:#e0f2fe!important;
  color:#075985!important;
  text-decoration:none!important;
  font-size:18px!important;
  border:1px solid #bae6fd!important;
  flex:0 0 auto!important;
}
#tcs-scheduler-root .tcs-phone-action:hover{background:#bae6fd!important;}
@media(min-width:761px){
  #tcs-scheduler-root #monthview .tcs-gcal-topbar{
    position:sticky!important;
    top:118px!important;
    z-index:50!important;
    background:#fff!important;
    border-bottom:1px solid #e5e7eb!important;
    box-shadow:0 2px 8px rgba(15,23,42,.06)!important;
  }
  body.admin-bar #tcs-scheduler-root #monthview .tcs-gcal-topbar{top:150px!important;}
  #tcs-scheduler-root #monthview .tcs-month-scroll{
    overflow:auto!important;
    max-height:calc(100vh - 180px)!important;
  }
}
@media(max-width:760px){
  #tcs-scheduler-root .tcs-brand-logo-left{width:38px!important;height:38px!important;}
  #tcs-scheduler-root .tcs-brand-title{font-size:18px!important;}
}


/* v83 professional fixed app shell: restored menu + logo left of company name */
html, body { overflow-x: hidden !important; }
body.tina-cleaning-lock-x { overflow-x:hidden!important; }
#tcs-scheduler-root{
  --tina-header-h: 76px;
  --tina-menu-h: 58px;
  --tina-shell-pad: calc(var(--tina-header-h) + var(--tina-menu-h));
  width:100vw!important;
  max-width:none!important;
  min-width:0!important;
  margin-left:calc(50% - 50vw)!important;
  margin-right:calc(50% - 50vw)!important;
  padding:var(--tina-shell-pad) 0 0 0!important;
  background:#f8fafc!important;
  overflow-x:clip!important;
}
#tcs-scheduler-root #tcsApp{width:100%!important;max-width:none!important;margin:0!important;}
#tcs-scheduler-root .tcs-topbar{
  position:fixed!important;
  top:0!important;left:0!important;right:0!important;
  width:100vw!important;height:var(--tina-header-h)!important;min-height:var(--tina-header-h)!important;
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:16px!important;padding:12px clamp(18px,3vw,48px)!important;
  background:#fff!important;color:#0f172a!important;
  border:0!important;border-bottom:1px solid #e5e7eb!important;border-radius:0!important;
  box-shadow:0 1px 10px rgba(15,23,42,.06)!important;
  z-index:100000!important;overflow:visible!important;box-sizing:border-box!important;
}
#tcs-scheduler-root .tcs-brand-left{
  display:flex!important;align-items:center!important;gap:14px!important;flex:1 1 auto!important;min-width:0!important;
  flex-direction:row!important;
}
#tcs-scheduler-root .tcs-brand-logo-left{
  display:block!important;width:48px!important;height:48px!important;min-width:48px!important;
  object-fit:contain!important;background:#fff!important;border:1px solid #e2e8f0!important;border-radius:12px!important;padding:4px!important;
}
#tcs-scheduler-root .tcs-brand-copy{display:flex!important;flex-direction:column!important;justify-content:center!important;min-width:0!important;line-height:1.1!important;}
#tcs-scheduler-root .tcs-brand-title{font-size:20px!important;font-weight:800!important;color:#0f172a!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:55vw!important;margin:0!important;line-height:1.15!important;}
#tcs-scheduler-root .tcs-brand-sub{font-size:12px!important;font-weight:600!important;color:#64748b!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:60vw!important;margin:4px 0 0!important;line-height:1.2!important;opacity:1!important;}
#tcs-scheduler-root .tcs-brand-right{display:flex!important;align-items:center!important;gap:10px!important;flex:0 0 auto!important;margin-left:auto!important;}
#tcs-scheduler-root .tcs-brand-right .tcs-brand-logo{display:none!important;}
#tcs-scheduler-root .tcs-settings-gear{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:42px!important;height:42px!important;min-width:42px!important;border-radius:999px!important;background:#f8fafc!important;color:#0f766e!important;border:1px solid #dbe7ee!important;font-size:18px!important;padding:0!important;box-shadow:none!important;}
#tcs-scheduler-root .tcs-settings-gear:hover{background:#eefaf8!important;color:#0f766e!important;}
#tcs-scheduler-root .tcs-brand-right #logoutBtn{display:inline-flex!important;align-items:center!important;height:40px!important;background:#fff!important;color:#0f172a!important;border:1px solid #cbd5e1!important;border-radius:999px!important;padding:0 16px!important;box-shadow:none!important;}
#tcs-scheduler-root .tcs-tabs{
  position:fixed!important;top:var(--tina-header-h)!important;left:0!important;right:0!important;
  width:100vw!important;height:var(--tina-menu-h)!important;min-height:var(--tina-menu-h)!important;
  display:flex!important;align-items:center!important;gap:8px!important;
  padding:9px clamp(14px,3vw,48px)!important;margin:0!important;
  background:#fff!important;border:0!important;border-bottom:1px solid #e5e7eb!important;border-radius:0!important;
  box-shadow:0 1px 8px rgba(15,23,42,.04)!important;overflow-x:auto!important;overflow-y:hidden!important;
  z-index:99999!important;box-sizing:border-box!important;-webkit-overflow-scrolling:touch!important;scrollbar-width:none!important;
}
#tcs-scheduler-root .tcs-tabs::-webkit-scrollbar{display:none!important;}
#tcs-scheduler-root .tcs-tab{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;white-space:nowrap!important;border-radius:999px!important;padding:10px 15px!important;font-size:13px!important;line-height:1!important;min-height:38px!important;box-shadow:none!important;}
#tcs-scheduler-root .tcs-page{width:100%!important;max-width:none!important;padding:22px clamp(16px,2.8vw,48px)!important;margin:0!important;}
#tcs-scheduler-root .tcs-page.active{display:block!important;}
#tcs-scheduler-root .tcs-card{width:100%!important;max-width:none!important;}
body.admin-bar #tcs-scheduler-root .tcs-topbar{top:32px!important;}
body.admin-bar #tcs-scheduler-root .tcs-tabs{top:calc(32px + var(--tina-header-h))!important;}
body.admin-bar #tcs-scheduler-root{padding-top:calc(var(--tina-shell-pad) + 32px)!important;}
#tcs-scheduler-root .tcs-modal{z-index:2147483600!important;}
#tcs-scheduler-root .tcs-modal-card{z-index:2147483601!important;}
@media(max-width:782px){
  body.admin-bar #tcs-scheduler-root .tcs-topbar{top:46px!important;}
  body.admin-bar #tcs-scheduler-root .tcs-tabs{top:calc(46px + var(--tina-header-h))!important;}
  body.admin-bar #tcs-scheduler-root{padding-top:calc(var(--tina-shell-pad) + 46px)!important;}
}
@media(max-width:760px){
  #tcs-scheduler-root{--tina-header-h:64px;--tina-menu-h:50px;width:100%!important;margin-left:0!important;margin-right:0!important;overflow-x:hidden!important;}
  #tcs-scheduler-root .tcs-topbar{width:100%!important;padding:8px 12px!important;gap:10px!important;}
  #tcs-scheduler-root .tcs-brand-logo-left{width:40px!important;height:40px!important;min-width:40px!important;border-radius:10px!important;}
  #tcs-scheduler-root .tcs-brand-title{font-size:16px!important;max-width:54vw!important;}
  #tcs-scheduler-root .tcs-brand-sub{font-size:10.5px!important;max-width:58vw!important;}
  #tcs-scheduler-root .tcs-settings-gear{width:38px!important;height:38px!important;min-width:38px!important;}
  #tcs-scheduler-root .tcs-brand-right #logoutBtn{display:none!important;}
  #tcs-scheduler-root .tcs-tabs{width:100%!important;height:var(--tina-menu-h)!important;min-height:var(--tina-menu-h)!important;padding:7px 10px!important;gap:7px!important;}
  #tcs-scheduler-root .tcs-tab{font-size:12px!important;padding:8px 12px!important;min-height:34px!important;}
  #tcs-scheduler-root .tcs-page{padding:12px!important;}
}


/* Cleaning Scheduler full-width cleanup - removes inherited container behavior */
#tcs-scheduler-root{
  width:100vw !important;
  max-width:100vw !important;
  margin-left:calc(50% - 50vw) !important;
  margin-right:calc(50% - 50vw) !important;
  padding-left:clamp(10px,1.5vw,24px) !important;
  padding-right:clamp(10px,1.5vw,24px) !important;
}
#tcs-scheduler-root .tcs-shell,
#tcs-scheduler-root .tcs-page,
#tcs-scheduler-root .tcs-card,
#tcs-scheduler-root .tcs-month-view,
#tcs-scheduler-root .tcs-month-calendar,
#tcs-scheduler-root .tcs-coverage-board,
#tcs-scheduler-root .tcs-worksheet-board{
  max-width:none !important;
}
@media (max-width: 768px){
  #tcs-scheduler-root{
    width:100% !important;
    max-width:100% !important;
    margin-left:0 !important;
    margin-right:0 !important;
    padding-left:8px !important;
    padding-right:8px !important;
  }
}
.tcs-finance-pending{display:inline-block;background:#eef2ff;color:#3730a3;border:1px solid #c7d2fe;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:700;white-space:nowrap}

/* v88 completion visibility in Coverage and Worksheet */
.tcs-cleaning-completed{background:#f0fdf4!important;border-color:#86efac!important;box-shadow:inset 4px 0 0 #16a34a,0 2px 8px rgba(22,163,74,.08)!important}
.tcs-cleaning-pending{background:#fff7ed!important;border-color:#fdba74!important;box-shadow:inset 4px 0 0 #f97316,0 2px 8px rgba(249,115,22,.08)!important}
.tcs-completion-pill{display:inline-flex;align-items:center;gap:4px;border-radius:999px;padding:2px 7px;font-size:11px;font-weight:800;line-height:1;white-space:nowrap;margin-left:6px;vertical-align:middle}
.tcs-completion-done{background:#dcfce7;color:#166534;border:1px solid #86efac}
.tcs-completion-pending{background:#ffedd5;color:#9a3412;border:1px solid #fdba74}
.tcs-completion-line{font-size:11px;font-weight:700;margin-top:5px;border-radius:8px;padding:4px 6px;line-height:1.2}
.tcs-completion-line-done{background:#dcfce7;color:#166534}
.tcs-completion-line-pending{background:#ffedd5;color:#9a3412}
.tcs-chip-topline{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap}
.tcs-coverage-chip.tcs-cleaning-completed strong,.tcs-assignment-chip.tcs-cleaning-completed .tcs-chip-project{color:#14532d}
.tcs-coverage-chip.tcs-cleaning-pending strong,.tcs-assignment-chip.tcs-cleaning-pending .tcs-chip-project{color:#7c2d12}
@media(max-width:760px){.tcs-completion-pill{font-size:10px;padding:2px 5px}.tcs-completion-line{font-size:10px}.tcs-chip-topline{align-items:flex-start}}

/* v89 combined invoice multi-client selector */
.tcs-multi-invoice-box{margin-top:14px;border:1px solid #e5e7eb;border-radius:14px;background:#fff;padding:14px;}
.tcs-multi-invoice-head{display:flex;flex-direction:column;gap:3px;margin-bottom:10px;}
.tcs-multi-invoice-head strong{font-size:14px;color:#0f172a;}
.tcs-multi-invoice-head span{font-size:12px;color:#64748b;}
.tcs-multi-client-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:8px;max-height:220px;overflow:auto;padding:2px;}
.tcs-multi-client-option{display:flex!important;align-items:center;gap:8px;border:1px solid #e5e7eb;border-radius:10px;padding:8px 10px;background:#f8fafc;font-size:13px;line-height:1.25;}
.tcs-multi-client-option input{width:auto!important;margin:0!important;}
@media(max-width:700px){.tcs-multi-client-list{grid-template-columns:1fr;max-height:260px}.tcs-multi-invoice-box{padding:12px}}

/* v90 finance fixes */
.tcs-multi-client-option small{display:block;color:#64748b;font-size:11px;margin-top:2px}.tcs-muted-option{opacity:.55}.tcs-multi-invoice-tools{margin:8px 0 10px}.tcs-combine-check{display:flex;align-items:center;gap:8px;margin:0}.tcs-combine-check input{width:auto!important;margin:0!important}.tcs-finance-client-title{display:flex;flex-direction:column;gap:3px}

/* v92 Clients tab and finance cleanup */
.tcs-clients-head{align-items:center;gap:16px;}
.tcs-clients-head .tcs-inline{align-items:flex-end;gap:10px;}
.tcs-plus-btn{width:42px!important;height:42px!important;min-width:42px!important;border-radius:999px!important;padding:0!important;font-size:28px!important;line-height:1!important;font-weight:500!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;}
#projectPageNotice{margin-bottom:12px;}
.tcs-project-form-card{border:1px solid #dbeafe!important;box-shadow:0 12px 35px rgba(15,23,42,.08)!important;}
@media(max-width:700px){.tcs-clients-head{align-items:stretch}.tcs-clients-head .tcs-inline{width:100%;justify-content:space-between}.tcs-clients-head .tcs-search-label{flex:1}.tcs-plus-btn{width:44px!important;height:44px!important}}

/* v97 multi-workspace selector */
.tcs-workspace-switch{display:flex;align-items:center;gap:6px;border:1px solid #e5e7eb;border-radius:999px;background:#f8fafc;padding:5px 7px;font-size:12px;color:#64748b;white-space:nowrap}
.tcs-workspace-switch select{height:32px;min-width:150px;border:0!important;background:transparent!important;font-weight:700;color:#0f172a;padding:0 4px!important;box-shadow:none!important}
.tcs-workspace-switch .tcs-small-btn{height:28px!important;min-width:28px!important;padding:0 8px!important;border-radius:999px!important}
@media(max-width:760px){.tcs-brand-right{flex-wrap:wrap;justify-content:flex-end}.tcs-workspace-switch{order:3;width:100%;justify-content:space-between;border-radius:12px}.tcs-workspace-switch select{flex:1;min-width:0}}

/* v99 Global Settings + neutral login branding */
.tcs-login-clean{display:flex;flex-direction:column;align-items:stretch;gap:12px;text-align:left;}
.tcs-login-logo{display:block;max-width:180px;max-height:90px;object-fit:contain;margin:0 auto 10px auto;}
.tcs-login-logo-fallback{width:72px;height:72px;border-radius:18px;background:#f4f7fb;border:1px solid #e5e7eb;display:flex;align-items:center;justify-content:center;font-size:30px;margin:0 auto 10px auto;color:#1f6feb;}
.tcs-login-clean h2{text-align:center;margin:4px 0 0;font-size:24px;}
.tcs-login-clean p{text-align:center;color:#64748b;margin:0 0 8px;}
.tcs-global-tab{margin-left:auto!important;border-color:#dbeafe!important;background:#eff6ff!important;color:#1d4ed8!important;}
.tcs-global-tab.active{background:#1d4ed8!important;color:white!important;}
.tcs-subcard{margin-top:18px;background:#fbfdff;}
#globalWorkspaceList .tcs-item{display:flex;justify-content:space-between;gap:12px;align-items:center;}


/* v100.3.2 clean mobile/desktop shell - replaces stacked v100 overrides */
#tcs-scheduler-root{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  overflow-x:hidden!important;
  box-sizing:border-box!important;
}
#tcs-scheduler-root *{box-sizing:border-box;}
#tcs-scheduler-root .tcs-app-chrome{
  position:sticky!important;
  top:0!important;
  z-index:10000!important;
  background:#fff!important;
  border-bottom:1px solid #e5e7eb!important;
  box-shadow:0 1px 5px rgba(15,23,42,.06)!important;
}
#tcs-scheduler-root .tcs-topbar{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:10px 18px!important;
  background:#fff!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
}
#tcs-scheduler-root .tcs-brand-left{display:flex!important;align-items:center!important;gap:10px!important;min-width:0!important;flex:1 1 auto!important;}
#tcs-scheduler-root .tcs-brand-logo{width:38px!important;height:38px!important;min-width:38px!important;border-radius:10px!important;object-fit:contain!important;}
#tcs-scheduler-root .tcs-brand-copy{min-width:0!important;}
#tcs-scheduler-root .tcs-brand-title{font-size:17px!important;line-height:1.15!important;font-weight:800!important;color:#0f172a!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
#tcs-scheduler-root .tcs-brand-sub{font-size:12px!important;color:#64748b!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
#tcs-scheduler-root .tcs-brand-right{display:flex!important;align-items:center!important;gap:8px!important;flex:0 0 auto!important;}
#tcs-scheduler-root .tcs-mobile-menu-btn{display:none!important;}
#tcs-scheduler-root .tcs-desktop-workspace{display:block!important;}
#tcs-scheduler-root .tcs-workspace-switch{display:flex!important;align-items:center!important;gap:7px!important;padding:5px 7px!important;border:1px solid #e2e8f0!important;border-radius:12px!important;background:#f8fafc!important;}
#tcs-scheduler-root .tcs-workspace-switch span{font-size:11px!important;text-transform:uppercase!important;letter-spacing:.04em!important;font-weight:800!important;color:#64748b!important;}
#tcs-scheduler-root .tcs-workspace-switch select{max-width:220px!important;min-width:120px!important;height:36px!important;font-size:13px!important;margin:0!important;}
#tcs-scheduler-root .tcs-settings-gear{width:38px!important;height:38px!important;min-width:38px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border-radius:12px!important;box-shadow:none!important;}
#tcs-scheduler-root #logoutBtn{height:38px!important;min-width:74px!important;padding:0 12px!important;border-radius:12px!important;box-shadow:none!important;}
#tcs-scheduler-root .tcs-tabs{width:100%!important;max-width:none!important;margin:0!important;padding:9px 16px!important;display:flex!important;align-items:center!important;gap:8px!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important;background:#fff!important;border:0!important;border-top:1px solid #f1f5f9!important;border-bottom:1px solid #e5e7eb!important;border-radius:0!important;box-shadow:none!important;}
#tcs-scheduler-root .tcs-drawer-title,#tcs-scheduler-root .tcs-mobile-drawer-workspace,#tcs-scheduler-root .tcs-drawer-logout{display:none!important;}
#tcs-scheduler-root .tcs-app-content{width:100%!important;max-width:none!important;margin:0!important;padding:16px!important;}
#tcs-scheduler-root .tcs-page{width:100%!important;max-width:none!important;}
#tcs-scheduler-root .tcs-card{max-width:none!important;}
#tcs-scheduler-root .tcs-modal,#tcs-scheduler-root [role="dialog"]{z-index:999999!important;}

@media (max-width:760px){
  html,body{overflow-x:hidden!important;}
  body.tcs-mobile-menu-active{overflow:hidden!important;}
  #tcs-scheduler-root{width:100%!important;max-width:100%!important;padding:0!important;margin:0!important;overflow-x:hidden!important;font-size:14px!important;}
  #tcs-scheduler-root .tcs-app-chrome{position:sticky!important;top:0!important;z-index:10000!important;box-shadow:0 1px 4px rgba(15,23,42,.06)!important;}
  body.admin-bar #tcs-scheduler-root .tcs-app-chrome{top:46px!important;}
  #tcs-scheduler-root .tcs-topbar{display:grid!important;grid-template-columns:40px minmax(0,1fr) 38px!important;grid-template-areas:"menu brand settings"!important;gap:8px!important;min-height:54px!important;padding:8px 10px!important;}
  #tcs-scheduler-root .tcs-mobile-menu-btn{grid-area:menu!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;width:38px!important;height:38px!important;margin:0!important;padding:0!important;border-radius:12px!important;border:1px solid #dbe6ee!important;background:#49b7c5!important;color:#fff!important;font-size:22px!important;font-weight:800!important;line-height:1!important;box-shadow:none!important;}
  #tcs-scheduler-root .tcs-brand-left{grid-area:brand!important;min-width:0!important;width:100%!important;}
  #tcs-scheduler-root .tcs-brand-logo{display:none!important;}
  #tcs-scheduler-root .tcs-brand-title{font-size:15px!important;max-width:100%!important;}
  #tcs-scheduler-root .tcs-brand-sub{display:none!important;}
  #tcs-scheduler-root .tcs-brand-right{display:contents!important;}
  #tcs-scheduler-root .tcs-desktop-workspace{display:none!important;}
  #tcs-scheduler-root .tcs-settings-gear{grid-area:settings!important;width:38px!important;height:38px!important;min-width:38px!important;position:static!important;}
  #tcs-scheduler-root #logoutBtn{display:none!important;}
  #tcs-scheduler-root .tcs-app-content{padding:10px!important;margin:0!important;width:100%!important;max-width:100%!important;}
  #tcs-scheduler-root .tcs-card{width:100%!important;max-width:100%!important;margin:0 0 12px 0!important;border-radius:16px!important;padding:14px!important;box-shadow:none!important;}
  #tcs-scheduler-root .tcs-mobile-menu-backdrop{display:none!important;position:fixed!important;inset:0!important;background:rgba(15,23,42,.35)!important;z-index:999990!important;}
  #tcs-scheduler-root .tcs-mobile-menu-backdrop.tcs-menu-open{display:block!important;}
  #tcs-scheduler-root .tcs-tabs{display:none!important;position:fixed!important;top:0!important;left:0!important;bottom:0!important;width:min(86vw,320px)!important;height:100dvh!important;max-width:320px!important;z-index:999999!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important;padding:18px 14px 20px!important;background:#fff!important;border-right:1px solid #e5e7eb!important;border-radius:0!important;box-shadow:none!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important;}
  #tcs-scheduler-root .tcs-tabs.tcs-menu-open{display:flex!important;}
  #tcs-scheduler-root .tcs-drawer-title{display:block!important;font-size:12px!important;text-transform:uppercase!important;letter-spacing:.08em!important;color:#64748b!important;font-weight:900!important;margin:0 4px 4px!important;}
  #tcs-scheduler-root .tcs-mobile-drawer-workspace{display:block!important;margin:0 0 10px!important;padding-bottom:12px!important;border-bottom:1px solid #eef2f7!important;}
  #tcs-scheduler-root .tcs-mobile-drawer-workspace .tcs-workspace-switch{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:6px!important;width:100%!important;max-width:100%!important;padding:10px!important;}
  #tcs-scheduler-root .tcs-mobile-drawer-workspace select{width:100%!important;max-width:100%!important;height:40px!important;}
  #tcs-scheduler-root .tcs-tabs .tcs-tab{width:100%!important;flex:0 0 auto!important;text-align:left!important;justify-content:flex-start!important;border-radius:14px!important;padding:13px 14px!important;font-size:15px!important;line-height:1.1!important;background:#f8fafc!important;color:#0f172a!important;border:1px solid #e2e8f0!important;box-shadow:none!important;}
  #tcs-scheduler-root .tcs-tabs .tcs-tab.active{background:#49b7c5!important;color:#fff!important;border-color:#49b7c5!important;}
  #tcs-scheduler-root .tcs-drawer-logout{display:flex!important;width:100%!important;justify-content:center!important;margin-top:8px!important;padding:13px 14px!important;border-radius:14px!important;border:1px solid #e2e8f0!important;background:#fff!important;color:#0f172a!important;font-weight:800!important;}
  #tcs-scheduler-root .tcs-page:not(.active){display:none!important;}
  #tcs-scheduler-root .tcs-card,#tcs-scheduler-root .tcs-item,#tcs-scheduler-root .tcs-dashboard-card,#tcs-scheduler-root .tcs-assignment,#tcs-scheduler-root .tcs-month-card,#tcs-scheduler-root .tcs-gcal-event{box-shadow:none!important;filter:none!important;transition:none!important;animation:none!important;}
}

/* v100.3.4 worksheet desktop fit: show full week without horizontal scroll */
@media (min-width: 901px){
  #tcs-scheduler-root #worksheet.tcs-page,
  #tcs-scheduler-root #worksheet .tcs-card{
    width:100% !important;
    max-width:none !important;
  }
  #tcs-scheduler-root #worksheet .tcs-table-wrap.tcs-worksheet-desktop{
    width:100% !important;
    max-width:100% !important;
    overflow-x:hidden !important;
    overflow-y:visible !important;
    padding:0 !important;
  }
  #tcs-scheduler-root #worksheet table.tcs-vertical-week{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    table-layout:fixed !important;
    border-collapse:collapse !important;
  }
  #tcs-scheduler-root #worksheet table.tcs-vertical-week th,
  #tcs-scheduler-root #worksheet table.tcs-vertical-week td{
    padding:6px !important;
    font-size:12px !important;
    overflow:hidden !important;
  }
  #tcs-scheduler-root #worksheet table.tcs-vertical-week th:first-child,
  #tcs-scheduler-root #worksheet table.tcs-vertical-week td:first-child{
    width:7.5% !important;
    min-width:0 !important;
  }
  #tcs-scheduler-root #worksheet table.tcs-vertical-week th:last-child,
  #tcs-scheduler-root #worksheet table.tcs-vertical-week td:last-child{
    width:5.5% !important;
    min-width:0 !important;
    text-align:center !important;
  }
  #tcs-scheduler-root #worksheet .tcs-day-stack,
  #tcs-scheduler-root #worksheet .tcs-worksheet-dropzone{
    min-width:0 !important;
    width:auto !important;
    max-width:none !important;
  }
  #tcs-scheduler-root #worksheet .tcs-period-row{
    display:grid !important;
    grid-template-columns:38px minmax(0,1fr) !important;
    min-height:86px !important;
  }
  #tcs-scheduler-root #worksheet .tcs-period-label{
    font-size:10px !important;
    padding:6px 4px !important;
    white-space:nowrap !important;
  }
  #tcs-scheduler-root #worksheet .tcs-period-row > div:last-child{
    min-width:0 !important;
    padding:4px !important;
    overflow:hidden !important;
  }
  #tcs-scheduler-root #worksheet .tcs-cell-item,
  #tcs-scheduler-root #worksheet .tcs-assignment-chip{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    padding:6px 7px !important;
    margin:2px 0 !important;
    border-radius:8px !important;
    overflow:hidden !important;
    box-shadow:none !important;
  }
  #tcs-scheduler-root #worksheet .tcs-chip-project,
  #tcs-scheduler-root #worksheet .tcs-chip-meta,
  #tcs-scheduler-root #worksheet .tcs-completion-line{
    display:block !important;
    max-width:100% !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }
  #tcs-scheduler-root #worksheet .tcs-chip-project{
    font-size:12px !important;
    line-height:1.15 !important;
  }
  #tcs-scheduler-root #worksheet .tcs-chip-meta,
  #tcs-scheduler-root #worksheet .tcs-completion-line{
    font-size:10px !important;
    line-height:1.2 !important;
  }
  #tcs-scheduler-root #worksheet .tcs-completion-pill{
    font-size:9px !important;
    padding:2px 5px !important;
  }
  #tcs-scheduler-root #worksheet .tcs-actions-inline,
  #tcs-scheduler-root #worksheet .tcs-mini-delete,
  #tcs-scheduler-root #worksheet .tcs-cell-item button:not(.tcs-card-x-delete){
    display:none !important;
  }
  #tcs-scheduler-root #worksheet .tcs-drag-handle{
    font-size:11px !important;
    opacity:.7 !important;
  }
}


/* v100.4.0 Estimates tab */
#tcs-scheduler-root .tcs-estimate-hero{background:linear-gradient(135deg,#0f3443,#1f6f8b);color:#fff;border:0;box-shadow:0 10px 28px rgba(15,52,67,.18)}
#tcs-scheduler-root .tcs-estimate-hero h3{color:#fff;margin:0 0 4px}
#tcs-scheduler-root .tcs-estimate-hero .tcs-small{color:rgba(255,255,255,.82)}
#tcs-scheduler-root .tcs-estimate-table{min-width:820px}
#tcs-scheduler-root .tcs-estimate-table textarea{min-height:54px;margin-top:0;font-size:13px}
#tcs-scheduler-root .tcs-estimate-table input{margin-top:0;font-size:13px}
#tcs-scheduler-root .tcs-estimate-total-box{display:flex;justify-content:flex-end;align-items:center;gap:16px;margin-top:14px;padding:14px;border:1px solid #dbe7ee;border-radius:14px;background:#fbfdfe}
#tcs-scheduler-root .tcs-estimate-total-box span{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#64748b;font-weight:800}
#tcs-scheduler-root .tcs-estimate-total-box strong{font-size:26px;color:#0f3443}
#tcs-scheduler-root .tcs-estimate-message{width:100%;min-height:120px;margin:10px 0;background:#fff}
@media(max-width:720px){#tcs-scheduler-root .tcs-estimate-total-box{justify-content:space-between}#tcs-scheduler-root .tcs-estimate-total-box strong{font-size:22px}}
