:root {
    --primary: #38C7E8;
    --primary-dark: #1B1E8A;
    --primary-light: #7FD34E;
    --background: #F5F7FA;
    --surface: #FFFFFF;
    --border: #E5E7EB;
    --text: #16324a;
    --muted: #67839c;
    --success: #24a46d;
    --warning: #d98c1b;
    --danger: #d14343;
    --shadow: 0 18px 45px rgba(0, 90, 140, 0.1);
    --sidebar-width: clamp(248px, 22vw, 290px);
    --page-padding: clamp(16px, 2.2vw, 28px);
    --footer-height: 46px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100dvh;
    font-family: 'Manrope', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(77, 163, 217, 0.18), transparent 28%),
        radial-gradient(circle at bottom right, rgba(0, 130, 201, 0.08), transparent 24%),
        var(--background);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.crm-shell {
    min-height: 100dvh;
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.sidebar {
    background: linear-gradient(180deg, #1B1E8A 0%, #121568 100%);
    color: #fff;
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    min-width: 0;
    overflow: hidden;
    min-height: 100dvh;
    overflow-y: auto;
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    min-width: 0;
}

.brand-mark-logo-only {
    justify-content: center;
    margin-bottom: 34px;
}

.brand-mark.large {
    margin-bottom: 20px;
}

.brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    background: linear-gradient(135deg, #38C7E8 0%, #7FD34E 100%);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.brand-logo-image {
    display: block;
    width: 148px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.header-brand-lockup {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 108px;
}

.header-brand-logo {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.brand-mark strong,
.topbar h1,
.panel-card h2,
.modal-header h3,
.auth-panel h1,
.auth-panel h2 {
    font-family: 'Outfit', sans-serif;
}

.brand-mark small,
.user-summary small,
.sidebar small,
.topbar p,
.panel-toolbar p,
.metric-card small {
    color: rgba(255, 255, 255, 0.72);
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.82);
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.sidebar-footer {
    display: grid;
    gap: 14px;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    min-width: 0;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.2);
    font-weight: 800;
}

.logout-link {
    color: rgba(255, 255, 255, 0.9);
}

.content-area {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
}

.footer {
    background: linear-gradient(90deg, #00486f 0%, #005a8c 54%, #0a6da4 100%);
    color: #ffffff;
    text-align: center;
    font-size: 12px;
    flex-shrink: 0;
    height: var(--footer-height);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: 25;
    padding: 8px 18px;
    line-height: 1.1;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 -10px 26px rgba(0, 48, 76, 0.18);
}

.content-area > .footer {
    left: var(--sidebar-width);
}

.footer-item {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
}

.footer-note {
    color: rgba(230, 247, 255, 0.9);
}

.footer-separator {
    color: rgba(255, 255, 255, 0.45);
    font-size: 10px;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-highlight {
    font-weight: 800;
    letter-spacing: 0.03em;
    text-decoration: none;
}

.footer-highlight.brand-maker {
    font-weight: 800;
    color: #eaffdb;
}

.footer-highlight.brand-client {
    color: #e8fbff;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: clamp(16px, 2vw, 22px) var(--page-padding);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    position: sticky;
    top: 0;
    z-index: 10;
}

.topbar h1,
.topbar p {
    margin: 0;
}

.topbar h1 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1;
}

.topbar p {
    color: var(--muted);
    font-size: clamp(0.92rem, 1.3vw, 1.05rem);
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.brand-mark > div,
.user-chip > div,
.topbar-left > div,
.topbar-right > div,
.auth-form-wrap,
.auth-panel-form,
.auth-panel-brand {
    min-width: 0;
}

.brand-mark strong,
.brand-mark small,
.user-chip strong,
.user-chip small,
.user-summary strong,
.user-summary small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-summary {
    min-width: 0;
    max-width: min(260px, 42vw);
}

.page-body {
    flex: 1;
    padding: var(--page-padding) var(--page-padding) calc(var(--page-padding) + var(--footer-height));
    display: grid;
    gap: 24px;
    min-width: 0;
    min-height: 0;
    overflow: auto;
}

.panel-card,
.metric-card,
.auth-panel {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
    gap: 18px;
}

.metric-card {
    padding: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-card strong {
    display: block;
    font-size: 28px;
    margin-top: 10px;
}

.metric-card small,
.panel-toolbar p,
.mini-list-item small,
.auth-form-wrap p,
.section-eyebrow,
.setting-card p {
    color: var(--muted);
}

.metric-icon {
    font-size: 34px;
    color: var(--primary);
}

.dashboard-grid,
.settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr);
    gap: 20px;
}

.settings-grid-single {
    grid-template-columns: minmax(320px, 760px);
    justify-content: center;
}

.config-stage {
    position: relative;
    isolation: isolate;
}

.config-stage::before,
.config-stage::after {
    content: '';
    position: absolute;
    inset: auto;
    border-radius: 999px;
    pointer-events: none;
    z-index: -1;
    filter: blur(14px);
}

.config-stage::before {
    width: 220px;
    height: 220px;
    top: -22px;
    left: calc(50% - 360px);
    background: radial-gradient(circle, rgba(56, 199, 232, 0.24) 0%, rgba(56, 199, 232, 0) 70%);
}

.config-stage::after {
    width: 260px;
    height: 260px;
    right: calc(50% - 390px);
    bottom: -34px;
    background: radial-gradient(circle, rgba(127, 211, 78, 0.2) 0%, rgba(127, 211, 78, 0) 72%);
}

.panel-card {
    padding: clamp(18px, 2vw, 24px);
}

.resource-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: min(78dvh, 980px);
    overflow: hidden;
}

.resource-panel--view-cards,
.resource-panel--view-kanban {
    grid-template-rows: auto auto;
    min-height: auto;
    overflow: visible;
}

.resource-panel:not(.resource-panel--view-table) .table-helper,
.resource-panel:not(.resource-panel--view-table) [data-table-compact-toggle] {
    display: none;
}

.resource-panel-head {
    display: grid;
    gap: 0;
    position: relative;
    z-index: 1;
    background: inherit;
}

.tracker-tabs {
    display: flex;
    gap: 10px;
    overflow: auto;
    padding-bottom: 6px;
    margin-bottom: 18px;
    scrollbar-width: thin;
}

.tracker-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--primary-dark);
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid rgba(27, 30, 138, 0.08);
}

.tracker-tab.active {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #252ab1 100%);
    color: #fff;
    box-shadow: 0 12px 22px rgba(35, 44, 178, 0.16);
}

.chart-shell {
    position: relative;
    height: clamp(260px, 34vh, 360px);
    min-height: 260px;
    max-height: 360px;
}

.chart-shell canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-height: 100%;
}

.panel-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    min-width: 0;
}

.panel-toolbar.compact {
    margin-bottom: 16px;
}

.panel-toolbar h2,
.modal-header h3,
.setting-card h2,
.auth-form-wrap h2 {
    margin: 0 0 6px;
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    min-width: 0;
    justify-content: flex-end;
}

.toolbar-actions > * {
    min-width: 0;
}

.toolbar-actions .search-box {
    flex: 1 1 240px;
}

.toolbar-actions .inline-filter {
    flex: 1 1 320px;
}

.view-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 16px;
    background: #eef5fa;
    min-width: 0;
    flex-wrap: wrap;
}

.btn-view-switch {
    height: 38px;
    padding: 0 14px;
}

.search-box,
.inline-filter label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    height: 46px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    min-width: 0;
    overflow: hidden;
}

.search-box input,
.inline-filter select {
    border: 0;
    outline: none;
    background: transparent;
    min-width: 130px;
    width: 100%;
    flex: 1 1 auto;
}

.inline-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    min-width: 0;
}

.inline-filter label {
    flex: 1 1 220px;
}

.btn,
.icon-btn {
    border: 0;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn:hover,
.icon-btn:hover {
    transform: translateY(-1px);
}

.btn {
    height: 46px;
    padding: 0 18px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.15;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #252ab1 100%);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #252ab1 0%, var(--primary-dark) 100%);
}

.btn-secondary,
.icon-btn {
    background: #eef4ff;
    color: var(--primary-dark);
}

.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-grid;
    place-items: center;
}

.icon-btn.danger {
    color: var(--danger);
    background: #fdeeee;
}

.icon-btn.is-copied {
    color: #0f5f46;
    background: #eaf8f1;
}

.table-wrapper {
    overflow: auto;
    border: 1px solid rgba(229, 231, 235, 0.95);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(245,247,250,0.95) 100%);
    scrollbar-width: thin;
    min-height: 0;
    max-height: 100%;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.data-table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 13px;
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 11px 12px;
    border-bottom: 1px solid var(--border);
    white-space: normal;
    vertical-align: middle;
    min-width: 148px;
    max-width: 220px;
    overflow-wrap: anywhere;
}

.data-table th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #49647c;
    position: sticky;
    top: 0;
    z-index: 4;
    background: linear-gradient(180deg, rgba(248, 251, 253, 0.99) 0%, rgba(240, 247, 253, 0.98) 100%);
    backdrop-filter: blur(12px);
    box-shadow: inset 0 -1px 0 rgba(214, 226, 238, 0.98), 0 8px 18px rgba(23, 53, 89, 0.05);
}

.data-table tbody tr:nth-child(even) {
    background: rgba(248, 251, 253, 0.8);
}

.data-table tbody tr:hover {
    background: rgba(236, 245, 255, 0.7);
}

.data-table tbody tr:hover td.is-primary-col {
    background: linear-gradient(90deg, rgba(233, 242, 252, 0.99) 0%, rgba(233, 242, 252, 0.94) 100%);
}

.data-table td:first-child,
.data-table th:first-child {
    position: sticky;
    left: 0;
    z-index: 3;
    background: inherit;
}

.data-table th:first-child {
    background: rgba(244, 248, 253, 0.98);
}

.data-table .is-primary-col {
    font-weight: 700;
}

.data-table td.is-primary-col {
    background: linear-gradient(90deg, rgba(244, 248, 253, 0.98) 0%, rgba(244, 248, 253, 0.92) 100%);
    box-shadow: 10px 0 14px rgba(20, 47, 88, 0.04);
}

.data-table th.is-primary-col {
    box-shadow: inset 0 -1px 0 rgba(229, 231, 235, 0.95), 10px 0 14px rgba(20, 47, 88, 0.04);
}

.actions-col,
.actions-cell {
    position: sticky;
    right: 0;
    z-index: 3;
    background: #fff;
    min-width: 132px;
    box-shadow: -10px 0 14px rgba(20, 47, 88, 0.04);
}

.actions-col {
    background: rgba(248, 251, 253, 0.98);
}

.data-table .col-currency {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.data-table .col-date {
    min-width: 126px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.data-table .col-status {
    min-width: 134px;
}

.tag-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: #edf4ff;
    color: #143f6b;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.tag-admin {
    background: #e8eefc;
    color: #243b8f;
}

.tag-vendedor {
    background: #ebf8f3;
    color: #116149;
}

.tag-operaciones {
    background: #fff3e6;
    color: #a95512;
}

.tag-urgente,
.tag-sin-seguimiento {
    background: #fff0ef;
    color: #c24130;
}

.tag-atencion {
    background: #fff7e8;
    color: #b7791f;
}

.tag-al-dia {
    background: #ecf9f1;
    color: #13795b;
}

.data-table td:not(.col-status) {
    line-height: 1.35;
}

.row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.table-helper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 13px;
}

.is-hidden {
    display: none !important;
}

.table-wrapper.compact .data-table th,
.table-wrapper.compact .data-table td {
    padding: 5px 8px;
    min-width: 96px;
    max-width: 148px;
    font-size: 11px;
}

.table-wrapper.compact .data-table th {
    font-size: 9px;
    letter-spacing: 0.09em;
}

.table-wrapper.compact .status-badge {
    padding: 3px 7px;
    font-size: 10px;
}

.table-wrapper.compact .icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
}

.table-wrapper.compact .actions-col,
.table-wrapper.compact .actions-cell {
    min-width: 104px;
}

.table-wrapper.compact .row-actions {
    gap: 6px;
}

.resource-panel-quotes .data-table .col-currency {
    color: #0f5f46;
    font-weight: 800;
}

.resource-panel-quotes .data-table .is-primary-col {
    min-width: 132px;
}

.quotes-overview-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-bottom: 8px;
}

.quotes-overview-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 252, 0.98) 100%);
}

.quotes-overview-card.is-currency {
    background: linear-gradient(180deg, #f3fbf7 0%, #e9f7ef 100%);
}

.quotes-overview-card .metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-grid;
    place-items: center;
    background: rgba(15, 91, 141, 0.08);
}

.quotes-overview-card.is-currency .metric-icon {
    background: rgba(15, 111, 82, 0.12);
    color: #0f6b52;
}

.resource-panel-quotes .table-helper,
.resource-panel-ventas .table-helper {
    margin-top: 4px;
}

.resource-panel-quotes .data-table td:nth-child(1),
.resource-panel-quotes .data-table th:nth-child(1) {
    min-width: 126px;
}

.resource-panel-quotes .data-table td:nth-child(2),
.resource-panel-quotes .data-table th:nth-child(2) {
    min-width: 220px;
}

.resource-panel-quotes .data-table td:nth-child(3),
.resource-panel-quotes .data-table th:nth-child(3) {
    min-width: 200px;
}

.resource-panel-quotes .data-table td:nth-child(4),
.resource-panel-quotes .data-table th:nth-child(4) {
    min-width: 124px;
}

.resource-panel-quotes .data-table td:nth-child(5),
.resource-panel-quotes .data-table th:nth-child(5),
.resource-panel-quotes .data-table td:nth-child(6),
.resource-panel-quotes .data-table th:nth-child(6) {
    min-width: 124px;
}

.sales-overview-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-bottom: 8px;
}

.sales-overview-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 252, 0.98) 100%);
}

.sales-overview-card.is-alert {
    background: linear-gradient(180deg, #fffdf7 0%, #fff6e7 100%);
}

.sales-overview-card.is-success {
    background: linear-gradient(180deg, #f3fbf7 0%, #e9f7ef 100%);
}

.sales-overview-card.is-currency {
    background: linear-gradient(180deg, #eef8ff 0%, #e4f1fb 100%);
}

.sales-overview-card .metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-grid;
    place-items: center;
    background: rgba(15, 91, 141, 0.08);
}

.sales-overview-card.is-alert .metric-icon {
    background: rgba(240, 171, 0, 0.12);
    color: #b7791f;
}

.sales-overview-card.is-success .metric-icon {
    background: rgba(15, 111, 82, 0.12);
    color: #0f6b52;
}

.sales-overview-card.is-currency .metric-icon {
    background: rgba(18, 92, 163, 0.12);
    color: #145ca3;
}

.resource-panel-ventas .data-table .col-currency {
    color: #0f5f46;
    font-weight: 800;
}

.resource-panel-ventas .data-table td:nth-child(1),
.resource-panel-ventas .data-table th:nth-child(1) {
    min-width: 118px;
}

.resource-panel-ventas .data-table td:nth-child(2),
.resource-panel-ventas .data-table th:nth-child(2) {
    min-width: 220px;
}

.resource-panel-ventas .data-table td:nth-child(3),
.resource-panel-ventas .data-table th:nth-child(3) {
    min-width: 190px;
}

.resource-panel-ventas .data-table td:nth-child(4),
.resource-panel-ventas .data-table th:nth-child(4),
.resource-panel-ventas .data-table td:nth-child(5),
.resource-panel-ventas .data-table th:nth-child(5),
.resource-panel-ventas .data-table td:nth-child(6),
.resource-panel-ventas .data-table th:nth-child(6),
.resource-panel-ventas .data-table td:nth-child(7),
.resource-panel-ventas .data-table th:nth-child(7) {
    min-width: 124px;
}

.resource-panel-prospeccion .data-table .is-primary-col,
.resource-panel-prospeccion .data-table .col-text {
    vertical-align: top;
}

.prospect-overview-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.prospect-overview-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 252, 0.98) 100%);
}

.prospect-overview-card.is-alert {
    background: linear-gradient(180deg, #fffdf7 0%, #fff6e7 100%);
}

.prospect-overview-card.is-danger {
    background: linear-gradient(180deg, #fff9f8 0%, #ffefec 100%);
}

.prospect-overview-card .metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-grid;
    place-items: center;
    background: rgba(27, 30, 138, 0.08);
}

.prospect-overview-card.is-alert .metric-icon {
    background: rgba(240, 171, 0, 0.12);
    color: #b7791f;
}

.prospect-overview-card.is-danger .metric-icon {
    background: rgba(201, 76, 55, 0.12);
    color: #c24130;
}

.resource-panel-prospeccion .status-warning {
    color: #9a6700;
    background: #fff7e3;
}

.resource-panel-prospeccion .status-danger {
    color: #b54708;
    background: #fff1ea;
}

.resource-panel-prospeccion .status-success {
    color: #0f6b52;
    background: #ecf9f1;
}

.resource-panel-prospeccion .data-table td:nth-child(1),
.resource-panel-prospeccion .data-table th:nth-child(1) {
    min-width: 180px;
}

.resource-panel-prospeccion .data-table td:nth-child(2),
.resource-panel-prospeccion .data-table th:nth-child(2) {
    min-width: 180px;
}

.resource-panel-prospeccion .data-table td:nth-child(5),
.resource-panel-prospeccion .data-table th:nth-child(5) {
    min-width: 124px;
}

.resource-panel-prospeccion .data-table td:nth-child(6),
.resource-panel-prospeccion .data-table th:nth-child(6) {
    min-width: 132px;
}

.resource-panel-prospeccion .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 360px));
    align-content: start;
}

.resource-panel-prospeccion .record-card-header {
    align-items: center;
}

.resource-panel-prospeccion .record-card-header > div,
.resource-panel-prospeccion .record-card-body {
    min-width: 0;
}

.resource-panel-prospeccion .record-card-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.resource-panel-quotes .cards-grid,
.resource-panel-ventas .cards-grid,
.resource-panel-operaciones .cards-grid,
.resource-panel-samples .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(340px, 420px));
    align-content: start;
}

.resource-panel-quotes .record-card,
.resource-panel-ventas .record-card,
.resource-panel-operaciones .record-card,
.resource-panel-samples .record-card,
.resource-panel-quotes .kanban-card,
.resource-panel-ventas .kanban-card,
.resource-panel-operaciones .kanban-card,
.resource-panel-samples .kanban-card {
    min-height: 100%;
}

.resource-panel-quotes .record-card-header,
.resource-panel-ventas .record-card-header,
.resource-panel-operaciones .record-card-header,
.resource-panel-samples .record-card-header {
    align-items: flex-start;
}

.resource-panel-quotes .record-card-header > div,
.resource-panel-quotes .record-card-body,
.resource-panel-ventas .record-card-header > div,
.resource-panel-ventas .record-card-body,
.resource-panel-operaciones .record-card-header > div,
.resource-panel-operaciones .record-card-body,
.resource-panel-samples .record-card-header > div,
.resource-panel-samples .record-card-body {
    min-width: 0;
}

.resource-panel-quotes .record-card-header h3,
.resource-panel-quotes .record-card-header p,
.resource-panel-quotes .card-field strong,
.resource-panel-quotes .card-field small,
.resource-panel-ventas .record-card-header h3,
.resource-panel-ventas .record-card-header p,
.resource-panel-ventas .card-field strong,
.resource-panel-ventas .card-field small,
.resource-panel-operaciones .record-card-header h3,
.resource-panel-operaciones .record-card-header p,
.resource-panel-operaciones .card-field strong,
.resource-panel-operaciones .card-field small,
.resource-panel-samples .record-card-header h3,
.resource-panel-samples .record-card-header p,
.resource-panel-samples .card-field strong,
.resource-panel-samples .card-field small {
    white-space: normal;
    overflow-wrap: anywhere;
}

.resource-panel-quotes .record-card-body,
.resource-panel-ventas .record-card-body,
.resource-panel-operaciones .record-card-body,
.resource-panel-samples .record-card-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

.resource-panel-quotes .card-field,
.resource-panel-ventas .card-field,
.resource-panel-operaciones .card-field,
.resource-panel-samples .card-field {
    min-height: 96px;
}

.resource-panel-quotes .record-card-footer,
.resource-panel-ventas .record-card-footer,
.resource-panel-operaciones .record-card-footer,
.resource-panel-samples .record-card-footer {
    margin-top: auto;
}

.resource-panel-quotes .record-card,
.resource-panel-ventas .record-card,
.resource-panel-operaciones .record-card,
.resource-panel-samples .record-card {
    grid-template-rows: auto 1fr auto;
    min-height: 320px;
}

.resource-panel-quotes .kanban-board,
.resource-panel-ventas .kanban-board,
.resource-panel-operaciones .kanban-board,
.resource-panel-samples .kanban-board {
    grid-template-columns: repeat(3, minmax(280px, 1fr));
}

.resource-panel-quotes .kanban-stack,
.resource-panel-ventas .kanban-stack,
.resource-panel-operaciones .kanban-stack,
.resource-panel-samples .kanban-stack {
    align-content: start;
}

.resource-panel-quotes .kanban-card,
.resource-panel-ventas .kanban-card,
.resource-panel-operaciones .kanban-card,
.resource-panel-samples .kanban-card {
    grid-template-rows: auto 1fr auto;
    min-height: 0;
    padding: 16px;
}

.resource-panel-quotes .kanban-card strong,
.resource-panel-ventas .kanban-card strong,
.resource-panel-operaciones .kanban-card strong,
.resource-panel-samples .kanban-card strong,
.resource-panel-quotes .kanban-meta span,
.resource-panel-ventas .kanban-meta span,
.resource-panel-operaciones .kanban-meta span,
.resource-panel-samples .kanban-meta span {
    overflow-wrap: anywhere;
}

.resource-panel-prospeccion .card-field strong {
    display: flex;
    align-items: center;
}

.resource-panel-ventas .data-table .col-currency,
.resource-panel-operaciones .data-table .col-date,
.resource-panel-samples .data-table .col-date {
    font-size: 12px;
}

.resource-panel-usuarios .record-card {
    overflow: hidden;
}

.resource-panel-usuarios .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 340px));
    align-content: start;
}

.resource-panel-usuarios .record-card-header {
    align-items: center;
}

.resource-panel-usuarios .record-card-header > div {
    min-width: 0;
}

.resource-panel-usuarios .record-card-header h3,
.resource-panel-usuarios .record-card-header p,
.resource-panel-usuarios .card-field strong,
.resource-panel-usuarios .card-field small {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.resource-panel-usuarios .record-card-header h3,
.resource-panel-usuarios .card-field strong {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.resource-panel-usuarios .record-card-header p {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.resource-panel-usuarios .record-card-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.resource-panel-usuarios .card-field {
    background: linear-gradient(180deg, #f8fbff 0%, #f3f7fb 100%);
}

.resource-panel-usuarios .card-field strong {
    display: flex;
    align-items: center;
}

.resource-panel-usuarios .card-field-badge,
.resource-panel-usuarios .card-field-status {
    align-items: center;
}

.resource-panel-usuarios .status-badge,
.resource-panel-usuarios .tag-badge {
    min-height: 32px;
}

.resource-panel-ventas .data-table td:nth-child(1),
.resource-panel-ventas .data-table th:nth-child(1),
.resource-panel-operaciones .data-table td:nth-child(1),
.resource-panel-operaciones .data-table th:nth-child(1),
.resource-panel-samples .data-table td:nth-child(1),
.resource-panel-samples .data-table th:nth-child(1) {
    min-width: 132px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    overflow: visible;
    min-height: 0;
    padding-bottom: 8px;
}

.record-card,
.kanban-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(247,250,252,0.96) 100%);
    border: 1px solid rgba(229, 231, 235, 0.96);
    border-radius: 22px;
    box-shadow: 0 14px 35px rgba(0, 90, 140, 0.08);
    align-self: start;
}

.record-card {
    padding: 20px;
    display: grid;
    gap: 16px;
}

.record-card-header,
.record-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.record-card-header h3,
.kanban-column-header h3 {
    margin: 0;
    font-size: 18px;
}

.record-card-header p,
.kanban-card-subtitle,
.kanban-column-header small,
.kanban-meta small,
.card-field small {
    margin: 4px 0 0;
    color: var(--muted);
}

.record-card-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.card-field {
    padding: 12px 14px;
    border-radius: 16px;
    background: #f7fbfe;
    border: 1px solid rgba(229, 231, 235, 0.9);
}

.card-field strong {
    display: block;
    margin-top: 6px;
    line-height: 1.35;
}

.kanban-board {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    gap: 18px;
    overflow-x: visible;
    overflow-y: visible;
    align-items: start;
    min-height: 0;
    padding: 6px 8px 14px 0;
    scroll-snap-type: none;
}

.kanban-column {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 22px;
    padding: 16px;
    min-height: 0;
    display: grid;
    align-content: start;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    scroll-snap-align: start;
    border-top-width: 3px;
}

.kanban-column--success {
    border-top-color: #22c55e;
}

.kanban-column--warning {
    border-top-color: #f59e0b;
}

.kanban-column--danger {
    border-top-color: #ef4444;
}

.kanban-column--neutral {
    border-top-color: #94a3b8;
}

.kanban-column-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.kanban-stack {
    display: grid;
    gap: 14px;
    align-content: start;
}

.kanban-card {
    padding: 16px;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 12px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
    min-height: 286px;
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.kanban-card:hover {
    border-color: rgba(148, 163, 184, 0.7);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.kanban-card--danger {
    border-left: 3px solid #ef4444;
}

.kanban-card--warning {
    border-left: 3px solid #f59e0b;
}

.kanban-card--success {
    border-left: 3px solid #22c55e;
}

.kanban-card-header {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.kanban-card-header strong,
.kanban-card-subtitle,
.kanban-meta span {
    overflow-wrap: anywhere;
}

.kanban-card-header strong {
    font-size: 17px;
    line-height: 1.2;
    color: #0f172a;
}

.kanban-card-subtitle {
    font-size: 13px;
    line-height: 1.35;
    color: #64748b;
}

.kanban-meta-grid {
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.kanban-meta {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.95);
    min-height: 64px;
    align-content: start;
    border-left-width: 3px;
}

.kanban-meta.is-priority {
    background: #f1f5f9;
    border-color: rgba(148, 163, 184, 0.5);
}

.kanban-meta--success {
    border-left-color: #22c55e;
}

.kanban-meta--warning {
    border-left-color: #f59e0b;
}

.kanban-meta--danger {
    border-left-color: #ef4444;
}

.kanban-meta--currency {
    border-left-color: #0f766e;
}

.kanban-meta-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.kanban-meta-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.kanban-meta-chip--warning {
    background: #fef3c7;
    color: #92400e;
}

.kanban-meta-chip--danger {
    background: #fee2e2;
    color: #b91c1c;
}

.kanban-meta-chip--success {
    background: #dcfce7;
    color: #166534;
}

.kanban-meta-chip--neutral,
.kanban-meta-chip--currency {
    background: #e2e8f0;
    color: #475569;
}

.kanban-meta small {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.kanban-meta span {
    font-weight: 600;
    color: #0f172a;
}

.kanban-card .record-card-footer {
    padding-top: 4px;
    border-top: 1px solid rgba(229, 231, 235, 0.75);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.status-success {
    color: var(--success);
    background: #eaf8f1;
}

.status-warning {
    color: var(--warning);
    background: #fff5e5;
}

.status-danger {
    color: var(--danger);
    background: #fdeeee;
}

.status-neutral {
    color: var(--primary-dark);
    background: #eef4ff;
}

.flash {
    padding: 14px 18px;
    border-radius: 16px;
    font-weight: 700;
}

.flash-success {
    background: #eaf8f1;
    color: var(--success);
}

.flash-error {
    background: #fdeeee;
    color: var(--danger);
}

.empty-state {
    display: grid;
    gap: 10px;
    padding: 24px 20px;
    align-content: start;
}

.empty-state strong,
.empty-state p {
    margin: 0;
}

.empty-state p {
    color: var(--muted);
    line-height: 1.5;
}

.mini-list {
    display: grid;
    gap: 14px;
}

.mini-list-item {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mini-list-item > div {
    min-width: 0;
    flex: 1 1 220px;
}

.mini-list-item strong,
.mini-list-item small {
    overflow-wrap: anywhere;
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 30;
}

.modal.open {
    display: flex;
}

.modal.open .modal-backdrop {
    animation: modalBackdropFade 180ms ease-out;
}

.modal.open .modal-dialog {
    animation: modalDialogIn 240ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 27, 42, 0.45);
    backdrop-filter: blur(8px);
}

.modal-dialog {
    position: relative;
    width: min(1120px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    overflow: auto;
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.16);
}

.alert-modal-dialog {
    width: min(520px, 100%);
    display: grid;
    gap: 18px;
    padding: 28px;
    border: 1px solid rgba(27, 30, 138, 0.08);
    background:
        radial-gradient(circle at top right, rgba(56, 199, 232, 0.18), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
}

.alert-modal-badge {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    box-shadow: 0 16px 32px rgba(27, 30, 138, 0.18);
}

.alert-modal-badge .material-symbols-outlined {
    font-size: 30px;
}

.alert-modal-copy {
    display: grid;
    gap: 10px;
}

.alert-modal-eyebrow {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary-dark);
}

.alert-modal-copy h3 {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.alert-modal-copy p:last-child {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.alert-modal-actions {
    display: flex;
    justify-content: flex-end;
}

.confirm-modal-dialog {
    width: min(560px, 100%);
    display: grid;
    gap: 24px;
    padding: 36px;
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(239, 68, 68, 0.08), transparent 40%),
        radial-gradient(circle at bottom left, rgba(251, 146, 60, 0.06), transparent 35%),
        linear-gradient(180deg, #ffffff 0%, #fffaf8 100%);
    box-shadow: 
        0 24px 48px rgba(185, 28, 28, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    animation: confirmModalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes confirmModalIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.94);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.confirm-modal-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.confirm-modal-badge {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: linear-gradient(135deg, #dc2626 0%, #f87171 100%);
    color: #fff;
    box-shadow: 
        0 20px 40px rgba(220, 38, 38, 0.3),
        0 0 0 3px rgba(254, 202, 202, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    position: relative;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 
            0 20px 40px rgba(220, 38, 38, 0.3),
            0 0 0 3px rgba(254, 202, 202, 0.5),
            0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    }
    50% {
        box-shadow: 
            0 20px 40px rgba(220, 38, 38, 0.4),
            0 0 0 6px rgba(254, 202, 202, 0.3),
            0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    }
}

.confirm-modal-badge .material-symbols-outlined {
    font-size: 36px;
    font-variation-settings: 'FILL' 1, 'wght' 300;
}

.confirm-modal-copy {
    display: grid;
    gap: 10px;
    padding-top: 4px;
}

.confirm-modal-eyebrow {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #dc2626;
    opacity: 0.9;
}

.confirm-modal-copy h3 {
    margin: 0;
    font-size: clamp(1.5rem, 2.4vw, 1.9rem);
    font-weight: 700;
    color: #450a0a;
    line-height: 1.2;
}

.confirm-modal-copy p:last-child {
    margin: 0;
    color: #7c2d12;
    line-height: 1.7;
    font-size: 0.95rem;
}

.confirm-modal-highlight {
    padding: 16px 20px;
    border-radius: 16px;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(254, 242, 242, 0.8));
    border: 2px solid rgba(220, 38, 38, 0.2);
    color: #991b1b;
    font-weight: 600;
    line-height: 1.6;
    box-shadow: 
        0 2px 8px rgba(185, 28, 28, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.confirm-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 8px;
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: #fff;
    font-weight: 600;
    padding: 13px 28px;
    border: none;
    box-shadow: 
        0 4px 12px rgba(220, 38, 38, 0.3),
        0 2px 4px rgba(220, 38, 38, 0.2);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(220, 38, 38, 0.4),
        0 4px 8px rgba(220, 38, 38, 0.3);
}

.btn-danger:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 8px rgba(220, 38, 38, 0.3),
        0 1px 2px rgba(220, 38, 38, 0.2);
}

.btn-secondary {
    font-weight: 600;
    padding: 13px 28px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@keyframes modalBackdropFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalDialogIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header,
.modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    .confirm-modal-hero {
        grid-template-columns: 1fr;
    }

    .confirm-modal-actions {
        flex-direction: column-reverse;
    }

    .confirm-modal-actions .btn {
        width: 100%;
    }
    gap: 16px;
    min-width: 0;
}

.modal-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.form-field {
    display: grid;
    gap: 8px;
}

.form-field.is-hidden {
    display: none;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 13px 14px;
    background: #fff;
    color: var(--text);
}

.form-field textarea,
.modal-form .form-field:has(textarea),
.form-field.is-full {
    grid-column: span 2;
}

.modal-footer {
    grid-column: span 2;
    justify-content: flex-end;
    margin-top: 6px;
}

.guest-body {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 0;
    background:
        radial-gradient(circle at top left, rgba(56, 199, 232, 0.2), transparent 24%),
        radial-gradient(circle at bottom right, rgba(127, 211, 78, 0.18), transparent 22%),
        linear-gradient(180deg, #eff5fb 0%, #f8fbff 100%);
}

.guest-main {
    flex: 1 0 auto;
    display: grid;
    place-items: center;
    align-content: center;
    padding: 24px 24px calc(24px + var(--footer-height));
}

.guest-body > .footer {
    left: 0;
}

.auth-shell {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(400px, 0.92fr);
    gap: 14px;
    align-items: stretch;
    height: min(760px, calc(100dvh - 120px));
    margin: 0 auto;
}

.auth-panel {
    padding: 42px;
    overflow: hidden;
    min-width: 0;
}

.auth-panel-brand {
    background:
        radial-gradient(circle at top right, rgba(56, 199, 232, 0.12), transparent 22%),
        linear-gradient(165deg, rgba(27, 30, 138, 0.99) 0%, rgba(17, 20, 97, 0.99) 62%, rgba(14, 17, 86, 0.99) 100%),
        #1B1E8A;
    color: #fff;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.auth-panel-brand::after {
    content: '';
    position: absolute;
    right: -46px;
    bottom: -68px;
    width: 212px;
    height: 212px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.auth-panel-brand::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 28px;
    right: 28px;
    height: 1px;
    width: auto;
    border-radius: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.auth-brand-top,
.auth-brand-copy,
.auth-brand-grid,
.auth-badges,
.auth-form-panel,
.auth-form-header,
.auth-feature-list,
.auth-form-actions {
    position: relative;
    z-index: 1;
}

.auth-brand-top {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 18px;
    padding-bottom: 8px;
}

.login-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    backdrop-filter: blur(12px);
    max-width: 100%;
    width: 100%;
}

.login-company-logo {
    display: block;
    width: min(300px, 100%);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.16));
}

.auth-brand-tag {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.84);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.auth-panel h1,
.auth-panel h2 {
    line-height: 1.05;
}

.auth-brand-copy {
    display: grid;
    align-content: end;
    gap: 8px;
}

.auth-brand-copy .section-eyebrow {
    margin-bottom: 2px;
    letter-spacing: 0.16em;
}

.auth-panel-brand h1 {
    margin: 0;
    max-width: 12ch;
    font-size: clamp(1.85rem, 2.9vw, 3rem);
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.auth-panel-brand p {
    margin: 0;
    max-width: 30ch;
    font-size: 0.95rem;
    line-height: 1.48;
    color: rgba(255, 255, 255, 0.74);
}

.auth-panel-form {
    display: flex;
    align-items: stretch;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(201, 214, 230, 0.9);
    box-shadow: 0 22px 52px rgba(17, 33, 71, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 249, 255, 0.98) 100%),
        #fff;
}

.auth-form-panel {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    padding: 0;
}

.auth-form-wrap {
    width: 100%;
    min-width: 0;
    display: grid;
    gap: 18px;
    height: 100%;
    padding: 28px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.98) 100%),
        #fff;
    border: 1px solid rgba(222, 231, 242, 0.9);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 14px 28px rgba(27, 30, 138, 0.05);
}

.section-eyebrow {
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-eyebrow-light {
    color: rgba(255, 255, 255, 0.72);
}

.auth-form-header {
    display: grid;
    gap: 8px;
}

.auth-form-wrap h2 {
    margin: 0;
    font-size: clamp(1.8rem, 2.2vw, 2.3rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.auth-form-wrap-login {
    align-content: center;
    justify-content: center;
    place-content: center;
}

.auth-form-wrap-register {
    grid-template-rows: auto minmax(0, 1fr);
    align-content: stretch;
}

.auth-form-scroll {
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(27, 30, 138, 0.28) transparent;
    padding-right: 8px;
}

.auth-form-scroll::-webkit-scrollbar {
    width: 8px;
}

.auth-form-scroll::-webkit-scrollbar-thumb {
    background: rgba(27, 30, 138, 0.22);
    border-radius: 999px;
}

.auth-form-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.auth-form-wrap p {
    margin: 0;
    font-size: 0.99rem;
    line-height: 1.72;
}

.auth-feature-item strong,
.auth-brand-card strong {
    display: block;
    margin-bottom: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
}

.auth-feature-item span,
.auth-brand-card span {
    display: block;
    line-height: 1.6;
    color: var(--muted);
}

.auth-brand-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.auth-brand-card {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
}

.auth-brand-card span {
    color: rgba(255, 255, 255, 0.72);
}

.auth-brand-card-highlight {
    background: linear-gradient(180deg, rgba(56, 199, 232, 0.18) 0%, rgba(255, 255, 255, 0.08) 100%);
}

.auth-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.auth-badges span {
    padding: 11px 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    max-width: 100%;
    overflow-wrap: anywhere;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-form {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.auth-form .btn,
.auth-form .form-field,
.auth-form input {
    min-width: 0;
}

.auth-form .form-field {
    width: 100%;
    gap: 10px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.auth-form .form-field span {
    display: block;
    margin-bottom: 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: #203a57;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.auth-form .form-field span,
.auth-form-wrap h2,
.auth-form-wrap p,
.auth-panel-brand p,
.auth-panel-brand h1 {
    overflow-wrap: anywhere;
}

.auth-form input,
.auth-form select {
    min-height: 52px;
    padding-inline: 15px;
    border-radius: 12px;
    background: #fbfcfe;
    border: 1px solid rgba(196, 208, 223, 0.9);
    overflow: hidden;
    text-overflow: ellipsis;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.auth-form input:focus,
.auth-form select:focus {
    outline: none;
    background: #fff;
    border-color: rgba(27, 30, 138, 0.38);
    box-shadow: 0 0 0 3px rgba(27, 30, 138, 0.08);
}

.auth-form-actions {
    display: grid;
    gap: 10px;
    margin-top: 6px;
}

.auth-form .btn {
    min-height: 52px;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: -0.01em;
    box-shadow: 0 12px 22px rgba(35, 44, 178, 0.14);
}

.auth-footnote {
    padding-top: 2px;
    font-size: 0.9rem;
    color: var(--muted);
}

.auth-inline-link {
    color: var(--primary-dark);
    font-weight: 700;
}

.auth-inline-link:hover {
    color: var(--primary);
}

.auth-role-note {
    margin: -4px 0 2px;
    padding: 12px 14px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(27, 30, 138, 0.04) 0%, rgba(56, 199, 232, 0.025) 100%);
    border: 1px solid rgba(27, 30, 138, 0.08);
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.auth-panel-form .flash {
    width: 100%;
    margin-bottom: 20px;
}

.auth-panel-form .flash:last-child {
    margin-bottom: 0;
}

.btn-block {
    width: 100%;
}

.setting-card ul {
    margin: 16px 0 0;
    padding-left: 18px;
    color: var(--muted);
}

.setting-card-action {
    appearance: none;
    width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(56, 199, 232, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 249, 252, 0.98) 100%);
    display: grid;
    justify-items: start;
    gap: 12px;
    cursor: pointer;
    text-align: left;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.setting-card-action--config {
    position: relative;
    min-height: 340px;
    overflow: hidden;
    padding: clamp(28px, 3vw, 34px);
    border-color: rgba(0, 90, 140, 0.12);
    background:
        radial-gradient(circle at top right, rgba(56, 199, 232, 0.18), transparent 24%),
        radial-gradient(circle at bottom left, rgba(127, 211, 78, 0.12), transparent 26%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.99) 0%, rgba(243, 249, 255, 0.96) 54%, rgba(248, 252, 255, 0.98) 100%);
}

.config-card-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.95fr);
    gap: 26px;
    align-items: center;
    width: 100%;
}

.config-card-copy {
    display: grid;
    justify-items: start;
    gap: 12px;
}

.config-card-copy h2,
.config-card-copy p,
.config-card-copy .setting-card-link {
    margin: 0;
}

.config-card-visual {
    position: relative;
    min-height: 240px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background:
        linear-gradient(160deg, rgba(12, 49, 87, 0.95) 0%, rgba(20, 92, 139, 0.92) 62%, rgba(44, 151, 173, 0.84) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 24px 50px rgba(10, 47, 84, 0.24);
    overflow: hidden;
}

.config-card-visual::before,
.config-card-visual::after {
    content: '';
    position: absolute;
    border-radius: 999px;
}

.config-card-visual::before {
    width: 220px;
    height: 220px;
    top: -100px;
    right: -54px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 72%);
}

.config-card-visual::after {
    width: 150px;
    height: 150px;
    bottom: -70px;
    left: -38px;
    background: radial-gradient(circle, rgba(127, 211, 78, 0.3) 0%, rgba(127, 211, 78, 0) 72%);
}

.config-card-ring {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 104px;
    height: 104px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.config-card-ring .material-symbols-outlined {
    font-size: 42px;
}

.config-card-stack {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    display: grid;
    gap: 12px;
}

.config-card-stack span,
.config-card-grid span {
    display: block;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.config-card-stack span:nth-child(1) {
    height: 54px;
    width: 68%;
}

.config-card-stack span:nth-child(2) {
    height: 18px;
    width: 92%;
}

.config-card-stack span:nth-child(3) {
    height: 18px;
    width: 52%;
}

.config-card-grid {
    position: absolute;
    left: 24px;
    top: 28px;
    width: 118px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.config-card-grid span {
    aspect-ratio: 1;
}

.config-card-orb {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    opacity: 0.95;
}

.config-card-orb-primary {
    width: 182px;
    height: 182px;
    top: -82px;
    right: -42px;
    background: radial-gradient(circle, rgba(56, 199, 232, 0.28) 0%, rgba(56, 199, 232, 0) 72%);
}

.config-card-orb-secondary {
    width: 154px;
    height: 154px;
    bottom: -74px;
    left: -24px;
    background: radial-gradient(circle, rgba(127, 211, 78, 0.22) 0%, rgba(127, 211, 78, 0) 72%);
}

.setting-card-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 28px 56px rgba(15, 23, 42, 0.12);
    border-color: rgba(0, 90, 140, 0.22);
}

.setting-card-action:focus-visible {
    outline: 3px solid rgba(56, 199, 232, 0.28);
    outline-offset: 2px;
}

.setting-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: rgba(0, 90, 140, 0.1);
    color: #005a8c;
    font-size: 30px;
}

.setting-card-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: #005a8c;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.config-alert-modal-dialog {
    width: min(640px, 100%);
    gap: 22px;
    padding: 32px;
    background:
        radial-gradient(circle at top right, rgba(56, 199, 232, 0.16), transparent 30%),
        radial-gradient(circle at bottom left, rgba(127, 211, 78, 0.12), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #f4fafe 100%);
}

.config-alert-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.config-alert-badge {
    width: 68px;
    height: 68px;
    border-radius: 22px;
}

.config-alert-copy {
    gap: 12px;
}

.config-alert-preview {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(27, 30, 138, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.config-alert-line {
    display: block;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(27, 30, 138, 0.12) 0%, rgba(56, 199, 232, 0.18) 100%);
}

.config-alert-line-strong {
    width: 64%;
    height: 14px;
}

.config-alert-line-soft {
    width: 48%;
}

.config-alert-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 4px;
}

.config-alert-chips span {
    width: 88px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(56, 199, 232, 0.16), rgba(27, 30, 138, 0.12));
    border: 1px solid rgba(27, 30, 138, 0.08);
}

.config-alert-actions {
    justify-content: flex-end;
}

.mobile-only {
    display: none;
}

@media (max-width: 1280px) {
    .dashboard-grid,
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    :root {
        --footer-height: 58px;
    }

    .topbar {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .topbar-right {
        width: 100%;
        justify-content: space-between;
    }

    .panel-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .resource-panel {
        min-height: min(76dvh, 920px);
    }

    .tracker-tabs {
        margin-bottom: 16px;
    }

    .toolbar-actions {
        justify-content: stretch;
    }

    .toolbar-actions .search-box,
    .toolbar-actions .inline-filter,
    .toolbar-actions .view-switcher,
    .toolbar-actions .btn {
        width: 100%;
    }
}

@media (max-width: 1100px) {
    .metrics-grid,
    .settings-grid,
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-shell {
        width: min(760px, 100%);
        height: auto;
        min-height: auto;
    }

    .auth-panel-brand h1 {
        max-width: 15ch;
    }

    .config-card-content {
        grid-template-columns: 1fr;
    }

    .config-card-visual {
        min-height: 220px;
    }

    .config-alert-hero {
        grid-template-columns: 1fr;
    }

    .auth-panel-form {
        height: auto;
        max-height: none;
    }

    .auth-form-panel {
        overflow: visible;
    }

    .auth-form-scroll {
        overflow: visible;
        padding-right: 0;
    }
}

@media (max-height: 860px) {
    .guest-main {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .auth-shell {
        height: min(700px, calc(100vh - 110px));
        min-height: 0;
    }

    .auth-panel {
        padding: 30px;
    }

    .auth-panel-brand {
        gap: 16px;
    }

    .login-company-logo {
        width: min(240px, 100%);
    }

    .auth-panel-brand h1 {
        font-size: clamp(1.6rem, 2.4vw, 2.45rem);
    }

    .auth-panel-brand p,
    .auth-form-wrap p {
        line-height: 1.45;
    }

    .auth-form-wrap {
        gap: 14px;
        padding: 20px;
    }

    .auth-form {
        gap: 12px;
    }

    .auth-form input,
    .auth-form select {
        min-height: 48px;
    }

    .auth-form .btn {
        min-height: 48px;
    }

    .auth-role-note {
        padding: 10px 12px;
    }
}

@media (max-height: 720px) and (min-width: 1101px) {
    .guest-main {
        padding: 12px 16px;
    }

    .auth-shell {
        width: min(1120px, 100%);
        grid-template-columns: minmax(0, 1.08fr) minmax(400px, 0.92fr);
        gap: 14px;
        height: min(620px, calc(100dvh - 92px));
    }

    .auth-panel {
        padding: 24px;
    }

    .auth-panel-form {
        max-height: none;
        overflow: hidden;
    }

    .auth-brand-top {
        padding-bottom: 2px;
    }

    .login-company-logo {
        width: min(210px, 100%);
    }

    .auth-panel-brand h1 {
        font-size: clamp(1.45rem, 2vw, 2.1rem);
        max-width: 13ch;
    }

    .auth-form-wrap {
        gap: 12px;
        padding: 16px;
    }

    .auth-form-wrap h2 {
        font-size: 1.55rem;
    }

    .section-eyebrow {
        margin-bottom: 6px;
    }

    .auth-form-panel {
        justify-content: stretch;
        overflow: hidden;
        padding: 0;
    }

    .auth-form-scroll {
        overflow-y: auto;
        padding-right: 6px;
    }

}

@media (max-width: 1200px) {
    .crm-shell {
        grid-template-columns: 1fr;
    }

    .content-area > .footer {
        left: 0;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(320px, 84vw);
        transform: translateX(-100%);
        transition: transform 0.2s ease;
        z-index: 40;
        box-shadow: 0 18px 42px rgba(3, 12, 56, 0.28);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .mobile-only {
        display: inline-grid;
    }

    .page-body {
        padding-inline: var(--page-padding);
    }
}

@media (max-width: 720px) {
    .modal-form,
    .form-field textarea,
    .modal-footer {
        grid-template-columns: 1fr;
    }

    .modal-form,
    .modal-footer,
    .modal-form .form-field:has(textarea) {
        grid-column: span 1;
    }

    .toolbar-actions,
    .topbar,
    .topbar-left,
    .topbar-right {
        align-items: stretch;
        flex-direction: column;
    }

    .topbar-right {
        justify-content: flex-start;
    }

    .panel-toolbar,
    .modal-header,
    .modal-footer,
    .auth-panel-form,
    .auth-shell,
    .inline-filter,
    .view-switcher {
        min-width: 0;
    }

    .user-summary {
        max-width: 100%;
    }

    .brand-mark strong,
    .brand-mark small,
    .user-chip strong,
    .user-chip small,
    .user-summary strong,
    .user-summary small {
        white-space: normal;
        text-overflow: clip;
        overflow-wrap: anywhere;
    }

    .view-switcher {
        width: 100%;
        overflow: auto;
        flex-wrap: nowrap;
        padding-bottom: 2px;
    }

    .tracker-tabs {
        gap: 8px;
        margin-bottom: 14px;
    }

    .tracker-tab {
        min-height: 38px;
        padding-inline: 14px;
        font-size: 13px;
    }

    .btn-view-switch,
    .toolbar-actions .btn,
    .toolbar-actions .search-box,
    .toolbar-actions .inline-filter,
    .toolbar-actions .view-switcher {
        width: 100%;
    }

    .search-box,
    .inline-filter label,
    .btn,
    .icon-btn,
    .auth-panel,
    .auth-form,
    .auth-form input,
    .auth-form .btn {
        max-width: 100%;
    }

    .search-box,
    .inline-filter label {
        flex: 1 1 auto;
        width: 100%;
    }

    .modal {
        padding: 12px;
    }

    .modal-dialog {
        width: min(100%, calc(100vw - 24px));
        padding: 18px;
        border-radius: 20px;
    }

    .auth-panel {
        padding: 26px;
    }

    .auth-form-wrap {
        padding: 22px;
        border-radius: 18px;
    }

    .login-logo-wrap {
        width: 100%;
    }

    .login-company-logo {
        width: min(260px, 100%);
    }

    .auth-panel-brand::before {
        left: 26px;
        right: 26px;
        top: 24px;
    }

    .auth-brand-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-form-wrap h2,
    .auth-panel-brand h1 {
        text-wrap: pretty;
    }

    .cards-grid,
    .record-card-body {
        grid-template-columns: 1fr;
    }

    .resource-panel {
        min-height: auto;
    }

    .table-helper {
        display: none;
    }

    .table-wrapper {
        overflow: visible;
        border: 0;
        background: transparent;
        max-height: none;
    }

    .data-table,
    .data-table thead,
    .data-table tbody,
    .data-table th,
    .data-table td,
    .data-table tr {
        display: block;
        width: 100%;
    }

    .data-table {
        min-width: 0;
    }

    .data-table thead {
        display: none;
    }

    .data-table tbody {
        display: grid;
        gap: 14px;
    }

    .data-table tr {
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid var(--border);
        border-radius: 18px;
        box-shadow: var(--shadow);
        padding: 10px 0;
    }

    .data-table td,
    .data-table td:first-child,
    .actions-cell,
    .actions-col {
        position: static;
        min-width: 0;
        max-width: none;
        background: transparent;
        border-bottom: 1px dashed rgba(229, 231, 235, 0.9);
        padding: 12px 16px;
    }

    .data-table td:last-child {
        border-bottom: 0;
    }

    .data-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--muted);
        margin-bottom: 6px;
    }

    .row-actions {
        justify-content: flex-start;
    }

    .kanban-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .kanban-board {
        grid-template-columns: 1fr;
    }

    :root {
        --footer-height: 68px;
    }

    .guest-main {
        padding: 12px 12px calc(12px + var(--footer-height));
    }

    .footer {
        font-size: 11px;
        padding-inline: 12px;
        gap: 6px 8px;
        line-height: 1.2;
    }

    .footer-separator {
        display: none;
    }

    .footer-badge {
        min-height: 22px;
        padding-inline: 8px;
        font-size: 10px;
    }

    .tracker-tab {
        min-height: 36px;
        padding-inline: 12px;
    }

    .auth-shell {
        gap: 12px;
    }

    .auth-panel {
        padding: 22px;
        border-radius: 22px;
    }

    .auth-form-wrap {
        padding: 18px;
        border-radius: 16px;
    }

    .auth-form-wrap,
    .auth-form,
    .auth-form-actions,
    .auth-brand-copy,
    .auth-brand-grid {
        gap: 14px;
    }

    .auth-form-wrap h2 {
        font-size: 1.8rem;
    }

    .auth-panel-brand h1 {
        font-size: 2.25rem;
    }

    .auth-panel-brand p {
        max-width: 34ch;
    }

    .metric-card {
        padding: 18px;
    }

    .metric-card strong {
        font-size: 24px;
    }

    .auth-badges {
        gap: 8px;
    }

    .auth-badges span,
    .auth-brand-tag {
        font-size: 11px;
    }
}

.resource-panel-operaciones .kanban-column {
    background: #fcfdff;
    border-top-color: #cbd5e1;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.resource-panel-operaciones .kanban-board {
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
}

.resource-panel-operaciones .kanban-column--success,
.resource-panel-operaciones .kanban-column--warning,
.resource-panel-operaciones .kanban-column--danger,
.resource-panel-operaciones .kanban-column--neutral {
    border-top-color: #cbd5e1;
}

.resource-panel-operaciones .kanban-column {
    width: 100%;
    min-width: 0;
}

.resource-panel-operaciones .kanban-column-header {
    margin-bottom: 12px;
    padding-bottom: 12px;
}

.resource-panel-operaciones .kanban-column-header h3 {
    font-size: 16px;
    color: #0f172a;
}

.resource-panel-operaciones .kanban-card {
    min-height: 252px;
    padding: 14px;
    border-radius: 16px;
    box-shadow: none;
    border-left: 1px solid rgba(226, 232, 240, 0.95);
}

.resource-panel-operaciones .kanban-card:hover {
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.resource-panel-operaciones .kanban-card--success,
.resource-panel-operaciones .kanban-card--warning,
.resource-panel-operaciones .kanban-card--danger {
    border-left-width: 1px;
    border-left-color: rgba(226, 232, 240, 0.95);
}

.resource-panel-operaciones .kanban-card-header {
    gap: 6px;
}

.resource-panel-operaciones .kanban-card-header strong {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    white-space: normal;
}

.resource-panel-operaciones .kanban-card-subtitle {
    font-size: 13px;
    line-height: 1.4;
}

.resource-panel-operaciones .kanban-meta-grid {
    gap: 10px;
    grid-template-rows: repeat(3, minmax(58px, auto));
}

.resource-panel-operaciones .kanban-meta {
    min-height: 68px;
    background: #ffffff;
    padding: 12px 13px;
    align-content: center;
}

.resource-panel-operaciones .kanban-meta.is-priority {
    background: #f8fafc;
    border-left-color: #0f172a;
}

.resource-panel-operaciones .kanban-meta--field-ot_number span {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0.02em;
}

.resource-panel-operaciones .kanban-meta small,
.resource-panel-operaciones .kanban-meta span,
.resource-panel-operaciones .kanban-card-subtitle {
    white-space: normal;
    overflow-wrap: anywhere;
}

.resource-panel-operaciones .kanban-meta--field-promise_delivery_report {
    background: #f8fafc;
}

.resource-panel-operaciones .kanban-meta-head {
    align-items: flex-start;
}

.resource-panel-operaciones .kanban-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 12px;
    width: 100%;
    align-items: start;
}