/* General Styles */
.file-input-only .clearable-file-input {
    display: none;
    /* Hide the clear checkbox and current file display */
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    /* background-color: #f8f9fa; */
}

header {
    background-color: #343a40;
    color: #fff;
    padding: 1em 0;
    text-align: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

nav {
    padding: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #ffc107;
}

/* Sidebar Styles */
.sidebar {
    background-color: #495057;
    color: white;
    overflow-y: auto;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar ul li {
    padding: 10px;
    text-align: left;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    display: block;
    font-weight: 600;
    transition: background-color 0.3s ease;
    border-radius: 5px;
    padding-left: 7px;
    font-size: 15px;
}

.sidebar ul li a:hover {
    background-color: #6c757d;
    border-radius: 5px;
}

/* Main content to make room for sidebar */
main {
    background-color: #fff;
}

/* Procurement-Specific CSS */
/* nav a[href*="procurement-home"] {
    background-color: #ff0004;
    color: #f00c0c;
    padding: 10px 20px;
    border-radius: 4px;
}

nav a[href*="procurement-home"]:hover {
    background-color: #f80d0d;
} */

.p-actions a {
    font-weight: bold;
    color: #ff0000;
    text-decoration: none;
    margin-right: 15px;
}

.p-actions a:hover {
    color: #b3000f;
    text-decoration: underline;
}

.p-card {
    background-color: #fdfdfd;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}



.p-card h3 {
    text-align: center;
    margin-top: 0;
    color: #343a40;
}

.p-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 16px;
    text-align: left;
}

.p-table th,
.p-table td {
    padding: 12px 50px;
    border: 1px solid #dee2e6;
}

.p-table th {
    background-color: #007bff;
    color: #ffffff;
}

.p-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.p-btn {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-block;
    margin: 0 10px;
}

.p-btn:hover {
    background-color: #218838;
}

.emp-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 16px;
    text-align: left;
}

.emp-table th,
.emp-table td {
    padding: 12px 25px;
    border: 1px solid #dee2e6;
}

.emp-table th {
    background-color: #007bff;
    color: #ffffff;
}

.emp-table td {
    word-wrap: break-word;
    word-break: break-word;
}

.emp-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* Status Badges */
.status-badge {
    padding: 0.25em 0.5em;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.875rem;
}

.status-approved {
    background-color: #28a745;
    color: #fff;
}

.status-rejected {
    background-color: #dc3545;
    color: #fff;
}

.status-pending {
    background-color: #ffc107;
    color: #212529;
}

.status-on-hold {
    background-color: #6c757d;
    color: #fff;
}

/* Status Badges (General) */

.status-received {
    background-color: #0dcaf0;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
}

.status-completed {
    background-color: #28a745;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
}


/* Company Card in SRM Home */
.card {
    box-shadow: 2px 2px 19px rgba(200, 200, 200, 0.15);
    margin: 10px;
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    /* transform: translateY(-2px); */
    box-shadow: -2px 10px 7px rgba(0, 0, 0, 0.065);
}

.card-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #212529;
    font-weight: 600;
}

.card-text {
    font-size: 1em;
    color: #495057;
    margin-bottom: 20px;
}

.c-text {
    font-size: 2em;
    color: #495057;
    margin-bottom: 20px;
    font-style: oblique;
}

.card-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: #495057;
    font-style: oblique;
    justify-content: center;
    /* Center the buttons in the container */
}

.card-button {
    display: inline-block;
    padding: 10px 20px;
    color: #495057;
    background-color: #f8f9fa;
    font-weight: 500;
    font-style: oblique;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-button:hover {
    color: #fff;
    background-color: #495057;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.card-button:active {
    background-color: #343a40;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
}

.card-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.card-btn {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.card-btn:hover {
    background-color: #0056b3;
}

/* Tier Badges */
.tier-one {
    background-color: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
}

.tier-two {
    background-color: #20c997;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
}

.tier-three {
    background-color: #ffc107;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
}

.tier-four {
    background-color: #fd7e14;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
}

.tier-five {
    background-color: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
}

/* Task Management Projects Sections */
#sections-list ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#sections-list .section-item a {
    text-decoration: none;
    text-align: center;
    font-weight: 500;
}

/* Task Management Kanban Board */
/*
.kanban-wrapper {
    width: 100%;
    overflow-x: auto; /* Enables horizontal scroll */
/*padding-bottom: 20px; /* Adds a bit of space under the kanban board */
/*scroll-behavior: smooth;*/
/*}*/
/*
.kanban-container {
    display: flex;
    overflow-x: auto; /* Allow scrolling if columns overflow the container */
/* padding: 10px;
    gap: 20px; /* Optional: Adds spacing between columns */
/*} */

.kanban-column {
    /*width: 300px; /* Set a fixed width for each column */
    /*max-width: 300px; /* Prevent columns from expanding beyond this */
    /*min-width: 300px; /* Ensure columns don't shrink */
    /*overflow: hidden; /* Prevent overflow beyond the column's boundary */
    min-height: 300px;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    /* Prevent shrinking */
}

/* .kanban-column:hover { */
/* transform: scale(1.04); Slightly enlarge on hover */
/* background-color: #f1f1f1; Darker gray on hover */

/* } */

.task-list {
    margin-top: 10px;
    /* Space above the task list */
}

.task-item {
    width: 95%;
    margin: 0 auto;
    margin-bottom: 15px;
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    word-wrap: break-word;
    /* Ensure long words break onto the next line */
    overflow: hidden;
    /* Prevent content from overflowing outside the card */
}

/*
.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    overflow: hidden;
} */

.task-header {
    align-items: center;
    /* Center align items vertically */
    overflow: hidden;
}

.task-details {
    flex: 1;
    /* Flexbox property to take up available space */
}

.task-item h2 {
    font-size: 18px;
    /* Font size for task title */
    margin: 4px 0;
    /* Adjusted margin to reduce space */
    font-weight: 600;
    /* Slightly bolder */
    overflow: hidden;
    /* Hide overflow */
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.task-item h3 {
    font-size: 16px;
    /* Font size for assignee */
    margin: 2px 0;
    /* Adjusted margin to reduce space */
    color: #6c757d;
    /* Gray color */
    white-space: nowrap;
    /* Prevent wrapping */
    overflow: hidden;
    /* Hide overflow */
    text-overflow: ellipsis;
    /* Add ellipsis for long text */
}

.task-item p {
    font-size: 14px;
    /* Smaller font size for importance label */
    margin: 2px 0;
    /* Adjusted margin */
}

.task-item:hover {
    background-color: #cfcfcf;
    /* Darker gray on hover */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    /* Shadow on hover */
}

.task-details {
    flex: 1;
    /* Flexbox property to take up available space */
}

.task-timing {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    color: #6c757d;
}

.task-timing div {
    margin: 2px 0;
}

.creation-date,
.deadline,
.duration {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Task importance Styles */
.importance {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-top: 5px;
    width: 70px;
    height: 20px;
}

.importance span {
    text-transform: lowercase;
}

.importance span::first-letter {
    text-transform: uppercase;
}

/* Task importance background colors */
.task-high {
    background-color: #D9534F;
    /* Strong Red for High importance */
    color: white;
}

.task-normal {
    background-color: #6C757D;
    /* Medium Gray for Normal importance */
    color: white;
}

.task-low {
    background-color: #007BFF;
    /* Dark Blue for Low importance */
    color: white;
}

/* kanban end */

.pagination .page-link span {
    color: #007bff;
    /* Change this to the color you prefer */
    font-weight: bold;
}

.pagination .page-link:hover span {
    color: #0056b3;
    /* Change this to a hover color you prefer */
}

.pagination .page-link span {
    color: #007bff;
    /* Change this to the color you prefer */
    font-weight: bold;
}

.pagination .page-link:hover span {
    color: #0056b3;
    /* Change this to a hover color you prefer */
}

.pagination .page-link span {
    color: #007bff;
    /* Change this to the color you prefer */
    font-weight: bold;
}

.pagination .page-link:hover span {
    color: #0056b3;
    /* Change this to a hover color you prefer */
}

.title-text {
    font-size: 2em;
    color: #495057;
    margin-bottom: 20px;
}

.card-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
    text-align: center;
    background-color: #6f42c1;
    color: white;
    border-radius: 10px;
}

.card-stats h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.card-stats h2 {
    font-size: 28px;
    font-weight: bold;
}

/* Chart container styles */
canvas {
    max-width: 100%;
    max-height: 250px;
}

/* Table Styling for Employee Performance */
.table-bordered {
    border: 1px solid #dee2e6;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid #dee2e6;
    padding: 12px 10px;
}

/*notifications*/
.badge {
    display: inline-block;
    background-color: red;
    color: white;
    border-radius: 50%;
    /* Makes it a circle */
    padding: 0.4em 0.1em;
    font-size: 12px;
    line-height: 1;
    min-width: 20px;
    text-align: center;
}

/*Task Management: Tasks Cards*/
a.task-link {
    text-decoration: none;
    /* Removes the underline */
    color: inherit;
}

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

/*Task management table view, tasks' description cells*/
.description-cell {
    max-width: 200px;
    /* Adjust width as necessary */
    white-space: normal;
    /* Allow wrapping */
    word-wrap: break-word;
    /* Break words if needed */
}

/*Task management task details page*/
.detail-description {
    max-width: 800px;
    /* Adjust width as necessary */
    white-space: normal;
    /* Allow wrapping */
    word-wrap: break-word;
    /* Break words if needed */
}

/* Task Chat Messages */
.chat-message.sender {
    text-align: right;
}

.chat-message:not(.sender) {
    text-align: left;
}

.chat-message.sender .message-text {
    background-color: var(--bs-primary-bg-subtle);
}

.chat-message:not(.sender) .message-text {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-light-rgb), var(--bs-bg-opacity)) !important
}

.mention {
    --bs-text-opacity: 1;
    color: rgba(var(--bs-primary-rgb), var(--bs-text-opacity)) !important;
    font-weight: bold;
}

#mention-suggestions {
    max-height: 150px;
    /* Increased height for better visibility */
    overflow-y: auto;
    position: fixed;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    /* Subtle shadow for depth */
}

.mention-suggestion:hover {
    background-color: #f0f0f0;
    /* Light gray on hover */
}

.highlight {
    background-color: #e0e0e0;
    /* Highlighted background */
}

.text-muted {
    color: #6b005d !important;
}

.text-muted-link {
    color: #6b005d !important;
    text-decoration: none;
}

.text-muted-link:hover {
    color: #f15bb5 !important;
    text-decoration: underline;
}

/* button styles */
.button {
    background-color: #4CAF50;
    /* Green background */
    color: white;
    /* White text */
    padding: 7px 10px;
    /* Padding around the text */
    border: none;
    /* Remove borders */
    border-radius: 5px;
    /* Rounded corners */
    cursor: pointer;
    /* Pointer cursor on hover */
    font-size: 16px;
    /* Font size */
}

.button-small {
    background-color: #4CAF50;
    /* Green background */
    color: white;
    /* White text */
    padding: 3px 6px;
    /* Smaller padding */
    border: none;
    /* Remove borders */
    border-radius: 5px;
    /* Slightly smaller rounded corners */
    cursor: pointer;
    /* Pointer cursor on hover */
    font-size: 12px;
    /* Smaller font size */
}


.button:hover {
    background-color: #45a049;
    /* Darker green on hover */
}


/* Task Management sidebar */
.nav-dropdown {
    display: none;
    position: absolute;
    top: 40px;
    right: 0;
    background-color: white;
    color: black;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    width: 170px;
    z-index: 10;
}

.nav-dropdown a {
    display: block;
    padding: 10px;
    color: black;
    text-decoration: none;
}

.nav-dropdown a:hover {
    background-color: lightgray;
    border-radius: 5px;
    color: black;
    text-decoration: none;
}

/*
.show {
    display: block;
} */

.sidebar .dropdown {
    list-style-type: none;
    padding-left: 15px;
    margin-top: 10px;
    border-radius: 3px;
}

.sidebar .dropdown li {
    padding: 7px 10px;
    text-align: left;
}

.sidebar .dropdown li a {
    color: white;
    text-decoration: none;
    display: block;
    border-radius: 5px;
    margin-left: 10px;
    font-size: 14px;
    font-weight: 500;
}

.sidebar .dropdown li a:hover {
    /* color: #ffc107; */
    background-color: #6c757d;
    border-radius: 5px;
}

.arrow {
    margin-left: 10px;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 5px;
    transition: transform 0.2s;
}

#sidebar {
    transition: transform 0.3s ease;
}

@media (max-width: 767.98px) {
    #sidebar {
        transform: translateX(-100%);
        /* Hidden by default on small screens */
        position: fixed;
        z-index: 1050;
        height: 100vh;
        background-color: #495057;
    }

    #sidebar.show {
        transform: translateX(0);
        /* Show when toggled */
    }
}

#main {
    overflow-x: auto;
}

/* CRM kanban board */
.kanban-column {
    min-height: 300px;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    /* Prevent shrinking */
}

.opportunity-item {
    width: 95%;
    margin: 0 auto;
    margin-bottom: 15px;
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    word-wrap: break-word;
    /* Ensure long words break onto the next line */
    overflow: hidden;
    /* Prevent content from overflowing outside the card */
}

.opportunity-header {
    display: flex;
    /* Flexbox for alignment */
    justify-content: space-between;
    /* Space between header items */
    align-items: center;
    /* Center align items vertically */
    overflow: hidden;
}

.opportunity-item h2 {
    font-size: 18px;
    /* Font size for task title */
    margin: 4px 0;
    /* Adjusted margin to reduce space */
    font-weight: 600;
    /* Slightly bolder */
    overflow: hidden;
    /* Hide overflow */
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.opportunity-item h3 {
    font-size: 16px;
    /* Font size for assignee */
    margin: 2px 0;
    /* Adjusted margin to reduce space */
    color: #6c757d;
    /* Gray color */
    white-space: nowrap;
    /* Prevent wrapping */
    overflow: hidden;
    /* Hide overflow */
    text-overflow: ellipsis;
    /* Add ellipsis for long text */
}

.opportunity-item p {
    font-size: 14px;
    /* Smaller font size for importance label */
    margin: 2px 0;
    /* Adjusted margin */
}

.opportunity-item:hover {
    background-color: #cfcfcf;
    /* Darker gray on hover */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    /* Shadow on hover */
}

.opportunity-details {
    flex: 1;
    /* Flexbox property to take up available space */
}

.expected_close_date,
.value,
.probability {
    display: flex;
    align-items: center;
    gap: 6px;
}

a.opportunity-link {
    text-decoration: none;
    /* Removes the underline */
    color: inherit;
}

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

.icon-container {
    position: relative;
}

.icon-container i {
    cursor: pointer;
}


/* Set background color for the dropdown list */
.choices__list {
    background-color: #ffffff;
}


/* Layout containers */
.modern-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.5rem;
    margin-left: -0.5rem;
}

.modern-col-lg-12,
.modern-col-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
}

/* Column widths for medium screens (min-width: 768px) */
@media (min-width: 768px) {
    .modern-col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
        padding-right: 0.5rem;
        padding-left: 0.5rem;
    }
}

/* Margin and padding utilities */
.modern-mb-4 {
    margin-bottom: 1rem;
}

/* Form styles */
.modern-form-label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.modern-form-control,
.modern-form-select {
    /* display: block  !important; */
    display: block;
    /* width: 100%  !important; */
    width: 100%;
    /* padding: 9px 10px  !important; /* Reduced padding for smaller inputs */
    padding: 9px 10px;
    font-size: 0.9rem !important;
    /* Smaller font size */
    /* line-height: 1.25  !important; */
    color: #495057 !important;
    background-color: #fff !important;
    background-clip: padding-box !important;
    border: 2px solid #6b005d !important;
    border-radius: 0.5rem !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

.modern-form-control:focus,
.modern-form-select:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.15rem rgba(0, 123, 255, 0.25);
}

.modern-form-control:hover,
.modern-form-select:hover {
    border-color: #661e85;
    /* Darker shade for hover */
    background-color: #f9f9fc;
    /* Subtle background change */
}

.modern-form-control:disabled,
.modern-form-select:disabled {
    background-color: #e9ecef;
    color: #6c757d;
    border-color: #ced4da;
    cursor: not-allowed;
    opacity: 0.65;
}

.modern-form-control.is-invalid,
.modern-form-select.is-invalid {
    border-color: #dc3545;
    /* Red for error */
    box-shadow: 0 0 0 0.15rem rgba(220, 53, 69, 0.25);
}

.modern-form-control.is-invalid:focus,
.modern-form-select.is-invalid:focus {
    border-color: #e3342f;
    /* Darker red on focus */
    box-shadow: 0 0 0 0.2rem rgba(255, 77, 77, 0.25);
}

.modern-form-control.is-valid,
.modern-form-select.is-valid {
    border-color: #28a745;
    /* Green for success */
    box-shadow: 0 0 0 0.15rem rgba(40, 167, 69, 0.25);
}

.modern-form-control::placeholder,
.modern-form-select::placeholder {
    color: #6c757d;
    font-style: italic;
    opacity: 0.8;
}

.modern-form-control.loading,
.modern-form-select.loading {
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem 1.2rem;
    color: #aaa;
}

.modern-form-control[multiple],
.modern-form-select[multiple],
select[multiple] {
    height: auto;
    /* min-height: 120px;
  padding: 8px; */
    overflow-y: scroll;
    border: 2px solid #5a1069;
    border-radius: 0.9rem;
}

.choices {
    border: 2px solid #6b005d;
    border-radius: 0.5rem;
    padding: 0px;
    transition: all 0.2s ease-in-out;
    line-height: 1.25 !important;
    margin: 0 !important;
    width: 100% !important;
}

.choices.is-disabled {
    opacity: 0.65;
}

.choices__inner {
    background-color: #fff !important;
    border-radius: 0.9rem;
    padding: 0px !important;
    min-height: 15px !important;
    border: 0px !important;
    width: 100% !important;
    max-width: 100%;
}

.choices__input {
    background-color: #fff !important;
}

.is-open .choices__inner {
    border-radius: 0.9rem !important;
}

.choices__list--dropdown {
    background-color: #fff;
    border: 1px solid #5a1069;
    border-radius: 0.9rem !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Highlight selected dropdown item */
.choices__item--selected {
    background-color: #5a1069;
    color: #fff;
    border-radius: 0.4rem;
    padding: 5px;
}

/* Padding inside the selected value area */
.choices__list--single {
    padding: 9px 10px !important;
}

/* ✅ Align dropdown text based on direction */
html[dir="rtl"] .choices__list--dropdown .choices__item,
html[dir="rtl"] .choices__list--single .choices__item {
    text-align: right !important;
}

html[dir="ltr"] .choices__list--dropdown .choices__item,
html[dir="ltr"] .choices__list--single .choices__item {
    text-align: left !important;
}

@media (max-width: 576px) {

    .modern-form-control,
    .modern-form-select {
        font-size: 0.8rem;
        padding: 7px 8px;
        border-radius: 0.6rem;
    }
}

.modern-form-control,
.modern-form-select {
    transition: all 0.3s ease-in-out;
}

/* .modern-form-control.with-icon {
    background-repeat: no-repeat;
    background-position: left 0.75rem center;
    background-size: 1rem;
    padding-left: 2.5rem;
  } */


/* Utility for aligning items (flex container helpers) */
.modern-align-items-end {
    align-items: flex-end;
}

.modern-g-3 {
    gap: 0.75rem;
    /* Adjusted gap size for a more compact layout */
}

/* Button styles */
.modern-btn {
    display: inline-block;
    font-weight: 400;
    color: #212529;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.25rem 0.5rem;
    /* Smaller button padding */
    font-size: 0.9rem;
    line-height: 1.25;
    border-radius: 0.9rem;
    /* Smaller border radius for buttons */
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
        border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    text-decoration: none;
    cursor: pointer;
}

.modern-btn-primary {
    color: #fff;
    background-color: #6b005d;
    border-color: #6b005d;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modern-btn-primary:hover {
    transform: scale(1.01);
    background-color: #c537b3;
    border-color: #c537b3;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.btn-shadow {
    background: #5a189a;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-shadow:hover {
    transform: scale(1.01);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.modern-me-2 {
    margin-right: 0.5rem;
}

/* Flex container for buttons alignment */
.modern-d-flex {
    display: flex;
}

.modern-justify-content-end {
    justify-content: flex-end;
}



.button-container {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Primary Button Style */
.filter-btn.primary {
    background: linear-gradient(90deg, #7209b7, #4361ee);
    color: #fff;
    box-shadow: 0 4px 8px rgba(58, 111, 216, 0.2);
}

.filter-btn.primary:hover {
    transform: scale(1.01);
    filter: brightness(1.05);
    box-shadow: 0 6px 12px rgba(75, 135, 245, 0.3);
}

/* Secondary Button Style */
.filter-btn.secondary {
    background: linear-gradient(135deg, #8338ec, #f72585);
    color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.filter-btn.secondary:hover {
    transform: scale(1.01);
    filter: brightness(1.05);
    box-shadow: 0 6px 10px rgba(128, 90, 213, 0.2);
}

.powered-by-sphereka-link {
    color: #f72585;
}

.powered-by-sphereka-link:hover {
    color: #ffa3a3;
}

/* =========================================================
   TaskManagement/css/task_management.css
   A fresh minimal, modern styling approach that preserves
   existing class names and structure from your template.
   ========================================================= */

/* Basic Reset */
/* * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  } */

body {
    font-family: Arial, sans-serif;
}

/* Container & Row Helper */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5rem;
}

.col-lg-12,
.col-xl-3,
.col-lg-4,
/* .col-md-4, */
.col-sm-6,
.col-12,
.col-8,
.col-4 {
    padding: 0.5rem;
}

.flex-nowrap {
    flex-wrap: nowrap;
}

.btn-sm {
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
}

.btn-confirm:hover {
    color: #fff;
    background-color: var(--bs-btn-hover-border-color);
    border-color: var(--bs-btn-hover-border-color)
}

/* .btn-danger {
    background: #dc3545;
  } */
.btn-board,
.btn-table {
    background: #6c757d;
    margin-right: 0.5rem;
}

.btn-board:hover,
.btn-table:hover {
    background: #5a6268;
}

/* Project Dropdown, Section List */
#sections-list {
    font-weight: bold;
    color: #fff;
}

#sections-list ul {
    list-style: none;
    margin-top: 0.5rem;
}

.section-item {
    margin-bottom: 0.3rem;
    cursor: pointer;
}

.section-item.active a {
    color: #007BFF;
}

/* Columns */
.connect-sorting {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.column-title {
    display: inline-flex;
    align-items: center;
}

/* Task List */
.task-list {
    flex: 1;
    overflow-y: auto;
}

.card.img-task {
    background: #f9f9f9;
    border: 1px solid #ddd;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    padding: 0.5rem;
    cursor: move;

}

.card.img-task .task-header {
    margin-bottom: 0.3rem;
}

.card.img-task .task-details h2 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.card.img-task .task-details h2 a {
    color: #000;
    text-decoration: none;
}

.card.img-task .task-details h2 a:hover {
    text-decoration: underline;
}

.card.img-task .task-details h3 {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

/* Importance Styles */
.importance.task-low span {
    color: #28a745;
    /* green */
}

.importance.task-normal span {
    color: #ffc107;
    /* yellow/gold */
}

.importance.task-high span {
    color: #dc3545;
    /* red */
}

/* Task Timing Info */
.task-timing {
    font-size: 0.8rem;
    color: #555;
}

.task-timing div {
    margin-bottom: 0.2rem;
}

/* Hidden Class for Draggables */
.card.hidden {
    display: none;
}

/* Placeholder for Drag-and-Drop (visual highlight)
  .ui-sortable-placeholder.ui-state-highlight {
    border: 2px dashed #aaa;
    background: #fafad2;
    height: 50px;
    margin-bottom: 0.5rem;
  }*/
/* Placeholder for Drag-and-Drop (visual highlight) */
.ui-sortable-placeholder {
    border: 2px dashed #999;
    background: #fafad2;
    /* light background for visibility */
    margin: 0.4rem 0;
    min-height: 70px;
    /* increased approximate card height */
    padding: 0.5rem;
    /* added padding for increased size */
    border-radius: 4px;
    transition: background 0.2s ease;
}

.ui-sortable-placeholder.ui-state-highlight {
    border-color: #007bff;
    /* highlight color for placeholders */
}

/* Hovered Drop Zone */
.hovered {
    background: #ebf5ff;
    /* light highlight on columns or sections */
}

label {
    display: block;
    margin-top: 0.5rem;
    font-weight: bold;
    font-size: 0.9rem;
}

input[type="date"],
input[type="text"],
input[type="password"],
select,
textarea {
    width: 100%;
    margin-top: 0.3rem;
    padding: 0.4rem;
    font-size: 0.85rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Additional Spacing for Buttons */
.btn.mt-3 {
    margin-top: 1rem;
}

/* ----------------------------------------------------
   task_management
   (Include your existing styles, plus these additions.)
   ---------------------------------------------------- */

/* Existing provided styles (merged from styles.css) */
.form-control::-moz-placeholder {
    color: var(--bs-secondary-color);
    opacity: 1;
}

.form-control::placeholder {
    color: var(--bs-secondary-color);
    opacity: 1;
}

.form-floating>.form-control-plaintext::-moz-placeholder,
.form-floating>.form-control::-moz-placeholder {
    color: transparent;
}

/* ... (All your other form-floating & placeholder classes from snippet) ... */

.dd-empty,
.dd-item,
.dd-placeholder {
    display: block;
    position: relative;
    margin: 0;
    padding: 0;
    min-height: 20px;
    font-size: 13px;
    line-height: 20px;
}

.dd-empty,
.dd-placeholder {
    margin: 5px 0;
    padding: 0;
    min-height: 30px;
    background: var(--bs-body-bg);
    border: 1px dashed var(--bs-border-color);
    box-sizing: border-box;
}

/* Additional classes to highlight columns or tasks on drag */
.hovered {
    background-color: #f2f2f2;
    /* Slight highlight to indicate drop target */
}

/* .ui-sortable-placeholder: our dynamic placeholder to show insertion point */
.ui-sortable-placeholder {
    border: 2px dashed #999;
    background: #fafad2;
    /* light background for visibility */
    margin: 0.4rem 0;
    min-height: 40px;
    /* approximate card height */
    border-radius: 4px;
    transition: background 0.2s ease;
}

.ui-sortable-placeholder.ui-state-highlight {
    border-color: #007bff;
    /* highlight color for placeholders */
}

/* Keep or update your card styles as is: */
.card.img-task {
    /* Example styling */
    background: #fff;
    border: 1px solid #ddd;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    padding: 0.5rem;
    cursor: move;
    /* indicate draggable */
}

.card.hidden {
    display: none;
}

/* Example .hovered for tasks themselves (optional) */
.card.img-task.hovered {
    outline: 2px dashed #aaa;
}

/* ================================================
   opportunities
   ================================================ */


/* When a card (opportunity-item) is "hidden" during drag */
.opportunity-item.hidden {
    display: none;
}

/* Example styling for opportunity items */
.opportunity-item {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    cursor: move;
    /* Indicate draggable */
}

/* Opportunity details formatting */
.opportunity-header .opportunity-details h2 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.opportunity-header .opportunity-details h3 {
    font-weight: normal;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* .opportunity-list {
    min-height: 145px;
    height: 100%;
    border: 1px dashed transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
  } */

.opportunity-list {
    margin-top: 10px;
    flex: 1;
    overflow-y: auto;
}

.card-body {
    position: relative;
    /* Enable positioning for child elements */
}

.importance-badge {
    position: absolute;
    bottom: 8px;
    /* Distance from the bottom of the card */
    right: 8px;
    /* Distance from the right of the card */
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.875rem;
    /* Adjust font size */
    white-space: nowrap;
    /* Prevent text wrapping */
}

/* Style 1 */
.btn-gradient1 {
    background: linear-gradient(45deg, #9b5de5, #f15bb5);
}

.btn-gradient1:hover {
    transform: scale(1.01);
    filter: brightness(1.05);
    box-shadow: 0 4px 8px rgba(155, 93, 229, 0.2);
}

/* Style 2 */
.btn-gradient2 {
    background: linear-gradient(90deg, #7209b7, #4361ee);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-gradient2:hover {
    transform: scale(1.01);
    filter: brightness(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Style 3 */
.btn-outline {
    background: transparent;
    border: 2px solid #6b005d;
    color: #6b005d;
}

.btn-outline:hover {
    transform: scale(1.01);
    background: #6b005d;
    color: #fff;
}

/* Style 4 */
.btn-neon {
    background: #3a0ca3;
    box-shadow: 0 0 10px #7209b7, 0 0 40px #7209b7;
}

.btn-neon:hover {
    transform: scale(1.01);
    box-shadow: 0 0 20px #4361ee, 0 0 60px #4361ee;
}





/* Style 7 */
.btn-pill {
    background: linear-gradient(180deg, #6b005d, #482a6e);
    border-radius: 50px;
}

.btn-pill:hover {
    transform: scale(1.01);
    opacity: 0.9;
}

/* Style 8 */
.btn-shadow {
    background: #5a189a;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-shadow:hover {
    transform: scale(1.01);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Style 9 */
.btn-borderless {
    background: none;
    color: #8338ec;
    border: none;
    font-weight: bold;
}

.btn-borderless:hover {
    transform: scale(1.01);
    color: #f72585;
}

/* Style 10 */
.btn-hover-gradient {
    background: #7209b7;
    position: relative;
    overflow: hidden;
}

.btn-hover-gradient::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f72585, #7209b7);
    transition: all 0.3s;
}

.bg-purple {
    --bs-bg-opacity: 1;
    background-color: #62245acf !important
}

.modal-header.bg-purple {
    margin: 0;
    /* Remove any margin */
    padding: 1rem;
    /* Add padding as needed */
    width: 100%;
    /* Ensure it spans the full width */
    background-color: #6a1b9a;
    /* Replace with your purple color */
}

.dropzone.dz-clickable input[type="file"] {
    display: none !important;
}

/* Styling for rows with gradient bottom border */
.border-top-space {
    position: relative;
    /* Ensure pseudo-element is relative to row */
    border: 2px;
}

.border-top-space::after {
    content: "";
    /* Create a pseudo-element for the gradient border */
    position: absolute;
    top: 0;
    /* Align at the bottom */
    left: 0;
    width: 100%;
    /* Full width of the row */
    height: 2px;
    /* Thickness of the border */
    background: linear-gradient(90deg, #6b005d, #482a6e);
    /* Gradient for the border */
    z-index: 1;
    pointer-events: none;
    /* Prevent interaction with pseudo-element */
}

.link-purple {
    color: #6b005d !important;
    text-decoration-color: RGBA(var(--bs-primary-rgb), var(--bs-link-underline-opacity, 1)) !important;
    cursor: pointer;
}

.link-purple:focus,
.link-purple:hover {
    color: #c537b3 !important;
    text-decoration-color: #c537b3 !important
}

.modern-mt {
    margin-top: 10rem !important
}

.text-red {
    color: #e60000 !important;
}

.text-green {
    color: #008000 !important;
}

.disable-link {
    pointer-events: none;
    color: gray;
    cursor: default;
}

.disable-settings-link {
    pointer-events: none;
    cursor: default;
    --bs-text-opacity: 1;
    color: rgba(var(--bs-light-indigo-rgb), var(--bs-text-opacity)) !important;
}

.disable-btn {
    background-color: #96b1ff !important;
    border-color: #96b1ff;
    pointer-events: none;
    color: #fff;
}

.btn:disabled {
    border-color: transparent;
}

.modern-btn:disabled {
    color: #fff;
    pointer-events: none;
    background-color: #5d87ff;
    border-color: #5d87ff;
    opacity: 0.65;
    box-shadow: none;

}

.min-height-100 {
    min-height: 100vh;
}

.min-height-30vh {
    min-height: 30vh !important;
}

.min-height-40vh {
    min-height: 40vh !important;
}

.min-height-40 {
    min-height: 40px;
}

.form-label {
    margin-bottom: 0;
    font-weight: 600;
    color: #2a3547;
}

.no-hover-btn:hover {
    background-color: transparent;
    color: lightgrey;
}

.no-hover-btn:active {
    border-color: transparent !important;
}

.mw-15 {
    max-width: 15% !important
}

.w-65 {
    width: 65% !important;
}

.logo-size {
    width: 200px;
    height: 100px;
    object-fit: contain;
}

.sm-logo-size {
    width: 250px;
    max-height: 45px;
    object-fit: contain;
}

.favicon-size {
    width: 16px;
    height: 16px;
}

/* Base preloader */
.preloader {
    position: fixed;
    inset: 0;
    /* top:0; right:0; bottom:0; left:0; */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bs-body-bg);
    z-index: 1050;
    transition: opacity .3s ease;
}

/* Logo styling */
.preloader-logo {
    max-height: 80px;
    width: auto;
    margin-bottom: 1rem;
    object-fit: contain;
}

/* Spinner container */
.preloader-spinner .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: .25em;
}

/* Dark-theme override */
[data-bs-theme="dark"] .preloader {
    background: #202936 !important;
}

/* Fade-out when hidden (you can toggle a “.hidden” class via JS) */
.preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.logo-container {
    transition: all 0.3s ease;
}

body.sidebar-collapsed .logo-container {
    opacity: 0;
    pointer-events: none;
}

body.sidebar-collapsed .left-sidebar:hover>div>.logo-container {
    opacity: 1;
    pointer-events: auto;
}

.w-50 {
    width: 50% !important;
}

.company-policy ul {
    list-style: disc;
    margin-left: 2rem;
    margin-right: 2rem;
}

.company-policy a {
    color: var(--bs-heading-color);
    font-style: italic;
    text-decoration: underline;
}

.company-policy a:hover {
    font-weight: bold;
}



.card.h-90 {
    height: 90% !important;
}

.dropzone {
    border-radius: 10px;
    position: relative;
    transition: background-color 0.3s ease;
    padding: 1rem;
}

.dropzone input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.dropzone .file-name a {
    color: #6c757d;
    text-decoration: none;
}

.dropzone .file-name a:hover {
    text-decoration: underline;
}

.file-name {
    color: #6c757d;
    text-decoration: none;
}

input[type="checkbox"] {
    accent-color: var(--bs-primary);
    margin-right: 0.5rem;
    margin-left: 0.5rem;
    vertical-align: middle;
    width: 1.1rem;
    height: 1.1rem;
}

.custom-checkbox {
    display: inline-flex;
    align-items: center;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    user-select: none;
    transition: color 0.3s ease-in-out;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-checkbox .checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: #f0f0f0;
    border: 2px solid #bbb;
    border-radius: 6px;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.custom-checkbox:hover input~.checkmark {
    background-color: #e0e0e0;
    border-color: #999;
}

.custom-checkbox input:checked~.checkmark {
    background-color: #62245acf;
    border-color: #62245acf;
    box-shadow: 0 0 5px rgba(98, 36, 90, 0.5);
}

.custom-checkbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked~.checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 5px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:focus~.checkmark {
    outline: 2px solid #62245acf;
    outline-offset: 2px;
}

.choices__list--dropdown,
.choices__list[aria-expanded] {
    word-break: keep-all !important;
    z-index: 2 !important;
}

.warehouseDiv .choices {
    width: 65%;
}

.is-open .choices__list--dropdown,
.is-open .choices__list[aria-expanded] {
    border-color: #ddd !important;
}

.text-grey {
    color: RGBA(var(--bs-muted-rgb), var(--bs-bg-opacity, 1)) !important;
}

.w-5 {
    width: 5% !important;
}

.star-rating {
    display: inline-flex;
    gap: 0.25rem;
}

.star-rating i.filled {
    color: #ffc107;
}

.star-rating i {
    font-size: 1.6rem;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
}

.star-card label {
    font-weight: 500;
}

.lg-star-card {
    background: #ffffff;
    padding: 1rem;
    margin-bottom: 1rem;
}

.vh-75 {
    height: 75vh !important
}

.white-space-normal {
    white-space: normal;
}

.table-fixed {
    table-layout: fixed;
}

.btn-outline-danger {
    background: transparent;
    border: 2px solid RGBA(214, 83, 79, 1) !important;
    color: RGBA(214, 83, 79, 1) !important
}

.btn-outline-danger:hover {
    transform: scale(1.01);
    background: RGBA(214, 83, 79, 1);
    color: #fff !important;
}

.btn-outline-success {
    background: transparent;
    border: 2px solid #28a745 !important;
    color: #28a745!important
}

.btn-outline-success:hover {
    transform: scale(1.01);
    background: #28a745;
    color: #fff !important;
}

/* New CSS for image preview container in brand & company settings */
.image-container {
    width: 150px;
    /* Fixed width */
    height: 150px;
    /* Fixed height */
    background-color: #ccc;
    /* Gray background */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    /* Center horizontally and add bottom margin */
    border: 1px solid #aaa;
    border-radius: 10px;
    overflow: hidden;
}

.image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Permissions Tree */
.tree-toggle:focus {
    box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.3);
}

.permission-list {
    list-style: none;
}

.permission-list li {
    margin-bottom: 0.25rem;
}

.tree {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tree li {
    margin-bottom: 0.75rem;
}

.tree-toggle {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    outline: none;
}

.tree-toggle:hover {
    background: #e9ecef;
}

[data-bs-theme="dark"] .tree-toggle:hover {
    background: #29293d;
}

.tree-toggle .fa-caret-right {
    transition: transform 0.3s ease;
}

.tree-toggle .fa-caret-left {
    transition: transform 0.3s ease;
}

.active>.tree-toggle .fa-caret-right {
    transform: rotate(90deg);
}

.active>.tree-toggle .fa-caret-left {
    transform: rotate(-90deg);
}

.nested {
    list-style: none;
    display: none;
}

.active>.nested {
    display: block;
}

/* Accounts Tree */
.folder-icon {
    margin: 0 0.3rem;
    color: #ffc107;
    cursor: pointer;
    position: relative;
}

.folder-icon.en::after {
    content: "\25BA";
    display: inline-block;
    margin: 0 0.3rem;
    transition: transform 0.3s ease;
}

.folder-icon.ar::after {
    content: "\25C4";
    display: inline-block;
    margin: 0 0.3rem;
    transition: transform 0.3s ease;
}

.active>.folder-icon.en::after {
    transform: rotate(90deg);
}

.active>.folder-icon.ar::after {
    transform: rotate(-90deg);
}

.file-icon {
    margin: 0 0.3rem;
    color: #6c757d;
}

.nested-tree li {
    margin: 0;
    padding: 0 1.5rem;
    line-height: 1.6rem;
    position: relative;
    transition: background-color 0.3s ease;
}

.nested-tree li:hover {
    background-color: #f9f9f9;
}

.nested-tree li::before {
    content: "";
    position: absolute;
    top: 0;
    width: 0;
    height: 100%;
    border-left: 1px solid #ccc;
}

.nested-tree.en li::before {
    left: 0.4rem;
}

.nested-tree.ar li::before {
    right: 0.4rem;
}

.nested-tree li::after {
    content: "";
    position: absolute;
    top: 1.0rem;
    width: 1rem;
    height: 0;
    border-top: 1px solid #ccc;
}

.nested-tree.en li::after {
    left: 0;
}

.nested-tree.ar li::after {
    right: 0;
}

.nested-tree li:last-child::before {
    height: 1rem;
}

.tree-item-label {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.nested {
    display: none;
    transition: all 0.3s ease;
    padding: 0 1rem;
    margin: 0 0.7rem;
}

.nested.en {
    border-left: 1px dashed #ccc;
}

.nested.ar {
    border-right: 1px dashed #ccc;
}

input[type="radio"] {
    accent-color: var(--bs-primary);
    margin-right: 0.5rem;
    margin-left: 0.5rem;
    vertical-align: middle;
    width: 1.1rem;
    height: 1.1rem;
}


/* show percent start */
.percent-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

.percent-wrapper input {
    box-sizing: border-box;
    width: 100%;
}

.percent-wrapper.en input {
    padding-right: 1.5em;
}


.percent-wrapper.ar input {
    padding-left: 1.5em;
}

.percent-wrapper::after {
    content: "%";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
}

.percent-wrapper.en::after {
    right: 0.5em;
}

.percent-wrapper.ar::after {
    left: 0.5em;
}

/* show percent end  */

.min-width-50 {
    min-width: 50px !important
}

.min-width-60 {
    min-width: 60px !important
}

.gradient-text {
    font-weight: bold;
    background: linear-gradient(90deg, rgba(131, 58, 180, 1) 0%, rgba(247, 37, 133, 1) 50%, rgba(131, 58, 180, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* For Firefox */
    background-clip: text;
    color: transparent;
}

.input-with-icon {
    position: relative;
}

.input-with-icon button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.input-with-icon.ar button {
    left: 0.5rem;
}

.input-with-icon.en button {
    right: 0.5rem;
}

.w-80 {
    width: 80% !important;
}

.fc-scrollgrid tbody[role="presentation"] tr,
.fc-scrollgrid tbody[role="presentation"] td,
.fc-scrollgrid .fc-timegrid-body tr,
.fc-scrollgrid .fc-timegrid-body td {
    cursor: pointer;
}

/* Restaurant Orders */
/* Sidebar base */
.order-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    /* hidden state */
    width: 420px;
    height: 100vh;
    background: #fff;
    border-left: 1px solid #e6e6e6;
    box-shadow: -3px 0 12px rgba(0, 0, 0, 0.08);
    transition: right 0.28s cubic-bezier(.2, .8, .2, 1);
    z-index: 1050;
    box-sizing: border-box;
    overflow: hidden;
}

/* Open state */
.order-sidebar.open {
    right: 0;
}

/* Inner layout: column that fills the sidebar height */
.order-sidebar .order-sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem;
    gap: 0.5rem;
}

/* Header (top) */
.order-sidebar .sidebar-header {
    flex: 0 0 auto;
    align-items: center;
    gap: 0.5rem;
}

/* Scrollable content area between header and footer */
.order-sidebar .sidebar-body {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 0.25rem;
}

/* Footer actions — pinned to bottom */
.order-sidebar .sidebar-actions {
    flex: 0 0 auto;
    border-top: 1px solid #f0f0f0;
    padding-top: 0.75rem;
}

@media (max-width: 576px) {
    .order-sidebar {
        width: 100vw;
        right: -100vw;
    }

    .order-sidebar.open {
        right: 0;
    }

    .order-sidebar .order-sidebar-content {
        padding: 0.75rem;
    }
}

.swal2-rtl {
    direction: rtl;
    text-align: right;
}

.bg-purple-gradient {
    background: linear-gradient(135deg, #5a2362, #6b005d) !important;
}

/* === Fix dropdown clipping in responsive tables === */
/* allows dropdown to appear fully */
/* .table-responsive {
    overflow: visible !important;
} */

/* ensure dropdown appears aligned with breadcrumb and shows nicely on hover */
#sectionsDropdownWrapper {
    position: relative;
}

#sectionsDropdownWrapper .dropdown-menu {
    min-width: 12rem;
}

/* optional: show pointer on hover for items */
#sectionsDropdownWrapper .dropdown-item {
    cursor: pointer;
}


.choices[data-type*=select-multiple] .choices__button,
.choices[data-type*=text] .choices__button {
    border-left: 0px !important;
    margin: 0 !important;
}

.choices__list--multiple .choices__item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    border-radius: 0.45rem;
    margin: 0.18rem;
    font-size: 0.95rem;
}

/* Grey background for disabled Choices box */
.choices[data-disabled] .choices__inner,
.choices.is-disabled .choices__list.choices__list--multiple {
    background-color: #eaeaea !important;
    /* Bootstrap disabled input bg */
    cursor: not-allowed;
}


/* Container for attachments inside the modal form */
.attachments-list {
    margin-top: 0.5rem;
    /* spacing above the list */
    font-size: 0.9rem;
    /* slightly smaller text */
}

/* Unstyled list inside attachments-list */
.attachments-list ul {
    list-style: none;
    /* remove default bullets */
    padding-left: 0;
    /* remove default padding */
    margin: 0;
    /* remove default margin */
}

/* Each attachment item */
.attachments-list li {
    margin-bottom: 0.4rem;
    /* spacing between attachments */
    display: flex;
    align-items: center;
}

/* Attachment link styling */
.attachments-list a {
    text-decoration: none;
    color: #6b005d !important;
    word-break: break-all;
    /* wrap long filenames */
}

#task-filter-dropdown .btn {
    padding: .35rem .6rem;
    font-size: .9rem;
}

.invoice-number-cell i.text-gray {
    opacity: 0.40;
}

.invoice-number-cell i.text-gray:hover {
    opacity: 0.85;
    transform: scale(1.15);
}

.text-gray {
    --bs-text-opacity: 1;
    color: rgba(125, 149, 163), var(--bs-text-opacity) !important
}

.invoice-number-cell i {
    font-size: 1rem;
    flex-shrink: 0;
    transition: transform .15s ease;
}

/* store icon: white icon inside a success-colored circular badge
   Matches size/hover behavior of .invoice-number-cell i.text-gray */
.store-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    /* same visual badge size as before */
    height: 28px;
    border-radius: 50%;
    background-color: var(--bs-success, #28a745);
    /* bootstrap success */
    color: #ffffff;
    /* white icon */
    margin-left: 6px;
    cursor: default;
    font-size: 1rem;
    /* match .invoice-number-cell i */
    vertical-align: middle;
    user-select: none;
    opacity: 0.40;
    /* same default opacity */
    transition: transform .15s ease, opacity .15s ease;
    flex-shrink: 0;
}

/* hover / focus behavior — match your invoice-number rules */
.store-icon:hover,
.store-icon:focus {
    opacity: 0.85;
    transform: scale(1.15);
    outline: none;
}

/* visible keyboard focus for accessibility */
.store-icon:focus-visible {
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.18);
    /* subtle focus ring */
}

/* inner icon sizing (Font Awesome <i>) */
.store-icon i {
    font-size: 1rem;
    /* match .invoice-number-cell i */
    line-height: 1;
    transition: inherit;
}

.choices__list--multiple .choices__item {
    background-color: #6b005d !important;
    border: 1px solid #6b005d !important;
}

.choices__list.choices__list--multiple {
    background-color: transparent;
}
