:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #10233f;
  background: #eef3f7;
  --ink: #10233f;
  --muted: #66758a;
  --line: #d9e2ea;
  --panel: #ffffff;
  --brand: #0b8b76;
  --brand-dark: #076b5b;
  --brand-soft: #e4f7f2;
  --nav: #0d2747;
  --danger: #c43b35;
  --warning: #b77700;
  --success: #17824d;
  --shadow: 0 14px 40px rgba(16,35,63,.08);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button,input,select,textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at top right,#d9fff5,transparent 34%),linear-gradient(145deg,#eef5fa,#f8fbfd); }
.login-card { width: min(440px,100%); background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 32px; box-shadow: 0 28px 80px rgba(9,36,65,.16); }
.brand-row { display: flex; align-items: center; gap: 13px; margin-bottom: 24px; }
.brand-mark { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(135deg,#0ba88d,#0a7667); color: #fff; font-weight: 900; font-size: 1.3rem; }
.brand-row h1 { margin: 0; font-size: 1.55rem; }
.brand-row p { margin: 2px 0 0; color: var(--muted); }

.shell { min-height: 100vh; display: grid; grid-template-columns: 260px minmax(0,1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 22px 14px; background: var(--nav); color: #fff; overflow-y: auto; }
.sidebar .brand-row { padding: 0 8px 18px; margin: 0; }
.sidebar .brand-mark { width: 42px; height: 42px; }
.sidebar .brand-row h1 { font-size: 1.15rem; }
.sidebar .brand-row p { color: #b8c8db; font-size: .75rem; }
.nav-group { margin-top: 12px; }
.nav-title { padding: 8px 11px 5px; color: #82a0bf; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.nav-button { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 12px; padding: 11px 12px; margin: 3px 0; background: transparent; color: #dce7f3; text-align: left; }
.nav-button:hover { background: rgba(255,255,255,.07); }
.nav-button.active { background: #294663; color: #fff; box-shadow: inset 3px 0 0 #22d0ad; }
.nav-icon { width: 22px; text-align: center; }
.sidebar-footer { margin-top: auto; border-top: 1px solid rgba(255,255,255,.12); padding: 18px 10px 4px; color: #c9d7e5; }
.sidebar-footer strong { display: block; color: #fff; margin-bottom: 4px; }

.main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 10; min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 28px; background: rgba(248,251,253,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.topbar h2 { margin: 0; font-size: 1.2rem; }
.topbar p { margin: 3px 0 0; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-dark); font-weight: 900; }
.content { padding: 28px; max-width: 1660px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.page-head h1 { margin: 0 0 5px; font-size: 1.65rem; }
.page-actions { display: flex; gap: 9px; flex-wrap: wrap; }

.btn { border: 0; border-radius: 10px; padding: 10px 14px; font-weight: 800; background: #dfe7ee; color: var(--ink); }
.btn:hover { filter: brightness(.98); }
.btn:disabled { opacity: .55; cursor: wait; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-danger { background: #fff0ef; color: var(--danger); border: 1px solid #f1b7b3; }
.btn-warning { background: #fff4dc; color: #875900; }
.btn-small { padding: 7px 10px; font-size: .78rem; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.card-pad { padding: 18px; }
.summary-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
.summary-card { padding: 18px; }
.summary-card span { display: block; color: var(--muted); font-size: .82rem; margin-bottom: 8px; }
.summary-card strong { font-size: 1.75rem; }
.summary-card small { display: block; color: var(--muted); margin-top: 5px; }
.grid-2 { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(320px,.75fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.stack { display: grid; gap: 16px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-title h3 { margin: 0; font-size: 1rem; }

.toolbar { display: grid; grid-template-columns: minmax(220px,1fr) repeat(2,minmax(150px,220px)); gap: 10px; padding: 14px; margin-bottom: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .78rem; font-weight: 800; }
input,select,textarea { width: 100%; border: 1px solid #cbd7e2; border-radius: 10px; padding: 10px 11px; background: #fff; color: var(--ink); }
textarea { min-height: 104px; resize: vertical; }
input:focus,select:focus,textarea:focus { outline: 3px solid rgba(11,139,118,.13); border-color: var(--brand); }
.form-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.form-grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.form-grid.four { grid-template-columns: repeat(4,minmax(0,1fr)); }
.form-span-2 { grid-column: span 2; }
.form-span-3 { grid-column: span 3; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.check-row { display: flex; align-items: center; gap: 8px; }
.check-row input { width: auto; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th,td { padding: 12px 11px; border-bottom: 1px solid #e5ebf0; text-align: left; vertical-align: top; }
th { color: #5c6b7d; font-size: .73rem; text-transform: uppercase; letter-spacing: .03em; }
td { font-size: .86rem; }
tr:last-child td { border-bottom: 0; }
.action-row { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 5px 9px; font-size: .7rem; font-weight: 850; background: #edf1f5; color: #4b596a; }
.badge.success,.badge.active,.badge.connected,.badge.paid,.badge.completed,.badge.resolved { background: #ddf7e6; color: #126d3e; }
.badge.warning,.badge.grace,.badge.overdue,.badge.waiting_client,.badge.high { background: #fff0cc; color: #845700; }
.badge.danger,.badge.failed,.badge.critical,.badge.blocked,.badge.suspended,.badge.cancelled { background: #ffe4e1; color: #9d2d27; }
.badge.info,.badge.analysis,.badge.testing,.badge.configuring { background: #e2efff; color: #225f9c; }

.alert-list,.activity-list { display: grid; gap: 9px; }
.alert-item,.activity-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid #e8edf2; }
.alert-item:last-child,.activity-item:last-child { border-bottom: 0; }
.health-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.health-card { padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #f8fbfd; }
.health-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 6px; background: #9aa8b7; }
.health-dot.healthy { background: #1bb36f; }
.health-dot.warning { background: #e6a019; }
.health-dot.failed { background: #d74a43; }

.empty { padding: 28px; color: var(--muted); text-align: center; }
.toast { position: fixed; right: 18px; bottom: 18px; z-index: 100; max-width: 420px; padding: 13px 16px; border-radius: 12px; background: #10233f; color: #fff; box-shadow: 0 16px 44px rgba(0,0,0,.24); }
.toast.error { background: #9d2d27; }

.modal-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 18px; background: rgba(8,25,45,.58); backdrop-filter: blur(3px); }
.modal { width: min(980px,100%); max-height: 92vh; overflow-y: auto; background: #fff; border-radius: 20px; box-shadow: 0 28px 90px rgba(0,0,0,.3); }
.modal.small { width: min(620px,100%); }
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; }
.modal-body { padding: 20px; }
.modal-close { width: 38px; height: 38px; border: 0; border-radius: 50%; background: #edf2f6; color: var(--ink); font-size: 1.25rem; }
.tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.tab { border: 0; border-radius: 999px; padding: 8px 12px; background: #e8eef4; color: #34465c; font-weight: 800; }
.tab.active { background: var(--nav); color: #fff; }
.detail-section { margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.detail-section h3 { margin: 0 0 12px; }
.onboarding-list { display: grid; gap: 8px; }
.onboarding-item { display: grid; grid-template-columns: 1fr 180px; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.module-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.module-item { display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.module-item input { width: auto; }
.message-thread { display: grid; gap: 10px; margin: 14px 0; }
.message-bubble { padding: 11px 13px; border-radius: 12px; background: #f0f4f8; }
.message-bubble.internal { background: #fff3d8; }
.message-bubble strong { display: block; margin-bottom: 4px; }

.mobile-nav { display: none; }

@media (max-width: 1200px) {
  .summary-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .form-grid.four { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .content { padding: 18px 16px 90px; }
  .topbar { padding: 12px 16px; }
  .summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .grid-2,.grid-3 { grid-template-columns: 1fr; }
  .toolbar { grid-template-columns: 1fr 1fr; }
  .toolbar .field:first-child { grid-column: span 2; }
  .form-grid,.form-grid.two,.form-grid.four { grid-template-columns: 1fr 1fr; }
  .form-span-3 { grid-column: span 2; }
  .mobile-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5,1fr); padding: 7px 6px calc(7px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 30px rgba(0,0,0,.08); }
  .mobile-nav button { border: 0; background: transparent; color: #66758a; display: grid; gap: 3px; place-items: center; font-size: .68rem; }
  .mobile-nav button.active { color: var(--brand); font-weight: 900; }
}
@media (max-width: 620px) {
  .page-head { flex-direction: column; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .summary-card strong { font-size: 1.45rem; }
  .toolbar { grid-template-columns: 1fr; }
  .toolbar .field:first-child { grid-column: auto; }
  .form-grid,.form-grid.two,.form-grid.four { grid-template-columns: 1fr; }
  .form-span-2,.form-span-3 { grid-column: auto; }
  .module-grid { grid-template-columns: 1fr; }
  .onboarding-item { grid-template-columns: 1fr; }
  .health-grid { grid-template-columns: 1fr; }
  .topbar p { display: none; }
  .top-actions .btn span { display: none; }
}


/* RESPONDAO_MASTER_MOBILE_MORE_START */
.mobile-master-backdrop { display: none; }
@media (max-width: 900px) {
  .mobile-master-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    align-items: flex-end;
    justify-content: center;
    padding: 16px 12px calc(82px + env(safe-area-inset-bottom));
    background: rgba(8,25,45,.58);
    backdrop-filter: blur(3px);
  }
  .mobile-master-backdrop.open { display: flex; }
  .mobile-master-sheet {
    width: min(620px,100%);
    max-height: min(72vh,660px);
    overflow-y: auto;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(0,0,0,.28);
  }
  .mobile-master-sheet header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
  }
  .mobile-master-sheet header div { display: grid; gap: 3px; }
  .mobile-master-sheet header span { color: var(--muted); font-size: .76rem; }
  .mobile-master-sheet header button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #edf2f6;
    color: var(--ink);
    font-size: 1.45rem;
  }
  .mobile-master-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .mobile-master-grid button {
    min-height: 82px;
    display: grid;
    place-items: center;
    gap: 5px;
    padding: 11px 8px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #f8fbfd;
    color: var(--ink);
    text-align: center;
  }
  .mobile-master-grid button > span { font-size: 1.35rem; }
  .mobile-master-grid button > strong { font-size: .8rem; }
  .mobile-master-grid button.active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
}
/* RESPONDAO_MASTER_MOBILE_MORE_END */

/* RESPONDAO_MASTER_RBAC_SUPPORT_2_1_START */
.permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.permission-group {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbfd;
}
.permission-group h3 {
  margin: 0 0 10px;
  font-size: .95rem;
}
.permission-group label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #e5ebf0;
}
.permission-group label:last-child { border-bottom: 0; }
.permission-group input { width: auto; margin-top: 3px; }
.permission-group span { display: grid; gap: 2px; }
.permission-group small { color: var(--muted); font-family: ui-monospace, monospace; }
.support-access-list { display: grid; gap: 9px; }
.support-access-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbfd;
}
.support-access-item.active {
  border-color: #8ed8c8;
  background: #edfbf7;
}
.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #e8edf2;
}
.list-row:last-child { border-bottom: 0; }
.access-scope-note {
  padding: 12px;
  border-radius: 12px;
  background: #fff7dd;
  border: 1px solid #efd17a;
  color: #6d5000;
}
@media (max-width: 820px) {
  .permission-grid { grid-template-columns: 1fr; }
  .support-access-item { align-items: stretch; flex-direction: column; }
  .support-access-item .action-row { width: 100%; }
  .support-access-item .action-row .btn { flex: 1; }
}
/* RESPONDAO_MASTER_RBAC_SUPPORT_2_1_END */

/* RESPONDAO_ONBOARDING_ADMIN_2_2_START */
.registration-summary-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.registration-toolbar { grid-template-columns: minmax(240px,1fr) minmax(180px,240px) 140px; }
.registration-filter-action { align-self: end; }
.registration-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f8fbfd;
}
.registration-detail-head > div { display: grid; gap: 4px; }
.registration-needs { display: flex; gap: 7px; flex-wrap: wrap; }
.registration-links { display: grid; gap: 6px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #f8fbfd; overflow-wrap: anywhere; }
.registration-actions { margin-top: 14px; }
.registration-timeline { display: grid; gap: 10px; }
.registration-event { position: relative; padding: 0 0 12px 18px; border-left: 2px solid #cfe1df; }
.registration-event::before { content: ''; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.registration-event p { margin: 5px 0; color: var(--muted); }
@media (max-width: 900px) {
  .registration-summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .registration-toolbar { grid-template-columns: 1fr 1fr; }
  .registration-filter-action { grid-column: span 2; }
}
@media (max-width: 620px) {
  .registration-toolbar { grid-template-columns: 1fr; }
  .registration-filter-action { grid-column: auto; }
  .registration-detail-head { flex-direction: column; }
}
/* RESPONDAO_ONBOARDING_ADMIN_2_2_END */


/* RESPONDAO_COMMERCIAL_2_3_START */
.activation-options{display:grid;gap:10px}.activation-option{display:flex;gap:10px;align-items:flex-start;padding:12px;border:1px solid var(--line);border-radius:12px;background:#f8fafc;cursor:pointer}.activation-option:has(input:checked){border-color:var(--brand);background:var(--brand-soft)}.activation-option span{display:grid;gap:3px}.activation-option small{color:var(--muted)}.payment-gateway-card{display:flex;align-items:center;justify-content:space-between;gap:20px}.action-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}@media(max-width:760px){.payment-gateway-card{align-items:stretch;flex-direction:column}.activation-options{grid-template-columns:1fr}}
/* RESPONDAO_COMMERCIAL_2_3_END */


/* RESPONDAO_PASSWORD_VISIBILITY_2_3_16_START */
.respondao-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.respondao-password-wrap > input {
  width: 100%;
  padding-right: 50px !important;
}
.respondao-password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #31536b;
  cursor: pointer;
  z-index: 2;
}
.respondao-password-toggle:hover { background: rgba(8,127,106,.10); color: #087f6a; }
.respondao-password-toggle:focus-visible { outline: 3px solid rgba(8,127,106,.28); outline-offset: 1px; }
.respondao-password-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
@media (max-width: 700px) {
  .respondao-password-toggle { width: 44px; height: 44px; right: 4px; }
  .respondao-password-wrap > input { padding-right: 54px !important; }
}
/* RESPONDAO_PASSWORD_VISIBILITY_2_3_16_END */

/* RESPONDAO_BUSINESS_MODEL_LIBRARY_2_5_1_START */
.business-segment-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:0 0 16px}.business-segment-card{border:1px solid var(--border,#dfe5ef);background:var(--card,#fff);border-radius:16px;padding:16px;text-align:left;display:grid;gap:6px;cursor:pointer;box-shadow:0 4px 18px rgba(15,23,42,.05);transition:.18s ease}.business-segment-card:hover,.business-segment-card.active{border-color:#6557d9;box-shadow:0 8px 24px rgba(101,87,217,.14);transform:translateY(-1px)}.business-segment-card>span{font-size:1.55rem}.business-segment-card strong{font-size:.94rem}.business-segment-card small{color:var(--muted,#667085)}.business-model-toolbar{grid-template-columns:minmax(240px,2fr) minmax(200px,1fr) minmax(160px,.7fr);margin-bottom:16px}.business-model-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px}.business-model-card{padding:18px;display:flex;flex-direction:column;gap:14px}.business-model-card-head{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:start}.business-model-card-head h3{margin:3px 0 0}.business-model-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:14px;background:linear-gradient(135deg,#ede9fe,#eef2ff);font-size:1.55rem}.business-model-card p{margin:0;color:var(--muted,#667085);line-height:1.55}.business-model-meta{display:flex;flex-wrap:wrap;gap:8px 14px;font-size:.78rem;color:var(--muted,#667085);padding-top:2px}.business-model-version-strip{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;padding:12px 14px;border-radius:12px;background:#f7f8fc;border:1px solid #e8ebf3;font-size:.84rem}.notice-box{padding:14px 16px;border:1px solid #dcd8ff;background:#f7f5ff;border-radius:14px}.notice-box strong{display:block;margin-bottom:4px}.notice-box p{margin:0;color:#5e5a76;line-height:1.5}.version-list{display:grid;gap:8px}.version-list>div{display:grid;grid-template-columns:auto auto 1fr;gap:9px;align-items:center;padding:10px 12px;border:1px solid #e8ebf3;border-radius:10px}.version-list span:last-child{font-size:.8rem;color:var(--muted,#667085)}.modal.large{width:min(1080px,96vw)}.business-model-summary{margin-bottom:16px}
@media(max-width:800px){.business-model-toolbar{grid-template-columns:1fr}.business-segment-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.business-model-grid{grid-template-columns:1fr}.business-model-card-head{grid-template-columns:auto 1fr}.business-model-card-head>.badge{grid-column:1/-1;width:max-content}.version-list>div{grid-template-columns:auto 1fr}.version-list span:last-child{grid-column:1/-1}.modal.large{width:100%;max-width:100%;height:100%;border-radius:0}.business-model-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* RESPONDAO_BUSINESS_MODEL_LIBRARY_2_5_1_END */


/* RESPONDAO_PLANOS_COMERCIAIS_2_6_0 */
.plan-summary-grid{margin-bottom:16px}
.plan-table-wrap td{vertical-align:top}
.plan-title-line{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.plan-public-badge{display:inline-flex;padding:3px 8px;border-radius:999px;background:#e0f2f1;color:#00695c;font-size:11px;font-weight:800}
.plan-recommended-row{background:linear-gradient(90deg,rgba(0,137,123,.08),transparent 36%)}
.plan-recommended-row td:first-child{border-left:4px solid #00897b}
.plan-recommended-text{color:#00897b;font-weight:800;margin-top:4px}
#plan-form .detail-section h3{margin-bottom:14px}
#plan-form input[readonly]{background:#f4f7f9;color:#637381;cursor:not-allowed}

.plan-catalog-grid{margin-top:16px;align-items:start}.plan-catalog-grid table td{vertical-align:top}

/* RESPONDAO_PLANOS_RESPONSIVOS_2_6_2_START */
/* Remove rolagem lateral somente da página Planos e recursos. */
.plan-table-wrap,
.plan-catalog-grid > .table-wrap {
  min-width: 0;
}

.plan-catalog-grid > .table-wrap {
  overflow-x: visible;
}

.plan-catalog-grid table {
  min-width: 0;
  table-layout: fixed;
}

.plan-catalog-grid th,
.plan-catalog-grid td {
  overflow-wrap: anywhere;
  word-break: normal;
}

.plan-catalog-grid th:nth-child(1),
.plan-catalog-grid td:nth-child(1) { width: 64%; }
.plan-catalog-grid th:nth-child(2),
.plan-catalog-grid td:nth-child(2) { width: 18%; }
.plan-catalog-grid th:nth-child(3),
.plan-catalog-grid td:nth-child(3) { width: 18%; }

@media (max-width: 1180px) {
  .plan-table-wrap {
    overflow-x: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .plan-table-wrap table,
  .plan-table-wrap tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .plan-table-wrap thead {
    display: none;
  }

  .plan-table-wrap tbody {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .plan-table-wrap tr {
    display: block;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
    box-shadow: var(--shadow);
  }

  .plan-table-wrap td {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 11px 14px;
    border-bottom: 1px solid #e5ebf0;
    overflow-wrap: anywhere;
  }

  .plan-table-wrap td:last-child {
    border-bottom: 0;
  }

  .plan-table-wrap td::before {
    display: block;
    margin-bottom: 5px;
    color: #5c6b7d;
    font-size: .69rem;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  .plan-table-wrap td:nth-child(1)::before { content: "Plano"; }
  .plan-table-wrap td:nth-child(2)::before { content: "Preço e implantação"; }
  .plan-table-wrap td:nth-child(3)::before { content: "Franquia IA"; }
  .plan-table-wrap td:nth-child(4)::before { content: "Operação"; }
  .plan-table-wrap td:nth-child(5)::before { content: "Cadastro"; }
  .plan-table-wrap td:nth-child(6)::before { content: "Ações"; }

  .plan-table-wrap .plan-recommended-row {
    border-left: 4px solid #00897b;
  }

  .plan-table-wrap .plan-recommended-row td:first-child {
    border-left: 0;
  }

  .plan-table-wrap td:last-child .btn {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .plan-table-wrap tbody {
    grid-template-columns: 1fr;
  }

  .plan-catalog-grid > .table-wrap {
    overflow-x: visible;
  }

  .plan-catalog-grid table,
  .plan-catalog-grid tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .plan-catalog-grid thead {
    display: none;
  }

  .plan-catalog-grid tbody {
    display: grid;
    gap: 10px;
    padding: 0 12px 12px;
  }

  .plan-catalog-grid tr {
    display: block;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e2e8ee;
    border-radius: 12px;
    background: #fff;
  }

  .plan-catalog-grid td {
    display: block;
    width: 100% !important;
    min-width: 0;
    padding: 10px 12px;
    border-bottom: 1px solid #e8edf2;
    overflow-wrap: anywhere;
  }

  .plan-catalog-grid td:last-child {
    border-bottom: 0;
  }

  .plan-catalog-grid td::before {
    display: block;
    margin-bottom: 4px;
    color: #5c6b7d;
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  .plan-catalog-grid > section:first-child td:nth-child(1)::before { content: "Adicional"; }
  .plan-catalog-grid > section:last-child td:nth-child(1)::before { content: "Serviço"; }
  .plan-catalog-grid td:nth-child(2)::before { content: "Preço"; }
  .plan-catalog-grid td:nth-child(3)::before { content: "Status"; }
  .plan-catalog-grid td.empty::before { content: none; }
}

@media (max-width: 480px) {
  .plan-summary-grid {
    grid-template-columns: 1fr;
  }
}
/* RESPONDAO_PLANOS_RESPONSIVOS_2_6_2_END */

/* RESPONDAO_MERCADOPAGO_FATURAS_2_7_0_START */
.invoice-catalog-picker{
  display:grid;
  grid-template-columns:minmax(220px,1fr) auto auto;
  gap:10px;
  align-items:end;
}
.invoice-items{display:grid;gap:12px}
.invoice-item-row{
  display:grid;
  grid-template-columns:170px minmax(240px,1fr) 90px 150px auto;
  gap:10px;
  align-items:end;
  border:1px solid var(--border,#e5e7eb);
  border-radius:14px;
  padding:12px;
  background:#fff;
}
.invoice-item-row .field{margin:0}
.invoice-item-actions{padding-bottom:2px}
.invoice-total-box{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:18px 20px;
  border-radius:16px;
  background:linear-gradient(135deg,#f3ecff,#fff);
  border:1px solid #dfd0ff;
}
.invoice-total-box strong{font-size:1.35rem;color:#5723b5}
.billing-table td .action-row{min-width:220px}

@media (max-width:980px){
  .invoice-catalog-picker{grid-template-columns:1fr 1fr}
  .invoice-catalog-picker select{grid-column:1/-1}
  .invoice-item-row{grid-template-columns:1fr 1fr}
  .invoice-item-description{grid-column:1/-1}
  .invoice-item-actions{align-self:end}
}

@media (max-width:760px){
  .invoice-catalog-picker{grid-template-columns:1fr}
  .invoice-catalog-picker select{grid-column:auto}
  .invoice-catalog-picker .btn{width:100%}
  .invoice-item-row{grid-template-columns:1fr}
  .invoice-item-description{grid-column:auto}
  .invoice-item-actions .btn{width:100%}
  .billing-table-wrap{overflow:visible!important}
  .billing-table{display:block;width:100%;min-width:0!important}
  .billing-table thead{display:none}
  .billing-table tbody{display:grid;gap:12px;padding:12px}
  .billing-table tr{
    display:block;
    width:100%;
    border:1px solid var(--border,#e5e7eb);
    border-radius:16px;
    padding:12px;
    background:#fff;
  }
  .billing-table td{
    display:grid;
    grid-template-columns:110px minmax(0,1fr);
    gap:10px;
    width:100%;
    padding:8px 0!important;
    border:0!important;
    overflow-wrap:anywhere;
  }
  .billing-table td::before{
    content:attr(data-label);
    font-size:.76rem;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.04em;
    color:var(--muted,#6b7280);
  }
  .billing-table td .action-row{min-width:0;display:grid;grid-template-columns:1fr;gap:8px}
  .billing-table td .btn,.billing-table td a.btn{width:100%;justify-content:center}
  .invoice-total-box{align-items:flex-start;flex-direction:column}
}
/* RESPONDAO_MERCADOPAGO_FATURAS_2_7_0_END */


/* RESPONDAO_PRESENTATION_FLOWS_2_1_START */
.presentation-flow-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}
.presentation-flow-preview h2{margin:0 0 8px;font-size:1.35rem}
.presentation-flow-pre{white-space:pre-wrap;font-family:inherit;line-height:1.6;background:#f8fafc;border:1px solid #e5e7eb;border-radius:14px;padding:16px;max-height:62vh;overflow:auto;color:#1f2937}
#presentation-flow-preview-box{min-height:220px}
code{background:#f3f4f6;border:1px solid #e5e7eb;border-radius:6px;padding:1px 5px}
@media(max-width:900px){.presentation-flow-grid{grid-template-columns:1fr}.presentation-flow-pre{max-height:none}}
/* RESPONDAO_PRESENTATION_FLOWS_2_1_END */


/* RESPONDAO_PDF_COMMERCIAL_PANEL_2_1_2 */
.presentation-pdf-section{border:1px solid #dce7f3;background:#fbfdff}
.presentation-pdf-current{display:grid;gap:4px;padding:14px 16px;border:1px solid #dbe3ef;border-radius:14px;background:#f8fafc;margin:12px 0}
.presentation-pdf-current strong{color:#0f172a}
.presentation-pdf-current span{color:#334155}
.presentation-pdf-current small{color:#64748b}
.presentation-pdf-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:12px}
.presentation-pdf-actions select{border:1px solid #d0d7e2;border-radius:10px;padding:10px 12px;background:#fff}
.presentation-public-link-box{margin-top:16px;padding:16px;border:1px solid #dbe3ef;border-radius:14px;background:#fff}
.presentation-public-link-box h4{margin:0 0 6px}
.btn-danger{border-color:#fecaca!important;background:#fff5f5!important;color:#b91c1c!important}
.btn-danger:hover{background:#fee2e2!important}
/* RESPONDAO_PDF_COMMERCIAL_PANEL_2_1_2_END */
