/* assets/css/super_custodia.css - Painel Super Admin da Custódia */

.super-custodia-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.super-custodia-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.super-custodia-card {
    background: #2d3748;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.super-custodia-card h3 {
    margin: 0 0 12px 0;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
}

.super-custodia-card p {
    margin: 0 0 8px 0;
    color: #e2e8f0;
    line-height: 1.5;
    font-size: 0.92rem;
}

.super-custodia-card.kpi small {
    display: block;
    color: #a0aec0;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.6px;
}

.super-custodia-card.kpi strong {
    display: block;
    font-size: 1.4rem;
    color: #fff;
    line-height: 1.2;
}

.super-custodia-btn {
    border: none;
    background: #4a5568;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.super-custodia-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

.super-custodia-btn:active {
    transform: scale(0.98);
}

.super-custodia-btn.primary {
    background: #2b6cb0;
}

.super-custodia-btn.danger {
    background: #c53030;
}

.super-custodia-btn.success {
    background: #2f855a;
}

.super-custodia-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.super-custodia-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.super-custodia-item:hover {
    border-color: #4b5563;
    background: #243041;
}

.super-custodia-item-body {
    flex: 1;
    min-width: 0;
}

.super-custodia-item-title {
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.35;
    word-break: break-word;
}

.super-custodia-item-sub {
    color: #cbd5e0;
    font-size: 0.84rem;
    line-height: 1.45;
    word-break: break-word;
}

.super-custodia-item-right {
    text-align: right;
    min-width: 140px;
    font-weight: 800;
    color: #90cdf4;
    font-size: 0.92rem;
}

.super-custodia-empty {
    text-align: center;
    padding: 18px;
    border: 1px dashed #4a5568;
    border-radius: 10px;
    color: #cbd5e0;
    background: rgba(255, 255, 255, 0.02);
}

.super-custodia-label {
    display: block;
    margin: 10px 0 6px 0;
    font-size: 0.82rem;
    color: #cbd5e0;
    font-weight: 700;
}

.super-custodia-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: #2b6cb0;
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    z-index: 9999;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    max-width: 320px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.super-custodia-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.super-custodia-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 14px 0;
}

.super-custodia-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.super-custodia-badge.submitted {
    background: rgba(237, 137, 54, 0.18);
    color: #f6ad55;
}

.super-custodia-badge.approved {
    background: rgba(66, 153, 225, 0.18);
    color: #63b3ed;
}

.super-custodia-badge.advanced {
    background: rgba(72, 187, 120, 0.18);
    color: #68d391;
}

.super-custodia-badge.cancelled {
    background: rgba(245, 101, 101, 0.18);
    color: #fc8181;
}

.super-custodia-badge.closed {
    background: rgba(160, 174, 192, 0.18);
    color: #cbd5e0;
}

@media (max-width: 900px) {
    .super-custodia-grid {
        grid-template-columns: 1fr 1fr;
    }

    .super-custodia-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .super-custodia-grid {
        grid-template-columns: 1fr;
    }

    .super-custodia-item {
        flex-direction: column;
    }

    .super-custodia-item-right {
        min-width: auto;
        width: 100%;
        text-align: left;
    }

    .super-custodia-topbar {
        align-items: flex-start;
    }

    .super-custodia-toast {
        right: 12px;
        left: 12px;
        bottom: 12px;
        max-width: none;
    }
}

/* assets/css/custodia.css - Módulo Custódia */

.custodia-wrap {
    padding: 15px;
    padding-bottom: 90px;
    background: #f4f6f8;
    min-height: calc(100vh - 70px);
}

.custodia-kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.custodia-kpi-card {
    background: white;
    border-radius: 12px;
    padding: 18px;
    border-left: 4px solid #1565C0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.custodia-kpi-card small {
    display: block;
    color: #666;
    font-size: 0.78rem;
    margin-bottom: 8px;
    font-weight: 700;
    text-transform: uppercase;
}

.custodia-kpi-card strong {
    display: block;
    color: #0D47A1;
    font-size: 1.2rem;
    font-weight: 900;
}

.custodia-card {
    background: white;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.custodia-card h3 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 1rem;
}

.custodia-label {
    display: block;
    font-size: 0.8rem;
    color: #555;
    font-weight: 700;
    margin: 10px 0 6px 0;
}

.custodia-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.custodia-btn {
    border: none;
    background: #E3F2FD;
    color: #1565C0;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
}

.custodia-btn.primary {
    background: #1565C0;
    color: white;
}

.custodia-btn.mini {
    padding: 8px 10px;
    font-size: 0.75rem;
}

.custodia-lista {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.custodia-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
    background: #fafafa;
    border: 1px solid #E0E0E0;
    border-radius: 10px;
    padding: 12px;
}

.custodia-item.clickable {
    cursor: pointer;
}

.custodia-item-left {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
}

.custodia-item-body {
    flex: 1;
    min-width: 0;
}

.custodia-item-title {
    font-weight: 800;
    color: #333;
    margin-bottom: 4px;
}

.custodia-item-sub {
    color: #777;
    font-size: 0.82rem;
    line-height: 1.4;
}

.custodia-item-right {
    text-align: right;
    font-weight: 800;
    color: #1565C0;
    min-width: 120px;
}

.custodia-empty {
    text-align: center;
    color: #999;
    padding: 20px;
    border: 1px dashed #ccc;
    border-radius: 10px;
    background: #fff;
}

@media (max-width: 768px) {
    .custodia-kpi-grid {
        grid-template-columns: 1fr 1fr;
    }

    .custodia-item {
        flex-direction: column;
    }

    .custodia-item-right {
        min-width: auto;
        width: 100%;
        text-align: left;
    }
}