/* 100.6.1: application shell isolated from the WordPress theme container. */
body.tcs-application-mode{overflow:hidden!important}
body #tcs-scheduler-root.tcs-workspace{
 position:fixed!important;inset:var(--tcs-toolbar-offset,0px) 0 0!important;
 width:100%!important;max-width:none!important;height:auto!important;min-height:0!important;
 margin:0!important;padding:0!important;transform:none!important;
 background:#f3f6f5!important;z-index:99990;overflow:auto!important;
 overscroll-behavior:contain;scrollbar-gutter:stable;isolation:isolate;
 font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
}
#tcs-scheduler-root.tcs-workspace #tcsApp{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
body #tcs-scheduler-root.tcs-workspace .tcs-app-chrome{position:sticky!important;top:0!important;margin:0!important;width:100%!important;transform:none!important;z-index:1000!important}
#tcs-scheduler-root.tcs-workspace .tcs-topbar{padding:12px 24px!important;min-height:66px!important}
#tcs-scheduler-root.tcs-workspace .tcs-brand-left{justify-content:flex-start!important;margin:0!important}
#tcs-scheduler-root.tcs-workspace .tcs-brand-right{margin-left:auto!important}
#tcs-scheduler-root.tcs-workspace .tcs-app-content{display:block!important;box-sizing:border-box!important;width:100%!important;max-width:none!important;margin:0!important;padding:24px!important;min-width:0!important}
#tcs-scheduler-root.tcs-workspace .tcs-page{width:100%!important;max-width:none!important;padding:0!important;margin:0!important;min-width:0!important}
#tcs-scheduler-root.tcs-workspace .tcs-card{box-sizing:border-box!important;width:100%!important;max-width:none!important;margin:0 0 24px!important;padding:24px!important;min-width:0!important;height:auto}
#tcs-scheduler-root.tcs-workspace .tcs-section-head{gap:16px!important;margin-bottom:16px!important;align-items:center!important}
#tcs-scheduler-root.tcs-workspace .tcs-inline{display:flex;flex-wrap:wrap!important;gap:12px!important;min-width:0}
#tcs-scheduler-root.tcs-workspace .tcs-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:22px 24px!important;align-items:start!important;margin:16px 0 24px!important;min-width:0!important}
#tcs-scheduler-root.tcs-workspace .tcs-grid>*,#tcs-scheduler-root.tcs-workspace .tcs-invoice-config-layout>*,#tcs-scheduler-root.tcs-workspace .tcs-invoice-wording>*{min-width:0!important;max-width:100%!important}
#tcs-scheduler-root.tcs-workspace label{box-sizing:border-box!important;min-width:0!important;max-width:100%!important;line-height:1.5!important;white-space:normal!important}
#tcs-scheduler-root.tcs-workspace .tcs-grid>label{display:flex!important;flex-direction:column!important;gap:8px!important;margin:0!important;align-items:stretch!important}
#tcs-scheduler-root.tcs-workspace input:not([type=checkbox]):not([type=radio]),#tcs-scheduler-root.tcs-workspace select,#tcs-scheduler-root.tcs-workspace textarea{
 box-sizing:border-box!important;display:block;position:static!important;float:none!important;
 width:100%!important;min-width:0!important;max-width:100%!important;margin:8px 0 0!important;
 padding:11px 12px!important;font:inherit!important;line-height:1.4!important;height:auto!important;
 min-height:46px!important;border-radius:9px!important;transform:none!important;
}
#tcs-scheduler-root.tcs-workspace .tcs-grid>label>input,#tcs-scheduler-root.tcs-workspace .tcs-grid>label>select{margin:0!important}
#tcs-scheduler-root.tcs-workspace input[type=date],#tcs-scheduler-root.tcs-workspace input[type=month],#tcs-scheduler-root.tcs-workspace input[type=time]{appearance:none;-webkit-appearance:none}
#tcs-scheduler-root.tcs-workspace input::-webkit-date-and-time-value{min-width:0;text-align:left}
#tcs-scheduler-root.tcs-workspace textarea{min-height:96px!important;resize:vertical!important}
#tcs-scheduler-root.tcs-workspace input[type=checkbox],#tcs-scheduler-root.tcs-workspace input[type=radio]{width:20px!important;min-width:20px!important;max-width:20px!important;height:20px!important;flex:0 0 20px!important;margin:0 8px 0 0!important}
#tcs-scheduler-root.tcs-workspace .tcs-actions{display:flex!important;flex-wrap:wrap!important;gap:12px!important;margin-top:20px!important}
#tcs-scheduler-root.tcs-workspace button{white-space:normal!important;max-width:100%;line-height:1.4!important;min-height:44px;box-sizing:border-box!important}
#tcs-scheduler-root.tcs-workspace .tcs-section-navigation{background:white;border-bottom:1px solid #dae5e0;padding:0 24px}
#tcs-scheduler-root.tcs-workspace [data-nav-panel]{display:flex;flex-wrap:wrap;gap:8px;padding:12px 0}
#tcs-scheduler-root.tcs-workspace [data-nav-panel][hidden]{display:none!important}
#tcs-scheduler-root.tcs-workspace .tcs-section-navigation .tcs-tab{background:#f2f6f4!important;border:1px solid #d9e4de!important;color:#345c51!important;border-radius:8px!important;padding:10px 16px!important;flex:0 1 auto!important}
#tcs-scheduler-root.tcs-workspace .tcs-section-navigation .tcs-tab.active{background:#e0efe7!important;border-color:#6eaa8e!important;color:#164a36!important}
#tcs-scheduler-root.tcs-workspace .tcs-group-tab{background:transparent!important;border:0!important;border-bottom:3px solid transparent!important;border-radius:0!important;color:#456259!important;padding:12px 20px!important;min-height:48px!important}
#tcs-scheduler-root.tcs-workspace .tcs-group-tab.active{background:#edf5f1!important;border-bottom-color:#197158!important;color:#13563f!important}
#tcs-scheduler-root.tcs-workspace .tcs-table-wrap{display:block!important;max-width:100%!important;width:100%!important;min-width:0!important;overflow-x:auto!important;overscroll-behavior-x:contain;scrollbar-width:auto}
#tcs-scheduler-root.tcs-workspace .tcs-estimate-table{width:100%!important;min-width:0!important;table-layout:fixed!important}
#tcs-scheduler-root.tcs-workspace .tcs-estimate-table th,#tcs-scheduler-root.tcs-workspace .tcs-estimate-table td{min-width:0!important;padding:12px!important;overflow-wrap:anywhere!important;vertical-align:top!important}
#tcs-scheduler-root.tcs-workspace .tcs-estimate-table :is(th,td):nth-child(1){width:46%!important}
#tcs-scheduler-root.tcs-workspace .tcs-estimate-table :is(th,td):nth-child(2){width:10%!important}
#tcs-scheduler-root.tcs-workspace .tcs-estimate-table :is(th,td):nth-child(3){width:16%!important}
#tcs-scheduler-root.tcs-workspace .tcs-estimate-table :is(th,td):nth-child(4){width:16%!important}
#tcs-scheduler-root.tcs-workspace .tcs-estimate-table :is(th,td):nth-child(5){width:12%!important}
#tcs-scheduler-root.tcs-workspace .tcs-estimate-table input,#tcs-scheduler-root.tcs-workspace .tcs-estimate-table textarea{margin:0!important}
#tcs-scheduler-root.tcs-workspace .tcs-vertical-week{min-width:1250px!important;table-layout:fixed!important}
#tcs-scheduler-root.tcs-workspace .tcs-invoice-config-layout{gap:24px!important;align-items:start!important}
#tcs-scheduler-root.tcs-workspace .tcs-invoice-label-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
#tcs-scheduler-root.tcs-workspace #reports .tcs-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
@media(min-width:761px){
 #tcs-scheduler-root.tcs-workspace .tcs-tabs{position:static!important;display:flex!important;flex-wrap:wrap!important;gap:8px!important;padding:0 24px!important;height:auto!important;min-height:0!important;overflow:visible!important}
}
@media(max-width:1100px){
 #tcs-scheduler-root.tcs-workspace .tcs-grid,#tcs-scheduler-root.tcs-workspace #reports .tcs-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:760px){
 #tcs-scheduler-root.tcs-workspace .tcs-topbar{padding:8px 12px!important;min-height:56px!important}
 #tcs-scheduler-root.tcs-workspace .tcs-app-content{padding:16px 12px!important}
 #tcs-scheduler-root.tcs-workspace .tcs-card{padding:18px!important;margin-bottom:18px!important}
 #tcs-scheduler-root.tcs-workspace .tcs-section-navigation{padding:0 12px}
 #tcs-scheduler-root.tcs-workspace [data-nav-panel]{gap:6px;padding:10px 0}
 #tcs-scheduler-root.tcs-workspace .tcs-section-navigation .tcs-tab{padding:8px 12px!important;font-size:13px!important}
 #tcs-scheduler-root.tcs-workspace .tcs-tabs{top:var(--tcs-toolbar-offset,0px)!important;height:calc(100dvh - var(--tcs-toolbar-offset,0px))!important}
 #tcs-scheduler-root.tcs-workspace .tcs-group-tab{text-align:left!important;width:100%!important}
 #tcs-scheduler-root.tcs-workspace input,#tcs-scheduler-root.tcs-workspace select,#tcs-scheduler-root.tcs-workspace textarea{font-size:16px!important}
 #tcs-scheduler-root.tcs-workspace .tcs-grid{grid-template-columns:1fr!important;gap:20px!important}
 #tcs-scheduler-root.tcs-workspace #reports .tcs-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #tcs-scheduler-root.tcs-workspace .tcs-estimate-table,#tcs-scheduler-root.tcs-workspace .tcs-estimate-table tbody{display:block!important;min-width:0!important;width:100%!important}
 #tcs-scheduler-root.tcs-workspace .tcs-estimate-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 #tcs-scheduler-root.tcs-workspace .tcs-estimate-table tr{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;border:1px solid #dbe5df;border-radius:12px;padding:16px;margin-bottom:16px}
 #tcs-scheduler-root.tcs-workspace .tcs-estimate-table td:nth-child(n){display:block!important;width:auto!important;border:0!important;padding:0!important}
 #tcs-scheduler-root.tcs-workspace .tcs-estimate-table td:first-child{grid-column:1/-1}
 #tcs-scheduler-root.tcs-workspace .tcs-estimate-table td[data-label]:before{content:attr(data-label);display:block;font-size:12px;font-weight:600;color:#49685a;margin-bottom:8px}
 #tcs-scheduler-root.tcs-workspace .tcs-invoice-label-grid{grid-template-columns:1fr!important}
}
@media(max-width:360px){#tcs-scheduler-root.tcs-workspace #reports .tcs-grid{grid-template-columns:1fr!important}}
@media print{body #tcs-scheduler-root.tcs-workspace{position:static!important;overflow:visible!important;height:auto!important;inset:auto!important}}
/* Keep data fields readable without inheriting bold label typography. */
#tcs-scheduler-root.tcs-workspace input:not([type=checkbox]):not([type=radio]),#tcs-scheduler-root.tcs-workspace select,#tcs-scheduler-root.tcs-workspace textarea{font-weight:400!important;font-size:15px!important}
#tcs-scheduler-root.tcs-workspace .tcs-grid>label>input:not([type=checkbox]):not([type=radio]){margin-top:0!important}
#tcs-scheduler-root.tcs-workspace input[type=hidden]{display:none!important}
#tcs-scheduler-root.tcs-workspace .tcs-estimate-hero{display:flex!important;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;min-height:0!important}
#tcs-scheduler-root.tcs-workspace .tcs-estimate-hero h3{margin:0!important}
#tcs-scheduler-root.tcs-workspace .tcs-estimate-hero p{display:none!important}
#tcs-scheduler-root.tcs-workspace .tcs-estimate-hero .tcs-finance-period-buttons{margin:0!important;padding:0!important}
@media(max-width:760px){#tcs-scheduler-root.tcs-workspace input:not([type=checkbox]):not([type=radio]),#tcs-scheduler-root.tcs-workspace select,#tcs-scheduler-root.tcs-workspace textarea{font-size:16px!important}}

/* Quick Quote integration */
#tcs-scheduler-root .tcs-qq-section { border:1px solid #dde4eb; border-radius:14px; padding:20px; margin:22px 0; min-width:0; }
#tcs-scheduler-root .tcs-qq-section legend { font-weight:700; padding:0 8px; }
#tcs-scheduler-root .tcs-qq-extra { display:flex; align-items:center; gap:8px; margin:10px 0; }
#tcs-scheduler-root .tcs-qq-extra input { width:auto; min-height:0; }
#tcs-scheduler-root #qqCalculator [hidden] { display:none !important; }
#tcs-scheduler-root #qqSettingsForm textarea { min-height:110px; }
#tcs-scheduler-root #qqPreview { font-size:22px; margin-right:20px; }

#tcs-scheduler-root .tcs-qq-page-field { grid-column:1/-1; }
#tcs-scheduler-root .tcs-qq-page-field > .tcs-small { display:block; margin:8px 0; }
#tcs-scheduler-root .tcs-qq-pages { display:block; max-height:300px; overflow:auto; padding:12px; border:1px solid #dde4eb; border-radius:10px; }
