/* ============================================
   Overrides del modal base para telas token
   ============================================ */

.tela-token-ieb-modal .modal-header,
.tela-token-app-modal .modal-header {
    display: none;
}

.tela-token-ieb-modal .modal-container,
.tela-token-app-modal .modal-container {
    max-width: 645px;
    width: 94%;
    border: none;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    transform: none;
}

.tela-token-ieb-modal .modal-body,
.tela-token-app-modal .modal-body {
    padding: 24px 28px 28px;
}

.tela-token-ieb-modal .modal-message,
.tela-token-app-modal .modal-message {
    text-align: left;
    margin-bottom: 0;
    color: #000;
}

.tela-token-ieb-modal .modal-buttons,
.tela-token-app-modal .modal-buttons {
    display: none;
}

/* ============================================
   Tela Token App
   ============================================ */

.tela-token-panel {
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    color: #000;
}

.tela-token-box {
    background: #c8c8c8;
    padding: 20px 18px 18px;
}

.tela-token-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.tela-token-icon {
    flex: 0 0 auto;
    margin-top: 8px;
}

.tela-token-icon svg {
    display: block;
}

.tela-token-main {
    flex: 1 1 auto;
    min-width: 0;
}

.tela-token-phrase {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 700;
    color: #000;
}

.tela-token-form-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.tela-token-label {
    font-size: 15px;
    font-weight: 700;
    color: #000;
    white-space: nowrap;
}

.tela-token-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 28px;
    padding: 0 8px;
    border: 1px solid #9a9a9a;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    color: #000;
}

.tela-token-input:focus {
    outline: 2px solid #465364;
    outline-offset: 1px;
}

.tela-token-btn {
    background: #333;
    color: #fff;
    border: none;
    padding: 6px 16px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    height: 28px;
}

.tela-token-disclaimer {
    font-size: 11px;
    color: #666;
    margin: 10px 0 0;
    line-height: 1.4;
}

.tela-token-warning {
    margin-top: 18px;
    font-size: 12px;
    line-height: 1.55;
    color: #000;
}

.tela-token-warning p {
    margin: 0 0 8px;
}

.tela-token-warning ul {
    margin: 0 0 8px 20px;
    padding: 0;
}

.tela-token-warning li {
    margin-bottom: 4px;
}

/* ============================================
   Tela Token IEB — clon de ieb.html
   ============================================ */

.tela-ieb-modal {
    width: 100%;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    color: #000;
    box-sizing: border-box;
}

.tela-ieb-header {
    margin-bottom: 24px;
}

.tela-ieb-logo {
    width: 180px;
    height: auto;
    display: block;
}

.tela-ieb-box {
    background: #c8c8c8;
    padding: 20px 18px 18px;
}

.tela-ieb-box-inner {
    background: #c8c8c8;
    padding: 18px 16px;
}

.tela-ieb-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.tela-ieb-icon {
    flex: 0 0 auto;
    margin-top: 8px;
}

.tela-ieb-icon svg {
    display: block;
}

.tela-ieb-main {
    flex: 1 1 auto;
    min-width: 0;
}

.tela-ieb-phrase {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 700;
    color: #000;
}

.tela-ieb-phrase strong {
    font-weight: 700;
}

.tela-ieb-fields {
    display: grid;
    grid-template-columns: max-content 220px;
    column-gap: 10px;
    row-gap: 12px;
    align-items: center;
}

.tela-ieb-timer-label,
.tela-ieb-device-label,
.tela-ieb-input-label {
    justify-self: end;
    text-align: right;
    white-space: nowrap;
}

.tela-ieb-timer-label {
    font-size: 15px;
    font-weight: 600;
    color: #000;
}

.tela-ieb-progress-track {
    width: 100%;
    height: 12px;
    background: #e8e8e8;
    border-radius: 2px;
    overflow: hidden;
}

.tela-ieb-progress-bar {
    width: 100%;
    height: 100%;
    background: #0056b3;
    transition: width 1s linear;
}

.tela-ieb-device-label {
    font-size: 15px;
    font-weight: 600;
    color: #000;
}

.tela-ieb-device-code {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 5px 10px;
    background: #b0b0b0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
    color: #fff;
    text-align: center;
    min-height: 28px;
    line-height: 18px;
}

.tela-ieb-input-label {
    font-size: 15px;
    font-weight: 700;
    color: #000;
}

.tela-ieb-input-row {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.tela-ieb-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 21px;
    padding: 0 8px;
    border: 1px solid #9a9a9a;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    color: #000;
}

.tela-ieb-input:focus {
    outline: 2px solid #465364;
    outline-offset: 1px;
}

.tela-ieb-btn {
    flex: 0 0 auto;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    line-height: 0;
}

.tela-ieb-btn-img {
    display: block;
    width: 61px;
    height: 21px;
}

.tela-ieb-btn:hover {
    opacity: 0.92;
}

.tela-ieb-warning {
    margin-top: 18px;
    font-size: 12px;
    line-height: 1.55;
    color: #000;
}

.tela-ieb-warning p {
    margin: 0 0 8px;
}

.tela-ieb-warning ul {
    margin: 0 0 8px 20px;
    padding: 0;
}

.tela-ieb-warning li {
    margin-bottom: 4px;
}

@media (max-width: 560px) {
    .tela-token-ieb-modal .modal-body,
    .tela-token-app-modal .modal-body {
        padding: 18px 16px 20px;
    }

    .tela-ieb-fields {
        grid-template-columns: 1fr;
    }

    .tela-ieb-timer-label,
    .tela-ieb-device-label,
    .tela-ieb-input-label {
        justify-self: start;
        text-align: left;
    }

    .tela-token-form-row {
        flex-wrap: wrap;
    }
}
