:root {
    /* Theme Colors */
    --primary-color: #4CAF50;
    --primary-hover: #388E3C;
    --primary-light: #A5D6A7;
    --primary-dark: #2E7D32;
    --primary-color-rgb: 76, 175, 80;
    --sublime-green-gradient: linear-gradient(135deg, #6abf4b, #589d4e, #548d54, #3a6b44, #225d38);

    /* Secondary Colors */
    --secondary-color: #4a90e2;
    --secondary-hover: #357abd;
    --secondary-light: #7eb1eb;
    --secondary-dark: #2d5c8f;

    /* Tertiary Colors */
    --tertiary-color: #6c757d;
    --tertiary-hover: #5a6268;
    --tertiary-light: #9aa0a5;
    --tertiary-dark: #4a4f53;

    /* Sidebar Colors */
    --sidebar-bg: #2E7D32;
    /* 0A2342 */
    /* 2c3e50 */
    --sidebar-text: #ffffff;
    --sidebar-text-hover: #66BB6A;
    --sidebar-hover: rgba(255, 255, 255, 0.1);
    --sidebar-header-bg: rgba(0, 0, 0, 0.2);
    --sidebar-selected: #4CAF50;
    --sidebar-collapse-btn: #0b760e;

    /* Background Colors */
    --body-background: #e3fff2;
    --card-background: #F1FFFA;
    --card-bg: #F1FFFA;
    --navbar-background: #4CAF50;
    --navbar-link: #ffffff;
    --navbar-link-hover: #06BA63;
    --report-box-background: #e8f5e9;
    --input-background: #ffffff;
    --input-bg: #ffffff;

    /* Text Colors */
    --text-color: #000000;
    --text-light: #6c757d;
    --text-white: #ffffff;
    --text-dark: #0A2342;
    --text-link: #1976D2;

    /* Border Colors */
    --border-color: #ddd;
    --border-color-dark: #202020;

    /* Button Colors */
    --button-color: #007bff;
    --button-hover: #0056b3;
    --button-light: #b3acf2;
    --button-dark: #0056b3;
    --button-secondary: #7a7b7d;
    --button-secondary-hover: #5a5b5d;

    --button-sublime-primary: #0c971f;
    --button-sublime-primary-hover: #0a7f18;
    --button-sublime-text: #ffffff;

    /* Hover States */
    --hover-background: #e0f2f1;

    --notification-alert: #ffc107;
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --primary-color: #66BB6A;
    --primary-hover: #388E3C;
    --primary-light: #81C784;
    --primary-dark: #388E3C;
    --primary-color-rgb: 102, 187, 106;

    --body-background: #1a1a1a;
    --card-background: #2d2d2d;
    --card-bg: #2d2d2d;
    --sidebar-bg: #2c3e50;
    --sidebar-text: #ffffff;
    --sidebar-hover: rgba(255, 255, 255, 0.1);
    --sidebar-header-bg: rgba(0, 0, 0, 0.2);
    --report-box-background: #333333;
    --input-background: #2d2d2d;
    --input-bg: #2d2d2d;

    --text-color: #f5f5f5;
    --text-light: #a0a0a0;
    --text-white: #ffffff;

    --border-color: #404040;

    --hover-background: #333;

    --secondary-color: #5a9ee6;
    --secondary-hover: #4a90e2;
    --secondary-light: #7eb1eb;
    --secondary-dark: #357abd;

    --tertiary-color: #7a838a;
    --tertiary-hover: #6c757d;
    --tertiary-light: #9aa0a5;
    --tertiary-dark: #5a6268;
}

/* Base Layout */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--body-background);
    color: var(--text-color);
    -webkit-text-size-adjust: 100%;
}

/* Notification bell ring */
@keyframes bounceRing {
    0% {
        transform: rotate(0deg) translateY(0);
    }

    10% {
        transform: rotate(20deg) translateY(-2px);
    }

    20% {
        transform: rotate(-20deg) translateY(-4px);
    }

    30% {
        transform: rotate(15deg) translateY(-6px);
    }

    40% {
        transform: rotate(-15deg) translateY(-4px);
    }

    50% {
        transform: rotate(10deg) translateY(-2px);
    }

    60% {
        transform: rotate(-10deg) translateY(-1px);
    }

    70% {
        transform: rotate(5deg) translateY(0);
    }

    100% {
        transform: rotate(0deg) translateY(0);
    }
}

.bell-bounce-ring {
    animation: bounceRing 1.8s ease-in-out infinite;
    display: inline-block;
    transform-origin: center top;
}

/* Custom Radio Buttons */
.form-check {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.form-check-input[type="radio"] {
    width: 1rem;
    height: 1rem;
    margin-top: 0.25rem;
    margin-right: 0.5rem;
    border: 1px solid var(--primary-color);
    cursor: pointer;
}

.form-check-input[type="radio"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    font-size: 0.9rem;
    cursor: pointer;
    margin-bottom: 0;
}

/* Main Layout */
main {
    flex: 1;
    margin-top: 50px;
}

.wrapper {
    display: flex;
    min-height: calc(100vh - 50px);
    position: relative;
    margin-top: 0.5rem;
}

/* Navbar */
.navbar {
    background: var(--sublime-green-gradient);
    height: 50px;
    padding: 0 1rem;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1040;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    color: white !important;
    padding: 0;
}

.navbar-brand img {
    height: 35px;
    margin-right: 10px;
}

/* User and Notification Styles */
.notifications-dropdown .nav-link,
.nav-item .dropdown .nav-link {
    color: var(--navbar-link) !important;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-name,
.support-label {
    display: inline-block;
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--text-white);
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.navbar .dropdown-toggle::after {
    color: var(--text-white);
}

.navbar .dropdown-menu {
    position: absolute;
    right: 0;
    left: auto;
    top: 100%;
    margin-top: 0.5rem;
    background: white;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar .dropdown-item {
    color: var(--text-color);
}

.navbar .dropdown-item:hover {
    background-color: var(--hover-background);
}

.navbar .navbar-nav {
    color: var(--navbar-link);
}

/* Sidebar Container */
.sidebar-container {
    position: relative;
    height: 100%;
    width: 250px;
    flex-shrink: 0;
}

/* Sidebar Base */
.sidebar {
    width: 250px;
    min-width: 250px;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    height: 100vh;
    max-height: calc(100vh - 50px);
    position: fixed;
    left: 0;
    top: 50px;
    z-index: 1040;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transform: translateX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
    padding: 15px;
    background: var(--sidebar-header-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.sidebar-header h3 {
    color: var(--sidebar-text);
    margin: 0;
    font-size: 1.2rem;
}

.sidebar .nav {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 0 20px 0;
    margin: 0;
    height: auto;
    display: flex;
    flex-direction: row;
    /* Added to set a max height for child items */
}

.sidebar .nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar .nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar .nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.sidebar .nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.sidebar .nav-link {
    color: var(--sidebar-text);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s ease;
}

.sidebar .nav-link:hover {
    background: var(--sidebar-hover);
    text-decoration: none;
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
}

.sidebar .nav-link i:hover {
    color: var(--sidebar-text-hover);
}

.sidebar .nav-link.active {
    background: var(--sidebar-selected);
    font-weight: bold;
}

/* Sidebar Toggle Button */
.sidebar-toggle-btn {
    position: absolute !important;
    width: 24px !important;
    height: 24px !important;
    background-color: var(--sidebar-collapse-btn) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: var(--text-white) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    z-index: 1041 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 0 !important;
    transition: all 0.2s ease !important;
    min-width: unset !important;
    min-height: unset !important;
    line-height: 1 !important;
    right: -2rem !important;
    top: 76px !important;
}

.sidebar-toggle-btn i {
    font-size: 12px !important;
    line-height: 1 !important;
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Content Area */
.content {
    margin-left: 250px;
    padding: 2rem;
    min-height: calc(100vh - 50px);
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: calc(100% - 250px);
    padding: 0.5rem;
    position: relative;
}

.content.active {
    margin-left: 0;
    width: 100%;
}

.content.no-sidebar {
    margin-left: 0;
    width: 100%;
}

/* Messages */
.messages {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    width: 90%;
    max-width: 600px;
}

.alert {
    margin-bottom: 1rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.alert-permanent {
    animation: none !important;
    opacity: 1 !important;
}

.alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

.alert-warning {
    color: #664d03;
    background-color: #fff3cd;
    border-color: #ffecb5;
}

.alert-info {
    color: #055160;
    background-color: #cff4fc;
    border-color: #b6effb;
}

.alert i {
    font-size: 1.1rem;
}

.btn-close {
    opacity: 0.5;
    transition: opacity 0.2s;
}

.btn-close:hover {
    opacity: 1;
}

/* Card Styles */
.card {
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 0.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    width: 100%;
}

.home-card {
    text-align: center;
    width: 300px;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Card Container */
.card-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Notifications Dropdown */
.notifications-dropdown .dropdown-menu {
    padding: 0;
    min-width: 280px;
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
    right: -10px !important;
}

.notifications-dropdown .dropdown-header {
    background-color: var(--notification-alert);
    color: #000;
    padding: 1rem;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.notifications-dropdown .mark-all-read {
    background: transparent;
    border: none;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    color: #000;
    cursor: pointer;
}

.notifications-dropdown .mark-all-read:hover {
    text-decoration: underline;
}

.notifications-dropdown .dropdown-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    white-space: normal;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notifications-dropdown .dropdown-item:last-child {
    border-bottom: none;
}

.notifications-dropdown .notification-message {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--text-color);
    margin: 0;
}

.notifications-dropdown .notification-dot {
    color: var(--primary-color);
    font-size: 0.5rem;
    margin-top: 0.5rem;
}

.notifications-dropdown .notification-time {
    color: var(--text-light);
    font-size: 0.875rem;
}

.notifications-dropdown .notification-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.notifications-dropdown .btn-notification {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.notifications-dropdown .btn-notification i {
    font-size: 0.875rem;
}

.notifications-dropdown .dropdown-footer {
    padding: 0.75rem;
    text-align: center;
    background-color: var(--card-background);
    border-top: 1px solid var(--border-color);
}

.notifications-dropdown .dropdown-footer a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

.notifications-dropdown .dropdown-footer a:hover {
    text-decoration: underline;
}

/* Common Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Schedule List Styles */
.schedule-list {
    padding: 20px;
}

.schedule-list .card {
    background: var(--card-background);
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.schedule-list .card-header {
    background: var(--card-background);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
}

.schedule-list .table {
    margin-bottom: 0;
}

.schedule-list .table th {
    border-top: none;
    font-weight: 600;
    color: var(--text-color);
}

.schedule-list .table td {
    vertical-align: middle;
    color: var(--text-color);
}

/* Button Styles */
.btn {
    display: inline-flex;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-weight: 500;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    transition: all 0.2s ease-in-out;
}

/* Override Bootstrap button group styles */
.btn-group,
.btn-group-vertical {
    display: inline-block !important;
}

/* Primary Button - For create/add actions */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: var(--text-white);
}

/* Secondary Button - For view/manage actions */
.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-white);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    border-color: var(--secondary-hover);
    color: var(--text-white);
}

/* Tertiary Button - For template/workflow actions */
.btn-tertiary {
    background-color: var(--tertiary-color);
    border-color: var(--tertiary-color);
    color: var(--text-white);
}

.btn-tertiary:hover {
    background-color: var(--tertiary-hover);
    border-color: var(--tertiary-hover);
    color: var(--text-white);
}

/* Remove old dashboard-specific button styles */
.dashboard-action-primary,
.dashboard-action-secondary,
.dashboard-action-tertiary,
.task-action-primary,
.task-action-secondary,
.task-action-tertiary {
    /* These classes will be removed in favor of btn-primary, btn-secondary, btn-tertiary */
    display: none;
}

/* Badge Styles */
.badge {
    padding: 0.35em 0.65em;
    font-size: 0.875em;
    font-weight: 600;
}

.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

.badge.bg-info {
    background-color: #17a2b8 !important;
}

/* Form Styles */
.form-select {
    background-color: var(--input-background);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-color-rgb), 0.25);
}

/* Container Styles */
.container-fluid {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}

/* Schedule Form Styles */
.schedule-form .card {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: none;
}

.schedule-form .form-group {
    margin-bottom: 1.5rem;
}

.schedule-form label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.schedule-form .form-control {
    background-color: var(--input-background);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.schedule-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-color-rgb), 0.25);
}

.schedule-form .form-text {
    color: var(--text-light);
}

.schedule-form .btn {
    padding: 0.5rem 1rem;
    font-weight: 500;
}

/* Schedule Delete Styles */
.schedule-delete .alert {
    border-radius: 4px;
    padding: 1rem;
}

.schedule-delete .alert i {
    margin-right: 0.5rem;
}

.schedule-delete dl {
    margin-top: 1.5rem;
}

.schedule-delete dt {
    font-weight: 600;
    color: var(--text-color);
}

.schedule-delete dd {
    color: var(--text-color);
}

/* Transitions */
.fade-enter {
    opacity: 0;
}

.fade-enter-active {
    opacity: 1;
    transition: opacity 300ms ease-in;
}

.fade-exit {
    opacity: 1;
}

.fade-exit-active {
    opacity: 0;
    transition: opacity 300ms ease-in;
}

/* Card Styles */
.card-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: 2rem;
}

/* Sidebar Overlay - Base Style */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1039;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* Navbar Styles */
.navbar .navbar-nav .nav-link,
.navbar .dropdown-toggle,
.navbar-nav .nav-item>a {
    color: var(--navbar-link) !important;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .dropdown-toggle:hover,
.navbar-nav .nav-item>a:hover {
    color: var(--navbar-link-hover) !important;
    opacity: 0.9;
}


/* Ensure dropdowns don't get cut off */
.sidebar .collapse {
    max-height: none;
}

.sidebar .nav-item {
    width: 100%;
}

.sidebar .nav-link {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Table Styles */
.table-scroll {
    overflow-x: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
}

.table td, .table th {
    padding: 0.75rem;
    vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.btn-group {
    display: flex;
    gap: 0.25rem;
}

.btn-group .btn {
    padding: 0.25rem 0.5rem;
}

.badge {
    padding: 0.4em 0.6em;
    font-size: 0.75em;
}

/* Desktop Styles */
@media (min-width: 769px) {
    .sidebar.active {
        transform: translateX(-250px);
    }

    .content.active {
        margin-left: 0;
        width: 100%;
    }

    .sidebar-toggle-btn {
        position: fixed !important;
        width: 24px !important;
        height: 24px !important;
        background-color: var(--sidebar-collapse-btn) !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        color: var(--text-white) !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
        z-index: 1041 !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        padding: 0 !important;
        transition: all 0.2s ease !important;
        min-width: unset !important;
        min-height: unset !important;
        line-height: 1 !important;
        right: -2rem !important;
        top: 76px !important;
    }

    .sidebar-toggle-btn i {
        font-size: 12px !important;
        line-height: 1 !important;
        color: white !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .sidebar-toggle-btn:hover {
        transform: scale(1.1) !important;
        background-color: var(--sidebar-collapse-btn) !important;
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
    }

    .sidebar-overlay {
        display: none !important;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .content {
        margin: 0 !important;
        width: 100% !important;
    }

    .container-fluid {
        padding-right: 0.5rem;
        padding-left: 0.5rem;
    }

    .navbar {
        padding: 0 0.5rem;
    }

    .navbar-brand img {
        height: 30px;
        margin-right: 5px;
    }

    .nav-item.no-dropdown {
        padding-right: 0.5rem !important;
    }

    .user-name,
    .support-label {
        display: none;
    }

    .sidebar {
        transform: translateX(-100%);
        background-color: rgba(46, 125, 50, 0.95);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .table-scroll {
        border: none !important;
        overflow-x: visible !important;
    }

    .table,
    .table thead,
    .table tbody,
    .table tr,
    .table th,
    .table td,
    .inventory-table,
    .inventory-table thead,
    .inventory-table tbody,
    .inventory-table tr,
    .inventory-table th,
    .inventory-table td {
        display: block !important;
        width: 100% !important;
    }

    .table thead,
    .inventory-table thead {
        display: none !important;
    }

    .table tbody tr {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 1rem !important;
        border-bottom: 1px solid #dee2e6 !important;
        background-color: #fff !important;
        margin-bottom: 1rem !important;
    }

    .table tbody td {
        width: 100% !important;
        padding: 0.75rem 0.5rem !important;
        border: none !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.5rem !important;
    }

    .table tbody td::before {
        content: attr(data-label) !important;
        font-weight: bold !important;
        color: #666 !important;
    }

    .table tbody td.table-actions {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .table tbody td.table-actions::before {
        margin-bottom: 0.5rem !important;
        text-align: center !important;
    }

    .table tbody td.table-actions .btn-group {
        display: flex !important;
        gap: 0.5rem !important;
    }

    .table tbody td.table-actions .btn {
        flex: 1 !important;
    }

    .table thead {
        display: none !important;
    }

    .table tbody td.text-wrap,
    .inventory-table tbody td.text-wrap {
        display: block !important;
        white-space: normal !important;
        text-align: left !important;
    }

    .table tbody td.text-wrap::before,
    .inventory-table tbody td.text-wrap::before {
        display: block !important;
        margin-bottom: 0.5rem !important;
        width: 100% !important;
    }

    .table tbody td.table-actions {
        flex-direction: column !important;
    }

    .table tbody td.table-actions::before {
        margin-bottom: 0.5rem !important;
    }

    .table-stats {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 1rem !important;
        gap: 0.5rem !important;
    }

    .table-stats p {
        border-right: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    td .btn-group {
        display: flex !important;
        width: 100% !important;
    }

    td .btn-group .btn {
        flex: 1 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 0.5rem !important;
    }

    td .btn-group .btn i {
        margin: 0 !important;
    }

    .table-scroll {
        height: calc(100vh - 300px) !important;
        overflow-y: auto !important;
        margin-bottom: 1rem !important;
    }

    .table-footer {
        margin-top: auto !important;
        padding: 1rem !important;
        background: white !important;
        border-top: 1px solid #dee2e6 !important;
    }

    #listContainer {
        display: flex !important;
        flex-direction: column !important;
        min-height: calc(100vh - 200px) !important;
    }

    .table-stats {
        padding: 1rem !important;
        background: white !important;
        border-bottom: 1px solid #dee2e6 !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 1 !important;
    }

    td .btn-group {
        display: flex !important;
        width: 100% !important;
    }

    td .btn-group .btn {
        flex: 1 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 0.5rem !important;
    }

    td .btn-group .btn i {
        margin: 0 !important;
    }
}

@media (max-width: 420px) {
    .navbar-brand span {
        display: none !important;
    }
}