/* Navegação do administrador. As telas do vendedor mantêm o estilo existente. */
#siteUpdateGate { z-index: 200; overflow-y: auto; }
#siteUpdateGate .test-update-card { max-height: calc(100dvh - 40px); overflow-y: auto; }
#siteUpdateGate .test-update-card p { font-size: 16px; }
#siteUpdateGate .test-update-card small { font-size: 14px; line-height: 1.5; }
#siteUpdateVersions { padding: 10px; border-radius: 10px; background: #fff0bd; color: #6f2412; font-weight: 700; }
#siteUpdateError { color: #b52e28; }
#helpPanel { position: fixed; z-index: 120; right: auto; bottom: auto; width: min(360px, calc(100vw - 24px)); max-height: min(500px, calc(100dvh - 24px)); overflow-y: auto; overscroll-behavior: contain; }
#helpPanel::before { display: none; }
#helpPanel .help-version-box strong,
#helpPanel .help-version-box span,
#helpPanel .help-version-box p,
#helpPanel .help-version-box button { font-size: 14px; line-height: 1.5; }
#helpPanel .help-version-box button { min-height: 42px; }
#helpPanel [data-help-update] { background: #d92925; color: #fff; }
/* O sininho é compartilhado por todos os perfis; a janela respeita a tela. */
#notificationPanel {
  position: fixed;
  z-index: 120;
  display: flex;
  flex-direction: column;
  right: auto;
  bottom: auto;
  width: min(370px, calc(100vw - 24px));
  max-height: min(500px, calc(100dvh - 24px));
  margin: 0;
  overflow: hidden;
}
#notificationPanel::before { display: none; }
#notificationPanel .notification-panel-head,
#notificationPanel .notification-panel-foot { flex: 0 0 auto; flex-wrap: wrap; }
#notificationPanel .notification-list { min-height: 0; max-height: none; overflow-y: auto; overscroll-behavior: contain; }
#notificationPanel .notification-copy { overflow-wrap: anywhere; }
#adminPanel [hidden] { display: none !important; }
#adminPanel { padding-top: 22px; padding-bottom: 80px; }
#adminPanel .admin-toolbar { gap: 20px; margin-bottom: 20px; }
#adminPanel .admin-toolbar-brand { min-width: 0; }
#adminPanel .admin-toolbar-brand .title { font-size: clamp(18px, 1.7vw, 26px); line-height: 1.3; }
#adminPanel .admin-toolbar-brand span { font-size: 12px; line-height: 1.5; }
#adminPanel .admin-actions { gap: 8px; }
#adminPanel .admin-actions .btn { font-size: 14px; padding: 11px 14px; }
#adminPanel .card { margin: 0 0 16px; padding: 20px; border-radius: 14px; box-shadow: 0 3px 12px #74250f06; }
#adminPanel .admin-context { display: flex; align-items: center; gap: 24px; border-left: 4px solid #cf322c; }
#adminPanel .admin-context-name { min-width: 0; flex: 1; }
#adminPanel .admin-context h3 { margin: 6px 0 0; font-size: 22px; line-height: 1.3; overflow-wrap: anywhere; }
#adminPanel .admin-eyebrow { color: #945c4c; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
#adminPanel .hint { font-size: 14px; line-height: 1.5; }
#adminPanel .admin-context .field { flex: 0 1 220px; min-width: 0; }
#adminPanel .field label { font-size: 14px; }
#adminSellerPicker { display: none; }
#adminPanel .admin-workspace { grid-template-columns: minmax(220px, 260px) minmax(0, 1fr); gap: 22px; }
#adminPanel .admin-seller-nav { padding: 14px; top: 16px; background: #fff; border-color: var(--line); }
#adminPanel .admin-seller-nav-head { margin-bottom: 12px; padding: 4px 4px 14px; border-color: #f0e4df; }
#adminPanel .admin-seller-nav-head small { color: var(--muted); font-size: 12px; line-height: 1.4; }
#adminPanel .seller-cards { gap: 8px; grid-template-columns: 1fr; }
#adminPanel .seller-card { display: block; width: 100%; text-align: left; border: 1px solid #eaded8; background: #fff; padding: 13px; border-radius: 10px; font-family: inherit; }
#adminPanel .seller-card h3, #adminPanel .seller-card strong { color: var(--ink); }
#adminPanel .seller-card h3 { font-size: 16px; line-height: 1.3; margin-bottom: 9px; }
#adminPanel .seller-card p { color: #75625a; font-size: 13px; line-height: 1.4; margin: 5px 0; }
#adminPanel .seller-card:hover { transform: none; background: #fff8f5; border-color: #d68370; box-shadow: none; }
#adminPanel .seller-card.selected { background: #fff1ec; border: 2px solid #bd372e; padding: 12px; box-shadow: inset 3px 0 0 #bd372e; }
#adminPanel .seller-card:focus-visible, #adminPanel button:focus-visible, #adminPanel summary:focus-visible { outline: 3px solid #df662f; outline-offset: 3px; }
#adminPanel .seller-card .status { font-size: 12px; }
#adminPanel .admin-detail-area { min-width: 0; }
#adminPanel .admin-view-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 5px; margin-bottom: 20px; background: #f3e7e1; border: 1px solid #ead3c8; border-radius: 12px; scroll-margin-top: 16px; }
#adminPanel .admin-view-tab { border: 0; border-radius: 8px; background: transparent; color: #775043; min-height: 52px; padding: 13px 10px; font: 700 14px/1.4 Arial, sans-serif; cursor: pointer; min-width: 0; }
#adminPanel .admin-view-tab[aria-selected="true"] { color: #a42b22; background: #fff; box-shadow: 0 2px 6px #74250f13; }
#adminPanel .admin-view-tab:hover { color: #a42b22; background: #ffffffa0; }
#adminPanel .admin-tab-panel { min-width: 0; outline-offset: 3px; }
#adminPanel .admin-tab-panel > .card { margin-top: 0; }
#adminPanel .admin-section-heading { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; margin-bottom: 14px; }
#adminPanel .admin-section-heading .title, #adminPanel .admin-section-heading .hint { margin: 0; }
#adminPanel .admin-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#adminPanel .metric { background: #fff; border: 1px solid #eddfd9; padding: 15px; border-radius: 10px; }
#adminPanel .metric strong { font-size: 28px; margin-bottom: 4px; }
#adminPanel .metric span { font-size: 14px; line-height: 1.45; display: block; }
#adminPanel .seller-detail-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#adminPanel .seller-detail-kpis span { font-size: 12px; line-height: 1.45; }
#adminPanel .seller-detail-kpis strong { font-size: 20px; overflow-wrap: anywhere; line-height: 1.35; }
#adminPanel .title { line-height: 1.4; }
#adminPanel .title .tag { display: inline-block; vertical-align: middle; margin: 4px 0; font-weight: 400; }
#adminPanel .report-item { background: #fff; padding: 16px; }
#adminPanel .report-item summary { line-height: 1.55; font-size: 16px; overflow-wrap: anywhere; }
#adminPanel .report-item pre { font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
#adminPanel .admin-disclosure > summary { cursor: pointer; color: var(--navy); font-size: 14px; font-weight: 700; line-height: 1.5; padding: 4px 0; }
#adminPanel .admin-disclosure[open] > summary { margin-bottom: 14px; }
#adminPanel .admin-disclosure:not(.card) { padding: 14px 0; border-top: 1px solid #eddcd4; }
#adminPanel .admin-import { margin: 18px 0; border-bottom: 1px solid #eddcd4; }
#adminPanel .admin-indicator-filters { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
#adminPanel .admin-indicator-filters .field { flex: 0 1 220px; }
#adminPanel .indicator-toolbar { margin: 8px 0; display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
#adminPanel .indicator-upload { flex: 1 1 240px; min-width: 0; }
#adminPanel .indicator-upload input { max-width: 100%; }
#adminPanel .indicator-note { font-size: 14px; line-height: 1.5; }
#adminPanel .indicator-section-title { padding-top: 14px; margin-top: 24px; font-size: 17px; line-height: 1.45; }
#adminPanel .indicator-table-wrap, #adminPanel .admin-table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
#adminPanel .admin-version-note { margin: 8px 0 14px; color: var(--muted); font-size: 13px; line-height: 1.5; }
#adminPanel .admin-version-note strong { color: var(--navy); }
#adminPanel .admin-user-version { display: flex; min-width: 170px; flex-direction: column; gap: 3px; }
#adminPanel .admin-user-version strong { color: var(--navy); font-size: 15px; line-height: 1.3; }
#adminPanel .admin-user-version small { color: var(--muted); font-size: 11px; line-height: 1.4; white-space: normal; }
#adminPanel .admin-user-version .status { width: fit-content; }
#adminPanel .indicator-table { min-width: 850px; font-size: 14px; }
#adminPanel .indicator-table th { font-size: 13px; white-space: nowrap; }
#adminPanel .indicator-chart { width: 190px; min-width: 170px; }
#adminPanel .indicator-bar { min-width: 150px; }
#adminPanel .admin-support-group > summary { display: flex; gap: 12px; justify-content: space-between; align-items: center; cursor: pointer; font-size: 16px; font-weight: 700; line-height: 1.45; color: var(--navy); list-style: none; }
#adminPanel .admin-support-group > summary::-webkit-details-marker { display: none; }
#adminPanel .admin-support-group > summary::after { content: '+'; font-size: 26px; font-weight: 400; flex: 0 0 24px; text-align: center; }
#adminPanel .admin-support-group[open] > summary::after { content: '−'; }
#adminPanel .admin-support-group > summary > span:first-child { flex: 1; }
#adminPanel .admin-support-group > summary small { display: block; font-size: 14px; color: var(--muted); font-weight: 400; margin-top: 5px; }
#adminPanel .admin-support-group > summary .tag { display: none; }
#adminPanel .admin-support-group[open] > summary { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid #eddfd9; }
#adminPanel .admin-system-actions { display: flex; gap: 10px; margin: 16px 0; flex-wrap: wrap; }
#adminPanel #adminSystemUpdates { box-shadow: none; border: 0; margin: 0; padding: 0; }
#adminPanel .admin-sync-note { font-size: 12px; text-align: right; margin-top: 20px; }
#appContent:has(> #adminPanel:not(.hidden)) > .top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding: 12px clamp(12px, 2vw, 32px); }
#appContent:has(> #adminPanel:not(.hidden)) > .top .top-brand,
#appContent:has(> #adminPanel:not(.hidden)) > .top #openReportsHub { display: none; }
#appContent:has(> #adminPanel:not(.hidden)) > .top .top-user-area,
#appContent:has(> #adminPanel:not(.hidden)) > .top .top-account { position: static; margin: 0; }
@media (max-width: 1100px) {
  #adminPanel .admin-toolbar { align-items: flex-start; }
  #adminPanel .admin-actions { width: 100%; }
}
@media (max-width: 900px) {
  #adminPanel .admin-workspace { grid-template-columns: minmax(0, 1fr); }
  #adminPanel .admin-seller-nav { display: none; }
  #adminPanel #adminSellerPicker { display: flex; }
  #adminPanel .admin-context { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  #adminPanel .admin-context-name { grid-column: 1 / -1; }
  #adminPanel .admin-context .field { width: 100%; }
  #adminPanel[data-admin-view="indicators"] #adminSellerPicker,
  #adminPanel[data-admin-view="support"] #adminSellerPicker { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  #adminPanel { padding-top: 16px; }
  #adminPanel .card { padding: 16px; }
  #adminPanel .admin-toolbar-brand img { width: 58px; }
  #adminPanel .admin-actions { display: grid; grid-template-columns: 1fr 1fr; }
  #adminPanel .admin-actions #toggleAdminSystem { grid-column: 1 / -1; }
  #adminPanel .admin-context h3 { font-size: 20px; }
  #adminPanel .admin-context { gap: 12px; }
  #adminPanel .admin-view-tabs { gap: 2px; padding: 4px; margin-bottom: 16px; }
  #adminPanel .admin-view-tab { padding: 10px 5px; min-height: 82px; font-size: 14px; overflow-wrap: anywhere; }
  #adminPanel .admin-grid { gap: 8px; }
  #adminPanel .metric { padding: 12px 8px; }
  #adminPanel .metric strong { font-size: 24px; }
  #adminPanel .metric span { font-size: 13px; }
  #adminPanel .seller-detail-kpis { grid-template-columns: minmax(0, 1fr); }
  #adminPanel .seller-detail-kpis > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  #adminPanel .seller-detail-kpis strong { margin: 0; font-size: 18px; }
  #adminPanel .admin-indicator-filters { display: grid; grid-template-columns: minmax(0, 1fr); }
  #adminPanel .indicator-toolbar > * { width: 100%; }
  #adminPanel .admin-sync-note { text-align: left; }
}

/* Dashboard de indicadores da equipe exibido primeiro no perfil TESTE. */
#sellerIndicatorsSection .team-dashboard-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
#sellerIndicatorsSection .team-dashboard-title { margin: 0; color: var(--navy); font-size: clamp(18px, 2vw, 24px); line-height: 1.3; }
#sellerIndicatorsSection .team-dashboard-rule { display: inline-flex; align-items: center; min-height: 32px; padding: 7px 10px; border: 1px solid #efc66a; border-radius: 999px; background: #fff7df; color: #795500; font-size: 12px; font-weight: 800; }
#sellerIndicatorsSection .team-dashboard-note { margin: 0 0 18px; padding: 12px 14px; border-left: 4px solid #d92925; border-radius: 8px; background: #fff8f4; color: var(--muted); font-size: 13px; line-height: 1.5; }
#sellerIndicatorsSection .team-dashboard-sellers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
#sellerIndicatorsSection .team-dashboard-seller { min-width: 0; padding: 16px; border: 1px solid #eddfd9; border-radius: 14px; background: #fff; box-shadow: 0 3px 12px #74250f06; }
#sellerIndicatorsSection .team-dashboard-seller-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; padding-bottom: 11px; border-bottom: 1px solid #f0e4df; }
#sellerIndicatorsSection .team-dashboard-eyebrow { display: block; color: #945c4c; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
#sellerIndicatorsSection .team-dashboard-seller h3 { margin: 4px 0 0; color: var(--navy); font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
#sellerIndicatorsSection .team-dashboard-rv-badge { flex: 0 0 auto; padding: 6px 9px; border-radius: 999px; background: #eef8ef; color: #23733c; font-size: 12px; font-weight: 800; white-space: nowrap; }
#sellerIndicatorsSection .team-dashboard-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
#sellerIndicatorsSection .team-dashboard-kpi { min-width: 0; padding: 11px; border: 1px solid #f0e4df; border-radius: 10px; background: #fffaf8; }
#sellerIndicatorsSection .team-dashboard-kpi > span { display: block; color: #795044; font-size: 11px; font-weight: 800; line-height: 1.35; }
#sellerIndicatorsSection .team-dashboard-kpi > strong { display: block; margin: 5px 0 4px; color: var(--navy); font-size: 19px; line-height: 1.2; }
#sellerIndicatorsSection .team-dashboard-kpi > small { display: block; color: var(--muted); font-size: 11px; line-height: 1.45; }
#sellerIndicatorsSection .team-dashboard-kpi > small b { color: var(--navy); }
#sellerIndicatorsSection .team-dashboard-progress { display: flex; height: 7px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: #f2e9e5; }
#sellerIndicatorsSection .team-dashboard-progress i { display: block; height: 100%; }
#sellerIndicatorsSection .team-dashboard-progress-real { background: #b52e28; }
#sellerIndicatorsSection .team-dashboard-progress-pending { background: #ef9a72; }
#sellerIndicatorsSection .team-dashboard-stars { display: grid; gap: 7px; margin-top: 14px; }
#sellerIndicatorsSection .team-dashboard-stars-title { color: #795044; font-size: 11px; font-weight: 800; letter-spacing: .06em; }
#sellerIndicatorsSection .team-dashboard-star { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 12px; line-height: 1.35; }
#sellerIndicatorsSection .team-dashboard-star small { text-align: right; }
#sellerIndicatorsSection .team-dashboard-star.is-hit { background: #edf8ef; color: #23733c; }
#sellerIndicatorsSection .team-dashboard-star.is-pending { background: #fff5e8; color: #8d5c0a; }
#sellerIndicatorsSection .team-dashboard-footnote { margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
@media (max-width: 900px) {
  #sellerIndicatorsSection .team-dashboard-sellers { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  #sellerIndicatorsSection .team-dashboard-seller { padding: 13px; }
  #sellerIndicatorsSection .team-dashboard-kpis { grid-template-columns: minmax(0, 1fr); }
  #sellerIndicatorsSection .team-dashboard-star { display: block; }
  #sellerIndicatorsSection .team-dashboard-star small { display: block; margin-top: 3px; text-align: left; }
}

/* Abertura gerencial dos indicadores por cliente/rede e Ideal mensal. */
#adminPanel .indicator-ideal-config { display: grid; gap: 13px; margin-top: 18px; padding: 15px; border: 1px solid #efc9ba; border-radius: 12px; background: #fff8f4; }
#adminPanel .indicator-ideal-config > div:first-child > span { color: #b52e28; font-size: 10px; font-weight: 900; letter-spacing: .09em; }
#adminPanel .indicator-ideal-config h3 { margin: 4px 0 0; color: var(--navy); font-size: 16px; }
#adminPanel .indicator-ideal-config p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
#adminPanel .indicator-ideal-fields { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1.25fr auto; align-items: end; gap: 9px; }
#adminPanel .indicator-ideal-fields .field { min-width: 0; }
#adminPanel .indicator-ideal-result { min-height: 43px; padding: 8px 10px; border: 1px solid #eddfd9; border-radius: 9px; background: #fff; }
#adminPanel .indicator-ideal-result span { display: block; color: #8b6256; font-size: 9px; font-weight: 900; }
#adminPanel .indicator-ideal-result strong { display: block; margin-top: 3px; color: var(--navy); font-size: 12px; line-height: 1.3; }
.indicator-ideal { display: block; width: fit-content; max-width: 230px; margin-top: 7px; padding: 6px 8px; border-radius: 8px; background: #f4f1ef; color: #6f5c55; line-height: 1.3; }
.indicator-ideal b, .indicator-ideal small { display: block; }
.indicator-ideal b { font-size: 11px; }
.indicator-ideal small { margin-top: 2px; font-size: 9px; }
.indicator-ideal.is-on-track { background: #e8f6ee; color: #187346; }
.indicator-ideal.is-below { background: #ffeae5; color: #a93226; }
.indicator-client-open { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; margin-top: 7px; padding: 6px 10px; border: 1px solid #d94735; border-radius: 8px; background: #fff; color: #b52e28; font: 800 10px/1.2 Arial, sans-serif; cursor: pointer; }
.indicator-client-open:hover, .indicator-client-open:focus-visible { background: #fff0ed; outline: 2px solid #ff510826; }
#sellerIndicatorsSection .team-dashboard-kpi .indicator-ideal { max-width: none; width: auto; }
#sellerIndicatorsSection .team-dashboard-kpi .indicator-client-open { width: 100%; }
.indicator-client-detail { margin-top: 22px; padding: 17px; border: 1px solid #e8cbbf; border-radius: 14px; background: #fff; box-shadow: 0 8px 26px #74250f12; scroll-margin-top: 14px; }
.indicator-client-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.indicator-client-head > div > span { color: #b52e28; font-size: 10px; font-weight: 900; letter-spacing: .09em; }
.indicator-client-head h3 { margin: 4px 0 0; color: var(--navy); font-size: 18px; line-height: 1.3; }
.indicator-client-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.indicator-client-head > button { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border: 1px solid #edc9bc; border-radius: 9px; background: #fff7f3; color: #b52e28; font: 700 22px/1 Arial, sans-serif; cursor: pointer; }
.indicator-client-totals { display: grid; grid-template-columns: repeat(5, minmax(115px, 1fr)); gap: 8px; margin: 14px 0; }
.indicator-client-totals span { padding: 10px; border: 1px solid #eee1dc; border-radius: 9px; background: #fffaf8; color: var(--navy); font-size: 13px; font-weight: 800; }
.indicator-client-totals b { display: block; margin-bottom: 4px; color: #86655b; font-size: 9px; text-transform: uppercase; }
.indicator-client-totals .is-reconciled { background: #eaf7ef; color: #187346; }
.indicator-client-totals .is-divergent { background: #ffe8e4; color: #b42318; }
.indicator-client-controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 12px; }
.indicator-client-controls .field { flex: 0 1 230px; }
.indicator-client-table-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; border: 1px solid #eadbd5; border-radius: 10px; }
.indicator-client-table { width: 100%; min-width: 1100px; border-collapse: collapse; font-size: 12px; }
.indicator-client-table th { position: sticky; top: 0; padding: 10px 9px; background: #7c281d; color: #fff; font-size: 10px; line-height: 1.25; text-align: left; white-space: nowrap; }
.indicator-client-table td { padding: 9px; border-bottom: 1px solid #efe4df; color: #3d302c; }
.indicator-client-table tbody tr:nth-child(even) { background: #fffaf8; }
.indicator-client-table td:first-child { min-width: 180px; }
.indicator-client-table .num { text-align: right; white-space: nowrap; }
.indicator-client-table .is-positive { color: #187346; font-weight: 800; }
.indicator-client-table .is-negative { color: #b42318; font-weight: 800; }

@media (max-width: 980px) {
  #adminPanel .indicator-ideal-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #adminPanel .indicator-ideal-fields > button { min-height: 43px; }
  .indicator-client-totals { grid-template-columns: repeat(3, minmax(115px, 1fr)); }
}
@media (max-width: 600px) {
  #adminPanel .indicator-ideal-fields { grid-template-columns: minmax(0, 1fr); }
  .indicator-client-detail { margin-top: 16px; padding: 12px; }
  .indicator-client-head h3 { font-size: 15px; }
  .indicator-client-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .indicator-client-totals span { padding: 8px; font-size: 11px; }
  .indicator-client-totals span:last-child { grid-column: 1 / -1; }
  .indicator-client-controls { display: grid; grid-template-columns: minmax(0, 1fr); }
  .indicator-client-controls .field { width: 100%; }
  .indicator-client-table { min-width: 980px; }
}

/* Camada gerencial das agendas: somente leitura e reutilização do calendário existente. */
.admin-agenda-management[open] > summary { border-bottom: 1px solid #f0c9b8; }
#adminAgendas .agenda-manager { display: grid; gap: 16px; padding-top: 14px; }
#adminAgendas .agenda-manager-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
#adminAgendas .agenda-manager-heading span,
#adminAgendas .agenda-manager-list-head span { display: block; color: #b52e28; font-size: 10px; font-weight: 900; letter-spacing: .1em; }
#adminAgendas .agenda-manager-heading h3 { margin: 4px 0 0; color: var(--navy); font-size: 21px; text-transform: capitalize; }
#adminAgendas .agenda-manager-heading p { max-width: 520px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; text-align: right; }
#adminAgendas .agenda-manager-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(135px, 1fr)); gap: 9px; }
#adminAgendas .agenda-manager-summary-card { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px; border: 1px solid #f0d9d0; border-radius: 12px; background: #fff; }
#adminAgendas .agenda-manager-summary-card > span { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 9px; background: #fff0ed; color: #b52e28; font-size: 15px; font-weight: 900; }
#adminAgendas .agenda-manager-summary-card strong { display: block; color: var(--navy); font-size: 20px; line-height: 1; }
#adminAgendas .agenda-manager-summary-card small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 700; line-height: 1.25; }
#adminAgendas .agenda-manager-summary-card.is-complete > span { background: #e8f6ee; color: #187346; }
#adminAgendas .agenda-manager-summary-card.is-partial > span,
#adminAgendas .agenda-manager-summary-card.is-notes > span { background: #fff2d9; color: #9a5b00; }
#adminAgendas .agenda-manager-summary-card.is-pending > span,
#adminAgendas .agenda-manager-summary-card.is-reopened > span { background: #ffe8e4; color: #b42318; }
#adminAgendas .agenda-manager-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 13px; border: 1px solid #f0d9d0; border-radius: 12px; background: #fff8f4; }
#adminAgendas .agenda-manager-filters label { font-size: 11px; }
#adminAgendas .agenda-manager-filters input,
#adminAgendas .agenda-manager-filters select { min-height: 40px; padding: 8px 10px; font-size: 13px; }
#adminAgendas .agenda-manager-list-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 2px; }
#adminAgendas .agenda-manager-list-head small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
#adminAgendas .agenda-manager-list-head > span { color: var(--muted); font-size: 9px; }
#adminAgendas .agenda-manager-list { display: grid; gap: 9px; }
#adminAgendas .agenda-manager-seller { margin: 0; border-color: #eadbd5; background: #fff; box-shadow: none; }
#adminAgendas .agenda-manager-seller[open] { border-color: #e88968; box-shadow: 0 5px 16px #8c220c12; }
#adminAgendas .agenda-manager-seller-summary { display: grid; grid-template-columns: auto minmax(150px, 1.35fr) minmax(140px, .9fr) minmax(210px, 1.25fr) minmax(150px, 1.1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; }
#adminAgendas .agenda-manager-seller-summary:hover { background: #fff8f4; }
#adminAgendas .agenda-manager-identity { min-width: 0; }
#adminAgendas .agenda-manager-identity strong { display: block; overflow: hidden; color: var(--navy); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
#adminAgendas .agenda-manager-identity small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.3; }
#adminAgendas .agenda-manager-progress { min-width: 0; }
#adminAgendas .agenda-manager-progress > span { display: flex; align-items: baseline; justify-content: space-between; gap: 7px; }
#adminAgendas .agenda-manager-progress b { color: var(--navy); font-size: 12px; }
#adminAgendas .agenda-manager-progress small { color: var(--muted); font-size: 9px; }
#adminAgendas .agenda-manager-progress > i { display: block; height: 7px; margin-top: 7px; overflow: hidden; border-radius: 999px; background: #f0e5e1; }
#adminAgendas .agenda-manager-progress > i > b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #d92925, #ff7854); }
#adminAgendas .agenda-manager-kpis { display: flex; flex-wrap: wrap; gap: 6px; }
#adminAgendas .agenda-manager-kpis span { padding: 5px 7px; border-radius: 7px; background: #f7f2ef; color: #765a51; font-size: 9px; white-space: nowrap; }
#adminAgendas .agenda-manager-kpis b { color: var(--navy); font-size: 11px; }
#adminAgendas .agenda-manager-statuses { display: flex; flex-wrap: wrap; gap: 5px; }
#adminAgendas .agenda-status-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 4px 7px; border-radius: 999px; font-size: 8px; font-weight: 900; letter-spacing: .02em; line-height: 1.2; }
#adminAgendas .status-completa { background: #e8f6ee; color: #187346; }
#adminAgendas .status-parcial { background: #fff1d6; color: #925500; }
#adminAgendas .status-pendente { background: #ffe8e4; color: #b42318; }
#adminAgendas .status-observacao { background: #fff5df; color: #9a5b00; }
#adminAgendas .status-liberada { background: #e8eefb; color: #315a9b; }
#adminAgendas .agenda-manager-view,
#adminAgendas .agenda-manager-empty-action { display: inline-flex; align-items: center; justify-content: center; gap: 5px; color: #b52e28; font-size: 10px; font-weight: 900; white-space: nowrap; }
#adminAgendas .agenda-manager-view i { font-size: 16px; font-style: normal; transition: transform .2s; }
#adminAgendas .agenda-manager-seller[open] .agenda-manager-view i { transform: rotate(180deg); }
#adminAgendas .agenda-manager-no-agenda { border-style: dashed; background: #fcfaf9; }
#adminAgendas .agenda-manager-no-agenda .agenda-manager-seller-summary { cursor: default; background: transparent; }
#adminAgendas .agenda-manager-empty-action { color: var(--muted); }
#adminAgendas .agenda-manager-no-results { margin: 0; padding: 16px; border: 1px dashed #e0cbc3; border-radius: 11px; text-align: center; }

@media (max-width: 980px) {
  #adminAgendas .agenda-manager-summary-grid { grid-template-columns: repeat(2, minmax(135px, 1fr)); }
  #adminAgendas .agenda-manager-seller-summary { grid-template-columns: auto minmax(140px, 1fr) minmax(135px, .9fr) minmax(190px, 1.2fr); }
  #adminAgendas .agenda-manager-statuses { grid-column: 2 / 4; }
  #adminAgendas .agenda-manager-view,
  #adminAgendas .agenda-manager-empty-action { grid-column: 4; grid-row: 2; justify-self: end; }
}

@media (max-width: 700px) {
  #adminAgendas .agenda-manager { gap: 13px; }
  #adminAgendas .agenda-manager-heading { display: block; }
  #adminAgendas .agenda-manager-heading p { margin-top: 7px; text-align: left; }
  #adminAgendas .agenda-manager-summary-grid { gap: 7px; }
  #adminAgendas .agenda-manager-summary-card { gap: 7px; padding: 10px; }
  #adminAgendas .agenda-manager-summary-card > span { width: 28px; height: 28px; flex-basis: 28px; }
  #adminAgendas .agenda-manager-summary-card strong { font-size: 17px; }
  #adminAgendas .agenda-manager-filters { grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; }
  #adminAgendas .agenda-manager-list-head > span { display: none; }
  #adminAgendas .agenda-manager-seller-summary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px; padding: 11px; }
  #adminAgendas .agenda-manager-progress,
  #adminAgendas .agenda-manager-kpis,
  #adminAgendas .agenda-manager-statuses { grid-column: 1 / -1; }
  #adminAgendas .agenda-manager-view,
  #adminAgendas .agenda-manager-empty-action { grid-column: 1 / -1; grid-row: auto; justify-self: stretch; min-height: 34px; border-top: 1px solid #f0e5e1; padding-top: 8px; }
  #adminAgendas .agenda-manager-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #adminAgendas .agenda-manager-kpis span { text-align: center; white-space: normal; }
  #adminAgendas .admin-agenda-body { padding: 0 8px 10px; }
  #adminAgendas .admin-agenda-calendar { overflow-x: auto; padding: 8px; }
  #adminAgendas .admin-agenda-week,
  #adminAgendas .admin-agenda-days { min-width: 430px; }
}
