/* =========================================================
   ROCA MAGISTERIAL
   Base visual responsiva v1.0
   ========================================================= */

/* ---------------------------------------------------------
   Variables generales
   --------------------------------------------------------- */

:root {
    --rm-primary: #2c5e9e;
    --rm-primary-dark: #214a7d;
    --rm-secondary: #4f7c45;
    --rm-secondary-dark: #3f6637;

    --rm-sidebar: #1f2937;
    --rm-sidebar-hover: #374151;
    --rm-sidebar-active: #2c5e9e;

    --rm-background: #f4f6f9;
    --rm-surface: #ffffff;
    --rm-border: #e5e7eb;

    --rm-text: #1f2937;
    --rm-text-muted: #6b7280;

    --rm-success: #198754;
    --rm-warning: #f59e0b;
    --rm-danger: #dc3545;
    --rm-info: #0dcaf0;

    --rm-radius-sm: 8px;
    --rm-radius-md: 12px;
    --rm-radius-lg: 16px;

    --rm-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --rm-shadow-md: 0 4px 18px rgba(0, 0, 0, 0.08);
}

/* ---------------------------------------------------------
   Estructura general
   --------------------------------------------------------- */

html,
body {
    min-height: 100%;
}

body,
.rm-body {
    margin: 0;
    background: var(--rm-background);
    color: var(--rm-text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

a {
    transition: all 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* ---------------------------------------------------------
   Sidebar actual
   --------------------------------------------------------- */

.sidebar {
    min-height: 100vh;
    background: var(--rm-sidebar);
    color: #ffffff;
}

.sidebar h4 {
    font-weight: 700;
    letter-spacing: 0.2px;
}

.sidebar a {
    display: block;
    margin-bottom: 5px;
    padding: 12px 15px;
    border-radius: var(--rm-radius-sm);
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.2s ease,
                transform 0.2s ease;
}

.sidebar a:hover,
.sidebar a:focus {
    background: var(--rm-sidebar-hover);
    color: #ffffff;
    transform: translateX(2px);
}

.sidebar a i {
    width: 22px;
    margin-right: 6px;
    text-align: center;
}

.sidebar .bg-danger:hover,
.sidebar .bg-danger:focus {
    background: #bb2d3b !important;
}

.sidebar .fw-bold {
    padding-left: 8px;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    opacity: 0.75;
}

/* ---------------------------------------------------------
   Encabezado superior
   --------------------------------------------------------- */

.topbar {
    margin-bottom: 20px;
    padding: 15px 18px;
    background: var(--rm-surface);
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-radius-md);
    box-shadow: var(--rm-shadow-sm);
}

/* ---------------------------------------------------------
   Tarjetas
   --------------------------------------------------------- */

.card,
.card-dashboard {
    background: var(--rm-surface);
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-radius-md);
    box-shadow: var(--rm-shadow-sm);
}

.card-dashboard {
    border: none;
    border-radius: var(--rm-radius-lg);
    box-shadow: var(--rm-shadow-md);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--rm-border);
    font-weight: 600;
}

.card-footer {
    background: transparent;
    border-top: 1px solid var(--rm-border);
}

/* ---------------------------------------------------------
   Títulos
   --------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--rm-text);
}

.page-title,
.rm-page-title {
    margin-bottom: 5px;
    font-weight: 700;
}

.page-subtitle,
.rm-page-subtitle {
    margin-bottom: 0;
    color: var(--rm-text-muted);
}

/* ---------------------------------------------------------
   Botones
   --------------------------------------------------------- */

.btn {
    min-height: 40px;
    border-radius: var(--rm-radius-sm);
    font-weight: 500;
}

.btn-sm {
    min-height: 34px;
}

.btn-primary {
    background: var(--rm-primary);
    border-color: var(--rm-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--rm-primary-dark);
    border-color: var(--rm-primary-dark);
}

.btn-success {
    background: var(--rm-secondary);
    border-color: var(--rm-secondary);
}

.btn-success:hover,
.btn-success:focus {
    background: var(--rm-secondary-dark);
    border-color: var(--rm-secondary-dark);
}

/* ---------------------------------------------------------
   Formularios
   --------------------------------------------------------- */

.form-label {
    margin-bottom: 6px;
    font-weight: 600;
    color: #374151;
}

.form-control,
.form-select {
    min-height: 42px;
    border-color: #d1d5db;
    border-radius: var(--rm-radius-sm);
}

textarea.form-control {
    min-height: 110px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--rm-primary);
    box-shadow: 0 0 0 0.2rem rgba(44, 94, 158, 0.15);
}

.form-text {
    color: var(--rm-text-muted);
}

/* ---------------------------------------------------------
   Tablas
   --------------------------------------------------------- */

.table {
    margin-bottom: 0;
    vertical-align: middle;
}

.table > thead > tr > th {
    white-space: nowrap;
    background: #f8fafc;
    color: #374151;
    font-size: 0.88rem;
    font-weight: 700;
}

.table > tbody > tr:hover {
    background: #f8fafc;
}

.table-responsive {
    border-radius: var(--rm-radius-sm);
}

/* ---------------------------------------------------------
   DataTables
   --------------------------------------------------------- */

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 14px;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    min-height: 38px;
    border: 1px solid #d1d5db;
    border-radius: var(--rm-radius-sm);
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 6px !important;
}

/* ---------------------------------------------------------
   Alertas
   --------------------------------------------------------- */

.alert {
    border: none;
    border-radius: var(--rm-radius-md);
}

/* ---------------------------------------------------------
   Indicadores y etiquetas
   --------------------------------------------------------- */

.badge {
    padding: 0.5em 0.7em;
    border-radius: 999px;
    font-weight: 600;
}

/* ---------------------------------------------------------
   Utilidades
   --------------------------------------------------------- */

.rm-section {
    margin-bottom: 24px;
}

.rm-muted {
    color: var(--rm-text-muted);
}

.rm-surface {
    background: var(--rm-surface);
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-radius-md);
    box-shadow: var(--rm-shadow-sm);
}

/* ---------------------------------------------------------
   Tablet
   --------------------------------------------------------- */

@media (max-width: 991.98px) {

    body,
    .rm-body {
        font-size: 14px;
    }

    .sidebar {
        min-height: auto;
    }

    .sidebar a {
        padding: 11px 13px;
    }

    .card-body {
        padding: 16px;
    }

    .topbar {
        padding: 14px;
    }

}

/* ---------------------------------------------------------
   Teléfono
   --------------------------------------------------------- */

@media (max-width: 767.98px) {

    .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }

    .sidebar {
        min-height: auto;
        padding-top: 14px !important;
        padding-bottom: 14px !important;
    }

    .sidebar h4 {
        margin-bottom: 16px !important;
        font-size: 1.15rem;
    }

    .sidebar a {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 11px 13px;
    }

    .sidebar .fw-bold {
        margin-top: 18px !important;
        margin-bottom: 7px !important;
    }

    .topbar {
        border-radius: 10px;
    }

    .card,
    .card-dashboard {
        border-radius: 10px;
    }

    .card-body {
        padding: 14px;
    }

    .btn {
        min-height: 44px;
    }

    .btn-group,
    .rm-actions {
        width: 100%;
    }

    .rm-actions .btn {
        width: 100%;
        margin-bottom: 8px;
    }

    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table {
        min-width: 680px;
    }

    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_length {
        width: 100%;
        text-align: left;
    }

    .dataTables_wrapper .dataTables_filter input {
        width: 100%;
        margin-top: 6px;
        margin-left: 0;
    }

    .dataTables_wrapper .dataTables_length select {
        margin: 0 5px;
    }

}

/* ---------------------------------------------------------
   Teléfonos pequeños
   --------------------------------------------------------- */

@media (max-width: 479.98px) {

    body,
    .rm-body {
        font-size: 13.5px;
    }

    h1 {
        font-size: 1.55rem;
    }

    h2 {
        font-size: 1.35rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .card-body {
        padding: 12px;
    }

}

/* ---------------------------------------------------------
   Impresión
   --------------------------------------------------------- */

@media print {

    body {
        background: #ffffff !important;
    }

    .sidebar,
    .btn,
    .no-print,
    .dataTables_filter,
    .dataTables_length,
    .dataTables_paginate,
    .dataTables_info {
        display: none !important;
    }

    .container-fluid,
    .row,
    [class*="col-"] {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .card,
    .card-dashboard,
    .topbar {
        border: 1px solid #cccccc !important;
        box-shadow: none !important;
    }

}
/* =========================================================
   Layout principal y menú responsivo
   ========================================================= */

.rm-app-shell {
    padding: 0;
    overflow-x: hidden;
}

.rm-app-shell > .row {
    min-height: 100vh;
}

/* ---------------------------------------------------------
   Sidebar
   --------------------------------------------------------- */

.rm-sidebar {
    --bs-offcanvas-width: 290px;

    width: 270px;
    min-width: 270px;
    min-height: 100vh;
    background: linear-gradient(
        180deg,
        #1f2937 0%,
        #17202d 100%
    );
    border-right: 0;
    color: #ffffff;
}

.rm-sidebar-body {
    display: flex;
    height: 100%;
    min-height: 100vh;
    flex-direction: column;
    padding: 22px 16px;
    overflow-y: auto;
}

.rm-sidebar-mobile-heading {
    min-height: 66px;
    padding: 16px 18px;
    background: #17202d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.rm-sidebar-mobile-heading .offcanvas-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
}

/* ---------------------------------------------------------
   Identidad
   --------------------------------------------------------- */

.rm-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding: 4px 6px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.rm-brand-icon {
    display: flex;
    width: 42px;
    min-width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 1.25rem;
}

.rm-brand-title {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
}

.rm-brand-subtitle {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.72rem;
}

/* ---------------------------------------------------------
   Navegación
   --------------------------------------------------------- */

.rm-sidebar-nav {
    display: flex;
    min-height: 100%;
    flex: 1;
    flex-direction: column;
}

.rm-sidebar-nav .rm-menu-link {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 11px;
    margin-bottom: 4px;
    padding: 10px 12px;
    border-radius: 9px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition:
        background-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.rm-sidebar-nav .rm-menu-link:hover,
.rm-sidebar-nav .rm-menu-link:focus {
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    transform: translateX(2px);
}

.rm-sidebar-nav .rm-menu-link.active {
    background: var(--rm-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.rm-sidebar-nav .rm-menu-link.active:hover,
.rm-sidebar-nav .rm-menu-link.active:focus {
    background: var(--rm-primary-dark);
}

.rm-sidebar-nav .rm-menu-link i {
    display: inline-flex;
    width: 23px;
    min-width: 23px;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-size: 1.05rem;
}

.rm-sidebar-nav .rm-menu-link span {
    line-height: 1.2;
}

.rm-menu-section {
    margin: 21px 9px 8px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.rm-menu-spacer {
    flex: 1;
    min-height: 24px;
}

.rm-menu-logout {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.rm-sidebar-nav .rm-logout-link {
    background: rgba(220, 53, 69, 0.14);
    color: #ffb8bf;
}

.rm-sidebar-nav .rm-logout-link:hover,
.rm-sidebar-nav .rm-logout-link:focus {
    background: #bb2d3b;
    color: #ffffff;
}

/* ---------------------------------------------------------
   Contenido principal
   --------------------------------------------------------- */

.rm-main-content {
    min-width: 0;
    min-height: 100vh;
    padding: 24px;
    background: var(--rm-background);
}

/* ---------------------------------------------------------
   Encabezado móvil
   --------------------------------------------------------- */

.rm-mobile-header {
    position: sticky;
    top: 0;
    z-index: 1035;
    display: flex;
    min-height: 62px;
    align-items: center;
    gap: 13px;
    padding: 10px 14px;
    background: #1f2937;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.16);
}

.rm-menu-toggle {
    display: inline-flex;
    width: 42px;
    min-width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    font-size: 1.6rem;
    line-height: 1;
}

.rm-menu-toggle:hover,
.rm-menu-toggle:focus {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.rm-mobile-brand {
    overflow: hidden;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------------------------------------------------------
   Escritorio
   --------------------------------------------------------- */

@media (min-width: 768px) {

    .rm-sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
    }

    .rm-sidebar-body {
        height: 100vh;
    }

}

/* =========================================================
   Corrección definitiva del menú móvil
   ========================================================= */

@media (max-width: 767.98px) {

    #rmSidebar.offcanvas,
    #rmSidebar.offcanvas-start,
    #rmSidebar.offcanvas-md {
        --bs-offcanvas-width: 290px;

        width: 290px !important;
        max-width: 88vw;
        min-height: 100vh;
        background: linear-gradient(
            180deg,
            #1f2937 0%,
            #17202d 100%
        ) !important;
        border-right: 0 !important;
        color: #ffffff !important;
        box-shadow: 8px 0 25px rgba(0, 0, 0, 0.30);
    }

    #rmSidebar .offcanvas-header {
        min-height: 66px;
        padding: 16px 18px;
        background: #17202d !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        color: #ffffff;
    }

    #rmSidebar .offcanvas-title {
        margin: 0;
        color: #ffffff !important;
        font-size: 1.1rem;
        font-weight: 700;
    }

    #rmSidebar .offcanvas-body {
        display: flex;
        min-height: calc(100vh - 66px);
        flex-direction: column;
        padding: 15px !important;
        background: transparent !important;
        color: #ffffff;
        overflow-y: auto;
    }

    #rmSidebar .rm-sidebar-nav {
        display: flex;
        width: 100%;
        min-height: 100%;
        flex: 1;
        flex-direction: column;
    }

    #rmSidebar .rm-menu-link {
        display: flex !important;
        min-height: 46px;
        align-items: center;
        gap: 11px;
        margin-bottom: 4px;
        padding: 11px 13px !important;
        border-radius: 9px;
        background: transparent;
        color: rgba(255, 255, 255, 0.86) !important;
        font-size: 0.95rem;
        text-decoration: none !important;
    }

    #rmSidebar .rm-menu-link:hover,
    #rmSidebar .rm-menu-link:focus {
        background: rgba(255, 255, 255, 0.11) !important;
        color: #ffffff !important;
    }

    #rmSidebar .rm-menu-link.active {
        background: #2c5e9e !important;
        color: #ffffff !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    }

    #rmSidebar .rm-menu-link i {
        display: inline-flex;
        width: 23px;
        min-width: 23px;
        align-items: center;
        justify-content: center;
        margin: 0;
        color: inherit;
        font-size: 1.05rem;
    }

    #rmSidebar .rm-menu-section {
        margin: 20px 9px 8px;
        color: rgba(255, 255, 255, 0.48) !important;
        font-size: 0.69rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    #rmSidebar .rm-menu-spacer {
        flex: 1;
        min-height: 24px;
    }

    #rmSidebar .rm-menu-logout {
        margin-top: auto;
        padding-top: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    #rmSidebar .rm-logout-link {
        background: rgba(220, 53, 69, 0.16) !important;
        color: #ffbec4 !important;
    }

    #rmSidebar .rm-logout-link:hover,
    #rmSidebar .rm-logout-link:focus {
        background: #bb2d3b !important;
        color: #ffffff !important;
    }

    .offcanvas-backdrop.show {
        opacity: 0.58;
    }

}
/* =========================================================
   Componentes reutilizables
   ========================================================= */

/* Encabezados de sección */

.rm-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin: 30px 0 14px;
}

.rm-section-title {
    margin: 0;
    color: var(--rm-text);
    font-size: 1.05rem;
    font-weight: 750;
}

.rm-section-description {
    margin: 4px 0 0;
    color: var(--rm-text-muted);
    font-size: 0.86rem;
}

.rm-section-action {
    flex-shrink: 0;
}

/* Tarjetas KPI */

.rm-kpi-card {
    position: relative;
    display: flex;
    min-height: 126px;
    height: 100%;
    align-items: center;
    gap: 16px;
    padding: 20px;
    overflow: hidden;
    background: var(--rm-surface);
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-radius-md);
    box-shadow: var(--rm-shadow-sm);
    color: var(--rm-text);
    text-decoration: none;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.rm-kpi-card::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    content: "";
    background: #6b7280;
}

.rm-kpi-link:hover,
.rm-kpi-link:focus {
    color: var(--rm-text);
    transform: translateY(-2px);
    box-shadow: var(--rm-shadow-md);
}

.rm-kpi-icon {
    display: inline-flex;
    width: 50px;
    min-width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 1.35rem;
}

.rm-kpi-content {
    min-width: 0;
}

.rm-kpi-label {
    margin-bottom: 4px;
    color: var(--rm-text-muted);
    font-size: 0.82rem;
    font-weight: 650;
}

.rm-kpi-value {
    color: var(--rm-text);
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    font-weight: 750;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.rm-kpi-subtitle {
    margin-top: 5px;
    color: var(--rm-text-muted);
    font-size: 0.76rem;
}

/* Tonos KPI */

.rm-kpi-primary::before {
    background: var(--rm-primary);
}

.rm-kpi-primary .rm-kpi-icon {
    background: rgba(44, 94, 158, 0.12);
    color: var(--rm-primary);
}

.rm-kpi-success::before {
    background: var(--rm-success);
}

.rm-kpi-success .rm-kpi-icon {
    background: rgba(25, 135, 84, 0.12);
    color: var(--rm-success);
}

.rm-kpi-danger::before {
    background: var(--rm-danger);
}

.rm-kpi-danger .rm-kpi-icon {
    background: rgba(220, 53, 69, 0.12);
    color: var(--rm-danger);
}

.rm-kpi-warning::before {
    background: var(--rm-warning);
}

.rm-kpi-warning .rm-kpi-icon {
    background: rgba(245, 158, 11, 0.14);
    color: #b77900;
}

.rm-kpi-info::before {
    background: #0d6efd;
}

.rm-kpi-info .rm-kpi-icon {
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
}

.rm-kpi-neutral::before {
    background: #6b7280;
}

/* Etiquetas de estado */

.rm-status-badge {
    display: inline-flex;
    min-height: 27px;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.rm-status-primary {
    background: rgba(44, 94, 158, 0.12);
    color: var(--rm-primary-dark);
}

.rm-status-success {
    background: rgba(25, 135, 84, 0.12);
    color: #146c43;
}

.rm-status-danger {
    background: rgba(220, 53, 69, 0.12);
    color: #b02a37;
}

.rm-status-warning {
    background: rgba(245, 158, 11, 0.16);
    color: #9a6700;
}

.rm-status-info {
    background: rgba(13, 110, 253, 0.12);
    color: #0a58ca;
}

.rm-status-neutral {
    background: #f3f4f6;
    color: #4b5563;
}

/* Teléfono */

@media (max-width: 767.98px) {

    .rm-section-header {
        align-items: flex-start;
        flex-direction: column;
        margin-top: 24px;
    }

    .rm-section-action {
        width: 100%;
    }

    .rm-section-action .btn {
        width: 100%;
    }

    .rm-kpi-card {
        min-height: 110px;
        padding: 16px;
    }

    .rm-kpi-icon {
        width: 46px;
        min-width: 46px;
        height: 46px;
        border-radius: 12px;
    }

    .rm-kpi-value {
        font-size: 1.45rem;
    }

}
/* =========================================================
   RM CARD
========================================================= */

.rm-card{

    background:#fff;

    border:1px solid var(--rm-border);

    border-radius:16px;

    box-shadow:var(--rm-shadow-sm);

    margin-bottom:24px;

    overflow:hidden;

}

.rm-card-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:15px;

    padding:18px 22px;

    background:#fafafa;

    border-bottom:1px solid var(--rm-border);

}

.rm-card-title{

    display:flex;

    align-items:center;

    gap:10px;

    font-size:1rem;

    font-weight:700;

    color:var(--rm-text);

}

.rm-card-title i{

    color:var(--rm-primary);

    font-size:1.1rem;

}

.rm-card-action{

    flex-shrink:0;

}

.rm-card-body{

    padding:20px;

}

@media(max-width:768px){

    .rm-card-header{

        flex-direction:column;

        align-items:flex-start;

    }

    .rm-card-action{

        width:100%;

    }

    .rm-card-action .btn{

        width:100%;

    }

}
/* =========================================================
   RM PROGRESS SUMMARY
========================================================= */

.rm-progress-summary {
    width: 100%;
}

.rm-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 18px;
}

.rm-progress-value {
    font-size: 2rem;
    line-height: 1;
    font-weight: 800;
    color: var(--rm-text);
}

.rm-progress-label {
    margin-top: 7px;
    color: var(--rm-muted);
    font-size: 0.92rem;
}

.rm-progress-counts {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px 20px;
    font-size: 0.9rem;
    color: var(--rm-muted);
}

.rm-progress {
    height: 14px;
    border-radius: 999px;
    overflow: hidden;
    background: #e9edf2;
}

.rm-progress .progress-bar {
    border-radius: 999px;
    background: var(--rm-success);
}

.rm-progress-footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 12px;
    color: var(--rm-muted);
    font-size: 0.85rem;
}

@media (max-width: 768px) {

    .rm-progress-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .rm-progress-counts {
        width: 100%;
        justify-content: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .rm-progress-footer {
        flex-direction: column;
        gap: 5px;
    }

}
/* =========================================================
   RM LIST
========================================================= */

.rm-list {
    width: 100%;
}

.rm-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 4px;
    border-bottom: 1px solid var(--rm-border);
}

.rm-list-item:last-child {
    border-bottom: 0;
}

.rm-list-item-link {
    color: inherit;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.rm-list-item-link:hover {
    color: inherit;
    background: #f8fafc;
    transform: translateX(2px);
}

.rm-list-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.05rem;
}

.rm-list-icon-primary {
    color: var(--rm-primary);
    background: rgba(13, 110, 253, 0.10);
}

.rm-list-icon-success {
    color: var(--rm-success);
    background: rgba(25, 135, 84, 0.10);
}

.rm-list-icon-warning {
    color: #a76500;
    background: rgba(255, 193, 7, 0.18);
}

.rm-list-icon-danger {
    color: var(--rm-danger);
    background: rgba(220, 53, 69, 0.10);
}

.rm-list-icon-info {
    color: #087990;
    background: rgba(13, 202, 240, 0.13);
}

.rm-list-icon-neutral {
    color: var(--rm-muted);
    background: #eef1f4;
}

.rm-list-content {
    min-width: 0;
    flex: 1;
}

.rm-list-title {
    color: var(--rm-text);
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.rm-list-subtitle {
    margin-top: 3px;
    color: var(--rm-muted);
    font-size: 0.87rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.rm-list-meta {
    flex-shrink: 0;
    color: var(--rm-muted);
    font-size: 0.84rem;
    text-align: right;
}

.rm-list-value {
    min-width: 90px;
    flex-shrink: 0;
    color: var(--rm-text);
    font-weight: 800;
    text-align: right;
}

.rm-list-arrow {
    flex-shrink: 0;
    color: var(--rm-muted);
    font-size: 0.85rem;
}

.rm-list-empty {
    padding: 34px 20px;
    text-align: center;
}

.rm-list-empty > i {
    display: block;
    margin-bottom: 12px;
    color: var(--rm-muted);
    font-size: 2.25rem;
}

.rm-list-empty h6 {
    margin-bottom: 5px;
    color: var(--rm-text);
    font-weight: 700;
}

.rm-list-empty p {
    margin: 0;
    color: var(--rm-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {

    .rm-list-item {
        position: relative;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 10px 12px;
        padding: 15px 2px;
    }

    .rm-list-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        border-radius: 10px;
    }

    .rm-list-content {
        width: calc(100% - 50px);
        flex: 0 0 calc(100% - 50px);
        padding-right: 20px;
    }

    .rm-list-meta {
        margin-left: 50px;
        text-align: left;
    }

    .rm-list-value {
        min-width: auto;
        margin-left: auto;
        text-align: right;
    }

    .rm-list-arrow {
        position: absolute;
        top: 27px;
        right: 3px;
    }

}

@media (max-width: 420px) {

    .rm-list-meta,
    .rm-list-value {
        width: calc(100% - 50px);
        margin-left: 50px;
        text-align: left;
    }

    .rm-list-value {
        font-size: 1rem;
    }

}
/* =========================================================
   RM EMPTY STATE
========================================================= */

.rm-empty-state{

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    padding:60px 30px;

    text-align:center;

}

.rm-empty-icon{

    width:82px;

    height:82px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:50%;

    background:#eef4fb;

    color:var(--rm-primary);

    font-size:2.2rem;

    margin-bottom:22px;

}

.rm-empty-title{

    margin-bottom:10px;

    font-size:1.35rem;

    font-weight:700;

    color:var(--rm-text);

}

.rm-empty-message{

    max-width:520px;

    color:var(--rm-text-muted);

    margin-bottom:24px;

    line-height:1.6;

}

.rm-empty-action{

    display:flex;

    gap:10px;

    flex-wrap:wrap;

    justify-content:center;

}

@media(max-width:768px){

    .rm-empty-state{

        padding:40px 20px;

    }

    .rm-empty-icon{

        width:68px;

        height:68px;

        font-size:1.8rem;

    }

}