﻿body {
}

.bg2 {
    background-color: yellow;
}

.fg2 {
    color: orange;
}

mr10 {
    margin-right: 10px;
}
.btn-close-custom {
    background: none;
    border: none;
    font-size: 1.5rem; /* adjust size as needed */
    line-height: 1;
    color: #000; /* change color if needed */
    cursor: pointer;
    padding: 0;
    margin-left: auto; /* push it to the right in header */
}

    .btn-close-custom:focus {
        outline: none;
        box-shadow: none;
    }

.status-pill {
    display: inline-block;
    padding: 0.25em 0.75em;
    border-radius: 999px;
    color: #fff;
    font-size: 0.85em;
    font-weight: 500;
    text-align: center;
    min-width: 80px;
}

.status-pending {
    background-color: #f0ad4e; /* amber/orange */
}
.status-SubmittedForApproval {
    background-color: gray;
}

.status-cancelled, .status-rejected {
    background-color: #d9534f; /* red */
}

.status-completed, .status-approved {
    background-color: #5cb85c; /* green */
}

.status-inprogress, .status-inreview {
    background-color: #0275d8; /* blue */
}

.status-draft {
    background-color: #ffeeba; /* Light amber */
    color: #856404; /* Text contrast */
}

.status-quotecreated {
    background-color: #17a2b8; /* Light blue / cyan */
}
.status-scheduled {
    background-color: #17a2b8; /* Scheduled status color */
}

.status-rescheduled {
    background-color: #FFA500; /* Rescheduled status color */
}

.status-unassigned {
    background-color: gray; /* Unassigned status color */
}

.status-inprogress {
    background-color: #0275d8; /* blue */
}
.status-issuereported {
    background-color: #FF8C00; /* Issue Reported color */
}
.status-onhold {
    background-color: purple; /* On Hold status color */
}
.font-weight-bold {
    font-weight: bold !important;
    width: 120px !important;
}

input.invalid, select.invalid, textarea.invalid {
    border-color: red !important;
}

.status-taskCreated {
    background-color: #3498db;
}

.validation-message {
    color: red;
    font-size: 0.875em;
}

.btn-link {
    text-decoration: underline;
    color: #0d6efd;
    cursor: pointer;
}

h1:focus {
    outline: none;
}

.card-title {
    font-weight: bold;
}

.progress-bar {
    background-color: #007bff;
}

.form-group label {
    font-weight: 500;
}

.center-content {
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center; /* Centers vertically */
    height: 85vh; /* Takes full height of the viewport */
    margin: 0; /* Remove any default margin */
    padding: 0; /* Remove any padding */
    overflow: hidden; /* Prevent overflow */
    text-align: center; /* Ensures text is centered in case of any extra space */
}

.toast-on-top {
    position: fixed !important;
    top: 1rem !important;
    right: 1rem !important;
    z-index: 99999 !important;
}
/* Ensure toast is above modal */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 99999; /* Higher than Bootstrap modal (1050) and backdrop (1040) */
}

.divider {
    height: 1px;
    background-color: #ddd;
    margin: 10px 0;
}

.list-group-item {
    border: none !important;
}

.multi-select-dropdown {
    border: 1px solid #ccc;
    padding: 10px;
    width: 250px;
    max-height: 300px;
    overflow-y: auto;
    background-color: #fff;
}

.input-group {
    width: 100%;
}

.dropdown-options {
    margin-top: 10px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 5px;
}

.selected-values {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
}

    .selected-values .badge {
        background-color: #007bff;
        color: #fff;
        margin-right: 5px;
        margin-top: 5px;
    }

.cursor-pointer {
    cursor: pointer;
}
.form-check-input {
    transform: scale(1.3);
}
.input-toggle {
    transform: scale(1.5);
}
.form-check {
    min-height: 1.6rem;
}


@media print {
    /* Hide all elements except for the modal */
    body * {
        visibility: hidden;
    }

    .modal, .modal * {
        visibility: visible;
    }

    .modal-content {
        width: 100%; /* Ensure the modal takes full width */
        padding: 20px;
        background: white;
        border: none;
    }

    /* Optional: You can remove the close button during print */
    .modal-header .btn-close-custom {
        display: none;
    }
}

.upload-container {
    text-align: center;
    border: 2px dashed #ccc;
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    margin: 0 auto;
}

    .upload-container h4 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .upload-container p {
        font-size: 14px;
        margin-bottom: 20px;
        color: #555;
    }

.file-input {
    display: none; /* Hide the file input */
}

.upload-btn {
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

    .upload-btn:hover {
        background-color: #e0e0e0;
    }

.upload-container .file-input:focus + .upload-btn {
    outline: none;
}


/* Grid wrapper: both scrollbars */

.grid-scroll {
    display: block;
    width: 100%; /* full width of its parent container */
    max-height: 540px; /* vertical scroll limit */
    overflow-x: auto; /* horizontal scroll inside here */
    overflow-y: auto; /* vertical scroll inside here */
    border: 1px solid #dee2e6;
    border-radius: .5rem;
    box-sizing: border-box; /* ensure border doesn't add extra width */
    margin-bottom: 20px; /* optional space between the table and other elements */
}

.grid-table {
    width: 100%; /* ensures the table takes full width */
    min-width: 1000px; /* prevents the table from shrinking too much */
    table-layout: fixed; /* ensures cells are uniformly distributed */
}

    .grid-table th, .grid-table td {
        text-align: center; /* center text for a more uniform look */
        padding: 10px; /* adds space around table content */
        white-space:normal;
    }

@media (max-width: 768px) {
    .grid-table {
        min-width: 600px;
    }
}



    /* Sticky header */
    .grid-table thead th {
        position:sticky ;
        top: 0;
        z-index: 2;
        background: #fff;
    }

    /* Sticky first column (time) */
/*    .grid-table .time-col {
        position: sticky;
        left: 0;
        z-index: 3; 
        background: #fff;
        width: 100px;
    }

    .grid-table th, .grid-table td {
        vertical-align: top;
        white-space: normal;
    }*/

.range-selector {
    display: flex;
    background: #f3f6f8; /* light background like in screenshot */
    border-radius: 6px;
    padding: 4px;
    gap: 2px;
}

.range-selector {
    display: flex;
    justify-content: center; /* Center the buttons horizontally */
    gap: 10px; /* Space between the buttons */
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Make sure the container takes up 100% width */
}

.range-btn {
    border: none;
    background: transparent;
    padding: 6px 20px; /* Adjust padding for smaller screens */
    border-radius: 12px;
    font-size: 14px;
    color: #6c757d;
    transition: all 0.2s ease;
    min-width: 80px; /* Ensures buttons have a minimum width */
}

    .range-btn:hover {
        background: rgba(0, 0, 0, 0.05);
        cursor: pointer;
    }

    .range-btn.active {
        background: #fff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        color: #000;
        font-weight: 500;
    }

@media (max-width: 768px) {
    .range-btn {
        font-size: 12px; /* Make the font size smaller on mobile */
        padding: 6px 15px; /* Adjust padding on mobile */
    }
}

    .custom-range-inputs {
    display: flex; /* Align items in a row */
    align-items: center; /* Vertically center the items */
    gap: 10px; /* Adjust the spacing between inputs and button */
}

.customeclass {
    width: 25%; /* Allows the input fields to size naturally */
}

.custom-range-inputs button {
    margin-left: 10px; /* Optional, you can adjust the margin between button and inputs */
}
.navtab-link {
    cursor: pointer; /* Makes the link behave like a button */
    transition: color 0.3s ease; /* Adds a smooth color transition on hover */
}

    .navtab-link:hover {
        color: #007bff; /* Change to your desired hover color */
        text-decoration: underline; /* Optional: Add underline on hover for better UX */
    }

/* medium, pill-shaped buttons */
.btn-md-pill {
    padding: 0.55rem 3.6rem; /* medium height/width */
    border-radius: 50rem; /* pill shape */
    font-size: 1rem; /* medium text */
}

/* optional: tweak spacing between the two buttons */
.status-modal .gap-3 {
    gap: 0.9rem; /* controls vertical gap */
}
/* site.css or a scoped CSS file */
.modal-body.scrollable-body {
    max-height: 70vh; /* adjust as needed */
    overflow-y: auto; /* show vertical scrollbar only when content exceeds max-height */
}