/* Reset some default styles */
body, h1, h2, h3, p, ul, li, a {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    color: inherit;
}

/* Base styles */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #e0e0e0; /* Slightly darker background */
    color: #222; /* Darker text color */
    padding: 0;
    margin: 0;
    padding-top: 60px; /* Adjust this value based on the height of your nav bar */
}

/* Header */
h1, h2 {
    margin-bottom: 20px;
    color: #990000; /* Darker red */
    padding: 10px 0;
}

/* Navigation styles */
nav {
    display: flex;
    justify-content: space-between; /* Distribute items evenly */
    align-items: center;
    padding: 10px 20px; /* Add padding to the left and right */
    /*background: #47474791;*/
    background: #9b9b9b;
    color: #fff;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000; /* Ensure it stays on top of other elements */
    box-sizing: border-box; /* Include padding in the element's total width and height */
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

nav ul li {
    margin: 0 15px;
    position: relative;
}

nav ul li a {
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #990000; /* Darker red */
}

/* Links */
a {
    color: #990000; /* Darker red */
    transition: color 0.3s ease;
}

a:hover {
    color: #660000; /* Even darker red */
}

/* Forms */
form {
    background: #f5f5f5; /* Slightly darker white */
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); /* Darker shadow */
    margin-bottom: 20px;
}

form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

form input[type="text"],
form input[type="password"],
form input[type="date"],
form input[type="file"],
form button,
form select,
form textarea {
    width: 100%;
    max-width: 400px; /* Set a maximum width */
    margin: 0 auto; /* Center the input fields */
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #bbb; /* Darker border */
    border-radius: 5px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2); /* Darker inset shadow */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

form input[type="text"]:focus,
form input[type="password"]:focus,
form input[type="date"]:focus,
form input[type="file"]:focus,
form select:focus,
form textarea:focus {
    border-color: #990000; /* Darker red */
    box-shadow: 0 0 5px rgba(153, 0, 0, 0.5);
}

form button {
    background: #990000; /* Darker red */
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
    width: auto; /* Make button width auto */
    padding: 10px 20px; /* Add padding for better spacing */
    display: inline-block; /* Display inline-block to avoid full width */
    max-width: 200px; /* Set a maximum width */
    margin: 0 auto; /* Center the button */
}

form button:hover {
    background: #660000; /* Even darker red */
}

/* Lists */
ul {
    padding: 0;
    margin: 0;
}

ul li {
    padding: 10px 0;
    border-bottom: 1px solid #bbb; /* Darker border */
}

/* Containers */
.container {
    max-width: 1400px; /* Increased max-width for desktop view */
    margin: auto;
    overflow: hidden;
    padding: 30px 20px;
}

/* Content boxes */
.content-box {
    background: #f5f5f5; /* Slightly darker white */
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); /* Darker shadow */
    margin-bottom: 20px;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background: #990000; /* Darker red */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    width: auto; /* Make button width auto */
}

.button:hover {
    background: #660000; /* Even darker red */
}

/* Header and Content Containers */
.header, .content {
    max-width: 1400px; /* Increased max-width for desktop view */
    margin: 20px auto;
    padding: 20px;
    background: #f5f5f5; /* Slightly darker white */
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); /* Darker shadow */
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    border: 1px solid #bbb; /* Darker border */
    padding: 8px;
    text-align: left;
}

th {
    background-color: #e0e0e0; /* Slightly darker background */
}

.section-bar td {
    text-align: center;
    font-weight: bold;
    cursor: pointer;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #9b3f3f; /* Slightly darker background */
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropbtn {
    /* background-color: #111; */
    color: white;
    padding: 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

#user-info {
    border-bottom: none;
}

.details-grid-container {
    overflow-x: auto; /* Enables horizontal scrolling */
    width: 100%; /* Full width of the container */
    background-color: #e0e0e0; /* Slightly darker background */
    padding: 10px;
    border-radius: 5px;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

/* Style for regulation list items */
.regulation-detail {
    background-color: #e0e0e0; /* Slightly darker background */
    border-left: 5px solid #990000; /* Darker red */
    padding: 10px;
    margin-bottom: 5px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Darker shadow */
}

/* Style for unsatisfied regulation details */
.unsatisfied-detail {
    border-left: 5px solid #FF0000; /* Red color for unsatisfied */
}

/* Style for regulation headers */
.regulation-header {
    font-weight: bold;
    color: #222; /* Darker text color */
}

/* Style for regulation content */
.regulation-content {
    margin-top: 5px;
    font-size: 0.9em;
    color: #444; /* Darker grey */
}

/* Style for important details like status and notes */
.important-detail {
    color: #990000; /* Darker red */
    font-weight: bold;
}

.important-detail.satisfied-important-detail {
    color: #990000; /* Darker red */
}

.important-detail.unsatisfied-important-detail {
    color: red; /* Red */
}

.notification-bubble {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 2px 5px;
    font-size: 0.7em;
}


.notification-overlay a {
    transition: background-color 0.3s ease;
}

.notification-overlay a:hover {
    background-color: #e0e0e0;  /* Slightly darker background on hover */
}

@keyframes breathing {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.notification-link-animate {
    animation: breathing 2s ease-in-out infinite;
}

/* Modal styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.add-card {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3em;
    cursor: pointer;
}

/* Form styling for compliance report */
.compliance-form .form-group {
    margin-bottom: 20px;
}

.compliance-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #222; /* Darker text color */
}

.compliance-form select, .compliance-form textarea, .compliance-form input[type="radio"] {
    width: auto; /* Adjust width for radio buttons */
    padding: 8px;
    border: 1px solid #bbb; /* Darker border */
    border-radius: 4px;
    background-color: #f5f5f5; /* Slightly darker white */
}

.compliance-form label {
    display: inline-block; /* Change to inline-block for labels next to radio buttons */
    margin-right: 10px; /* Space between radio buttons and labels */
}

.compliance-form button {
    background-color: #990000; /* Darker red */
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: auto; /* Make button width auto */
    display: inline-block; /* Display inline-block to avoid full width */
}

.compliance-form button:hover {
    background-color: #660000; /* Even darker red */
}

.compliance-form .regulation {
    background-color: #e0e0e0; /* Slightly darker background */
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.ai-screen {
    background-color: #d0d0d0; /* Darker grey */
    color: #990000; /* Darker red */
    font-family: 'Courier New', monospace;
    padding: 20px;
    border-radius: 5px;
    border: 2px solid #222; /* Darker border */
    white-space: pre-wrap; /* Maintains whitespace formatting */
    overflow-y: auto;
    height: 300px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    nav {
        display: block;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 10px 0;
    }

    .container {
        padding: 20px;
    }

    .content-box {
        padding: 15px;
    }

    .dropdown-content {
        min-width: 100px;
    }

    .notification-bubble {
        top: -5px;
        right: -10px;
    }

    .ai-screen {
        height: 200px; /* Set a fixed height */
        width: 100%; /* Set width to 100% of the container */
        overflow-y: auto; /* Enable vertical scrolling if content overflows */
        box-sizing: border-box; /* Include padding and border in the element's total width */
    }

    .modal-content {
        width: 90%;
    }

    /* Grid adjustments for mobile */
    .details-grid-container {
        display: grid;
        grid-template-columns: 1fr; /* Single column layout */
        gap: 10px; /* Space between grid items */
        width: 100%; /* Full width of the container */
        background-color: rgb(0 0 0 / 0%) !important;
        padding: 10px;
        border-radius: 5px;
    }

    .regulation-detail {
        display: grid;
        grid-template-columns: 1fr; /* Single column layout */
        width: 100%; /* Full width of the container */
        background-color: #e0e0e0; /* Slightly darker background */
        border-left: 5px solid #990000; /* Darker red */
        padding: 10px;
        margin-bottom: 5px;
        border-radius: 5px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Darker shadow */
    }
    .unsatisfied-detail {
        border-left: 5px solid #FF0000; /* Red color for unsatisfied */
    }
    .menu-overlay {
        top: 50px !important;
    }
    .transactions-table, .product-details-table {
        display: block;
        width: 100%;
        overflow-x: auto; /* Enables horizontal scrolling */
    }

    .transactions-table thead, .product-details-table thead {
        display: none; /* Hide table headers */
    }

    .transactions-table tbody tr, .product-details-table tbody tr {
        display: block;
        margin-bottom: 10px;
        border: 1px solid #ddd;
        padding: 5px !important;
        background-color: rgb(0 0 0 / 0%);
        font-size: 12px !important;
    }

    .transactions-table tbody tr td, .product-details-table tbody tr td {
        display: flex;
        justify-content: space-between;
        padding: 2px 5px !important;
    }

    .transactions-table tbody tr td::before, .product-details-table tbody tr td::before {
        content: attr(data-label);
        flex-basis: 50%;
        font-weight: bold;
    }
    .right-nav {
        display: flex;
        justify-content: space-between; /* Distribute items evenly */
        width: 100%;
    }

    .notification-area, .message-area, .user-info {
        display: flex;
        align-items: center;
        margin-left: 0; /* Remove left margin */
    }

    .notification-area ul, .message-area ul {
        display: flex;
        padding: 0;
        margin: 0;
    }

    .notification-area ul li, .message-area ul li {
        margin: 0 10px; /* Add some space between icons */
        list-style: none; /* Remove default list styling */
    }

    .notification-link, .message-link, .user-account {
        margin: 0 10px; /* Add some space between icons */
    }
    .notification-overlay,
    .message-center-overlay {
        width: 215px !important;
    }
    /*.transactions-table tbody tr.transaction-row,
    .transactions-table tbody tr.details {
        display: block !important;
    }*/

    td[colspan]::before {
        content: none !important;
    }

    .inventory-table, .details-table {
        display: block;
        width: 100%;
        overflow-x: auto; /* Enables horizontal scrolling */
    }

    .inventory-table thead, .details-table thead {
        display: none; /* Hide table headers */
    }

    .inventory-table tbody tr, .details-table tbody tr {
        display: block;
        margin-bottom: 10px;
        border: 1px solid #ddd;
        padding: 10px;
        background-color: rgb(0 0 0 / 0%);
    }

    .inventory-table tbody tr td, .details-table tbody tr td {
        display: flex;
        justify-content: space-between;
        padding: 5px 0;
    }

    .inventory-table tbody tr td::before, .details-table tbody tr td::before {
        content: attr(data-label);
        font-weight: bold;
        margin-right: 10px;
    }
}

/* Hamburger menu styles */
.nav-container {
    display: flex;
    justify-content: space-between; /* Distribute items evenly */
    align-items: center;
    width: 100%;
    box-sizing: border-box; /* Include padding in the element's total width and height */
}

.hamburger {
    flex: 0; /* Do not allow this div to grow */
    display: flex;
    justify-content: flex-start; /* Align to the start */
    font-size: 24px; /* Increase font size for better visibility */
    padding: 10px; /* Add padding for better spacing */
    cursor: pointer; /* Ensure it looks clickable */
}

.logo {
    flex: 0 1 200px; /* Allow this div to grow and take available space, but limit its width */
    display: flex;
    justify-content: center; /* Center the logo */
}

.logo img {
    height: 45px; /* Adjust the height as needed */
    max-width: 100%; /* Ensure the logo does not exceed the container width */
}

.right-nav {
    display: flex;
    align-items: center;
    flex: 0; /* Do not allow this div to grow */
}

.notification-area,.message-area, .user-info {
    display: flex;
    align-items: center;
    margin-left: 10px; /* Add some space between notification and user info */
}

.notification-link,.message-link, .user-account {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.notification-link i,.message-link i, .user-account i {
    font-size: 24px; /* Ensure both icons are the same size */
    color: #fff;
}

.menu-overlay {
    height: calc(60% - 50px); /* Adjust height to account for the height of the nav bar */
    width: 0;
    position: fixed;
    z-index: 6;
    top: 50px; /* Position it below the nav bar */
    left: 0;
    /*background-color: #474747;*/
    background-color: #9b9b9b;
    border-right: 1px solid #bbb;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    overflow-x: hidden;
    transition: 0.5s;
    margin-top: 28px; /* Add margin to ensure it does not overlap */
    padding-bottom: 10px;
}

.menu-overlay .overlay-content {
    position: absolute;
    top: 0;
    width: 250px;
    text-align: left;
}

.menu-overlay a {
    padding: 8px;
    text-decoration: none;
    font-size: 20px;
    /*color: #e60707;*/
    color: #c60e0e;
    display: block;
    transition: 0.3s;
}

.menu-overlay a:hover, .menu-overlay a:focus {
    color: #f1f1f1;
}

#session-timer {
    font-size: 0.8em;
    margin-top: 5px;
}

.notification-link a {
    position: relative;
    display: inline-block;
}

.notification-link i {
    font-size: 1.5em;
    color: #fff;
}

.user-account {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.user-account i {
    font-size: 24px;
    color: #fff;
}

.user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    padding: 10px;
    border-radius: 5px;
}

.user-dropdown p {
    margin: 0;
    padding: 5px 0;
    color: #222; /* Darker text color */
}

.user-dropdown a {
    color: #990000; /* Darker red */
    padding: 8px 0;
    text-decoration: none;
    display: block;
}

.user-dropdown a:hover {
    background-color: #e0e0e0; /* Slightly darker background */
}

.session-timer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    z-index: 1000;
}

.session-timer i {
    margin-right: 10px;
    font-size: 20px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 1s ease-in-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.slide-in {
    animation: slideIn 0.5s ease-in-out;
}

@keyframes grow {
    from {
        transform: scale(0.8);
    }
    to {
        transform: scale(1);
    }
}
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.fade-in2 {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.fade-in2.show {
    opacity: 1;
}

.fade-out {
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.fade-out.hide {
    opacity: 0;
}

.grow {
    animation: grow 0.5s ease-in-out;
}

.hamburger.rotate {
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}
.hamburger.rotate-back {
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

/* Card styles */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    grid-auto-flow: dense;
}

.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: box-shadow 0.3s ease, grid-row 0.5s ease-in-out, grid-column 0.5s ease-in-out;
    position: relative;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card h2 {
    margin-top: 0;
}

.card form {
    margin-bottom: 0;
}

.sortable-ghost {
    opacity: 0.4;
}

.resizable {
    position: relative;
}

.collapse-button {
    position: absolute;
    right: 0;
    top: 0;
    background: none;
    border: none;
    cursor: pointer;
}

.date-column, .time-column, .origin-column, .destination-column, .price-column, .actions-column {
    display: table-cell;
}

/* Alternating row colors for the main transactions grid */
.transactions-table tbody tr.transaction-row.odd {
    background-color: #edecec; /* Light grey for odd rows */
}

.transactions-table tbody tr.transaction-row.even {
    background-color: #ffffff; /* White for even rows */
}

/* Distinct color for the product details grid column title row */
.product-details-table thead th {
    background-color: #990000; /* Red background for the header */
    color: white; /* White text color */
}

/* Alternating row colors for the transaction details grid */
.product-details-table tbody tr:nth-child(odd) {
    background-color: #edecec; /* Light grey for odd rows */
}

.product-details-table tbody tr:nth-child(even) {
    background-color: #ffffff; /* White for even rows */
}


    .transactions-table, .product-details-table {
        max-width: 100%;
        border-collapse: collapse;
        overflow-x: auto;
    }

    .transactions-table th, .transactions-table td, .product-details-table th, .product-details-table td {
        border: 1px solid #ddd;
        padding: 5px;
        text-align: left;
        font-size: 12px !important;
    }

    .transactions-table th {
        background-color: #990000;
        color: white;
    }


    .transactions-table tr:hover {
        background-color: #a79d9d !important;
    }

    .transaction-row {
        cursor: pointer;
        position: relative;
    }

    .delete-button {
        background-color: #ff4d4d;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
    }

    .delete-button:hover {
        background-color: #a20707;
    }

    .product-details-table th {
        background-color: #e0e0e0;
    }

/* User List Styles */
.user-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.user-item {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Form Styles */
.user-form, .add-user-form, .delete-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.form-group {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="email"]:focus {
    border-color: #007bff;
}


.notification-overlay, .message-center-overlay {
    display: none;
    position: fixed;
    /*top: 79px !important;*/
    right: 0;
    width: 20%;
    height: calc(60% - 50px);
    /*background: #f5f5f5;*/
    background: #9b9b9b;
    border-left: 1px solid #bbb; /* Darker border */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);  /* Darker shadow */
    overflow: auto;
    z-index: 500;
    padding: 20px;
    /*transition: transform 0.3s ease-out;*/
    /*transform: translateY(-100%);*/
}

.notification-overlay.show, .message-center-overlay.show {
    display: block;
    /*transform: translateY(0);*/
    animation: slideDown 0.5s ease-out;
}

.message-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.message-item {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.message-item .actions {
    position: absolute;
    top: 10px;
    right: 10px;
}

.message-item.urgent {
    background-color: #ffcccc;
}

.message-item.unread {
    font-weight: bold;
}
.notification-link i:hover,
.user-account i:hover,.message-link i:hover {
    color: #990000; /* Darker red */
}

#message-count {
    top: 2px !important;
}
.close-card {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
    color: #aaa;
}

.close-card:hover,
.close-card:focus {
    color: black;
    text-decoration: none;
}
.notification-item.bubble-color-1 {
    background-color: #f0f8ff; /* Light blue */
    border: 1px solid #add8e6; /* Light blue border */
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
}

.notification-item.bubble-color-2 {
    background-color: #e6e6fa; /* Light lavender */
    border: 1px solid #d8bfd8; /* Light lavender border */
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
}

.notification-header {
    background-color: rgba(0, 0, 0, 0.1);
    color: #fff;
    padding: 10px;
    border-bottom: 1px solid #bbb;
    text-align: center;
    margin-bottom: 20px;
}

.notification-header h2 {
    margin: 0;
    font-size: 1.5em;
    padding: 0 !important;
}

.message-header {
    background-color: rgba(0, 0, 0, 0.1);
    color: #fff;
    padding: 10px;
    border-bottom: 1px solid #bbb;
    text-align: center;
    margin-bottom: 20px;
}

.message-header h2 {
    margin: 0;
    font-size: 1.5em;
    padding: 0 !important;
}
/* Add styles for tabs and collapsible sections */
.nav-tabs .nav-link {
    color: #495057;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-bottom-color: transparent;
}

.nav-tabs .nav-link.active {
    color: #495057;
    background-color: #e9ecef;
    border-color: #dee2e6 #dee2e6 #fff;
}

.tab-content > .tab-pane {
    display: none;
}

.tab-content > .active {
    display: block;
}
.rotate-card {
    position: absolute;
    top: 10px;
    left: 10px;
    cursor: pointer;
    font-size: 20px;
}

.card.rotated {
    transform: rotate(90deg);
    transform-origin: center center;
    grid-row: span 2;
    grid-column: span 2;
}

.card-content {
    transform: rotate(0deg);
    transition: transform 0.5s ease-in-out;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card.rotated .card-content {
    transform: rotate(-90deg);
}

.transaction-row::after {
    content: "Click to view details";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    color: #fff;
    background-color: #333;
    padding: 5px 10px;
    border-radius: 5px;
    display: none;
    white-space: nowrap;
    z-index: 1;
}

.transaction-row:hover::after {
    display: block;
}
.transaction-settings {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #ddd;
    margin-top: 20px;
}

.company-transactions {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #ddd;
    margin-top: 20px;
}

.transactions-grid2 {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #ddd;
    margin-top: 20px;
}

.upload-form .form-group {
    margin-bottom: 15px;
}

.upload-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.upload-form .form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.move-card {
    position: absolute;
    top: 10px;
    left: 40px; /* Adjust as needed */
    cursor: move;
    font-size: 20px;
    color: #aaa;
    z-index: 5;

}

.move-card:hover,
.move-card:focus {
    color: black;
    text-decoration: none;
}

/* Add this to your CSS file */

/* Background color for the table container */
.table-container {
    background-color: #f9f9f9; /* Light grey background */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Table styles */
.inventory-table, .details-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.inventory-table th, .inventory-table td, .details-table th, .details-table td {
    border: 1px solid #ddd;
    padding: 8px;
}

.inventory-table th, .details-table th {
    background-color: #990000;
    text-align: left;
    color: white;
}

/* Hover effects */
.inventory-row:hover {
    background-color: #f1f1f1;
    cursor: pointer;
}

/* Tooltip */
.inventory-row::after {
    content: "Click to view details";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    color: #fff;
    background-color: #333;
    padding: 5px 10px;
    border-radius: 5px;
    display: none;
    white-space: nowrap;
    z-index: 1;
}

.inventory-row:hover::after {
    display: block;
}

/* Alternating row colors for the details table */
.details-table tbody tr:nth-child(odd) {
    background-color: #edecec; /* Light grey for odd rows */
}

.details-table tbody tr:nth-child(even) {
    background-color: #ffffff; /* White for even rows */
}
.highlighted-row {
    background-color: #497193;
    color: white;
}
.shipped-date-button {
    cursor: pointer;
}
.shipped-date-button:hover {
    background-color: #990000;
    color: white;
}
.shipped-date-button:disabled {
    background-color: #28a745; /* Green background for disabled shipped date state */
    cursor: not-allowed;
}
.download-pdf-button {
    cursor: pointer;
}
.download-pdf-button:hover {
    background-color: #990000;
    color: white;
}
.void-transaction-button {
    cursor: pointer;
}
.void-transaction-button:hover {
    background-color: #990000;
    color: white;
}
.history-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 1px solid #ccc;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.history-content {
    text-align: center;
}

.history-graph {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.history-box {
    padding: 10px;
    border: 1px solid #ccc;
    margin: 0 5px;
    background-color: #f9f9f9;
}

.arrow {
    font-size: 24px;
    margin: 0 5px;
}
.arrow-down {
    text-align: center;
    font-size: 1.5em;
    margin: 5px 0;
}
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 5px;
    justify-content: center;
}

.page-item {
    display: inline;
}

.page-link {
    display: block;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #007bff;
    text-decoration: none;
    transition: background-color 0.2s;
}

.page-link:hover {
    background-color: #e2e6ea;
}

.page-item.active .page-link {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #f8f9fa;
}

@keyframes shine {
    0% {
        background-position: -100px;
    }
    100% {
        background-position: 200px;
    }
}

.shine-effect {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.shine-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    background-size: 200px 100%;
    animation: shine 2s infinite;
}

.recommendations-box {
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    margin-top: 20px;
    max-width: 500px;
    max-height: 200px;
    overflow-y: auto;
}

.recommendations-box ul li {
    padding: none !important;
    border: none !important;
}

.hidden {
    display: none;
}
.logged-in-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 14px;
    border: 2px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    max-width: fit-content;
}
