:root { color-scheme: light; --navy: #071a2b; --blue: #0b5f7c; --paper: #f4f7f8; --line: #dbe4e7; --danger: #9f2f2f; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--navy); font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.app-header { min-height: 78px; padding: 12px clamp(20px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid var(--line); }
.app-header img { display: block; height: 50px; width: auto; }
.app-main { min-height: calc(100vh - 78px); display: grid; place-items: center; padding: 40px 20px; }
.auth-card, .dashboard-card { width: min(100%, 520px); padding: clamp(28px, 5vw, 48px); background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 60px rgba(7, 26, 43, .08); }
.dashboard-card { width: min(100%, 760px); }
.eyebrow { margin: 0 0 10px; color: var(--blue); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0 0 14px; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; }
p { line-height: 1.65; }
.auth-form { display: grid; gap: 10px; margin-top: 26px; }
.auth-form label { margin-top: 8px; font-size: .9rem; font-weight: 700; }
.auth-form input { width: 100%; padding: 13px 14px; border: 1px solid #bdcbd0; border-radius: 9px; font: inherit; }
.auth-form input:focus { outline: 3px solid rgba(11, 95, 124, .18); border-color: var(--blue); }
.auth-form button { margin-top: 14px; padding: 14px 20px; border: 0; border-radius: 9px; color: #fff; background: var(--navy); font: inherit; font-weight: 800; cursor: pointer; }
.alert { margin-top: 20px; padding: 12px 14px; border-left: 4px solid var(--danger); background: #fff1f1; color: #712020; }
.back-link { display: inline-block; margin-top: 24px; color: var(--blue); }
.link-button { border: 0; background: transparent; color: var(--blue); font: inherit; font-weight: 700; cursor: pointer; }

/* Padrão visual do painel administrativo */

/* Base de todos os formulários do painel, inclusive campos criados por JavaScript.
   Não depende de form-grid nem de classes por tela. Tipos especiais ficam fora
   da caixa textual; :where mantém as exceções de composição fáceis de ajustar. */
.admin-body :where(input:not([type="hidden"], [type="checkbox"], [type="radio"], [type="range"], [type="color"], [type="button"], [type="submit"], [type="reset"], [type="image"]), select, textarea) {
    width: 100%;
    min-width: 0;
    height: 43px;
    box-sizing: border-box;
    padding: 0 12px;
    border: 1px solid #c8d6da;
    border-radius: 9px;
    color: #173747;
    background: #fff;
    font: inherit;
    font-size: .78rem;
    transition: border-color .15s, box-shadow .15s;
}
.admin-body :where(input:not([type="hidden"], [type="checkbox"], [type="radio"], [type="range"], [type="color"], [type="button"], [type="submit"], [type="reset"], [type="image"]), select, textarea):focus {
    outline: 0;
    border-color: #278d94;
    box-shadow: 0 0 0 3px rgba(8,125,137,.1);
}
.admin-body :where(input, textarea)[readonly],
.admin-body :where(input, select, textarea):disabled {
    color: #536d79;
    background-color: #eff4f5;
}
.admin-body :where(input, select, textarea):disabled { cursor: not-allowed; }
.admin-body :where(textarea, select[multiple], select[size]:not([size="1"])) {
    height: auto;
    padding: 11px 12px;
}
.admin-body textarea { resize: vertical; }
.admin-body :where(input[type="checkbox"], input[type="radio"]) { accent-color: var(--admin-teal); }
/* Upload mantém o seletor nativo e espaço para o nome do arquivo. */
.admin-body input[type="file"] { height: auto; min-height: 43px; padding: 8px 12px; }

.admin-body { --admin-navy: #071b2d; --admin-ink: #102a3a; --admin-teal: #087d89; --admin-green: #38a57a; --admin-gold: #d6a64b; --admin-muted: #69808d; background: #eef3f5; color: var(--admin-ink); }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.admin-sidebar { position: sticky; top: 0; z-index: 30; height: 100vh; display: flex; flex-direction: column; padding: 24px 18px 18px; overflow-y: auto; color: #fff; background: linear-gradient(165deg, #061a2b 0%, #082638 72%, #0a3340 100%); box-shadow: 12px 0 35px rgba(6, 26, 43, .1); }
.admin-brand { min-height: 64px; display: flex; align-items: flex-start; justify-content: space-between; padding: 0 10px 18px; border-bottom: 1px solid rgba(255,255,255,.09); }
.admin-brand img { display: block; width: 138px; height: auto; filter: brightness(0) invert(1); }
.sidebar-close, .sidebar-toggle { display: none; border: 0; cursor: pointer; }
.admin-nav { display: flex; flex-direction: column; gap: 5px; padding-top: 18px; }
.nav-label { margin: 18px 12px 6px; color: #7693a1; font-size: .67rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.nav-label:first-child { margin-top: 0; }
.admin-nav a, .nav-group > summary { min-height: 44px; display: grid; grid-template-columns: 26px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: #bdd0d8; font-size: .9rem; font-weight: 650; text-decoration: none; transition: .2s ease; }
.nav-group > summary { list-style: none; cursor: pointer; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary::after { content: '▸'; }
.nav-group[open] > summary::after { content: '▾'; }
.nav-group > summary:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-group > summary:focus-visible { outline: 2px solid #54ccc4; outline-offset: 2px; }
.nav-submenu { margin: 5px 0 0 25px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.15); }
.admin-nav .nav-submenu a { grid-template-columns: minmax(0,1fr); margin-top: 5px; }
.admin-nav a:hover:not(.is-disabled) { color: #fff; background: rgba(255,255,255,.07); transform: translateX(2px); }
.admin-nav a.is-active { color: #fff; background: linear-gradient(90deg, rgba(20,143,151,.32), rgba(20,143,151,.13)); box-shadow: inset 3px 0 #31b3ae; }
.admin-nav a.is-disabled { opacity: .48; cursor: default; }
.admin-nav a small { color: #77929f; font-size: .62rem; font-weight: 700; text-transform: uppercase; }
.nav-icon { color: #89a8b4; font-size: 1.15rem; text-align: center; }
.is-active .nav-icon { color: #54ccc4; }
.nav-badge { padding: 2px 7px; border-radius: 99px; color: #9ce5dd; background: rgba(45,183,174,.18); font-size: .65rem; }
.admin-sidebar-footer { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 18px 10px 2px; border-top: 1px solid rgba(255,255,255,.09); overflow: hidden; }
.sidebar-avatar { flex: 0 0 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(135deg, #138a91, #42ad7c); font-weight: 800; }
.admin-sidebar-footer div { min-width: 0; }
.admin-sidebar-footer strong, .admin-sidebar-footer small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-sidebar-footer strong { color: #e9f3f5; font-size: .76rem; }.admin-sidebar-footer small { margin-top: 3px; color: #7897a4; font-size: .68rem; }
.admin-workspace { min-width: 0; }
.admin-topbar { height: 72px; display: flex; align-items: center; gap: 16px; padding: 0 clamp(22px, 4vw, 52px); background: rgba(255,255,255,.94); border-bottom: 1px solid #dce6e9; backdrop-filter: blur(12px); }
.topbar-context { display: flex; align-items: center; gap: 10px; font-size: .8rem; }.topbar-context span { color: #81939d; }.topbar-context span::after { content: '/'; margin-left: 10px; color: #c4cfd3; }.topbar-context strong { color: #263f4d; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }.topbar-actions a, .topbar-actions button { border: 0; color: #476271; background: none; font: inherit; font-size: .82rem; font-weight: 700; text-decoration: none; cursor: pointer; }.topbar-actions a:hover, .topbar-actions button:hover { color: var(--admin-teal); }
.admin-main { width: min(100%, 1500px); margin: 0 auto; padding: 34px clamp(22px, 4vw, 52px) 56px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }.page-heading h1 { margin: 0; color: #0a2435; font-size: clamp(1.7rem, 2.5vw, 2.35rem); letter-spacing: -.035em; }.page-heading p:not(.eyebrow) { margin: 8px 0 0; color: var(--admin-muted); font-size: .9rem; }.page-heading .eyebrow { margin-bottom: 7px; color: var(--admin-teal); font-size: .68rem; }
.primary-action { width: fit-content; display: flex; align-items: center; gap: 26px; padding: 12px 16px; border-radius: 10px; color: #fff; background: var(--admin-navy); box-shadow: 0 9px 22px rgba(7,27,45,.15); font-size: .82rem; font-weight: 750; text-decoration: none; }.primary-action:hover { background: #0b3850; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-bottom: 18px; }
.metric-card { min-height: 142px; display: flex; align-items: flex-start; gap: 15px; padding: 23px; border: 1px solid #dce6e9; border-radius: 15px; background: #fff; box-shadow: 0 8px 28px rgba(15,52,68,.045); }.metric-icon { flex: 0 0 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: #087d89; background: #e7f4f3; font-size: .75rem; font-weight: 850; }.metric-card > div:last-child { min-width: 0; }.metric-card span { display: block; color: #627986; font-size: .76rem; font-weight: 700; }.metric-card strong { display: block; margin: 6px 0 4px; color: #102d3d; font-size: 1.75rem; letter-spacing: -.04em; }.metric-card small { color: #8a9aa2; font-size: .68rem; }.metric-card small i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #38a57a; }.metric-featured { color: #fff; border-color: transparent; background: linear-gradient(145deg, #0a3041, #075766); }.metric-featured span, .metric-featured small { color: #b9d1d6; }.metric-featured strong { color: #fff; }.metric-featured .metric-icon { color: #fff; background: rgba(255,255,255,.12); }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.panel { min-width: 0; padding: 24px; border: 1px solid #dce6e9; border-radius: 15px; background: #fff; box-shadow: 0 8px 28px rgba(15,52,68,.04); }.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }.panel-header span { color: #8a9ca5; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }.panel-header h2 { margin: 4px 0 0; font-size: 1.08rem; letter-spacing: -.02em; }.panel-header a { color: var(--admin-teal); font-size: .72rem; font-weight: 750; text-decoration: none; }.panel-kicker { padding: 5px 8px; border-radius: 6px; background: #f1f6f7; letter-spacing: 0 !important; text-transform: none !important; }
.donut-layout { min-height: 210px; display: flex; align-items: center; justify-content: center; gap: clamp(30px, 6vw, 76px); }.donut-chart { width: 174px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(#0b8a91 calc(var(--value) * 1%), #d5aa50 0); position: relative; }.donut-chart::before { content: ''; position: absolute; inset: 18px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px #edf2f3; }.donut-chart div { z-index: 1; text-align: center; }.donut-chart strong { display: block; font-size: 1.7rem; letter-spacing: -.04em; }.donut-chart span { color: #718590; font-size: .68rem; }.chart-legend { display: grid; gap: 20px; }.chart-legend > div { display: flex; align-items: flex-start; gap: 10px; }.legend-dot { flex: 0 0 9px; height: 9px; margin-top: 4px; border-radius: 3px; }.legend-pf { background: #0b8a91; }.legend-pj { background: #d5aa50; }.chart-legend strong, .chart-legend small { display: block; }.chart-legend strong { font-size: .76rem; }.chart-legend small { margin-top: 4px; color: #899aa3; font-size: .67rem; }
.bar-chart { display: grid; gap: 13px; }.bar-row > div:first-child { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 5px; font-size: .72rem; }.bar-row span { color: #526d7b; }.bar-row strong { font-size: .68rem; }.bar-track { height: 7px; overflow: hidden; border-radius: 99px; background: #edf2f3; }.bar-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #087d89, #42ad7c); }
.quality-list { display: grid; gap: 22px; }.quality-list > div > div { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: .75rem; }.quality-list progress { width: 100%; height: 8px; border: 0; border-radius: 99px; overflow: hidden; background: #edf2f3; }.quality-list progress::-webkit-progress-bar { background: #edf2f3; }.quality-list progress::-webkit-progress-value { background: linear-gradient(90deg, #087d89, #42ad7c); border-radius: 99px; }.quality-list progress::-moz-progress-bar { background: #087d89; }.quality-list small { display: block; margin-top: 6px; color: #8a9ca5; font-size: .66rem; }.soft-action { display: flex; justify-content: space-between; margin-top: 22px; padding: 11px 13px; border-radius: 9px; color: #116f78; background: #eef8f7; font-size: .74rem; font-weight: 750; text-decoration: none; }
.quick-links { display: grid; gap: 8px; }.quick-links > * { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 11px; padding: 10px; border: 1px solid #e4ebed; border-radius: 10px; color: inherit; text-decoration: none; }.quick-links a:hover { border-color: #a9d2d1; background: #f7fbfb; }.quick-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; color: var(--admin-teal); background: #eaf5f4; }.quick-links strong, .quick-links small { display: block; }.quick-links strong { font-size: .75rem; }.quick-links small { margin-top: 3px; color: #82949e; font-size: .65rem; }.quick-links b { color: var(--admin-teal); font-size: .7rem; }.quick-link-disabled { opacity: .58; }
.result-total { padding: 8px 12px; border: 1px solid #dce6e9; border-radius: 9px; color: #718590; background: #fff; font-size: .75rem; }.result-total strong { color: #173646; }
.people-panel { padding: 0; overflow: hidden; }.people-filters { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid #e3eaec; }.search-field { flex: 1; min-width: 280px; display: flex; align-items: center; height: 42px; border: 1px solid #cad7db; border-radius: 9px; overflow: hidden; background: #fff; }.search-field:focus-within { border-color: #278d94; box-shadow: 0 0 0 3px rgba(8,125,137,.1); }.search-field i { padding-left: 12px; color: #748b96; font-style: normal; }.search-field input { flex: 1; height: 100%; padding: 0 10px; border: 0; border-radius: 0; background: transparent; }.search-field input:focus { box-shadow: none; }.search-field button { align-self: stretch; padding: 0 16px; border: 0; color: #fff; background: var(--admin-navy); font: inherit; font-size: .72rem; font-weight: 750; cursor: pointer; }.people-filters select { width: auto; height: 42px; min-width: 150px; padding-right: 32px; }.clear-filters { color: #9a5a4a; font-size: .7rem; font-weight: 700; white-space: nowrap; }
.table-scroll { overflow-x: auto; }.people-table { width: 100%; border-collapse: collapse; font-size: .74rem; }.people-table th { padding: 12px 18px; color: #82949d; background: #f7f9fa; border-bottom: 1px solid #e1e8ea; font-size: .63rem; letter-spacing: .06em; text-align: left; text-transform: uppercase; white-space: nowrap; }.people-table td { padding: 13px 18px; border-bottom: 1px solid #edf1f2; vertical-align: middle; }.people-table tbody tr:hover { background: #fafcfc; }.person-cell { min-width: 230px; display: flex; align-items: center; gap: 10px; }.person-avatar { flex: 0 0 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: #167b81; background: #e5f3f2; font-weight: 800; }.person-pj { color: #9a7429; background: #f8f0df; }.person-cell strong, .person-cell small, .contact-cell span, .contact-cell small { display: block; }.person-cell strong { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #183848; }.person-cell small, .contact-cell small { margin-top: 3px; color: #8999a1; font-size: .65rem; }.document-value { font-variant-numeric: tabular-nums; white-space: nowrap; }.missing-value { padding: 4px 7px; border-radius: 5px; color: #a36726; background: #fff5df; font-size: .64rem; white-space: nowrap; }.contact-cell { min-width: 150px; }.role-pill { display: inline-block; max-width: 210px; padding: 4px 8px; overflow: hidden; border-radius: 6px; color: #397078; background: #edf6f6; font-size: .64rem; text-overflow: ellipsis; white-space: nowrap; }.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 99px; font-size: .64rem; font-weight: 700; }.status-pill i { width: 5px; height: 5px; border-radius: 50%; }.status-pill.is-active { color: #287756; background: #e9f7ef; }.status-pill.is-active i { background: #38a57a; }.status-pill.is-inactive { color: #8b5252; background: #faeded; }.status-pill.is-inactive i { background: #b76565; }.muted { color: #9ba8ae; }
.sortable-heading { display: inline-flex; align-items: center; gap: 6px; margin: -7px -9px; padding: 7px 9px; border-radius: 7px; color: #728892; text-decoration: none; transition: color .15s ease, background .15s ease; }.sortable-heading span { color: #a6b3b9; font-size: .75rem; letter-spacing: 0; }.sortable-heading:hover, .sortable-heading:focus-visible { color: #0f6972; background: #e9f4f3; outline: 0; }.sortable-heading.is-active { color: #fff; background: var(--admin-teal); }.sortable-heading.is-active span { color: #d9f1ef; }
.column-picker { position: relative; flex: 0 0 auto; }.column-picker summary { height: 42px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border: 1px solid #cad7db; border-radius: 9px; color: #425f6d; background: #fff; font-size: .72rem; font-weight: 750; list-style: none; cursor: pointer; user-select: none; }.column-picker summary::-webkit-details-marker { display: none; }.column-picker summary:hover, .column-picker summary:focus-visible, .column-picker[open] summary { color: #0f6972; border-color: #79b5b8; background: #f0f8f7; outline: 0; }.column-picker[open] summary span { transform: rotate(180deg); }.column-picker-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 25; min-width: 220px; padding: 8px; border: 1px solid #d4e1e4; border-radius: 10px; background: #fff; box-shadow: 0 14px 32px rgba(9,38,52,.16); }.column-picker-menu label { min-height: 36px; display: flex !important; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 7px; color: #425f6d; font-size: .7rem; cursor: pointer; white-space: nowrap; }.column-picker-menu label:hover { color: #0f6972; background: #edf7f6; }.column-picker-menu input { width: 15px; height: 15px; accent-color: var(--admin-teal); }.column-picker-menu input:disabled { opacity: .55; }.people-table [hidden] { display: none; }
.date-filter { display: grid; gap: 3px; color: #70858f; font-size: .58rem; font-weight: 750; white-space: nowrap; }.date-filter input { width: 145px; height: 42px; }
.pagination-bar { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; background: #fafcfc; }.pagination-bar p { margin: 0; color: #82939c; font-size: .69rem; }.pagination-bar nav { display: flex; align-items: center; gap: 4px; }.pagination-bar nav a, .pagination-bar nav span { min-width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px; color: #58717e; font-size: .68rem; text-decoration: none; }.pagination-bar nav a:hover { background: #e9f2f2; }.pagination-bar nav a.is-current { color: #fff; background: var(--admin-teal); }.pagination-bar nav a.is-disabled { opacity: .35; pointer-events: none; }.empty-state { padding: 50px 20px; text-align: center; }.empty-state > span { display: block; color: #6b9299; font-size: 2rem; }.empty-state strong { display: block; margin-top: 8px; }.empty-state p { margin: 4px 0 0; color: #84969e; font-size: .75rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }.sidebar-backdrop { display: none; }
@media (max-width: 1100px) { .metric-grid { grid-template-columns: repeat(2, 1fr); }.admin-shell { grid-template-columns: 220px minmax(0,1fr); }.people-filters { flex-wrap: wrap; }.search-field { flex-basis: 100%; }.dashboard-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .admin-shell { display: block; }.admin-sidebar { position: fixed; left: 0; width: 260px; transform: translateX(-105%); transition: transform .25s ease; }.sidebar-is-open .admin-sidebar { transform: translateX(0); }.sidebar-close, .sidebar-toggle { display: grid; place-items: center; }.sidebar-close { width: 30px; height: 30px; border-radius: 8px; color: #c5d7dc; background: rgba(255,255,255,.08); font-size: 1.2rem; }.sidebar-toggle { width: 38px; height: 38px; border-radius: 9px; color: #264756; background: #edf3f4; font-size: 1rem; }.sidebar-backdrop { position: fixed; inset: 0; z-index: 20; border: 0; background: rgba(4,20,31,.5); }.sidebar-is-open .sidebar-backdrop { display: block; }.admin-menu-open { overflow: hidden; }.topbar-context span { display: none; }.topbar-actions a { display: none; }.admin-topbar { padding: 0 18px; }.admin-main { padding: 24px 16px 40px; }.page-heading { align-items: flex-start; flex-direction: column; }.primary-action { width: 100%; justify-content: space-between; }.metric-grid { grid-template-columns: 1fr; }.metric-card { min-height: 120px; }.donut-layout { flex-direction: column; }.people-heading { flex-direction: row; align-items: flex-end; }.people-filters { align-items: stretch; }.search-field { min-width: 100%; }.people-filters label:not(.search-field) { flex: 1; }.people-filters select { width: 100%; min-width: 0; }.pagination-bar { align-items: flex-start; flex-direction: column; }.pagination-bar nav { max-width: 100%; flex-wrap: wrap; } }

/* Edição de Pessoas e vínculos */
.table-actions { width: 5%; text-align: right; }.table-actions a { padding: 7px 10px; border: 1px solid #c9d9dc; border-radius: 7px; color: #176f77; font-size: .66rem; font-weight: 750; text-decoration: none; }.table-actions a:hover { border-color: #78b5b7; background: #eef8f7; }
.admin-alert { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 20px; padding: 13px 16px; border: 1px solid; border-radius: 10px; font-size: .78rem; }.admin-alert.is-success { color: #23684e; border-color: #b9ddcc; background: #edf9f3; }.admin-alert.is-error { display: block; color: #833c35; border-color: #ecc8c3; background: #fff4f2; }.admin-alert ul { margin: 7px 0 0; padding-left: 20px; }.admin-alert li + li { margin-top: 4px; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; color: #8a9ba3; font-size: .7rem; }.breadcrumbs a { color: #18727a; font-weight: 700; text-decoration: none; }.edit-heading { align-items: center; }.secondary-action { padding: 9px 12px; border: 1px solid #cbd9dc; border-radius: 8px; color: #466472; background: #fff; font-size: .72rem; font-weight: 700; text-decoration: none; }
.person-edit-form { display: grid; grid-template-columns: minmax(0, 3fr) minmax(280px, 1fr); gap: 18px; align-items: start; }.edit-grid { display: contents; }.edit-grid > .form-panel { grid-column: 1; grid-row: 1; }.form-panel { padding: clamp(22px, 3vw, 30px); }.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }.form-grid label > span:first-child { display: block; margin-bottom: 7px; color: #425e6b; font-size: .72rem; font-weight: 750; }.form-grid label > small { display: block; margin-top: 6px; color: #8b9ba3; font-size: .64rem; }.field-wide { grid-column: 1 / -1; }
.toggle-field { display: flex; align-items: center; gap: 11px; align-self: end; min-height: 43px; padding: 8px 11px; border: 1px solid #dbe5e7; border-radius: 9px; background: #f8fbfb; cursor: pointer; }.toggle-field input { width: 17px; height: 17px; accent-color: var(--admin-teal); }.toggle-field span { margin: 0 !important; }.toggle-field strong, .toggle-field small { display: block; }.toggle-field strong { font-size: .71rem; }.toggle-field small { margin-top: 2px; color: #82949c; font-size: .61rem; }
.edit-side { grid-column: 2; grid-row: 1 / span 4; display: grid; gap: 18px; align-self: start; }.edit-side .record-summary { order: -1; }.panel-help { margin: -8px 0 18px; color: #718590; font-size: .7rem; line-height: 1.55; }.role-options { display: grid; gap: 8px; }.role-option { display: grid; grid-template-columns: 17px 1fr 22px; align-items: center; gap: 10px; min-height: 52px; padding: 9px 10px; border: 1px solid #dce6e8; border-radius: 9px; cursor: pointer; transition: .15s ease; }.role-option:hover { border-color: #9bc7c8; background: #f8fbfb; }.role-option:has(input:checked) { border-color: #8cc5c3; background: #eef8f7; }.role-option input { width: 16px; height: 16px; accent-color: var(--admin-teal); }.role-option strong, .role-option small { display: block; }.role-option strong { color: #244553; font-size: .72rem; }.role-option small { margin-top: 3px; color: #83969e; font-size: .6rem; }.role-option > i { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; color: transparent; background: #edf2f3; font-size: .65rem; font-style: normal; }.role-option:has(input:checked) > i { color: #fff; background: var(--admin-teal); }
.record-summary { padding: 22px; }.record-summary h2 { margin: 0 0 15px; font-size: .9rem; }.record-summary > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #edf1f2; font-size: .7rem; }.record-summary > div span { color: #738792; }.record-summary > div strong { color: #2b4b59; }.record-summary p { margin: 14px 0 0; color: #8a9ba3; font-size: .64rem; line-height: 1.5; }
.form-actions { grid-column: 1 / -1; position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: flex-end; align-items: center; gap: 18px; margin: 4px -10px -20px; padding: 14px 18px; border: 1px solid #d8e3e6; border-radius: 12px; background: rgba(255,255,255,.95); box-shadow: 0 -7px 25px rgba(13,46,61,.07); backdrop-filter: blur(10px); }.form-actions a { color: #6c818c; font-size: .74rem; font-weight: 700; }.form-actions button { display: flex; align-items: center; gap: 25px; padding: 11px 16px; border: 0; border-radius: 9px; color: #fff; background: var(--admin-navy); font: inherit; font-size: .75rem; font-weight: 800; cursor: pointer; }.form-actions button:hover { background: #0b4054; }
@media (max-width: 980px) { .person-edit-form { grid-template-columns: 1fr; }.edit-grid > .form-panel, .related-panel, .edit-side { grid-column: 1; grid-row: auto; }.edit-side { grid-template-columns: repeat(2, minmax(0,1fr)); order: 5; }.edit-grid > .form-panel { order: 1; }.related-panel:nth-of-type(1) { order: 2; }.related-panel:nth-of-type(2) { order: 3; }.related-panel:nth-of-type(3) { order: 4; }.form-actions { order: 6; } }
@media (max-width: 650px) { .edit-side, .form-grid { grid-template-columns: 1fr; }.field-wide { grid-column: auto; }.edit-heading { align-items: flex-start; }.secondary-action { width: 100%; text-align: center; }.form-actions { justify-content: space-between; margin-inline: 0; }.people-table th:last-child, .people-table td:last-child { position: sticky; right: 0; background: #fff; } }

/* Coleções editáveis da Pessoa */
.related-panel { margin-top: 0; }.add-related { padding: 8px 11px; border: 1px solid #9bc9c8; border-radius: 8px; color: #126e75; background: #eef8f7; font: inherit; font-size: .68rem; font-weight: 800; cursor: pointer; }.add-related:hover { border-color: #4a9fa1; background: #e4f4f2; }.related-list { display: grid; gap: 12px; }.related-row { min-width: 0; display: grid; grid-template-columns: minmax(130px,.7fr) minmax(220px,1.4fr) repeat(3,minmax(130px,.7fr)) auto; align-items: end; gap: 12px; margin: 0; padding: 17px 14px 14px; border: 1px solid #dde7e9; border-radius: 11px; background: #fbfcfc; }.related-row legend { padding: 0 7px; color: #6d838d; font-size: .65rem; font-weight: 800; text-transform: uppercase; }.related-row label > span:first-child { display: block; margin-bottom: 6px; color: #536d79; font-size: .65rem; font-weight: 750; }.related-grow { min-width: 0; }.inline-check { min-height: 39px; display: flex; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid #d9e3e5; border-radius: 8px; background: #fff; cursor: pointer; }.inline-check span { margin: 0 !important; white-space: nowrap; }.inline-check input { width: 15px; height: 15px; accent-color: var(--admin-teal); }.contact-row { grid-template-columns: minmax(150px,.7fr) minmax(260px,1.7fr) auto auto; }.address-row { grid-template-columns: repeat(5,minmax(120px,1fr)); }.address-row .related-grow { grid-column: span 2; }.field-compact { max-width: 90px; }.remove-new-row { align-self: end; height: 39px; padding: 0 10px; border: 1px solid #ebc5c0; border-radius: 8px; color: #9b4e45; background: #fff5f3; font: inherit; font-size: .64rem; font-weight: 750; cursor: pointer; }.related-row.is-new { border-style: dashed; border-color: #93c7c6; background: #f5fbfa; }.related-empty { margin: 0; padding: 25px; border: 1px dashed #cfdddf; border-radius: 10px; color: #84969e; background: #fafcfc; font-size: .72rem; text-align: center; }
@media (max-width: 1250px) { .document-row { grid-template-columns: repeat(3,minmax(150px,1fr)); }.contact-row { grid-template-columns: repeat(2,minmax(180px,1fr)); }.address-row { grid-template-columns: repeat(3,minmax(150px,1fr)); } }
@media (max-width: 720px) { .document-row, .contact-row, .address-row { grid-template-columns: 1fr; }.address-row .related-grow { grid-column: auto; }.field-compact { max-width: none; }.related-panel { padding: 18px 14px; }.related-panel .panel-header { align-items: center; }.add-related { white-space: nowrap; } }

/* Configurações gerais */
.settings-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-bottom: 18px; }.settings-tabs a { padding: 14px 16px; border: 1px solid #d8e4e6; border-radius: 11px; color: #496674; background: #fff; text-decoration: none; }.settings-tabs span,.settings-tabs small { display: block; }.settings-tabs span { font-size: .78rem; font-weight: 800; }.settings-tabs small { margin-top: 4px; color: #8a9ba3; font-size: .64rem; }.settings-tabs a.is-active { color: #fff; border-color: #087d89; background: linear-gradient(135deg,#087d89,#116875); }.settings-tabs a.is-active small { color: #c6e6e4; }
.settings-layout { display: grid; grid-template-columns: minmax(0,3fr) minmax(270px,1fr); gap: 18px; align-items: start; }.settings-hint { color: #8799a1; font-size: .65rem; }.settings-list { display: grid; gap: 10px; }.setting-row { display: grid; grid-template-columns: minmax(170px,1.4fr) minmax(130px,.8fr) minmax(130px,.8fr) 80px auto auto; align-items: end; gap: 10px; padding: 14px; border: 1px solid #dfe8ea; border-radius: 10px; background: #fafcfc; }.setting-row label > span,.setting-usage > span,.settings-create-form label > span { display: block; margin-bottom: 6px; color: #627985; font-size: .63rem; font-weight: 800; text-transform: uppercase; }.setting-row label small { display: block; margin-top: 4px; color: #9a7429; font-size: .58rem; }.setting-usage { text-align: center; }.setting-usage strong,.setting-usage small { display: block; }.setting-usage strong { font-size: .9rem; }.setting-usage small { color: #8b9aa1; font-size: .58rem; }.setting-active { min-height: 39px; display: flex; align-items: center; gap: 6px; padding: 0 8px; border: 1px solid #d8e3e5; border-radius: 8px; background: #fff; }.setting-active span { margin: 0!important; text-transform: none!important; }.setting-row button,.settings-create-form button { height: 39px; padding: 0 14px; border: 0; border-radius: 8px; color: #fff; background: var(--admin-navy); font: inherit; font-size: .68rem; font-weight: 800; cursor: pointer; }.settings-create-panel { position: sticky; top: 90px; }.settings-create-form { display: grid; gap: 16px; }.settings-create-form label small { display: block; margin-top: 5px; color: #8799a1; font-size: .61rem; }
@media (max-width: 1200px) { .setting-row { grid-template-columns: repeat(3,minmax(140px,1fr)); }.settings-layout { grid-template-columns: 1fr; }.settings-create-panel { position: static; } }
@media (max-width: 700px) { .settings-tabs,.setting-row { grid-template-columns: 1fr; }.setting-usage { text-align: left; }.setting-usage strong,.setting-usage small { display: inline; }.setting-row button { width: 100%; } }

/* Catálogo de produtos de certificado */
.product-filters { flex-wrap: wrap; }.product-filters .search-field { flex-basis: 100%; }.product-filters select { min-width: 170px; }.product-table td { min-width: 130px; }.product-table td:first-child { min-width: 270px; }.product-detail { display: block; margin-top: 4px; color: #8799a1; font-size: .64rem; }.external-refs { display: grid; gap: 3px; color: #5c7580; font-size: .63rem; white-space: nowrap; }.review-pill { display: inline-block; padding: 4px 8px; border-radius: 99px; font-size: .64rem; font-weight: 750; }.review-pill.is-pending { color: #936323; background: #fff3dc; }.review-pill.is-done { color: #287756; background: #e9f7ef; }
.product-edit-form { display: grid; grid-template-columns: minmax(0,3fr) minmax(280px,1fr); gap: 18px; align-items: start; }.product-form-main,.product-form-side { display: grid; gap: 18px; }.product-rules { padding: 22px; }.product-rules h2 { margin: 0 0 12px; font-size: .86rem; }.product-rules ul { margin: 0; padding-left: 18px; color: #70858f; font-size: .68rem; line-height: 1.65; }.product-form-side .toggle-field { margin-top: 9px; }.product-edit-form .form-actions { grid-column: 1 / -1; }
@media (max-width: 980px) { .product-edit-form { grid-template-columns: 1fr; }.product-form-side { grid-template-columns: repeat(2,minmax(0,1fr)); }.product-edit-form .form-actions { grid-column: 1; } }
@media (max-width: 650px) { .product-form-side { grid-template-columns: 1fr; }.product-filters label:not(.search-field) { flex-basis: 100%; } }
.sales-table [data-column="venda"] { width: 1%; min-width: 105px; white-space: nowrap; }.sales-table [data-column="data"] { width: 1%; min-width: 115px; white-space: nowrap; }.sales-table [data-column="comprador"] { width: 27%; min-width: 210px; }.sales-table [data-column="produto"] { width: 25%; min-width: 190px; }.sales-table [data-column="estado"] { width: 1%; min-width: 125px; white-space: nowrap; }.sales-table [data-column="vencimento"] { width: 1%; min-width: 170px; white-space: nowrap; }.sales-table [data-column="valor"] { width: 1%; min-width: 145px; white-space: nowrap; }.product-table [data-column="configuracao"],.product-table [data-column="revisao"],.product-table [data-column="disponibilidade"] { width: 1%; white-space: nowrap; }.product-table [data-column="valor"] { width: 1%; min-width: 145px; white-space: nowrap; }.people-table [data-column="documento"],.people-table [data-column="situacao"] { width: 1%; white-space: nowrap; }.review-note { display: block; margin-top: 4px; color: #a06f26; font-size: .62rem; }.certificate-state { color: #55717d; font-size: .68rem; text-transform: capitalize; }.sale-detail-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; }.sale-detail-grid > :first-child { grid-row: span 2; }.detail-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-top: 22px; }.detail-fields span,.detail-fields strong { display: block; }.detail-fields span { color: #84969e; font-size: .66rem; }.detail-fields strong { margin-top: 5px; color: #234552; font-size: .82rem; }.history-list { display: grid; gap: 10px; }.history-list > div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid #edf1f2; font-size: .68rem; }.history-list span { color: #758a94; }.history-list strong { color: #294d5b; text-align: right; }.sale-occurrences { grid-column: 2; }
.financial-due { color: #a36726 !important; }.financial-paid { color: #287756 !important; }.admin-alert.is-warning { color: #885f1b; border-color: #eed9a9; background: #fff8e8; }
.heading-actions { display: flex; align-items: center; gap: 10px; }.heading-actions .primary-action { white-space: nowrap; }
@media (max-width: 850px) { .sale-detail-grid { grid-template-columns: 1fr; }.sale-detail-grid > :first-child,.sale-occurrences { grid-column: auto; grid-row: auto; } }.person-search-results{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:20;display:flex;flex-direction:column;overflow:hidden;border:1px solid #d7e3e9;border-radius:10px;background:#fff;box-shadow:0 14px 30px rgba(19,48,67,.16)}.form-grid label:has(.person-search){position:relative}.person-search-results button{display:block;width:100%;border:0;border-bottom:1px solid #edf2f5;background:#fff;color:#18354a;text-align:left;padding:.7rem .85rem;font-size:.9rem;cursor:pointer}.person-search-results button:last-child{border-bottom:0}.person-search-results button:hover,.person-search-results button:focus{background:#edf9f9;color:#007c82;outline:0}.person-search-status{padding:.75rem .85rem;color:#718593;font-size:.85rem}
.buyer-identification { margin: 18px 0 24px; padding: 18px; border: 1px solid #d8e5e7; border-radius: 11px; background: #f8fbfb; }.buyer-identification > label > span { display: block; margin-bottom: 7px; color: #425e6b; font-size: .72rem; font-weight: 750; }.buyer-identification > label > div { display: flex; gap: 8px; }.buyer-identification input { flex: 1; }.buyer-identification button { padding: 0 18px; border: 0; border-radius: 9px; color: #fff; background: var(--admin-teal); font: inherit; font-size: .72rem; font-weight: 800; cursor: pointer; }.buyer-identification button:disabled { opacity: .6; cursor: wait; }.buyer-identification small { display: block; margin-top: 6px; color: #82949c; font-size: .64rem; }.buyer-identification-result { min-height: 20px; margin-top: 11px; font-size: .72rem; }.buyer-identification-result.is-loading { color: #607983; }.buyer-identification-result.is-success { color: #287756; }.buyer-identification-result.is-warning { color: #92641f; }.buyer-identification-result.is-error { color: #9a4943; }.buyer-identification-result a { color: #087d89; font-weight: 800; }.participant-fields { padding-top: 3px; }
@media (max-width:650px) { .buyer-identification > label > div { align-items: stretch; flex-direction: column; }.buyer-identification button { min-height: 42px; } }

/* Montagem de pedidos e certificados */
.order-builder { display: grid; gap: 18px; }.order-step { min-width: 0; }.order-items { display: grid; gap: 12px; }.order-item { display: grid; grid-template-columns: minmax(260px, 2fr) minmax(100px, .45fr) minmax(140px, .65fr) auto; align-items: end; gap: 12px; margin: 0; padding: 17px 14px 14px; border: 1px solid #dce7e9; border-radius: 11px; background: #fbfcfc; }.order-item legend,.certificate-unit legend { padding: 0 7px; color: #607985; font-size: .65rem; font-weight: 800; text-transform: uppercase; }.order-item label > span,.certificate-unit label > span { display: block; margin-bottom: 6px; color: #536d79; font-size: .65rem; font-weight: 750; }.remove-order-item { height: 40px; padding: 0 11px; border: 1px solid #ebc5c0; border-radius: 8px; color: #984a43; background: #fff5f3; font: inherit; font-size: .65rem; font-weight: 750; cursor: pointer; }.remove-order-item:disabled { opacity: .45; cursor: not-allowed; }.assemble-order { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin: 18px 0 0 auto; padding: 11px 16px; border: 0; border-radius: 9px; color: #fff; background: var(--admin-teal); font: inherit; font-size: .74rem; font-weight: 800; cursor: pointer; }.assemble-order:hover { background: #086f79; }.certificate-units { display: grid; gap: 20px; }.result-total { display: flex; align-items: baseline; gap: 6px; color: #718590; font-size: .66rem; }.result-total strong { color: var(--admin-teal); font-size: 1.15rem; }.unit-group { padding-top: 3px; }.unit-group + .unit-group { padding-top: 19px; border-top: 1px solid #e5ecee; }.unit-group h3 { margin: 0 0 12px; color: #244a59; font-size: .82rem; }.unit-group h3 span { margin-left: 7px; color: #83959d; font-size: .62rem; font-weight: 650; }.unit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }.certificate-unit { min-width: 0; display: grid; gap: 13px; margin: 0; padding: 16px 14px 14px; border: 1px solid #dce7e9; border-radius: 11px; background: #f9fcfc; }.certificate-unit label { position: relative; min-width: 0; }.order-actions { margin-top: 0; }
.participant-identification { min-width: 0; padding: 12px; border: 1px solid #dce7e9; border-radius: 9px; background: #fff; }.participant-document-row { display: flex; gap: 7px; }.participant-document-row input { flex: 1; }.participant-document-row button { padding: 0 12px; border: 0; border-radius: 8px; color: #fff; background: var(--admin-teal); font: inherit; font-size: .66rem; font-weight: 800; cursor: pointer; }.participant-document-row button:disabled { opacity: .6; cursor: wait; }.participant-identification .buyer-identification-result { min-height: 0; margin-top: 8px; }.participant-selected { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid #e8eff0; color: #718590; font-size: 16px; }.participant-selected strong { color: #2d5764; }
.person-new-document { display: flex; gap: 8px; }.person-new-document input { min-width: 0; flex: 1; }.person-new-document button { padding: 0 18px; border: 0; border-radius: 9px; color: #fff; background: var(--admin-teal); font: inherit; font-size: .72rem; font-weight: 800; cursor: pointer; }.person-new-document button:disabled { opacity: .6; cursor: wait; }.person-new-manual { padding-top: 8px; border-top: 1px solid #e5edef; }
.person-new-section-title { margin: 6px 0 -4px; padding-top: 14px; border-top: 1px solid #e5edef; color: #244a59; font-size: .78rem; }
.schedule-calendar { padding: 16px; border: 1px solid #d9e5e8; border-radius: 12px; background: #fbfdfd; }.schedule-calendar > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }.schedule-calendar > header strong { color: #193e4d; text-transform: capitalize; }.schedule-calendar > header button { width: 34px; height: 34px; border: 1px solid #cbdadd; border-radius: 8px; color: var(--admin-teal); background: #fff; cursor: pointer; }.schedule-calendar > header button:disabled { opacity: .35; cursor: not-allowed; }.schedule-calendar-week,.schedule-calendar-days { display: grid; grid-template-columns: repeat(7,minmax(34px,1fr)); gap: 6px; }.schedule-calendar-week span { padding: 5px; color: #7d919a; font-size: .63rem; font-weight: 750; text-align: center; }.schedule-calendar-days > span { min-height: 38px; }.schedule-calendar-days button { min-height: 38px; border: 1px solid #d7e3e5; border-radius: 8px; color: #315563; background: #fff; cursor: pointer; }.schedule-calendar-days button:hover:not(:disabled),.schedule-calendar-days button.is-selected { color: #fff; border-color: var(--admin-teal); background: var(--admin-teal); }.schedule-calendar-days button:disabled { color: #acb8bd; border-color: #edf1f2; background: #f2f5f5; cursor: not-allowed; text-decoration: line-through; }.schedule-time-slots { margin-top: 16px; padding-top: 14px; border-top: 1px solid #e1e9eb; }.schedule-time-slots > strong { color: #365b68; font-size: .75rem; }.schedule-time-slots > p { margin: 0; color: #82959d; font-size: .72rem; }.schedule-time-slots > div { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }.schedule-time-slots button { min-width: 62px; padding: 8px 10px; border: 1px solid #bcd4d6; border-radius: 8px; color: #176e76; background: #fff; font-weight: 750; cursor: pointer; }.schedule-time-slots button:hover,.schedule-time-slots button.is-selected { color: #fff; background: var(--admin-teal); }
.schedule-time-slots button:disabled { color: #a7b4b9; border-color: #e3e9ea; background: #f1f4f4; cursor: not-allowed; text-decoration: line-through; }.schedule-time-slots button:hover:not(:disabled) { color: #fff; background: var(--admin-teal); }
.schedule-step-tabs { grid-template-columns: repeat(3,minmax(0,1fr)); margin-bottom: 18px; }.schedule-step-tabs + [hidden],[data-schedule-panel][hidden] { display: none; }
.schedule-list-table [data-column="agendamento"],.schedule-list-table [data-column="duracao"],.schedule-list-table [data-column="certificados"],.schedule-list-table [data-column="status"] { width: 1%; white-space: nowrap; }.schedule-list-table [data-column="data"] { width: 1%; min-width: 150px; white-space: nowrap; }.schedule-list-table [data-column="agr"] { width: auto; min-width: 220px; }
.order-builder.is-tabbed [data-order-panel][hidden] { display: none; }.order-feedback { display: grid; grid-template-columns: 28px 1fr 28px; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid #e9d19b; border-radius: 10px; color: #805a18; background: #fff8e8; box-shadow: 0 8px 22px rgba(92,67,18,.08); }.order-feedback[hidden] { display: none; }.order-feedback > span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: #fff; background: #c58a25; font-size: .72rem; font-weight: 900; }.order-feedback p { margin: 0; font-size: .72rem; font-weight: 700; }.order-feedback button { border: 0; color: #9a783b; background: transparent; font-size: 1.1rem; cursor: pointer; }.order-feedback:focus { outline: 0; box-shadow: 0 0 0 3px rgba(197,138,37,.13); }.order-step-tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); overflow: hidden; border: 1px solid #d5e2e5; border-radius: 12px; background: #fff; box-shadow: 0 8px 25px rgba(13,46,61,.05); }.order-step-tabs button { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 54px; padding: 9px 12px; border: 0; border-right: 1px solid #e3ebed; color: #647b86; background: #fff; font: inherit; font-size: .72rem; font-weight: 800; cursor: pointer; transition: .15s ease; }.order-step-tabs button:last-child { border-right: 0; }.order-step-tabs button span { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; color: #69818c; background: #edf3f4; font-size: .65rem; }.order-step-tabs button:hover:not(:disabled) { color: #087d89; background: #f4fbfa; }.order-step-tabs button[aria-selected="true"] { color: #fff; background: linear-gradient(135deg,#087d89,#116875); }.order-step-tabs button[aria-selected="true"] span { color: #087d89; background: #fff; }.order-step-tabs button:disabled { color: #a8b5ba; background: #f5f7f8; cursor: not-allowed; }.order-panel-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin: 24px -30px -30px; padding: 14px 30px; border-top: 1px solid #e2eaec; background: #fbfcfc; }.order-panel-actions > a { margin-right: auto; color: #70858f; font-size: .72rem; font-weight: 750; }.order-panel-actions button { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 40px; padding: 0 15px; border: 0; border-radius: 8px; color: #fff; background: var(--admin-navy); font: inherit; font-size: .72rem; font-weight: 800; cursor: pointer; }.order-panel-actions button:hover { background: #0b4054; }.order-panel-actions button.is-secondary { color: #456370; border: 1px solid #cad9dc; background: #fff; }.order-panel-actions button.is-secondary:hover { color: #087d89; border-color: #8fc5c4; background: #f3faf9; }.order-review-summary { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 14px; margin-bottom: 22px; }.order-review-summary > section { padding: 16px; border: 1px solid #dce7e9; border-radius: 10px; background: #f9fcfc; }.order-review-summary h3,.order-review-heading { margin: 0 0 12px; color: #244a59; font-size: .8rem; }.order-review-summary section > div { display: flex; justify-content: space-between; gap: 15px; padding: 7px 0; border-bottom: 1px solid #e7edef; }.order-review-summary section > div span,.order-review-summary section > div strong { font-size: .66rem; }.order-review-summary section > div span { color: #758a94; }.order-review-summary section > div strong { color: #294d5b; text-align: right; }.order-review-commercial article { padding: 10px 0; border-bottom: 1px solid #e2eaec; }.order-review-commercial article h4 { margin: 0 0 7px; color: #315965; font-size: .7rem; }.order-review-commercial article > div { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 3px 0; }.order-review-commercial article span,.order-review-commercial article strong { font-size: .64rem; }.order-review-commercial article span { color: #7a8d96; }.order-review-commercial article strong { color: #31515e; }.order-review-commercial .is-subtotal strong { color: #087d89; }.order-review-totals { margin-top: 10px; padding-top: 7px; }.order-review-totals .is-total { margin-top: 5px; padding-top: 9px; border-top: 1px solid #cadbdd; }.order-review-totals .is-total strong { color: #087d89; font-size: .82rem; }.order-review-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }.order-review-list article { display: grid; gap: 7px; padding: 15px; border: 1px solid #dce7e9; border-radius: 10px; background: #f9fcfc; }.order-review-list article strong { color: #244a59; font-size: .75rem; }.order-review-list article span { color: #6d838d; font-size: .66rem; line-height: 1.4; }
@media (max-width: 900px) { .order-item { grid-template-columns: minmax(220px, 2fr) repeat(2, minmax(110px, 1fr)); }.remove-order-item { grid-column: 1 / -1; justify-self: end; }.unit-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .order-step-tabs { display: flex; overflow-x: auto; }.order-step-tabs button { min-width: 125px; }.order-item { grid-template-columns: 1fr; }.remove-order-item,.assemble-order { width: 100%; justify-self: stretch; }.order-step { padding: 19px 14px; }.order-step .panel-header { align-items: flex-start; gap: 10px; }.certificate-unit { padding-inline: 11px; }.order-panel-actions { align-items: stretch; flex-direction: column-reverse; margin: 20px -14px -19px; padding: 13px 14px; }.order-panel-actions button { width: 100%; }.order-panel-actions > a { margin: 0; text-align: center; }.order-review-summary,.order-review-list { grid-template-columns: 1fr; } }

/* Seleção inicial de agendamentos */
.schedule-draft { margin-bottom: 18px; padding: 24px; border-color: #a9d4d1; background: #f4fbfa; }.schedule-draft > p { margin: 10px 0; color: #55717d; font-size: .72rem; }.schedule-draft-items { display: flex; flex-wrap: wrap; gap: 7px; }.schedule-draft-items span { padding: 6px 9px; border: 1px solid #cfe3e2; border-radius: 7px; color: #315c67; background: #fff; font-size: .65rem; }.schedule-panel .people-filters { justify-content: flex-start; }.schedule-table .schedule-check { width: 1%; min-width: 48px; text-align: center; }.schedule-check input { width: 17px; height: 17px; accent-color: var(--admin-teal); cursor: pointer; }.schedule-check input:disabled { cursor: not-allowed; opacity: .35; }.schedule-table tr.is-selected td { background: #eef9f7; }.schedule-table td { min-width: 130px; }.schedule-table td:nth-child(2),.schedule-table td:nth-child(3) { width: 1%; min-width: 90px; white-space: nowrap; }.schedule-selection-bar { position: sticky; bottom: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 18px; border-top: 1px solid #d8e5e7; background: rgba(255,255,255,.96); backdrop-filter: blur(9px); }.schedule-selection-bar strong,.schedule-selection-bar span { display: block; }.schedule-selection-bar strong { color: #244a59; font-size: .74rem; }.schedule-selection-bar span { margin-top: 3px; color: #7a8f98; font-size: .63rem; }.schedule-selection-bar button { display: flex; align-items: center; gap: 20px; padding: 10px 15px; border: 0; border-radius: 8px; color: #fff; background: var(--admin-navy); font: inherit; font-size: .72rem; font-weight: 800; cursor: pointer; }.schedule-selection-bar button:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 650px) { .schedule-selection-bar { align-items: stretch; flex-direction: column; }.schedule-selection-bar button { justify-content: space-between; width: 100%; } }

/* Dashboard operacional */
.dashboard-heading { margin-bottom: 24px; }.dashboard-operational-metrics .metric-card { position: relative; overflow: hidden; }.dashboard-operational-metrics .metric-card::after { content: ""; position: absolute; right: -24px; bottom: -34px; width: 92px; height: 92px; border-radius: 50%; background: rgba(0,139,145,.045); }.dashboard-operational-metrics .metric-featured { color: #fff; border-color: #087d89; background: linear-gradient(145deg,#087d89,#0b5c6d); }.dashboard-operational-metrics .metric-featured span,.dashboard-operational-metrics .metric-featured small { color: #d8f1f0; }.dashboard-operational-metrics .metric-featured strong { color: #fff; }.dashboard-operational-metrics .metric-featured .metric-icon { color: #fff; background: rgba(255,255,255,.14); }
.dashboard-operations { grid-template-columns: minmax(0,1.12fr) minmax(360px,.88fr); }.dashboard-next-panel { grid-row: span 1; }.dashboard-timeline,.dashboard-alert-list,.dashboard-workload { display: grid; gap: 8px; }.dashboard-timeline > a { display: grid; grid-template-columns: 58px minmax(0,1fr) auto; align-items: center; gap: 13px; padding: 11px 12px; border: 1px solid #e1eaec; border-radius: 10px; color: inherit; text-decoration: none; transition: .15s ease; }.dashboard-timeline > a:hover { border-color: #9bcac8; background: #f6fbfa; transform: translateX(2px); }.dashboard-timeline time { color: #087d89; font-size: .9rem; font-weight: 850; text-align: center; }.dashboard-timeline time small,.dashboard-timeline span small,.dashboard-alert-list span small,.dashboard-workload span small { display: block; margin-top: 3px; color: #82959d; font-size: .63rem; font-weight: 600; }.dashboard-timeline span strong,.dashboard-alert-list span strong,.dashboard-workload span strong { display: block; overflow: hidden; color: #294d5b; font-size: .71rem; text-overflow: ellipsis; white-space: nowrap; }.dashboard-timeline > a > b { color: #087d89; }
.dashboard-alert-list > a { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 9px 3px; border-bottom: 1px solid #e8eef0; color: inherit; text-decoration: none; }.dashboard-alert-list > a:last-child { border-bottom: 0; }.dashboard-alert-list > a:hover strong { color: #087d89; }.dashboard-alert-list i { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; font-size: .7rem; font-style: normal; font-weight: 900; }.dashboard-alert-list i.is-warning { color: #966518; background: #fff3d8; }.dashboard-alert-list i.is-danger { color: #a33e43; background: #fce9e9; }.dashboard-alert-list > a > b { min-width: 28px; color: #244a59; font-size: .85rem; text-align: right; }
.dashboard-pipeline .bar-track i { background: linear-gradient(90deg,#0a8790,#42b6a7); }.dashboard-workload > div { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 10px 11px; border-radius: 9px; background: #f6f9fa; }.dashboard-workload > div > b { display: grid; place-items: center; min-width: 31px; height: 31px; border-radius: 9px; color: #087d89; background: #e3f3f1; font-size: .78rem; }
.expiration-radar { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }.expiration-radar div { padding: 18px 8px; border: 1px solid #deeaeb; border-radius: 12px; background: #f8fbfb; text-align: center; }.expiration-radar div.is-urgent { border-color: #efc8c8; background: #fff5f5; }.expiration-radar strong,.expiration-radar span { display: block; }.expiration-radar strong { color: #0b6672; font-size: 1.5rem; }.expiration-radar .is-urgent strong { color: #b54a50; }.expiration-radar span { margin-top: 4px; color: #82959d; font-size: .65rem; font-weight: 750; }.dashboard-expiration-panel > p { margin: 14px 0 0; color: #748a93; font-size: .66rem; line-height: 1.55; }
.dashboard-sales-summary { display: grid; grid-template-columns: repeat(2,1fr); gap: 9px; }.dashboard-sales-summary > div { padding: 13px; border-radius: 10px; background: #f5f9f9; }.dashboard-sales-summary span,.dashboard-sales-summary strong { display: block; }.dashboard-sales-summary span { color: #80939b; font-size: .63rem; font-weight: 700; }.dashboard-sales-summary strong { margin-top: 5px; color: #284e5b; font-size: .88rem; }.dashboard-sales-summary .is-total { background: #e5f4f2; }.dashboard-sales-summary .is-total strong { color: #087d89; }
.dashboard-secondary { margin-top: 28px; padding-top: 26px; border-top: 1px solid #d9e4e7; }.dashboard-secondary > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 17px; }.dashboard-secondary h2 { margin: 3px 0 0; color: #173e4e; font-size: 1.25rem; }.dashboard-secondary > header > a { color: #087d89; font-size: .71rem; font-weight: 800; text-decoration: none; }
@media (max-width: 1100px) { .dashboard-operations { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .dashboard-timeline > a { grid-template-columns: 48px minmax(0,1fr) auto; padding-inline: 8px; }.dashboard-sales-summary { grid-template-columns: 1fr; }.dashboard-secondary > header { align-items: flex-start; flex-direction: column; } }

/* Perfis de acesso */
.access-profile-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }.access-profile-card { display: flex; flex-direction: column; gap: 16px; }.access-profile-card.is-disabled { background: #f8fafb; }.access-profile-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }.access-profile-card h2 { margin: 8px 0 0; color: #173e4e; font-size: 1.08rem; }.access-profile-card > p { margin: 0; color: #69808a; font-size: .72rem; line-height: 1.55; }.access-profile-card dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 0; overflow: hidden; border: 1px solid #dfe9eb; border-radius: 10px; }.access-profile-card dl > div { padding: 11px; border-right: 1px solid #e4ecee; }.access-profile-card dl > div:last-child { border-right: 0; }.access-profile-card dt { color: #84969d; font-size: .58rem; font-weight: 750; text-transform: uppercase; }.access-profile-card dd { margin: 5px 0 0; color: #294f5d; font-size: .72rem; font-weight: 800; }.access-permissions { padding: 13px 14px; border-radius: 10px; background: #f4f9f9; }.access-permissions > strong { color: #315966; font-size: .66rem; }.access-permissions ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 9px 0 0; padding: 0; list-style: none; }.access-permissions li { padding: 5px 7px; border: 1px solid #d5e6e5; border-radius: 6px; color: #47707a; background: #fff; font-size: .59rem; font-weight: 700; }.access-profile-users { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.access-profile-card form { display: grid; gap: 12px; margin-top: auto; padding-top: 15px; border-top: 1px solid #e1e9eb; }.access-profile-card form > label:not(.toggle-field) > span { display: block; margin-bottom: 6px; color: #536d79; font-size: .65rem; font-weight: 750; }.access-profile-card form footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.access-profile-card form footer a { color: #087d89; font-size: .68rem; font-weight: 800; text-decoration: none; }.access-profile-card form footer button { padding: 9px 13px; border: 0; border-radius: 8px; color: #fff; background: var(--admin-navy); font: inherit; font-size: .68rem; font-weight: 800; cursor: pointer; }.access-profile-card form footer button:hover { background: #0b4054; }
@media (max-width: 1000px) { .access-profile-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .access-profile-card dl { grid-template-columns: 1fr; }.access-profile-card dl > div { border-right: 0; border-bottom: 1px solid #e4ecee; }.access-profile-card dl > div:last-child { border-bottom: 0; }.heading-actions { align-items: stretch; flex-direction: column; width: 100%; }.heading-actions .result-total { justify-content: center; } }

/* Relatório de renovações: densidade e hierarquia da listagem de vendas. */
.renewal-filter-help { padding: 10px 20px; border-bottom: 1px solid #e1e8ea; color: #758a94; font-size: .7rem; }
.renewal-filter-help summary { cursor: pointer; }
.renewal-filter-help summary span { margin-left: 10px; color: #087d89; font-weight: 700; }
.renewal-filter-help p { margin: 10px 0 2px; max-width: 850px; line-height: 1.6; }
.renewal-table td { padding: 13px 18px; }
.renewal-table [data-column="venda"] { min-width: 88px; white-space: nowrap; }
.renewal-table [data-column="titular"] { min-width: 220px; width: 26%; }
.renewal-table [data-column="produto"] { min-width: 175px; width: 20%; }
.renewal-table [data-column="responsavel"] { min-width: 190px; }
.renewal-table [data-column="vencimento"], .renewal-table [data-column="inicio"], .renewal-table [data-column="dias"], .renewal-table [data-column="estado"] { white-space: nowrap; }
.renewal-table [data-column="email"] { min-width: 190px; }
.renewal-table [data-column="telefone"] { min-width: 165px; }
.renewal-sale-link, .renewal-sale-link:visited { color: #173747; font-weight: 800; text-decoration: none; }
.renewal-sale-link:hover { color: #087d89; text-decoration: underline; }
.renewal-whatsapp, .renewal-whatsapp:visited { display: inline-flex; align-items: center; gap: 8px; color: #187748; text-decoration: none; white-space: nowrap; font-weight: 700; }
.renewal-whatsapp svg { width: 21px; height: 21px; flex-shrink: 0; }
.renewal-whatsapp small { display: block; margin-top: 3px; font-size: .62rem; font-weight: 500; color: #688478; }
.renewal-whatsapp:hover { color: #105832; text-decoration: underline; }
.renewal-whatsapp:focus-visible { outline: 2px solid #187748; outline-offset: 4px; border-radius: 4px; }
@media (max-width: 650px) { .renewal-table th:last-child, .renewal-table td:last-child { position: static; } }
.form-withdraw {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
}

.review-content {
    display: flex;
    align-items: center;
    gap: 24px;
}

.review-text {
    flex: 1;
}

.review-qrcode {
    flex: 0 0 200px;
}

.review-qrcode img {
    display: block;
    width: 200px;
    height: 200px;
}

.form-withdraw label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.form-withdraw input {
    width: 100%;
    box-sizing: border-box;
}

.form-withdraw p {
    margin: 0;
}

/* Inputs com 25% da largura */
.form-withdraw.input-25 input:not([type="hidden"]) {
    width: 50%;
}
.form-withdraw p.text-danger {
    color: #dc3545;
    font-weight: 600;
}

@media (max-width: 650px) {
    .form-withdraw.input-25 input:not([type="hidden"]) {
        width: 100%;
    }
}

/* Ações por registro: base única para todas as listagens administrativas.
   O painel aberto é movido para o body para não ser cortado pela rolagem da tabela. */
.admin-body .row-actions-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid #c9d9dc;
    border-radius: 8px;
    color: #176f77;
    background: #fff;
    font: inherit;
    font-size: .72rem;
    font-weight: 750;
    white-space: nowrap;
    cursor: pointer;
}
.admin-body .row-actions-trigger:hover,
.admin-body .row-actions-trigger[aria-expanded="true"] { border-color: #78b5b7; background: #eef8f7; }
.admin-body .row-actions-trigger:focus-visible,
.admin-body .row-actions-panel :is(a, button):focus-visible { outline: 2px solid var(--admin-teal); outline-offset: 2px; }
.admin-body .row-actions-panel {
    position: fixed;
    z-index: 1000;
    width: min(260px, calc(100vw - 16px));
    margin: 0;
    padding: 6px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid #d4e1e4;
    border-radius: 10px;
    color: var(--admin-ink);
    background: #fff;
    box-shadow: 0 14px 32px rgba(9,38,52,.16);
    text-align: left;
}
.admin-body .row-actions-panel[hidden] { display: none; }
.admin-body .row-actions-panel form { margin: 0; }
.admin-body .row-actions-panel :is(a, button) {
    display: block;
    width: 100%;
    min-height: 40px;
    padding: 10px 12px;
    border: 0;
    border-radius: 6px;
    color: #315563;
    background: transparent;
    font: inherit;
    font-size: .78rem;
    font-weight: 650;
    line-height: 1.4;
    text-align: left;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
}
.admin-body .row-actions-panel :is(a, button):hover { color: #0f6972; background: #edf7f6; }
.admin-body .row-actions-panel [data-action-danger] {
    margin-top: 5px;
    border-top: 1px solid #ecd7d3;
    border-radius: 0 0 6px 6px;
    color: #9f2f2f;
}
.admin-body .row-actions-panel [data-action-danger]:hover { color: #812626; background: #fff1ef; }
.admin-body .row-actions-panel :is(:disabled, [aria-disabled="true"]) { opacity: .55; cursor: not-allowed; }
.admin-body .table-actions > .row-actions-trigger ~ .muted { display: block; margin-top: 6px; }

/* Informações da retirada pública de certificados. */
.withdraw-summary { margin: 1.5rem 0; padding: 1rem; border: 1px solid var(--line, #d6e3e9); border-radius: 10px; }
.withdraw-summary dl { margin: 0; }
.withdraw-summary dt { font-weight: 700; margin-top: .75rem; }
.withdraw-summary dd { margin: .25rem 0 0; overflow-wrap: anywhere; }
[data-withdraw-review] img { display: block; max-width: 100%; height: auto; }
[data-withdraw-form][hidden], [data-withdraw-review][hidden], [data-withdraw-error][hidden] { display: none; }

/* Abas de consulta e edição com navegação livre. */
.free-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.free-tabs button { flex: 1 1 180px; padding: 14px 18px; border: 1px solid #cbdde5; border-radius: 8px; background: #fff; color: #36566a; font: inherit; font-weight: 700; cursor: pointer; }
.free-tabs button[aria-selected="true"] { background: #007f8c; border-color: #007f8c; color: #fff; }
.free-tabs button:focus-visible { outline: 3px solid #00bfb3; outline-offset: 3px; }
.free-tabs[hidden], [data-free-panel][hidden] { display: none; }

/* Preserva espaços da senha consultada no detalhe da venda. */
.admin-body .certificate-password { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Quadro societário: composição dos vínculos cadastrais. */
[data-roster] { grid-column: 1 / -1; }
.roster-row { grid-template-columns: minmax(180px,1fr) auto minmax(180px,1fr) auto; }
.roster-row.is-existing { grid-template-columns: minmax(0,1fr) auto; align-items: center; padding: 10px 14px; }
.roster-summary { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr) minmax(0,1fr); align-items: center; gap: 8px 20px; overflow-wrap: anywhere; }
[data-roster][hidden] { display: none; }
@media (max-width: 720px) { .roster-row { grid-template-columns: 1fr; }.roster-row.is-existing { grid-template-columns: minmax(0,1fr) auto; }.roster-summary { grid-template-columns: 1fr; gap: 4px; } }

[data-company-responsible] .inline-check span { white-space: normal; }

/* Atendimento reutiliza cartões e campos do detalhe de venda. */
.intake-layout { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: 18px; align-items: start; }
.intake-stack { display: grid; gap: 18px; min-width: 0; }
.intake-layout .detail-fields strong { overflow-wrap: anywhere; }
.intake-note { margin-top: 22px; color: #758a94; font-size: .7rem; line-height: 1.6; }
.intake-pause { margin-bottom: 18px; padding: 12px 14px; border-left: 3px solid #c39339; background: #fff8eb; border-radius: 0 8px 8px 0; font-size: .75rem; }
.intake-pause p { margin: 5px 0 0; }
.admin-body .intake-control { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; font-size: .75rem; }
.intake-control > p { margin: 0; color: #627985; line-height: 1.6; }
.intake-control > label { display: grid; gap: 6px; font-weight: 650; }
.intake-control > .intake-check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
.intake-check input { flex: 0 0 auto; margin-top: 4px; accent-color: var(--admin-teal); }
.intake-control .form-actions { position: static; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; backdrop-filter: none; }
.intake-control .form-actions button { min-height: 44px; justify-content: center; box-shadow: 0 5px 14px rgba(13,46,61,.12); }
.intake-control .form-actions button:focus-visible { outline: 3px solid var(--admin-teal); outline-offset: 3px; }
.intake-history > p, .intake-history article, .intake-diagnostic { font-size: .75rem; line-height: 1.6; }
.intake-history article { padding: 14px 0; border-bottom: 1px solid #edf1f2; overflow-wrap: anywhere; }
.intake-history article p { margin: 8px 0; }
.intake-diagnostic summary { color: #526c79; font-weight: 700; cursor: pointer; }
@media (max-width: 850px) { .intake-layout { grid-template-columns: 1fr; } }
@media (max-width: 550px) { .intake-layout .detail-fields { grid-template-columns: 1fr; }.intake-control .form-actions button { width: 100%; } }

/* Catálogo de relações: cartões compactos, sem rodapés flutuantes por formulário. */
.relation-settings-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; align-items: start; }
.relation-setting-card.form-panel { min-width: 0; padding: 18px; }
.relation-setting-card .panel-header { margin-bottom: 14px; }
.relation-setting-card .panel-header h2 { font-size: .9rem; overflow-wrap: anywhere; }
.relation-setting-card .form-grid { grid-template-columns: minmax(0,1fr); gap: 10px; }
.relation-setting-card .form-grid > label { display: grid; gap: 4px; font-size: .75rem; }
.relation-setting-card .form-grid > label:has(input[type="checkbox"]) { display: flex; align-items: center; gap: 8px; }
.relation-setting-card .form-actions { position: static; margin: 2px 0 0; padding: 0; border: 0; background: none; box-shadow: none; backdrop-filter: none; }
.relation-setting-card .form-actions button { width: 100%; justify-content: center; }
@media (max-width: 1500px) { .relation-settings-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 1100px) { .relation-settings-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 650px) { .relation-settings-grid { grid-template-columns: minmax(0,1fr); } }

/* Detalhe da venda: resumo visível e operações agrupadas. */
.sale-workspace { display: grid; gap: 14px; }
.sale-workspace .page-heading, .sale-workspace .breadcrumbs { margin-bottom: 0; }
.sale-workspace .form-panel { padding: 18px; min-width: 0; }
.sale-workspace h2 { font-size: 1rem; margin: 0 0 12px; }
.sale-workspace h3 { font-size: .88rem; }
.sale-workspace summary { cursor: pointer; font-weight: 700; }
.sale-workspace details[open] > summary { margin-bottom: 14px; }
.sale-totals { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; padding: 20px; }
.sale-totals span, .sale-totals strong { display: block; }
.sale-totals span { color: #607b87; font-size: .72rem; margin-bottom: 6px; }
.sale-totals strong { color: #174a59; font-size: 1.12rem; }
.sale-workspace .sale-section-title { margin: 8px 0 0; }
.sale-payment-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; align-items: start; }
.sale-payment-columns > :only-child { grid-column: 1 / -1; }
.sale-charge { padding: 12px 0; border-top: 1px solid #edf1f2; }
.sale-charge summary h3 { display: inline; margin: 0; }
.sale-charge p { margin: 10px 0; font-size: .8rem; }
.sale-charge textarea { max-height: 100px; }
.sale-workspace .detail-fields { gap: 12px; margin-top: 14px; }
.sale-workspace .sale-print-options { margin: 0; }
@media (max-width: 850px) {
    .sale-payment-columns { grid-template-columns: 1fr; }
    .sale-totals { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
.sale-charge-state { display: inline-block; margin-left: 8px; color: #607b87; font-size: .72rem; font-weight: 400; }

/* Participantes da venda: nomes compactos sem quebra; demais colunas flexíveis. */
.sales-table :is(th, td) { padding-inline: 10px; }
.sales-table :is(th, td):is([data-column="comprador"], [data-column="titular"], [data-column="responsavel"], [data-column="pagador"]) { width: 18%; white-space: nowrap; }
.sales-table td:is([data-column="comprador"], [data-column="titular"], [data-column="responsavel"], [data-column="pagador"]) strong { display: block; min-width: 24ch; white-space: nowrap; }
.sales-table td[data-column="produto"] { overflow-wrap: anywhere; }
