.card {
    background: #fff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.table th {
    padding: 16px 12px;
    border-bottom: 1px solid #f3f4f6;
    color: #9ca3af;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
}

.table td {
    padding: 16px 12px;
    border-bottom: 1px solid #f3f4f6;
    color: #111827;
    font-weight: 500;
}

.badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.badge-success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.badge-escalated {
    background-color: #fce7f3;
    color: #9d174d;
    border: 1px solid #fbcfe8;
}

.badge-pending {
    background-color: #fef9c3;
    color: #854d0e;
    border: 1px solid #fef08a;
}

.badge-suppressed {
    background-color: #fce7f3;
    color: #be185d;
    border: 1px solid #fbcfe8;
}

.badge-reversed {
    background-color: #e5e7eb;
    color: #374151;
    border: 1px solid #d1d5db;
}

.badge-purple-outline {
    background-color: #f3e8ff;
    color: #7e22ce;
    border: 1px solid #d8b4fe;
}

.badge-green-outline {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.badge-orange-solid {
    background-color: #ffedd5;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

/* MNO Specific Badges */
.badge-mno-live {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.badge-mno-degraded {
    background-color: #fefce8;
    color: #854d0e;
    border: 1px solid #fef08a;
}

.badge-mno-suppressed {
    background-color: #fce7f3;
    color: #be185d;
    border: 1px solid #fbcfe8;
}

.badge-filed {
    background-color: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.badge-resolved {
    background-color: #9ca3af;
    color: #1f2937;
    border: 1px solid #9ca3af;
}

.action-link {
    color: #ea580c;
    text-decoration: underline;
    font-weight: 600;
    font-size: 13px;
    text-transform: capitalize;
}

.action-link.red {
    color: #dc2626;
}

.action-link.force-rv {
    color: #ea580c;
    font-weight: 700;
    text-decoration: none;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-outline {
    background-color: transparent;
    color: #4b5563;
    border: 1px solid #d1d5db;
}

.btn-outline:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

.btn-primary {
    background-color: #ea580c;
    color: white;
}

.btn-primary:hover {
    background-color: #c2410c;
}

.btn-dark {
    background-color: #000;
    color: white;
}

.btn-dark:hover {
    background-color: #1f2937;
}

.btn-warning {
    background-color: #f97316;
    color: white;
}

.btn-warning:hover {
    background-color: #ea580c;
}

.btn-white-outline {
    background-color: white;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-white-outline:hover {
    background-color: #f9fafb;
}

.btn-danger {
    background-color: #dc2626;
    color: white;
}

.btn-danger:hover {
    background-color: #b91c1c;
}

/* ACTION POPOVER */
.action-popover {
    position: absolute;
    top: 50%;
    right: 32px;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 10;
    width: 140px;
    /* hidden by default, toggled via .open class */
    display: none;
    flex-direction: column;
    padding: 8px;
}

.action-popover.open {
    display: flex;
}

.popover-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 13px;
    transition: background-color 0.2s;
}

.popover-item:hover {
    background-color: #fff7ed;
    /* orange-50 */
}

/* FILTERS */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.filter-dropdown {
    padding: 10px 32px 10px 14px;
    border-radius: 20px;
    border: 1px solid #f3f4f6;
    background-color: #f9fafb;
    color: #6b7280;
    font-size: 13px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    cursor: pointer;
}

.date-picker-input {
    padding: 10px 14px 10px 14px;
    border-radius: 20px;
    border: 1px solid #f3f4f6;
    background-color: #f9fafb;
    color: #6b7280;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* PAGINATION */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 0 0;
    color: #6b7280;
    font-size: 13px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-number {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
}

.page-number:hover {
    background-color: #f3f4f6;
}

.page-number.active {
    font-weight: 700;
    color: #111827;
}

.page-dots {
    padding: 0 4px;
}

.link-btn {
    background: none;
    border: none;
    color: #ea580c;
    cursor: pointer;
    font-weight: 600;
    text-decoration: underline;
}

/* SEARCH */
.topbar-search {
    position: relative;
    display: flex;
    align-items: center;
}

.topbar-search .search-icon {
    position: absolute;
    left: 12px;
    color: #9ca3af;
    font-size: 18px;
}

.topbar-search input {
    padding: 10px 14px 10px 38px;
    border-radius: 20px;
    border: 1px solid #f3f4f6;
    background-color: #f9fafb;
    width: 280px;
    font-size: 14px;
    transition: all 0.2s;
}

.topbar-search input:focus {
    outline: none;
    border-color: #ff6b00;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

/* NOTIFICATIONS */
.topbar-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f97316;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s;
}

.topbar-icon-wrapper:hover {
    background-color: #ea580c;
}

.topbar-icon-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    background-color: #ffffff;
    color: #ea580c;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* USER */
.topbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4b5563;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
}

.topbar-user-avatar {
    width: 32px;
    height: 32px;
    background-color: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

/* ALERTS */
.alerts-container {
    padding: 20px 30px 0 30px;
}

.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid transparent;
}

/* Success */
.alert-success {
    background: #dcfce7;
    color: #166534;
}

/* Error -> Maps to MNO Suppressed (Pink/Red) */
.alert-error {
    background-color: #fdf2f8;
    color: #be185d;
    border-color: #fbcfe8;
}

.alert-error strong {
    color: #9d174d;
}

/* Warning -> Maps to Escalated (Yellow/Brown) */
.alert-warning {
    background-color: #fefce8;
    color: #854d0e;
    border-color: #fef08a;
}

.alert-warning strong {
    color: #713f12;
}

.alert-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}