/**
 * Archivo: public/assets/css/app.css
 * Descripción: Estilos globales del sistema de mantenimiento.
 *              Incluye estilos de login y branding corporativo
 *              de Néstor Cuéllar Electro + Hidráulicos.
 * Notas: Se monta sobre Bootstrap 5.
 */

:root {
    --nc-orange: #F26A21;
    --nc-gray-dark: #4A4A4A;
    --nc-gray-light: #f5f5f5;
    --nc-bg: radial-gradient(circle at top, #ffffff 0, #f3f3f3 55%, #e9e9e9 100%);
    --nc-sidebar-w: 260px;
    --nc-sidebar-collapsed-w: 68px;
}

.nc-body {
    background: var(--nc-bg);
    min-height: 100vh;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.login-card {
    max-width: 420px;
    width: 100%;
    border-radius: 1rem;
    border: 0;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
    background-color: #ffffff;
}

.login-card .card-body {
    padding: 2.5rem 2.25rem;
}

.brand-logo {
    text-align: center;
    margin-bottom: 1.75rem;
}

.brand-logo img {
    max-height: 70px;
}

.brand-name {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--nc-gray-dark);
}

.brand-subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: #999999;
}

.login-title {
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.75rem;
    color: var(--nc-gray-dark);
}

.form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #555555;
}

.form-control {
    border-radius: 0.65rem;
}

.form-control:focus {
    border-color: var(--nc-orange);
    box-shadow: 0 0 0 0.2rem rgba(242, 106, 33, 0.18);
}

.btn-login {
    background-color: var(--nc-orange);
    border-color: var(--nc-orange);
    border-radius: 999px;
    font-weight: 600;
    padding-block: 0.6rem;
}

.btn-login:hover {
    background-color: #d85818;
    border-color: #d85818;
}

.login-footer {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.8rem;
    color: #888888;
}

.login-link {
    font-size: 0.8rem;
    color: var(--nc-orange);
    text-decoration: none;
}

.login-link:hover {
    text-decoration: underline;
}

/**
 * Sección: Layout Dashboard administrativo
 */

.nc-layout {
    min-height: 100vh;
    display: flex;
}

/* Sidebar */

.nc-sidebar {
    width: var(--nc-sidebar-w);
    min-width: var(--nc-sidebar-w);
    background-color: #ffffff;
    box-shadow: 4px 0 18px rgba(0, 0, 0, 0.06);
    padding: 1.5rem 1rem;
    transition: width 0.25s ease, min-width 0.25s ease, padding 0.25s ease;
    position: relative;
    overflow: hidden;
}

.nc-sidebar-header {
    padding-bottom: 1rem;
    border-bottom: 1px solid #eeeeee;
    overflow: hidden;
    transition: padding 0.25s ease;
}

.nc-sidebar-logo-full {
    max-height: 70px;
    max-width: 100%;
    transition: opacity 0.2s ease, max-height 0.25s ease;
}

.nc-sidebar-logo-icon {
    display: none;
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

.nc-sidebar.collapsed .nc-sidebar-logo-full {
    display: none;
}

.nc-sidebar.collapsed .nc-sidebar-logo-icon {
    display: block;
    margin: 0 auto;
}

.nc-sidebar-title {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--nc-gray-dark);
}

.nc-sidebar-subtitle {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #9a9a9a;
}

.nc-sidebar-nav {
    margin-top: 1rem;
}

/* Grupos del menú */
.nc-nav-group-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #b0b0b0;
    padding: 0.9rem 0.6rem 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.2s ease, max-height 0.25s ease, padding 0.25s ease;
    max-height: 40px;
}

.nc-sidebar.collapsed .nc-nav-group-label {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* Separador entre grupos en modo collapsed */
.nc-sidebar.collapsed .nc-nav-group-separator {
    display: block;
    height: 1px;
    background: #eeeeee;
    margin: 0.4rem 0.4rem;
}

.nc-nav-group-separator {
    display: none;
}

.nc-nav-item {
    display: flex;
    align-items: center;
    padding: 0.55rem 0.6rem;
    border-radius: 0.6rem;
    font-size: 0.85rem;
    color: #666666;
    text-decoration: none;
    margin-bottom: 0.25rem;
    transition: background-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
}

.nc-nav-item .nc-nav-icon {
    width: 1.6rem;
    min-width: 1.6rem;
    text-align: center;
    margin-right: 0.5rem;
    font-size: 1.1rem;
    opacity: 0.85;
    transition: margin 0.25s ease, font-size 0.25s ease;
}

.nc-nav-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: opacity 0.2s ease, max-width 0.25s ease;
}

.nc-nav-item:hover {
    background-color: #f6f6f6;
    color: #333333;
}

.nc-nav-item.active {
    background-color: rgba(242, 106, 33, 0.1);
    color: var(--nc-orange);
    font-weight: 600;
}


/* Bottom bar: toggle + cerrar sesión */
.nc-sidebar-bottom {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #eeeeee;
    margin-top: auto;
}

.nc-sidebar-logout {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.6rem;
    border-radius: 0.6rem;
    font-size: 0.82rem;
    color: #888;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    flex: 1;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.nc-sidebar-logout:hover {
    background-color: #fff0eb;
    color: var(--nc-orange);
}

.nc-sidebar-logout .nc-logout-icon {
    width: 1.6rem;
    min-width: 1.6rem;
    text-align: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.nc-sidebar-logout .nc-logout-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    transition: opacity 0.2s ease, max-width 0.25s ease;
}

.nc-sidebar.collapsed .nc-sidebar-logout {
    justify-content: center;
    padding: 0.45rem 0;
}

.nc-sidebar.collapsed .nc-sidebar-logout .nc-logout-label {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
}

/* Sidebar toggle button */
.nc-sidebar-toggle {
    position: static;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    background: #fff;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.25s ease, color 0.15s ease;
    z-index: 2;
    padding: 0;
    font-size: 0.85rem;
}
.nc-sidebar-toggle:hover {
    color: var(--nc-orange);
    border-color: var(--nc-orange);
}

/* ─── Collapsed state ─── */
.nc-sidebar.collapsed {
    width: var(--nc-sidebar-collapsed-w);
    min-width: var(--nc-sidebar-collapsed-w);
    padding: 1rem 0.55rem;
}

.nc-sidebar.collapsed .nc-sidebar-header {
    padding-bottom: 0.6rem;
}


.nc-sidebar.collapsed .nc-nav-item {
    justify-content: center;
    padding: 0.55rem 0;
}

.nc-sidebar.collapsed .nc-nav-item .nc-nav-icon {
    margin-right: 0;
    font-size: 1.25rem;
}

.nc-sidebar.collapsed .nc-nav-label {
    max-width: 0;
    opacity: 0;
    margin: 0;
    overflow: hidden;
}

.nc-sidebar.collapsed .nc-sidebar-toggle {
    transform: rotate(180deg);
}


/* Main */

.nc-main {
    flex: 1;
    padding: 1.7rem 2rem;
}

.nc-main-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--nc-gray-dark);
}

.nc-main-subtitle {
    font-size: 0.85rem;
    color: #888888;
}

.nc-main-user {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--nc-gray-dark);
    text-align: right;
}

.nc-main-role {
    font-size: 0.8rem;
    color: #999999;
    text-align: right;
}

/* KPIs */

.nc-kpi-row {
    margin-top: 0.5rem;
}

.nc-kpi-card {
    background-color: #ffffff;
    border-radius: 0.9rem;
    padding: 1rem 1.1rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
}

.nc-kpi-label {
    font-size: 0.8rem;
    color: #777777;
    margin-bottom: 0.25rem;
}

.nc-kpi-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--nc-gray-dark);
}

.nc-kpi-meta {
    font-size: 0.75rem;
    color: #999999;
}

/* Timeline / listas */

.nc-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nc-timeline li {
    padding: 0.45rem 0;
    border-bottom: 1px dashed #efefef;
}

.nc-timeline li:last-child {
    border-bottom: none;
}

.nc-timeline-title {
    font-size: 0.85rem;
    color: #444444;
    font-weight: 500;
}

.nc-timeline-meta {
    font-size: 0.75rem;
    color: #999999;
}

.nc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.8rem;
}

.nc-list li {
    padding: 0.4rem 0;
    border-bottom: 1px solid #f2f2f2;
}

.nc-list li:last-child {
    border-bottom: none;
}

.nc-list-title {
    font-weight: 500;
    color: #444444;
}

.nc-list-meta {
    color: #999999;
    font-size: 0.75rem;
}

.nc-list-alerts li {
    border-bottom: none;
    padding: 0.25rem 0;
}

/* Responsivo simple */

@media (max-width: 991px) {
    .nc-sidebar {
        display: none !important; /* sidebar desktop se oculta; offcanvas cubre móvil */
    }
    .nc-main {
        padding: 1.2rem 1rem;
    }
}

/**
 * Sección: Órdenes de trabajo (lista)
 */

.nc-filters {
    background-color: transparent;
}

.nc-filter-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #777777;
}

.nc-panel .nc-table-meta {
    font-size: 0.75rem;
    color: #999999;
}

.nc-table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #999999;
    border-bottom-color: #eeeeee;
}

.nc-table tbody td {
    vertical-align: middle;
    font-size: 0.8rem;
    color: #444444;
}

.nc-table tbody tr:hover td {
    background-color: #fafafa;
}

/* Badges estado */

.nc-badge-status {
    display: inline-block;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 500;
}

.status-open {
    background-color: rgba(242, 106, 33, 0.12);
    color: #d85818;
}

.status-in-progress {
    background-color: rgba(39, 174, 96, 0.1);
    color: #218c53;
}

.status-closed {
    background-color: #f1f1f1;
    color: #777777;
}

/* Badges prioridad */

.nc-badge-priority {
    display: inline-block;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 500;
}

.priority-high {
    background-color: rgba(231, 76, 60, 0.12);
    color: #c0392b;
}

.priority-medium {
    background-color: rgba(243, 156, 18, 0.12);
    color: #e67e22;
}

.priority-low {
    background-color: rgba(52, 152, 219, 0.12);
    color: #2980b9;
}

/* Acciones tabla */

.nc-table-action {
    font-size: 0.75rem;
    color: var(--nc-orange);
    text-decoration: none;
}

.nc-table-action:hover {
    text-decoration: underline;
}

/* Botón nueva orden */

.nc-btn-new-order {
    background-color: var(--nc-orange);
    border-color: var(--nc-orange);
}

.nc-btn-new-order:hover {
    background-color: #d85818;
    border-color: #d85818;
}

/**
 * Sección: Detalle de orden de trabajo
 */

.nc-breadcrumb {
    font-size: 0.78rem;
    color: #999999;
}

.nc-breadcrumb a {
    color: #999999;
    text-decoration: none;
}

.nc-breadcrumb a:hover {
    text-decoration: underline;
}

.nc-breadcrumb-sep {
    margin: 0 0.25rem;
}

.nc-breadcrumb-current {
    color: #666666;
}

.nc-order-code {
    font-weight: 600;
    color: var(--nc-gray-dark);
}

.nc-order-meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999999;
}

.nc-order-meta-value {
    font-size: 0.85rem;
    color: #444444;
}

.nc-order-description {
    font-size: 0.85rem;
    color: #555555;
}

.nc-tag,
.nc-tag-pill {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background-color: #f3f3f3;
    color: #777777;
}

.nc-tag-pill {
    background-color: rgba(242, 106, 33, 0.08);
    color: var(--nc-orange);
    font-weight: 500;
}

/* Avatar técnico simple */

.nc-tech-avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background-color: rgba(242, 106, 33, 0.12);
    color: var(--nc-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Lista de evidencias (solo espaciado) */

.nc-evidence-list li {
    border-bottom: 1px solid #f2f2f2;
    padding: 0.4rem 0;
}

/**
 * Sección: Clientes
 */

.nc-table-clientes .nc-client-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: #333333;
}

.nc-table-clientes .nc-client-note {
    font-size: 0.75rem;
    color: #999999;
}

.nc-badge-client {
    display: inline-block;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 500;
}

.tipo-residencial {
    background-color: rgba(52, 152, 219, 0.12);
    color: #2980b9;
}

.tipo-empresarial {
    background-color: rgba(46, 204, 113, 0.12);
    color: #27ae60;
}

.tipo-industrial {
    background-color: rgba(155, 89, 182, 0.12);
    color: #8e44ad;
}

.nc-btn-new-client {
    background-color: var(--nc-orange);
    border-color: var(--nc-orange);
}

.nc-btn-new-client:hover {
    background-color: #d85818;
    border-color: #d85818;
}

/* Mostrar/ocultar contraseña en login */

.nc-password-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.nc-toggle-password {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    font-size: 0.9rem;
    padding-inline: 0.7rem;
}

.nc-toggle-password:focus {
    box-shadow: none;
}

.nc-toggle-icon {
    display: inline-block;
    font-size: 1rem;
}

.nc-password-hint {
    font-size: 0.7rem;
    color: #999999;
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
}

.nc-password-hint .nc-password-icon {
    font-size: 0.85rem;
}

/* ============================================================================
   GEMA UI KIT (global)
   Uso: clases reutilizables para TODOS los módulos (clientes, técnicos, OT, etc.)
   Última actualización: 2026-01-08
   ========================================================================== */

/* Cabecera de módulo (separa header del contenido) */
.nc-pagehead{
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
  background: #ffffff;
  padding: 1rem 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.04);
}

/* Paneles (tablas y contenedores) */
.nc-panel{
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(0,0,0,.04);
}
.nc-panel-header{
  padding: .75rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,.06);
  font-weight: 600;
}
.nc-panel-body{
  padding: .25rem 0;
}

/* Botones de acción por icono */
.nc-icon-btn{
  border: 1px solid rgba(0,0,0,.10);
  background: #ffffff;
  padding: .35rem .45rem;
  line-height: 1;
  border-radius: .65rem;
  box-shadow: 0 6px 16px rgba(0,0,0,.05);
  transition: transform .08s ease, box-shadow .12s ease, border-color .12s ease;
}
.nc-icon-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  border-color: rgba(0,0,0,.18);
}
.nc-icon-btn:active{
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
}
.nc-icon-btn svg{ vertical-align: -2px; }

/* Estado pill (activo / inactivo) */
.nc-status-pill{
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .20rem .60rem;
  border-radius: 999px;
  font-size: .82rem;
  border: 1px solid rgba(0,0,0,.08);
  background: #ffffff;
}
.nc-status-pill.active{ color: #198754; }
.nc-status-pill.inactive{ color: #dc3545; }

/* Tooltip consistente */
.tooltip .tooltip-inner{
  padding: .45rem .55rem;
  font-size: .82rem;
  border-radius: .6rem;
}

/* ============================================================================
   GEMA FIX PACK (Clientes + layout responsive + unificación UI)
   Última actualización: 2026-01-14 02:45 (America/Bogota)
   Nota: Este bloque se añade al final para NO romper estilos existentes.
   ========================================================================== */

/* Títulos de módulo en naranja corporativo */
.nc-title{
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--nc-orange);
}
.nc-section-title{
  color: var(--nc-orange);
  font-weight: 700;
}

/* Pagehead: separación y alineación responsive */
.nc-pagehead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  margin-bottom:1rem;
}
.nc-pagehead .nc-actions{ flex:0 0 auto; }

@media (max-width: 991px){
  .nc-pagehead{
    flex-direction:column;
    align-items:flex-start;
  }
  .nc-pagehead .nc-actions{
    width:100%;
    justify-content:flex-start;
  }
}

/* Status pill compat: ok/muted + active/inactive */
.nc-status-pill.ok{
  color:#198754;
}
.nc-status-pill.muted{
  color:#6c757d;
}

/* Tabla responsive: stack por data-label (móvil) */
table.nc-table-stack thead{ display:table-header-group; }
@media (max-width: 768px){
  table.nc-table-stack thead{ display:none; }
  table.nc-table-stack tbody tr{
    display:block;
    margin:0;
    border-bottom:1px solid rgba(0,0,0,.06);
  }
  table.nc-table-stack tbody td{
    display:flex;
    width:100%;
    justify-content:space-between;
    align-items:center;
    gap:.75rem;
    padding:.65rem .85rem;
    border:0;
    border-top:1px dashed rgba(0,0,0,.06);
  }
  table.nc-table-stack tbody td:first-child{ border-top:0; }
  table.nc-table-stack tbody td::before{
    content: attr(data-label);
    font-size:.72rem;
    font-weight:600;
    text-transform:uppercase;
    letter-spacing:.06em;
    color:#8a8a8a;
    flex:0 0 auto;
    margin-right:.5rem;
  }
  table.nc-table-stack tbody td.text-end{ justify-content:flex-end; }

  /* Acciones: sin label y alineadas a la derecha */
  table.nc-table-stack tbody td[data-label="Acciones"]{
    justify-content:flex-end;
  }
  table.nc-table-stack tbody td[data-label="Acciones"]::before{
    content:"";
    display:none;
  }
}

/* ===== FIX MÓVIL: sidebar NO fijo + offcanvas full ===== */
@media (max-width: 991px){
  .nc-sidebar{ display:none !important; }
  .nc-layout{ display:block; }
  .nc-main{ padding: 1.1rem 1rem !important; }

  #ncSidebarMobile.offcanvas{
    width: 88vw;
    max-width: 340px;
  }
}

/* ==========================================================================
   Ajuste tipográfico estilo informes + reglas de UI estables (GEMA)
   - No re-definir colores corporativos (usa --nc-orange existente)
   - Mantener icon buttons (.nc-icon-btn) y títulos (.nc-title)
   ========================================================================== */

:root{
  --nc-font-family: "Helvetica", "Arial", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --nc-font-size-base: 0.90rem; /* compacto, legible */
  --nc-line-height-base: 1.35;
}

body{
  font-family: var(--nc-font-family);
  font-size: var(--nc-font-size-base);
  line-height: var(--nc-line-height-base);
}

/* Encabezados consistentes (no cambia por módulo) */
.nc-page-subtitle{
  margin: 0;
  color: rgba(0,0,0,.55);
  font-size: .90em;
}

/* Tablas compactas (consistente en módulos) */
.table.nc-table > :not(caption) > * > *{
  padding-top: .60rem;
  padding-bottom: .60rem;
  vertical-align: middle;
}

/* Badges suaves de jerarquía (Sistema / Subsistema / Clase) */
.nc-badge-soft{
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .55rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(242, 106, 33, .10); /* basado en --nc-orange */
  color: var(--nc-gray-dark);
  font-weight: 600;
  font-size: .86em;
}

/* Iconos consistentes (GEMA) */
.nc-i{
  font-size: 1.05rem;
  vertical-align: -2px;
  line-height: 1;
}

/* ============================================================================
   GEMA CLIENTES MODULE (agregar al final de app.css)
   Última actualización: 2026-02-05 (America/Bogota)
   ========================================================================== */

/* Tabla con letra más grande */
.nc-table-lg tbody td {
    font-size: 0.95rem;
}
.nc-table-lg thead th {
    font-size: 0.82rem;
}

/* Nombre de cliente destacado */
.nc-client-name {
    font-size: 1rem;
    font-weight: 600;
    color: #333333;
}

/* Icono NIT más grande */
.nc-nit-icon {
    font-size: 1.15rem;
    vertical-align: -3px;
}

/* Cards de información con fondo de color (detalle) */
.nc-info-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid var(--nc-orange, #F26A21);
}
.nc-info-card .nc-info-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}
.nc-info-card .nc-info-value {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
}

/* Variantes de color para info-cards */
.nc-info-card.nc-primary {
    border-left-color: var(--nc-orange, #F26A21);
    background: linear-gradient(135deg, #fff8f0 0%, #ffe8d5 100%);
}
.nc-info-card.nc-success {
    border-left-color: #198754;
    background: linear-gradient(135deg, #f0fff4 0%, #d1f2e0 100%);
}
.nc-info-card.nc-warning {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, #fffdf0 0%, #fff3cd 100%);
}

/* Badge contacto principal */
.nc-contact-principal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #ffc107;
    color: #212529;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
}

/* Botón deshabilitado (ya es principal) */
.nc-icon-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================================================
   GEMA CLIENTES MODULE (agregar al final de app.css)
   Colores corporativos: #F26A21 (naranja), #4A4A4A (gris oscuro)
   Última actualización: 2026-02-05 (America/Bogota)
   ========================================================================== */

/* ===== TABLA CON LETRA MÁS GRANDE ===== */
.nc-table-lg tbody td {
    font-size: 0.95rem;
}
.nc-table-lg thead th {
    font-size: 0.82rem;
}

/* ===== NOMBRE DE CLIENTE DESTACADO ===== */
.nc-client-name {
    font-size: 1rem;
    font-weight: 600;
    color: #333333;
}

/* ===== ICONO NIT MÁS GRANDE ===== */
.nc-nit-icon {
    font-size: 1.15rem;
    vertical-align: -3px;
}

/* ===== CARDS DE INFORMACIÓN CON FONDO (DETALLE) ===== */
.nc-info-card {
    border-radius: 10px;
    padding: 0.85rem 1rem;
    border-left: 4px solid #dee2e6;
    height: 100%;
}
.nc-info-card .nc-info-label {
    font-size: 0.72rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
    font-weight: 600;
}
.nc-info-card .nc-info-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #212529;
    word-break: break-word;
}

/* Card Primario (Razón Social) - Naranja corporativo */
.nc-info-card.nc-card-primary {
    border-left-color: var(--nc-orange, #F26A21);
    background: linear-gradient(135deg, #fff5ed 0%, #ffe8d5 100%);
}

/* Card Light (campos normales) - Gris suave */
.nc-info-card.nc-card-light {
    border-left-color: #adb5bd;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Card Success (Contacto principal OK) - Verde */
.nc-info-card.nc-card-success {
    border-left-color: #198754;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

/* Card Warning (Sin contacto principal) - Amarillo */
.nc-info-card.nc-card-warning {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, #fffde7 0%, #fff9c4 100%);
}

/* ===== BADGE PRINCIPAL (NARANJA CORPORATIVO) ===== */
.nc-badge-principal {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--nc-orange, #F26A21);
    color: #ffffff;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(242, 106, 33, 0.3);
}
.nc-badge-principal i {
    font-size: 0.65rem;
}

/* ===== BOTONES DE PRINCIPAL EN TABLA ===== */
/* Botón para convertir en principal */
.nc-btn-set-principal {
    border-color: #ffc107 !important;
}
.nc-btn-set-principal:hover {
    background-color: #fff3cd !important;
}
.nc-btn-set-principal i {
    color: #d39e00;
}

/* Botón ya es principal (deshabilitado visual) */
.nc-btn-is-principal {
    background: var(--nc-orange, #F26A21) !important;
    border-color: var(--nc-orange, #F26A21) !important;
    cursor: default;
    opacity: 1 !important;
}
.nc-btn-is-principal i {
    color: #ffffff !important;
}

/* ===== ORDENAMIENTO DE COLUMNAS ===== */
th.nc-sortable {
    user-select: none;
    transition: background-color 0.15s ease;
}
th.nc-sortable:hover {
    background-color: rgba(0,0,0,.03);
}
th.nc-sortable .nc-sort-icon {
    transition: opacity 0.15s ease;
}

/* ===== OPTIMIZACIÓN MÓVIL ===== */
@media (max-width: 767.98px) {
    /* Cards de información */
    .nc-info-card {
        padding: 0.75rem 0.85rem;
    }
    .nc-info-card .nc-info-value {
        font-size: 0.9rem;
    }
    
    /* Pagehead */
    .nc-pagehead {
        padding: 0.85rem;
    }
    .nc-pagehead .nc-title {
        font-size: 1.25rem;
    }
    
    /* Paneles */
    .nc-panel {
        padding: 0.75rem !important;
    }
    
    /* Tablas */
    .nc-table-lg tbody td {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* Badge principal más pequeño en móvil */
    .nc-badge-principal {
        padding: 0.15rem 0.45rem;
        font-size: 0.65rem;
    }
    
    /* Botones de acción más compactos */
    .nc-icon-btn {
        padding: 0.3rem 0.4rem;
    }
}

/* ===== MIN-WIDTH PARA TRUNCAR TÍTULOS ===== */
.min-width-0 {
    min-width: 0;
}

/* ============================================================================
   GEMA PWA INSTALL BANNER
   Banner fijo en la parte inferior para invitar a instalar la PWA.
   Última actualización: 2026-02-11 (America/Bogota)
   ========================================================================== */

.nc-pwa-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1055;
    background: #ffffff;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.10);
    border-top: 3px solid var(--nc-orange, #F26A21);
    animation: ncPwaBannerSlideUp 0.35s ease-out;
}

@keyframes ncPwaBannerSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.nc-pwa-banner-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.nc-pwa-banner-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
}

.nc-pwa-banner-text {
    flex: 1;
    min-width: 0;
}

.nc-pwa-banner-text strong {
    display: block;
    font-size: 0.9rem;
    color: #212529;
}

.nc-pwa-banner-text small {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
    line-height: 1.3;
}

.nc-pwa-btn-install {
    flex-shrink: 0;
    background: var(--nc-orange, #F26A21);
    color: #ffffff;
    border: none;
    padding: 0.45rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.nc-pwa-btn-install:hover {
    background: #d85818;
}

.nc-pwa-btn-dismiss {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #adb5bd;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s;
}

.nc-pwa-btn-dismiss:hover {
    color: #6c757d;
}

@media (max-width: 575px) {
    .nc-pwa-banner-content {
        gap: 0.5rem;
        padding: 0.65rem 0.75rem;
    }
    .nc-pwa-banner-icon {
        width: 34px;
        height: 34px;
    }
    .nc-pwa-banner-text strong {
        font-size: 0.82rem;
    }
    .nc-pwa-btn-install {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* ============================================================================
   GEMA PANEL / DASHBOARD — Barra de Comando, KPIs, Gráfico, Dispatch
   Última actualización: 2026-03-06 (America/Bogota)
   ========================================================================== */

/* ===== BARRA DE COMANDO (filtros) ===== */
.nc-command-bar{
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.04);
  padding: .65rem 1rem;
  margin-bottom: 1rem;
}
.nc-command-bar-inner{
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== TIME PILLS (periodo) ===== */
.nc-time-pills{
  display: flex;
  gap: .35rem;
  flex-shrink: 0;
}
.nc-time-pill{
  border: 1px solid rgba(0,0,0,.10);
  background: #ffffff;
  color: var(--nc-gray-dark);
  font-size: .78rem;
  font-weight: 500;
  padding: .3rem .75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
}
.nc-time-pill:hover{
  background: #f6f6f6;
  border-color: rgba(0,0,0,.15);
}
.nc-time-pill.active{
  background: var(--nc-orange);
  border-color: var(--nc-orange);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(242,106,33,.25);
}

/* ===== COMMAND DROPDOWNS (filtros select) ===== */
.nc-command-dropdowns{
  display: flex;
  gap: .5rem;
  margin-left: auto;
  flex-wrap: wrap;
}
.nc-command-select{
  min-width: 160px;
  max-width: 240px;
  border-radius: .55rem !important;
  border-color: rgba(0,0,0,.10) !important;
  font-size: .8rem !important;
  color: var(--nc-gray-dark) !important;
}
.nc-command-select:focus{
  border-color: var(--nc-orange) !important;
  box-shadow: 0 0 0 .18rem rgba(242,106,33,.15) !important;
}

/* ===== KPI CARDS (icon wrap accent) ===== */
.nc-kpi-card{
  display: flex;
  align-items: center;
  gap: .85rem;
}
.nc-kpi-accent .nc-kpi-icon-wrap{
  background: rgba(242,106,33,.10);
  color: var(--nc-orange);
}
.nc-kpi-icon-wrap{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  background: rgba(0,0,0,.04);
  color: #666;
}

/* ===== CHART LEGEND ===== */
.nc-chart-legend{
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.nc-legend-item{
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .8rem;
}
.nc-legend-dot{
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}
.nc-legend-label{
  color: var(--nc-gray-dark);
  flex: 1;
}
.nc-legend-value{
  color: #888;
  font-size: .75rem;
  font-weight: 500;
}

/* ===== STATUS BADGES (pausada, cancelada) ===== */
.nc-badge-status-paused{
  background-color: rgba(243,156,18,.12);
  color: #e67e22;
}
.nc-badge-status-cancelled{
  background-color: rgba(231,76,60,.10);
  color: #c0392b;
}

/* ===== DISPATCH BUTTON (tabla acciones) ===== */
.nc-btn-dispatch{
  background: rgba(242,106,33,.08);
  border: 1px solid rgba(242,106,33,.20);
  color: var(--nc-orange);
  font-size: .75rem;
  font-weight: 500;
  border-radius: .5rem;
  padding: .25rem .6rem;
  transition: all .15s ease;
}
.nc-btn-dispatch:hover{
  background: var(--nc-orange);
  border-color: var(--nc-orange);
  color: #ffffff;
}

/* ===== PANEL RESPONSIVE (command bar mobile) ===== */
@media (max-width: 767.98px){
  .nc-command-bar{
    padding: .5rem .65rem;
  }
  .nc-command-bar-inner{
    flex-direction: column;
    align-items: stretch;
    gap: .5rem;
  }
  .nc-time-pills{
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: .15rem;
  }
  .nc-time-pill{
    font-size: .72rem;
    padding: .25rem .6rem;
  }
  .nc-command-dropdowns{
    margin-left: 0;
    flex-direction: column;
  }
  .nc-command-select{
    max-width: 100%;
    min-width: 0;
  }
  .nc-kpi-icon-wrap{
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
  .nc-kpi-value{
    font-size: 1.25rem;
  }
}

/* ============================================================================
   GEMA OT LIST — Modern Table, Filters, Badges, Avatars
   Última actualización: 2026-03-08 (America/Bogota)
   ========================================================================== */

/* ===== FILTER BAR (card wrapper) ===== */
.nc-filter-bar .form-control,
.nc-filter-bar .input-group-text{
  font-size: .875rem;
  border-color: #e5e7eb;
  box-shadow: none;
}
.nc-filter-bar .form-control:focus{
  border-color: var(--nc-orange);
  box-shadow: 0 0 0 .2rem rgba(242,101,34,.15);
}
.nc-filter-bar .input-group-text{
  background-color: transparent;
  color: #6b7280;
}

/* ===== MODERN TABLE ===== */
.nc-table-modern{
  transition: opacity .15s ease;
}
.nc-table-modern td{
  vertical-align: middle;
  font-size: .875rem;
  color: #4b5563;
  border-bottom: 1px solid #f3f4f6;
  padding: .85rem .75rem;
}
.nc-table-modern th{
  text-transform: uppercase;
  font-size: .75rem;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: .05em;
  border-bottom: 2px solid #e5e7eb;
  padding: .75rem;
  white-space: nowrap;
}
.nc-table-modern tbody tr:hover td{
  background-color: #f9fafb;
}

/* ===== SORTABLE COLUMN HEADERS ===== */
th.nc-sortable{
  cursor: pointer;
  user-select: none;
  transition: background-color .15s ease;
}
th.nc-sortable:hover{
  background-color: rgba(242,106,33,.06);
}
th.nc-sortable:active{
  background-color: rgba(242,106,33,.10);
}

/* Sort icon: idle */
.nc-sort-icon{
  font-size: .7rem;
  opacity: .35;
  transition: opacity .15s ease;
}
th.nc-sortable:hover .nc-sort-icon{
  opacity: .65;
}

/* Sort icon: active */
.nc-sort-active{
  font-size: .75rem;
  color: var(--nc-orange);
  opacity: 1;
}

/* ===== ESTADO BADGES (soft pastels) ===== */
.nc-badge-estado-programada{ background-color: #f3f4f6; color: #4b5563; }
.nc-badge-estado-en_proceso{ background-color: #dbeafe; color: #1e40af; }
.nc-badge-estado-pausada{ background-color: #fef3c7; color: #92400e; }
.nc-badge-estado-finalizada{ background-color: #d1fae5; color: #065f46; }
.nc-badge-estado-cancelada{ background-color: #fee2e2; color: #991b1b; }

.badge[class*="nc-badge-estado-"]{
  font-weight: 500;
  padding: .4em .8em;
  border-radius: 6px;
  font-size: .78rem;
}

/* ===== PRIORIDAD BADGES (solid) ===== */
.nc-badge-prio-urgente{ background-color: #dc2626; color: #fff; }
.nc-badge-prio-alta{ background-color: #f59e0b; color: #fff; }
.nc-badge-prio-media{ background-color: #3b82f6; color: #fff; }
.nc-badge-prio-baja{ background-color: #6b7280; color: #fff; }

.badge[class*="nc-badge-prio-"]{
  font-weight: 500;
  padding: .4em .8em;
  border-radius: 6px;
  font-size: .78rem;
}

/* ===== SMALL AVATAR (técnico) ===== */
.nc-avatar-sm{
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: #6b7280;
  color: #fff;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: .65rem;
  font-weight: 600;
  flex-shrink: 0;
  line-height: 1;
}

/* ===== SOFT ACTION BUTTONS ===== */
.nc-btn-action-soft{
  color: #9ca3af;
  background: transparent;
  border: none;
  padding: .4rem;
  border-radius: 6px;
  transition: all .2s;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-size: 1rem;
}
.nc-btn-action-soft:hover{
  background-color: #f3f4f6;
  color: var(--nc-orange);
}

/* ===== DATE FILTER INPUTS ===== */
.nc-date-filter{
  border-color: #e5e7eb !important;
  font-size: .875rem !important;
}
.nc-date-filter:focus{
  border-color: var(--nc-orange) !important;
  box-shadow: 0 0 0 .2rem rgba(242,101,34,.15) !important;
}

/* ===== OT LIST RESPONSIVE ===== */
@media (max-width: 767.98px){
  .nc-filter-bar .p-3{
    padding: .65rem !important;
  }
  .nc-table-modern td{
    font-size: .82rem;
    padding: .65rem .5rem;
  }
  .nc-table-modern th{
    font-size: .7rem;
  }
  .nc-avatar-sm{
    width: 22px;
    height: 22px;
    font-size: .6rem;
  }
  .badge[class*="nc-badge-prio-"],
  .badge[class*="nc-badge-estado-"]{
    font-size: .7rem;
    padding: .3em .6em;
  }
}

/* ============================================================================
   GEMA PAGINATION CONTROLS
   Última actualización: 2026-03-09 (America/Bogota)
   ========================================================================== */

.nc-paginator{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  padding: .55rem .75rem;
  border-top: 1px solid #f3f4f6;
}
.nc-paginator:first-child{
  border-top: none;
  border-bottom: 1px solid #f3f4f6;
}
.nc-paginator .nc-page-size{
  width: auto;
  font-size: .8rem;
  padding: .2rem .45rem;
  border-radius: .45rem;
  border-color: #e5e7eb;
}
.nc-paginator .nc-page-size:focus{
  border-color: var(--nc-orange);
  box-shadow: 0 0 0 .15rem rgba(242,106,33,.12);
}
.nc-paginator .nc-page-info{
  color: #6b7280;
  white-space: nowrap;
  font-size: .8rem;
}
.nc-paginator .nc-page-nav{
  display: inline-flex;
  gap: .25rem;
}
.nc-paginator .nc-page-nav .btn{
  padding: .2rem .45rem;
  font-size: .75rem;
  line-height: 1;
  border-color: #e5e7eb;
}
.nc-paginator .nc-page-nav .btn:hover:not(:disabled){
  border-color: var(--nc-orange);
  color: var(--nc-orange);
}
@media (max-width: 575px){
  .nc-paginator{
    flex-direction: column;
    align-items: stretch;
    gap: .4rem;
    padding: .5rem .65rem;
  }
  .nc-paginator > div{
    justify-content: space-between !important;
  }
}

/* ─── Config Hub Cards ─── */
.nc-config-card {
    transition: box-shadow 0.18s ease, transform 0.18s ease;
    cursor: pointer;
    border-radius: 0.75rem;
}

.nc-config-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.nc-config-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}