/* Clases propias del KDS */
:root {
    --board-title-height: 35px;
    --color-green: #10B981;
    --color-red: #EF4444;
}

* {
    scrollbar-width: thin;
}

    *:focus {
        outline: 3px solid red !important;
    }

html {
    font-family: Helvetica, Arial, sans-serif;
}


.btn-confirm {
    color: #10B981;
    background-color: #F9FAFB;
}

.btn-cancel {
    color: #EF4444;
    background-color: #F9FAFB;
}


.card-bottom-footer-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-bottom-right-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
    font-weight: 700;
    color: #ffffff;
    height: 40px;
}


    .card-bottom-footer-layout *:first-child {
        border-bottom-left-radius: 0.5rem;
    }

    .card-bottom-footer-layout *:last-child {
        border-bottom-right-radius: 0.5rem;
    }

    .card-bottom-footer-layout > :not([hidden]) ~ :not([hidden]) {
        border-left-width: 2px;
        border-color: rgb(148 163 184);
    }

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #9CA3AF;
    opacity: 0.75;
}

.overlay-loading {
    display: flex;
    z-index: 40;
    justify-content: center;
    align-items: center;
}

/* Toast (alertas en navegador, como React/Mantine) */
.kds-toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 360px;
}
.kds-toast {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: #1f2937;
    color: #f9fafb;
    font-size: 0.95rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.kds-toast-message { opacity: 0.9; font-size: 0.9em; }
.kds-toast-success { background: #059669; }
.kds-toast-info { background: #0284c7; }
.kds-toast-warning { background: #d97706; }
.kds-toast-error { background: #dc2626; }
.kds-toast-hide { opacity: 0; transform: translateX(100%); }

/* Indicador de estado de conexión SignalR */
.kds-connection-status {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
    margin: 0.5rem 1rem;
}
.kds-connection-status--dots-only .kds-connection-status-pill {
    padding: 0.2rem 0.35rem;
}
.kds-connection-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 500;
}
.kds-connection-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.kds-connection-status--connected {
    background: #dcfce7;
    color: #166534;
}
.kds-connection-status--connected .kds-connection-status-dot {
    animation: kds-pulse-green 2s ease-in-out infinite;
}
.kds-connection-status--reconnecting {
    background: #fef3c7;
    color: #b45309;
}
.kds-connection-status--reconnecting .kds-connection-status-dot {
    animation: kds-pulse-amber 1s ease-in-out infinite;
}
.kds-connection-status--disconnected {
    background: #fee2e2;
    color: #b91c1c;
}
@keyframes kds-pulse-green {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
@keyframes kds-pulse-amber {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.kds-connection-status-retry {
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #1e40af;
    background: #dbeafe;
    border: 1px solid #93c5fd;
    border-radius: 0.375rem;
    cursor: pointer;
}
.kds-connection-status-retry:hover {
    background: #bfdbfe;
}

/* Error de conexión SignalR */
.kds-connection-error {
    padding: 0.75rem 1rem;
    margin: 0.5rem 1rem;
    background: #dc2626;
    color: #fff;
    border-radius: 0.5rem;
    font-size: 0.95rem;
}

/* Barra de estado KDS + POS (ConnectionStatusBar) – solo puntos, uno al lado del otro */
.connection-status-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}
.connection-status-bar .status-item {
    display: inline-flex;
    align-items: center;
}
.connection-status-bar .status-item--dot-only:not(:last-child) {
    margin-right: 0.15rem;
}
.connection-status-bar .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.connection-status-bar .status-dot.status-kds-connected,
.connection-status-bar .status-dot.status-pos-connected {
    background: var(--color-green, #10B981);
}
.connection-status-bar .status-dot.status-kds-reconnecting,
.connection-status-bar .status-dot.status-pos-reconnecting {
    background: #d97706;
    animation: kds-pulse-amber 1s ease-in-out infinite;
}
.connection-status-bar .status-dot.status-kds-disconnected,
.connection-status-bar .status-dot.status-pos-disconnected {
    background: var(--color-red, #EF4444);
}
.connection-status-bar .status-label {
    font-weight: 600;
    color: #475569;
}
.connection-status-bar .status-text {
    color: #64748b;
}



