
/*
============================================================
 VAMOTRIZ — CAPA VISUAL FINAL
 BLANCO / NEGRO
 Esta hoja se carga DESPUÉS de app.css
============================================================
*/

:root{
    --vm-white:#fff;
    --vm-black:#111;
    --vm-gray:#666;
    --vm-light:#f5f5f5;
    --vm-line:#ddd;
}


/* ==========================================================
   BASE
   ========================================================== */

html,
body,
.app-shell,
.main-content{
    background:#fff !important;
    color:#111 !important;
}

body{
    color-scheme:light !important;
}

h1,h2,h3,h4,h5,h6,
strong,b,label{
    color:#111 !important;
}

p,
small,
.muted,
.text-muted,
.description,
.subtitle,
.hint,
.help,
.crumb{
    color:#666 !important;
}


/* ==========================================================
   CABECERAS / PANELES / TARJETAS
   ========================================================== */

.content-top,
.page-head,
.hero-dashboard,
.card,
.panel,
.box,
.widget,
.info-card,
.stat-card,
.quick-card,
.metric-card,
.summary-card,
.dashboard-card,
.network-explain,
.tracking-explain,
.credential-box,
.camera-card,
.live-side,
.live-item,
.live-alert,
.geofence-editor-item,
.gps-section,
.gps-box,
.ai-image-wrap,
.ai-summary-grid > div,
.damage-item,
.photo-card,
.mobile-row,
.mobile-check,
.mobile-form-section,
.form-hero-section,
.hero-admin-card,
.login-card,
.ticket-row,
.condition-picker label,
.service-check-list label,
.network-steps > div{
    background:#fff !important;
    background-image:none !important;
    color:#111 !important;
    border-color:#ddd !important;
    box-shadow:none !important;
}


/* hijos de superficies blancas */

.card *,
.panel *,
.network-explain *,
.tracking-explain *,
.credential-box *,
.camera-card *,
.live-side *,
.live-item *,
.live-alert *,
.geofence-editor-item *,
.gps-section *,
.ai-summary-grid > div *,
.damage-item *,
.photo-card *,
.mobile-row *,
.mobile-check *,
.network-steps > div *{
    color:#111;
}


/* textos secundarios */

.card p,
.card small,
.panel p,
.panel small,
.live-item span,
.live-item small,
.live-alert span,
.geofence-editor-item span,
.geofence-editor-item small{
    color:#666 !important;
}


/* ==========================================================
   TODOS LOS BOTONES DEL PANEL
   NEGRO + TEXTO BLANCO
   ========================================================== */

button,
input[type="submit"],
input[type="button"],
input[type="reset"],

.btn,
.btn-primary,
.btn-secondary,
.btn-dark,
.btn-black,
.btn-light,
.btn-outline,
.btn-danger,

a.btn,
a.btn-primary,
a.btn-secondary,
a.btn-dark,
a.btn-black,
a.btn-light,
a.btn-outline,

.mini-btn,
.mini-btn.good,
.mini-btn.danger,

.danger-action,
.mobile-action,

.quick-actions > a,
.quick-actions > button,
.quick-actions form button,

.top-actions > a,
.top-actions > button,
.top-actions form button,

.hero-actions > a,
.hero-actions > button,
.hero-actions form button,

.actions > a,
.actions > button,
.actions form button,

.form-actions > a,
.form-actions > button,

.geofence-actions > a,
.geofence-actions > button,
.geofence-actions form button,

.table-actions > a,
.table-actions > button,

[role="button"]{
    background:#111 !important;
    background-image:none !important;

    color:#fff !important;

    border:1px solid #111 !important;

    text-shadow:none !important;
    box-shadow:none !important;

    opacity:1 !important;
}


/*
 Cualquier cosa escrita DENTRO de un botón negro
 también debe ser blanca.
*/

button *,
.btn *,
.btn-primary *,
.btn-secondary *,
.btn-dark *,
.btn-black *,
.btn-light *,
.btn-outline *,
.btn-danger *,
.mini-btn *,
.danger-action *,
.mobile-action *,
.quick-actions a *,
.top-actions a *,
.hero-actions a *,
.actions a *,
.form-actions a *,
.geofence-actions a *,
.table-actions a *,
[role="button"] *{
    color:#fff !important;
}


/* estados de enlaces */

.btn:link,
.btn:visited,
.btn:active,

.btn-primary:link,
.btn-primary:visited,
.btn-primary:active,

.btn-secondary:link,
.btn-secondary:visited,
.btn-secondary:active,

.mini-btn:link,
.mini-btn:visited,
.mini-btn:active,

.quick-actions a:link,
.quick-actions a:visited,

.top-actions a:link,
.top-actions a:visited{
    color:#fff !important;
}


/* hover */

button:hover,
.btn:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-dark:hover,
.btn-black:hover,
.btn-light:hover,
.btn-outline:hover,
.btn-danger:hover,
.mini-btn:hover,
.danger-action:hover,
.mobile-action:hover,
.quick-actions a:hover,
.top-actions a:hover,
.hero-actions a:hover{
    background:#000 !important;
    color:#fff !important;
    border-color:#000 !important;
}


/* disabled */

button:disabled,
input[type="submit"]:disabled,
input[type="button"]:disabled{
    background:#777 !important;
    color:#fff !important;
    border-color:#777 !important;
}


/* ==========================================================
   ICONOS
   ========================================================== */

.vm-ico,
.vm-auto-ico{
    color:#111 !important;
}

button .vm-ico,
button .vm-auto-ico,
.btn .vm-ico,
.btn .vm-auto-ico,
.mini-btn .vm-ico,
.mini-btn .vm-auto-ico,
.mobile-action .vm-ico,
.quick-actions .vm-ico,
.top-actions .vm-ico,
.hero-actions .vm-ico{
    color:#fff !important;
}


/* SVG */

svg{
    color:currentColor;
}


/* ==========================================================
   FORMULARIOS
   ========================================================== */

input:not([type="submit"]):not([type="button"]):not([type="reset"]),
select,
textarea{
    background:#fff !important;
    color:#111 !important;
    border:1px solid #ccc !important;
    box-shadow:none !important;
}

input:focus,
select:focus,
textarea:focus{
    background:#fff !important;
    color:#111 !important;
    border-color:#111 !important;
    outline:1px solid #111 !important;
}

input::placeholder,
textarea::placeholder{
    color:#777 !important;
    opacity:1 !important;
}

option{
    background:#fff !important;
    color:#111 !important;
}

input[type="checkbox"],
input[type="radio"]{
    accent-color:#111 !important;
}


/* ==========================================================
   TABLAS
   ========================================================== */

.table-wrap,
table,
tbody,
tbody tr,
tbody td{
    background:#fff !important;
    color:#111 !important;
}

thead,
thead tr,
thead th{
    background:#eee !important;
    color:#111 !important;
}

th,
td{
    border-color:#ddd !important;
}

tbody tr:hover,
tbody tr:hover td{
    background:#f5f5f5 !important;
    color:#111 !important;
}

td a:not(.btn):not(.mini-btn){
    color:#111 !important;
}


/* ==========================================================
   NETWORK / TRACKING PASOS 1-4
   ========================================================== */

.network-steps > div{
    background:#fff !important;
    color:#111 !important;
    border:1px solid #ddd !important;
}

.network-steps > div > b{
    background:#111 !important;
    background-image:none !important;
    color:#fff !important;
}

.network-steps > div > span{
    color:#111 !important;
}


/* ==========================================================
   BLOQUES DE CÓDIGO
   única superficie negra de contenido
   ========================================================== */

pre,
code,
.code,
.code-box,
.endpoint,
.endpoint-box,
.technical-box,
.terminal,
.console,
.credential-box code{
    background:#111 !important;
    color:#fff !important;
    border-color:#333 !important;
    box-shadow:none !important;
}

pre *,
code *,
.code *,
.code-box *,
.endpoint *,
.endpoint-box *,
.technical-box *,
.terminal *,
.console *,
.credential-box code *{
    color:#fff !important;
}


/* ==========================================================
   BADGES / ESTADOS
   ========================================================== */

.badge,
.status,
.alert,
.stock-alert,
[class*="badge"],
[class*="status"]{
    background:#fff !important;
    color:#111 !important;
    border:1px solid #111 !important;
    box-shadow:none !important;
}

.badge *,
.status *,
.alert *,
.stock-alert *{
    color:#111 !important;
}


/* ==========================================================
   SIDEBAR
   ========================================================== */

.sidebar{
    background:#fff !important;
    background-image:none !important;
    color:#111 !important;
    border-color:#ddd !important;
}

.sidebar a,
.sidebar a *{
    color:#111 !important;
}

.sidebar a.active,
.sidebar a:hover{
    background:#111 !important;
    color:#fff !important;
}

.sidebar a.active *,
.sidebar a:hover *{
    color:#fff !important;
}


/* ==========================================================
   MAPAS / FOTOS / VIDEO
   NO alterar contenido visual
   ========================================================== */

img,
video,
canvas,
.leaflet-tile,
.leaflet-container img{
    filter:none !important;
}


/* Leaflet debe conservar su funcionamiento */

.leaflet-container{
    background:#eee;
}


/* ==========================================================
   ÚLTIMA BARRERA DE CONTRASTE DE BOTONES
   ========================================================== */

body button,
body a.btn,
body a.btn-primary,
body a.btn-secondary,
body a.mini-btn,
body .quick-actions a,
body .top-actions a,
body .hero-actions a{
    color:#fff !important;
}

body button *,
body a.btn *,
body a.btn-primary *,
body a.btn-secondary *,
body a.mini-btn *,
body .quick-actions a *,
body .top-actions a *,
body .hero-actions a *{
    color:#fff !important;
}



/* === VAMOTRIZ BLACK SIDEBAR START === */


/* ==========================================================
   FONDO GENERAL
   ========================================================== */

.sidebar,
aside.sidebar,
.app-sidebar{
    background:#111111 !important;
    background-image:none !important;

    color:#ffffff !important;

    border-right:1px solid #222222 !important;
}


/* ==========================================================
   LOGO / MARCA
   ========================================================== */

.sidebar .brand,
.sidebar .brand-sidebar,
.sidebar .logo-wrap,
.sidebar .sidebar-brand{
    background:#111111 !important;
    color:#ffffff !important;
}

.sidebar .brand *,
.sidebar .brand-sidebar *,
.sidebar .logo-wrap *,
.sidebar .sidebar-brand *{
    color:#ffffff !important;
}


/* si el logo es imagen, no alterar */

.sidebar img{
    filter:none !important;
}


/* ==========================================================
   USUARIO
   ========================================================== */

.sidebar .user,
.sidebar .user-box,
.sidebar .profile-mini,
.sidebar .sidebar-user{
    color:#ffffff !important;
}

.sidebar .user *,
.sidebar .user-box *,
.sidebar .profile-mini *,
.sidebar .sidebar-user *{
    color:#ffffff !important;
}

.sidebar .user small,
.sidebar .user-box small,
.sidebar .profile-mini small,
.sidebar .sidebar-user small{
    color:#bdbdbd !important;
}


/* ==========================================================
   TITULOS DE SECCION
   ========================================================== */

.sidebar .section-title,
.sidebar .menu-title,
.sidebar .nav-title,
.sidebar .group-title{
    color:#9f9f9f !important;

    background:transparent !important;
}


/* ==========================================================
   LINKS DEL MENU
   ========================================================== */

.sidebar a{
    background:transparent !important;
    color:#ffffff !important;

    border-color:transparent !important;
}

.sidebar a *,
.sidebar a span,
.sidebar a b,
.sidebar a strong,
.sidebar a .vm-ico,
.sidebar a .vm-auto-ico{
    color:#ffffff !important;
}


/* ==========================================================
   HOVER
   ========================================================== */

.sidebar a:hover{
    background:#242424 !important;
    color:#ffffff !important;
}

.sidebar a:hover *,
.sidebar a:hover .vm-ico,
.sidebar a:hover .vm-auto-ico{
    color:#ffffff !important;
}


/* ==========================================================
   ELEMENTO ACTIVO
   ========================================================== */

.sidebar a.active,
.sidebar .active > a{
    background:#ffffff !important;

    color:#111111 !important;

    border-color:#ffffff !important;
}

.sidebar a.active *,
.sidebar .active > a *,
.sidebar a.active .vm-ico,
.sidebar a.active .vm-auto-ico{
    color:#111111 !important;
}


/* ==========================================================
   ICONOS GENERALES
   ========================================================== */

.sidebar .vm-ico,
.sidebar .vm-auto-ico{
    color:#ffffff !important;
}


/* ==========================================================
   DIVISORES
   ========================================================== */

.sidebar hr,
.sidebar .divider,
.sidebar .separator{
    border-color:#2c2c2c !important;
    background:#2c2c2c !important;
}


/* ==========================================================
   SCROLLBAR
   ========================================================== */

.sidebar{
    scrollbar-color:#555555 #111111 !important;
}


/* Chrome / Edge */

.sidebar::-webkit-scrollbar{
    width:7px;
}

.sidebar::-webkit-scrollbar-track{
    background:#111111;
}

.sidebar::-webkit-scrollbar-thumb{
    background:#555555;
    border-radius:8px;
}


/* ==========================================================
   EVITAR QUE OTRAS REGLAS BLANCAS PISEN EL SIDEBAR
   ========================================================== */

body .sidebar,
body.vm-global-contrast .sidebar{
    background:#111111 !important;
    color:#ffffff !important;
}

body .sidebar a:not(.active),
body.vm-global-contrast .sidebar a:not(.active){
    background:transparent !important;
    color:#ffffff !important;
}

body .sidebar a:not(.active) *,
body.vm-global-contrast .sidebar a:not(.active) *{
    color:#ffffff !important;
}

body .sidebar a.active,
body.vm-global-contrast .sidebar a.active{
    background:#ffffff !important;
    color:#111111 !important;
}

body .sidebar a.active *,
body.vm-global-contrast .sidebar a.active *{
    color:#111111 !important;
}


/* === VAMOTRIZ BLACK SIDEBAR END === */
