/* MarketCheck Design System - Apple Inspired */

:root {
    /* Color Palette - Refined & Modern */
    --primary-color: #0071e3;
    /* SF Blue */
    --primary-hover: #0077ed;
    --secondary-color: #86868b;
    /* SF Gray */
    --success-color: #34c759;
    /* SF Green */
    --warning-color: #ff9f0a;
    /* SF Orange */
    --danger-color: #ff3b30;
    /* SF Red */
    --info-color: #5ac8fa;
    /* SF Light Blue */

    /* Backgrounds */
    --bg-body: #f5f5f7;
    /* Light Gray Background */
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.72);

    /* Text */
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --text-tertiary: #6e6e73;

    /* Spacing & Radius */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 18px;
    --border-radius-xl: 24px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.12);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: var(--bg-body);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    transition: color 0.2s ease;
}

/* Glassmorphism Utilities */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.glass-card {
    background: rgba(255, 255, 255, 0.85);
    /* Slightly more opaque for readability */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-md);
}

/* Card Enhancements */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    background-color: var(--bg-card);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* Buttons */
.btn {
    border-radius: 999px;
    /* Pill shape */
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: scale(1.02);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* KPI Cards Specifics */
.kpi-card {
    position: relative;
    overflow: hidden;
    color: var(--text-primary) !important;
    /* Force dark text usually, unless specific bg */
}

/* Overwrite bootstrap bg colors for KPI cards to be softer or use white with colored accents */
.card.bg-primary,
.card.bg-success,
.card.bg-warning,
.card.bg-info {
    /* Instead of full solid color, let's go with white cards + colored icons/text for "Apple" look */
    background-color: #ffffff !important;
    color: var(--text-primary) !important;
}

.card.bg-primary .bi,
.card.bg-primary .card-subtitle {
    color: var(--primary-color) !important;
}

.card.bg-success .bi,
.card.bg-success .card-subtitle {
    color: var(--success-color) !important;
}

.card.bg-warning .bi,
.card.bg-warning .card-subtitle {
    color: var(--warning-color) !important;
}

.card.bg-info .bi,
.card.bg-info .card-subtitle {
    color: var(--info-color) !important;
}

/* Navbar - Glassmorphism handled by child element now */
.navbar {
    background-color: transparent !important;
    box-shadow: none !important;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.navbar-glass-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: -1;
}

.navbar-brand {
    color: var(--text-primary) !important;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.01em;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius-md);
    transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
    background-color: rgba(0, 113, 227, 0.08);
    /* faint blue bg */
}

/* Tables - Elegant */
.table {
    margin-bottom: 0;
    vertical-align: middle;
}

.table thead th {
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    font-size: 0.95rem;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Badges - Pills */
.badge {
    padding: 0.5em 0.9em;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.bg-success {
    background-color: rgba(52, 199, 89, 0.15) !important;
    color: #248a3d !important;
}

.bg-primary {
    background-color: rgba(0, 113, 227, 0.15) !important;
    color: #0071e3 !important;
}

.bg-warning {
    background-color: rgba(255, 159, 10, 0.15) !important;
    color: #b26c00 !important;
}

.bg-info {
    background-color: rgba(90, 200, 250, 0.15) !important;
    color: #007aff !important;
}

.bg-secondary {
    background-color: rgba(142, 142, 147, 0.15) !important;
    color: #6e6e73 !important;
}

.bg-danger {
    background-color: rgba(255, 59, 48, 0.15) !important;
    color: #d70015 !important;
}


/* Form Controls */
.form-control,
.form-select {
    border-radius: var(--border-radius-md);
    border: 1px solid #d2d2d7;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.8);
    transition: all 0.2s;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2);
}

/* Utilities */
.text-muted {
    color: var(--text-secondary) !important;
}

.fw-semibold {
    font-weight: 600 !important;
}

.rounded-xl {
    border-radius: var(--border-radius-lg) !important;
}

/* Builder Custom Overrides */
.builder-canvas {
    background-color: #ffffff;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Mobile Offcanvas Menu */
.offcanvas {
    background-color: #ffffff !important;
    /* Solid white to prevent bleed-through */
    z-index: 2000 !important;
    /* Higher than sticky nav (1020) and bootstrap default (1045) */
    color: var(--text-primary);
}

.offcanvas-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.offcanvas-title {
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

/* Navbar Toggler */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    color: var(--text-primary) !important;
    /* Ensure visibility */
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Ensure nav links in offcanvas are visible */
.offcanvas-body .nav-link {
    font-size: 1.1rem;
    padding: 0.75rem 1rem !important;
    margin-bottom: 0.25rem;
    color: var(--text-secondary) !important;
}

.offcanvas-body .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.03);
    color: var(--primary-color) !important;
}

/* Active state for mobile menu */
.offcanvas-body .nav-link.active {
    background-color: rgba(0, 113, 227, 0.1);
    color: var(--primary-color) !important;
    font-weight: 600;
}

/* ── Common Filter UI (Mobile & Desktop) ── */
.filter-wrap {
    margin-bottom: 18px;
}

/* Search bar */
.filter-search-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.filter-search-row input {
    flex: 1;
    border-radius: 99px;
    border: 1.5px solid #e5e7eb;
    padding: 9px 18px;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.15s;
}

.filter-search-row input:focus {
    border-color: #3b82f6;
}

.filter-search-btn {
    border: none;
    background: #3b82f6;
    color: #fff;
    border-radius: 99px;
    padding: 9px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.15s;
    white-space: nowrap;
}

.filter-search-btn:hover {
    background: #2563eb;
}

/* Status pills (horizontal scroll) */
.status-pills {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 10px;
    scrollbar-width: none;
}

.status-pills::-webkit-scrollbar {
    display: none;
}

.status-pill {
    flex-shrink: 0;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    border-radius: 99px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
    text-decoration: none;
}

.status-pill:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.status-pill.active-all {
    background: #111827;
    border-color: #111827;
    color: #fff;
}

.status-pill.active-pendiente {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #fff;
}

.status-pill.active-en_progreso {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}

.status-pill.active-completada {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
}

.status-pill.active-borrador {
    background: #6b7280;
    border-color: #6b7280;
    color: #fff;
}

.status-pill.active-asignada {
    background: #8b5cf6;
    border-color: #8b5cf6;
    color: #fff;
}

/* More filters toggle */
.more-filters-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    border: none;
    background: none;
    padding: 4px 0;
    margin-bottom: 6px;
    transition: color 0.15s;
}

.more-filters-toggle:hover {
    color: #3b82f6;
}

.more-filters-toggle .mf-chevron {
    transition: transform 0.2s;
}

.more-filters-toggle.open .mf-chevron {
    transform: rotate(180deg);
}

/* More filters drawer */
.more-filters-drawer {
    display: none;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
}

.more-filters-drawer.open {
    display: block;
}

.more-filters-drawer .mf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.more-filters-drawer label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 3px;
}

.more-filters-drawer select,
.more-filters-drawer input[type="date"] {
    width: 100%;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 0.85rem;
    background: #fff;
    outline: none;
    transition: border-color 0.15s;
}

.more-filters-drawer select:focus,
.more-filters-drawer input[type="date"]:focus {
    border-color: #3b82f6;
}

.mf-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.mf-apply {
    flex: 1;
    border: none;
    background: #3b82f6;
    color: #fff;
    border-radius: 8px;
    padding: 9px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
}

.mf-clear {
    border: 1.5px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* ── Adobe Journey Optimizer Style Visualization ── */
.journey-container {
    background-color: #f1f1f1;
    border-radius: var(--border-radius-xl);
    padding: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.journey-group {
    background: transparent;
    padding: 0;
    margin-bottom: 4rem;
}

.journey-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    /* No border bottom for cleaner look */
}

/* Pipeline Container */
.journey-pipeline-wrapper {
    overflow-x: auto;
    padding: 1rem 0 3rem 0;
    scrollbar-width: thin;
}

.journey-pipeline {
    display: flex;
    align-items: flex-start;
    /* Center align horizontally */
    gap: 0;
    /* Remove gap, lines handle spacing */
    position: relative;
    min-width: 900px;
    padding-left: 2rem;
}

/* AJO Connection Line Default */
.journey-line {
    height: 2px;
    background-color: #8c8c8c;
    width: 60px;
    /* Space between nodes */
    position: relative;
    flex-shrink: 0;
    margin-top: 36px;
    transform: translateY(-50%);
}

/* Arrowhead on connecting line */
.journey-line::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 5px solid #8c8c8c;
}

/* Label on line (like "1 d timeout") */
.journey-line-label {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #ccc;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    color: #555;
    white-space: nowrap;
}

/* AJO Node Default */
.journey-node {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    /* Slightly rounded, not full pill */
    padding: 0;
    /* Padding handled by flex layout inside */
    width: 250px;
    height: 72px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    /* Side by side layout */
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
    overflow: hidden;
    /* Important to clip border-radius */
}

.journey-node:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
}

/* AJO Icon Container (Left side) */
.journey-node-icon {
    width: 50px;
    align-self: stretch;
    /* Take full height */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border-right: 1px solid #e2e8f0;
}

/* Node Content (Right side) */
.journey-node-content {
    flex-grow: 1;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
}

.journey-node-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.2;
    margin-bottom: 0.2rem;
}

.journey-node-subtitle {
    font-size: 0.75rem;
    color: #777;
}

/* Node Variants */
.node-start {
    border-color: #cbd5e1;
}

.node-start .journey-node-icon {
    background: #d1fae5;
    color: #059669;
}

.node-routing {
    border-color: #cbd5e1;
}

.node-routing .journey-node-icon {
    background: #e0f2fe;
    color: #0284c7;
}

.node-execution {
    border-color: #cbd5e1;
}

.node-execution .journey-node-icon {
    background: #fef9c3;
    color: #ca8a04;
}

.node-validation {
    border-color: #cbd5e1;
}

.node-validation .journey-node-icon {
    background: #dcfce3;
    color: #16a34a;
}

/* Expanded Node Stats Box (Drawn Below as a separate element in AJO if needed, or inline) */
.journey-node-details {
    margin-top: 1rem;
    background: #fff;
    border-radius: 8px;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    font-size: 0.82rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.j-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
}

.j-stat-val {
    font-weight: 700;
}

/* Text Colors */
.text-success-ajo {
    color: #15803d;
}

.text-warning-ajo {
    color: #b45309;
}

.text-danger-ajo {
    color: #b91c1c;
}

.text-info-ajo {
    color: #0369a1;
}

.text-muted-ajo {
    color: #6b7280;
}

/* Start element (Dark oval) */
.journey-start-element {
    background-color: #555;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    flex-shrink: 0;
    margin-top: 36px;
    transform: translateY(-50%);
}

/* End element (Dark oval) */
.journey-end-element {
    background-color: #555;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    flex-shrink: 0;
    margin-top: 36px;
    transform: translateY(-50%);
}

/* Operations App Shell */
.mc-ops-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(144, 196, 255, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(255, 226, 185, 0.2), transparent 32%),
        linear-gradient(180deg, #f9fbff 0%, #eef3fb 100%);
}

.mc-ops-main {
    padding-top: 1.25rem !important;
    padding-bottom: 6.5rem !important;
}

.mc-app-shell {
    max-width: 1320px;
    margin: 0 auto;
}

.mc-page-frame {
    position: relative;
    padding: 1.5rem;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(219, 227, 239, 0.9);
    box-shadow: 0 24px 60px rgba(33, 55, 89, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

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

.mc-page-header--compact {
    margin-bottom: 1rem;
}

.mc-page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.6rem;
    color: #73839c;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mc-page-title {
    margin: 0;
    font-size: clamp(2.35rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.mc-page-title--lg {
    font-size: clamp(2.7rem, 5.8vw, 4.3rem);
}

.mc-page-description {
    max-width: 52rem;
    margin: 0.65rem 0 0;
    color: #617189;
    font-size: 1rem;
    line-height: 1.5;
}

.mc-page-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.mc-inline-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 48px;
    padding: 0.8rem 1.25rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    background: rgba(255, 255, 255, 0.88);
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 700;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
}

.mc-inline-action:hover {
    color: #0f172a;
    transform: translateY(-1px);
}

.mc-inline-action--primary {
    background: linear-gradient(135deg, #6da8f4 0%, #4a88df 100%);
    border-color: transparent;
    color: #fff;
}

.mc-inline-action--primary:hover {
    color: #fff;
}

.mc-inline-action--accent {
    background: linear-gradient(135deg, rgba(242, 247, 255, 0.98), rgba(255, 255, 255, 0.92));
}

.mc-inline-action--danger {
    background: linear-gradient(135deg, #ff7a7a 0%, #ff4a4a 100%);
    border-color: transparent;
    color: #fff;
}

.mc-inline-action--danger:hover {
    color: #fff;
}

.mc-utility-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mc-utility-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(203, 213, 225, 0.72);
    color: #475569;
    font-size: 0.82rem;
    font-weight: 700;
}

.mc-utility-pill:hover {
    color: #0f172a;
}

.mc-routes-page .filter-wrap {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 249, 255, 0.96));
    border: 1px solid rgba(216, 226, 239, 0.95);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.mc-routes-page .filter-search-row {
    display: flex;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.mc-routes-page .filter-search-row input {
    min-height: 60px;
    padding: 0 1.4rem;
    font-size: 1.05rem;
    border-radius: 22px;
    border: 1.5px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.mc-routes-page .filter-search-row input::placeholder {
    color: #94a3b8;
}

.mc-routes-page .filter-search-btn {
    min-width: 64px;
    min-height: 60px;
    padding: 0 1.15rem;
    border-radius: 22px;
    border: none;
    background: linear-gradient(135deg, #87b2ff 0%, #5c8fe9 100%);
    color: #fff;
    font-size: 1.05rem;
    box-shadow: 0 14px 28px rgba(92, 143, 233, 0.25);
}

.mc-routes-page .status-pills {
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.25rem;
}

.mc-routes-page .status-pill {
    padding: 0.82rem 1.4rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(239, 242, 248, 0.96), rgba(231, 236, 245, 0.98));
    color: #263041;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.mc-routes-page .status-pill:hover {
    color: #1d4ed8;
    transform: translateY(-1px);
}

.mc-routes-page .status-pill.active-all,
.mc-routes-page .status-pill.active-en_progreso {
    color: #fff;
    background: linear-gradient(135deg, #8ab6fb 0%, #5b91ea 100%);
}

.mc-routes-page .status-pill.active-pendiente {
    color: #ba6a00;
    background: linear-gradient(135deg, #fff3d8 0%, #ffe6ba 100%);
}

.mc-routes-page .status-pill.active-completada {
    color: #11653e;
    background: linear-gradient(135deg, #dcf9e6 0%, #c3f0d3 100%);
}

.mc-routes-page .status-pill.active-borrador,
.mc-routes-page .status-pill.active-asignada {
    color: #475569;
    background: linear-gradient(135deg, #eef2f8 0%, #e4eaf3 100%);
}

.mc-routes-page .more-filters-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0;
    color: #607089;
    font-size: 0.88rem;
    font-weight: 700;
}

.mc-routes-page .more-filters-drawer {
    margin-top: 0.4rem;
    padding: 1rem;
    border-radius: 22px;
    background: rgba(239, 244, 251, 0.92);
    border: 1px solid rgba(206, 216, 230, 0.75);
}

.mc-routes-page .more-filters-drawer .mf-grid {
    gap: 0.9rem;
}

.mc-routes-page .more-filters-drawer label {
    margin-bottom: 0.35rem;
    color: #64748b;
    font-size: 0.72rem;
}

.mc-routes-page .more-filters-drawer select,
.mc-routes-page .more-filters-drawer input[type="date"] {
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.28);
}

.mc-routes-page .mf-actions {
    margin-top: 1rem;
}

.mc-routes-page .mf-apply,
.mc-routes-page .mf-clear {
    min-height: 48px;
    border-radius: 16px;
    font-weight: 700;
}

.mc-routes-page .mf-apply {
    background: linear-gradient(135deg, #6aa7fd 0%, #4a86df 100%);
    box-shadow: 0 14px 24px rgba(74, 134, 223, 0.18);
}

.mc-route-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.mc-route-grid__item {
    min-width: 0;
}

.mc-route-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    padding: 1.35rem;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 255, 0.94));
    border: 1px solid rgba(220, 228, 240, 0.92);
    box-shadow: 0 20px 40px rgba(22, 34, 58, 0.09);
}

.mc-route-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 48px rgba(22, 34, 58, 0.12);
}

.mc-route-card__head,
.mc-route-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.mc-route-card__eyebrow {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}

.mc-route-card__accent {
    width: 6px;
    height: 28px;
    border-radius: 999px;
}

.accent-yellow {
    background: linear-gradient(180deg, #ffd47c 0%, #f5a623 100%);
}

.accent-blue {
    background: linear-gradient(180deg, #8dc4ff 0%, #5c8fe9 100%);
}

.accent-green {
    background: linear-gradient(180deg, #85f0ab 0%, #35b36f 100%);
}

.accent-gray {
    background: linear-gradient(180deg, #d7dee9 0%, #98a4b6 100%);
}

.accent-red {
    background: linear-gradient(180deg, #ffb1b1 0%, #ff6a6a 100%);
}

.mc-route-card__account {
    min-width: 0;
    color: #7a8799;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.ruta-badge,
.mc-route-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ruta-badge-en-curso {
    background: linear-gradient(135deg, #dceaff 0%, #c5dcff 100%);
    color: #2b63c8;
}

.ruta-badge-pendiente {
    background: linear-gradient(135deg, #fff1d2 0%, #ffe4b0 100%);
    color: #d17a00;
}

.ruta-badge-completada {
    background: linear-gradient(135deg, #dcf7e6 0%, #c1eed3 100%);
    color: #1f8153;
}

.ruta-badge-borrador {
    background: linear-gradient(135deg, #edf2f8 0%, #dbe3ef 100%);
    color: #66758b;
}

.ruta-badge-incidencia {
    background: linear-gradient(135deg, #ffe2e2 0%, #ffcdcd 100%);
    color: #d84646;
}

.mc-route-card__title {
    margin: 0;
    color: #121b2b;
    font-size: clamp(1.35rem, 1.8vw, 1.7rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.mc-routes-page .mc-route-card__title {
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.025em !important;
    line-height: 1.12 !important;
    color: #1b2b4b !important;
}

.mc-route-card__body {
    display: grid;
    gap: 0.8rem;
}

.mc-route-card__meta {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #536274;
    font-size: 0.94rem;
    font-weight: 500;
}

.mc-routes-page .mc-route-card__meta,
.mc-routes-page .mc-route-card__account {
    font-size: 0.88rem !important;
    font-weight: 400 !important;
    color: #74839a !important;
}

.mc-route-card__meta i {
    color: #9ba7b7;
    font-size: 1.08rem;
}

.mc-route-card__divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(221, 229, 239, 0.94), rgba(221, 229, 239, 0.28));
}

.mc-route-card__actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.mc-route-icon-btn,
.mc-route-icon-btn button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: rgba(239, 244, 251, 0.88);
    color: #64748b;
}

.mc-route-action-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #6190da;
    font-size: 1.05rem;
    font-weight: 700;
}

.mc-empty-state {
    padding: 3rem 1.5rem;
    border-radius: 26px;
    text-align: center;
    background: rgba(255, 255, 255, 0.86);
    border: 1px dashed rgba(148, 163, 184, 0.4);
    color: #64748b;
}

.mc-page-loader {
    position: fixed;
    inset: 0;
    z-index: 2100;
    background: rgba(248, 250, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.mc-pagination-wrap {
    margin-top: 1.5rem;
}

.mc-detail-topbar,
.mc-survey-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.mc-ops-topbar-shell {
    margin-bottom: 1rem;
}

.mc-ops-headbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 78px;
    padding: 0.9rem 1rem;
    border-radius: 28px;
    border: 1px solid rgba(219, 227, 239, 0.92);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.mc-ops-headbar .mc-detail-topbar,
.mc-ops-headbar .mc-survey-topbar {
    width: 100%;
    margin-bottom: 0;
}

.mc-detail-page .mc-detail-topbar__title h1,
.mc-survey-page .mc-survey-topbar__title h1 {
    font-size: 1.45rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.025em !important;
    line-height: 1.1 !important;
    color: #1b2b4b !important;
}

.mc-detail-page .mc-detail-topbar__title p,
.mc-survey-page .mc-survey-topbar__title p {
    font-size: 0.92rem !important;
    font-weight: 400 !important;
    color: #74839a !important;
}

.mc-page-back,
.mc-page-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    border: 1px solid rgba(214, 223, 236, 0.95);
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.mc-page-back:hover,
.mc-page-icon-btn:hover {
    color: #111827;
}

.mc-detail-topbar__title,
.mc-survey-topbar__title {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.mc-detail-topbar__title h1,
.mc-survey-topbar__title h1 {
    margin: 0;
    font-size: clamp(1.3rem, 1.8vw, 1.65rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.mc-detail-topbar__title p,
.mc-survey-topbar__title p {
    margin: 0.35rem 0 0;
    color: #6b7280;
    font-weight: 500;
    font-size: 0.92rem;
}

.mc-route-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.85fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.mc-route-hero__main,
.mc-progress-card,
.mc-panel-shell,
.apple-rel-header {
    padding: 1.4rem;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 250, 255, 0.95));
    border: 1px solid rgba(219, 227, 239, 0.92);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.09);
}

.mc-status-cluster {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 0.9rem;
}

.mc-status-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mc-status-chip--active {
    background: linear-gradient(135deg, #dceaff 0%, #c2dbff 100%);
    color: #2b63c8;
}

.mc-status-chip--closed {
    background: linear-gradient(135deg, #ebeff6 0%, #dbe3ef 100%);
    color: #617189;
}

.mc-route-id {
    color: #8b99ab;
    font-size: 0.9rem;
    font-weight: 700;
}

.mc-route-hero__title {
    margin: 0;
    color: #101828;
    font-size: clamp(1.55rem, 2.2vw, 1.95rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.mc-detail-page .mc-route-hero__title {
    font-size: 1.65rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.025em !important;
    line-height: 1.08 !important;
    color: #1b2b4b !important;
}

.mc-route-hero__desc {
    margin: 0.7rem 0 0;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.55;
    max-width: 58ch;
}

.mc-detail-page .mc-route-hero__desc {
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    color: #74839a !important;
}

.mc-route-hero__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.85rem;
    margin-top: 1.2rem;
}

.mc-route-hero__meta-item {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.95rem 1rem;
    border-radius: 20px;
    background: rgba(243, 247, 252, 0.9);
}

.mc-route-hero__meta-item i {
    color: #7fb4f9;
    font-size: 1.2rem;
}

.mc-route-hero__meta-item strong {
    display: block;
    color: #4b5563;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mc-route-hero__meta-item span {
    display: block;
    margin-top: 0.18rem;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.98rem;
}

.mc-detail-page .mc-route-hero__meta-item span {
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    color: #24344f !important;
}

.mc-progress-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

.mc-progress-card__top {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mc-progress-ring {
    position: relative;
    width: 92px;
    height: 92px;
    flex-shrink: 0;
}

.mc-progress-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.mc-progress-ring span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-size: 1.25rem;
    font-weight: 800;
}

.mc-progress-card__label {
    color: #7a8799;
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mc-progress-card__value {
    margin: 0.18rem 0 0.35rem;
    color: #0f172a;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.mc-progress-card__hint {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

.mc-detail-page .mc-panel-shell__title,
.mc-detail-page .mc-progress-card__label,
.mc-survey-page .section-toggle {
    color: #1b2b4b;
}

.mc-detail-page .mc-panel-shell__title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
}

.mc-detail-page .mc-panel-shell__subtitle {
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    color: #74839a !important;
}

.mc-progress-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6da8f4;
    font-size: 0.95rem;
    font-weight: 800;
}

.mc-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.9fr);
    gap: 1.1rem;
}

.mc-panel-shell__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.mc-panel-shell__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.mc-panel-shell__subtitle {
    margin: 0.25rem 0 0;
    color: #64748b;
    font-size: 0.9rem;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.filter-btn {
    min-height: 44px;
    padding: 0.7rem 1rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(239, 242, 248, 0.96), rgba(231, 236, 245, 0.98));
    color: #334155;
    font-size: 0.92rem;
    font-weight: 700;
}

.filter-btn.active {
    color: #fff;
    background: linear-gradient(135deg, #84b0fb 0%, #4f89e6 100%);
}

.filter-btn.active-green {
    color: #11653e;
    background: linear-gradient(135deg, #dcf7e6 0%, #c3f0d3 100%);
}

.filter-btn.active-yellow {
    color: #ba6a00;
    background: linear-gradient(135deg, #fff2d6 0%, #ffe6b3 100%);
}

.filter-btn.active-red {
    color: #bf3d3d;
    background: linear-gradient(135deg, #ffe1e1 0%, #ffc8c8 100%);
}

.parada-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.95rem;
    margin-bottom: 0.85rem;
    padding: 1rem 1.05rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 253, 0.96));
    border: 1px solid rgba(219, 227, 239, 0.92);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.parada-circle-idx {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 20px;
    background: linear-gradient(135deg, #edf4ff 0%, #dce9ff 100%);
    color: #4a86df;
    font-size: 0.96rem;
    font-weight: 800;
}

.parada-info {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.parada-name {
    margin-bottom: 0.3rem;
    color: #101828;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mc-detail-page .parada-name {
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    color: #1b2b4b !important;
}

.parada-sub {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 500;
}

.mc-detail-page .parada-sub {
    font-size: 0.88rem !important;
    font-weight: 400 !important;
    color: #74839a !important;
}

.parada-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.parada-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.badge-pending {
    background: linear-gradient(135deg, #fff1d2 0%, #ffe4b0 100%);
    color: #d17a00;
}

.badge-done {
    background: linear-gradient(135deg, #dcf7e6 0%, #c3f0d3 100%);
    color: #1f8153;
}

.badge-incidencia {
    background: linear-gradient(135deg, #ffe1e1 0%, #ffc8c8 100%);
    color: #cc4747;
}

.parada-locked {
    color: #c0cad8;
    font-size: 1.3rem;
}

.mc-admin-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.mc-admin-actions .btn {
    min-width: 38px;
    min-height: 38px;
    padding: 0;
    border-radius: 12px;
}

.mc-map-frame {
    min-height: 280px;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(219, 227, 239, 0.92);
    background: linear-gradient(180deg, #f7fbff 0%, #eaf1fb 100%);
}

.mc-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.mc-kpi-card {
    padding: 1rem;
    border-radius: 20px;
    background: rgba(244, 248, 253, 0.92);
}

.mc-kpi-card strong {
    display: block;
    color: #101828;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.mc-kpi-card span {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 700;
}

.mc-survey-page .apple-rel-header {
    margin-bottom: 1rem;
}

.apple-rel-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.apple-rel-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 24px;
    background: linear-gradient(135deg, #8ed2ff 0%, #67b8ed 100%);
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 16px 30px rgba(103, 184, 237, 0.22);
    flex-shrink: 0;
}

.apple-rel-info {
    flex: 1;
    min-width: 0;
}

.apple-rel-title {
    margin: 0;
    color: #101828;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    font-weight: 800;
    letter-spacing: -0.025em;
}

.mc-survey-page .apple-rel-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    color: #1b2b4b !important;
}

.apple-rel-sub {
    margin-top: 0.25rem;
    color: #64748b;
    font-size: 0.92rem;
    font-weight: 500;
}

.mc-survey-page .apple-rel-sub {
    font-size: 0.88rem !important;
    font-weight: 400 !important;
    color: #74839a !important;
}

.apple-rel-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: rgba(237, 246, 255, 0.95);
    color: #67b8ed;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.rel-action-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.rel-action-bar .btn {
    min-height: 58px;
    border: 0;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.rel-action-bar .btn-warning {
    color: #8b7a1d;
    background: linear-gradient(135deg, #f7f4d5 0%, #efeac3 100%);
}

.rel-action-bar .btn-danger {
    color: #b03a3a;
    background: linear-gradient(135deg, #f4e4e4 0%, #eed6d6 100%);
}

.section-panel {
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(219, 227, 239, 0.92);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 255, 0.96));
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.section-toggle {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    padding: 1.1rem 1.3rem;
    border: 0;
    background: transparent;
    color: #101828;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.mc-survey-page .section-toggle {
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
}

.section-toggle .chevron {
    margin-left: auto;
    font-size: 1.05rem;
    transition: transform 0.2s ease;
}

.section-toggle.open .chevron {
    transform: rotate(180deg);
}

.section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 34px;
    padding: 0 0.6rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #d9f1ff 0%, #c7e9fd 100%);
    color: #4f95c9;
    font-size: 0.92rem;
    font-weight: 800;
}

.section-body {
    display: none;
    padding: 0 1.3rem 1.3rem;
    border-top: 1px solid rgba(229, 234, 242, 0.9);
}

.section-body.open {
    display: block;
}

#relevamientoForm .form-control,
#relevamientoForm .form-select,
#incidenciaForm .form-control,
#incidenciaForm .form-select {
    min-height: 52px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(251, 253, 255, 0.96);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

#relevamientoForm textarea.form-control,
#incidenciaForm textarea.form-control {
    min-height: 132px;
    padding-top: 0.95rem;
}

#relevamientoForm .form-label,
#incidenciaForm .form-label {
    margin-bottom: 0.5rem;
    color: #334155;
    font-size: 0.98rem;
    font-weight: 800;
}

.mc-field {
    padding: 0.95rem 0;
}

.mc-field + .mc-field {
    border-top: 1px solid rgba(229, 234, 242, 0.9);
}

#relevamientoForm .form-text {
    margin-top: 0.5rem;
    color: #64748b;
    font-size: 0.88rem;
}

#relevamientoForm .form-check {
    margin-bottom: 0.7rem;
    padding: 0.8rem 0.95rem 0.8rem 2.6rem;
    border-radius: 18px;
    background: rgba(244, 248, 253, 0.92);
}

#relevamientoForm .form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.15rem;
}

#relevamientoForm .form-check-label {
    color: #334155;
    font-weight: 600;
}

.foto-field-wrapper {
    padding: 1rem;
    border: 2px dashed rgba(148, 163, 184, 0.45);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(247, 251, 255, 0.95), rgba(243, 248, 253, 0.94));
}

.foto-field-wrapper .foto-input {
    min-height: 220px !important;
    padding: 1rem;
    border: 0 !important;
    border-radius: 20px !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 250, 255, 0.95)),
        radial-gradient(circle at top, rgba(155, 211, 244, 0.2), transparent 70%);
    color: #67b8ed;
    font-size: 1.45rem;
    font-weight: 700;
    text-align: center;
}

.foto-field-wrapper .foto-input::file-selector-button {
    display: none;
}

.foto-field-wrapper .badge {
    padding: 0.45rem 0.8rem;
}

.preview-container {
    margin-top: 1rem !important;
}

.preview-container img {
    border-radius: 18px;
}

.matriz-mobile .mrow-card {
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(219, 227, 239, 0.92);
    background: rgba(250, 252, 255, 0.96);
}

.matriz-mobile .mrow-title {
    padding: 0.95rem 1.05rem;
    background: rgba(239, 244, 251, 0.92);
    color: #426ead;
}

.matriz-mobile .mcols {
    padding: 1rem;
}

.prod-card {
    padding: 1rem 1.1rem 1.2rem;
}

.prod-card + .prod-card {
    border-top: 1px solid rgba(229, 234, 242, 0.9);
}

.prod-card-active {
    background: rgba(219, 248, 231, 0.58);
}

.prod-num {
    color: #8b99ab;
}

.prod-name {
    color: #101828;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.prod-ean {
    color: #64748b;
    font-size: 0.82rem;
}

.presencia-label-text {
    color: #334155;
    font-size: 0.92rem;
    font-weight: 800;
}

.presence-slider {
    background: #dbe4ef;
}

.presence-toggle input:checked + .presence-slider {
    background: #4bb86f;
}

.audit-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.9rem;
}

.audit-fields.hidden {
    display: none !important;
}

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

.promo-pill {
    min-height: 52px;
    border-radius: 18px;
}

.promo-pill.active {
    background: linear-gradient(135deg, #7ab0ff 0%, #5f95ed 100%);
    border-color: transparent;
}

.mc-submit-dock {
    position: sticky;
    bottom: 1rem;
    z-index: 30;
    padding: 1rem 0 0;
}

.mc-submit-dock__inner {
    padding: 0.7rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(219, 227, 239, 0.92);
    box-shadow: 0 22px 42px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

#btn-submit-form {
    min-height: 68px;
    border: 0;
    border-radius: 999px;
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #59be6b 0%, #4aa75b 100%);
    box-shadow: 0 18px 32px rgba(74, 167, 91, 0.22);
}

.mc-submit-cancel {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    margin-top: 0.75rem;
    color: #64748b;
    font-size: 0.96rem;
    font-weight: 700;
}

.mc-mobile-tabbar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.35rem;
    padding: 0.6rem 0.8rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.92);
    border-top: 1px solid rgba(219, 227, 239, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 -12px 28px rgba(15, 23, 42, 0.08);
}

.mc-mobile-tabbar--operator {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mc-mobile-tabbar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 56px;
    border-radius: 18px;
    color: #8b95a5;
    font-size: 0.78rem;
    font-weight: 700;
}

.mc-mobile-tabbar__item span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.68rem;
    line-height: 1.05;
    letter-spacing: -0.01em;
}

.mc-mobile-tabbar__button {
    border: 0;
    background: transparent;
}

.mc-mobile-tabbar__item i {
    font-size: 1.55rem;
    line-height: 1;
}

.mc-mobile-tabbar__item.is-active {
    color: #4a88df;
}

.mc-mobile-tabbar__item--danger {
    color: #b56b6b;
}

.mc-mobile-tabbar__item--danger:hover {
    color: #a24646;
}

@media (max-width: 991.98px) {
    .mc-detail-layout,
    .mc-route-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .mc-ops-main {
        padding-top: 0.85rem !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        padding-bottom: 6.7rem !important;
    }

    .mc-page-frame {
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .mc-utility-strip {
        display: none;
    }

    .mc-page-header {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 1.15rem;
    }

    .mc-page-title {
        font-size: 3rem;
    }

    .mc-page-description {
        font-size: 0.96rem;
    }

    .mc-page-actions {
        justify-content: stretch;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }

    .mc-page-actions .mc-inline-action {
        flex: 1 1 0;
        min-width: 0;
        padding: 0.78rem 0.9rem;
        font-size: 0.84rem;
        white-space: nowrap;
    }

    .mc-page-actions .mc-inline-action i {
        flex-shrink: 0;
    }

    .mc-routes-page .filter-wrap {
        padding: 0.9rem;
        border-radius: 24px;
    }

    .mc-routes-page .filter-search-row {
        gap: 0.7rem;
    }

    .mc-routes-page .filter-search-row input,
    .mc-routes-page .filter-search-btn {
        min-height: 56px;
    }

    .mc-route-grid {
        gap: 1rem;
    }

    .mc-route-card {
        padding: 1.15rem;
        border-radius: 24px;
    }

    .mc-route-card__title {
        font-size: 1.4rem;
    }

    .mc-route-card__meta {
        font-size: 0.92rem;
    }

    .mc-detail-topbar__title h1,
    .mc-survey-topbar__title h1 {
        font-size: 1.3rem;
    }

    .mc-route-hero__title {
        font-size: 1.7rem;
    }

    .mc-route-hero__meta {
        grid-template-columns: 1fr;
    }

    .mc-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .parada-card {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: flex-start;
    }

    .parada-actions {
        grid-column: 1 / -1;
        justify-content: space-between;
        margin-top: 0.35rem;
    }

    .parada-circle-idx {
        width: 46px;
        height: 46px;
        border-radius: 16px;
    }

    .parada-name {
        font-size: 1rem;
    }

    .apple-rel-header {
        align-items: flex-start;
    }

    .apple-rel-icon {
        width: 60px;
        height: 60px;
        border-radius: 20px;
        font-size: 1.65rem;
    }

    .apple-rel-title {
        font-size: 1.45rem;
    }

    .rel-action-bar {
        grid-template-columns: 1fr 1fr;
    }

    .rel-action-bar .btn {
        min-height: 54px;
        font-size: 0.95rem;
    }

    .section-toggle {
        padding: 1rem 1.05rem;
        font-size: 1rem;
    }

    .section-body {
        padding: 0 1.05rem 1.05rem;
    }

    .foto-field-wrapper {
        padding: 0.8rem;
    }

    .foto-field-wrapper .foto-input {
        min-height: 180px !important;
        font-size: 1.2rem;
    }

    .mc-submit-dock {
        bottom: 5.1rem;
    }

    .mc-submit-dock__inner {
        padding: 0.55rem;
        border-radius: 24px;
    }

    #btn-submit-form {
        min-height: 62px;
        font-size: 1.1rem;
    }
}

@media (min-width: 768px) {
    .mc-mobile-tabbar {
        display: none;
    }

    .mc-ops-main {
        padding-bottom: 3rem !important;
    }
}

/* Global responsive shell */
.mc-shell-body,
.mc-public-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(122, 165, 238, 0.16), transparent 32%),
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.12), transparent 28%),
        linear-gradient(180deg, #f5f7fb 0%, #eef3f9 100%);
    color: #10233e;
}

.mc-shell {
    display: flex;
    min-height: 100vh;
}

.mc-sidebar {
    width: 318px;
    min-width: 318px;
    padding: 1.4rem 1.15rem 1.2rem;
    flex-direction: column;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.82);
    border-right: 1px solid rgba(210, 220, 233, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 22px 0 42px rgba(15, 23, 42, 0.06);
    transition: width 0.22s ease, min-width 0.22s ease, padding 0.22s ease, opacity 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.mc-sidebar__brand {
    padding: 0.15rem 0.25rem 0.35rem;
}

.mc-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    color: #0f172a;
}

.mc-brand:hover {
    color: #2563eb;
}

.mc-brand__mark {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #7aa5ee 0%, #4a88df 100%);
    color: #fff;
    box-shadow: 0 16px 30px rgba(74, 136, 223, 0.24);
    font-size: 1.2rem;
}

.mc-brand__copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mc-brand__copy strong {
    font-size: 1.04rem;
    letter-spacing: -0.02em;
}

.mc-brand__copy small {
    color: #7b8798;
    font-size: 0.78rem;
}

.mc-brand--inline .mc-brand__mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
}

.mc-sidebar__scroll {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1 1 auto;
    min-height: 0;
    padding-right: 0.1rem;
    overflow-y: auto;
}

.mc-nav-section {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.mc-nav-section__label {
    padding: 0 0.9rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #94a3b8;
    text-transform: uppercase;
}

.mc-nav-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 48px;
    padding: 0.8rem 0.95rem;
    border-radius: 18px;
    color: #475569;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.mc-nav-item i {
    width: 1.15rem;
    text-align: center;
    font-size: 1.08rem;
    color: #8aa4ca;
    transition: color 0.18s ease;
}

.mc-nav-item:hover {
    transform: translateX(2px);
    background: rgba(74, 136, 223, 0.08);
    color: #1f3a63;
}

.mc-nav-item:hover i,
.mc-nav-item.is-active i {
    color: #4a88df;
}

.mc-nav-item.is-active {
    color: #16345c;
    background: linear-gradient(135deg, rgba(122, 165, 238, 0.16), rgba(255, 255, 255, 0.92));
    border: 1px solid rgba(164, 191, 233, 0.68);
    box-shadow: 0 14px 26px rgba(74, 136, 223, 0.12);
}

.mc-sidebar .btn {
    justify-content: flex-start;
    min-height: 46px;
    border-radius: 18px;
}

.mc-sidebar__footer {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-top: 0.25rem;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.mc-sidebar__copyright {
    padding: 0.35rem 0.95rem 0;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 500;
}

.mc-sidebar__footer-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 0.95rem;
    border-radius: 18px;
    color: #475569;
    font-weight: 700;
}

.mc-sidebar__footer-link:hover {
    color: #1f3a63;
    background: rgba(74, 136, 223, 0.08);
}

.mc-sidebar__footer-link--danger {
    color: #cf4c4c;
}

.mc-sidebar__footer-link--danger:hover {
    color: #b91c1c;
    background: rgba(254, 226, 226, 0.8);
}

.mc-sidebar-offcanvas,
.mc-sidebar-offcanvas .offcanvas-header,
.mc-sidebar-offcanvas .offcanvas-body {
    background: #f7f9fc;
}

.mc-sidebar-offcanvas {
    width: min(92vw, 360px);
}

.mc-sidebar-offcanvas .offcanvas-header {
    padding: 1.2rem 1.2rem 0.9rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.92);
}

.mc-sidebar-offcanvas .offcanvas-body {
    padding: 1rem 1rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mc-sidebar__footer--offcanvas {
    margin-top: auto;
}

.mc-shell__main {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    transition: margin 0.22s ease;
}

.mc-topbar {
    padding: 1rem 1rem 0;
}

.mc-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 78px;
    padding: 0.9rem 1rem;
    border-radius: 28px;
    border: 1px solid rgba(219, 227, 239, 0.92);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.mc-topbar__lead {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
}

.mc-mobile-section-header {
    display: none;
}

.mc-mobile-section-header__spacer,
.mc-profile-hero__spacer {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
}

.mc-mobile-section-header__brandmark {
    width: 52px;
    height: 52px;
    justify-self: start;
    border-radius: 18px;
}

.mc-menu-toggle {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(122, 165, 238, 0.2), rgba(255, 255, 255, 0.94));
    color: #27518f;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.mc-shell-floating-toggle {
    position: fixed;
    top: 1rem;
    left: calc(318px + 1rem);
    z-index: 1040;
}

.mc-topbar__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 46px;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(217, 226, 238, 0.92);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 246, 253, 0.9));
    color: #284a7e;
    font-size: 0.92rem;
    font-weight: 700;
}

.mc-offline-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 1rem 0;
    padding: 0.95rem 1.1rem;
    border-radius: 20px;
    background: linear-gradient(135deg, #143664 0%, #25508d 100%);
    color: #fff;
    box-shadow: 0 18px 36px rgba(20, 54, 100, 0.22);
}

.mc-offline-banner strong {
    font-size: 0.95rem;
}

.mc-offline-banner span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
}

.mc-offline-banner a {
    margin-left: auto;
    color: #dbeafe;
    font-weight: 700;
}

.mc-flash-stack {
    padding: 1rem 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mc-flash-stack .alert {
    margin: 0;
    border: 0;
    border-radius: 22px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.09);
}

.mc-flash-copy {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.mc-shell-main,
.mc-public-main {
    padding: 1rem;
}

.mc-page-frame {
    width: min(100%, 1500px);
    padding: 1.4rem;
    margin: 0 auto;
    border-radius: 34px;
    border: 1px solid rgba(219, 227, 239, 0.92);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 32px 64px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.mc-shell-footer,
.mc-public-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.6rem 1.3rem;
    color: #7b8798;
    font-size: 0.84rem;
    gap: 1rem;
    text-align: center;
}

.mc-public-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 72px);
}

.mc-public-footer {
    display: flex;
}

.mc-shell.is-sidebar-collapsed .mc-sidebar {
    width: 0;
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
    border-right-color: transparent;
    box-shadow: none;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

.mc-shell.is-sidebar-collapsed .mc-shell-floating-toggle {
    left: 1rem;
}

.mc-topbar + .mc-shell-floating-toggle {
    display: none !important;
}

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

.page-header > :first-child {
    flex: 1;
    min-width: 0;
}

.page-header h1,
.page-header h2 {
    margin-bottom: 0;
}

.mc-page-frame .container-fluid,
.mc-page-frame .container {
    padding-left: 0;
    padding-right: 0;
}

.mc-page-frame .card,
.mc-shell .modal-content,
.mc-page-frame .list-group-item,
.mc-page-frame .dropdown-menu {
    border: 1px solid rgba(224, 231, 239, 0.92);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.07);
}

.mc-page-frame .card-header,
.mc-page-frame .card-footer {
    background: rgba(248, 250, 252, 0.92);
}

.mc-page-frame .form-control,
.mc-page-frame .form-select,
.mc-page-frame textarea,
.mc-page-frame input[type="date"],
.mc-page-frame input[type="number"],
.mc-page-frame input[type="text"],
.mc-page-frame input[type="email"],
.mc-page-frame input[type="password"] {
    min-height: 52px;
    border-radius: 16px;
    border: 1px solid rgba(203, 213, 225, 0.92);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.mc-page-frame textarea.form-control,
.mc-page-frame textarea {
    min-height: 140px;
}

.mc-page-frame .form-control:focus,
.mc-page-frame .form-select:focus,
.mc-page-frame textarea:focus {
    border-color: rgba(74, 136, 223, 0.78);
    box-shadow: 0 0 0 4px rgba(74, 136, 223, 0.14);
}

.mc-page-frame .form-label {
    color: #475569;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.mc-page-frame .form-text,
.mc-page-frame .text-muted {
    color: #7b8798 !important;
}

.mc-page-frame .table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(248, 250, 252, 0.78);
    --bs-table-hover-bg: rgba(234, 241, 251, 0.72);
    margin-bottom: 0;
}

.mc-page-frame .table thead th {
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom-color: rgba(203, 213, 225, 0.82);
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mc-page-frame .table tbody td {
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom-color: rgba(226, 232, 240, 0.82);
    vertical-align: middle;
}

.mc-page-frame .badge {
    border-radius: 999px;
    padding: 0.5rem 0.85rem;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}

.mc-page-frame .alert {
    border-radius: 22px;
}

.mc-page-frame .list-group-item {
    border-radius: 18px !important;
    margin-bottom: 0.55rem;
    background: rgba(255, 255, 255, 0.94);
}

.mc-page-frame .dropdown-menu {
    border-radius: 18px;
    padding: 0.45rem;
}

.mc-page-frame .dropdown-item {
    border-radius: 12px;
    font-weight: 600;
}

.mc-page-frame .btn-group-sm > .btn,
.mc-page-frame .btn-sm {
    min-height: 38px;
}

.mc-page-frame .pagination-rounded .page-link {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

/* Auth / public pages */
.mc-auth-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    border-radius: 36px;
    overflow: hidden;
    border: 1px solid rgba(219, 227, 239, 0.92);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 34px 68px rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.mc-auth-visual {
    position: relative;
    min-height: 680px;
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        linear-gradient(150deg, rgba(12, 28, 55, 0.76), rgba(31, 74, 139, 0.18)),
        linear-gradient(135deg, rgba(138, 176, 235, 0.9), rgba(70, 122, 203, 0.72));
    color: #fff;
}

.mc-auth-visual__wash {
    position: absolute;
    inset: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.34;
}

.mc-auth-visual__copy,
.mc-auth-visual__stats {
    position: relative;
    z-index: 1;
}

.mc-auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.48rem 0.82rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.26);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mc-auth-title {
    max-width: 10ch;
    margin-top: 1.4rem;
    font-size: clamp(2.8rem, 5vw, 4.8rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
    color: #fff;
}

.mc-auth-copy {
    max-width: 36rem;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.02rem;
    line-height: 1.65;
}

.mc-auth-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.mc-auth-stat {
    padding: 1rem 1.05rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.mc-auth-stat strong,
.mc-auth-stat span {
    display: block;
}

.mc-auth-stat strong {
    font-size: 1.35rem;
}

.mc-auth-stat span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.84rem;
}

.mc-auth-panel {
    padding: 2.5rem 2.3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 253, 0.94));
}

.mc-auth-panel__header {
    margin-bottom: 2rem;
}

.mc-auth-panel__header h1 {
    margin-bottom: 0.55rem;
    font-size: 2.2rem;
    letter-spacing: -0.05em;
}

.mc-auth-panel__header p {
    margin-bottom: 0;
    color: #718096;
    line-height: 1.6;
}

.mc-auth-panel .form-control {
    min-height: 56px;
    border-radius: 18px;
    border: 1px solid rgba(203, 213, 225, 0.92);
    background: #fff;
}

.mc-auth-panel .btn-primary {
    min-height: 58px;
    border-radius: 18px;
    font-size: 1rem;
    font-weight: 800;
    background: linear-gradient(135deg, #5f94ea 0%, #4a88df 100%);
    box-shadow: 0 18px 32px rgba(74, 136, 223, 0.22);
}

.mc-auth-panel .form-check-label,
.mc-auth-panel .form-label {
    color: #475569;
}

.mc-auth-note {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-top: 1.4rem;
    padding: 1rem 1.05rem;
    border-radius: 18px;
    background: rgba(234, 241, 251, 0.72);
    color: #3f5d86;
    font-size: 0.92rem;
}

.mc-auth-note i {
    font-size: 1rem;
    margin-top: 0.1rem;
}

/* Home / profile */
.mc-home-shell,
.mc-profile-shell {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.mc-home-hero,
.mc-profile-hero {
    padding: 1.5rem;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(238, 244, 252, 0.86));
    border: 1px solid rgba(219, 227, 239, 0.92);
    box-shadow: 0 24px 46px rgba(15, 23, 42, 0.08);
}

.mc-home-hero h1,
.mc-profile-hero h1 {
    margin-top: 1rem;
    margin-bottom: 0.7rem;
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.mc-home-hero p,
.mc-profile-hero p {
    max-width: 56rem;
    margin: 0;
    color: #65748a;
    font-size: 1rem;
    line-height: 1.7;
}

.mc-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.1rem;
}

.mc-soft-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.58rem 0.92rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(219, 227, 239, 0.92);
    color: #597090;
    font-size: 0.88rem;
    font-weight: 700;
}

.mc-home-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.mc-home-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 260px;
    padding: 1.3rem;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 252, 0.9));
    border: 1px solid rgba(219, 227, 239, 0.92);
    box-shadow: 0 24px 44px rgba(15, 23, 42, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.mc-home-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 52px rgba(15, 23, 42, 0.12);
}

.mc-home-card__icon {
    width: 62px;
    height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    font-size: 1.6rem;
    color: #fff;
    box-shadow: 0 18px 30px rgba(74, 136, 223, 0.18);
}

.mc-home-card__icon--blue {
    background: linear-gradient(135deg, #7aa5ee 0%, #4a88df 100%);
}

.mc-home-card__icon--green {
    background: linear-gradient(135deg, #6bc56d 0%, #49ab5b 100%);
}

.mc-home-card__icon--gold {
    background: linear-gradient(135deg, #f9c768 0%, #e8a744 100%);
}

.mc-home-card__icon--slate {
    background: linear-gradient(135deg, #64748b 0%, #334155 100%);
}

.mc-home-card h3 {
    margin: 0;
    font-size: 1.55rem;
    letter-spacing: -0.04em;
}

.mc-home-card p {
    margin: 0;
    color: #6d7c90;
    line-height: 1.65;
}

.mc-home-card__footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: #4a88df;
    font-weight: 800;
}

.mc-home-card__footer i {
    font-size: 1.1rem;
}

.mc-home-card__badge {
    align-self: flex-start;
    padding: 0.5rem 0.82rem;
    border-radius: 999px;
    background: rgba(122, 165, 238, 0.12);
    color: #5f7ea8;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mc-home-sidecard,
.mc-profile-card {
    padding: 1.35rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(219, 227, 239, 0.92);
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.08);
}

.mc-profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.65rem;
}

.mc-profile-avatar {
    width: 156px;
    height: 156px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #b5d2fb 0%, #7ea7e5 100%);
    color: #fff;
    font-size: 3.7rem;
    letter-spacing: -0.08em;
    box-shadow: 0 28px 48px rgba(126, 167, 229, 0.3);
}

.mc-profile-sub {
    color: #7b8798;
}

.mc-profile-details {
    display: grid;
    gap: 1rem;
}

.mc-profile-row {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.82);
}

.mc-profile-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.mc-profile-row label {
    display: block;
    margin-bottom: 0.4rem;
    color: #8a95a5;
    font-size: 0.86rem;
    font-weight: 700;
}

.mc-profile-row strong,
.mc-profile-row span {
    font-size: 1.02rem;
    color: #0f172a;
}

.mc-profile-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    min-height: 64px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff5c59 0%, #ff3b30 100%);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
    box-shadow: 0 22px 34px rgba(255, 59, 48, 0.22);
}

.mc-profile-logout:hover {
    color: #fff;
    opacity: 0.95;
}

.mc-profile-note {
    color: #6b7280;
    line-height: 1.7;
}

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

@media (max-width: 1199.98px) {
    .mc-shell-main {
        padding-bottom: 6.3rem;
    }

    .mc-topbar {
        padding-top: 0.85rem;
    }

    .mc-page-frame {
        padding: 1.15rem;
        border-radius: 30px;
    }
}

@media (max-width: 991.98px) {
    .mc-auth-shell {
        grid-template-columns: 1fr;
    }

    .mc-auth-visual {
        min-height: 360px;
    }

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

    .mc-home-grid {
        grid-template-columns: 1fr;
    }

    .mc-topbar__inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    .mc-topbar {
        display: none;
    }

    .mc-mobile-section-header {
        display: block;
        padding: 0 0 0.9rem;
    }

    .mc-mobile-section-header__inner {
        display: grid;
        grid-template-columns: 52px minmax(0, 1fr) 52px;
        align-items: center;
        gap: 0.9rem;
        min-height: 78px;
        padding: 0.9rem 1rem;
        border-radius: 28px;
        border: 1px solid rgba(219, 227, 239, 0.92);
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(238, 244, 252, 0.86));
        box-shadow: 0 20px 42px rgba(15, 23, 42, 0.08);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .mc-mobile-section-header__title {
        margin: 0;
        color: #1b2b4b;
        text-align: center;
        font-size: clamp(1.85rem, 7vw, 2.35rem);
        font-weight: 700;
        letter-spacing: -0.04em;
        line-height: 1.08;
    }

    .mc-detail-page .mc-ops-headbar,
    .mc-survey-page .mc-ops-headbar,
    .mc-profile-hero {
        display: none;
    }

    .page-header .mc-page-back {
        display: none;
    }

    .mc-shell-floating-toggle {
        display: none !important;
    }

    .mc-shell-main,
    .mc-public-main {
        padding: 0.8rem 1rem 6.5rem;
    }

    .mc-public-main {
        min-height: calc(100vh - 48px);
    }

    .mc-ops-headbar {
        min-height: auto;
        padding: 0.95rem 1rem;
        border-radius: 24px;
    }

    .mc-page-frame {
        padding: 1rem;
        border-radius: 26px;
    }

    .mc-offline-banner {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .mc-offline-banner a {
        margin-left: 0;
    }

    .mc-shell-footer,
    .mc-public-footer {
        padding: 0 1rem 6.3rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .mc-page-back {
        display: none;
    }

    .mc-mobile-section-header__inner > .mc-page-back {
        display: inline-flex;
    }

    .mc-auth-panel {
        padding: 1.5rem 1.2rem;
    }

    .mc-auth-visual {
        min-height: 300px;
        padding: 1.35rem;
    }

    .mc-routes-page .filter-search-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 56px;
        align-items: center;
        gap: 0.55rem;
    }

    .mc-routes-page .filter-search-row input {
        width: 100%;
        min-width: 0;
        padding: 0 1rem;
        font-size: 0.95rem;
    }

    .mc-routes-page .filter-search-btn {
        width: 56px;
        min-width: 56px;
        max-width: 56px;
        padding: 0;
        justify-content: center;
        box-shadow: 0 10px 22px rgba(92, 143, 233, 0.22);
    }

    .mc-profile-avatar {
        width: 118px;
        height: 118px;
        font-size: 2.8rem;
    }
}
