.admin-shell {
    color: #1f2937;
}

.admin-shell .navbar .container-fluid {
    flex-wrap: nowrap;
    gap: 0.75rem;
}

.admin-shell .navbar-brand {
    flex: 1 1 auto;
    min-width: 0;
}

.admin-shell .navbar-brand img {
    flex: 0 0 auto;
    height: 42px;
    width: auto;
}

.admin-shell .navbar-brand span {
    color: #00366d;
    font-weight: 700;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-shell .admin-menu-toggle {
    align-items: center;
    display: inline-flex;
    flex: 0 0 42px;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.admin-shell .admin-menu-toggle .fa-solid {
    font-size: 1.2rem;
}

.admin-shell .nav-link.active {
    color: #00366d;
    font-weight: 700;
}

.admin-shell .nav-pills .nav-link {
    border-radius: 0;
}

.admin-shell .nav-pills .nav-link.active,
.admin-shell .nav-pills .show > .nav-link {
    background-color: transparent;
    color: #00366d;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.35rem;
}

.admin-shell .admin-offcanvas {
    width: 320px;
}

.admin-shell .navbar .ms-auto {
    flex: 0 0 auto;
}

.admin-shell .admin-menu-list .list-group-item {
    align-items: center;
    border: 0;
    border-radius: 6px;
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.admin-shell .admin-menu-list .list-group-item .fa-solid {
    color: #6b7280;
    text-align: center;
    width: 1.25rem;
}

.admin-shell .admin-menu-list .list-group-item.active .fa-solid {
    color: #fff;
}

.admin-shell .admin-menu-section {
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin: 1.25rem 0 0.5rem;
    text-transform: uppercase;
}

.admin-shell pre {
    background: #111827;
    border-radius: 6px;
    color: #f9fafb;
    font-size: 0.875rem;
    max-height: 520px;
    overflow: auto;
    padding: 1rem;
    white-space: pre-wrap;
}

.admin-shell .table {
    vertical-align: middle;
}

.admin-shell .admin-dashboard-card .card-header h1 {
    align-items: center;
    display: flex;
    min-width: 0;
}

.admin-shell .admin-dashboard-table {
    table-layout: fixed;
}

.admin-shell .admin-dashboard-table th,
.admin-shell .admin-dashboard-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-shell .admin-dashboard-table .status-col {
    width: 140px;
}

.admin-shell .admin-dashboard-table .type-col {
    width: 190px;
}

.admin-shell .admin-dashboard-table .date-col {
    width: 190px;
}

.admin-shell .admin-dashboard-table .action-col {
    width: 72px;
}

.admin-shell .recent-webhook-list {
    display: flex;
    flex-direction: column;
}

.admin-shell .recent-webhook-item {
    border-top: 1px solid #dee2e6;
    color: inherit;
    display: block;
    padding: 1rem;
    text-decoration: none;
}

.admin-shell .recent-webhook-item:hover,
.admin-shell .recent-webhook-item:focus {
    background: #f8f9fa;
    color: inherit;
}

.admin-shell .recent-webhook-type {
    font-weight: 700;
    margin-bottom: 0.5rem;
    overflow-wrap: anywhere;
}

.admin-shell .recent-webhook-user {
    align-items: center;
    color: #4b5563;
    display: flex;
    gap: 0.5rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

.admin-shell .recent-webhook-received {
    color: #6b7280;
    flex: 0 0 auto;
    font-size: 0.8125rem;
    line-height: 1.3;
    text-align: right;
}

.admin-shell .recent-webhook-empty {
    border-top: 1px solid #dee2e6;
    padding: 1rem;
}

.admin-shell .metric-card {
    min-height: 100%;
}

.admin-shell .metric-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
}

.admin-shell .detail-table th {
    width: 240px;
}

.admin-shell #pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    list-style: none;
    padding-left: 0;
}

.admin-shell #pagination a,
.admin-shell #pagination strong {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    color: #0d6efd;
    display: inline-block;
    padding: 0.25rem 0.5rem;
    text-decoration: none;
}

.admin-shell #pagination strong {
    background: #0d6efd;
    color: #fff;
}

@media (max-width: 575.98px) {
    .admin-shell .navbar .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .admin-shell .navbar-brand {
        gap: 0.5rem !important;
        margin-right: 0;
    }

    .admin-shell .navbar-brand img {
        height: 34px;
    }

    .admin-shell .navbar-brand span {
        font-size: 0.875rem;
    }

    .admin-shell .navbar .btn-sm {
        align-items: center;
        display: inline-flex;
        height: 36px;
        justify-content: center;
        padding: 0;
        width: 36px;
    }

    .admin-shell .admin-dashboard-card .card-header {
        padding: 0.875rem;
    }

    .admin-shell .admin-dashboard-card .card-header h1 {
        font-size: 1rem;
        line-height: 1.3;
    }

    .admin-shell .recent-webhook-item {
        padding: 0.875rem;
    }

    .admin-shell .recent-webhook-received {
        max-width: 52%;
    }
}
