1044 lines
25 KiB
CSS
1044 lines
25 KiB
CSS
/* ==============================================================================
|
|
OnEver Design System - Hoja de Estilos Base y Componentes
|
|
Inspirado en C:\Workspace\OemspotPySYS\styles\design_system.py
|
|
Optimizado para Tablets Samsung Galaxy Tab A9/A11 y Escritorio Windows
|
|
============================================================================== */
|
|
|
|
*, *::before, *::after {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
html, body {
|
|
width: 100%;
|
|
height: 100%;
|
|
height: 100dvh;
|
|
overflow: hidden;
|
|
background-color: var(--bg-main);
|
|
color: var(--text-1);
|
|
font-family: var(--font-family);
|
|
font-size: 14px;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
|
touch-action: manipulation;
|
|
overscroll-behavior-y: contain;
|
|
user-select: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
#root {
|
|
width: 100%;
|
|
height: 100%;
|
|
height: 100dvh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* ==============================================================================
|
|
TIPOGRAFÍA Y TÍTULOS
|
|
============================================================================== */
|
|
h1, h2, h3, h4, .section-title {
|
|
color: var(--text-1);
|
|
font-family: var(--font-family);
|
|
font-weight: 700;
|
|
letter-spacing: -0.01em;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 1.25rem;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.telemetry-value {
|
|
color: var(--success);
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* ==============================================================================
|
|
INPUTS Y COMBOS (Estilo OnEver: border-radius 10px, background #1E293B)
|
|
============================================================================== */
|
|
input, select, textarea, .input-touch {
|
|
background-color: var(--input-bg);
|
|
border: 1px solid var(--border);
|
|
color: var(--text-1);
|
|
padding: 8px 12px;
|
|
border-radius: 10px;
|
|
min-height: 44px;
|
|
font-family: var(--font-family);
|
|
font-size: 0.95rem;
|
|
transition: border-color 0.15s ease, box-shadow 0.15s ease;
|
|
width: 100%;
|
|
}
|
|
|
|
input:focus, select:focus, textarea:focus, .input-touch:focus {
|
|
border-color: var(--blue-base);
|
|
outline: none;
|
|
box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
|
|
}
|
|
|
|
input:read-only, textarea:read-only {
|
|
background-color: var(--hover-bg);
|
|
color: var(--text-3);
|
|
border: 1px dashed var(--border);
|
|
font-style: italic;
|
|
}
|
|
|
|
input::placeholder, textarea::placeholder {
|
|
color: var(--text-3);
|
|
}
|
|
|
|
select {
|
|
cursor: pointer;
|
|
appearance: auto;
|
|
}
|
|
|
|
/* ==============================================================================
|
|
BOTONES (Estilo OnEver: #2563EB, border-radius 10px, hover #3B82F6)
|
|
============================================================================== */
|
|
button, .btn, .touch-button {
|
|
background-color: var(--blue-base);
|
|
color: var(--btn-text);
|
|
border-radius: 10px;
|
|
padding: 8px 16px;
|
|
font-weight: 600;
|
|
font-family: var(--font-family);
|
|
font-size: 0.95rem;
|
|
border: none;
|
|
cursor: pointer;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.5rem;
|
|
transition: background-color 0.15s ease, transform 0.05s ease, border-color 0.15s ease;
|
|
min-height: 44px;
|
|
touch-action: manipulation;
|
|
}
|
|
|
|
button:hover, .btn:hover, .touch-button:hover {
|
|
background-color: var(--blue-hover);
|
|
}
|
|
|
|
button:active, .btn:active, .touch-button:active {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
button:disabled, .btn:disabled, .touch-button:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
transform: none;
|
|
}
|
|
|
|
/* Variantes de Botones */
|
|
.btn-primary {
|
|
background-color: var(--blue-base);
|
|
color: #ffffff;
|
|
}
|
|
.btn-primary:hover {
|
|
background-color: var(--blue-hover);
|
|
}
|
|
|
|
.btn-danger, button[class*="danger"] {
|
|
background-color: var(--danger);
|
|
color: var(--btn-text);
|
|
}
|
|
.btn-danger:hover, button[class*="danger"]:hover {
|
|
background-color: var(--danger-hover);
|
|
}
|
|
|
|
.btn-secondary, .btn-outline, button[class*="outline"] {
|
|
background-color: transparent;
|
|
border: 1px solid var(--border);
|
|
color: var(--text-2);
|
|
}
|
|
.btn-secondary:hover, .btn-outline:hover, button[class*="outline"]:hover {
|
|
background-color: var(--hover-bg);
|
|
color: var(--text-1);
|
|
border-color: var(--border);
|
|
}
|
|
|
|
.btn-success, button[class*="on-status"] {
|
|
border: 1px solid var(--success);
|
|
color: var(--success);
|
|
background-color: var(--bg-sidebar);
|
|
}
|
|
.btn-success:hover, button[class*="on-status"]:hover {
|
|
background-color: var(--success);
|
|
color: #ffffff;
|
|
}
|
|
|
|
/* ==============================================================================
|
|
TARJETAS, PANELES Y HARDWARE CARDS (border 1px, radius 10px)
|
|
============================================================================== */
|
|
.card, .hardware-card, .right-panel {
|
|
background-color: var(--bg-sidebar);
|
|
border: 1px solid var(--border);
|
|
border-radius: 10px;
|
|
box-shadow: var(--shadow-sm);
|
|
transition: border-color 0.15s ease;
|
|
}
|
|
|
|
.card:hover, .hardware-card:hover {
|
|
border-color: var(--border);
|
|
}
|
|
|
|
/* ==============================================================================
|
|
PESTAÑAS DE CARRILES / PUESTOS DE CONTROL (PARIDAD QTabWidget DESKTOP)
|
|
============================================================================== */
|
|
.lane-tabs-nav {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
background-color: var(--bg-surface);
|
|
border-bottom: 1px solid var(--border);
|
|
padding: 0 1rem;
|
|
overflow-x: auto;
|
|
scrollbar-width: none;
|
|
min-height: 48px;
|
|
}
|
|
.lane-tabs-nav::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
.lane-tabs-list {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.35rem;
|
|
}
|
|
.lane-tab-button {
|
|
background: transparent;
|
|
border: none;
|
|
border-bottom: 3px solid transparent;
|
|
border-radius: 6px 6px 0 0;
|
|
padding: 0.6rem 0.95rem;
|
|
font-size: 0.88rem;
|
|
font-weight: 700;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
white-space: nowrap;
|
|
transition: all 0.15s ease;
|
|
min-height: 48px;
|
|
}
|
|
.lane-tab-button:hover {
|
|
background-color: var(--hover-bg);
|
|
color: var(--text-primary);
|
|
}
|
|
.lane-tab-button.active {
|
|
background-color: var(--hover-bg);
|
|
color: var(--text-primary);
|
|
}
|
|
.lane-tab-dot {
|
|
width: 9px;
|
|
height: 9px;
|
|
border-radius: 50%;
|
|
display: inline-block;
|
|
box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
|
|
}
|
|
|
|
.lane-header-banner {
|
|
padding: 0.85rem 1.25rem;
|
|
border-bottom: 1px solid var(--border);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
flex-wrap: wrap;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
/* ==============================================================================
|
|
PESTAÑAS ESTILO ONEVER
|
|
============================================================================== */
|
|
.tab-list {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
border-bottom: 1px solid var(--border);
|
|
background: transparent;
|
|
}
|
|
|
|
.tab-btn {
|
|
background: transparent;
|
|
color: var(--text-3);
|
|
padding: 9px 16px;
|
|
font-weight: 600;
|
|
border-radius: 0;
|
|
border-bottom: 2px solid transparent;
|
|
cursor: pointer;
|
|
transition: color 0.15s ease, border-color 0.15s ease;
|
|
}
|
|
|
|
.tab-btn:hover {
|
|
background: transparent;
|
|
color: var(--text-2);
|
|
}
|
|
|
|
.tab-btn.active, .tab-btn[aria-selected="true"] {
|
|
background: transparent;
|
|
color: var(--blue-base);
|
|
border-bottom: 2px solid var(--blue-base);
|
|
}
|
|
|
|
/* ==============================================================================
|
|
BADGES E INDICADORES
|
|
============================================================================== */
|
|
.badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.35rem;
|
|
padding: 0.25rem 0.65rem;
|
|
border-radius: 9999px;
|
|
font-size: 0.8rem;
|
|
font-weight: 700;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
|
|
.badge-success {
|
|
background-color: var(--color-success-bg);
|
|
color: var(--success);
|
|
border: 1px solid var(--success);
|
|
}
|
|
|
|
.badge-danger {
|
|
background-color: var(--color-danger-bg);
|
|
color: var(--danger);
|
|
border: 1px solid var(--danger);
|
|
}
|
|
|
|
.badge-info {
|
|
background-color: var(--status-info-bg);
|
|
color: var(--status-info);
|
|
border: 1px solid var(--status-info);
|
|
}
|
|
|
|
.badge-warning {
|
|
background-color: var(--status-warning-bg);
|
|
color: var(--warning);
|
|
border: 1px solid var(--warning);
|
|
}
|
|
|
|
.badge-neutral {
|
|
background-color: var(--hover-bg);
|
|
color: var(--text-2);
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
/* ==============================================================================
|
|
BARRA DE SCROLL MODERNA (Estilo OnEver: #0F172A / #374151)
|
|
============================================================================== */
|
|
::-webkit-scrollbar {
|
|
width: 8px;
|
|
height: 8px;
|
|
background: var(--bg-main);
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: var(--bg-main);
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--border);
|
|
border-radius: 5px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: var(--text-3);
|
|
}
|
|
|
|
/* ==============================================================================
|
|
ADAPTABILIDAD Y MULTIORIENTACIÓN (Móviles y Tablets Samsung Galaxy Tab A9/A11)
|
|
============================================================================== */
|
|
@media (max-width: 960px), (orientation: portrait) and (max-width: 1024px) {
|
|
.cockpit-grid {
|
|
display: flex !important;
|
|
flex-direction: column !important;
|
|
width: 100% !important;
|
|
overflow-x: hidden !important;
|
|
}
|
|
.cockpit-entry-col {
|
|
width: 100% !important;
|
|
max-width: 100% !important;
|
|
min-width: 0 !important;
|
|
border-right: none !important;
|
|
border-bottom: 1px solid var(--border-subtle) !important;
|
|
padding: 1rem !important;
|
|
}
|
|
.cockpit-predio-col {
|
|
width: 100% !important;
|
|
max-width: 100% !important;
|
|
min-width: 0 !important;
|
|
}
|
|
.portrait-tabs-bar {
|
|
display: flex !important;
|
|
}
|
|
.portrait-tab-hidden {
|
|
display: none !important;
|
|
}
|
|
|
|
/* Modales en dispositivos móviles y tablets */
|
|
.modal-dual-grid {
|
|
grid-template-columns: 1fr !important;
|
|
}
|
|
.modal-responsive-card {
|
|
max-width: 96vw !important;
|
|
max-height: 94vh !important;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.header-actions {
|
|
gap: 0.35rem !important;
|
|
}
|
|
.header-actions .btn {
|
|
min-height: 36px !important;
|
|
padding: 0 0.5rem !important;
|
|
font-size: 0.8rem !important;
|
|
}
|
|
.header-meta-info {
|
|
display: none !important;
|
|
}
|
|
.mobile-stack-grid {
|
|
grid-template-columns: 1fr !important;
|
|
}
|
|
.quick-dni-form {
|
|
flex-direction: column !important;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 961px) and (orientation: landscape) {
|
|
.portrait-tabs-bar {
|
|
display: none !important;
|
|
}
|
|
.portrait-tab-hidden {
|
|
display: flex !important;
|
|
}
|
|
}
|
|
|
|
/* ==============================================================================
|
|
ESTILOS DE PESTAÑAS MULTI-CARRIL Y MULTI-PUESTO (PARIDAD ESCRITORIO PCT_VIEW_ADMIN)
|
|
============================================================================== */
|
|
.lane-tabs-nav {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
background-color: var(--bg-surface);
|
|
border-bottom: 1px solid var(--border-subtle);
|
|
padding: 0 1rem;
|
|
overflow-x: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
gap: 0.75rem;
|
|
min-height: 50px;
|
|
}
|
|
|
|
.lane-tabs-list {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.35rem;
|
|
flex: 1;
|
|
min-width: 0;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.lane-tab-button {
|
|
padding: 0.7rem 1.15rem;
|
|
min-height: 48px;
|
|
border: none;
|
|
border-bottom: 3px solid transparent;
|
|
background: transparent;
|
|
color: var(--text-secondary);
|
|
font-size: 0.92rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.55rem;
|
|
transition: all 0.2s ease;
|
|
border-radius: 8px 8px 0 0;
|
|
white-space: nowrap;
|
|
user-select: none;
|
|
}
|
|
|
|
.lane-tab-button:hover {
|
|
background-color: var(--hover-bg);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.lane-tab-button.active {
|
|
color: var(--text-primary);
|
|
background-color: var(--bg-card);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.lane-tab-button.active.tab-entry {
|
|
border-bottom-color: #10B981;
|
|
}
|
|
|
|
.lane-tab-button.active.tab-exit {
|
|
border-bottom-color: #EF4444;
|
|
}
|
|
|
|
.lane-tab-button.active.tab-overview {
|
|
border-bottom-color: var(--brand-primary);
|
|
}
|
|
|
|
.lane-tab-dot {
|
|
width: 11px;
|
|
height: 11px;
|
|
border-radius: 50%;
|
|
display: inline-block;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.lane-tab-dot.entry {
|
|
background-color: #10B981;
|
|
box-shadow: 0 0 7px rgba(16, 185, 129, 0.7);
|
|
}
|
|
|
|
.lane-tab-dot.exit {
|
|
background-color: #EF4444;
|
|
box-shadow: 0 0 7px rgba(239, 68, 68, 0.7);
|
|
}
|
|
|
|
.lane-tab-dot.overview {
|
|
background-color: var(--brand-primary);
|
|
box-shadow: 0 0 7px rgba(0, 102, 204, 0.5);
|
|
}
|
|
|
|
.lane-header-banner {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0.75rem 1.25rem;
|
|
border-bottom: 1px solid var(--border-subtle);
|
|
background: var(--bg-surface);
|
|
flex-wrap: wrap;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.wks-switcher-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.45rem;
|
|
padding: 0.45rem 0.85rem;
|
|
border-radius: 8px;
|
|
border: 1px solid var(--border);
|
|
background-color: var(--bg-card);
|
|
color: var(--text-primary);
|
|
font-weight: 600;
|
|
font-size: 0.85rem;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.wks-switcher-btn:hover {
|
|
background-color: var(--hover-bg);
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
/* ==============================================================================
|
|
ESTILO REPLICA ESCRITORIO ONEVERACCESS (PARIDAD 1:1 CON SCREENSHOTS)
|
|
============================================================================== */
|
|
.desktop-shell {
|
|
display: flex;
|
|
height: 100vh;
|
|
width: 100vw;
|
|
background-color: #070D1E;
|
|
color: #E2E8F0;
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.desktop-sidebar {
|
|
width: 50px;
|
|
background-color: #050A18;
|
|
border-right: 1px solid #14203B;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 8px 0;
|
|
gap: 8px;
|
|
flex-shrink: 0;
|
|
user-select: none;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.desktop-rail-item {
|
|
width: 38px;
|
|
height: 38px;
|
|
border-radius: 6px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
border: none;
|
|
background: transparent;
|
|
transition: all 0.15s ease;
|
|
}
|
|
|
|
.desktop-rail-item:hover {
|
|
background-color: #121E38;
|
|
}
|
|
|
|
.desktop-rail-item.active {
|
|
background-color: #2563EB;
|
|
box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
|
|
}
|
|
|
|
.desktop-main-area {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.desktop-top-header {
|
|
height: 48px;
|
|
background-color: var(--bg-surface, #070D1E);
|
|
border-bottom: 1px solid var(--border-subtle, #14203B);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 12px;
|
|
flex-shrink: 0;
|
|
overflow-x: auto;
|
|
scrollbar-width: none;
|
|
}
|
|
|
|
.desktop-top-header::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.desktop-top-header {
|
|
padding: 0 8px;
|
|
gap: 4px;
|
|
}
|
|
.desktop-tab-btn {
|
|
padding: 0 10px;
|
|
font-size: 12px;
|
|
}
|
|
}
|
|
|
|
.desktop-tab-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 0 18px;
|
|
height: 48px;
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
border: none;
|
|
background: transparent;
|
|
color: #94A3B8;
|
|
border-bottom: 3px solid transparent;
|
|
transition: all 0.15s ease;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.03em;
|
|
}
|
|
|
|
.desktop-tab-btn.active {
|
|
color: #38BDF8;
|
|
border-bottom: 3px solid #2563EB;
|
|
}
|
|
|
|
.desktop-menu-hamburger-btn {
|
|
background: var(--input-bg);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
color: var(--text-1);
|
|
padding: 6px 12px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.15s ease;
|
|
user-select: none;
|
|
}
|
|
.desktop-menu-hamburger-btn:hover {
|
|
background: var(--hover-bg, rgba(255, 255, 255, 0.08));
|
|
border-color: var(--brand-primary, #3B82F6);
|
|
}
|
|
|
|
/* ==============================================================================
|
|
NUEVO FLUJO COCKPIT UNIFICADO (OPTIMIZADO TABLETS Y ESCRITORIO)
|
|
Orden exacto: DATOS PERSONA -> UBICACION/DESTINO & OBSERVACIONES ->
|
|
DOCUMENTACION Y POLIZAS -> LECTOR & CAMARAS -> HISTORIAL
|
|
============================================================================== */
|
|
.cockpit-flow-container {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
padding: 8px 12px;
|
|
overflow-y: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
background-color: var(--bg-main, #0B1120);
|
|
}
|
|
|
|
.cockpit-dual-row {
|
|
display: grid;
|
|
grid-template-columns: 1.15fr 1fr;
|
|
gap: 8px;
|
|
}
|
|
@media (max-width: 680px) {
|
|
.cockpit-dual-row {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
.cockpit-bottom-dock {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 14px;
|
|
padding-bottom: max(10px, env(safe-area-inset-bottom, 0px));
|
|
background-color: var(--bg-surface, #070D1E);
|
|
border-top: 1px solid var(--border-strong, #1E293B);
|
|
position: sticky;
|
|
bottom: 0;
|
|
z-index: 100;
|
|
box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.35);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
@keyframes slideInRight {
|
|
from {
|
|
transform: translateX(100%);
|
|
}
|
|
to {
|
|
transform: translateX(0);
|
|
}
|
|
}
|
|
|
|
.desktop-cockpit-grid {
|
|
flex: 1;
|
|
display: grid;
|
|
grid-template-columns: 225px 1fr 215px;
|
|
gap: 8px;
|
|
padding: 6px 10px;
|
|
overflow-y: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
background-color: var(--bg-main, #0B1120);
|
|
}
|
|
|
|
.desktop-groupbox {
|
|
background-color: var(--bg-surface, #1E293B);
|
|
border: 1px solid var(--border, #334155);
|
|
border-radius: 8px;
|
|
padding: 8px 10px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
box-sizing: border-box;
|
|
box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.3));
|
|
}
|
|
|
|
.desktop-groupbox-title {
|
|
font-size: 0.8rem;
|
|
font-weight: 800;
|
|
color: var(--text-2, #93C5FD);
|
|
letter-spacing: 0.03em;
|
|
text-transform: uppercase;
|
|
margin-bottom: 1px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
}
|
|
|
|
.desktop-input {
|
|
background-color: var(--input-bg, #0F172A);
|
|
border: 1px solid var(--border-strong, #475569);
|
|
border-radius: 6px;
|
|
color: var(--text-1, #F8FAFC);
|
|
font-size: 0.88rem;
|
|
padding: 4px 8px;
|
|
min-height: 36px;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
outline: none;
|
|
transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
|
|
}
|
|
|
|
.desktop-input:focus {
|
|
border-color: var(--blue-base, #3B82F6);
|
|
box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
|
|
}
|
|
|
|
.desktop-select {
|
|
background-color: var(--input-bg, #0F172A);
|
|
border: 1px solid var(--border-strong, #475569);
|
|
border-radius: 6px;
|
|
color: var(--text-1, #F8FAFC);
|
|
font-size: 0.88rem;
|
|
padding: 4px 8px;
|
|
min-height: 36px;
|
|
outline: none;
|
|
transition: border-color 0.15s ease, box-shadow 0.15s ease;
|
|
}
|
|
|
|
.desktop-select:focus {
|
|
border-color: var(--blue-base, #3B82F6);
|
|
box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
|
|
}
|
|
|
|
.desktop-label {
|
|
font-size: 0.8rem;
|
|
font-weight: 700;
|
|
color: var(--text-2, #CBD5E1);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.desktop-btn-action {
|
|
font-size: 0.82rem;
|
|
font-weight: 700;
|
|
padding: 5px 10px;
|
|
min-height: 36px;
|
|
border-radius: 6px;
|
|
border: none;
|
|
cursor: pointer;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 5px;
|
|
white-space: nowrap;
|
|
transition: background-color 0.15s ease, transform 0.05s ease, filter 0.15s ease, box-shadow 0.15s ease;
|
|
color: #FFFFFF;
|
|
touch-action: manipulation;
|
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.desktop-btn-action:hover {
|
|
filter: brightness(1.12);
|
|
}
|
|
|
|
.desktop-btn-action:active {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
/* Variantes de Color Oficiales para Cockpit y Puestos de Control */
|
|
.desktop-btn-blue {
|
|
background-color: var(--btn-blue, #2563EB) !important;
|
|
color: #FFFFFF !important;
|
|
}
|
|
.desktop-btn-blue:hover {
|
|
background-color: var(--btn-blue-hover, #3B82F6) !important;
|
|
}
|
|
|
|
.desktop-btn-green {
|
|
background-color: var(--btn-green, #10B981) !important;
|
|
color: #FFFFFF !important;
|
|
}
|
|
.desktop-btn-green:hover {
|
|
background-color: var(--btn-green-hover, #059669) !important;
|
|
}
|
|
|
|
.desktop-btn-red {
|
|
background-color: var(--btn-red, #EF4444) !important;
|
|
color: #FFFFFF !important;
|
|
}
|
|
.desktop-btn-red:hover {
|
|
background-color: var(--btn-red-hover, #DC2626) !important;
|
|
}
|
|
|
|
.desktop-btn-slate {
|
|
background-color: var(--btn-slate, #475569) !important;
|
|
color: #FFFFFF !important;
|
|
}
|
|
.desktop-btn-slate:hover {
|
|
background-color: var(--btn-slate-hover, #64748B) !important;
|
|
}
|
|
|
|
.desktop-btn-cyan {
|
|
background-color: var(--btn-cyan, #0284C7) !important;
|
|
color: #FFFFFF !important;
|
|
}
|
|
.desktop-btn-cyan:hover {
|
|
background-color: var(--btn-cyan-hover, #0369A1) !important;
|
|
}
|
|
|
|
.desktop-btn-purple {
|
|
background-color: var(--btn-purple, #7C3AED) !important;
|
|
color: #FFFFFF !important;
|
|
}
|
|
.desktop-btn-purple:hover {
|
|
background-color: var(--btn-purple-hover, #6D28D9) !important;
|
|
}
|
|
|
|
.desktop-avatar-box {
|
|
width: 100%;
|
|
height: 75px;
|
|
background-color: var(--input-bg, #091124);
|
|
border: 1px dashed var(--border-strong, #334155);
|
|
border-radius: 6px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* ==============================================================================
|
|
RESPONSIVIDAD Y ERGONOMÍA PARA TABLETS SAMSUNG GALAXY TAB (16:10 - 1280x800 / 1340x800)
|
|
============================================================================== */
|
|
|
|
/* Modo Horizontal (Landscape) en Tablets y Escritorios (ancho >= 768px y orientacion landscape) */
|
|
@media (orientation: landscape) and (min-width: 768px) {
|
|
.desktop-cockpit-grid {
|
|
display: grid !important;
|
|
grid-template-columns: 225px 1fr 220px !important;
|
|
gap: 8px !important;
|
|
padding: 6px 8px !important;
|
|
padding-bottom: 6px !important;
|
|
height: calc(100vh - 48px) !important;
|
|
overflow-y: auto !important;
|
|
}
|
|
.desktop-column-actions {
|
|
display: flex !important;
|
|
grid-column: auto !important;
|
|
}
|
|
.tablet-portrait-dock {
|
|
display: none !important;
|
|
}
|
|
.desktop-card-action-buttons,
|
|
.desktop-card-hardware-buttons {
|
|
display: flex !important;
|
|
}
|
|
}
|
|
|
|
/* Modo Horizontal en pantallas medianas / compactas (1024px a 1180px) */
|
|
@media (orientation: landscape) and (max-width: 1180px) and (min-width: 840px) {
|
|
.desktop-cockpit-grid {
|
|
grid-template-columns: 215px 1fr 205px !important;
|
|
gap: 6px !important;
|
|
padding: 4px 6px !important;
|
|
}
|
|
}
|
|
|
|
/* Modo Vertical (Portrait) en Tablets Samsung Galaxy Tab (ancho CSS 500px a 960px) -> 2 Columnas */
|
|
@media (orientation: portrait) and (min-width: 500px), (max-width: 960px) and (orientation: portrait) {
|
|
.desktop-cockpit-grid {
|
|
display: grid !important;
|
|
grid-template-columns: 245px 1fr !important;
|
|
gap: 8px !important;
|
|
padding: 6px 8px !important;
|
|
padding-bottom: 70px !important;
|
|
overflow-y: auto !important;
|
|
}
|
|
.desktop-column-actions {
|
|
display: none !important; /* Sus acciones están ancladas en tablet-portrait-dock */
|
|
}
|
|
.tablet-portrait-dock {
|
|
display: flex !important;
|
|
}
|
|
}
|
|
|
|
/* Modo Celular o Pantalla Ultra Angosta (<500px) */
|
|
@media (max-width: 499px) {
|
|
.desktop-cockpit-grid {
|
|
display: flex !important;
|
|
flex-direction: column !important;
|
|
gap: 8px !important;
|
|
padding: 6px 8px !important;
|
|
padding-bottom: 70px !important;
|
|
overflow-y: auto !important;
|
|
}
|
|
.desktop-column-actions {
|
|
display: none !important;
|
|
}
|
|
.tablet-portrait-dock {
|
|
display: flex !important;
|
|
}
|
|
}
|
|
|
|
/* Dock de Acciones Rápidas para Modo Vertical (Portrait) */
|
|
.tablet-portrait-dock {
|
|
display: none;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 12px;
|
|
background-color: var(--bg-surface);
|
|
border-top: 1px solid var(--border-strong);
|
|
position: sticky;
|
|
bottom: 0;
|
|
z-index: 100;
|
|
box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.35);
|
|
}
|
|
|
|
/* ==============================================================================
|
|
SOPORTE TEMA CLARO (LIGHT) - ALTO CONTRASTE WCAG AA+
|
|
============================================================================== */
|
|
[data-theme="light"] .desktop-shell {
|
|
background-color: #F1F5F9;
|
|
color: #0F172A;
|
|
}
|
|
|
|
[data-theme="light"] .desktop-top-header {
|
|
background-color: #FFFFFF;
|
|
border-bottom: 1px solid #CBD5E1;
|
|
}
|
|
|
|
[data-theme="light"] .desktop-tab-btn {
|
|
color: #475569;
|
|
}
|
|
|
|
[data-theme="light"] .desktop-tab-btn.active {
|
|
color: #0284C7;
|
|
border-bottom: 3px solid #0284C7;
|
|
}
|
|
|
|
[data-theme="light"] .desktop-cockpit-grid {
|
|
background-color: #F1F5F9;
|
|
}
|
|
|
|
[data-theme="light"] .desktop-groupbox {
|
|
background-color: #FFFFFF;
|
|
border: 1px solid #CBD5E1;
|
|
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
|
|
}
|
|
|
|
[data-theme="light"] .desktop-groupbox-title {
|
|
color: #1E3A8A;
|
|
}
|
|
|
|
[data-theme="light"] .desktop-input,
|
|
[data-theme="light"] .desktop-select {
|
|
background-color: #FFFFFF;
|
|
border: 1px solid #94A3B8;
|
|
color: #0F172A;
|
|
}
|
|
|
|
[data-theme="light"] .desktop-input:focus,
|
|
[data-theme="light"] .desktop-select:focus {
|
|
border-color: #0284C7;
|
|
background-color: #FFFFFF;
|
|
box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.25);
|
|
}
|
|
|
|
[data-theme="light"] .desktop-label {
|
|
color: #334155;
|
|
}
|
|
|
|
[data-theme="light"] .desktop-avatar-box {
|
|
background-color: #F8FAFC;
|
|
border: 1px dashed #94A3B8;
|
|
}
|
|
|
|
[data-theme="light"] .cockpit-flow-container {
|
|
background-color: #F1F5F9;
|
|
}
|
|
|
|
[data-theme="light"] .cockpit-bottom-dock {
|
|
background-color: #FFFFFF;
|
|
border-top: 1px solid #CBD5E1;
|
|
box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
|
|
}
|
|
|
|
|