/* Skin da área autenticada do DDM - SaaS (product/saas-design.css + product.css) aplicado ao painel de prestadores. */
:root {
  --ink: #1c2434;
  --muted: #56647a;
  --paper: #f7f8fa;
  --line: #d9e0e9;
  --blue: #1a6bc8;
  --blue-deep: #0d4a96;
  --orange: #e8692a;
  --green: #16845b; --green-bg: #e8f8f1;
  --amber: #a16a12; --amber-bg: #fff5dc;
  --red: #b53c38; --red-bg: #fff0ef;
  --purple: #6651a8; --purple-bg: #f2effd;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Poppins", Arial, sans-serif; font-size: 1rem; line-height: 1.5; color-scheme: light; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
h1, h2, h3, p { margin-top: 0; }
.hidden { display: none !important; }

/* Botão de mostrar/ocultar senha (login, trocar senha, novo usuário...) */
.password-field { position: relative; }
.password-field input { width: 100%; padding-right: 40px !important; }
.toggle-password { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border: 0; background: none; color: var(--muted); border-radius: 6px; padding: 0; }
.toggle-password:hover { color: var(--ink); background: #f3f6fa; }
.toggle-password svg { width: 18px; height: 18px; flex-shrink: 0; }
.toggle-password .icon-eye-off { display: none; }
.toggle-password.showing .icon-eye { display: none; }
.toggle-password.showing .icon-eye-off { display: block; }
body:not(.is-admin) .admin-only { display: none !important; }
.muted-text { color: var(--muted); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---- Shell ---- */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; max-height: 100vh; overflow-y: auto; padding: 28px 18px 24px; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.brand { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 4px 12px 24px; }
.brand .company-mark { height: 42px; max-width: 170px; object-fit: contain; object-position: left; }
.brand small { font-size: .875rem; font-weight: 600; color: var(--ink); line-height: 1.5; }
.sidebar nav { display: grid; gap: 7px; margin-bottom: 28px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 12px; border: 0; border-left: 3px solid transparent; border-radius: 6px; background: none; text-align: left; font-size: .875rem; font-weight: 500; color: var(--muted); }
.nav-item svg { flex-shrink: 0; width: 18px; height: 18px; }
.nav-item:hover { background: #f3f6fa; color: var(--ink); }
.nav-item.active { background: #edf4fc; color: var(--blue-deep); border-left-color: var(--orange); font-weight: 600; }
.sidebar-note { margin-top: auto; border: 1px solid var(--line); background: #fafbfc; border-radius: 8px; padding: 14px; }
.sidebar-note strong, .sidebar-note small { display: block; font-size: .75rem; line-height: 1.6; color: var(--muted); }
.sidebar-note strong { color: var(--ink); font-weight: 600; }
.sidebar-note.is-warn { background: #fff6e5; border-color: #f1d8aa; }
.sidebar-note.is-warn small { color: #855411; }
.sidebar-note.is-danger { background: #fff0ed; border-color: #efb5ac; }
.sidebar-note.is-danger small { color: #912719; }
.sidebar-account { display: grid; gap: 14px; padding: 20px 0 16px; border-top: 1px solid var(--line); margin-top: 18px; min-width: 0; }
.account-user { display: flex; align-items: flex-start; gap: 10px; padding: 0 10px; min-width: 0; }
.account-user svg { flex-shrink: 0; color: var(--muted); margin-top: 2px; }
.account-user div { display: grid; gap: 4px; min-width: 0; }
.account-user strong { font-size: .875rem; font-weight: 600; overflow-wrap: anywhere; }
.account-user small { font-size: .75rem; line-height: 1.5; color: var(--muted); }
.link-button { background: none; border: 0; padding: 0 10px; color: var(--muted); font-size: .8rem; font-weight: 600; text-align: left; text-decoration: underline; }
.link-button:hover { color: var(--red); }

.workspace { padding: 36px clamp(24px, 4vw, 48px) 90px; max-width: 1600px; width: 100%; margin: 0 auto; min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.topbar h1 { margin: 0; font-size: 2rem; font-weight: 600; line-height: 1.2; letter-spacing: -.03em; }
.eyebrow { margin: 0 0 7px; font-size: .75rem; font-weight: 600; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 17px; }
.section-heading h2 { margin: 0; font-size: 1.125rem; font-weight: 600; letter-spacing: -.02em; }
.content-section { margin-top: 30px; min-width: 0; }
.view { min-width: 0; }
.page-lead { margin-top: 28px; }

/* ---- Botões ---- */
.primary-button, .secondary-button, .danger-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: .875rem; font-weight: 600; border-radius: 6px; min-height: 42px; line-height: 1.5; box-shadow: none; }
.primary-button { border: 0; background: var(--blue); color: #fff; padding: 12px 20px; }
.primary-button:hover:not(:disabled) { background: var(--blue-deep); }
.primary-button svg { width: 18px; height: 18px; }
.secondary-button { border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 10px 16px; }
.secondary-button:hover:not(:disabled) { border-color: var(--blue); color: var(--blue-deep); background: #f7faff; }
.secondary-button.has-filters { border-color: var(--blue); color: var(--blue-deep); background: #edf4fc; }
.text-button { border: 0; background: none; color: var(--blue); padding: 0; font-size: .875rem; font-weight: 600; }
.text-button:hover { color: var(--blue-deep); }
.danger-button { border: 0; background: #b83232; color: #fff; padding: 12px 18px; }
.danger-button:hover:not(:disabled) { background: #9a2828; }
.row-action { font-size: .75rem; min-height: 34px; padding: 7px 10px; border: 1px solid #dbe3ef; border-radius: 6px; background: #fff; color: var(--blue); font-weight: 600; white-space: nowrap; }
.row-action:hover { background: #f3f7ff; border-color: var(--blue); }

/* ---- Status ---- */
.status { display: inline-flex; width: max-content; padding: 5px 9px; border-radius: 5px; font-style: normal; font-size: .8125rem; font-weight: 500; line-height: 1.5; background: #f1f3f6; color: #667286; white-space: nowrap; }
.status.ok { color: var(--green); background: var(--green-bg); }
.status.warn { color: var(--amber); background: var(--amber-bg); }
.status.danger { color: var(--red); background: var(--red-bg); }
.status.info { color: #245fc1; background: #edf4ff; }
.status.purple { color: var(--purple); background: var(--purple-bg); }

/* ---- Visão geral ---- */
.hero-row { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, .8fr); gap: 20px; }
.revenue-card { border-radius: 10px; background: var(--blue-deep); color: #fff; padding: 28px; min-height: 220px; border-top: 3px solid var(--orange); }
.revenue-card p { margin: 0; font-size: .875rem; color: #e4edf8; font-weight: 500; }
.revenue-card strong { display: block; margin-top: 22px; font-size: 2.4rem; letter-spacing: -.04em; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.1; }
.revenue-card > span { display: inline-block; margin-top: 10px; font-size: .8125rem; color: #e4edf8; }
.metric-stack { display: grid; gap: 18px; }
.metric-stack article { display: flex; align-items: center; gap: 17px; padding: 22px; border: 1px solid var(--line); background: #fff; border-radius: 8px; }
.metric-stack p { margin: 0 0 6px; color: var(--muted); font-size: .875rem; font-weight: 500; }
.metric-stack strong, .metric-stack small { display: block; }
.metric-stack strong { font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.metric-stack small { color: var(--muted); margin-top: 4px; font-size: .75rem; }
.metric-icon { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 6px; }
.metric-icon svg { width: 22px; height: 22px; }
.metric-icon.coral { color: var(--orange); background: #fff0ef; }
.metric-icon.blue { color: var(--blue); background: #edf4ff; }
.mini-metrics { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 20px; }
.situacao-badge { margin-left: 8px; font-size: .6875rem; padding: 1px 7px; vertical-align: 1px; }
.mini-metrics article { padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.mini-metrics p { margin: 0 0 8px; color: var(--muted); font-size: .875rem; }
.mini-metrics strong, .mini-metrics small { display: block; }
.mini-metrics strong { font-size: 1.375rem; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mini-metrics small { margin-top: 4px; color: var(--muted); font-size: .75rem; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .9fr); gap: 20px; }

.health-list, .progress-list { border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.health-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; padding: 18px 22px; border-top: 1px solid var(--line); }
.health-row:first-child { border-top: 0; }
.health-row b { font-size: .875rem; font-weight: 600; }
.health-row small { display: block; margin-top: 4px; color: var(--muted); font-size: .75rem; line-height: 1.6; }
.health-actions { display: flex; align-items: center; gap: 10px; }
.small-button { min-height: 34px; padding: 6px 14px; font-size: .8125rem; }
.small-button.is-stop:hover:not(:disabled) { border-color: #b83232; color: #b83232; background: #fff5f5; }
.small-button:disabled { opacity: .6; cursor: default; }
.health-row code { grid-column: 1 / -1; display: block; padding: 8px 12px; border-radius: 6px; background: #f2f5f8; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.health-list .muted-text { padding: 18px 22px; margin: 0; font-size: .875rem; }
.progress-row { padding: 14px 18px; border-top: 1px solid var(--line); }
.progress-row:first-child { border-top: 0; }
.progress-row header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.progress-row b { font-size: .875rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progress-row small { color: var(--muted); font-size: .75rem; white-space: nowrap; }
.progress-bar { height: 6px; margin-top: 10px; border-radius: 3px; background: #e6ecf4; overflow: hidden; }
.progress-bar i { display: block; height: 100%; border-radius: 3px; background: var(--blue); }
.progress-row.is-done .progress-bar i { background: var(--green); }

/* ---- Toolbar / busca ---- */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 28px; margin-bottom: 18px; }
.search { flex: 1 1 320px; max-width: 460px; height: 46px; display: flex; align-items: center; gap: 9px; padding: 0 13px; background: #fff; border: 1px solid var(--line); border-radius: 6px; margin: 0; }
.search:focus-within { border-color: var(--blue); }
.search svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.search input { width: 100%; border: 0; outline: 0; color: var(--ink); font-size: .875rem; background: transparent; }
.filters { display: flex; gap: 6px; padding: 0; border-bottom: 1px solid var(--line); overflow-x: auto; margin-bottom: 18px; }
.filters button { white-space: nowrap; padding: 12px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; color: #6d788a; font-size: .875rem; font-weight: 500; margin-bottom: -1px; }
.filters button:hover { color: var(--ink); }
.filters button.active { color: var(--blue-deep); border-bottom-color: var(--blue); font-weight: 600; }
#view-exports .filters { margin-top: 28px; }
.active-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.active-chips:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border-radius: 999px; background: #edf4fc; color: var(--blue-deep); font-size: .8125rem; font-weight: 500; }
.chip button { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #d6e5f7; color: var(--blue-deep); font-size: .875rem; line-height: 1; padding: 0; display: grid; place-items: center; }
.chip button:hover { background: var(--blue); color: #fff; }
.result-info { margin: 0 0 12px; color: var(--muted); font-size: .875rem; }

/* ---- Tabela ---- */
.proposal-table { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
/* O menu de ações abre pra fora da linha -- essa tabela nao pode cortar (overflow: hidden) senao ele fica escondido. */
.users-table.proposal-table { overflow: visible; }
.table-row { width: 100%; display: grid; gap: 16px; align-items: center; padding: 18px 22px; border: 0; border-top: 1px solid var(--line); background: #fff; text-align: left; color: var(--ink); font-size: .875rem; min-width: 0; }
.data-table .table-row { grid-template-columns: minmax(200px, 1.6fr) minmax(150px, 1fr) minmax(160px, 1.2fr) minmax(140px, .9fr) 100px; }
.users-table .table-row { grid-template-columns: minmax(160px, 1.3fr) minmax(120px, .8fr) minmax(110px, .8fr) minmax(120px, .9fr) minmax(140px, 1fr) minmax(220px, 1.3fr); }
.exports-table .table-row { grid-template-columns: 1.5fr .7fr .7fr 1fr; }
.table-row:first-child { border-top: 0; }
.table-row:not(.table-head) { cursor: pointer; }
.table-row:not(.table-head):hover { background: #fbfdff; }
.table-row.table-head { background: #f2f5f8; color: var(--muted); text-transform: uppercase; font-size: .75rem; font-weight: 600; letter-spacing: .04em; padding-top: 12px; padding-bottom: 12px; cursor: default; }
.table-row > span { min-width: 0; }
.table-row span b, .table-row span small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-row span b { color: var(--ink); font-size: .875rem; font-weight: 600; }
.table-row span small { margin-top: 2px; color: var(--muted); font-size: .75rem; line-height: 1.6; }
.table-row .cell-phone b { color: var(--blue-deep); font-variant-numeric: tabular-nums; }
.table-row .cell-actions { display: flex; justify-content: flex-end; }

/* Menu de ações (linhas da tabela de usuários) */
.row-menu { position: relative; }
.row-menu summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; font-size: 1.1rem; line-height: 1; }
.row-menu summary::-webkit-details-marker { display: none; }
.row-menu summary:hover { background: #f3f6fa; color: var(--ink); }
.row-menu[open] summary { border-color: var(--blue); color: var(--blue-deep); }
.row-menu-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 190px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(28,36,52,.12); padding: 6px; display: grid; }
.row-menu-list button { width: 100%; text-align: left; padding: 8px 10px; border: 0; background: none; border-radius: 6px; font-size: .8rem; font-weight: 500; color: var(--ink); }
.row-menu-list button:hover { background: #f3f6fa; }
.row-menu-list button.danger { color: var(--red); }
.row-menu-list button.danger:hover { background: var(--red-bg); }
.table-loading { padding: 40px; text-align: center; color: var(--muted); font-size: .875rem; }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.pagination button { background: #fff; border: 1px solid var(--line); color: var(--ink); padding: 8px 14px; min-height: 38px; border-radius: 6px; font-size: .875rem; }
.pagination button:hover:not(:disabled) { border-color: var(--blue); color: var(--blue-deep); }
.pagination button.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.pagination .gap { color: var(--muted); align-self: center; }

.empty-state { text-align: center; padding: 64px 24px; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: 8px; margin-top: 8px; }
.empty-state svg { width: 40px; height: 40px; color: var(--blue); margin-bottom: 16px; }
.empty-state h3 { margin: 0 0 6px; color: var(--ink); font-size: 1.125rem; font-weight: 600; }
.empty-state p { margin: 0; font-size: .875rem; line-height: 1.7; }

/* ---- Kanban (proposal-kanban do SaaS) ---- */
.proposal-kanban { display: grid; grid-template-columns: repeat(6, minmax(260px, 1fr)); gap: 16px; overflow-x: auto; padding: 16px 2px 24px; align-items: start; }
.kanban-column { background: #edf1f6; border: 1px solid var(--line); border-radius: 8px; padding: 14px; min-height: 240px; display: grid; gap: 14px; align-content: start; }
.kanban-column > h3 { font-size: .875rem; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; margin: 0; }
.kanban-column > h3 small { font-size: .875rem; color: var(--muted); font-weight: 500; }
.kanban-cards { display: grid; gap: 12px; min-height: 60px; border-radius: 6px; }
.kanban-cards.dragover { outline: 2px dashed var(--blue); outline-offset: 4px; }
.kanban-card { display: grid; gap: 10px; background: #fff; padding: 16px; border: 1px solid var(--line); border-radius: 6px; min-width: 0; cursor: grab; }
.kanban-card.dragging { opacity: .4; }
.kanban-card p { margin: 0; font-size: .875rem; line-height: 1.6; overflow-wrap: anywhere; color: var(--muted); }
.kanban-card small { font-size: .75rem; color: var(--muted); line-height: 1.5; }
.kanban-card .deadline-overdue { color: #ad3025; font-weight: 500; }
.kanban-card .deadline-today { color: #855411; font-weight: 500; }
.kanban-title { text-align: left; font: inherit; font-weight: 600; border: 0; background: none; padding: 0; color: var(--ink); overflow-wrap: anywhere; cursor: pointer; }
.kanban-title:hover { color: var(--blue-deep); }
.kanban-phone { color: var(--blue-deep); font-variant-numeric: tabular-nums; }
.kanban-card label { display: grid; gap: 6px; font-size: .75rem; color: var(--muted); }
.kanban-card select { min-width: 0; width: 100%; font: inherit; font-size: .875rem; padding: 9px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); }

/* ---- Exportações / tags ---- */
.tag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 16px; }
.tag-grid article { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.tag-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 6px; color: #fff; font-size: .75rem; font-weight: 700; background: var(--blue); }
.tag-grid b { display: block; font-size: .875rem; font-weight: 600; }
.tag-grid small { display: block; margin-top: 3px; color: var(--muted); font-size: .75rem; }
.inline-form { display: flex; gap: 10px; max-width: 460px; }
.inline-form input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 10px 14px; min-height: 42px; color: var(--ink); font-size: .875rem; }
.inline-form input:focus { border-color: var(--blue); outline: 0; }
.history-compact { display: grid; gap: 8px; max-height: 170px; overflow: auto; }
.history-compact div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; font-size: .875rem; }
.history-compact small { color: var(--muted); white-space: nowrap; font-size: .75rem; }

/* ---- Painéis laterais e modal ---- */
.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(12, 22, 40, .55); backdrop-filter: blur(4px); }
.detail-backdrop { place-items: stretch end; padding: 0; }
.detail-panel { width: min(680px, 100%); height: 100vh; overflow: auto; background: #f4f6fa; box-shadow: 0 18px 60px #0c1a3029; display: flex; flex-direction: column; }
.detail-panel.filters-panel { width: min(560px, 100%); }
.detail-header { position: sticky; top: 0; z-index: 2; background: #fff; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 24px 28px; border-bottom: 1px solid var(--line); }
.detail-header h2, .creator-modal h2 { margin: 0; font-size: 1.375rem; font-weight: 600; letter-spacing: -.02em; overflow-wrap: anywhere; }
.close-button { width: 34px; height: 34px; border: 0; border-radius: 6px; background: #f1f3f6; color: #6c7788; font-size: 1.4rem; flex-shrink: 0; display: grid; place-items: center; }
.close-button:hover { background: #e3e8ef; color: var(--ink); }
.panel-body { padding: 28px; flex: 1; }
.creator-modal { width: min(640px, 100%); max-height: calc(100vh - 40px); overflow: auto; border-radius: 12px; background: #fff; box-shadow: 0 18px 60px #0c1a3029; }
.creator-modal > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 24px 28px; border-bottom: 1px solid var(--line); }
.modal-actions { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 20px 28px; border-top: 1px solid var(--line); background: #fafbfc; position: sticky; bottom: 0; }

.form-step { padding: 28px; display: grid; gap: 20px; }
.panel-body.form-step { padding: 28px; }
.form-step label { display: grid; gap: 8px; color: var(--muted); font-size: .875rem; font-weight: 500; min-width: 0; }
.form-step input:not([type="checkbox"]), .form-step select, .form-step textarea { width: 100%; border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 12px 14px; min-height: 46px; color: var(--ink); font: inherit; font-size: 1rem; outline: 0; }
.form-step input:focus, .form-step select:focus, .form-step textarea:focus { border-color: var(--blue); }
.form-step textarea { resize: vertical; min-height: 100px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-hint { color: var(--muted); font-size: .75rem; font-weight: 400; line-height: 1.6; }
.form-error { margin: 0; padding: 14px 18px; border-radius: 6px; background: #fff0ed; border: 1px solid #efb5ac; color: #912719; font-size: .875rem; line-height: 1.6; }
.scope-hint { margin: 0; padding: 16px 20px; border-left: 3px solid var(--blue); background: #edf4fc; border-radius: 0 6px 6px 0; color: #234b7a; font-size: .875rem; line-height: 1.6; }
.check-inline { display: flex !important; align-items: center; gap: 10px; font-weight: 500 !important; color: var(--ink) !important; }
.check-inline input { width: 18px !important; height: 18px; accent-color: var(--blue); min-height: 0 !important; }
.check-group__title { color: var(--muted); font-size: .875rem; font-weight: 500; margin-bottom: 8px; }
.check-group input[type="text"] { margin-bottom: 10px; }
.checkbox-list { display: grid; gap: 2px; max-height: 220px; overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.checkbox-list label { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; color: var(--ink); font-size: .875rem; font-weight: 400; cursor: pointer; }
.checkbox-list label:hover { background: #f3f6fa; }
.checkbox-list input { width: 16px !important; height: 16px; accent-color: var(--blue); flex-shrink: 0; min-height: 0 !important; }
.checkbox-list .count { margin-left: auto; color: var(--muted); font-size: .75rem; }
.checkbox-list .muted-text { padding: 8px; margin: 0; font-size: .875rem; }

/* ---- Ficha (painel do prestador / contato) ---- */
.sheet-title { margin: 22px 0 8px; }
.sheet { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 20px; }
.sheet-row { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); font-size: .875rem; }
.sheet-row:first-child { border-top: 0; }
.sheet-row .label { color: var(--muted); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding-top: 2px; }
.sheet-row .value { min-width: 0; overflow-wrap: anywhere; line-height: 1.6; }
.sheet-row .value.phone { color: var(--blue-deep); font-weight: 600; font-variant-numeric: tabular-nums; }
.sheet-row a { color: var(--blue-deep); }
.panel-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.panel-section { margin-top: 24px; }
.panel-section .eyebrow { margin-bottom: 12px; }
.panel-section .form-step { padding: 0; }
.notes-timeline { display: grid; gap: 10px; }
.note { padding: 18px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: .875rem; line-height: 1.6; display: grid; gap: 6px; }
.note small { color: var(--muted); font-size: .75rem; }
.panel-danger { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---- Toast ---- */
.toast { position: fixed; z-index: 100; right: 25px; bottom: 25px; display: flex; align-items: center; gap: 10px; padding: 13px 17px; border-radius: 6px; background: #172031; color: #fff; box-shadow: 0 14px 35px rgba(8, 17, 33, .24); font-size: .8125rem; }
.toast span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #25a778; flex-shrink: 0; }
.toast em { font-style: normal; }

/* ---- Responsivo ---- */
@media (max-width: 1100px) {
  .hero-row, .dashboard-grid { grid-template-columns: 1fr; }
  .mini-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; max-height: none; padding: 10px 12px; overflow: visible; }
  .sidebar .brand, .sidebar-note, .sidebar-account { display: none; }
  .sidebar nav { margin: 0; display: flex; overflow-x: auto; }
  .sidebar .nav-item { white-space: nowrap; padding: 10px 12px; min-height: 44px; border-left: 0; border-bottom: 2px solid transparent; border-radius: 0; }
  .sidebar .nav-item.active { border-bottom-color: var(--orange); }
  .workspace { padding: 24px 18px 90px; }
  .topbar h1 { font-size: 1.6rem; }
  .toolbar { align-items: stretch; }
  .search { max-width: none; }
  .data-table .table-row { grid-template-columns: 1fr 1fr; }
  .data-table .table-row > span:nth-child(3), .data-table .table-row > span:nth-child(4) { display: none; }
  .exports-table .table-row { grid-template-columns: 1fr .6fr .6fr; }
  .exports-table .table-row > span:nth-child(4) { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .form-step, .panel-body { padding: 20px; }
  .detail-panel, .detail-panel.filters-panel { width: 100%; }
  .sheet-row { grid-template-columns: 1fr; gap: 4px; }
  .modal-backdrop { padding: 12px; }
  .creator-modal { max-height: calc(100dvh - 24px); }
}
@media (max-width: 480px) {
  .mini-metrics { grid-template-columns: 1fr; }
  .table-row { padding: 14px 12px; gap: 10px; }
  .modal-actions > * { flex: 1; }
  .revenue-card strong { font-size: 2rem; }
}
