:root {
    --bs-primary: #2f6fed;
    --bs-primary-rgb: 47, 111, 237;
    --bs-secondary: #64748b;
    --bs-secondary-rgb: 100, 116, 139;
    --bs-success: #1f9d72;
    --bs-success-rgb: 31, 157, 114;
    --bs-danger: #dc4c64;
    --bs-danger-rgb: 220, 76, 100;
    --bs-warning: #f0ad4e;
    --bs-warning-rgb: 240, 173, 78;
    --bs-info: #1d9bf0;
    --bs-info-rgb: 29, 155, 240;
    --bs-body-bg: #eef3f9;
    --bs-body-color: #1a2740;
    --bs-border-color: #d8e1ee;
    --rvm-sidebar: #0f172a;
    --rvm-sidebar-2: #111c33;
    --rvm-surface: #ffffff;
    --rvm-surface-soft: #f8fbff;
    --rvm-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    --rvm-shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.06);
    --rvm-sidebar-width: 310px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--bs-body-color);
    background:
        radial-gradient(circle at top right, rgba(var(--bs-primary-rgb), 0.14), transparent 24%),
        radial-gradient(circle at bottom left, rgba(var(--bs-info-rgb), 0.1), transparent 24%),
        var(--bs-body-bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--bs-primary);
    text-decoration: none;
}

a:hover {
    color: #1f55bc;
}

.public-layout {
    min-height: 100vh;
}

.brand-link {
    color: inherit;
}

.brand-mark {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--bs-primary), #5f96ff);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(var(--bs-primary-rgb), 0.22);
}

.brand-name {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.1;
}

.brand-subtitle {
    font-size: 0.82rem;
}

.login-shell {
    min-height: 100vh;
    padding: 1.5rem;
    display: grid;
    align-items: center;
}

.login-grid {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
}

.login-panel-dark,
.login-panel-light {
    border-radius: 1.4rem;
    box-shadow: var(--rvm-shadow);
    overflow: hidden;
}

.login-panel-dark {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(180deg, var(--rvm-sidebar), var(--rvm-sidebar-2));
    color: #d7e3ff;
}

.login-panel-dark p {
    color: rgba(215, 227, 255, 0.8);
}

.login-panel-dark h1 {
    margin: 0.5rem 0 0.85rem;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.login-panel-light {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(10px);
}

.login-kicker {
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #7b8aa0;
}

.login-panel-dark .login-kicker {
    color: rgba(215, 227, 255, 0.72);
}

.login-card-header h2 {
    margin: 0.5rem 0 0.65rem;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.login-feature-list {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.login-feature-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.login-feature-item strong {
    display: block;
    color: #fff;
}

.login-feature-item span:last-child {
    display: block;
    color: rgba(215, 227, 255, 0.8);
}

.login-feature-bullet {
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-weight: 700;
}

.login-metric-card {
    padding: 1rem 1.05rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.login-metric-card strong {
    display: block;
    margin-top: 0.35rem;
    color: #fff;
    line-height: 1.45;
}

.auth-side-note {
    display: grid;
    gap: 0.35rem;
    padding: 1rem 1.05rem;
    border-radius: 1rem;
    border: 1px dashed rgba(var(--bs-primary-rgb), 0.2);
    background: rgba(var(--bs-primary-rgb), 0.04);
    color: #47617f;
}

.layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--rvm-sidebar-width) minmax(0, 1fr);
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 1.5rem 1.25rem;
    background: linear-gradient(180deg, var(--rvm-sidebar), var(--rvm-sidebar-2));
    color: #d7e3ff;
    box-shadow: var(--rvm-shadow);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem 0.5rem;
}

.sidebar-brand-mark {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--bs-primary), #5f96ff);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 12px 24px rgba(var(--bs-primary-rgb), 0.22);
}

.sidebar-brand-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
}

.sidebar-brand small {
    display: block;
    margin-top: 0.15rem;
    color: rgba(215, 227, 255, 0.7);
    font-size: 0.8rem;
}

.company-selector-shell {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.company-selector-shell label {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(215, 227, 255, 0.75);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.company-selector-shell select {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(9, 15, 29, 0.6);
    color: #fff;
    outline: none;
}

.company-selector-shell select:focus {
    border-color: rgba(var(--bs-primary-rgb), 0.6);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.18);
}

.sidebar-nav {
    display: grid;
    gap: 0.35rem;
}

.nav-section {
    margin-top: 0.9rem;
    padding: 0.4rem 0.75rem 0.2rem;
    color: rgba(215, 227, 255, 0.55);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.nav-link-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 0.95rem;
    border-radius: 1rem;
    color: #c6d3ef;
    transition: all 0.18s ease;
}

.nav-link-shell:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-link-shell.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.nav-link-copy {
    display: grid;
    gap: 0.15rem;
}

.nav-link-title {
    font-size: 0.94rem;
    font-weight: 700;
}

.nav-link-copy small {
    color: rgba(215, 227, 255, 0.66);
    font-size: 0.76rem;
}

.nav-link-shell.active .nav-link-copy small,
.nav-link-shell:hover .nav-link-copy small {
    color: rgba(255, 255, 255, 0.8);
}

.nav-badge {
    min-width: 1.6rem;
    height: 1.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--bs-danger);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

.main-content {
    min-width: 0;
    padding: 1.5rem 1.5rem 2rem;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: var(--rvm-shadow-soft);
    backdrop-filter: blur(12px);
}

.topbar-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.topbar-subtitle {
    color: #6f7f96;
    font-size: 0.9rem;
}

.topbar-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(var(--bs-primary-rgb), 0.08);
    color: var(--bs-primary);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.12);
    font-size: 0.82rem;
    font-weight: 700;
}

.topbar-user {
    display: grid;
    gap: 0.1rem;
    padding: 0.45rem 0.8rem;
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.topbar-user strong {
    font-size: 0.9rem;
    line-height: 1.1;
}

.topbar-user small {
    color: #6f7f96;
    font-size: 0.78rem;
}

.page-header {
    margin-bottom: 1.5rem;
}

.page-header-inline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.page-header-content {
    min-width: 0;
}

.page-header h1 {
    margin-bottom: 0.35rem;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.page-header p,
.page-subtitle {
    color: #6f7f96;
    margin-bottom: 0;
}

.card {
    background: var(--rvm-surface);
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 1.35rem;
    box-shadow: var(--rvm-shadow);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.stats-grid,
.summary-grid {
    display: grid;
    gap: 1rem;
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-bottom: 1.5rem;
}

.summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stat-card,
.summary-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 1.15rem;
    padding: 1.2rem 1.25rem;
    box-shadow: var(--rvm-shadow-soft);
}

.stat-card::after,
.summary-card::after {
    content: "";
    position: absolute;
    inset: auto -1.5rem -2.5rem auto;
    width: 7rem;
    height: 7rem;
    border-radius: 999px;
    background: rgba(var(--bs-primary-rgb), 0.08);
}

.stat-card .label,
.summary-kicker {
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #73839c;
    margin-bottom: 0.55rem;
}

.stat-card .value,
.summary-value {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.summary-trend {
    display: block;
    margin-top: 0.45rem;
    color: #6f7f96;
    font-size: 0.88rem;
}

.summary-value.is-text {
    font-size: 1.12rem;
    line-height: 1.25;
}

.summary-value.is-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 1.02rem;
    letter-spacing: 0.08em;
}

.page-shell,
.form-stack,
.detail-list {
    display: grid;
    gap: 1rem;
}

.content-split {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.9fr);
    align-items: start;
}

.surface-panel {
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 1.2rem;
    padding: 1.2rem 1.25rem;
    box-shadow: var(--rvm-shadow-soft);
}

.surface-panel h2 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.surface-panel p {
    margin: 0;
    color: #6f7f96;
}

.detail-item {
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid #e4ecf7;
}

.detail-item strong {
    display: block;
    color: var(--bs-body-color);
    line-height: 1.45;
}

.form-section {
    padding: 1.1rem;
    border-radius: 1.1rem;
    border: 1px solid #e4ecf7;
    background: #fbfdff;
}

.form-section-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.form-section-title h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.form-section-title p {
    margin: 0.3rem 0 0;
    color: #6f7f96;
}

.field-hint {
    display: block;
    margin-top: 0.35rem;
    color: #7b8aa0;
    font-size: 0.8rem;
}

.form-note {
    padding: 1rem 1.05rem;
    border-radius: 1rem;
    border: 1px solid rgba(var(--bs-info-rgb), 0.16);
    background: rgba(var(--bs-info-rgb), 0.08);
    color: #335374;
    font-size: 0.92rem;
    line-height: 1.5;
}

.check-option {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid #d8e1ee;
    background: #fff;
}

.check-option input {
    margin-top: 0.2rem;
}

.check-option strong,
.check-option span {
    display: block;
}

.check-option strong {
    margin-bottom: 0.15rem;
    color: var(--bs-body-color);
}

.check-option span span {
    color: #6f7f96;
    font-size: 0.85rem;
    line-height: 1.45;
}

.search-shell {
    width: min(320px, 100%);
}

.table-shell {
    background: var(--rvm-surface);
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 1.35rem;
    box-shadow: var(--rvm-shadow);
}

.table-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}

.table-result {
    color: #6f7f96;
    font-size: 0.9rem;
}

.table-clean {
    --bs-table-bg: transparent;
    --bs-table-color: var(--bs-body-color);
    --bs-table-border-color: #e4ecf7;
    margin-bottom: 0;
}

.table-clean thead th {
    font-size: 0.77rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #74849c;
    white-space: nowrap;
    border-bottom-width: 1px;
    vertical-align: middle;
}

.table-clean tbody td {
    vertical-align: middle;
}

.table-clean tbody tr:hover {
    background: rgba(var(--bs-primary-rgb), 0.03);
}

.table-sort {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
    color: inherit;
}

.table-sort-indicator {
    color: #93a0b4;
    font-size: 0.8rem;
}

.filter-row th {
    padding-top: 0.55rem;
    padding-bottom: 0.8rem;
    background: #f8fbff;
}

.filter-row .form-control,
.filter-row .form-select {
    min-width: 7rem;
    font-size: 0.85rem;
}

.permission-grid {
    display: grid;
    gap: 0.75rem;
}

.permission-row {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: minmax(0, 1fr) 170px;
    align-items: center;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    border: 1px solid #e4ecf7;
    background: #fff;
}

.permission-meta strong,
.permission-meta span,
.table-muted {
    display: block;
}

.permission-meta span,
.table-muted {
    color: #6f7f96;
    font-size: 0.84rem;
    line-height: 1.45;
}

.permission-level {
    min-width: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    border-bottom: 1px solid #e4ecf7;
}

th, td {
    padding: 0.85rem 1rem;
    text-align: left;
}

tbody tr {
    border-bottom: 1px solid #edf2f9;
}

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

.btn, button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.1rem;
    border-radius: 0.95rem;
    border: 0;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn:hover,
button[type="submit"]:hover {
    transform: translateY(-1px);
}

.btn-primary,
button[type="submit"] {
    color: #fff;
    background: linear-gradient(135deg, var(--bs-primary), #5f96ff);
    box-shadow: 0 12px 24px rgba(var(--bs-primary-rgb), 0.18);
}

.btn-primary:hover,
button[type="submit"]:hover {
    color: #fff;
}

.btn-secondary {
    background: #e7eef8;
    color: #31435f;
}

.btn-secondary:hover {
    background: #dbe6f3;
    color: #1f2f46;
}

.btn-danger {
    background: linear-gradient(135deg, var(--bs-danger), #ef7184);
    color: #fff;
}

.btn-danger:hover {
    color: #fff;
}

.btn-outline {
    background: #fff;
    border: 1px solid #d8e1ee;
    color: #324660;
}

.btn-outline:hover {
    background: #f8fbff;
    color: #1e3150;
}

.btn-sm {
    padding: 0.45rem 0.8rem;
    font-size: 0.8rem;
}

.btn-group,
.action-cluster,
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.form-group {
    margin-bottom: 1rem;
}

.form-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form-group label,
label {
    display: block;
    margin-bottom: 0.45rem;
    color: #5f728d;
    font-size: 0.82rem;
    font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="tel"],
input[type="password"],
input[type="search"],
input[type="url"],
textarea,
select,
.form-control,
.form-select {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border-radius: 0.95rem;
    border: 1px solid #d8e1ee;
    background: #fff;
    color: var(--bs-body-color);
    font-family: inherit;
    font-size: 0.92rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
textarea:focus,
select:focus,
.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: rgba(var(--bs-primary-rgb), 0.6);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.12);
}

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

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
}

.badge-success {
    background: rgba(var(--bs-success-rgb), 0.12);
    color: var(--bs-success);
}

.badge-warning {
    background: rgba(var(--bs-warning-rgb), 0.18);
    color: #9d6710;
}

.badge-danger {
    background: rgba(var(--bs-danger-rgb), 0.12);
    color: var(--bs-danger);
}

.badge-neutral,
.badge-gray {
    background: rgba(var(--bs-secondary-rgb), 0.12);
    color: #5f728d;
}

.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    display: inline-block;
}

.status-dot.success {
    background: var(--bs-success);
}

.status-dot.danger {
    background: var(--bs-danger);
}

.status-dot.warning {
    background: var(--bs-warning);
}

.empty-state,
.loading {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #6f7f96;
    background: rgba(255, 255, 255, 0.65);
    border: 1px dashed #d5dfed;
    border-radius: 1.2rem;
}

.empty-state h2 {
    color: var(--bs-body-color);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.toolbar .search {
    flex: 1;
    max-width: 320px;
}

.alert {
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(var(--bs-success-rgb), 0.12);
    border-color: rgba(var(--bs-success-rgb), 0.16);
    color: var(--bs-success);
}

.alert-warning {
    background: rgba(var(--bs-warning-rgb), 0.18);
    border-color: rgba(var(--bs-warning-rgb), 0.2);
    color: #9d6710;
}

.alert-danger {
    background: rgba(var(--bs-danger-rgb), 0.12);
    border-color: rgba(var(--bs-danger-rgb), 0.16);
    color: var(--bs-danger);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 200;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(6px);
}

.modal-content {
    width: min(560px, 100%);
    max-height: 85vh;
    overflow-y: auto;
    padding: 1.5rem;
    background: var(--rvm-surface);
    border-radius: 1.2rem;
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: var(--rvm-shadow);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e7eef8;
}

.valid.modified:not([type=checkbox]) {
    outline: none;
    border-color: rgba(var(--bs-success-rgb), 0.5);
}

.invalid {
    outline: none;
    border-color: rgba(var(--bs-danger-rgb), 0.65) !important;
}

.validation-message {
    margin-top: 0.25rem;
    color: var(--bs-danger);
    font-size: 0.78rem;
}

.blazor-error-boundary {
    background: rgba(var(--bs-danger-rgb), 0.12);
    border: 1px solid rgba(var(--bs-danger-rgb), 0.16);
    border-radius: 1rem;
    padding: 1rem 1.2rem;
    color: var(--bs-danger);
    margin: 1rem 0;
}

.blazor-error-boundary::after {
    content: "Ocorreu um erro de interface.";
}

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.75rem 1.25rem;
    background: #fff9e8;
    border-top: 2px solid var(--bs-warning);
    color: #6f5200;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    top: 0.55rem;
    right: 0.85rem;
}

.wa-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.wa-pill-success {
    background: rgba(var(--bs-success-rgb), 0.12);
    border-color: rgba(var(--bs-success-rgb), 0.18);
    color: var(--bs-success);
}

.wa-pill-muted {
    background: rgba(var(--bs-warning-rgb), 0.18);
    border-color: rgba(var(--bs-warning-rgb), 0.22);
    color: #94600d;
}

.wa-frame-wrapper {
    overflow: hidden;
    border-radius: 1.1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #0f172a;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.wa-frame {
    display: block;
    width: 100%;
    min-height: 540px;
    border: 0;
}

.wa-steps,
.note-list {
    margin: 0;
    padding-left: 1.1rem;
    color: #55677f;
}

.wa-steps li,
.note-list li {
    margin-bottom: 0.6rem;
    line-height: 1.5;
}

::-webkit-scrollbar {
    width: 0.5rem;
    height: 0.5rem;
}

::-webkit-scrollbar-thumb {
    background: #cbd7e6;
    border-radius: 999px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

@media (max-width: 1080px) {
    .login-grid,
    .layout {
        grid-template-columns: 1fr;
    }

    .content-split {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        height: auto;
    }
}

@media (max-width: 767.98px) {
    .login-shell,
    .main-content {
        padding: 1rem;
    }

    .login-panel-dark,
    .login-panel-light,
    .topbar,
    .page-header-inline,
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .stats-grid,
    .summary-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

    th,
    td {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}
