﻿/* PAGE LAYOUT CONTAINER */

body {
    font-size: 0.75rem !important;
    line-height: 1.2rem !important;
}

th{
    text-align: center !important;
}
/*
table {
    max-width: 95% !important;
}*/

.custom-bullets {
    list-style-type: none; /* Removes default bullet */
    padding: 0;
}

    .custom-bullets li {
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 600;
    }

        .custom-bullets li i {
            color: #007bff; /* Customize the icon color */
            font-size: 0.8rem; /* Adjust icon size */
        }


.custom-file-upload {
    position: relative;
    display: inline-block;
}

.attach-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    font-size: 14px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 8px;
}

    .attach-button i {
        font-size: 16px;
    }

    .attach-button:hover {
        background-color: #0056b3;
        transform: scale(1.05);
    }

    .attach-button:active {
        background-color: #003d80;
        transform: scale(1);
    }


.page {
    display: flex;
    flex-direction: column !important;
    height: 100vh;
    margin: 0;
    background-color: #ffffff;
    font-family: Calibri,'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.language-buttons {
    display: flex;
    gap: 8px;
}

.language-icon {
    border: none;
    background: none;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.5;
}

    .language-icon img {
        width: 24px;
        height: 24px;
    }

    .language-icon.selected {
        transform: scale(1.2);
        opacity: 1;
    }

    .language-icon:hover {
        opacity: 0.8;
    }

/* Ribbon Bar Styles */
.ribbon-bar {
    display: flex;
    align-items: center;
    padding: 3px 5px;
    background: linear-gradient(to right, #daf8dc, #ffffff);
    color: white;
    border-radius: 8px;
    margin-bottom: 5px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

.ribbon-button-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.75rem;
    width: max-content;
    padding: 2px 6px;
    background-color: #198754;
    color: white;
    border: none;
    border-radius: 5px;
    margin-right: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
    border: 1px solid #ddbf6694;
    line-height: 1.2rem;
}

.grid-button {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    padding: 2px 6px;
    background-color: #198754;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
    border: 1px solid #ddbf6694;
}

.ribbon-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.75rem;
    padding: 2px 6px;
    background-color: #198754;
    color: white;
    border: none;
    border-radius: 5px;
    margin-right: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
    border: 1px solid #ddbf6694;
    line-height:1.2rem;
}

    .ribbon-button:hover {
        background-color: #055342;
    }

    .ribbon-button i {
        font-size: 0.75rem;
    }


/* TOP BAR ~50px, GRADIENT FROM LIGHT GREEN TO WHITE */
.top-bar {
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to right, #aee1cd, #ffffff);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0rem 0.5rem 0rem 0.5rem;
    border-bottom: 1px solid darkseagreen;
}

/* TITLE IN TOP BAR */
.top-bar-title {
    font-weight: 600;
    font-size: 1rem;
    color: #055342; /* darker green */
    margin: 0;
}

/* RIGHT SECTION (HELLO USER/LOGOUT) */
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* SIDEBAR + MAIN CONTENT WRAPPER */
.content-wrapper {
    display: flex;
    flex: 1 1 auto;
    overflow: hidden;
}

.burger-icon {
    display: none;
    font-size: 21px;
    background: none;
    border: none;
    cursor: pointer;
    margin-bottom: 5px;
}



/* SIDEBAR: GRADIENT FROM LIGHT GRAY TO WHITE, BOLDER TEXT */
.side-nav {
    flex: 0 0 170px;
    background: linear-gradient(to bottom, #ffffff, #aee1cd) !important;
    border-right: 1px solid darkseagreen;
    display: flex;
    flex-direction: column !important; /* so we can pin the footer at bottom */
    transition: transform 0.4s ease-in-out;
    transform: translateX(0) translateY(0);
}

    .side-nav.hidden {
        flex: 0 0 24px;
        transform: translate(0px,0px);
        /*border-right: 2px solid #aee1cd;*/
    }

        .side-nav.hidden > .side-nav-content {
            display: none;
        }

        .side-nav.hidden > .side-nav-footer {
            display: none;
        }

        .side-nav.hidden > .toggle-menu-btn {
            left: 1px;
        }


/* SIDEBAR CONTENT AREA */
.side-nav-content {
    flex: 1 1 auto;
    padding: 0 0; /*1rem;*/
    overflow-y: auto;
}

.nav-item:first-of-type[b-m4wnldoyc5],
.nav-item:first-of-type[b-dr2jhhij3z] {
    padding-top: 0;
}

@media (min-width: 641px) {
    .collapse {
        display: none !important; /* Force Bootstrap to control visibility */
    }

        .collapse.show {
            display: block !important; /* Allow Bootstrap to properly expand it */
        }
}


/* SIDEBAR LINKS: bolder, more visible */
.side-nav .nav-link {
    display: block;
    align-items: center;
    font-weight: 600;
    font-size: 0.75rem;
    color: white !important;
    /*margin: 0 0.2rem 0 0.2rem;*/
    padding: 0.2rem 0.2rem 0.2rem 0.5rem;
    text-decoration: none;
    border-radius: 0px;
    background-color: #198754 !important;
    background-color: #5cb265 !important;
    line-height: normal !important;
    height: auto !important;
    min-height: 1.8rem;
    border-bottom: 1px solid white;
    border-radius: 0px !important;
}

    .side-nav .nav-link:hover,
    .side-nav .nav-link.active {
        background-color: #198754 !important; /* highlight */
        color: white !important;
    }

/* SIDEBAR FOOTER (PINNED AT BOTTOM) */
.side-nav-footer {
    flex: 0 0 auto;
    padding: 0.4rem;
    background-color: white !important;
    text-align: center;
    font-weight: 600;
    color: #0f923d;
    font-size: 0.7rem !important;
    border-top: 1px solid darkseagreen;
}

/* MAIN CONTENT AREA */
.main-content {
    flex: 1 1 auto;
    padding: 0.4rem;
    padding-top: 0.3rem;
    overflow-y: auto;
    background-color: white;
}

/* VIEWER PLACEHOLDER */
.viewer-container {
    border: 2px dashed #ccc;
    padding: 1rem;
    margin-top: 1rem;
    background-color: #fafafa;
}

@media (max-width: 1024px) {
    table {
        max-width: 100% !important;
    }
}

/* RESPONSIVE: SMALL VIEWPORTS => Smaller side nav + smaller fonts, etc. */
@media screen and (max-width: 768px) {
    body {
        font-size: 0.65rem !important;
    }

    table {
        max-width: 100%;
    }

    .ribbon-bar {
        flex-wrap: wrap;
        justify-content: center;
        font-size: 0.65rem !important;
        min-width: 504px;
        padding: 5px 0px;
    }

    .ribbon-button {
        margin-bottom: 3px;
    }

    .content-wrapper {
        flex-direction: column;
    }

    .side-nav.hidden {
        transform: translate(-1000px,-1000px); /* Slide out */
        display: none !important;
    }

    .burger-icon {
        display: inline-block;
        position: absolute;
        top: 50px;
    }

        .burger-icon.hidden {
            position: relative !important;
            top: -7px;
        }
    /* .side-nav {
        flex: 0 0 auto;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #d1e0d1;
    }*/

    .side-nav-content {
        padding: 0.1rem;
        margin-top: -3px;
        margin-left: 35px;
        margin-right: 5px;
    }

    .side-nav .nav-link {
        font-size: 0.75rem;
        /*        margin: 0.25rem 0;*/
        /*padding: 0.4rem;*/
    }

    .top-bar {
        flex: 0 0 auto; /* slightly smaller top bar height */
        padding: 0 0.2rem;
    }

    .top-bar-title {
        font-size: 0.75rem;
    }

    .side-nav-footer {
        display: none;
    }
}

.modern-product-grid tbody tr:hover {
    background-color: #f9fafb; /* light highlight on hover */
}

.modern-product-grid td {
    vertical-align: middle;
}

.side-nav .nav-item {
    padding-bottom: 0 !important;
}

.btn-group-sm > .btn, .btn-sm {
    padding: .1rem .5rem !important;
}

.btn {
    padding: .1rem .2rem !important;
    font-size: 0.75rem;
    line-height: normal
}

.btn:focus,.btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.05rem green, 0 0 0 0.1rem darkseagreen;
}

.btn-primary {
    background-color: #5cb265;
    border-color: #5cb265;
}

    .btn-primary:hover {
        background-color: #208d2b;
        border-color: #5cb265;
    }

.btn-icon {
    font-size: 0.75rem;
    font-weight: bold;
    color: #5cb265;
}

.btn-outline-primary {
    color: #198754 !important;
    border-color: #52f3a9 !important;
}

.btn-info {
    color: #000;
    background-color: #91e7bf !important;
    border-color: #0f5132 !important;
}

    .btn-info:hover {
        color: #fff !important;
        background-color: #198754 !important;
        border-color: #198754 !important;
    }

.table > :not(caption) > * > * {
    padding: 0rem 0.2rem;
}

th {
    background-color: #91e7bf !important;
    align-items: center;
    vertical-align: middle !important;
}

.row {
    --bs-gutter-x: 0 !important;
}

p {
    margin-bottom: 0.2rem !important;
}

/* Modal Overlay */
/*.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);*/ /* Semi-transparent background */
/*display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;*/ /* Ensure it's above other elements */
/*}*/

/* Modal Content */
/*.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 300px;*/ /* Adjust width */
/*text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}*/

.modal-content {
    border-width:0px;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-button {
    padding: 10px 20px;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .tab-button:hover {
        background-color: #0056b3;
    }

.tab-content {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.products-panel {
    /*margin-top: 10px;*/
    height: 100%;
}

/* Main container that occupies full width & height */
.tabbed-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%; /*calc(100% - 5px); fill parent height if possible */
    box-sizing: border-box;
    /* Optional padding or margin if needed */
}

/* TAB HEADERS */
.tabs-header {
    display: flex;
    flex-wrap: wrap; /* so tabs wrap if space is narrow */
    /*background: linear-gradient(to right, #aee1cd, #ffffff);
    border-bottom: 2px solid #ccc;*/ /* visually connect to content */
}

/* Individual tab buttons */
.tab-link {
    background-color: #198754;
    background-color: #5cb265;
    border: 1px solid #c8f4df;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    margin: 0 0.06rem 0 0rem;
    padding: 0.2rem 1rem;
    border-bottom: 2px solid #198754;
    font-weight: 600;
    color: white;
    transition: background-color 0.3s ease;
}

    /* Hover state */
    .tab-link:hover {
        background-color: #d6f5e0;
        background-color: #198754;
        color: #033f2f;
    }

    /* Active tab styling: visually attached to the content area */
    .tab-link.active {
        background-color: #88d9b5;
        background-color: #198754;
        color: #033f2f;
        color: white;
        /* font-weight: 600; */
        border-bottom: 2px solid #4aff63;
    }

/* TAB CONTENT */
.tab-content-container {
    flex: 1 1 auto;
    border: 1px solid #def9ec;
    border-radius: 0 6px 6px 6px;
    border-top-left-radius: 0;
    background-color: #ffffff;
    padding: 0.3rem;
    overflow-y: auto;
    overflow-x: hidden;
    flex-wrap: wrap;
    background-color: #e5fff3;
    background: linear-gradient(to left, #daf8dcb5, #ffffff);
    height: 100%;
}

/* TAB CONTENT */
.tab-products-container {
    flex: 1 1 auto;
    /*border: 1px solid #def9ec;
    border-radius: 6px;*/
    background-color: transparent;
    border-radius: 8px;
    overflow-y: auto;
    overflow-x: hidden;
    overflow:hidden;
    flex-wrap: wrap;
    height: 100%;
    /*background-color: #e5fff3;
    background: linear-gradient(to right, #ffffff, #ffffff);*/
}

/* Example tab panel styling */
.tab-panel h4 {
    margin-top: 0;
    color: #055342;
}

.tab-panel {
    height: 100%;
}

/* Responsive layout tweaks */
@media (max-width: 768px) {
    .tabs-header {
        flex-direction: column;
        border-bottom: none; /* optional, adjust as needed */
    }

    .tab-link {
        margin: 0.25rem 0;
        border-radius: 8px; /* simpler round if stacked */
    }

        .tab-link.active {
            border-bottom: 1px solid #88d9b5; /* might adjust for stacked look */
        }

    .tab-content-container {
        margin-top: 0.5rem;
    }
}


.carousel-container {
    width: 100%;
    /*max-width: 800px;*/
    margin: 0 auto;
    text-align: center;
}

.carousel-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

button:hover {
    background-color: #005a9e;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}


.modern-carousel {
    position: relative;
    width: 100%;
    /*max-width: 900px;*/
    height: 100%;
    margin: 0 auto;
    background-color: transparent;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    /* border: 1px solid transparent;
    border-radius: 10px;*/
}

.viewer {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    background: transparent;
    border-radius: 8px;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

.carousel-button {
    position: absolute;
    top: 15px;
    transform: translateY(-50%);
    background: linear-gradient(145deg, #ffffff, #198754);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2), -5px -5px 15px rgba(255, 255, 255, 0.7);
    border: none;
    color: #333;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    transition: all 0.3s ease;
}

    .carousel-button:hover {
        background: linear-gradient(145deg, #f0f0f0, #d6d6d6);
        box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3), -3px -3px 10px rgba(255, 255, 255, 0.6);
        transform: translateY(-50%) scale(1.1);
    }

    .carousel-button:disabled {
        background: #f5f5f5;
        color: #aaa;
        box-shadow: none;
        cursor: not-allowed;
    }

.prev-button {
    left: 3px;
}

.next-button {
    right: 3px;
}

.carousel-button svg {
    width: 24px;
    height: 24px;
    fill: black;
}

.carousel-button:hover svg {
    fill: #000;
}

hr {
    margin: 0.2rem 0;
    color: inherit;
    background-color: #198754;
    border: 0;
    opacity: .25;
}

h6 {
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 8px; /* Space between icon and text */
    font-weight: bold;
}

    h6 i {
        font-size: 18px; /* Icon size */
        color: darkgreen; /* Icon color */
    }

.image-container {
    width: 100%; /* Set the container's width */
    /*max-width: 500px;*/ /* Optional: Limit maximum width */
    margin: 0 auto; /* Center the container horizontally */
    /*overflow: hidden;*/ /* Prevent overflow */
}

    .image-container img {
        width: 100%; /* Scale the image to the container's width */
        height: auto; /* Adjust height to maintain aspect ratio */
        display: block; /* Remove inline spacing caused by images */
    }


/* Container */
.nav-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    height: 100vh;
    overflow: hidden;
}



/* Navigation Menu */
.nav-menu {
    position: relative;
    transition: width 0.3s ease-in-out;
}

    .nav-menu.hidden {
        width: 20px;
    }

.toggle-menu-btn {
    position: relative;
    top: 2px;
    left: calc(100% - 20px);
    background-color: #198754;
    color: white;
    border: none;
    padding: 2px;
    /* border-radius: 50%; */
    cursor: pointer;
    /* right: 0px; */
    width: 16px;
    height: 16px;
    align-content: center;
    transition: transform 0.3s ease;
    text-align: center;
    display: flex;
    font-size: 10px;
    border-radius: 4px;
    justify-content: center;
}

    .toggle-menu-btn:hover {
        transform: scale(1.1);
    }

.menu-groups {
    list-style: none;
    padding: 0;
    margin: 0;
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    background-color: #145a44;
    border-bottom: 1px solid #0d3c31;
    transition: background-color 0.3s ease;
}

    .group-header:hover {
        background-color: #198754;
    }

.group-items {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

    .group-items li {
        padding: 10px 20px;
    }

        .group-items li a {
            color: white;
            text-decoration: none;
            font-size: 14px;
            transition: color 0.3s ease;
        }

            .group-items li a:hover {
                color: #b9b31e;
            }

.toggle-menu-btn i {
    transition: transform 0.3s ease;
}

.side-nav.hidden + .toggle-menu-btn i {
    transform: rotate(180deg);
}

.card-box {
    margin: 2px;
    /*margin-bottom: 0px;*/
    /*min-height: 100px;*/
    padding: 4px;
    border-radius: 5px;
    border: 1px solid #8bc48b;
    background-color: #00ff9b63;
    background-color: #4aff631f;
    background-color: white;
    height: calc(100% - 5px);
}

.card-box-header {
    font-weight: bolder;
    opacity: 0.8;
    height: 22px;
    border-bottom-width: 1px;
    border-bottom-style: dotted;
    border-bottom-color: #79b6c070;
    margin-bottom: 2px;
    color: darkgreen;
}

pre {
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 14px;
    white-space: pre-wrap; /* Allows wrapping for long lines */
    word-wrap: break-word;
    background-color: #f9f9f9;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.viewer pre {
    max-height: 100%;
    overflow-y: auto;
    /* white-space: normal; */
    word-wrap: break-word;
    background-color: #f9f9f9;
    padding: 10px;
    /* border-radius: 5px; */
    border: 0px solid #ddd;
    width: 100%;
}

/*.viewer pre {
    max-height: 100%;*/ /* Prevent the <pre> from expanding beyond its container height */
/*overflow-y: auto;*/ /* Enable vertical scrolling for overflowing content */
/*white-space: pre-wrap;*/ /* Ensure long lines wrap to the next line */
/*word-wrap: break-word;*/ /* Support wrapping for long words */
/*background-color: #f9f9f9;*/ /* Optional: Add a subtle background color for readability */
/*padding: 10px;*/ /* Optional: Add padding for aesthetics */
/*border-radius: 5px;*/ /* Optional: Rounded corners for the <pre> box */
/*border: 1px solid #ddd;*/ /* Optional: Add a border */
/*}*/

.viewer {
    height: 100%; /* Ensure the viewer occupies its split-screen height */
    overflow: hidden; /* Prevent the viewer itself from expanding */
    display: flex; /* Flexbox layout */
    flex-direction: column; /* Stack elements vertically */
    overflow: auto;
}

    .viewer .carousel-buttons {
        margin-top: auto; /* Place carousel buttons at the bottom of the viewer */
    }

.modern-carousel {
    /*height: calc(100% - 90px);*/ /* Adjust height relative to the layout */
}

/* Hide the dropdown arrow */
select.theme-dropdown {
    -webkit-appearance: none; /* Safari/Chrome */
    -moz-appearance: none; /* Firefox */
    appearance: none; /* Standard */
    background: none; /* Remove background if needed */
    padding-right: 0px; /* Adjust for the removed arrow */
}

/* Add a custom background and styling if desired */
select.theme-dropdown {
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #aee1cd;
    color: #333;
}

    /* Optional: Add custom background to mimic the dropdown if necessary */
    select.theme-dropdown::after {
        content: ''; /* Prevent overlapping */
    }


.theme-dropdown {
    border-radius: 4px;
    border: 1px solid #ccc;
    cursor: pointer;
    transition: all 0.2s;
    width: 20px;
    height: 20px;
}

    .theme-dropdown option[value="light"] {
        background-color: #f9f9f9; /* Light background */
        color: #333; /* Darker text */
    }

    .theme-dropdown option[value="dark"] {
        background-color: #121212; /* Dark background */
        color: #e0e0e0; /* Light text */
    }

    .theme-dropdown option[value="blue"] {
        background-color: #e3f2fd; /* Blue background */
        color: #0d47a1; /* Dark blue text */
    }

    .theme-dropdown option[value="theme1"] {
        background-color: #6f0909; /* Blue background */
        color: #ffffff; /* Dark blue text */
    }

    .theme-dropdown option[value="theme2"] {
        background-color: #ded408; /* Blue background */
        color: #201857; /* Dark blue text */
    }

.searchable-dropdown {
    position: relative;
    width: 100%;
    /*max-width: calc(100% - 93px);*/
    display: inline-flex;
}

.searchable-dropdown-product {
    position: relative;
    width: 100%;
    display: inline-flex;
}

.dropdown-search {
    width: 100%;
    padding: 2px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.dropdown-results {
    position: absolute;
    width: max-content;
    min-width: 250px;
    max-height: 200px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 23px;
    z-index: 1000;
    list-style: none;
    padding: 0;
}

    .dropdown-results li {
        padding: 2px;
        cursor: pointer;
    }

        .dropdown-results li:hover {
            background-color: #f1f1f1;
        }

.dropdown-input-container {
    position: relative;
    /* min-width: 250px;*/
    width: 100%;
}


.dropdown-list-results {
    position: absolute;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 5px;
    z-index: 1000;
    list-style: none;
    padding: 0;
}

    .dropdown-list-results li {
        padding: 2px;
        cursor: pointer;
    }

        .dropdown-list-results li:hover {
            background-color: #f1f1f1;
        }


.btn-link {
    font-size: 0.8rem;
    color: #5cb265;
    background: none;
}

    .btn-link:hover {
        background-color: Green;
        color: white;
    }

.clear-button {
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 0.7rem;
    color: #5cb265;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    margin: 1px;
    margin-right: 2px;
}

    .clear-button:hover {
        background-color: Green;
        color: white;
    }

/* Modal Backdrop */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    /*width: 100%;
    height: 100%;*/
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Modal */
.modal {
    background: #fff;
    border-radius: 8px;
    padding: 3px;
    /*width: 650px;*/
    max-width: 680px;
    max-height: 80%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    display: inline-block;
    margin: auto;
    position: relative;
}

.modal-confirm {
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    max-width: 350px;
    max-height: 130px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    display: inline-block;
    margin: auto;
    position: relative;
    border: 1px solid forestgreen;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding: 8px;
}

.modal-body {
    /*height: 235px;*/
    overflow-y: auto;
    overflow-x: hidden;
    padding: 5px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0px;
    border: none;
    padding: 0.25rem;
}

/* Selected Items */
.selected-items {
    display: inline-block;
    max-height: 33px;
    /*overflow: auto;*/
    width: calc(100% - 110px);
    /*font-size: 0.7rem;*/
    padding: 0px 2px;
    min-height: 29px;
    margin-left: 1px;
}

.selected-items-product {
    display: inline-block;
    max-height: 55px;
    /*overflow: auto;*/
    font-size: 0.7rem;
    padding: 2px;
    min-height: 29px;
    max-width: 250px;
}

.selected-item {
    display: inline-flex;
    padding: 0px 2px;
    background-color: #f1f1f1;
    border-radius: 4px;
    margin: 2px;
    border: 1px;
    border-style: outset;
    border-color: #aff09929;
}

    .selected-item button {
        border: none;
        background: none;
        cursor: pointer;
        margin-left: 3px;
        color: red;
        font-weight: bold;
    }

/*.close-button {
    border-radius: 4px;
    border-color: lightgray;
    background-color: lightgray;
    color: black;
    font-size: 0.8rem;
    font-weight: bold;
}*/

.close-button {
    transform: translateY(-50%);
    font-size: 0.8rem;
    background-color: #5cb265;
    color: white;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
    border: none;
}

    .close-button:hover {
        background-color: #2c9b37;
    }

.attachments-container {
    margin-bottom: 10px;
}

.attachments-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 84px; /* Fixed height */
    overflow-y: auto; /* Scrollable */
    overflow-x: hidden;
    /*border: 1px solid #ccc;*/
    border-radius: 6px;
    padding: 1px;
}

.attachment-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 3px 7px;
    border-bottom: 1px solid #f0f0f07f;
    cursor: pointer;
    color: forestgreen;
}

    .attachment-item:last-child {
        border-bottom: none;
    }

    .attachment-item:hover {
        color: darkred !important;
    }

.delete-button, .download-button {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    margin-left: 5px;
    font-weight: bold;
}

    .delete-button:hover {
        background: none;
        border: none;
        color: red;
    }

    .download-button:hover {
        background: none;
        border: none;
        color: green;
    }

/*.viewer {
    position: relative;
    margin-top: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 5px;
    height: 500px;
}*/

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3px;
    margin-bottom: 0px;
    gap: 10px;
    font-weight: bold;
}

.filter-input-container {
    display: flex;
    align-items: center;
    position: relative;
}

.filter-box {
    margin-top: 2px;
    border-radius: 5px;
    border-width: 1px;
    border-style: solid;
    border-color: floralwhite;
    line-height: 0.6rem;
    flex: 1;
    padding-right: 20px; /* Space for the clear button */
}

.filter-icon {
    cursor: pointer;
    margin-left: 3px;
    color: #666;
    margin-right: 3px;
}

    .filter-icon:hover {
        color: #333;
    }

.th-sortable {
    cursor: pointer;
    vertical-align: middle !important;
    height: 1.8rem;
    text-align:center;
}

.table-light {
    height: 25px;
    border-radius: 8px;
}

.comment-history {
    padding: 1px;
}

.comment-entry {
    padding: 1px;
    border-bottom: 1px solid #86eb8f42;
}

.comment-header {
    /*font-size: 0.8rem;*/
    color: #1b9b2f;
}

.timestamp {
    /*font-size: 0.8rem;*/
    color: #1b9b2f;
}

.comment-body {
    margin-top: 1px;
    margin-left: 10px;
    /*font-size: 0.7rem;*/
}

/* Ensure Layout Stays Structured */
.main-layout {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Container for Sidebar + Content */
.layout-container {
    display: flex;
    flex-grow: 1;
}

/* Page Content (Loader Covers This Only) */
.page-content {
    flex-grow: 1;
    position: relative;
    overflow: hidden;
    height: 100%;
}

/* Body-Only Loading Overlay (Covers Page Content, NOT Nav/TopBar) */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    z-index: 10;
}

/* Centered Loading Container */
.loading-container {
    text-align: center;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Colorful Animated Spinner */
.spinner {
    width: 50px;
    height: 50px;
    border: 6px solid transparent;
    border-top-color: #4caf50a9;
    border-right-color: #daf8dc;
    border-bottom-color: #4caf5078;
    border-left-color: #daf8dcb2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 10px auto;
}

/* Smooth Rotating Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    z-index: 9999;
}

.toast-message {
    padding: 12px 20px;
    margin-bottom: 10px;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    animation: fadeIn 0.5s ease-in-out;
}

    /* Different Colors for Different Toast Types */
    .toast-message.success {
        background: #28a745;
    }
    /* Green */
    .toast-message.warning {
        background: #ffc107;
    }
    /* Yellow */
    .toast-message.error {
        background: #dc3545;
    }
    /* Red */
    .toast-message.info {
        background: #17a2b8;
    }
/* Blue */

/* Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CostCentersPopup dual listbox styles */
.modal-body .form-control {
    font-size: 14px;
}

.modal-body select {
    width: 100%;
    min-height: 300px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.modal-body input[type="text"] {
    margin-bottom: 8px;
    font-size: 14px;
    padding: 6px;
}

.modal-footer button {
    min-width: 120px;
}

.selected-items,
.selected-items-product {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 0px;
}

.selected-item {
    background-color: #f0f0f0;
    border-radius: 4px;
    padding: 0px 4px;
    display: flex;
    align-items: center;
    /*font-size: 14px;*/
    border: 1px solid #ccc;
}

    .selected-item button {
        background: transparent;
        border: none;
        font-size: 14px;
        margin-left: 4px;
        cursor: pointer;
        color: #d9534f;
    }

        .selected-item button:hover {
            color: #b52b27;
        }

.link-button {
    color: #0d6efd;
    cursor: pointer;
    text-decoration: underline;
}

    .link-button:hover {
        color: #084298;
    }

/* Make arrow buttons look like proper icon buttons */
.costcenter-arrow-button {
    width: 24px;
    height: 24px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    border: none;
    background-color: #0d6efd;
    color: white;
    cursor: pointer;
    margin-bottom: 8px;
    transition: background-color 0.2s ease-in-out;
    /*margin: auto;*/
    margin-bottom: 5px;
}

    .costcenter-arrow-button:hover {
        background-color: #084298;
    }

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal {
    background: white;
    border-radius: 6px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.popup-body {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.list-box {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.list-select {
    height: 100%;
    min-height: 220px;
}

.arrow-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.close-btn {
    margin-top: 10px;
    align-self: flex-end;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    background: none;
    border: none;
    cursor: pointer;
    color: #444;
}

    .close-button:hover {
        color: #d9534f;
    }

/* Apply light inner borders to all table cells */
.table-bordered-all td,
.table-bordered-all th {
    border: 1px solid #dee2e6; /* Bootstrap default light border */
    padding: 0.2px 4px;
    vertical-align: middle;
    background-color: #fff;
}

/* Optional: cleaner header look */
.table-bordered-all thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

.viewer {
    position: relative;
    width: 100%;
    height: 100%;
}

    .viewer iframe, .viewer embed {
        width: 100%;
        height: 100%;
        border: 0;
    }

/* Thin horizontal scrollbar for long text cells in the product grid */
.scroll-x-thin {
    overflow-x: auto; /* ensure horizontal scroll */
    white-space: nowrap; /* keep in one line */
    max-width: 250px; /* your current cap; tweak as needed */
    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: darkseagreen transparent; /* thumb | track */
}
    /* WebKit (Chrome/Edge/Safari) */
    .scroll-x-thin::-webkit-scrollbar {
        height: 4px; /* ↓ scrollbar thickness */
    }

    .scroll-x-thin::-webkit-scrollbar-thumb {
        background: #9aa9b2;
        border-radius: 4px;
    }

        .scroll-x-thin::-webkit-scrollbar-thumb:hover {
            background: #7f8c97;
        }

    .scroll-x-thin::-webkit-scrollbar-track {
        background: #eef2f4;
    }

.badge.bg-warning.text-dark {
    font-size: 0.75rem;
    padding: 0.15rem 0.45rem;
}


.cc-text {
    display: inline-flex;
    align-items: center;
}

.cc-status-abierta {
    color: #0f766e;
}

.cc-status-clausurada {
    color: #ef4444;
    opacity: .85;
    text-decoration: line-through;
}

.cc-status-paraabrir {
    color: #d97706;
}

.cc-status-otro {
    color: #64748b;
}


