/* =====================================================================
   hht-input-modal.css — Full-screen input modal for HHT scan app
   Used by: Scan2.aspx (GP-2265 Find Order)
   ===================================================================== */

/* Overlay — hidden by default, .active shows it */
.hht-input-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10100;
    background: #1a1a2e;
    flex-direction: column;
}
.hht-input-overlay.active {
    display: flex;
}

/* Header bar */
.hht-input-header {
    display: flex;
    align-items: center;
    background: #428bca;
    padding: 0 8px;
    height: 40px;
    flex-shrink: 0;
}
.hht-input-title {
    flex: 1;
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    letter-spacing: 1px;
}

/* Bottom button bar (matches trip scanning layout) */
.hht-input-bottom {
    padding: 6px;
    flex-shrink: 0;
    display: flex;
    gap: 4px;
}
.hht-input-back-bottom {
    flex: 1;
    background: #f44336;
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    -webkit-tap-highlight-color: transparent;
}
.hht-input-back-bottom:active {
    background: #c62828;
}
.hht-input-confirm-bottom {
    flex: 1;
    background: #4caf50;
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    -webkit-tap-highlight-color: transparent;
}
.hht-input-confirm-bottom:active {
    background: #388e3c;
}

/* Display area */
.hht-input-display {
    background: #252540;
    border-bottom: 2px solid #428bca;
    padding: 10px 14px;
    flex-shrink: 0;
}
.hht-input-hint {
    font-size: 10px;
    color: #666;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hht-input-value {
    font-size: 22px;
    font-weight: bold;
    color: #4fc3f7;
    min-height: 32px;
    letter-spacing: 1px;
}
.hht-input-value .cursor {
    display: inline-block;
    color: #4fc3f7;
    animation: hht-blink 1s step-end infinite;
    font-weight: 100;
    margin-left: 1px;
}
@keyframes hht-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* Keyboard container */
.hht-keyboard {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 6px;
    overflow: hidden;
}

/* Numpad reuses .trip-numpad / .trip-numpad-key from site.mobile.css */

/* ---- AZERTY keyboard (5-column grid with numbers) ---- */
.hht-azerty-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3px;
    padding: 0 8px;
}
.hht-azerty-key {
    background: #2d2d44;
    border: 1px solid #444;
    border-radius: 5px;
    color: #e0e0e0;
    font-size: 14px;
    font-weight: bold;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}
.hht-azerty-key:active,
.hht-azerty-key.hht-key-active {
    background: #4fc3f7;
    color: #1a1a2e;
}

/* Space spans 2 columns */
.hht-azerty-key.key-space {
    grid-column: span 2;
    font-size: 11px;
}

/* Separator between alpha and numeric sections */
.hht-azerty-separator {
    grid-column: 1 / -1;
    height: 4px;
}

/* Action keys */
.hht-azerty-key.key-clr {
    font-size: 11px;
    background: #b71c1c;
    border-color: #f44336;
    color: white;
}
.hht-azerty-key.key-clr:active,
.hht-azerty-key.key-clr.hht-key-active {
    background: #f44336;
}
.hht-azerty-key.key-bksp {
    background: #e65100;
    border-color: #ff9800;
    color: white;
    font-size: 14px;
}
.hht-azerty-key.key-bksp:active,
.hht-azerty-key.key-bksp.hht-key-active {
    background: #ff9800;
}
/* Grid span helpers */
.hht-azerty-key.key-span2 {
    grid-column: span 2;
}
.hht-azerty-key.key-span3 {
    grid-column: span 3;
}

