:root {
    --font-sans: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --bg: #edf1f5;
    --bg-panel: #ffffff;
    --bg-panel-soft: #f8fafc;
    --bg-sidebar: #1b2430;
    --bg-sidebar-soft: #273244;
    --text: #17202b;
    --text-soft: #66758a;
    --line: rgba(148, 163, 184, 0.30);
    --primary: #1f4b7a;
    --primary-dark: #17385b;
    --primary-soft: rgba(31, 75, 122, 0.10);
    --success: #1f6b57;
    --danger: #b42318;
    --shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    --shadow-soft: 0 8px 18px rgba(15, 23, 42, 0.04);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(237, 241, 245, 0.96) 100%),
        var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

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

.dashboard-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
}

.sidebar {
    background: linear-gradient(180deg, var(--bg-sidebar) 0%, #141b24 100%);
    color: #f8fafc;
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-main {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #274c77, #3f6794);
    font-weight: 800;
    color: white;
}

.brand-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.brand-subtitle,
.eyebrow,
.panel-kicker,
.stat-label,
.detail-label {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.82rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-link {
    padding: 12px 14px;
    border-radius: 8px;
    background: transparent;
    color: rgba(248, 250, 252, 0.82);
    transition: 160ms ease;
    border: 1px solid transparent;
}

.nav-link:hover,
.nav-link.is-active {
    background: var(--bg-sidebar-soft);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.08);
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-user {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-user strong {
    font-size: 0.95rem;
    color: #ffffff;
}

.sidebar-user-email {
    color: rgba(248, 250, 252, 0.68);
    font-size: 0.84rem;
    word-break: break-word;
}

.sidebar-logout-form {
    margin: 0;
}

.sidebar-logout-button {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease;
}

.sidebar-logout-button:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.22);
}

.main-content {
    padding: 28px;
}

.app-footer {
    margin-top: 22px;
    padding: 14px 2px 4px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--text-soft);
    font-size: 0.84rem;
}

.topbar,
.panel-header,
.form-actions,
.actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-chip {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg-panel-soft);
    min-width: 180px;
}

.user-chip strong {
    font-size: 0.95rem;
}

.user-chip-label {
    color: var(--text-soft);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.topbar {
    margin-bottom: 22px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
}

.topbar h1,
.panel-header h2 {
    margin: 4px 0 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.stat-card,
.panel,
.detail-card {
    background: var(--bg-panel);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: var(--shadow);
    border-radius: 10px;
}

.stat-card {
    padding: 20px;
}

.stat-value {
    display: block;
    margin-top: 10px;
    font-size: 2rem;
    line-height: 1;
}

.panel {
    padding: 22px;
}

.panel-elevated {
    position: relative;
    overflow: hidden;
}

.panel-elevated::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #274c77, #5c7ea6);
}

.table-wrapper {
    overflow-x: auto;
}

.panel-search-form {
    margin-top: 18px;
}

.panel-search-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.panel-search-input {
    flex: 1 1 320px;
    min-width: 0;
    padding: 13px 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--text);
    box-shadow: var(--shadow-soft);
}

.panel-search-input:focus {
    outline: 2px solid rgba(31, 75, 122, 0.10);
    border-color: rgba(31, 75, 122, 0.28);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
}

.data-table th,
.data-table td {
    padding: 15px 12px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

.data-table th {
    color: var(--text-soft);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.data-table tbody tr:hover {
    background: rgba(31, 75, 122, 0.03);
}

.empty-state {
    text-align: center;
    color: var(--text-soft);
    padding: 24px 0;
}

.button {
    border: 0;
    border-radius: 8px;
    padding: 11px 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 160ms ease, opacity 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: linear-gradient(135deg, var(--primary), #315d8e);
    color: white;
}

.button-secondary {
    background: #f7f9fc;
    color: var(--text);
    border: 1px solid rgba(148, 163, 184, 0.24);
}

.button-danger {
    background: linear-gradient(135deg, #b42318, #931f15);
    color: white;
}

.alert {
    margin-bottom: 18px;
    padding: 13px 16px;
    border-radius: 8px;
}

.alert-success {
    background: rgba(31, 107, 87, 0.08);
    color: var(--success);
    border: 1px solid rgba(31, 107, 87, 0.16);
}

.alert-error {
    background: rgba(180, 35, 24, 0.08);
    color: var(--danger);
    border: 1px solid rgba(180, 35, 24, 0.16);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.badge-activa {
    background: rgba(31, 107, 87, 0.12);
    color: var(--success);
}

.badge-inactiva {
    background: rgba(180, 35, 24, 0.10);
    color: var(--danger);
}

.logo-thumb,
.logo-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 8px;
}

.dashboard-table .logo-thumb,
.dashboard-table .logo-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 8px;
}

.logo-thumb,
.logo-preview {
    object-fit: cover;
}

.logo-placeholder {
    display: grid;
    place-items: center;
    background: rgba(31, 75, 122, 0.08);
    color: var(--text);
    font-weight: 800;
}

.dashboard-company {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dashboard-company strong {
    font-size: 0.98rem;
}

.dashboard-company span {
    color: var(--text-soft);
    font-size: 0.84rem;
}

.logo-preview {
    width: 120px;
    height: 120px;
    border-radius: 10px;
}

.logo-placeholder-lg {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    font-size: 1.8rem;
}

.text-link {
    color: var(--primary-dark);
    font-weight: 700;
}

.text-danger {
    color: var(--danger);
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    flex-wrap: wrap;
    min-width: 0;
}

.inline-form {
    margin: 0;
}

.inline-form button {
    line-height: 1.2;
}

.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    padding: 9px 12px;
    border-radius: 7px;
    border: 1px solid transparent;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1;
    background: #f7f9fc;
    color: var(--text);
    transition: transform 160ms ease, border-color 160ms ease;
}

.action-button:hover {
    transform: translateY(-1px);
}

.action-button-view {
    background: rgba(37, 99, 235, 0.06);
    border-color: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

.action-button-edit {
    background: rgba(31, 75, 122, 0.08);
    border-color: rgba(31, 75, 122, 0.14);
    color: var(--primary-dark);
}

.action-button-delete {
    background: rgba(180, 35, 24, 0.08);
    border-color: rgba(180, 35, 24, 0.14);
    color: var(--danger);
    cursor: pointer;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease;
}

.icon-button:hover {
    transform: translateY(-1px);
    border-color: rgba(31, 75, 122, 0.30);
}

.icon-button-mark {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: inline-grid;
    place-items: center;
}

.icon-button-mark svg {
    width: 16px;
    height: 16px;
}

.icon-button-bank .icon-button-mark {
    background: rgba(37, 99, 235, 0.10);
    color: #1d4ed8;
}

.icon-button-sat .icon-button-mark {
    background: rgba(31, 75, 122, 0.12);
    color: var(--primary-dark);
}

.icon-button-fiel .icon-button-mark {
    background: rgba(100, 116, 139, 0.14);
    color: #475569;
}

.data-modal {
    border: 0;
    padding: 0;
    background: transparent;
    max-width: min(920px, calc(100vw - 32px));
    width: 100%;
}

.data-modal::backdrop {
    background: rgba(15, 23, 42, 0.44);
}

.modal-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.confirm-card {
    max-width: 430px;
    margin: 0 auto;
    padding: 28px 24px 22px;
    text-align: center;
}

.confirm-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-size: 2rem;
    font-weight: 800;
}

.confirm-icon-warning {
    background: rgba(180, 35, 24, 0.10);
    color: var(--danger);
}

.confirm-content h3 {
    margin: 0 0 8px;
    font-size: 1.35rem;
}

.confirm-content p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.5;
}

.confirm-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px 16px;
    border-bottom: 1px solid var(--line);
}

.modal-header h3 {
    margin: 6px 0 0;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: #f8fafc;
    color: var(--text);
    cursor: pointer;
    font-weight: 700;
}

.modal-body {
    padding: 20px 22px 22px;
}

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

.modal-table .data-table {
    margin-top: 0;
}

.modal-data-table td,
.modal-data-table th {
    padding: 12px 10px;
}

.copy-chip {
    width: 100%;
    text-align: left;
    border: 1px solid rgba(31, 75, 122, 0.14);
    background: rgba(31, 75, 122, 0.05);
    color: var(--primary-dark);
    border-radius: 7px;
    padding: 9px 11px;
    cursor: pointer;
    font-weight: 700;
}

.copy-chip-block {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
}

.swal-toast {
    position: fixed;
    top: 28px;
    right: 28px;
    z-index: 1200;
    min-width: 320px;
    max-width: 420px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 18px 16px;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #ffffff;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.16);
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
    transition: opacity 180ms ease, transform 180ms ease;
}

.swal-toast.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.swal-toast-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(31, 107, 87, 0.12);
    color: var(--success);
    font-weight: 800;
    flex-shrink: 0;
}

.swal-toast[data-toast-type='error'] .swal-toast-icon {
    background: rgba(180, 35, 24, 0.10);
    color: var(--danger);
}

.swal-toast-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.swal-toast-content strong {
    font-size: 1rem;
}

.swal-toast-content span {
    color: var(--text-soft);
    line-height: 1.45;
}

.swal-toast-close {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: var(--text-soft);
    font-weight: 700;
    cursor: pointer;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
    background:
        radial-gradient(circle at top left, rgba(39, 76, 119, 0.14), transparent 35%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(237, 241, 245, 0.98) 100%),
        var(--bg);
}

.auth-layout {
    width: min(1080px, 100%);
    display: grid;
    grid-template-columns: minmax(320px, 1.05fr) minmax(380px, 0.95fr);
    gap: 24px;
    align-items: stretch;
}

.auth-aside,
.auth-card {
    padding: 32px;
    background: var(--bg-panel);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.auth-aside {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        linear-gradient(180deg, rgba(31, 75, 122, 0.06) 0%, rgba(31, 75, 122, 0.02) 100%),
        var(--bg-panel);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.auth-brand-large .brand-mark {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    font-size: 1.2rem;
}

.auth-aside-copy h1 {
    margin: 6px 0 14px;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.08;
    max-width: 11ch;
}

.auth-feature-list {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.auth-signature {
    margin-top: 24px;
    color: var(--text-soft);
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}

.auth-feature-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
}

.auth-feature-item strong {
    font-size: 0.96rem;
}

.auth-feature-item span {
    color: var(--text-soft);
    line-height: 1.5;
}

.auth-card {
    width: 100%;
    max-width: 520px;
    justify-self: end;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-copy {
    margin-bottom: 20px;
}

.auth-copy h1,
.auth-copy h2 {
    margin: 6px 0 10px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 0.94rem;
}

.checkbox-row input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.auth-submit {
    width: 100%;
    justify-content: center;
}

.auth-card-signature {
    margin: 18px 0 0;
    color: var(--text-soft);
    font-size: 0.84rem;
    text-align: center;
}

.stats-grid-users {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel-form {
    max-width: 900px;
}

.auth-admin-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

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

.edit-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.9fr);
    gap: 20px;
    align-items: start;
}

.detail-stack {
    display: grid;
    gap: 20px;
}

.detail-panel {
    margin: 0;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-group label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
}

.field-group-full,
.detail-card-full {
    grid-column: 1 / -1;
}

.field-group input,
.field-group select,
.field-group textarea {
    width: 100%;
    padding: 13px 14px;
    border-radius: 7px;
    border: 1px solid var(--line);
    background: #fbfcfe;
    box-shadow: none;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
    outline: 2px solid rgba(31, 75, 122, 0.12);
    border-color: rgba(31, 75, 122, 0.34);
}

.field-error {
    color: var(--danger);
}

.helper-text {
    margin: 0;
    color: var(--text-soft);
}

.section-divider {
    padding-top: 12px;
    margin-top: 4px;
    border-top: 1px solid var(--line);
}

.section-title {
    margin: 6px 0 0;
    font-size: 1.06rem;
}

.form-section {
    padding: 18px;
    border: 1px solid var(--line);
    background: var(--bg-panel-soft);
    border-radius: 8px;
}

.form-section-heading {
    margin-bottom: 16px;
}

.form-section-heading .section-title {
    margin-top: 4px;
}

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

.panel-header-tight {
    margin-bottom: 18px;
}

.panel-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 0.8rem;
    font-weight: 700;
}

.document-link {
    color: var(--primary-dark);
    font-weight: 700;
}

.document-empty {
    color: var(--text-soft);
    font-size: 0.92rem;
}

.bank-card {
    padding: 18px;
    background: var(--bg-panel-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: none;
}

.bank-card-header h4 {
    margin: 0 0 16px;
}

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

.bank-form-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-actions-bottom {
    margin-top: 6px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.detail-card,
.detail-logo {
    padding: 18px;
}

.detail-logo {
    background: #f8fafc;
    border-radius: 8px;
    display: grid;
    place-items: center;
}

.pagination-wrap {
    margin-top: 20px;
}

.pagination-wrap nav {
    display: flex;
}

.panel-pagination {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.panel-pagination-summary {
    color: var(--text-soft);
    font-size: 0.88rem;
}

.panel-pagination-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.panel-page-button,
.panel-page-number,
.panel-page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--text);
    font-weight: 700;
    font-size: 0.88rem;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.panel-page-button,
.panel-page-number {
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.panel-page-button:hover,
.panel-page-number:hover {
    transform: translateY(-1px);
    border-color: rgba(31, 75, 122, 0.28);
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.panel-page-number.is-active {
    background: #ffffff;
    border-color: rgba(31, 75, 122, 0.24);
    color: var(--primary-dark);
    box-shadow: inset 0 0 0 2px rgba(31, 75, 122, 0.12);
}

.panel-page-button-nav {
    padding-inline: 18px;
}

.panel-page-button.is-disabled {
    color: var(--text-soft);
    background: #ffffff;
    cursor: default;
    opacity: 0.72;
}

.panel-page-ellipsis {
    border-style: dashed;
    color: var(--text-soft);
    background: transparent;
    box-shadow: none;
}

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

@media (max-width: 900px) {
    .dashboard-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        padding-bottom: 12px;
    }

    .edit-shell {
        grid-template-columns: 1fr;
    }

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

    .auth-card {
        max-width: none;
        justify-self: stretch;
    }
}

@media (max-width: 640px) {
    .main-content {
        padding: 18px;
    }

    .stats-grid,
    .stats-grid-users,
    .form-grid,
    .section-grid,
    .detail-grid,
    .bank-grid,
    .modal-grid {
        grid-template-columns: 1fr;
    }

    .topbar,
    .panel-header,
    .form-actions,
    .actions,
    .confirm-actions,
    .topbar-actions,
    .app-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .user-chip {
        min-width: 0;
    }

    .table-actions {
        align-items: flex-start;
        gap: 12px;
    }

    .panel-search-group {
        align-items: stretch;
    }

    .icon-button {
        width: 100%;
        justify-content: flex-start;
    }

    .swal-toast {
        top: 18px;
        right: 18px;
        left: 18px;
        min-width: 0;
        max-width: none;
    }

    .auth-shell {
        padding: 18px;
    }

    .auth-card {
        padding: 24px;
    }

    .auth-aside {
        padding: 24px;
    }

    .panel-pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .panel-pagination-links {
        justify-content: flex-start;
    }
}
