/* ── Overrides to make the new backoffice CSS coexist with Radzen/Bootstrap ── */

/* Ensure Radzen dialogs render above the new layout */
.rz-dialog-wrapper {
    z-index: 9999 !important;
}

.rz-dialog-overlay {
    z-index: 9998 !important;
}

/* Radzen notification on top */
.rz-notification {
    z-index: 10000 !important;
}

/* Reset some Bootstrap defaults that conflict with the new design */
.dashboard .main {
    padding: 0;
}

.dashboard a {
    color: inherit;
    text-decoration: none;
}

.dashboard a:hover {
    color: inherit;
    text-decoration: none;
}

/* Ensure the sidebar nav links don't get Bootstrap link styles */
.sidebar-nav a,
.sidebar-nav a:hover,
.sidebar-nav a:focus,
.sidebar-nav a:active {
    color: #f0f0f2;
    text-decoration: none;
}

.sidebar-nav a.active,
.sidebar-nav a.active:hover {
    color: #ffffff;
}

.sidebar-nav a.subitem {
    color: #d7d7db;
}

/* Fix button resets from Bootstrap */
.sidebar-group-title,
.hamburger,
.sidebar-close,
.mobile-menu-fab {
    border: none;
    outline: none;
}

.sidebar-group-title:focus,
.hamburger:focus {
    outline: none;
    box-shadow: none;
}

/* Table inside .table-card should not inherit Bootstrap table styles */
.table-card table {
    margin-bottom: 0;
}

/* Status badge sizing fix */
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Topbar actions layout */
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-icon-btn {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    color: #555;
    transition: background 0.15s;
}

.topbar-icon-btn:hover {
    background: #eef2ff;
}

/* Menu grid icon (hamburger replacement) */
.menu-grid-icon {
    display: block;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='2' cy='2' r='1.5' fill='%23555'/%3E%3Ccircle cx='8' cy='2' r='1.5' fill='%23555'/%3E%3Ccircle cx='14' cy='2' r='1.5' fill='%23555'/%3E%3Ccircle cx='2' cy='8' r='1.5' fill='%23555'/%3E%3Ccircle cx='8' cy='8' r='1.5' fill='%23555'/%3E%3Ccircle cx='14' cy='8' r='1.5' fill='%23555'/%3E%3Ccircle cx='2' cy='14' r='1.5' fill='%23555'/%3E%3Ccircle cx='8' cy='14' r='1.5' fill='%23555'/%3E%3Ccircle cx='14' cy='14' r='1.5' fill='%23555'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Pagination buttons */
.secondary-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Filter row inputs inside new table */
.filter-row select {
    width: 100%;
    height: 30px;
    border: 1px solid #e2e5ec;
    border-radius: 3px;
    padding: 4px 6px;
    background: white;
    font-size: 12px;
}

.filter-row select:focus {
    outline: none;
    border-color: #1455d9;
    box-shadow: 0 0 0 3px rgba(20, 85, 217, 0.12);
}
