/* =========================================================
   QuasSafety Design System — identidad inocuidad / SGIA
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&family=Syne:wght@600;700;800&display=swap');

:root {
    --qs-ink: #10261c;
    --qs-ink-soft: #3d5a4c;
    --qs-muted: #6b8578;
    --qs-forest: #0f5c3a;
    --qs-leaf: #1f8a57;
    --qs-mint: #3cb371;
    --qs-foam: #e7f6ee;
    --qs-mist: #f3faf6;
    --qs-snow: #ffffff;
    --qs-line: #d4e8dc;
    --qs-warn: #c47a12;
    --qs-danger: #c0392b;
    --qs-info: #2a7a8c;
    --qs-sidebar: #0d2419;
    --qs-sidebar-2: #143226;
    --qs-sidebar-hover: rgba(60, 179, 113, 0.14);
    --qs-radius: 16px;
    --qs-radius-sm: 10px;
    --qs-shadow: 0 10px 30px rgba(16, 38, 28, 0.08);
    --qs-shadow-lg: 0 18px 40px rgba(15, 92, 58, 0.16);
    --qs-font: "Figtree", "Segoe UI", sans-serif;
    --qs-display: "Syne", "Figtree", sans-serif;
    --qs-sidebar-width: 280px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--qs-ink);
    font-family: var(--qs-font);
    background:
        radial-gradient(1200px 500px at 10% -10%, rgba(60, 179, 113, 0.18), transparent 55%),
        radial-gradient(900px 420px at 100% 0%, rgba(15, 92, 58, 0.10), transparent 50%),
        linear-gradient(180deg, var(--qs-foam) 0%, var(--qs-mist) 38%, #fbfdfc 100%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .qs-display {
    font-family: var(--qs-display);
    letter-spacing: -0.02em;
    color: var(--qs-ink);
}

a {
    color: var(--qs-leaf);
}

a:hover {
    color: var(--qs-forest);
}

/* ---------- Shell / Sidebar ---------- */
.qs-shell {
    min-height: 100vh;
}

.qs-shell > .row {
    min-height: 100vh;
}

.sidebar {
    position: relative;
    min-height: 100vh;
    overflow-y: auto;
    background:
        linear-gradient(165deg, rgba(60, 179, 113, 0.12), transparent 35%),
        linear-gradient(180deg, var(--qs-sidebar) 0%, var(--qs-sidebar-2) 100%);
    padding: 1.25rem 0 5rem;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.18);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    scrollbar-width: thin;
    scrollbar-color: rgba(143, 214, 174, 0.35) transparent;
    z-index: 2;
}

.logo-sidebar {
    padding: 0.5rem 1.25rem 1.25rem;
    text-align: center;
}

.logo-sidebar img {
    max-width: 148px;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
    transition: transform 0.35s ease;
}

.logo-sidebar a:hover img {
    transform: scale(1.04);
}

.qs-brand-mark {
    margin-top: 0.65rem;
    font-family: var(--qs-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: #e8f6ee;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.qs-brand-mark span {
    display: block;
    font-family: var(--qs-font);
    font-size: 0.72rem;
    font-weight: 500;
    color: #8fd6ae;
    letter-spacing: 0.02em;
    text-transform: none;
    margin-top: 0.15rem;
}

.sidebar .nav-link {
    color: #dceee4;
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 12px;
    margin: 0.15rem 0.75rem;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: var(--qs-sidebar-hover);
    color: #fff;
    transform: translateX(3px);
}

.sidebar .nav-link i {
    margin-right: 0.65rem;
    width: 1.1rem;
    text-align: center;
    color: #8fd6ae;
}

.submenu {
    margin-left: 1rem;
    border-left: 1px solid rgba(143, 214, 174, 0.25);
}

.submenu .nav-link {
    font-size: 0.84rem;
    padding: 0.4rem 0.85rem;
    opacity: 0.92;
}

.nav-item-header {
    color: #8aa897;
    padding: 0.85rem 1.25rem 0.35rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.collapse-arrow {
    float: right;
    transition: transform 0.25s ease;
    opacity: 0.7;
}

.collapsed .collapse-arrow {
    transform: rotate(-90deg);
}

.menu-search-container {
    padding: 0.25rem 1rem 1rem;
}

.menu-search-container .input-group {
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.menu-search-container .input-group-text,
.menu-search-container .form-control,
.menu-search-container .btn-outline-secondary {
    background: transparent;
    border: none;
    color: #e8f2ec;
}

.menu-search-container .form-control::placeholder {
    color: #8aa897;
}

.menu-search-container .form-control:focus {
    box-shadow: none;
    background: transparent;
    color: #fff;
}

.no-results-message {
    color: #8aa897;
    text-align: center;
    padding: 1rem;
    font-style: italic;
    display: none;
}

.nav-item.filtered-out { display: none !important; }
.nav-item.filtered-match { display: block !important; }
.nav-item.filtered-match .nav-link {
    background: rgba(60, 179, 113, 0.18) !important;
}
.nav-item.has-matches .collapse { display: block !important; }
.search-highlight {
    background: #f6d860;
    color: #10261c;
    padding: 0 0.2rem;
    border-radius: 4px;
    font-weight: 700;
}

.sidebar-user {
    color: #fff;
    margin-top: 2rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-user .user-greeting {
    font-size: 0.95rem;
    font-weight: 500;
}

.user-role {
    font-size: 0.8rem;
    margin-top: 0.35rem;
    color: #8fd6ae;
}

/* ---------- Main content ---------- */
.main-content {
    position: relative;
    z-index: 1;
    padding: 1.25rem 1.5rem 5.5rem;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Evita cajas con margen negativo que se montan encima del layout */
.qs-page,
.container-fluid.px-4,
.main-content > .container-fluid {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.qs-page {
    margin: 0 !important;
    padding: 0 !important;
    min-height: auto !important;
    background: transparent !important;
}

/* ---------- Surfaces ---------- */
.card,
.qs-card,
.form-container,
.report-container,
.table-custom {
    position: relative;
    z-index: 1;
    background: var(--qs-snow);
    border: 1px solid var(--qs-line) !important;
    border-radius: var(--qs-radius) !important;
    box-shadow: var(--qs-shadow);
    margin-bottom: 1rem;
}

.card {
    overflow: visible;
}

.card .card,
.qs-hero + .card,
.qs-hero + .row,
.header-quas + .card,
.header-quas + .row {
    clear: both;
}

.card-header {
    background: linear-gradient(180deg, #f7fcf9, #eef8f2) !important;
    border-bottom: 1px solid var(--qs-line) !important;
    color: var(--qs-forest) !important;
    font-family: var(--qs-display);
    font-weight: 700;
}

.card-header.bg-primary,
.card-header.bg-success,
.card-header.bg-dark {
    background: linear-gradient(135deg, var(--qs-forest), var(--qs-leaf)) !important;
    color: #fff !important;
    border-bottom: none !important;
}

.card-body {
    padding: 1.35rem;
}

.dashboard-card {
    border: 1px solid var(--qs-line);
    border-radius: var(--qs-radius);
    box-shadow: var(--qs-shadow);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    margin-bottom: 1.25rem;
    overflow: hidden;
    background: var(--qs-snow);
}

.dashboard-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--qs-shadow-lg);
}

.dashboard-card .card-icon,
.card-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--qs-leaf);
}

.dashboard-section-title {
    font-family: var(--qs-display);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.45rem;
    border-bottom: 2px solid var(--qs-line);
    color: var(--qs-forest);
    font-weight: 700;
}

.card.border-left-primary,
.card.border-left-success,
.card.border-left-info,
.card.border-left-warning {
    border: 1px solid var(--qs-line) !important;
    border-left: 4px solid var(--qs-leaf) !important;
    border-radius: var(--qs-radius) !important;
    box-shadow: var(--qs-shadow);
}

.qs-hero,
.header-quas {
    background: linear-gradient(135deg, var(--qs-forest) 0%, var(--qs-leaf) 55%, #45b078 100%);
    color: #fff;
    border-radius: var(--qs-radius);
    padding: 1.15rem 1.35rem;
    margin-bottom: 1.15rem;
    box-shadow: var(--qs-shadow);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.qs-hero h1,
.qs-hero h4,
.header-quas h4,
.header-quas .page-title {
    color: #fff !important;
    margin: 0 0 0.25rem;
}

.qs-hero p,
.header-quas p,
.header-quas span {
    color: rgba(255, 255, 255, 0.88) !important;
    margin: 0;
}

.page-header {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--qs-line);
    padding: 1rem 1.25rem;
    margin-bottom: 1.35rem;
    border-radius: var(--qs-radius);
    box-shadow: var(--qs-shadow);
}

.badge-section {
    background: var(--qs-forest);
    color: #fff;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
}

/* ---------- Tables ---------- */
.table {
    --bs-table-bg: transparent;
}

.table thead th,
.qs-table thead th,
.table-custom thead th {
    background: #eaf6ef !important;
    color: var(--qs-forest) !important;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
    border-bottom: 1px solid var(--qs-line) !important;
    white-space: nowrap;
    vertical-align: middle;
}

.table tbody tr {
    transition: background 0.15s ease;
}

.table tbody tr:hover {
    background: #f4fbf7 !important;
}

.table td {
    vertical-align: middle;
    border-color: #e8f0eb;
}

.table-bordered {
    border-color: var(--qs-line);
}

.table-bordered > :not(caption) > * > * {
    border-color: #e4efe8;
}

/* ---------- Forms ---------- */
.form-label,
.col-form-label {
    font-weight: 600;
    color: var(--qs-ink-soft);
    font-size: 0.9rem;
}

.form-control,
.form-select,
.form-custom .form-control {
    border-radius: var(--qs-radius-sm);
    border: 1px solid var(--qs-line);
    padding: 0.65rem 0.85rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.form-control:focus,
.form-select:focus,
.form-custom .form-control:focus {
    border-color: var(--qs-mint);
    box-shadow: 0 0 0 0.2rem rgba(31, 138, 87, 0.15);
}

/* ---------- Modern Buttons System (QuasSafety Premium) ---------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 11px;
    font-weight: 600;
    font-size: 0.885rem;
    line-height: 1.45;
    padding: 0.55rem 1.15rem;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-font-smoothing: antialiased;
}

.btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.btn:active,
.btn.active {
    transform: translateY(1px) scale(0.985);
}

.btn:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 0.22rem rgba(31, 157, 96, 0.25);
}

.btn:disabled,
.btn.disabled {
    opacity: 0.55;
    transform: none !important;
    box-shadow: none !important;
    cursor: not-allowed;
}

/* Iconos dentro de botones */
.btn i,
.btn svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05em;
    line-height: 1;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover i.bi-plus,
.btn:hover i.bi-plus-lg,
.btn:hover i.bi-plus-circle {
    transform: rotate(90deg) scale(1.12);
}

.btn:hover i.bi-arrow-right,
.btn:hover i.bi-chevron-right {
    transform: translateX(3px);
}

.btn:hover i.bi-arrow-left,
.btn:hover i.bi-chevron-left {
    transform: translateX(-3px);
}

.btn:hover i.bi-download {
    transform: translateY(2px);
}

.btn:hover i.bi-trash,
.btn:hover i.bi-trash-fill {
    transform: scale(1.18);
}

.btn:hover i.bi-pencil,
.btn:hover i.bi-pencil-square {
    transform: rotate(-12deg) scale(1.12);
}

.btn:hover i.bi-eye,
.btn:hover i.bi-eye-fill {
    transform: scale(1.15);
}

/* Variante: Primary / Success (Brand Forest & Emerald Leaf) */
.btn-primary,
.btn-success {
    background: linear-gradient(135deg, #1f9d60 0%, #10633e 100%) !important;
    border-color: rgba(16, 99, 62, 0.35) !important;
    color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 14px rgba(16, 99, 62, 0.25) !important;
}

.btn-primary:hover,
.btn-success:hover {
    background: linear-gradient(135deg, #25b46e 0%, #0d5434 100%) !important;
    border-color: rgba(13, 84, 52, 0.5) !important;
    color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 7px 22px rgba(16, 99, 62, 0.38) !important;
}

.btn-primary:active,
.btn-success:active {
    background: linear-gradient(135deg, #0f5c3a 0%, #0a3f28 100%) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

/* Variante: Info / Teal (Acceso, Visualización, Informes) */
.btn-info {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
    border-color: rgba(2, 132, 199, 0.35) !important;
    color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 14px rgba(14, 165, 233, 0.25) !important;
}

.btn-info:hover {
    background: linear-gradient(135deg, #38bdf8 0%, #0369a1 100%) !important;
    color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 7px 22px rgba(14, 165, 233, 0.38) !important;
}

/* Variante: Warning / Amber (Alertas, Precaución, Modificación) */
.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    border-color: rgba(217, 119, 6, 0.35) !important;
    color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 14px rgba(245, 158, 11, 0.25) !important;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #b45309 100%) !important;
    color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 7px 22px rgba(245, 158, 11, 0.38) !important;
}

/* Variante: Danger / Crimson (Eliminar, Anonimizar, Rechazar) */
.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border-color: rgba(220, 38, 38, 0.35) !important;
    color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 14px rgba(239, 68, 68, 0.25) !important;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #f87171 0%, #b91c1c 100%) !important;
    color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 7px 22px rgba(239, 68, 68, 0.38) !important;
}

/* Variante: Secondary / Slate (Neutro, Cancelar, Cerrar) */
.btn-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
    border-color: rgba(71, 85, 105, 0.35) !important;
    color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 4px 12px rgba(71, 85, 105, 0.2) !important;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #94a3b8 0%, #334155 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(71, 85, 105, 0.3) !important;
}

/* Variante: Dark (Obsidian) */
.btn-dark {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    border-color: rgba(15, 23, 42, 0.4) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25) !important;
}

.btn-dark:hover {
    background: linear-gradient(135deg, #334155 0%, #020617 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 7px 22px rgba(15, 23, 42, 0.38) !important;
}

/* Variante: Light (Glass Card / Superficie) */
.btn-light {
    background: #ffffff !important;
    border: 1px solid #d4e8dc !important;
    color: #10261c !important;
    box-shadow: 0 2px 6px rgba(16, 38, 28, 0.05) !important;
}

.btn-light:hover {
    background: #f2faf5 !important;
    border-color: #8fd6ae !important;
    color: #0f5c3a !important;
    box-shadow: 0 6px 16px rgba(15, 92, 58, 0.12) !important;
}

/* Variantes Outline Modernas */
.btn-outline-success {
    background: rgba(231, 246, 238, 0.5) !important;
    border: 1.5px solid #1f9d60 !important;
    color: #10633e !important;
}

.btn-outline-success:hover {
    background: linear-gradient(135deg, #1f9d60 0%, #10633e 100%) !important;
    border-color: #10633e !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(16, 99, 62, 0.3) !important;
}

.btn-outline-primary {
    background: rgba(240, 249, 255, 0.5) !important;
    border: 1.5px solid #0284c7 !important;
    color: #0369a1 !important;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(14, 165, 233, 0.3) !important;
}

.btn-outline-danger {
    background: rgba(254, 242, 242, 0.5) !important;
    border: 1.5px solid #ef4444 !important;
    color: #dc2626 !important;
}

.btn-outline-danger:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.3) !important;
}

.btn-outline-warning {
    background: rgba(254, 252, 232, 0.5) !important;
    border: 1.5px solid #f59e0b !important;
    color: #b45309 !important;
}

.btn-outline-warning:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    border-color: #d97706 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.3) !important;
}

.btn-outline-secondary {
    background: rgba(248, 250, 252, 0.6) !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #475569 !important;
}

.btn-outline-secondary:hover {
    background: #e2e8f0 !important;
    border-color: #94a3b8 !important;
    color: #1e293b !important;
    box-shadow: 0 4px 12px rgba(71, 85, 105, 0.15) !important;
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.5) !important;
    color: #ffffff !important;
    backdrop-filter: blur(6px);
}

.btn-outline-light:hover {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: #10633e !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Tamaños de Botones */
.btn-sm {
    padding: 0.38rem 0.8rem;
    font-size: 0.815rem;
    border-radius: 9px;
    gap: 0.35rem;
}

.btn-lg {
    padding: 0.75rem 1.65rem;
    font-size: 1rem;
    border-radius: 14px;
    gap: 0.65rem;
}

.btn-pill,
.rounded-pill {
    border-radius: 999px !important;
}

/* Grupos de Botones */
.btn-group {
    border-radius: 11px;
    box-shadow: 0 2px 6px rgba(16, 38, 28, 0.06);
    overflow: hidden;
}

.btn-group .btn {
    border-radius: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.btn-group .btn:first-child {
    border-top-left-radius: 11px !important;
    border-bottom-left-radius: 11px !important;
}

.btn-group .btn:last-child {
    border-top-right-radius: 11px !important;
    border-bottom-right-radius: 11px !important;
}

.btn-group-sm .btn {
    padding: 0.32rem 0.65rem;
    font-size: 0.8rem;
}

/* Botones de Acción en Tablas (Squircle) */
.btn-action,
.btn-icon {
    width: 33px;
    height: 33px;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 9px !important;
    margin: 0 0.18rem;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-action:hover,
.btn-icon:hover {
    transform: translateY(-2px) scale(1.08) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18) !important;
}


/* ---------- Alerts / badges ---------- */
.alert {
    border: none;
    border-radius: var(--qs-radius-sm);
    box-shadow: var(--qs-shadow);
}

.alert-success,
.alert-success-custom {
    background: #e5f7ec;
    color: #145c38;
}

.alert-danger,
.alert-danger-custom {
    background: #fde8e6;
    color: #8a2a22;
}

.badge.bg-success,
.badge.bg-primary {
    background: var(--qs-leaf) !important;
}

/* ---------- Footer ---------- */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: auto;
    max-height: 56px;
    background: linear-gradient(90deg, #0d2419, #143226 50%, #0f5c3a);
    color: #fff;
    z-index: 1040;
    font-size: 0.85rem;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer .user-greeting,
.footer .user-role,
.footer strong {
    color: #fff !important;
}

.footer .btn-link {
    color: #b7ebc9 !important;
    text-decoration: none;
    font-weight: 600;
}

.footer .btn-link:hover {
    color: #fff !important;
}

/* ---------- Legacy helpers ---------- */
.text-success {
    color: var(--qs-leaf) !important;
}

.text-primary {
    color: var(--qs-forest) !important;
}

.bg-success {
    background-color: var(--qs-leaf) !important;
}

.bg-primary {
    background-color: var(--qs-forest) !important;
}

/* ---------- Motion ---------- */
@media (max-width: 991.98px) {
    .sidebar {
        position: relative;
        height: auto;
        min-height: auto;
    }

    .main-content {
        padding: 1rem 1rem 5rem;
    }
}
