html,
body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #4B1010;
    color: #1A1A1A;
}

a,
.btn-link {
    color: inherit;
    text-decoration: none;
}

.strobo-layout {
    min-height: 100vh;
    background: linear-gradient(to bottom, #7B1010 0%, #4B1010 220px);
}

/* LOGIN */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #FFFFFF;
    border-radius: 24px;
    padding: 32px 28px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.login-header h1 {
    margin: 0;
    font-size: 2.3rem;
    color: #7B1010;
    font-weight: 700;
}

.login-header p {
    margin-top: 8px;
    margin-bottom: 18px;
    color: #666666;
    font-size: 1rem;
}

.gold-line {
    width: 70px;
    height: 4px;
    background-color: #D4A017;
    border-radius: 999px;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 18px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-size: 0.95rem;
        font-weight: 700;
        color: #1A1A1A;
    }

.strobo-input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #D9D9D9;
    background-color: #FAFAFA;
    font-size: 1rem;
    outline: none;
    transition: 0.2s ease;
}

    .strobo-input:focus {
        border-color: #7B1010;
        background-color: #FFFFFF;
        box-shadow: 0 0 0 3px rgba(123, 16, 16, 0.12);
    }

.strobo-button {
    width: 100%;
    border: none;
    border-radius: 16px;
    background-color: #7B1010;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 16px;
    cursor: pointer;
    transition: 0.2s ease;
}

    .strobo-button:hover {
        background-color: #931212;
    }

    .strobo-button:disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }

.strobo-error {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 14px;
    background-color: #FDEAEA;
    color: #B3261E;
    font-weight: 700;
    font-size: 0.95rem;
}

/* ADMIN SHELL */
.admin-shell {
    min-height: 100vh;
    display: flex;
    background: linear-gradient(to bottom, #7B1010 0%, #4B1010 260px);
}

.admin-sidebar {
    width: 280px;
    background: linear-gradient(to bottom, #3A0909, #4B1010);
    color: white;
    display: flex;
    flex-direction: column;
    padding: 24px 18px;
    box-sizing: border-box;
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.18);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 36px;
}

.brand-logo,
.brand-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid #D4A017;
    background: white;
}

.brand-icon {
    width: 48px;
    height: 48px;
    background: #7B1010;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.4rem;
}

.sidebar-brand h2 {
    margin: 0;
    font-size: 1.3rem;
}

.sidebar-brand p {
    margin: 3px 0 0;
    color: #E8DADA;
    font-size: 0.85rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .sidebar-nav a {
        color: #F4EAEA;
        padding: 13px 14px;
        border-radius: 14px;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 12px;
    }

        .sidebar-nav a:hover,
        .sidebar-nav a.active {
            background: rgba(255, 255, 255, 0.12);
            color: white;
        }

        .sidebar-nav a.active {
            border-left: 4px solid #D4A017;
        }

.sidebar-footer {
    margin-top: auto;
    padding-top: 24px;
}

.sidebar-user {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 12px;
}

    .sidebar-user strong {
        display: block;
        font-size: 0.95rem;
    }

    .sidebar-user small {
        color: #E8DADA;
        font-size: 0.8rem;
    }

.sidebar-logout {
    width: 100%;
    border: none;
    border-radius: 14px;
    background: #7B1010;
    color: white;
    padding: 12px 16px;
    font-weight: 700;
    cursor: pointer;
}

.admin-main {
    flex: 1;
    min-width: 0;
    padding: 32px;
    box-sizing: border-box;
    overflow-x: auto;
}

/* DASHBOARD */
.dashboard-page {
    max-width: 1220px;
    margin: 0 auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    margin-bottom: 28px;
}

    .dashboard-header h1 {
        margin: 0;
        font-size: 2.4rem;
    }

    .dashboard-header p {
        margin: 6px 0 0;
        color: #E8DADA;
    }

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.dashboard-card,
.dashboard-section,
.content-card {
    background: white;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 16px 36px rgba(0,0,0,0.14);
    margin-bottom: 24px;
}

.dashboard-card {
    border-radius: 22px;
    padding: 22px;
}

    .dashboard-card .card-label {
        display: block;
        color: #666;
        margin-bottom: 10px;
        font-size: 0.92rem;
    }

    .dashboard-card strong {
        display: block;
        color: #7B1010;
        font-size: 2rem;
        margin-bottom: 8px;
    }

    .dashboard-card small {
        color: #777;
    }

.balance-card {
    border-top: 5px solid #D4A017;
}

.section-header h2 {
    margin: 0;
    color: #7B1010;
}

.section-header p {
    margin: 6px 0 0;
    color: #777;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

    .quick-actions button {
        border: none;
        border-radius: 16px;
        background: #7B1010;
        color: white;
        padding: 14px 18px;
        font-weight: 700;
        cursor: pointer;
    }

.empty-state {
    background: #F7F3F3;
    border-radius: 18px;
    padding: 20px;
    margin-top: 18px;
}

    .empty-state strong {
        color: #7B1010;
    }

    .empty-state p {
        color: #666;
        margin-bottom: 0;
    }

/* PÁGINAS INTERNAS */
.page-wrapper {
    padding: 32px 24px;
    max-width: 1220px;
    margin: 0 auto;
}

.page-title {
    color: white;
    margin: 0;
    font-size: 2.3rem;
    font-weight: 700;
}

.page-subtitle {
    color: #E8DADA;
    margin-top: 8px;
    margin-bottom: 24px;
    font-size: 1rem;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 12px;
}

    .toolbar h2 {
        margin: 0;
        color: #7B1010;
        font-size: 1.5rem;
    }

    .toolbar p {
        margin: 4px 0 0;
        color: #777777;
        font-size: 0.95rem;
    }

.toolbar-actions {
    display: flex;
    gap: 10px;
}

.logged-user {
    margin-bottom: 18px;
    color: #555;
}

.strobo-button-secondary,
.logout-button {
    border: none;
    border-radius: 14px;
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer;
}

.strobo-button-secondary {
    background: #EFEFEF;
    color: #7B1010;
}

.logout-button {
    background-color: #7B1010;
    color: white;
}

.table-card {
    background: white;
    border-radius: 18px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 14px 12px;
    color: #7B1010;
    border-bottom: 2px solid #ECECEC;
    font-size: 0.95rem;
}

td {
    padding: 14px 12px;
    border-bottom: 1px solid #F0F0F0;
    vertical-align: top;
}

.status-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.status-analise {
    background: #FFF4D6;
    color: #8A6500;
}

.status-aprovado {
    background: #E4F5E7;
    color: #1F7A2E;
}

.status-pago {
    background: #DFF4FF;
    color: #0D5E8A;
}

.status-reprovado {
    background: #FDEAEA;
    color: #B3261E;
}

.status-cancelado {
    background: #EEEEEE;
    color: #555555;
}

/* BOTÕES DE AÇÕES DOS RESGATES */
.resgate-actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}

button.btn-resgate,
.btn-resgate {
    appearance: none !important;
    -webkit-appearance: none !important;
    border: none !important;
    border-radius: 12px !important;
    min-width: 104px !important;
    height: 44px !important;
    padding: 0 14px !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    box-shadow: none !important;
    outline: none !important;
    text-decoration: none !important;
}

button.btn-resgate-aprovar,
.btn-resgate-aprovar {
    background-color: #0D47A1 !important;
}

    button.btn-resgate-aprovar:hover,
    .btn-resgate-aprovar:hover {
        background-color: #08306F !important;
    }

button.btn-resgate-pagamento,
.btn-resgate-pagamento {
    background-color: #145A1F !important;
}

    button.btn-resgate-pagamento:hover,
    .btn-resgate-pagamento:hover {
        background-color: #0F4618 !important;
    }

button.btn-resgate-recusar,
.btn-resgate-recusar {
    background-color: #B3261E !important;
}

    button.btn-resgate-recusar:hover,
    .btn-resgate-recusar:hover {
        background-color: #8F1E18 !important;
    }

button.btn-resgate:disabled,
.btn-resgate:disabled {
    opacity: 0.65 !important;
    cursor: not-allowed !important;
}

/* MODAIS */
.strobo-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.62);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: modalFadeIn 0.18s ease-out;
}

.strobo-modal-box {
    width: 100%;
    max-width: 620px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    animation: modalSlideIn 0.22s ease-out;
}

.strobo-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #dddddd;
    background: #ffffff;
}

    .strobo-modal-header h3 {
        margin: 0;
        color: #222222;
        font-size: 20px;
        font-weight: 700;
    }

.strobo-modal-x {
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
    color: #999999;
    width: 30px;
    height: 30px;
    line-height: 1;
}

.strobo-modal-body {
    padding: 18px 20px;
    background: #ffffff;
    max-height: 65vh;
    overflow-y: auto;
}

.strobo-modal-description {
    margin: 0 0 14px;
    color: #444444;
    font-size: 14px;
}

.strobo-modal-info {
    background: #f8f8f8;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 12px;
    display: grid;
    gap: 10px;
}

    .strobo-modal-info div {
        display: grid;
        grid-template-columns: 160px 1fr;
        gap: 12px;
        align-items: start;
    }

    .strobo-modal-info span {
        color: #7B1010;
        font-weight: 800;
        font-size: 13px;
    }

    .strobo-modal-info strong {
        color: #222222;
        font-size: 14px;
        word-break: break-word;
    }

.pix-box {
    background: #fffaf0;
    border-left: 5px solid #D4A017;
}

.comprovante-box,
.recusa-box {
    background: #fafafa;
    border: 1px dashed #c9c9c9;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 12px;
}

.recusa-box {
    background: #fffafa;
    border-color: #d9b3b0;
}

    .comprovante-box label,
    .recusa-box label {
        display: block;
        color: #222222;
        font-weight: 800;
        margin-bottom: 10px;
    }

    .recusa-box label {
        color: #B3261E;
    }

.recusa-textarea {
    width: 100%;
    min-height: 96px;
    resize: vertical;
    border-radius: 10px;
    border: 1px solid #d9b3b0;
    padding: 12px 14px;
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
    outline: none;
    background: #ffffff;
    color: #1A1A1A;
}

    .recusa-textarea:focus {
        border-color: #B3261E;
        box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.12);
    }

.arquivo-ok {
    margin: 10px 0 0;
    color: #1B5E20;
    font-weight: 700;
    font-size: 13px;
}

.arquivo-help {
    margin: 10px 0 0;
    color: #777777;
    font-size: 13px;
}

.strobo-modal-footer {
    padding: 14px 20px;
    border-top: 1px solid #dddddd;
    background: #f7f7f7;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

button.modal-btn:disabled,
.modal-btn:disabled {
    opacity: 0.65 !important;
    cursor: not-allowed !important;
}

.comprovante-button {
    border: none;
    border-radius: 12px;
    background-color: #7B1010;
    color: white;
    padding: 9px 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

    .comprovante-button:hover {
        background-color: #931212;
    }

.sem-comprovante {
    color: #777777;
    font-size: 0.9rem;
    white-space: nowrap;
}

.filtros-card {
    display: flex;
    align-items: end;
    gap: 12px;
    background: #F7F3F3;
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 20px;
}

    .filtros-card label {
        display: block;
        font-weight: 700;
        color: #7B1010;
        margin-right: 8px;
    }

    .filtros-card select {
        max-width: 240px;
    }

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 900px) {
    .admin-shell {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        flex-direction: column;
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-main {
        padding: 20px;
    }
}

@media (max-width: 700px) {
    .strobo-modal-box {
        max-width: 96vw;
    }

    .strobo-modal-info div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@media (max-width: 600px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

.strobo-modal-footer {
    padding: 14px 20px !important;
    border-top: 1px solid #dddddd !important;
    background: #f7f7f7 !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 10px !important;
}
.strobo-modal-footer {
    padding: 14px 20px !important;
    border-top: 1px solid #dddddd !important;
    background: #f7f7f7 !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 10px !important;
}

button.modal-btn,
.modal-btn {
    appearance: none !important;
    -webkit-appearance: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 12px !important;
    width: 118px !important;
    height: 46px !important;
    padding: 0 14px !important;
    margin: 0 !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    text-align: center !important;
    white-space: nowrap !important;
}

button.modal-btn-cancel,
.modal-btn-cancel {
    background-color: #EFEFEF !important;
    color: #7B1010 !important;
}

    button.modal-btn-cancel:hover,
    .modal-btn-cancel:hover {
        background-color: #E2E2E2 !important;
    }

button.modal-btn-approve,
.modal-btn-approve {
    background-color: #0D47A1 !important;
    color: #ffffff !important;
}

    button.modal-btn-approve:hover,
    .modal-btn-approve:hover {
        background-color: #08306F !important;
    }

button.modal-btn-pay,
.modal-btn-pay {
    background-color: #145A1F !important;
    color: #ffffff !important;
}

    button.modal-btn-pay:hover,
    .modal-btn-pay:hover {
        background-color: #0F4618 !important;
    }

button.modal-btn-reject,
.modal-btn-reject {
    background-color: #B3261E !important;
    color: #ffffff !important;
}

    button.modal-btn-reject:hover,
    .modal-btn-reject:hover {
        background-color: #8F1E18 !important;
    }

button.modal-btn:disabled,
.modal-btn:disabled {
    opacity: 0.65 !important;
    cursor: not-allowed !important;
}

.strobo-modal-footer {
    padding: 14px 20px !important;
    border-top: 1px solid #dddddd !important;
    background: #f7f7f7 !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 10px !important;
}

button.modal-btn,
.modal-btn {
    appearance: none !important;
    -webkit-appearance: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 12px !important;
    width: 118px !important;
    height: 46px !important;
    padding: 0 14px !important;
    margin: 0 !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    text-align: center !important;
    white-space: nowrap !important;
}

button.modal-btn-cancel,
.modal-btn-cancel {
    background-color: #EFEFEF !important;
    color: #7B1010 !important;
}

    button.modal-btn-cancel:hover,
    .modal-btn-cancel:hover {
        background-color: #E2E2E2 !important;
    }

button.modal-btn-approve,
.modal-btn-approve {
    background-color: #0D47A1 !important;
    color: #ffffff !important;
}

    button.modal-btn-approve:hover,
    .modal-btn-approve:hover {
        background-color: #08306F !important;
    }

button.modal-btn-pay,
.modal-btn-pay {
    background-color: #145A1F !important;
    color: #ffffff !important;
}

    button.modal-btn-pay:hover,
    .modal-btn-pay:hover {
        background-color: #0F4618 !important;
    }

button.modal-btn-reject,
.modal-btn-reject {
    background-color: #B3261E !important;
    color: #ffffff !important;
}

    button.modal-btn-reject:hover,
    .modal-btn-reject:hover {
        background-color: #8F1E18 !important;
    }

button.modal-btn:disabled,
.modal-btn:disabled {
    opacity: 0.65 !important;
    cursor: not-allowed !important;
}

.usuario-cell strong {
    font-size: 15px;
    line-height: 1.35;
    color: #111111;
}

.boleto-cell {
    line-height: 1.45;
    color: #111111;
}

    .boleto-cell strong {
        color: #111111;
        font-weight: 800;
    }

.solicitacao-data {
    white-space: nowrap;
    font-weight: 600;
    color: #222222;
}

/* STATUS em uma linha só */
.status-badge,
.status-badge.status-analise,
.status-badge.status-aprovado,
.status-badge.status-pago,
.status-badge.status-recusado {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    flex-wrap: nowrap !important;
    min-width: 110px;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 14px;
    line-height: 1;
}

/* Botão Visualizar no mesmo padrão do Sair */
.status-analise {
    background: #f2e2b6;
    color: #8a6400;
}

.status-aprovado {
    background: #d8ead7;
    color: #2e7d32;
}

.status-pago {
    background: #d6e8ff;
    color: #0d47a1;
}

.status-recusado {
    background: #f7d4d4;
    color: #b3261e;
}

.visualizar-button {
    min-width: 104px !important;
    height: 44px !important;
    padding: 0 18px !important;
    border-radius: 14px !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    white-space: nowrap !important;
}

.status-badge,
.status-badge.status-analise,
.status-badge.status-aprovado,
.status-badge.status-pago,
.status-badge.status-reprovado,
.status-badge.status-cancelado {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    flex-wrap: nowrap !important;
    min-width: 88px !important;
    width: auto !important;
    padding: 8px 14px !important;
    border-radius: 999px !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    line-height: 1 !important;
}
.visualizar-button {
    min-width: 104px !important;
    height: 44px !important;
    padding: 0 18px !important;
    border-radius: 14px !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    white-space: nowrap !important;
    background-color: #8B0D0D !important;
    color: #ffffff !important;
    border: none !important;
    cursor: pointer !important;
}

    .visualizar-button:hover {
        background-color: #6F0909 !important;
    }
.solicitacao-data {
    white-space: nowrap !important;
    font-weight: 600;
}

.boleto-cell {
    white-space: nowrap;
}