html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensures full height layout */
}

.content-wrapper {
    flex: 1 0 auto; /* Allow content to grow and push footer down */
    display: flex;
    flex-direction: column;
    margin-top: 0;
    padding-top: 0;
}

.layout-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto; /* Take up remaining space */
    margin: 0 !important;
    padding: 0 !important;
}

main {
    margin: 0 !important;
    padding: 0 !important;
}

header {
    margin: 0 !important;
    padding: 0 !important;
}

header .navbar {
    background: linear-gradient(to bottom, #1e3c72, #2a5298, #1e3c72);
    box-shadow: inset 0px 4px 50px #111111;
    border-bottom: none !important;
    min-height: 64px;
    margin: 0 !important;
}

header .navbar .navbar-brand,
header .navbar .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    white-space: nowrap;
}

header .navbar .nav-link:hover,
header .navbar .nav-link:focus {
    color: #e5e7eb !important;
}

header .navbar .nav-link.active {
    border-bottom: 3px solid #60a5fa;
    color: #ffffff !important;
    font-weight: 600;
}

footer.footer {
    width: 100%;
    background: linear-gradient(to bottom, #1861ac, #2a5298, #1e3c72);
    box-shadow: inset 0px 4px 50px #111111;
    color: white;
    display: flex;
    align-items: center;
    height: 60px;
    margin-top: auto; /* Pushes footer to bottom when content is short */
    flex-shrink: 0; /* Prevent footer from shrinking */
}

footer.footer .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    max-width: none; 
    width: 100%;
    margin: 0;
    padding: 0 30px;
    text-align: right;
}

/* ============================================================================
   TOUR CUSTOMIZATIONS (Driver.js)
   ============================================================================ */

/* Tour overlay - slightly darker for better contrast */
.driver-overlay {
    background-color: rgba(0, 0, 0, 0.6) !important;
}

/* Tour popover styling - PalletVision blue theme */
.driver-popover {
    background-color: #ffffff !important;
    color: #1f2937 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
    max-width: 450px !important;
}

.driver-popover-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #1e3c72 !important;
    margin-bottom: 8px !important;
}

.driver-popover-description {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #4b5563 !important;
}

/* Tour buttons - PalletVision blue theme */
.driver-popover-next-btn,
.driver-popover-prev-btn,
button.driver-popover-next-btn,
button.driver-popover-prev-btn {
    background-color: #1e3c72 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 8px 16px !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    transition: all 0.2s !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    text-shadow: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
    cursor: pointer !important;
    outline: none !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
}

.driver-popover-next-btn:hover,
.driver-popover-prev-btn:hover,
button.driver-popover-next-btn:hover,
button.driver-popover-prev-btn:hover {
    background-color: #2a5298 !important;
    transform: translateY(-1px) translateZ(0) !important;
    -webkit-transform: translateY(-1px) translateZ(0) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15) !important;
}

.driver-popover-next-btn:active,
.driver-popover-prev-btn:active,
button.driver-popover-next-btn:active,
button.driver-popover-prev-btn:active {
    transform: translateY(0) translateZ(0) !important;
    -webkit-transform: translateY(0) translateZ(0) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

/* Special styling for Previous button (lighter background) */
.driver-popover-prev-btn,
button.driver-popover-prev-btn {
    background-color: #94a3b8 !important;
}

.driver-popover-prev-btn:hover,
button.driver-popover-prev-btn:hover {
    background-color: #64748b !important;
}

/* Disable pointer events on highlighted elements during tour */
.driver-active-element {
    pointer-events: none !important;
}

/* But keep pointer events on the tour popover itself */
#driver-popover-content {
    pointer-events: auto !important;
}

.driver-popover-close-btn {
    color: #6b7280 !important;
    font-size: 20px !important;
    opacity: 0.6 !important;
    transition: opacity 0.2s !important;
}

.driver-popover-close-btn:hover {
    opacity: 1 !important;
    color: #1e3c72 !important;
}

/* Tour progress text */
.driver-popover-progress-text {
    font-size: 13px !important;
    color: #6b7280 !important;
    font-weight: 500 !important;
}

/* Highlighted element styling */
.driver-active-element {
    outline: 3px solid #60a5fa !important;
    outline-offset: 4px !important;
}

/* Tour arrow */
.driver-popover-arrow {
    border-color: #ffffff !important;
}

/* ========================================
   KENDO DIALOG OVERRIDES FOR TOUR SYSTEM
   NUCLEAR OPTION: Force white text in tour dialogs
   ======================================== */

/* Force white text on all Kendo dialog headers */
.k-dialog-titlebar,
.k-window-titlebar,
.k-dialog .k-window-title,
.k-dialog-title,
.k-window-title,
.k-dialog-titlebar *,
.k-window-titlebar * {
    color: #ffffff !important;
    text-shadow: none !important;
}

/* Force white text on all Kendo dialog buttons */
.k-dialog .k-button,
.k-dialog .k-button *,
.k-dialog button[role="button"],
.k-dialog button[role="button"] * {
    color: #ffffff !important;
    text-shadow: none !important;
}

/* Ensure button text is white even with :hover and :active states */
.k-dialog .k-button:hover,
.k-dialog .k-button:hover *,
.k-dialog .k-button:active,
.k-dialog .k-button:active *,
.k-dialog button[role="button"]:hover,
.k-dialog button[role="button"]:hover *,
.k-dialog button[role="button"]:active,
.k-dialog button[role="button"]:active * {
    color: #ffffff !important;
    text-shadow: none !important;
}

/* Ensure header has gradient background */
.k-dialog-titlebar,
.k-window-titlebar {
    background: linear-gradient(to bottom, #1e3c72, #2a5298, #1e3c72) !important;
    background-color: #1e3c72 !important;
}

/* Override any Kendo theme text colors */
.k-dialog .k-dialog-buttongroup .k-button,
.k-dialog .k-actions .k-button {
    color: #ffffff !important;
}

/* ========================================
   KENDO PRIMARY BUTTON - BLUE GRADIENT
   Force all primary buttons to use blue theme
   ======================================== */

/* Target Kendo primary buttons specifically */
.k-dialog .k-button-solid-primary,
.k-dialog .k-button.k-button-solid-primary,
.k-dialog button.k-button-solid-primary,
.k-dialog .k-actions .k-button-solid-primary,
.k-dialog .k-dialog-buttongroup .k-button-solid-primary,
.k-button-solid-primary,
button.k-button-solid-primary {
    background: linear-gradient(to bottom, #1e3c72, #2a5298) !important;
    background-color: #1e3c72 !important;
    background-image: linear-gradient(to bottom, #1e3c72, #2a5298) !important;
    border-color: #1e3c72 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
}

.k-dialog .k-button-solid-primary:hover,
.k-dialog .k-button.k-button-solid-primary:hover,
.k-dialog button.k-button-solid-primary:hover,
.k-button-solid-primary:hover,
button.k-button-solid-primary:hover {
    background: linear-gradient(to bottom, #2a5298, #1e3c72) !important;
    background-color: #2a5298 !important;
    background-image: linear-gradient(to bottom, #2a5298, #1e3c72) !important;
    border-color: #2a5298 !important;
    color: #ffffff !important;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2) !important;
}

.k-dialog .k-button-solid-primary:active,
.k-dialog .k-button.k-button-solid-primary:active,
.k-dialog button.k-button-solid-primary:active,
.k-button-solid-primary:active,
button.k-button-solid-primary:active {
    background: linear-gradient(to bottom, #1e3c72, #2a5298) !important;
    background-color: #1e3c72 !important;
    background-image: linear-gradient(to bottom, #1e3c72, #2a5298) !important;
    border-color: #1e3c72 !important;
    color: #ffffff !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15) !important;
}

/* Ensure text is white in all states */
.k-button-solid-primary,
.k-button-solid-primary *,
.k-button-solid-primary:hover,
.k-button-solid-primary:hover *,
.k-button-solid-primary:active,
.k-button-solid-primary:active * {
    color: #ffffff !important;
    text-shadow: none !important;
}

.custom-monitor-icon::after {
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M19 3H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h4l-1 2v1h8v-1l-1-2h4c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 12H5V5h14v10z'/%3E%3C/svg%3E");
    background-size: 16px 16px;
    background-repeat: no-repeat;
    width: 16px;
    height: 16px;
    display: inline-block;
}

/* Plus icon for Add buttons - WHITE VERSION */
.k-i-plus::before {
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z'/%3E%3C/svg%3E");
    background-size: 16px 16px;
    background-repeat: no-repeat;
    width: 16px;
    height: 16px;
    display: inline-block;
}

/* Edit/Pencil icon - WHITE VERSION */
.k-i-edit::before {
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z'/%3E%3C/svg%3E");
    background-size: 16px 16px;
    background-repeat: no-repeat;
    width: 16px;
    height: 16px;
    display: inline-block;
}

/* Delete/Trash icon - WHITE VERSION */
.k-i-delete::before {
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z'/%3E%3C/svg%3E");
    background-size: 16px 16px;
    background-repeat: no-repeat;
    width: 16px;
    height: 16px;
    display: inline-block;
}

/* Cancel/X icon - WHITE VERSION */
.k-i-cancel::before {
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E");
    background-size: 16px 16px;
    background-repeat: no-repeat;
    width: 16px;
    height: 16px;
    display: inline-block;
}

/* Check/Save icon - WHITE VERSION */
.k-i-check::before {
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: 16px 16px;
    background-repeat: no-repeat;
    width: 16px;
    height: 16px;
    display: inline-block;
}

/* User Avatar Styles */
.user-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-initials {
    color: white;
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    user-select: none;
    letter-spacing: 1px;
}

/* ============================================================================
   KENDO GRID BLUE GRADIENT HEADER STYLING
   ============================================================================ */

/* Apply blue gradient to all Kendo Grid headers */
.k-grid-header,
.k-grid .k-grid-header {
    background: linear-gradient(to bottom, #1e3c72, #2a5298, #1e3c72) !important;
    border-color: #1e3c72 !important;
}

/* Grid header cells */
.k-grid-header .k-header,
.k-grid .k-grid-header .k-header,
.k-grid-header th.k-header,
.k-grid th.k-header {
    background: transparent !important;
    background-color: transparent !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Sort icons and filter icons in headers */
.k-grid-header .k-header .k-icon,
.k-grid-header .k-header .k-i-sort-asc-sm,
.k-grid-header .k-header .k-i-sort-desc-sm,
.k-grid-header .k-header .k-i-filter,
.k-grid-header .k-link {
    color: #ffffff !important;
}

/* Column menu icon */
.k-grid-header .k-header .k-column-menu,
.k-grid-header .k-grid-column-menu {
    color: #ffffff !important;
}

/* Hover state for header cells */
.k-grid-header .k-header:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Group header styling */
.k-grid .k-grouping-header,
.k-grouping-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e8eef5 100%) !important;
    border-color: #cbd5e1 !important;
}

/* Footer with blue gradient (optional - matches header) */
.k-grid-footer,
.k-grid .k-grid-footer {
    background: linear-gradient(to bottom, #1e3c72, #2a5298, #1e3c72) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-color: #1e3c72 !important;
}

.k-grid-footer td,
.k-grid .k-grid-footer td {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

/* Pager styling to complement the blue theme */
.k-grid .k-pager,
.k-pager {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

.k-pager .k-link,
.k-pager .k-pager-numbers .k-link {
    color: #1e3c72 !important;
}

.k-pager .k-link:hover {
    background: #e8eef5 !important;
    color: #2a5298 !important;
}

.k-pager .k-state-selected,
.k-pager .k-link.k-state-selected {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
    color: #ffffff !important;
    border-color: #1e3c72 !important;
}

/* Grid alternating rows (subtle) */
.k-grid tr.k-alt {
    background-color: #f8fafc;
}

/* Grid row hover */
.k-grid tbody tr:hover,
.k-grid tbody tr.k-state-hover {
    background-color: #e8eef5 !important;
}

/* Grid selected row */
.k-grid tbody tr.k-state-selected,
.k-grid tbody tr.k-state-selected:hover {
    background-color: #dbeafe !important;
    color: #1e293b !important;
}

/* ============================================================================
   SESSION WARNING DIALOG CUSTOM STYLING
   ============================================================================ */

/* Session warning dialog specific styles */
#sessionWarningDialog .k-dialog-titlebar,
#sessionWarningDialog.k-dialog .k-dialog-titlebar {
    background: linear-gradient(to right, #ff6358, #ff8a50) !important;
    color: #ffffff !important;
    border-bottom: 2px solid #ff6358;
}

#sessionWarningDialog .k-dialog-title {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 18px !important;
}

/* Content area styling */
#sessionWarningDialog .k-dialog-content {
    padding: 0 !important;
}

/* Action buttons area */
#sessionWarningDialog .k-dialog-buttongroup,
#sessionWarningDialog .k-actions {
    border-top: 1px solid #e5e7eb;
    padding: 16px 24px !important;
    background: #f9fafb;
}

/* Primary button (Stay Logged In) */
#sessionWarningDialog .k-primary,
#sessionWarningDialog .k-button.k-primary {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: 10px 24px !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
}

#sessionWarningDialog .k-primary:hover,
#sessionWarningDialog .k-button.k-primary:hover {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.3) !important;
}

/* Secondary button (Log Out) */
#sessionWarningDialog .k-button:not(.k-primary) {
    background: #ffffff !important;
    border: 2px solid #e5e7eb !important;
    color: #6b7280 !important;
    font-weight: 600 !important;
    padding: 10px 24px !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
}

#sessionWarningDialog .k-button:not(.k-primary):hover {
    background: #f3f4f6 !important;
    border-color: #d1d5db !important;
    color: #374151 !important;
    transform: translateY(-1px);
}

/* Dialog overlay backdrop */
.k-overlay {
    background-color: rgba(0, 0, 0, 0.5) !important;
}

/* Clock icon animation */
#sessionWarningDialog .fa-clock {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* ============================================================================
   GLOBAL TOAST NOTIFICATION SYSTEM
   Clean, minimal, centered toasts for success/error/warning/info messages
   ============================================================================ */

/* Position toast container at top-center - TRULY CENTERED.
   showToast renders notifications statically INTO #globalNotification (not a Kendo popup). We pin that
   container across the visible content area (left:0 / right:0 — right:0 respects the scrollbar gutter)
   and center each toast with flexbox. This is immune both to the scrollbar gutter and to Kendo's popup
   left:50% positioning that pushed toasts right of center. pointer-events:none keeps the full-width
   invisible container from blocking clicks on the page behind it; the toasts themselves re-enable them. */
#globalNotification {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 10000;
    pointer-events: none;
}
#globalNotification .k-notification,
#globalNotification .k-notification-wrap,
#globalNotification .toast-notification {
    pointer-events: auto;
}

/* Remove ALL Kendo wrapper styling - prevents double border */
.k-notification-wrap,
.k-notification-wrap.k-notification-error,
.k-notification-wrap.k-notification-success,
.k-notification-wrap.k-notification-warning,
.k-notification-wrap.k-notification-info {
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

/* Remove Kendo notification state-specific backgrounds */
.k-notification-error,
.k-notification-success,
.k-notification-warning,
.k-notification-info {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Base toast notification styling */
.toast-notification {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    min-width: 250px;
    text-align: left;
    animation: slideDown 0.3s ease-out;
    border: none !important; /* No border - just solid color */
}

/* Success toast - green */
.toast-success {
    background: #10b981;
    color: white;
}

/* Error toast - red */
.toast-error {
    background: #ef4444;
    color: white;
}

/* Warning toast - yellow/orange */
.toast-warning {
    background: #f59e0b;
    color: white;
}

/* Info toast - blue */
.toast-info {
    background: #3b82f6;
    color: white;
}

/* Icon styling */
.toast-notification i {
    font-size: 16px;
    flex-shrink: 0;
}

/* Slide down animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================================
   SESSION TIMEOUT MODAL BUTTON STYLING
   ============================================================================ */

/* "Stay Logged In" button - Blue gradient theme */
.session-timeout-stay-btn.k-button {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%) !important;
    color: white !important;
    border: none !important;
    font-weight: 600 !important;
    padding: 10px 24px !important;
    font-size: 15px !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3) !important;
    transition: all 0.2s ease !important;
}

.session-timeout-stay-btn.k-button:hover {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%) !important;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.4) !important;
    transform: translateY(-1px) !important;
}

.session-timeout-stay-btn.k-button:active {
    transform: translateY(0) !important;
}

/* "Log Out" button - Red gradient theme */
.session-timeout-logout-btn.k-button {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%) !important;
    color: white !important;
    border: none !important;
    font-weight: 600 !important;
    padding: 10px 24px !important;
    font-size: 15px !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3) !important;
    transition: all 0.2s ease !important;
}

.session-timeout-logout-btn.k-button:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%) !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4) !important;
    transform: translateY(-1px) !important;
}

.session-timeout-logout-btn.k-button:active {
    transform: translateY(0) !important;
}

/* ── In-portal alert bell (#187 child 3) ─────────────────────────────── */
.alert-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.alert-bell-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 8px;
    font-size: 18px;
    line-height: 1;
    color: #fff;
}

.alert-bell-btn:hover { opacity: 0.85; }

.alert-bell-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #dc3545;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px #1e3c72;
}

.alert-bell-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 340px;
    max-width: 90vw;
    background: #fff;
    color: #333;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    z-index: 1050;
    overflow: hidden;
}

.alert-bell-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid #eef1f5;
}

.alert-bell-panel-title { font-weight: 700; font-size: 14px; color: #1e3c72; }

.alert-bell-markall {
    background: none;
    border: none;
    color: #1e3c72;
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.alert-bell-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 380px;
    overflow-y: auto;
}

.alert-bell-empty {
    padding: 18px 14px;
    text-align: center;
    color: #888;
    font-size: 13px;
}

.alert-bell-item {
    display: flex;
    gap: 10px;
    padding: 11px 14px;
    border-bottom: 1px solid #f3f5f8;
    text-decoration: none;
    color: #333;
}

.alert-bell-item:hover { background: #f7f9fc; }

.alert-bell-item.unread { background: #eef4ff; }
.alert-bell-item.unread:hover { background: #e4edfd; }

.alert-bell-item-icon {
    flex: 0 0 auto;
    margin-top: 2px;
    color: #1e3c72;
    font-size: 14px;
}

.alert-bell-item-body { flex: 1 1 auto; min-width: 0; }

.alert-bell-item-title { font-weight: 600; font-size: 13px; margin-bottom: 2px; }

.alert-bell-item-msg {
    font-size: 12px;
    color: #555;
    line-height: 1.4;
    word-wrap: break-word;
}

.alert-bell-item-time { font-size: 11px; color: #9aa2ad; margin-top: 3px; }
