/* Portal custom styles — layered on top of Sneat / Bootstrap 5. */

.navbar-bell-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    font-size: 0.65rem;
}

.avatar-initial {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Service health */
.health-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}
.health-dot.health-green { background-color: #22c55e; }
.health-dot.health-yellow { background-color: #f59e0b; }
.health-dot.health-red { background-color: #ef4444; }

.health-card { border-left: 4px solid #e7e7f0; }
.health-card.health-green { border-left-color: #22c55e; }
.health-card.health-yellow { border-left-color: #f59e0b; }
.health-card.health-red { border-left-color: #ef4444; }

/* Timelines */
.timeline {
    position: relative;
    padding-left: 1.75rem;
    list-style: none;
    margin: 0;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e7e7f0;
}
.timeline > li {
    position: relative;
    padding-bottom: 1.25rem;
}
.timeline > li::before {
    content: '';
    position: absolute;
    left: -1.45rem;
    top: 0.3rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #696cff;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #e7e7f0;
}
.timeline .timeline-date { font-size: 0.8rem; color: #8a929d; }

/* Stat cards */
.stat-card .stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

/* Tables */
table.dataTable thead th { white-space: nowrap; }
.table-actions { white-space: nowrap; }

/* Masked secrets */
.secret-mask { letter-spacing: 2px; font-family: monospace; }
.secret-value { font-family: monospace; word-break: break-all; }

/* Offer banners */
.offer-banner {
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    color: #fff;
}
.offer-banner .offer-title { font-weight: 700; font-size: 1.1rem; }

/* Mobile quick actions */
.quick-actions .btn { flex: 1 1 45%; }

@media (max-width: 576px) {
    .card-body { padding: 1rem; }
    .table-responsive { font-size: 0.9rem; }
}

/* Print-friendly receipts */
@media print {
    .layout-menu, .layout-navbar, .content-footer, .btn { display: none !important; }
    .content-wrapper { margin: 0 !important; }
}
