.trato-calendar{margin-top:20px}.tc-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:18px 0}.tc-toolbar label{margin:0;min-width:190px}.tc-month{display:flex;align-items:center;gap:12px}.tc-month h2{margin:0;text-transform:capitalize}.tc-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.tc-weekday{text-align:center;font-size:13px;color:var(--muted);padding:10px 0}.tc-day{min-width:0;min-height:115px;padding:12px 10px;text-align:left;border:1px solid var(--line);border-radius:12px;background:var(--panel);display:flex;flex-direction:column;gap:7px;align-items:flex-start;justify-content:flex-start;font-weight:400}.tc-day strong{font-size:21px}.tc-day .tc-state{font-size:12px;font-weight:750;color:var(--green)}.tc-day.closed{background:#10202b}.tc-day.closed .tc-state{color:var(--muted)}.tc-day.selected{border:2px solid var(--orange);padding:11px 9px;background:#3c2a1c}.tc-day.selected .tc-state{color:#ffbd8a}.tc-day.past{opacity:.6;cursor:default}.tc-day small{font-size:12px;line-height:1.3;overflow-wrap:anywhere}.tc-day .tc-holiday{color:var(--yellow);font-size:12px}.tc-legend{display:flex;flex-wrap:wrap;gap:16px;margin:16px 0;color:var(--muted);font-size:13px}.tc-selection{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:20px 0;padding:17px;background:var(--panel);border:1px solid var(--line);border-radius:12px}.tc-selection strong{margin-right:auto}.tc-period{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:end;margin-bottom:12px}.tc-period label{margin:0}.tc-period button{margin-bottom:1px}.tc-reference{margin-top:22px;border-top:1px solid var(--line);padding-top:18px}.tc-reference p{font-size:14px}.tc-days-choice{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0}.tc-days-choice label{display:flex;gap:7px;align-items:center;border:1px solid var(--line);padding:9px;border-radius:8px;margin:0}.tc-days-choice input{margin:0}.tc-grid button:focus-visible{outline:3px solid var(--orange);outline-offset:2px}.tc-note{font-size:14px;color:var(--muted);line-height:1.6}.tc-summary{margin-bottom:15px}.tc-summary strong{color:var(--orange)}@media(max-width:700px){.tc-grid{gap:4px}.tc-day{min-height:88px;padding:8px 4px;border-radius:8px;gap:5px}.tc-day.selected{padding:7px 3px}.tc-day strong{font-size:18px}.tc-day small,.tc-day .tc-state,.tc-day .tc-holiday{font-size:11px}.tc-day .tc-hours{display:none}.tc-day .tc-holiday{font-size:10px}.tc-toolbar{align-items:stretch}.tc-toolbar label{width:100%}.tc-month{justify-content:space-between;flex:1}.tc-month h2{font-size:20px}.tc-period{grid-template-columns:1fr 1fr 44px;gap:7px}.tc-period input{padding:8px}.tc-selection{padding:12px}.tc-weekday{font-size:11px}.tc-days-choice label{padding:8px}.tc-day .tc-count{font-size:10px}}
.shell,.sidebar{min-width:0}.tc-day .tc-holiday{overflow-wrap:anywhere;max-width:100%}@media(max-width:800px){.shell{grid-template-columns:minmax(0,1fr)}.topbar{flex-wrap:wrap}.sidebar nav{max-width:100%}.tc-selection>*{max-width:100%}}

.trato-install{position:fixed;bottom:14px;right:14px;z-index:20;background:#ff7a0a;color:#071321;border:0;border-radius:12px;padding:10px 16px;font-weight:bold;box-shadow:0 3px 15px #0006}.trato-install[hidden]{display:none}
/* Fluid layout follows window resizing and browser zoom. */
.workspace{width:100%;max-width:none;padding:clamp(16px,2.2vw,40px)}
.panel,.stat,.two>* ,.grid>* ,.topbar>* ,.pagehead>*{min-width:0}
.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr))}
.tablewrap{max-width:100%;overflow:auto;overscroll-behavior-inline:contain}
td,th{overflow-wrap:anywhere}
.topbar,.pagehead,.formfoot,.summary{flex-wrap:wrap}
.topbar strong,.topbar small,.appointment h3,.choice .body{overflow-wrap:anywhere}
input,select,textarea{min-width:0;max-width:100%}
dialog{width:min(760px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow-y:auto;padding:clamp(18px,2.5vw,32px)}
@media(min-width:1600px){.shell{grid-template-columns:250px minmax(0,1fr)}.panel{padding:28px}.tc-day{min-height:130px}}
@media(max-width:600px){.two{grid-template-columns:minmax(0,1fr)}.paymentrow{grid-template-columns:minmax(0,1fr) minmax(70px,100px) 44px}.public header{flex-wrap:wrap}.formfoot>button{flex:1}.choice{flex-wrap:wrap}.choice .body{min-width:120px}.tc-toolbar{display:block}.trato-install{bottom:max(12px,env(safe-area-inset-bottom));right:12px}}
@media print{.trato-install{display:none!important}}
