/* ==================================================
   FONTE GOOGLE
================================================== */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

/* ==================================================
   VARIÁVEIS DAS TABELAS
================================================== */

:root {
    --table-font: "Inter", system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;

    --table-primary: #0f172a;
    --table-primary-hover: #020617;

    --table-text: #334155;
    --table-text-strong: #0f172a;
    --table-text-muted: #64748b;
    --table-text-light: #94a3b8;

    --table-background: #ffffff;
    --table-background-soft: #f8fafc;
    --table-background-hover: #f8fafc;
    --table-background-footer: #fbfcfe;

    --table-border: #e2e8f0;
    --table-border-soft: #f1f5f9;
    --table-border-hover: #cbd5e1;

    --table-focus: #a5b4fc;
    --table-focus-ring: rgba(79, 70, 229, 0.09);

    --table-success: #15803d;
    --table-success-background: #dcfce7;

    --table-warning: #b45309;
    --table-warning-background: #fef3c7;

    --table-danger: #dc2626;
    --table-danger-dark: #b91c1c;
    --table-danger-background: #fef2f2;

    --table-radius: 18px;
    --table-field-radius: 11px;
}

/* ==================================================
   BASE
================================================== */

.table,
.table-tools,
.table-tools button,
.table-tools input,
.table-tools select,
.table-actions button,
.pagination {
    font-family: var(--table-font);
}

.table-tools button,
.table-tools input,
.table-tools select,
.table-action-btn {
    font: inherit;
}

/* ==================================================
   CARD DA TABELA
================================================== */

.card.table-card,
.card:has(.table-responsive) {
    overflow: hidden;

    background: var(--table-background);
    border: 1px solid rgba(226, 232, 240, 0.82) !important;
    border-radius: var(--table-radius) !important;

    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.025),
        0 10px 30px rgba(15, 23, 42, 0.045) !important;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;

    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.table-responsive::-webkit-scrollbar {
    height: 7px;
}

.table-responsive::-webkit-scrollbar-track {
    background: transparent;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}


.table-container > .table-responsive {
    width: 100%;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;

    background: var(--table-background);
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.table-container > .table-responsive > .table {
    margin: 0 !important;
}

/* ==================================================
   TABELA
================================================== */

.table {
    width: 100%;
    margin: 0 !important;

    color: var(--table-text);
    font-size: 0.91rem;

    border-collapse: separate;
    border-spacing: 0;

    vertical-align: middle;
}

/* ==================================================
   CABEÇALHO
================================================== */

.table thead th {
    padding: 16px 14px !important;

    color: var(--table-text-muted);

    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.25;

    text-transform: uppercase;
    letter-spacing: 0.075em;
    white-space: nowrap;

    background: var(--table-background-soft) !important;

    border-top: 0 !important;
    border-bottom: 1px solid var(--table-border) !important;

    vertical-align: middle;
}

.table thead th:first-child {
    padding-left: 24px !important;
}

.table thead th:last-child {
    padding-right: 24px !important;
}

/* ==================================================
   CORPO
================================================== */

.table tbody tr {
    background: var(--table-background);

    transition:
        background-color 0.16s ease,
        box-shadow 0.16s ease;
}

.table tbody tr:hover {
    background: var(--table-background-hover);
}

.table tbody td {
    padding: 16px 14px !important;

    color: var(--table-text);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.45;

    border-top: 0 !important;
    border-bottom: 1px solid var(--table-border-soft) !important;

    vertical-align: middle;
}

.table tbody td:first-child {
    padding-left: 24px !important;
}

.table tbody td:last-child {
    padding-right: 24px !important;
}

.table tbody tr:last-child td {
    border-bottom: 0 !important;
}

.table tbody td:first-child {
    color: var(--table-text-muted);
    font-weight: 600;
}

.table tbody td.fw-semibold,
.table tbody td strong {
    color: var(--table-text-strong);
    font-weight: 600 !important;
}

.table tbody td.text-muted {
    color: var(--table-text-muted) !important;
    font-weight: 450;
}

/* ==================================================
   LINKS NA TABELA
================================================== */

.table tbody td a:not(.btn):not(.table-action-btn) {
    color: var(--table-text-strong);
    font-weight: 600;

    text-decoration: none;

    transition: color 0.16s ease;
}

.table tbody td a:not(.btn):not(.table-action-btn):hover {
    color: #4f46e5;
}

/* ==================================================
   BADGES
================================================== */

.table .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    min-height: 28px;
    padding: 6px 11px;

    font-family: var(--table-font);
    font-size: 0.72rem;
    font-weight: 650;
    line-height: 1;

    letter-spacing: 0.01em;

    border: 1px solid transparent;
    border-radius: 999px !important;
}

.table .badge.bg-secondary {
    color: #475569 !important;
    background: #f1f5f9 !important;
    border-color: #e2e8f0;
}

.table .badge.bg-dark {
    color: #f8fafc !important;
    background: #1e293b !important;
    border-color: #1e293b;
}

.table .badge.bg-success {
    color: var(--table-success) !important;
    background: var(--table-success-background) !important;
    border-color: #bbf7d0;
}

.table .badge.bg-warning {
    color: var(--table-warning) !important;
    background: var(--table-warning-background) !important;
    border-color: #fde68a;
}

.table .badge.bg-danger {
    color: var(--table-danger-dark) !important;
    background: #fee2e2 !important;
    border-color: #fecaca;
}

.table .badge.bg-info {
    color: #0369a1 !important;
    background: #e0f2fe !important;
    border-color: #bae6fd;
}

/* ==================================================
   STATUS
================================================== */

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 30px;
    padding: 6px 11px;

    font-family: var(--table-font);
    font-size: 0.75rem;
    font-weight: 650;
    line-height: 1;

    border: 1px solid transparent;
    border-radius: 999px;
}

.status-pill i {
    font-size: 0.72rem;
}

.status-pill.active {
    color: var(--table-success);
    background: var(--table-success-background);
    border-color: #bbf7d0;
}

.status-pill.inactive {
    color: var(--table-danger-dark);
    background: #fee2e2;
    border-color: #fecaca;
}

.status-pill.pending {
    color: var(--table-warning);
    background: var(--table-warning-background);
    border-color: #fde68a;
}

.status-pill.info {
    color: #0369a1;
    background: #e0f2fe;
    border-color: #bae6fd;
}

/* ==================================================
   SELECT DENTRO DA TABELA
================================================== */

.table .form-select,
.table .form-control {
    min-height: 36px;
    height: 36px;

    padding-top: 0;
    padding-bottom: 0;

    color: var(--table-text);
    font-family: var(--table-font);
    font-size: 0.78rem;
    font-weight: 550;

    background-color: var(--table-background);
    border: 1px solid var(--table-border);
    border-radius: 9px;

    box-shadow: none;

    transition:
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        background-color 0.16s ease;
}

.table .form-select:hover,
.table .form-control:hover {
    border-color: var(--table-border-hover);
}

.table .form-select:focus,
.table .form-control:focus {
    background-color: #ffffff;
    border-color: var(--table-focus);

    box-shadow: 0 0 0 3px var(--table-focus-ring);
}

/* ==================================================
   AÇÕES DA TABELA
================================================== */

.table-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;

    padding: 4px;

    background: var(--table-background-soft);
    border: 1px solid #e8edf3;
    border-radius: 10px;
}

.table-action-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    color: var(--table-text-muted);
    font-size: 0.76rem;
    line-height: 1;

    background: transparent;
    border: 1px solid transparent;
    border-radius: 7px;

    cursor: pointer;

    -webkit-tap-highlight-color: transparent;

    transition:
        color 0.16s ease,
        background-color 0.16s ease,
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        transform 0.16s ease;
}

.table-action-btn:hover {
    color: var(--table-text-strong);

    background: #ffffff;
    border-color: #dfe5ec;

    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.table-action-btn:active {
    background: #f1f5f9;
    transform: scale(0.96);
}

.table-action-btn:focus {
    outline: none;
}

.table-action-btn:focus-visible {
    outline: 2px solid rgba(79, 70, 229, 0.28);
    outline-offset: 1px;
}

.table-action-btn.is-inactive {
    color: var(--table-text-light);
}

.table-action-btn.is-inactive:hover {
    color: #475569;
}

.table-action-divider {
    width: 1px;
    height: 18px;
    margin: 0 3px;

    background: var(--table-border);
}

.table-action-danger {
    color: var(--table-text-light);
}

.table-action-danger:hover {
    color: var(--table-danger);

    background: var(--table-danger-background);
    border-color: #fee2e2;
}

.table-action-payment {
    color: #64748b;
}

.table-action-payment:hover {
    color: #0369a1;

    background: #f0f9ff;
    border-color: #bae6fd;
}

/* ==================================================
   FILTROS — CONTAINER
================================================== */

.table-tools-wrapper {
    width: 100%;
    margin: 0;
}

/* O card pertence somente ao conjunto filtro + tabela */
.table-container {
    width: 100%;
    overflow: hidden;

    background: var(--table-background);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--table-radius);

    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.025),
        0 10px 30px rgba(15, 23, 42, 0.045);
}

.table-container > .table-tools,
.table-tools {
    width: 100%;
    margin: 0;
    overflow: visible;

    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.table-tools-main {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 15px;
}

/* ==================================================
   BUSCA
================================================== */

.table-tool-search {
    position: relative;

    flex: 1 1 280px;
    min-width: 240px;
}

.table-tool-search input {
    width: 100%;
    height: 44px;

    padding: 0 42px;

    color: var(--table-text-strong);
    font-size: 0.84rem;
    font-weight: 500;

    background: var(--table-background-soft);
    border: 1px solid var(--table-border);
    border-radius: var(--table-field-radius);

    outline: none;

    transition:
        color 0.16s ease,
        background-color 0.16s ease,
        border-color 0.16s ease,
        box-shadow 0.16s ease;
}

.table-tool-search input::placeholder {
    color: var(--table-text-light);
    font-weight: 450;
}

.table-tool-search input:hover {
    background: #ffffff;
    border-color: var(--table-border-hover);
}

.table-tool-search input:focus {
    background: #ffffff;
    border-color: var(--table-focus);

    box-shadow: 0 0 0 3px var(--table-focus-ring);
}

/* ==================================================
   SELECTS E DATAS
================================================== */

.table-tool-select,
.table-tool-date {
    position: relative;

    flex: 0 1 190px;
    min-width: 170px;
}

.table-tool-select select,
.table-tool-date input {
    width: 100%;
    height: 44px;

    color: #475569;
    font-family: var(--table-font);
    font-size: 0.82rem;
    font-weight: 550;

    background: var(--table-background-soft);
    border: 1px solid var(--table-border);
    border-radius: var(--table-field-radius);

    outline: none;

    transition:
        background-color 0.16s ease,
        border-color 0.16s ease,
        box-shadow 0.16s ease;
}

.table-tool-select select {
    padding: 0 38px 0 39px;

    appearance: none;
    -webkit-appearance: none;

    cursor: pointer;
}

.table-tool-date input {
    padding: 0 10px 0 39px;
}

.table-tool-select select:hover,
.table-tool-date input:hover {
    background: #ffffff;
    border-color: var(--table-border-hover);
}

.table-tool-select select:focus,
.table-tool-date input:focus {
    background: #ffffff;
    border-color: var(--table-focus);

    box-shadow: 0 0 0 3px var(--table-focus-ring);
}

/* ==================================================
   ÍCONES DOS FILTROS
================================================== */

.table-tool-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 2;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--table-text-light);
    font-size: 0.76rem;

    transform: translateY(-50%);
    pointer-events: none;
}

.table-tool-arrow {
    position: absolute;
    top: 50%;
    right: 14px;

    color: var(--table-text-light);
    font-size: 0.55rem;

    transform: translateY(-50%);
    pointer-events: none;
}

.table-search-clear {
    position: absolute;
    top: 50%;
    right: 9px;

    width: 28px;
    height: 28px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    color: var(--table-text-light);
    font-size: 0.7rem;

    background: transparent;
    border: 0;
    border-radius: 7px;

    transform: translateY(-50%);
    cursor: pointer;

    transition:
        color 0.16s ease,
        background-color 0.16s ease;
}

.table-search-clear:hover {
    color: #475569;
    background: #e2e8f0;
}

/* ==================================================
   BOTÃO FILTRAR
================================================== */

.table-filter-button {
    height: 44px;
    min-width: 104px;
    padding: 0 17px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    color: #ffffff;
    font-size: 0.81rem;
    font-weight: 650;

    background: var(--table-primary);
    border: 1px solid var(--table-primary);
    border-radius: var(--table-field-radius);

    cursor: pointer;

    transition:
        background-color 0.16s ease,
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        transform 0.16s ease;
}

.table-filter-button:hover {
    background: var(--table-primary-hover);
    border-color: var(--table-primary-hover);

    box-shadow: 0 5px 13px rgba(15, 23, 42, 0.13);

    transform: translateY(-1px);
}

.table-filter-button:active {
    box-shadow: none;
    transform: scale(0.98);
}

.table-filter-button:focus-visible {
    outline: 3px solid rgba(79, 70, 229, 0.17);
    outline-offset: 2px;
}

/* ==================================================
   RODAPÉ DOS FILTROS
================================================== */

.table-tools-footer {
    min-height: 55px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    padding: 10px 15px;

    background: var(--table-background-footer);
    border-top: 1px solid var(--table-border-soft);
    border-bottom: 1px solid var(--table-border);
}

.table-tools-info {
    min-width: 0;

    display: flex;
    align-items: center;
}

.table-record-count,
.table-filter-description {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin: 0;

    color: var(--table-text-muted);
    font-size: 0.76rem;
    font-weight: 500;
}

.table-record-count i,
.table-filter-description i {
    color: var(--table-text-light);
}

.table-record-count strong {
    color: var(--table-text-strong);
    font-weight: 700;
}

.table-tools-options {
    display: flex;
    align-items: center;
    gap: 7px;
}

.table-limit-label,
.table-limit-text {
    margin: 0;

    color: var(--table-text-muted);
    font-size: 0.75rem;
    font-weight: 500;
}

/* ==================================================
   LIMITE POR PÁGINA
================================================== */

.table-limit-select-wrapper {
    position: relative;
}

.table-limit-select {
    width: 68px;
    height: 34px;

    padding: 0 27px 0 10px;

    color: var(--table-text);
    font-family: var(--table-font);
    font-size: 0.75rem;
    font-weight: 650;

    background: #ffffff;
    border: 1px solid var(--table-border);
    border-radius: 8px;

    appearance: none;
    -webkit-appearance: none;

    outline: none;
    cursor: pointer;

    transition:
        border-color 0.16s ease,
        box-shadow 0.16s ease;
}

.table-limit-select:hover {
    border-color: var(--table-border-hover);
}

.table-limit-select:focus {
    border-color: var(--table-focus);
    box-shadow: 0 0 0 3px var(--table-focus-ring);
}

.table-limit-arrow {
    position: absolute;
    top: 50%;
    right: 10px;

    color: var(--table-text-light);
    font-size: 0.52rem;

    transform: translateY(-50%);
    pointer-events: none;
}

/* ==================================================
   LIMPAR FILTROS
================================================== */

.table-clear-button {
    margin-left: 5px;
    padding: 7px 9px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    color: var(--table-text-muted);
    font-size: 0.75rem;
    font-weight: 550;

    background: transparent;
    border-radius: 8px;

    text-decoration: none;

    transition:
        color 0.16s ease,
        background-color 0.16s ease;
}

.table-clear-button:hover {
    color: var(--table-danger);
    background: var(--table-danger-background);

    text-decoration: none;
}

/* ==================================================
   ESTADO VAZIO
================================================== */

.table .empty-state {
    min-height: 310px;
    padding: 45px 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.table .empty-state .empty-icon {
    width: 68px;
    height: 68px;
    margin-bottom: 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--table-text-light);
    font-size: 1.55rem;

    background: var(--table-background-soft);
    border: 1px dashed var(--table-border-hover);
    border-radius: 18px;
}

.table .empty-state h5 {
    margin: 0 0 7px;

    color: var(--table-text-strong);
    font-size: 1rem;
    font-weight: 700;
}

.table .empty-state p {
    max-width: 420px;
    margin: 0 0 18px;

    color: var(--table-text-muted);
    font-size: 0.81rem;
    line-height: 1.55;
}

/* ==================================================
   PAGINAÇÃO
================================================== */

.pagination {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;

    margin-top: 20px;
    margin-bottom: 0;
}

.pagination .page-item {
    margin: 0;
}

.pagination .page-link {
    min-width: 36px;
    height: 36px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 11px;

    color: var(--table-text-muted);
    font-size: 0.76rem;
    font-weight: 600;

    background: #ffffff;
    border: 1px solid var(--table-border) !important;
    border-radius: 9px !important;

    box-shadow: none;

    transition:
        color 0.16s ease,
        background-color 0.16s ease,
        border-color 0.16s ease,
        transform 0.16s ease;
}

.pagination .page-link:hover {
    color: var(--table-text-strong);

    background: var(--table-background-soft);
    border-color: var(--table-border-hover) !important;

    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    color: #ffffff;

    background: var(--table-primary);
    border-color: var(--table-primary) !important;
}

.pagination .page-item.disabled .page-link {
    color: #cbd5e1;

    background: #f8fafc;
    border-color: #f1f5f9 !important;

    pointer-events: none;
}

/* ==================================================
   BOTÃO PRINCIPAL PRÓXIMO À TABELA
================================================== */

.page-title-area .btn-dark,
.table .btn-dark,
.empty-state .btn-dark {
    min-height: 42px;
    padding: 0 16px !important;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    font-family: var(--table-font);
    font-size: 0.81rem;
    font-weight: 650;

    background: var(--table-primary) !important;
    border: 1px solid var(--table-primary) !important;
    border-radius: 11px !important;

    box-shadow: none;

    transition:
        background-color 0.16s ease,
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        transform 0.16s ease;
}

.page-title-area .btn-dark:hover,
.table .btn-dark:hover,
.empty-state .btn-dark:hover {
    background: var(--table-primary-hover) !important;
    border-color: var(--table-primary-hover) !important;

    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.13);

    transform: translateY(-1px);
}

/* ==================================================
   RESPONSIVIDADE
================================================== */

@media (max-width: 1100px) {
    .table-tools-main {
        flex-wrap: wrap;
    }

    .table-tool-search {
        flex: 1 1 100%;
    }

    .table-tool-select,
    .table-tool-date {
        flex: 1 1 190px;
    }

    .table-filter-button {
        flex: 0 0 auto;
    }
}

@media (max-width: 768px) {
    .table-container {
        border-radius: 14px;
    }

    .table-tools {
        border-radius: 0;
    }

    .table-tools-main {
        flex-direction: column;
        align-items: stretch;

        padding: 13px;
    }

    .table-tool-search,
    .table-tool-select,
    .table-tool-date {
        width: 100%;
        min-width: 0;

        flex: none;
    }

    .table-filter-button {
        width: 100%;
    }

    .table-tools-footer {
        flex-direction: column;
        align-items: flex-start;

        padding: 12px 13px;
    }

    .table-tools-options {
        width: 100%;
        flex-wrap: wrap;
    }

    .table-clear-button {
        margin-left: auto;
    }

    .table thead th {
        padding: 14px 12px !important;
        font-size: 0.68rem;
    }

    .table tbody td {
        padding: 14px 12px !important;
        font-size: 0.84rem;
    }

    .table thead th:first-child,
    .table tbody td:first-child {
        padding-left: 18px !important;
    }

    .table thead th:last-child,
    .table tbody td:last-child {
        padding-right: 18px !important;
    }

    .table-actions {
        gap: 2px;
    }

    .table-action-btn {
        width: 30px;
        height: 30px;
        min-width: 30px;

        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .table-tools-options {
        gap: 6px;
    }

    .table-clear-button {
        width: 100%;
        margin: 6px 0 0;
    }

    .table-limit-label,
    .table-limit-text {
        font-size: 0.71rem;
    }

    .table-record-count,
    .table-filter-description {
        font-size: 0.72rem;
    }

    .pagination {
        justify-content: center;
    }
}



/* ==================================================
   EVITA CARD DUPLO
================================================== */

.table-container .card,
.table-container .card-body {
    margin: 0;
    padding: 0;

    background: transparent;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.table-container + .pagination,
.table-container ~ .pagination {
    margin-top: 18px;
}

/* ==================================================
   ACESSIBILIDADE
================================================== */

@media (prefers-reduced-motion: reduce) {
    .table tbody tr,
    .table-action-btn,
    .table-filter-button,
    .table-clear-button,
    .pagination .page-link,
    .table-tool-search input,
    .table-tool-select select,
    .table-tool-date input {
        transition: none !important;
    }
}

/* ==================================================
   BRINQUEDO NA TABELA
================================================== */

.toy-table-info {
    min-width: 230px;

    display: flex;
    align-items: center;
    gap: 12px;
}

.toy-table-image-button {
    width: 54px;
    height: 54px;
    min-width: 54px;
    padding: 0;

    overflow: hidden;

    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;

    cursor: pointer;

    transition:
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        transform 0.16s ease;
}

.toy-table-image-button:hover {
    border-color: #cbd5e1;

    box-shadow:
        0 5px 14px rgba(15, 23, 42, 0.09);

    transform: translateY(-1px);
}

.toy-table-image-button:focus {
    outline: none;
}

.toy-table-image-button:focus-visible {
    outline: 3px solid rgba(79, 70, 229, 0.15);
    outline-offset: 2px;
}

.toy-table-image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.toy-table-details {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 3px;
}

.toy-table-details strong {
    max-width: 180px;

    overflow: hidden;

    color: #0f172a;
    font-size: 13px;
    font-weight: 650;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.toy-table-details small {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 500;
}

/* ==================================================
   QUANTIDADE
================================================== */

.toy-quantity {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: #475569;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.toy-quantity i {
    color: #94a3b8;
    font-size: 11px;
}

.toy-quantity.is-empty {
    color: #dc2626;
}

.toy-quantity.is-empty i {
    color: #f87171;
}

/* ==================================================
   HORÁRIO
================================================== */

.toy-schedule {
    min-width: 125px;

    display: inline-flex;
    align-items: center;
    gap: 5px;

    color: #475569;
    font-size: 11px;
    font-weight: 550;
    white-space: nowrap;
}

.toy-schedule i {
    margin-right: 2px;

    color: #94a3b8;
    font-size: 11px;
}

.toy-schedule span {
    color: #94a3b8;
    font-size: 10px;
}

/* ==================================================
   LIMITE DE HORAS EXTRAS
================================================== */

.toy-extra-limit {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 28px;
    padding: 5px 9px;

    color: #475569;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;

    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

/* ==================================================
   RESPONSIVO
================================================== */

@media (max-width: 992px) {
    .toy-table-info {
        min-width: 205px;
    }

    .toy-table-details strong {
        max-width: 150px;
    }
}

@media (max-width: 768px) {
    .toy-table-image-button {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    .toy-table-info {
        min-width: 190px;
    }

    .toy-table-details strong {
        max-width: 135px;
        font-size: 12px;
    }
}

/* ==================================================
   BANNER NA TABELA
================================================== */

.banner-table-info {
    min-width: 250px;

    display: flex;
    align-items: center;
    gap: 12px;
}

.banner-table-image-button {
    width: 72px;
    height: 48px;
    min-width: 72px;
    padding: 0;

    overflow: hidden;

    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;

    cursor: pointer;

    transition:
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        transform 0.16s ease;
}

.banner-table-image-button:hover {
    border-color: #cbd5e1;

    box-shadow:
        0 5px 14px rgba(15, 23, 42, 0.08);

    transform: translateY(-1px);
}

.banner-table-image-button:focus {
    outline: none;
}

.banner-table-image-button:focus-visible {
    outline: 3px solid rgba(79, 70, 229, 0.15);
    outline-offset: 2px;
}

.banner-table-image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.banner-table-details {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 3px;
}

.banner-table-details strong {
    max-width: 200px;

    overflow: hidden;

    color: #0f172a;
    font-size: 13px;
    font-weight: 650;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.banner-table-details small {
    max-width: 200px;

    overflow: hidden;

    color: #94a3b8;
    font-size: 11px;
    font-weight: 500;

    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==================================================
   TIPO DO BANNER
================================================== */

.banner-type-badge {
    min-height: 29px;
    padding: 5px 10px;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: #475569;
    font-size: 11px;
    font-weight: 650;
    white-space: nowrap;

    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
}

.banner-type-badge i {
    font-size: 10px;
}

.banner-type-badge.institutional {
    color: #4338ca;

    background: #eef2ff;
    border-color: #c7d2fe;
}

.banner-type-badge.offer {
    color: #15803d;

    background: #f0fdf4;
    border-color: #bbf7d0;
}

.banner-type-badge.notice {
    color: #b45309;

    background: #fffbeb;
    border-color: #fde68a;
}

/* ==================================================
   PERÍODO DO BANNER
================================================== */

.banner-period {
    min-width: 145px;

    display: flex;
    flex-direction: column;
    gap: 3px;

    white-space: nowrap;
}

.banner-period div {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: #475569;
    font-size: 11px;
    font-weight: 600;
}

.banner-period div i {
    color: #94a3b8;
    font-size: 10px;
}

.banner-period small {
    padding-left: 17px;

    color: #94a3b8;
    font-size: 10px;
    font-weight: 500;
}

/* ==================================================
   ORDEM DO BANNER
================================================== */

.banner-order {
    min-width: 30px;
    min-height: 28px;
    padding: 5px 8px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #475569;
    font-size: 11px;
    font-weight: 700;

    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

/* ==================================================
   RESPONSIVO
================================================== */

@media (max-width: 992px) {
    .banner-table-info {
        min-width: 220px;
    }

    .banner-table-details strong,
    .banner-table-details small {
        max-width: 165px;
    }
}

@media (max-width: 768px) {
    .banner-table-image-button {
        width: 64px;
        height: 44px;
        min-width: 64px;
    }

    .banner-table-info {
        min-width: 205px;
    }

    .banner-table-details strong,
    .banner-table-details small {
        max-width: 145px;
    }
}

/* ==================================================
   CABEÇALHO DA SEÇÃO DA TABELA
================================================== */

.table-section-header {
    width: 100%;
    min-height: 86px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    padding: 18px 22px;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f8fafc 100%
        );

    border-bottom: 1px solid var(--table-border);
}

.table-section-title {
    min-width: 0;

    display: flex;
    align-items: center;
    gap: 14px;
}

.table-section-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #334155;
    font-size: 17px;

    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 13px;

    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.03);
}

.table-section-title > div {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 4px;
}

.table-section-title strong {
    display: block;

    margin: 0;

    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
}

.table-section-title small {
    display: block;

    margin: 0;

    color: #64748b;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
}

/* Remove margens de elementos internos */
.table-section-header p,
.table-section-header h1,
.table-section-header h2,
.table-section-header h3,
.table-section-header strong,
.table-section-header small {
    margin-top: 0;
    margin-bottom: 0;
}

/* ==================================================
   RESPONSIVO
================================================== */

@media (max-width: 768px) {
    .table-section-header {
        min-height: auto;
        padding: 15px 16px;
    }

    .table-section-title {
        align-items: flex-start;
        gap: 11px;
    }

    .table-section-icon {
        width: 41px;
        height: 41px;
        min-width: 41px;

        font-size: 15px;
        border-radius: 11px;
    }

    .table-section-title strong {
        font-size: 14px;
    }

    .table-section-title small {
        font-size: 11px;
    }
}