.gb360 {
    --primary-color: var(--corprincipal);
    --secondary-color: #2c3e50;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
}
.gb360.page-container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}
.gb360 .kpis-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    margin-bottom: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    width: 100%;
}
.gb360 .kpi-card {
    flex: 1 1 0;
    background: #fff;
    border-radius: 10px;
    padding: 16px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border-left: 4px solid rgba(var(--corprincipal-rgb), 0.65);
    min-width: 220px;
    cursor: default;
}
.gb360 .kpi-card:hover {
    box-shadow:
        0 0 0 2px rgba(var(--corprincipal-rgb), 0.14),
        0 4px 12px rgba(0,0,0,0.15);
}
.gb360 .kpi-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: rgba(var(--corprincipal-rgb), 0.12);
    color: var(--corprincipal);
    flex-shrink: 0;
}
.gb360 .kpi-content { flex: 1; min-width: 0; }
.gb360 .kpi-label {
    font-size: 11px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    white-space: nowrap;
}
.gb360 .kpi-value {
    font-size: 22px;
    font-weight: 800;
    color: #2c3e50;
    line-height: 1.1;
    white-space: nowrap;
}
.gb360 .kpi-subvalue {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #7a7a7a;
    line-height: 1.2;
    white-space: nowrap;
}

.gb360 .table-container-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 20px;
}
.gb360 .table-360 { width: 100%; border-collapse: collapse; }
.gb360 .table-360 thead tr.filter-header-row,
.gb360 .table-360 thead tr.table-header-row {
    background: linear-gradient(135deg,
        rgba(var(--corprincipal-rgb), 0.98) 0%,
        rgba(var(--corprincipal-rgb), 0.82) 100%
    );
}
.gb360 .table-360 thead tr.filter-header-row { border-bottom: 1px solid rgba(255,255,255,0.18); }
.gb360 .table-360 thead tr.filter-header-row td { padding: 18px 18px 16px; }
.gb360 .filter-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
}
.gb360 .filter-header-left { display: flex; gap: 14px; flex: 1; align-items: flex-end; }
.gb360 .filter-header-item { display: flex; flex-direction: column; flex: 1; min-width: 150px; }
.gb360 .filter-header-item label {
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.gb360 .filter-header-input {
    width: 100%;
    padding: 10px 14px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    transition: all 0.2s;
}
.gb360 .filter-header-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.28);
}
.gb360 .filter-header-right { display: flex; gap: 10px; }
.gb360 .btn-clear {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.22);
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.gb360 .btn-clear:hover { background: rgba(255,255,255,0.2); }
.gb360 .quick-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.gb360 .btn-quick {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.22);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.gb360 .btn-quick.active {
    background: #fff;
    color: #854052;
}

/* Reparacoes Rolex: tablet filter layout */
@media (max-width: 1280px) {
    .gb360.reparacoesrolex-page .filter-header-content {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-end;
        gap: 12px;
    }

    .gb360.reparacoesrolex-page .filter-header-left {
        flex: 1 1 100%;
        display: flex;
        flex-wrap: nowrap;
        align-items: flex-end;
        gap: 10px;
    }

    .gb360.reparacoesrolex-page .filter-header-left .filter-header-item:first-child {
        flex: 1 1 auto !important;
        min-width: 280px;
    }

    .gb360.reparacoesrolex-page .filter-header-left .filter-header-item {
        flex: 0 0 170px;
        min-width: 170px;
    }

    .gb360.reparacoesrolex-page .filter-header-right {
        flex: 1 1 100%;
        width: 100%;
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: center;
        gap: 10px;
    }

    .gb360.reparacoesrolex-page .quick-filters {
        flex: 1 1 auto;
        gap: 6px;
    }

    .gb360.reparacoesrolex-page .btn-quick {
        min-height: 34px;
        padding: 7px 10px;
        font-size: 11px;
    }

    .gb360.reparacoesrolex-page .btn-clear {
        flex: 0 0 auto;
        margin-left: 0;
        white-space: nowrap;
    }
}

@media (max-width: 900px) {
    .gb360.reparacoesrolex-page .table-360 thead tr.filter-header-row td {
        padding: 12px;
    }

    .gb360.reparacoesrolex-page .filter-header-left .filter-header-item {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .gb360.reparacoesrolex-page .btn-quick {
        flex: 1 1 calc(50% - 6px);
        text-align: center;
    }

    .gb360.reparacoesrolex-page .btn-clear {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }
}

.gb360 .table-360 thead tr.table-header-row th {
    padding: 12px 16px;
    font-size: 12px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    background: transparent;
}
.gb360 .table-360 tbody tr { border-bottom: 1px solid #eee; }
.gb360 .table-360 tbody td { padding: 12px 16px; font-size: 13px; color: #444; }
.gb360 .table-360 tbody tr:hover { background: #f9f9f9; }
.gb360 .table-360 .sortable { cursor: pointer; }
.gb360 .table-360 .sortable i { margin-left: 6px; opacity: 0.7; }
.gb360 .text-right { text-align: right; }
.gb360 .text-center { text-align: center; }

.row-warning { background-color: #fff8e1 !important; }
.row-danger { background-color: #ffebee !important; }
.child-row { background: #fcfcfc; }
.child-row .ref-cell { padding-left: 24px; color: #666; font-weight: 400; }
.ref-cell { font-weight: 600; color: #854052; }
.cost-cell { color: #1f2937; font-weight: 700; }
.stock-positive { color: #16a34a; font-weight: 700; }
.stock-negative { color: #dc2626; font-weight: 700; }
.stock-zero { color: #9ca3af; font-weight: 600; }

.action-buttons { display: flex; justify-content: center; gap: 6px; }
.btn-icon {
    border: none;
    background: #f4f4f4;
    color: #854052;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.btn-icon:hover { background: rgba(var(--corprincipal-rgb), 0.15); }
.btn-icon.btn-danger { color: #dc3545; }

.pagination-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
    gap: 8px;
}
.pagination-info { font-size: 12px; color: #666; }
.pagination-controls { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.btn-pagination {
    border: none;
    background: #fff;
    color: #666;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    min-width: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.2s;
}
.btn-pagination:hover {
    background: rgba(var(--corprincipal-rgb), 0.12);
    color: #333;
}
.btn-pagination.active {
    background: rgba(var(--corprincipal-rgb), 1);
    color: #fff;
}
.btn-pagination:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}
