﻿/*OBS: Tem que usar !important para funcionar ! */

:root {
    --positive-color: #16d768 !important;
    --negative-color: #dd2c1a !important;
    --positive-background-color: rgba(46, 204, 113, 0.2) !important;
    --negative-background-color: rgba(231, 76, 60, 0.2) !important;
}

.badge-transparent {
    background-color: transparent !important;
    border: 1px solid !important;
}

.badge-positive {
    background-color: rgba(46, 204, 113, 0.2) !important;
    color: #16d768 !important;
}

.badge-negative {
    background-color: rgba(231, 76, 60, 0.2) !important;
    color: #dd2c1a !important;
}

.badge-container {
    padding: 0px 4px 0px 4px !important;
    border-radius: 4px !important;
    display: inline-block !important;
    font-weight: 500 !important;
}

.badge-big-container {
    font-weight: 600 !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    display: inline-block !important;
}

.word-breaker-50 { /* para colunas de checkbox em tabelas */
    word-wrap: break-word !important;
    white-space: normal !important;
    max-width: 50px !important;
}

.word-breaker-100 { /* para colunas com texto grande que necessita de quebra de linhas */
    word-wrap: break-word !important;
    white-space: normal !important;
    max-width: 100px !important;
}

/* Spinner de carregamento para tabelas */
.table-overlay-spinner {
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(var(--ct-link-color-rgb), 0.05);
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.table-overlay-spinner.active {
    opacity: 1;
    pointer-events: all;
}

.table-overlay-spinner .spinner-border {
    width: 2.5rem;
    height: 2.5rem;
    border-width: 0.25rem;
    color: rgb(var(--ct-link-color-rgb));
}

.form-switch .form-check-input {
    transform: scale(1.4); /* ou 2.0 para ainda maior */
    margin-right: 15px;
}

/* bolinha à esquerda */
.dot-left {
    position: relative;
    padding-left: 0.9rem; /* espaço pro ponto */
}

    .dot-left::before {
        content: "";
        position: absolute;
        left: 0;
        top: 36%;
        width: 0.55rem;
        height: 0.55rem;
        border-radius: 50%;
        transform: translateY(-50%);
        background: var(--dot-color, #6c757d); /* default = secondary */
    }

/* mapear para as cores do seu tema */
.dot-success {
    --dot-color: var(--ct-success);
}

.dot-danger {
    --dot-color: var(--ct-danger);
}

.dot-warning {
    --dot-color: var(--ct-warning);
}

.dot-info {
    --dot-color: var(--ct-info);
}

.icon-small {
    font-size: 15px;
}

.mt-3-5 {
    margin-top: 32px;
}

/* Daterangepicker inputs only need to fit "DD/MM/YYYY - DD/MM/YYYY" + icon */
.daterange {
    max-width: 15.5rem;
}

/* Game picker */
.game-picker {
    position: relative;
}

.game-picker-panel {
    position: absolute;
    z-index: 1050;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 22rem;
    overflow-y: auto;
    background: var(--ct-card-bg, #fff);
    border: 1px solid var(--ct-border-color, rgba(0, 0, 0, 0.1));
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
    padding: 0.4rem;
}

.game-picker-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
}

@media (min-width: 768px) {
    .game-picker-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.game-picker-tile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    text-align: left;
    color: inherit;
    cursor: pointer;
    width: 100%;
}

.game-picker-tile:hover {
    background: var(--ct-light, rgba(108, 117, 125, 0.12));
    border-color: var(--ct-border-color, rgba(0, 0, 0, 0.1));
}

.game-picker-tile img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    background: #343a40;
}

.game-picker-tile-text {
    min-width: 0;
    flex: 1;
}

.game-picker-tile-name {
    font-weight: 500;
    font-size: 0.85rem;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-picker-tile-sub {
    font-size: 0.72rem;
    color: var(--ct-secondary-color, #8391a2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-picker-loading,
.game-picker-empty {
    padding: 0.75rem;
    text-align: center;
    color: var(--ct-secondary-color, #8391a2);
    font-size: 0.85rem;
}

.game-picker-tile:disabled,
.game-picker-tile.game-picker-tile-missing-sw {
    opacity: 0.45;
    cursor: not-allowed;
    position: relative;
}

.game-picker-tile:disabled:hover,
.game-picker-tile.game-picker-tile-missing-sw:hover {
    background: transparent;
    border-color: transparent;
}

.game-picker-tile-missing-sw .game-picker-tile-sub {
    color: var(--ct-warning, #f7b84b);
}

/* Ribbon de ambiente (dev) — MOOVBET / Backoffice / API */
.dev-env-banner {
    position: fixed;
    bottom: 12px;
    right: 12px;
    z-index: 1080;
    pointer-events: none;
    max-width: min(96vw, 520px);
}

.dev-env-banner__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(33, 37, 41, 0.55);
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.dev-env-banner__pill {
    pointer-events: auto;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.02em;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid transparent;
    color: #fff;
    opacity: 0.92;
    white-space: nowrap;
}

.dev-env-banner__inner--hybrid {
    border: 1px solid rgba(13, 202, 240, 0.35);
}

.dev-env-banner__title {
    flex-basis: 100%;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: -2px;
}

.dev-env-banner__pill--tunnel {
    background: rgba(13, 202, 240, 0.72);
    border-color: rgba(13, 202, 240, 0.95);
    color: #212529;
}

.dev-env-banner__pill--local {
    background: rgba(25, 135, 84, 0.72);
    border-color: rgba(25, 135, 84, 0.9);
}

.dev-env-banner__pill--staging {
    background: rgba(255, 193, 7, 0.78);
    border-color: rgba(255, 193, 7, 0.95);
    color: #212529;
}

.dev-env-banner__pill--production {
    background: rgba(220, 53, 69, 0.78);
    border-color: rgba(220, 53, 69, 0.95);
}

.dev-env-banner__pill--unknown {
    background: rgba(108, 117, 125, 0.72);
    border-color: rgba(108, 117, 125, 0.9);
}
