:root {
    --sa-bg: #f3f6fb;
    --sa-surface: #ffffff;
    --sa-surface-soft: #f8fafc;
    --sa-sidebar: #071a2f;
    --sa-sidebar-soft: #0c2744;
    --sa-sidebar-text: #d9e6f2;
    --sa-primary: #2563eb;
    --sa-primary-dark: #1d4ed8;
    --sa-accent: #f59e0b;
    --sa-text: #10233d;
    --sa-muted: #64748b;
    --sa-border: #e2e8f0;
    --sa-success: #16a34a;
    --sa-success-bg: #dcfce7;
    --sa-warning: #b45309;
    --sa-warning-bg: #fef3c7;
    --sa-danger: #dc2626;
    --sa-danger-bg: #fee2e2;
    --sa-info: #0369a1;
    --sa-info-bg: #e0f2fe;
    --sa-shadow: 0 12px 35px rgba(15, 35, 61, .08);
    --sa-shadow-soft: 0 5px 18px rgba(15, 35, 61, .06);
    --sa-radius: 16px;
    --sa-sidebar-width: 270px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--sa-bg);
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--sa-bg);
    color: var(--sa-text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body.sa-menu-open {
    overflow: hidden;
}

a {
    color: var(--sa-primary);
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

img,
svg {
    display: block;
}

/* -----------------------------------------------------------------------
   ESTRUTURA PRINCIPAL
------------------------------------------------------------------------ */

.sa-shell {
    min-height: 100vh;
}

.sa-sidebar {
    position: fixed;
    z-index: 50;
    inset: 0 auto 0 0;
    width: var(--sa-sidebar-width);
    overflow-y: auto;
    color: var(--sa-sidebar-text);
    background:
        radial-gradient(circle at 0 0, rgba(37, 99, 235, .19), transparent 34%),
        linear-gradient(180deg, #071a2f 0%, #061426 100%);
    border-right: 1px solid rgba(255, 255, 255, .07);
    transition: transform .22s ease;
}

.sa-sidebar-inner {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    padding: 22px 16px 18px;
}

.sa-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 5px 8px 24px;
    color: #fff;
    text-decoration: none;
}

.sa-brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    flex: 0 0 42px;
    border-radius: 13px;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -.7px;
    background: linear-gradient(145deg, #2563eb, #1d4ed8);
    box-shadow: 0 9px 22px rgba(37, 99, 235, .33);
}

.sa-brand-text {
    min-width: 0;
}

.sa-brand-text strong,
.sa-brand-text span {
    display: block;
}

.sa-brand-text strong {
    font-size: 15px;
    letter-spacing: .02em;
}

.sa-brand-text span {
    margin-top: 1px;
    overflow: hidden;
    color: #93a9bd;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sa-nav-section {
    margin: 12px 10px 7px;
    color: #708aa3;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.sa-nav {
    display: grid;
    gap: 5px;
}

.sa-nav a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #bdcedd;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
    transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.sa-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .06);
}

.sa-nav a.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(37, 99, 235, .32), rgba(37, 99, 235, .12));
    border-color: rgba(96, 165, 250, .19);
}

.sa-nav a.active::before {
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: -16px;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: #60a5fa;
    content: "";
}

.sa-nav-icon {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    flex: 0 0 22px;
}

.sa-nav-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.sa-nav-count {
    min-width: 24px;
    margin-left: auto;
    padding: 2px 7px;
    border-radius: 999px;
    color: #bfdbfe;
    background: rgba(37, 99, 235, .25);
    font-size: 11px;
    text-align: center;
}

.sa-sidebar-bottom {
    margin-top: auto;
    padding-top: 25px;
}

.sa-system-mini {
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 13px;
    background: rgba(255, 255, 255, .035);
}

.sa-system-mini span,
.sa-system-mini strong {
    display: block;
}

.sa-system-mini span {
    color: #7f96aa;
    font-size: 11px;
}

.sa-system-mini strong {
    margin-top: 3px;
    color: #dbeafe;
    font-size: 12px;
}

.sa-main {
    min-height: 100vh;
    margin-left: var(--sa-sidebar-width);
}

.sa-topbar {
    position: sticky;
    z-index: 35;
    top: 0;
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 28px;
    border-bottom: 1px solid rgba(226, 232, 240, .9);
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 3px 15px rgba(15, 35, 61, .025);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.sa-topbar-left,
.sa-topbar-right,
.sa-user {
    display: flex;
    align-items: center;
}

.sa-topbar-left {
    min-width: 0;
    gap: 12px;
}

.sa-topbar-right {
    gap: 10px;
}

.sa-breadcrumb {
    overflow: hidden;
    color: var(--sa-muted);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sa-breadcrumb strong {
    color: var(--sa-text);
}

.sa-mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--sa-border);
    border-radius: 11px;
    color: var(--sa-text);
    background: #fff;
    cursor: pointer;
}

.sa-mobile-toggle svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.sa-user {
    gap: 10px;
    padding: 5px 7px 5px 5px;
    border-radius: 12px;
}

.sa-user-avatar {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 11px;
    color: #1e40af;
    background: #dbeafe;
    font-size: 13px;
    font-weight: 850;
}

.sa-user-data {
    line-height: 1.25;
}

.sa-user-data strong,
.sa-user-data span {
    display: block;
}

.sa-user-data strong {
    max-width: 180px;
    overflow: hidden;
    color: var(--sa-text);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sa-user-data span {
    margin-top: 2px;
    color: var(--sa-muted);
    font-size: 11px;
}

.sa-logout {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--sa-border);
    border-radius: 11px;
    color: #64748b;
    background: #fff;
    text-decoration: none;
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.sa-logout:hover {
    color: var(--sa-danger);
    border-color: #fecaca;
    background: #fff7f7;
}

.sa-logout svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.sa-content {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 28px;
}

.sa-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.sa-page-head h1 {
    margin: 0;
    color: var(--sa-text);
    font-size: clamp(25px, 2.4vw, 34px);
    line-height: 1.17;
    letter-spacing: -.035em;
}

.sa-page-head p {
    max-width: 720px;
    margin: 7px 0 0;
    color: var(--sa-muted);
}

.sa-page-actions,
.actions {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.sa-overlay {
    position: fixed;
    z-index: 45;
    inset: 0;
    display: none;
    background: rgba(2, 10, 23, .54);
    backdrop-filter: blur(2px);
}

/* -----------------------------------------------------------------------
   BOTÕES E ELEMENTOS
------------------------------------------------------------------------ */

.btn {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 15px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #fff;
    background: var(--sa-primary);
    box-shadow: 0 5px 12px rgba(37, 99, 235, .17);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.btn:hover {
    color: #fff;
    background: var(--sa-primary-dark);
    box-shadow: 0 8px 16px rgba(37, 99, 235, .22);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.btn2,
.btn-secondary {
    color: var(--sa-text);
    background: #fff;
    border-color: #cbd5e1;
    box-shadow: none;
}

.btn2:hover,
.btn-secondary:hover {
    color: var(--sa-text);
    background: #f8fafc;
    border-color: #94a3b8;
    box-shadow: none;
}

.btn-danger {
    color: #fff;
    background: var(--sa-danger);
    box-shadow: 0 5px 12px rgba(220, 38, 38, .16);
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-small {
    min-height: 36px;
    padding: 7px 11px;
    border-radius: 9px;
    font-size: 12px;
}

.btn-icon {
    width: 40px;
    padding: 0;
}

.badge {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 999px;
    color: #475569;
    background: #eef2f7;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.badge::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    content: "";
    opacity: .75;
}

.badge.active,
.badge.paid,
.badge.succeeded,
.badge.ok {
    color: #166534;
    background: var(--sa-success-bg);
}

.badge.past_due,
.badge.pending,
.badge.warning,
.badge.processing,
.badge.requires_action {
    color: #92400e;
    background: var(--sa-warning-bg);
}

.badge.inactive,
.badge.suspended,
.badge.failed,
.badge.cancelled,
.badge.canceled,
.badge.error {
    color: #991b1b;
    background: var(--sa-danger-bg);
}

.badge.info,
.badge.trial {
    color: #075985;
    background: var(--sa-info-bg);
}

.sa-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #94a3b8;
}

.sa-dot.success {
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .12);
}

.sa-dot.warning {
    background: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, .12);
}

.sa-dot.danger {
    background: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, .12);
}

/* -----------------------------------------------------------------------
   PAINÉIS, MÉTRICAS E ALERTAS
------------------------------------------------------------------------ */

.card,
.sa-panel {
    background: var(--sa-surface);
    border: 1px solid var(--sa-border);
    border-radius: var(--sa-radius);
    box-shadow: var(--sa-shadow-soft);
}

.card {
    padding: 22px;
}

.sa-panel {
    overflow: hidden;
}

.sa-panel + .sa-panel {
    margin-top: 20px;
}

.sa-panel-head {
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--sa-border);
}

.sa-panel-title h2,
.sa-panel-title h3 {
    margin: 0;
    color: var(--sa-text);
    font-size: 17px;
    line-height: 1.25;
}

.sa-panel-title p {
    margin: 4px 0 0;
    color: var(--sa-muted);
    font-size: 12px;
}

.sa-panel-body {
    padding: 20px;
}

.grid,
.sa-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.grid {
    margin: 18px 0;
}

.sa-metrics {
    margin-bottom: 20px;
}

.metric,
.sa-metric {
    position: relative;
    min-height: 132px;
    overflow: hidden;
    padding: 19px;
    background: #fff;
    border: 1px solid var(--sa-border);
    border-radius: 15px;
    box-shadow: var(--sa-shadow-soft);
}

.sa-metric::after {
    position: absolute;
    right: -22px;
    bottom: -34px;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: currentColor;
    content: "";
    opacity: .035;
}

.sa-metric-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.metric span,
.sa-metric-label {
    color: var(--sa-muted);
    font-size: 12px;
    font-weight: 700;
}

.metric b,
.sa-metric-value {
    display: block;
    margin-top: 10px;
    color: var(--sa-text);
    font-size: 29px;
    font-weight: 850;
    line-height: 1;
    letter-spacing: -.035em;
}

.sa-metric-icon {
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    border-radius: 11px;
    color: var(--sa-primary);
    background: #eff6ff;
}

.sa-metric-icon.warning {
    color: #b45309;
    background: #fffbeb;
}

.sa-metric-icon.success {
    color: #15803d;
    background: #f0fdf4;
}

.sa-metric-icon.danger {
    color: #b91c1c;
    background: #fef2f2;
}

.sa-metric-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.sa-metric-foot {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    color: var(--sa-muted);
    font-size: 11px;
}

.sa-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, .7fr);
    gap: 20px;
    align-items: start;
}

.sa-stack {
    display: grid;
    gap: 16px;
}

.sa-health-list {
    display: grid;
}

.sa-health-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--sa-border);
}

.sa-health-item:first-child {
    padding-top: 0;
}

.sa-health-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.sa-health-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    flex: 0 0 38px;
    border-radius: 11px;
    color: #0369a1;
    background: #f0f9ff;
}

.sa-health-icon.success {
    color: #15803d;
    background: #f0fdf4;
}

.sa-health-icon.warning {
    color: #b45309;
    background: #fffbeb;
}

.sa-health-icon.danger {
    color: #b91c1c;
    background: #fef2f2;
}

.sa-health-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.sa-health-content {
    min-width: 0;
    flex: 1;
}

.sa-health-content strong,
.sa-health-content span {
    display: block;
}

.sa-health-content strong {
    color: var(--sa-text);
    font-size: 13px;
}

.sa-health-content span {
    margin-top: 2px;
    color: var(--sa-muted);
    font-size: 11px;
}

.err,
.ok,
.warning-box,
.info-box,
.sa-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 12px 0;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 13px;
}

.err,
.sa-alert-danger {
    color: #991b1b;
    background: #fff1f2;
    border-color: #fecdd3;
}

.ok,
.sa-alert-success {
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.warning-box,
.sa-alert-warning {
    color: #92400e;
    background: #fffbeb;
    border-color: #fde68a;
}

.info-box,
.sa-alert-info {
    color: #075985;
    background: #f0f9ff;
    border-color: #bae6fd;
}

/* -----------------------------------------------------------------------
   FILTROS E FORMULÁRIOS
------------------------------------------------------------------------ */

.sa-toolbar {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    padding: 14px 20px;
    border-bottom: 1px solid var(--sa-border);
    background: var(--sa-surface-soft);
}

.sa-search {
    position: relative;
    min-width: 240px;
    flex: 1 1 320px;
}

.sa-search svg {
    position: absolute;
    top: 50%;
    left: 13px;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: #94a3b8;
    stroke-width: 2;
    transform: translateY(-50%);
    pointer-events: none;
}

.sa-search input {
    padding-left: 40px;
}

.sa-filter {
    min-width: 165px;
}

.form {
    width: min(100% - 30px, 520px);
    margin: 70px auto;
}

.field {
    margin: 14px 0;
}

.field label,
.sa-field label {
    display: block;
    margin-bottom: 6px;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
}

.sa-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.sa-field-full {
    grid-column: 1 / -1;
}

input,
select,
textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    outline: 0;
    color: var(--sa-text);
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .11);
}

input::placeholder,
textarea::placeholder {
    color: #94a3b8;
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
    min-height: 0;
    accent-color: var(--sa-primary);
}

.sa-help {
    display: block;
    margin-top: 5px;
    color: var(--sa-muted);
    font-size: 11px;
}

/* -----------------------------------------------------------------------
   TABELAS
------------------------------------------------------------------------ */

.sa-table-wrap {
    width: 100%;
    overflow-x: auto;
}

table,
.sa-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

th,
td {
    padding: 13px 12px;
    border-bottom: 1px solid var(--sa-border);
    text-align: left;
    vertical-align: middle;
}

th {
    color: var(--sa-muted);
    background: #fbfcfe;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .055em;
    text-transform: uppercase;
    white-space: nowrap;
}

tbody tr {
    transition: background .15s ease;
}

tbody tr:hover {
    background: #f8fbff;
}

tbody tr:last-child td {
    border-bottom: 0;
}

td {
    color: #334155;
    font-size: 13px;
}

td small {
    color: var(--sa-muted);
}

.sa-company {
    display: flex;
    min-width: 210px;
    align-items: center;
    gap: 11px;
}

.sa-company-avatar {
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    flex: 0 0 39px;
    border-radius: 11px;
    color: #1e40af;
    background: #e8f0ff;
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.sa-company strong,
.sa-company span {
    display: block;
}

.sa-company strong {
    color: var(--sa-text);
    font-size: 13px;
}

.sa-company span {
    margin-top: 1px;
    color: var(--sa-muted);
    font-size: 11px;
}

.sa-empty {
    padding: 46px 20px;
    color: var(--sa-muted);
    text-align: center;
}

.sa-empty-icon {
    display: grid;
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    place-items: center;
    border-radius: 15px;
    color: #64748b;
    background: #f1f5f9;
}

.sa-empty strong,
.sa-empty span {
    display: block;
}

.sa-empty strong {
    color: var(--sa-text);
}

.sa-empty span {
    margin-top: 4px;
    font-size: 12px;
}

/* -----------------------------------------------------------------------
   COMPONENTES ANTIGOS COMPATÍVEIS
------------------------------------------------------------------------ */

.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 26px;
    color: #fff;
    background: var(--sa-sidebar);
}

.top a {
    color: #fff;
    text-decoration: none;
}

.wrap {
    width: min(100% - 36px, 1180px);
    margin: 30px auto;
}

.navlinks {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 18px 0;
}

.navlinks a {
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: var(--sa-text);
    background: #fff;
    font-weight: 700;
    text-decoration: none;
}

/* -----------------------------------------------------------------------
   LOGIN
------------------------------------------------------------------------ */

.sa-auth-page {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(320px, .9fr) minmax(430px, 1.1fr);
    background: #fff;
}

.sa-auth-side {
    position: relative;
    display: flex;
    overflow: hidden;
    align-items: flex-end;
    padding: clamp(35px, 6vw, 80px);
    color: #fff;
    background:
        radial-gradient(circle at 12% 10%, rgba(37, 99, 235, .35), transparent 36%),
        linear-gradient(145deg, #071a2f, #092b4d);
}

.sa-auth-side::before,
.sa-auth-side::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    content: "";
}

.sa-auth-side::before {
    top: -180px;
    left: -180px;
    width: 520px;
    height: 520px;
}

.sa-auth-side::after {
    right: -210px;
    bottom: -230px;
    width: 620px;
    height: 620px;
}

.sa-auth-copy {
    position: relative;
    z-index: 2;
    max-width: 500px;
}

.sa-auth-copy h1 {
    margin: 18px 0 12px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.02;
    letter-spacing: -.05em;
}

.sa-auth-copy p {
    margin: 0;
    color: #b7ccde;
    font-size: 16px;
}

.sa-auth-main {
    display: grid;
    place-items: center;
    padding: 30px;
    background: #f8fafc;
}

.sa-auth-card {
    width: min(100%, 430px);
    padding: 30px;
    border: 1px solid var(--sa-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--sa-shadow);
}

.sa-auth-card h2 {
    margin: 0;
    font-size: 26px;
    letter-spacing: -.03em;
}

.sa-auth-card > p {
    margin: 7px 0 22px;
    color: var(--sa-muted);
}

/* -----------------------------------------------------------------------
   RESPONSIVIDADE
------------------------------------------------------------------------ */

@media (max-width: 1200px) {
    .sa-metrics,
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sa-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .sa-sidebar {
        transform: translateX(-100%);
    }

    .sa-menu-open .sa-sidebar {
        transform: translateX(0);
    }

    .sa-menu-open .sa-overlay {
        display: block;
    }

    .sa-main {
        margin-left: 0;
    }

    .sa-mobile-toggle {
        display: grid;
    }

    .sa-topbar {
        padding: 10px 18px;
    }

    .sa-content {
        padding: 22px 18px;
    }

    .sa-auth-page {
        grid-template-columns: 1fr;
    }

    .sa-auth-side {
        display: none;
    }
}

@media (max-width: 650px) {
    .sa-topbar {
        min-height: 64px;
    }

    .sa-user-data,
    .sa-breadcrumb {
        display: none;
    }

    .sa-content {
        padding: 18px 13px 28px;
    }

    .sa-page-head {
        flex-direction: column;
        margin-bottom: 18px;
    }

    .sa-page-head h1 {
        font-size: 26px;
    }

    .sa-page-actions,
    .sa-page-actions .btn {
        width: 100%;
    }

    .sa-metrics,
    .grid,
    .sa-form-grid {
        grid-template-columns: 1fr;
    }

    .metric,
    .sa-metric {
        min-height: 116px;
    }

    .sa-panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .sa-panel-head .btn {
        width: 100%;
    }

    .sa-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .sa-search,
    .sa-filter {
        width: 100%;
        min-width: 0;
        flex: auto;
    }

    .card {
        padding: 17px;
    }

    th,
    td {
        padding: 11px 10px;
    }

    .sa-auth-main {
        padding: 18px;
    }

    .sa-auth-card {
        padding: 23px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
