/* Componentes comerciais: uma hierarquia visual, controles e estados compartilhados. */
tella-schedule,tella-agenda,tella-closing,tella-base-origin,tella-base-filters{display:block}
.tella-commercial{color:var(--tella-ink,#183e45);font:inherit;line-height:1.5;min-width:0}.tella-commercial *{box-sizing:border-box}.tella-commercial [hidden]{display:none!important}
.tella-commercial h2{font-size:20px;letter-spacing:-.35px;margin:0;font-weight:650}.tella-commercial h3{font-size:17px;line-height:1.35;margin:5px 0;color:#21474e;overflow-wrap:anywhere}.tella-commercial p{margin:6px 0 10px}.tella-commercial small{display:block;font-size:12px;color:#607a80;line-height:1.6}.tella-commercial button{font:inherit;font-size:13px;font-weight:600}
.commercial-section-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.commercial-section-head>div>p{color:#607a80;font-size:13px;margin:5px 0 0}.commercial-mode-head{justify-content:flex-start;gap:16px;margin:0 0 18px}.commercial-mode-head>.commercial-hint{margin:0;max-width:550px}
.tella-commercial .field{display:grid;gap:7px;margin:0 0 16px;min-width:0}.tella-commercial .field>span{font-size:12px;font-weight:650;color:#45626a}.tella-commercial input,.tella-commercial select,.tella-commercial textarea{display:block;width:100%;font:inherit;font-size:14px;color:#21474e;background:#fff;border:1px solid #cfdede;border-radius:8px;padding:10px 12px;max-width:100%;min-height:42px}.tella-commercial textarea{resize:vertical}.tella-commercial input:focus,.tella-commercial select:focus,.tella-commercial textarea:focus{outline:2px solid #168e8a55;border-color:#168e8a;outline-offset:1px}.tella-commercial input::placeholder{color:#84989f;font-size:12px}
.tella-commercial details{margin:12px 0}.tella-commercial summary{cursor:pointer;color:#16696e;font-weight:600;font-size:12px;padding:6px 0}.commercial-details{border-top:1px solid #e2eaea;padding-top:8px}.commercial-details[open]>summary{margin-bottom:12px}.commercial-form>.commercial-hint{margin:0 0 20px}.commercial-form>.full{width:100%;min-height:44px}
.commercial-toolbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:0 0 12px}.commercial-toolbar>.field{margin:0;min-width:160px;max-width:270px;flex:1}.commercial-toolbar>.queue-tabs{align-self:end;margin-bottom:0}.commercial-toolbar>.btn{min-height:42px;align-self:end}.commercial-toolbar .picker{min-width:0;max-width:100%}.commercial-selection{font-size:12px;color:#607a80;margin:12px 0!important}
.commercial-meeting{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:21px 22px;margin:0 0 12px;flex-wrap:wrap}.commercial-meeting-copy{flex:1;min-width:220px}.commercial-meeting-copy>p{font-size:13px;color:#526f77}.commercial-kicker{font-size:11px!important;letter-spacing:.2px;color:#5e7d86!important;font-weight:650}.commercial-meeting-copy>small{margin-top:8px}.commercial-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.commercial-actions>.btn{white-space:normal;text-align:center}.commercial-card-side{text-align:right;max-width:430px}.commercial-card-side .commercial-actions{margin-top:12px}.commercial-money{font-size:20px;color:#144f54;display:block;letter-spacing:-.4px}.commercial-money>small{display:inline;font-weight:450;font-size:12px;letter-spacing:0;margin-left:2px}.commercial-next{margin:10px 0 0!important}.commercial-late{color:#a04625!important;font-weight:600}
.commercial-badge{display:inline-flex;align-items:center;background:#edf3f5;color:#47636e;border-radius:6px;font-size:11px;font-weight:650;padding:5px 9px;white-space:nowrap}.commercial-badge[data-status=AGENDADA],.commercial-badge[data-status=REUNIAO]{background:#edf6f6;color:#176d71}.commercial-badge[data-status=REALIZADA],.commercial-badge[data-status=GANHO]{background:#e9f5ee;color:#24794c}.commercial-badge[data-status=NO_SHOW]{background:#fff2df;color:#93601b}.commercial-badge[data-status=CANCELADA],.commercial-badge[data-status=PERDIDO]{background:#f3eeee;color:#805959}
.commercial-more{position:relative;margin:0!important}.commercial-more>summary{list-style:none;border:1px solid #dce7e7;border-radius:8px;padding:9px 12px;font-size:12px;min-height:38px}.commercial-more>summary::after{content:' ▾'}.commercial-more[open]>div{position:absolute;right:0;top:100%;min-width:170px;z-index:5;display:grid;gap:5px;padding:8px;background:#fff;border:1px solid #dce7e7;border-radius:10px;box-shadow:0 10px 28px #173e4320}.commercial-more .btn{justify-content:flex-start;border:0;box-shadow:none}
.commercial-dialog{font-family:inherit;color:#183e45;border:1px solid #d5e2e2;border-radius:16px;box-shadow:0 24px 80px #002b3340;padding:24px;width:min(550px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;margin:auto;background:#fff;overscroll-behavior:contain}.commercial-dialog::backdrop{background:#082a397c;backdrop-filter:blur(2px)}.commercial-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}.commercial-head h2{font-size:20px;margin:0}.commercial-head button{border:0;background:transparent;font-size:26px;cursor:pointer;line-height:1;padding:5px 8px;color:#527078}.commercial-dialog footer.commercial-actions{border-top:1px solid #e3eceb;padding-top:16px;margin-top:20px}.commercial-modal-context{background:#f4f8f8;border-radius:9px;padding:12px 14px;margin:0 0 20px!important;font-size:13px;line-height:1.7}.commercial-dialog .field{margin-bottom:16px}.commercial-hint{font-size:12px;color:#607a80;line-height:1.7}.commercial-feedback{min-height:0;font-size:12px;line-height:1.6;white-space:pre-wrap}.commercial-feedback:empty{display:none}.commercial-feedback[data-tone=error]{padding:10px 12px;border:1px solid #e8c8c1;border-radius:8px;background:#fff5f2;color:#9b3d27}.commercial-feedback[data-tone=loading]{color:#42656f}.commercial-date-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.commercial-loading{color:#607a80;font-size:13px;padding:20px 0}.commercial-empty{text-align:center;padding:36px 24px}.commercial-empty p{color:#607a80;font-size:13px;max-width:480px;margin:10px auto 18px}.commercial-empty-icon{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#e8f6f0;color:#2b805a;margin-bottom:8px}.commercial-pagination{display:flex;align-items:center;justify-content:flex-end;gap:14px;margin:18px 0;font-size:12px;color:#607a80}.commercial-notice{padding:12px 14px;border:1px solid #bce0d3;border-radius:9px;background:#eff9f4;color:#286c51;font-size:13px}.commercial-notice[data-tone=error]{border-color:#e8c8c1;background:#fff5f2;color:#9b3d27}
.commercial-origin{display:grid;gap:4px;border-top:1px solid #e1eaea;border-bottom:1px solid #e1eaea;padding:14px 0;margin:14px 0;font-size:12px}.commercial-origin>b{font-size:13px;color:#315960}.commercial-origin small{font-size:11px}.commercial-distribution{display:grid;gap:4px;margin-top:10px}.commercial-distribution>span:not(.commercial-kicker),.commercial-distribution details>span{display:flex;justify-content:space-between;gap:15px;color:#58747b}.commercial-distribution details{margin:0}.commercial-base-filters{background:#fff;border:1px solid #dce7e7;border-radius:12px;padding:14px 16px;margin-bottom:18px}.commercial-base-filters [data-filter-count]{margin:0;font-size:12px;color:#607a80;align-self:center}.commercial-filter-hidden{display:none!important}
.commercial-history-item{padding:16px 0;border-bottom:1px solid #e1eaea}.commercial-history-item:first-child{padding-top:0}.commercial-history-item>b{font-size:13px}.commercial-history-item>p{font-size:12px}.commercial-note{white-space:pre-wrap;overflow-wrap:anywhere}.commercial-settings{border-top:1px solid #dce7e7;padding-top:14px;margin-top:30px!important}.commercial-settings>p{font-size:12px;color:#607a80}.commercial-settings>.btn{margin-top:12px}.commercial-contact-actions{justify-content:flex-start;margin:18px 0}.commercial-contact-data{display:grid;gap:7px;font-size:13px}.commercial-contact-data dt{font-size:11px;font-weight:650;color:#607a80;margin-top:10px}.commercial-contact-data dd{margin:0}.commercial-report-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0 20px}.commercial-report-summary>div{padding:16px;border:1px solid #dce7e7;border-radius:10px;background:#f5f9f8}.commercial-report-summary strong{display:block;font-size:24px;letter-spacing:-.5px;margin-top:6px}.commercial-report-summary small{font-size:11px}.commercial-report-section{border-top:1px solid #e1eaea;padding:14px 0}.commercial-report-section>h3{font-size:14px}.commercial-report-section ul{list-style:none;padding:0;margin:10px 0 0}.commercial-report-section li{display:grid;gap:3px;font-size:12px;padding:9px 0}.commercial-report-section li>span{color:#527078}.commercial-report-section>p{font-size:12px;color:#607a80}.commercial-report-events{display:flex;gap:12px;flex-wrap:wrap;font-size:12px;padding:12px 0}
[role=tabpanel]:has(>tella-closing[mode=closing])>:not(tella-closing){display:none!important}
@media(max-width:900px){.commercial-meeting{align-items:flex-start}.commercial-card-side{max-width:none;text-align:left}.commercial-toolbar>.field{max-width:none}.commercial-mode-head{align-items:flex-start;flex-wrap:wrap}}
@media(max-width:640px){.commercial-section-head{gap:12px;align-items:flex-start}.tella-commercial h2{font-size:18px}.commercial-section-head>.btn{font-size:11px;padding:8px 10px}.commercial-section-head>div>p{font-size:11px;max-width:200px}.commercial-toolbar{gap:10px}.commercial-toolbar>.queue-tabs{width:100%;justify-content:space-between}.commercial-toolbar>.field{min-width:130px;flex:1}.commercial-toolbar>.btn{font-size:12px;flex:1}.commercial-toolbar>.queue-tabs button{font-size:11px;padding:8px}.commercial-meeting{padding:18px 16px;gap:12px}.commercial-meeting-copy{min-width:0;flex-basis:100%}.commercial-meeting-copy h3{font-size:16px}.commercial-meeting>.commercial-actions{width:100%;justify-content:flex-start}.commercial-meeting>.commercial-badge{order:-1}.commercial-card-side{width:100%}.commercial-card-side .commercial-actions{justify-content:flex-start}.commercial-actions>.btn{min-height:42px;font-size:12px}.commercial-more>summary{min-height:42px;padding:11px 12px}.commercial-more[open]>div{right:0}.commercial-dialog{padding:20px 18px;max-height:calc(100dvh - 24px);width:calc(100vw - 24px)}.commercial-head h2{font-size:19px}.commercial-dialog .field>span{font-size:12px}.commercial-date-grid{gap:10px}.commercial-pagination{justify-content:space-between;gap:10px}.commercial-base-filters{padding:12px}.commercial-base-filters>.field{min-width:100%;flex:1}.commercial-base-filters>[data-filter-count]{font-size:11px}.commercial-report-summary strong{font-size:20px}.commercial-mode-head>.commercial-hint{font-size:11px}.commercial-report-summary{gap:8px}.commercial-report-summary>div{padding:12px}}

.tella-commercial .commercial-calendar-hours {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px;
}
.tella-commercial .commercial-calendar-hours .field {
  flex: 1 1 180px;
  margin: 0;
}
.tella-commercial .commercial-calendar-participation {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.35;
}
.tella-commercial .commercial-calendar-participation input {
  margin: 0;
  accent-color: #14666b;
}
.tella-commercial .commercial-calendar-status {
  color: #4a656c;
  font-size: 13px;
}
.tella-commercial p.commercial-calendar-status:empty {
  display: none;
}
.tella-commercial .commercial-calendar-busy {
  margin-bottom: 12px;
  padding: 12px 16px;
}
.tella-commercial .commercial-calendar-busy ul {
  margin: 6px 0 0;
  padding-left: 20px;
}
