/* Bootstrap Success Color Override */
:root {
    --bs-success: #246337 !important;
    --bs-success-rgb: rgb(36, 99, 55) !important;
    --primary-green: #246337 !important;
    --secondary-green: #1d5c35 !important;
/* sidebar */
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 70px;
    --primary-color: #246337;
    --secondary-color: #1b7436;
    --accent-color: #28a745;
    --text-color: #333;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
    --hover-bg: #f8f9fa;
    --active-bg: #e8f5e8;
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    --font-heading: "Montserrat", system-ui, sans-serif;
    --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}


* {
    margin: 0%;
    padding: 0%;
    box-sizing: border-box;
}
/* Modern Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    border-right: 1px solid var(--border-color);
    transition: var(--transition);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

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

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-header {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    position: relative;
}

.sidebar-logo {
    max-width: 180px;
    height: auto;
    transition: var(--transition);
}

.sidebar.collapsed .sidebar-logo {
    max-width: 40px;
}

.sidebar-brand {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 0.5rem;
    opacity: 1;
    transition: var(--transition);
}

.sidebar.collapsed .sidebar-brand {
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.sidebar-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
}

.sidebar-toggle:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.sidebar.collapsed .sidebar-toggle {
    right: 0.5rem;
}

.nav-section {
    margin: 1rem 0;
}

.nav-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 1rem 0.5rem;
    margin: 0;
    opacity: 1;
    transition: var(--transition);
}

.sidebar.collapsed .nav-section-title {
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.nav-item {
    margin: 0.25rem 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    margin: 0 0.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-link:hover {
    background: var(--hover-bg);
    color: var(--primary-color);
    transform: translateX(4px);
}

.nav-link.active {
    background: var(--active-bg);
    color: var(--primary-color);
    font-weight: 500;
    box-shadow: var(--shadow);
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    border-radius: 0 2px 2px 0;
}

.nav-icon {
    width: 20px;
    text-align: center;
    margin-right: 0.75rem;
    font-size: 1.1rem;
    transition: var(--transition);
}

.sidebar.collapsed .nav-icon {
    margin-right: 0;
    font-size: 1.2rem;
}

.nav-text {
    flex: 1;
    opacity: 1;
    transition: var(--transition);
}

.sidebar.collapsed .nav-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.nav-badge {
    background: var(--accent-color);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    margin-left: auto;
    opacity: 1;
    transition: var(--transition);
}

.sidebar.collapsed .nav-badge {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar-footer {
    margin-top: auto;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    opacity: 1;
    transition: var(--transition);
}

.sidebar.collapsed .sidebar-footer {
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.user-info {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: var(--hover-bg);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.75rem;
    border: 2px solid var(--primary-color);
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
    margin: 0;
}

.user-role {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.main-content {
    margin-left: var(--sidebar-width);
    transition: var(--transition);
    min-height: 100vh;
}

.main-content.expanded {
    margin-left: var(--sidebar-collapsed-width);
}

.mobile-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: var(--primary-color);
    border: none;
    color: white;
    border-radius: 8px;
    padding: 0.5rem;
    box-shadow: var(--shadow);
}

.nav-divider {
    height: 1px;
    background: var(--border-color);
    margin: 1rem 0.5rem;
    opacity: 1;
    transition: var(--transition);
}

.sidebar.collapsed .nav-divider {
    opacity: 0;
    height: 0;
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        position: fixed;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
}

/* Override bg-success */
.bg-success, .text-bg-success {
    background-color: #198754 !important;
    color: #fff !important;
}

/* Hover and active state override */
.bg-success:hover, .text-bg-success:hover,
.bg-success:active, .text-bg-success:active,
.bg-success:focus, .text-bg-success:focus {
    background-color: #1b7436 !important;
    color: #fff;
}

/* Optional: Button with success color */
.btn-success {
    background-color: var(--bs-success) !important;
    border-color: var(--bs-success) !important;
}

.btn-success:hover,
.btn-success:active,
.btn-success:focus {
    background-color: #1b7436 !important;
    border-color: #1b7436 !important;
}

#logo {
    position: absolute;
    top: 40%;
}

#lg1 {
    color: white;
    font-size: 116px;
    font-family: var(--font-heading);
    font-weight: bolder;
}


.login-box {
    width: 100%;
    max-width: 420px;
    background-color: #ffffff;
}
.login-box h2 {
    font-size: 50px;
    font-weight: 900 !important;
}
.login-box h3 {
    color: #1a1e25;
    font-weight: 600 !important;
    font-size: 40px;
}
.login-box {
    width: 100%;
    max-width: 420px;
    background-color: #ffffff;
    padding: 40px !important;
    border-radius: 15px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}
.login-box input.form-control {
    border: none;
    outline: none;
    background: #f2f2f3 !important;
    padding: 10px 40px;
    font-size: 16px;
    width: 100%;
    margin-bottom: 5px;
    border-radius: 50px !important;
    position: relative;
}
.login-box input.form-control:focus {
    /* border-bottom-color: #5f9f36; */
    box-shadow: none;
}
.login-box input.form-control::placeholder {
    color: #bbb;
}
.login-box .input-group-text {
    border: none;
    padding: 0;
    font-size: 20px;
    color: #198754;
    position: absolute;
    top: 36px;
    z-index: 9;
    left: 9px;
    background: transparent !important;
}
.login-box button.btn {
    font-size: 1rem;
    border-radius: 50px;
    padding: 10px 0px;
}
span.input-group-text.bg-light.eye-icon {
    left: 90%;
}
.divider-class {
    position: relative;
}
.divider-class span.badge {
    position: absolute;
    top: -10px;
    color: #198754 !important;
    left: calc(50% - 10px) !important;
}
/* Input Field and Icon Style */
.input-group-text {
    background-color: #e9ecef;
    border: none;
}

.form-control {
    box-shadow: none;
    border: 1px solid #a098ae;
}
select {
    border: 1px solid #a098ae !important;
}
.input-group .form-control {
    border-left: none;
}

.logoDashboard {
    color: #246337;
    font-size: 50px;
    font-weight: 800;
}
.sidebar .nav-link {
    color: #b7b7b7;
    font-size: 18px;
}
.sidebar .nav-link i {
    font-size: 15px;
    width: 30px;
}
td a {
    color: #246337;
    font-weight: 600;
    font-size: 14px;
    line-height: 27px;
    font-family: var(--font-sans);
}
.tablestyleBg {
    background: #f5f5f5 0% 0% no-repeat padding-box;
}
.bodyOutter {
    margin-left: 350px; /* Same as sidebar width */
}
/* Button Style */
button.btn {
    font-size: 1rem;
    font-weight: bold;
}

/* Forgot Password Link */
.text-end a {
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
}
/* Social Buttons */
button.btn i {
    font-size: 1rem;
}

/* Container */
.container-fluid {
    background-color: #f4f4f4;
}

.text-center {
    text-align: center;
}

a {
    color: #4154f1;
    text-decoration: none;
}

a:hover {
    color: #717ff5;
    text-decoration: none;
}

.sidebar {
    height: 100vh;
    background: #fff;
    left: 0% !important;
    position: fixed;
}
.main-flex {
    display: flex;
    justify-content: flex-end;
}
.sideBarOuter {
    height: 100vh; /* Full viewport height */
    background-color: #fff; /* Optional: background color */
    border-right: 1px solid #dee2e6;
    overflow-y: auto;
}
.sidebar .nav-link {
    color: #333;
}
.sidebar .nav-link.active {
    background-color: #1d5c35;
    color: white;
    border-radius: 6px;
}
.status-pending {
    background-color: #f8d7da;
    color: #842029;
    border-radius: 5px;
    padding: 2px 8px;
}
.status-send {
    background-color: #d1e7dd;
    color: #0f5132;
    border-radius: 5px;
    padding: 2px 8px;
}
.action-btn {
    background-color: #1d5c35;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
}
.pagination .page-item .page-link.active {
    background-color: #1d5c35;
    color: white;
}
.hellotext {
    color: #a098ae !important;
    font-size: 29px;
}

.tableClass {
    background: #fff;
    padding: 25px;
}
.form-container {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    margin-top: 20px;
}
.form-container h2 {
    color: #2e2e2e;
    font-size: 25px;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 20px;
}
.food-menu-form {
    font-family: var(--font-sans);
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.menu-title {
    text-align: center;
    color: #e74c3c;
    margin-bottom: 30px;
    font-size: 28px;
}

.menu-section {
    margin-bottom: 25px;
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.section-title {
    color: #246337;
    border-bottom: 2px solid #246337;
    padding-bottom: 8px;
    margin-bottom: 15px;
    font-size: 20px;
}
button.delete-btn {
    background: #eb5757;
    color: #fff;
    border: 0px;
    padding: 25px 14px;
    border-radius: 10px;
}
.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
/* td .desc-box {
        border: 1px solid #707070;
    padding: 20px;
    border-radius: 10px;
    width: 60%;
    color: #2E2E2E;
    font-weight: 500;
} */

td .desc-box {
    border: 1px solid #707070;
    padding: 20px;
    border-radius: 10px;
    /* width: 500px; */
    color: #2e2e2e;
    font-weight: 500;
    word-wrap: break-word; /* Long words will break */
    word-break: break-word; /* Ensures break happens inside long words */
    white-space: normal; /* Ensures text wraps normally */
    display: block; /* Optional */
}

/* Mobile responsiveness */
@media (max-width: 767px) {
    .table-responsive {
        overflow-x: auto; /* Horizontal scroll for small screens */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling for touch devices */
    }

    .table {
        width: 100%; /* Ensure table takes full width */
        table-layout: auto; /* Ensure proper table layout */
    }

    th,
    td {
        font-size: 12px; /* Reduce font size for smaller screens */
    }

    .item-img {
        width: 50px; /* Make the image size smaller for mobile */
        height: auto;
    }

    .desc-box p {
        font-size: 12px; /* Reduce text size inside description box */
    }

    .delete-btn {
        font-size: 14px; /* Adjust the size of the delete button */
    }

    .dot-menu {
        font-size: 14px; /* Adjust the size of the dots menu */
    }
}

/* For medium to large devices, maintain normal layout */
@media (min-width: 768px) {
    .table-responsive {
        overflow-x: hidden;
    }

    th,
    td {
        font-size: 14px; /* Default font size */
    }
}

@media (max-width: 991.98px) {
    .calendar-wrapper {
        overflow-x: auto;
        white-space: nowrap;
    }

    .day-col {
        min-width: 120px;
        display: inline-block;
    }

    .reminder-item {
        flex-wrap: wrap;
    }
}

.activity-scroll,
.customer-scroll {
    max-height: 500px;
    overflow-y: auto;
}

.timeline-icon {
    width: 40px;
    height: 40px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reminder-icon {
    font-size: 20px;
}

.timeline-item {
    display: flex;
    gap: 15px;
    margin-bottom: 1rem;
}

.timeline-icon {
    background-color: #28a745;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
}

.timeline-content {
    flex-grow: 1;
}

.customer-entry {
    row-gap: 10px;
}

.scroll-section {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Optional: Custom Scrollbar Styling */
.scroll-section::-webkit-scrollbar {
    width: 6px;
}

.scroll-section::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.timeline-item {
    display: flex;
    gap: 15px;
    margin-bottom: 1rem;
}

.timeline-icon {
    background-color: #28a745;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
}

.timeline-content {
    flex-grow: 1;
}

.customer-entry {
    row-gap: 10px;
}

.timeline .timeline-item .timeline-content div {
    font-size: 15px;
    color: black;
}

.scroll-section .timeline .timeline-item .timeline-content dd {
    float: right;
}

.scroll-section .customer-entry div .hs {
    font-size: 15px;
    color: black !important;
}

.scroll-section .customer-entry .datee {
    text-align: center !important;
    padding-left: 30%;
}

.menu-item {
    display: block;
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 16px;
    color: #34495e;
    transition: all 0.3s;
}

.menu-item:hover {
    color: #e74c3c;
}

.menu-item input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #eee;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.menu-item:hover input ~ .checkmark {
    background-color: #f1f1f1;
}

.menu-item input:checked ~ .checkmark {
    background-color: #e74c3c;
    border-color: #e74c3c;
}

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

.menu-item input:checked ~ .checkmark:after {
    display: block;
}

.menu-item .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}

.submit-btn:hover {
    background-color: #c0392b;
}

.search-box {
    background-color: #f6f6f6;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    width: 100%;
}
.search-box:focus {
    outline: none;
    box-shadow: none;
}
.search-wrapper {
    position: relative;
}
.search-wrapper i {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: #aaa;
}
.search-wrapper input {
    padding-left: 30px;
}
button.btn.btn-secondary {
    background: #b7b7b7;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .tableClass {
        overflow-x: overlay;
    }
    .mobile-diplay-block {
        display: inline-block !important;
        width: 100% !important;
    }
    .menu-items {
        grid-template-columns: 1fr;
    }
    .sidebar {
        transform: translateX(-100%);
    }

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

    .main-content {
        margin-left: 0;
        width: 100%;
    }
    .offcanvas-header .btn-close {
        position: absolute;
        right: 20px;
        top: 20px;
        border: 1px solid #000;
        border-radius: 50px;
    }
    button.btn.btn-primary {
        background: transparent;
        padding: 10px 0px;
        color: #000;
        width: auto;
        border-radius: 0px;
        border: 0px;
        position: absolute;
        top: 30px;
        left: 7px;
    }
    .hellotext {
        color: #a098ae !important;
        font-size: 20px;
        margin-left: 22px;
    }
    button.btn.btn-primary i {
        font-size: 25px;
    }
    .offcanvas-body a {
        color: #b7b7b7 !important;
        font-weight: 500;
    }
    button.d-none.btn.btn-primary {
        display: block !important;
    }
    .mobile-menu-btn {
        display: inline-block;
    }

    .action-buttons .btn {
        min-width: 100%;
        margin-bottom: 10px;
    }
    .sidebar {
        display: none;
    }
}

/* ----- optional tweaks ----- */
body {
    min-height: 100vh;
    background-color: #f8f9fa;
}

.brand-logo {
    font-weight: 700;
    font-size: 1.4rem;
    color: #0d6efd;
}

.stats-card {
    min-height: 110px;
}

/* Chart tooltip shadow (just cosmetics) */
.chartjs-render-monitor {
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.08));
}

/* new  */
/* main content dashboard  */

/* section 1 */

.calendar-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    height: 100%;
}
.calendar-header {
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.week-days {
    font-size: 14px;
    font-weight: 500;
}
.day-col {
    text-align: center;
    font-size: 12px;
    color: #444;
}
.time-slot {
    font-size: 12px;
    margin: 4px 0;
    background: #eee;
    border-radius: 6px;
    padding: 3px 0;
}
.highlight-slot {
    background-color: #cde4d5 !important;
    font-weight: 600;
    color: #000;
}
.reminder-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
}
.reminder-icon {
    background-color: #dee2e6;
    border-radius: 50%;
    padding: 8px;
    width: 38px;
    height: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.reminder-time {
    font-size: 14px;
    font-weight: 500;
}
.scrollable-content {
    max-height: 400px;
    overflow-y: auto;
}

/* section 2 */

.activity-scroll,
.customer-scroll {
    max-height: 460px;
    overflow-y: auto;
}

.timeline-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
    background-color: #e6f4ea;
    color: #1d5c35;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-line {
    border-left: 2px solid #ccc;
    padding-left: 20px;
}

/* section 3  */

.scroll-box {
    max-height: 400px; /* Vertical scroll area */
    overflow-y: auto;
    overflow-x: auto; /* Horizontal scroll */
    -webkit-overflow-scrolling: touch;
}

.table th,
.table td {
    white-space: nowrap; /* Prevent cell wrapping */
    vertical-align: middle;
}

.pagination .page-link {
    border-radius: 8px !important;
    margin: 0 2px;
    padding: 3px 12px;
}

.pagination .active .page-link {
    background-color: #1d5c35;
    color: #fff;
    border: none;
}

/* dashboard 2 */

/* section 1  */

/* section 3 */

.container {
    margin-top: 50px;
}

.table-container {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.menu-table th,
.menu-table td {
    vertical-align: middle;
}

.menu-table td button {
    border: none;
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 5px;
}

.form-section {
    background-color: #fff;
    padding: 20px;
    margin-top: 5px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-section h4 {
    margin-bottom: 20px;
}

.form-control-amount {
    font-size: 1.2rem;
    font-weight: 600;
    background-color: #f1f1f1;
    border-radius: 8px;
}

.btn-primary,
.btn-secondary,
.btn-success {
    font-size: 1rem;
    padding: 10px 20px;
    background-color: var(--bs-success) !important;
    border-color: var(--bs-success) !important;
}

.input-group-text {
    background-color: #f1f1f1;
}

.btn-actions {
    display: flex;
    justify-content: space-between;
}

/* Responsive styling */
@media (max-width: 768px) {
    .menu-table th,
    .menu-table td {
        font-size: 12px;
    }
}

.box {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 20px;
    /* margin-top: 30px; */
}
.form-check-input:checked {
    background-color: green;
    border-color: green;
}
.total {
    font-size: 24px;
    font-weight: bold;
    color: #002c6b;
}

.item-box {
    border-bottom: 1px solid #ccc;
    padding: 15px 0;
}
.item-image {
    width: 30px;
    height: 30px;
    background-color: red;
    border-radius: 5px;
}
.item-description {
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
}
.right-box {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 20px;
}
.form-check-input:checked {
    background-color: green;
    border-color: green;
}
.total {
    font-size: 24px;
    font-weight: bold;
    color: #002c6b;
}

/* dashboard 3 */

.status-invoiced {
    background-color: #d4edda;
    color: var(--bs-success);
    padding: 4px 30px;
    border-radius: 5px;
    font-size: 0.9rem;
    text-align: center;
}
.status-convert {
    background-color: #f8d7da;
    color: #f07070;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 0.9rem;
}
.btn-icon {
    padding: 4px 8px;
}

/* booking detail  */

/* Mobile responsiveness */
@media (max-width: 767px) {
    .d-flex {
        flex-direction: column; /* Stack the elements vertically */
        align-items: center; /* Center-align the items */
    }

    .search-container {
        width: 100%; /* Make the search input take full width on small screens */
        margin-right: 0; /* Reset the right margin */
        margin-bottom: 10px; /* Add some spacing between the input and buttons */
    }

    .btn-group {
        width: 100%; /* Make button group take full width on small screens */
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .btn-group .btn {
        margin-bottom: 10px; /* Add some spacing between buttons */
        width: 100%; /* Make buttons stack vertically on small screens */
    }

    .btn-group .btn:not(:last-child) {
        margin-right: 0; /* Remove the margin on the last button */
    }
}

/* For larger screens (tablet, desktop, etc.), keep the layout as is */
@media (min-width: 768px) {
    .search-container {
        width: 40%; /* Adjust width of search box on larger screens */
    }

    .btn-group .btn {
        width: auto; /* Reset the button width */
    }
}

/* Style for Checkbox Container */
.checkbox-container {
    border: 2px solid #006400 !important; /* Dark green border */
    border-radius: 5px;
    padding: 5px;
}

/* Style for the checkboxes */
.custom-checkbox {
    width: 20px; /* Increase size of checkbox */
    height: 20px; /* Increase size of checkbox */
    margin-right: 10px;
}

/* Active checkbox color (checked) */
.custom-checkbox:checked {
    background-color: #006400 !important; /* Dark green */
    border-color: #006400 !important; /* Dark green border when checked */
}

/* Add some space between text and checkbox */
.checkbox-container span {
    font-size: 16px;
    color: #333;
}

.container-fluid {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    padding-bottom: 0;
}

/* Section Titles */
h5 {
    font-size: 16px;
    font-weight: bold;
    color: #343a40;
}

/* Textarea Styling */
textarea {
    font-size: 14px;
    color: #495057;
    padding: 10px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid #ced4da;
}

/* Sub Total Section Styling */
.border {
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 20px;
}

.d-flex {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 10px;
}

hr.my-3 {
    border: 0;
    border-top: 2px solid #f0f0f0;
}

/* Action Buttons */
button {
    padding: 10px 25px;
    font-size: 14px;
}

.btn-outline-primary,
.btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover {
    background-color: #f8f9fa;
    color: #343a40;
}

.btn-success {
    background-color: var(--bs-success) !important;
    color: white;
}

.btn-success:hover {
    background-color: #1b7436 !important;
}

.hide1 {
    display: none;
    justify-content: center;
}

.hide2 {
    display: flex;
    justify-content: center;
}

/* For Mobile Devices */
@media (max-width: 767px) {
    /* Adjust layout for mobile */
    .row.mb-4 {
        flex-direction: column;
    }

    .col-md-6 {
        width: 100%;
        margin-bottom: 1rem;
    }

    .d-flex {
        flex-direction: column;
        align-items: flex-start;
    }

    textarea {
        font-size: 12px;
    }

    h5 {
        font-size: 14px;
    }

    .btn {
        font-size: 12px;
        padding: 8px 20px;
    }

    .hide1 {
        display: flex;
        gap: 35px !important;
        justify-content: flex-end;
        flex-direction: row-reverse;
        align-items: center;
    }

    .hide2 {
        display: none;
    }
}

/* For Medium to Large Screens */
@media (min-width: 768px) {
    .row.mb-4 {
        display: flex;
        justify-content: space-between;
    }

    .col-md-6 {
        width: 48%;
    }

    .d-flex {
        flex-direction: row;
        align-items: center;
    }
}

/* For hide1: visible below 768px, hidden at 768px and above */
/* @media (min-width: 768px) {
  .hide1 {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .hide1 { */
/* display: flex !important;  */
/* Or block, depending on your design */
/* }
} */

/* For hide2: hidden below 768px, visible at 768px and above */
/* @media (max-width: 767px) {
  .hide2 {
    display: none !important;
  }
} */

/* @media (min-width: 768px) {
  .hide2 {
    display: flex !important;  
     Or block 
   } 
} */

.form-check-input:checked {
    background-color: #246337 !important;
    border-color: #246337 !important;
    width: 20px;
    height: 20px;
}

.form-check-input:hover {
    border-color: #246337 !important;
}

html,
body {
    overflow-x: hidden;
}

.invoice .col-md-6 table tr td {
    background-color: #fbfdfd;
}
.invoice .table-responsive table tr th {
    background-color: #fbfdfd;
    color: #246337;
    font-size: x-large;
}
.invoice .table-responsive table tr td {
    background-color: #fbfdfd;
}

.pagination {
    text-align: center;
}

.pagination svg {
    width: 20px;
}

.pagination svg:hover {
    color: #246337;
}

.pagination svg:active {
    color: #246337;
}

.pagination p
 {
    margin: 16px 0px;
}

.pagination a, .pagination span {
    text-decoration: none;
    background-color: transparent !important;
    border: none !important;
    color: gray !important;
}
.pagination a:hover {
    background-color: rgba(116, 116, 116, 0.205) !important;
    /* border: none !important; */
    color: #1d5c35 !important;
    font-weight: 600 !important;
}
.pagination span[aria-current="page"] span {
    background-color: #1d5c35 !important;    
    color: white !important;
    font-weight: 600 !important;   
}

.pagination .shadow-sm {
    box-shadow: none !important;
}

.pagination .flex.justify-between.flex-1.sm\:hidden {
    display: none;
}

/* Profit Analysis Styling */
.profit-card {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

.loss-card {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2);
}

.break-even-card {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
}

.profit-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    margin: 0.5rem;
}

.profit-stat h4 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.profit-stat p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.profit-margin-positive {
    color: #28a745;
    font-weight: 600;
}

.profit-margin-negative {
    color: #dc3545;
    font-weight: 600;
}

.profit-margin-neutral {
    color: #ffc107;
    font-weight: 600;
}

.vendor-cost-breakdown {
    max-height: 300px;
    overflow-y: auto;
}

.cost-analysis-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.profit-status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.profit-status-profitable {
    background: #d4edda;
    color: #155724;
}

.profit-status-loss {
    background: #f8d7da;
    color: #721c24;
}

.profit-status-break-even {
    background: #fff3cd;
    color: #856404;
}
.table th, .table td {
    white-space: nowrap;
    vertical-align: middle;
}

.table-container {
    height: calc(100vh - 275px); /* Full viewport height minus header/footer space */
    overflow-y: auto;
}

.table-container table {
    margin-bottom: 0;
}

.table-container thead {
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.bi-pencil:hover {
    color: rgb(255, 187, 0);
}
.bi-trash:hover {
    color: red;
}

.bi-eye:hover {
    color: #007bff;
}
