@charset "UTF-8";

.old-fc-event-unpaid-leave-pending {
    position: relative;
    border-radius: 1px;
    z-index: 0;

    background-image: 
        /* top border dash */
        linear-gradient(to right, rgba(0, 0, 0, 1) 50%, transparent 50%),
        /* bottom border dash */
        linear-gradient(to right, rgba(0, 0, 0, 1) 50%, transparent 50%),
        /* right full line */
        linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 1)),
        /* left tag */
        linear-gradient(to right, rgba(0, 0, 0, 1) 6px, transparent 2px) !important;

    /* Sizes for each background layer */
    background-size: 
        20px 2px,  /* top dash */
        20px 2px,  /* bottom dash */
        2px 100%,  /* right full line */
        6px 100%   /* left tag */ !important;

    /* Position each layer */
    background-position: 
        top left,    /* top dash */
        bottom left, /* bottom dash */
        top right,   /* right full line */
        left top     /* left tag */ !important;

    background-repeat: 
        repeat-x,   /* top dash */
        repeat-x,   /* bottom dash */
        no-repeat,  /* right full line */
        repeat-y    /* left tag */ !important;
}

/* CSS */
.gradient-background {
    background: linear-gradient(to bottom, #0082dc, #00e5bf);
}

.gradient-btn {
    background: linear-gradient(to right, #0082dc, #00e5bf);

}

.background-transparent {
    background: #cac3c3;
}

.image-wrapper {
    position: relative;
    display: inline-block;
    background-size: cover;
    
}

.bg-login {
    background-color: #ffffff transparent;
}

.image-wrapper img {
    display: block;
    width: 100%; /* Ensure the image takes up the full width of the container */
}

.image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #080d41;
    mask-image: var(--background-url);
    mask-size: 100% 100%;
    pointer-events: none;
    z-index: -1;
}


.login-line-gradient{
    background: #080d41;
}


.icon-ref i {
    transition: color 0.2s; /* Smooth transition for color change */
}

.icon-ref:hover i {
    color: #00e5bf; /* Change color to blue on hover */
}

.comment-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align text to the top */
    padding: 0rem !important; /* Adjust padding */
}

.ql-toolbar .btn-primary {
    width: auto !important;  /* Allow button to auto size */
    min-width: 80px;         /* Set minimum width */
    height: auto !important; /* Allow button to auto size */
    padding: 0.5rem 1rem;    /* Adjust padding */
}

.quill-editor.sticky-note {
    min-height: 50px;
    max-height: 250px;
    overflow-y: auto;
    background-color: inherit; /* Inherit the background color of the parent container */
}

.sticky-note .ql-editor {
    color: var(--bs-text-gray-900) !important;
}


.ql-toolbar.note-toolbar {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
    background-color: inherit; /* Inherit the background color of the parent container */
}

.show-toolbar.note-toolbar {
    opacity: 1;
    visibility: visible;

}

.masonry-container {
    display: flex;
    flex-wrap: wrap;   /* Allow items to wrap into columns */
    gap: 15px;         /* Space between items */
}

.sticky-note-card {
    width: 400px; /* Max width for each column */
    margin-bottom: 1rem;
}

/*GLOW*/
@keyframes glow {
    0% {
        box-shadow: 0 0 10px var(--glow-color), 0 0 20px var(--glow-color), 0 0 30px var(--glow-color), 0 0 40px var(--glow-color);
    }
    99% {
        box-shadow: 0 0 0 var(--glow-color);
    }
    100% {
        box-shadow: none;
    }
}

.glow-border {
    padding: 5px;
    border-radius: 5px;
    animation: glow 4s linear forwards;
}

.glow-border-warning {
    --glow-color: #f8bc3b; /* Yellow */
}

.glow-border-danger {
    --glow-color: #db6161; /* Red */
}

.align-center-left > div {
    text-align: start;
    position: relative; /* Enable absolute positioning for inner elements */
    left: 40%; /* Start from the middle of the cell */
}


.custom-button {
    display: inline-block;
    border-radius: 0.75rem; /* Adjust for rounded edges */
    /*background-color: #c4dffd; /* Blue background on hover/active */
    background-color: #bbf0e7; /* Blue background on hover/active */
    transition: background-color 0.3s, color 0.3s; /* Smooth transition */
    
}

.custom-button a {
    color: black; /* Default text color */
    text-decoration: none; /* Remove underline */
    padding: 0.2rem 1rem; /* Padding for button look */
    display: block; /* Make the link fill the button */

}

.custom-button:hover, 
.custom-button:active {
    /*background-color: #1B84FF; /* Blue background on hover/active */
    background-color: #03c4a3;
}

.custom-button:hover a, 
.custom-button:active a {
    color: white; /* White text on hover/active */

}

.rounded-box-grey {
    color: black;               /* Text color */
    background-color: #f0f0f0; /* Grey background */
    border-radius: 0.75rem;        /* Rounded edges */
    padding: 0.1rem 0.75rem; 
    font-size: 1rem;           /* Font size */
}

.form-grey-rounded {
    padding: .825rem 1.5rem !important;
    border-radius: .65rem !important;
    color: var(--bs-gray-700) !important;
    border-color: var(--bs-gray-100) !important;
    background-color: var(--bs-gray-100) !important;
    transition: color .2s ease !important;

}

.dynamic-text {
    font-size: 0.95vw; /* 5% of the viewport width */
}

.active-filter {
    border: 0.1rem ridge #b3d3f1;
    border-radius: 13px;
}

.w-60 {
    width: 60%;
}
.w-20 {
    width: 20%;
}
.w-10 {
    width: 10%;
}
.w-15 {
    width: 15%;
}
.w-25 {
    width: 25%;
}
.w-40 {
    width: 40%;
}

.w-5 {
    width: 5%;
}

.w-7 {
    width: 7%;
}

.w-2 {
    width: 2%;
}

.w-3 {
    width: 3%;
}

.w-13 {
    width: 13%;
}

.w-12 {
    width: 12%;
}

.w-22 {
    width: 22%;
}

.w-28 {
    width: 30%;
}

.w-30 {
    width: 30%;
}

.w-50 {
    width: 50%;
}

.btn-xsm {
    --bs-btn-padding-y: 0.2rem;
    --bs-btn-padding-x: 0.3rem;
    --bs-btn-font-size: 0.3rem;
    --bs-btn-border-radius: 0.2rem
}

.btn-xsm {
    --bs-btn-padding-y: 0.2rem;
    --bs-btn-padding-x: 0.3rem;
    --bs-btn-font-size: 0.3rem;
    --bs-btn-border-radius: 0.2rem
}

.btn-xsm-note {
    --bs-btn-padding-y: 0.2rem;
    --bs-btn-padding-x: 0.3rem;
    --bs-btn-font-size: 0.3rem;
    --bs-btn-border-radius: 0.2rem;
    padding: 5px 10px !important;
    border-radius: 20%;
    background: #1B84FF !important;
    color: white; /* Ensure text is visible */
    transition: background-color 0.3s ease-in-out; /* Smooth transition */
}

.btn-xsm-note:hover {
    background: #0A5FCC !important; /* Change to desired hover color */
}

.card-body.b-hidden {
    overflow: hidden; /* Ensures that overflow content is hidden */
}
.text-truncated.more::after {
    content: '...zobrazit více';
    position: relative; /* Prevents absolute positioning from pushing text */
    bottom: 0;
    right: 0;
    background: white;
    padding: 0 5px;
    cursor: pointer;
    color: blue;
    z-index: 1; /* Ensure it's above the text */
} 

.card-body .text-truncated {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    min-height: 4.5em; /* Matches max-height */
    max-height: 4.5em; /* Approximately 3 lines of text */
    text-overflow: ellipsis;
}

.custom-large-input {
    width: 100%;
    height: 60px;  /* Or any size you prefer */
}


.collapse-custom {
    overflow: hidden;
    transition: max-height 0.5s ease; /* Adjust duration and easing as needed */
    max-height: 0; /* Start with max-height 0 for collapsed state */
}

.collapse-custom.show {
    max-height: 1000px; /* A value larger than the largest possible content height */
}

.truncate-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toggle-div {
    opacity: 0.5;
    pointer-events: none; /* Prevent interaction */
    transition: opacity 0.3s ease;
}

/* Enable div when the corresponding checkbox is checked */
input[type="checkbox"]:checked ~ .toggle-div {
    opacity: 1;
    pointer-events: auto; /* Enable interaction */
}

.card-header-small {
    height: auto !important; /* Override any fixed height */
    padding: 0.25rem 0.5rem !important;  /* Adjust padding for compactness */
    min-height: 25px !important;
}

/* Calendar CSS */
#kt_calendar_app {
    width: 100%;           /* Full width of the parent container */
    height: 80vh;          /* Full height of the viewport */
    overflow-y: auto;
  }

.custom-modal-content {
    height: auto;        /* Adjust height dynamically based on content */
    max-height: 70vh;    /* Restrict height to 90% of viewport */
    overflow-y: auto;    /* Enable vertical scrolling if content exceeds height */
}

.fc .fc-timegrid-slot {
    height: 10px !important;  /* Set to the height you prefer for each row */
}

.bg-green {
    background-color: var(--ca-vacation-color) !important;
}
.border-green {
    border: 2px solid var(--ca-vacation-color) !important;
}

/* .icon-border {
    border: 2px solid blue !important;
}

.green-circle-wrapper {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 2em;
  height: 2em;
  background-color: var(--ca-vacation-color);
  border: 0.1em solid var(--ca-vacation-color);
  border-radius: 50%;
}

.green-circle-wrapper i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1em;         
  line-height: 1;
} */

.custom-font-fa {
    font-weight: 500 !important;
}


/* --- start: Custom button --- */
.fc .fc-toolbar .fc-toolbar-chunk .btn-primary {
    color: #000000 !important;
    background-color: #e9e9e9 !important;
    border: 1px solid #c7c7c7;
}

/* Hover state */
.fc .fc-toolbar .fc-toolbar-chunk .btn-primary:hover {
    color: #000000 !important;
    background-color: #d4d4d4 !important;
    border-color: #c7c7c7 !important;
}

/* Active / Focus / Pressed state */
.fc .fc-toolbar .fc-toolbar-chunk .btn-primary:active,
.fc .fc-toolbar .fc-toolbar-chunk .btn-primary.active,
.fc .fc-toolbar .fc-toolbar-chunk .btn-primary:focus {
    color: #000000 !important;
    background-color: #c7c7c7 !important;
    border-color: #bbbbbb !important;
    box-shadow: none !important;
}

/* Disabled state */
.fc .fc-toolbar .fc-toolbar-chunk .btn-primary:disabled,
.fc .fc-toolbar .fc-toolbar-chunk .btn-primary.disabled {
    color: #000000 !important;
    background-color: #F9F9F9 !important;
    border-color: #F9F9F9 !important;
}

.btn.custom-secondary {
    color: #000000 !important;
    background-color: #e9e9e9 !important;
    border: 1px solid #c7c7c7;
}

.btn.custom-secondary:hover {
    color: #000000 !important;
    background-color: #d4d4d4 !important;
    border-color: #c7c7c7 !important;
}

.btn.custom-secondary:active,
.btn.custom-secondary.active,
.btn.custom-secondary:focus {
    color: #000000 !important;
    background-color: #c7c7c7 !important;
    border-color: #bbbbbb !important;
    box-shadow: none !important;
}

.btn.custom-secondary:disabled,
.btn.custom-secondary.disabled {
    color: #000000 !important;
    background-color: #F9F9F9 !important;
    border-color: #F9F9F9 !important;
}


/* --- end: Custom button --- */
.work-template {
    inset: -1px;
    color: white !important;

    /* background uses variables */
    background:
        var(--svg-bg),
        var(--bg-color) !important;

    overflow: hidden;
}
:root {
    --ca-work-color: #117a8b; 
    --ca-doctor-color: #feac4f;
    --ca-vacation-color: #5ebd74;
    --ca-unpaid-leave-color: #e56874;

    --ca-sick-leave-color: #feac4f;
    --ca-other-color: #feac4f;
    --ca-workoutput: #afadad;
    --ca-home-office-color:#117a8b; 

    /* Full solid SVG */
    --svg-full-work: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%23117a8b' stroke-width='2'/%3e%3c/svg%3e");
    --svg-full-doctor: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%23feac4f' stroke-width='2'/%3e%3c/svg%3e");
    --svg-full-unpaid: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%23e56874' stroke-width='2'/%3e%3c/svg%3e");
    --svg-full-vacation: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%235ebd74' stroke-width='2'/%3e%3c/svg%3e");

    /* Dashed SVGs */
    --svg-dashed-vacation: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%235ebd74' stroke-width='2' stroke-dasharray='10%2c10' stroke-linecap='square'/%3e%3c/svg%3e");
    --svg-dashed-unpaid: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%23e56874' stroke-width='2' stroke-dasharray='10%2c10' stroke-linecap='square'/%3e%3c/svg%3e");
}

.fc-question-mark {
    color: #ff9a15 !important;
}

/* Work events */
.fc-event-work,
.fc-event-home-office {
    --bg-color: var(--ca-work-color);
    --border-color: var(--ca-work-color);
    --svg-bg: var(--svg-full-work);
}

/* Doctor / default events */
.fc-event-sick-leave,
.fc-event-default,
.fc-event-other,
.fc-event-doctor {
    --bg-color: var(--ca-doctor-color);
    --border-color: var(--ca-doctor-color);
    --svg-bg: var(--svg-full-doctor);
}

/* Vacation events */
.fc-event-vacation-approved {
    --bg-color: var(--ca-vacation-color);
    --border-color: var(--ca-vacation-color);
    --svg-bg: none;
}

.fc-event-vacation-pending {
    --bg-color: linear-gradient(to right, var(--ca-vacation-color) 6px, transparent 2px);
    --svg-bg: var(--svg-dashed-vacation);
    color: black !important;
    border: none !important;
}

.fc-event-vacation-declined {
    --bg-color: linear-gradient(to right, var(--ca-vacation-color) 6px, transparent 2px);
    --border-color: var(--ca-vacation-color);
    --svg-bg: var(--svg-full-vacation);
    color: black !important;
}

/* Unpaid leave events */
.fc-event-unpaid-leave-approved {
    --bg-color: var(--ca-unpaid-leave-color);
    --border-color: var(--ca-unpaid-leave-color);
    --svg-bg: var(--svg-full-unpaid);
}

.fc-event-unpaid-leave-pending {
    --bg-color: linear-gradient(to right, var(--ca-unpaid-leave-color) 6px, transparent 2px);
    --svg-bg: var(--svg-dashed-unpaid);
    color: black !important;
    border: none !important;
}

.fc-event-unpaid-leave-declined {
    --bg-color: linear-gradient(to right, var(--ca-unpaid-leave-color) 6px, transparent 2px);
    --border-color: var(--ca-unpaid-leave-color);
    --svg-bg: var(--svg-full-unpaid);
    color: black !important;
}

.fc-event-holiday { 
    background-color: #9371d1  !important; 
    border-color: #9371d1 !important;
    color: rgb(255, 255, 255) !important;
    margin-bottom: 0.5rem;
    inset: -1px !important;
}

.fc-event-workoutput { 
    background-color: #afadad !important; 
    border-color: #afadad !important;
    color: rgb(255, 255, 255) !important;
}

.fc-inset {
    inset: -1px;
}

/* Option 1 */
/*
background: rgb(221, 221, 221);
color:rgba(0, 0, 0, 1);
.fc-event-work { 
    background-color: #227780 !important; 
    color: rgb(255, 255, 255) !important;
}
.fc-event-home-office { 
    background-color: #4b97a8 !important; 
    color: rgb(255, 255, 255) !important;
}

.fc-event-doctor { 
    background: 
        linear-gradient(to right, #f28a5a 6px, transparent 2px), 
        #f28a5a1a !important;
    border: 1.5px solid #f28a5a !important;
}
.fc-event-sick-leave { 
    background: 
        linear-gradient(to right, #f28a5a 6px, transparent 2px), 
        #f28a5a1a !important;
    border: 1.5px solid #f28a5a !important;
}
.fc-event-default { 
    background: 
        /*linear-gradient(to right, #f28a5a 6px, transparent 2px), 
        #f28a5a1a !important;
    border: 1.5px solid #f28a5a !important;
}
.fc-event-other { 
    background: 
        linear-gradient(to right, #f28a5a 6px, transparent 2px), 
        #f28a5a1a !important;
    border: 1.5px solid #f28a5a !important;
}
.fc-event-workoutput { 
    background: rgb(221, 221, 221);
    color:rgba(0, 0, 0, 1);
}

.fc-event-vacation { 
    background: linear-gradient(to right, rgba(90, 209, 222, 1) 6px, transparent 2px) !important;
    border: 1.5px solid rgba(90, 209, 222, 1) !important;
}

.fc-event-vacation-pending {
    background:
        linear-gradient(to right, rgba(90, 209, 222, 1) 6px, transparent 2px),
        url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%235ad1de' stroke-width='2' stroke-dasharray='10%2c 10' stroke-dashoffset='8' stroke-linecap='square' shape-rendering='crispEdges'/%3e%3c/svg%3e") !important;
}

.fc-event-vacation-approved { 
    background: 
        linear-gradient(to right, rgba(90, 209, 222, 1) 6px, transparent 2px),
        linear-gradient(rgba(90, 209, 222, 0.1), rgba(90, 209, 222, 0.1));
    border: 1px solid rgba(90, 209, 222, 1) !important;
}
.fc-event-vacation-declined { 
    background: linear-gradient(to right, rgba(90, 209, 222, 1) 6px, transparent 2px) !important;
    border: 1.5px solid rgba(90, 209, 222, 1) !important;
}

.fc-event-unpaid-leave { 
    border: 1.5px solid rgb(0, 62, 7) !important;
    background: 1.5px solid rgb(0, 62, 7, 0.1) !important;
}

.fc-event-unpaid-leave-pending {
    background: 
        linear-gradient(to right, rgba(194, 32, 46, 1) 6px, transparent 2px),
        url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%23C2202EFF' stroke-width='2' stroke-dasharray='10%2c10' stroke-dashoffset='0' stroke-linecap='square' shape-rendering='crispEdges' /%3e%3c/svg%3e");
}
.fc-event-unpaid-leave-approved { 
    background: rgba(194, 32, 46, 0.1) !important;
    border: 1.5px solid rgb(194, 32, 46) !important;
}

.fc-event-unpaid-leave-declined {
    background: rgba(194, 32, 46, 0.1) !important;
    border: 1.5px solid rgb(194, 32, 46) !important;
}

.fc-event-holiday { 
    background-color: #e49f9f  !important; 
    border-color: #e49f9f  !important;
    color: rgb(255, 255, 255) !important;
    margin-bottom: 0.5rem;
}
*/
.fc-event.hide-time .fc-event-time {
    display: none;
  }

.fc-daygrid-day-top {
    display: flex;
    justify-content: space-between; 
    align-items: center;
}

/* Custom class for top date grid (month view)*/
.fc-daygrid-day-top-custom {
    display: inline;
    margin-inline-start: 1rem;
}

.total-events {
    background-color: #fff6c0 !important;
}

/*################################### */
.event-containers-wrapper {
    display: flex;
    flex-direction: column; /* Stack child divs vertically */
}

.workoutput-container, .attendance-container {
    flex: 1; /* This makes each container take up equal width */
    padding: 0 10px; /* Optional padding to separate them */
}

.attendance-container:empty,
.workoutput-container:empty,
.holiday-header-container:empty,
.fc-event-workoutput:empty,
.fc-event:empty,
.fc-event-today:empty,
.fc-event:empty,
.fc-event-past:empty,
.fc-event-main:empty,
.fc-daygrid-event-harness:empty {
  display: none !important;
}

.fc-event:has(.fc-event-main:empty) {
    display: none !important;
}

.fc-daygrid-event:has(.fc-event-main:empty) {
    display: none !important;
}


/* GG GAME */
.fc-event-custom {
    display: grid; /* Use grid layout for columns */
    grid-template-columns: 1fr 1fr; /* Two equal-width columns */
    gap: 10px; /* Space between the columns */
    padding: 5px;
}

.fc-event-title-column {
    flex: 1; /* First column takes up remaining space */
    font-weight: bold;
}

.fc-event-outputs-column {
    flex: 1; /* Second column also takes up remaining space */
    padding-left: 10px;
    border-left: 1px solid #ddd;
}

.fc-output-item {
    font-size: 0.85rem;
    color: #666;
}

.fc-day-today  {
    background: #fff6c0 !important;
    border: none !important;
}

/* Ensure that the anchor element doesn't mess up the flex layout */
.fc-daygrid-event {
    display: block; /* Make the link behave like a block-level element */
    width: 100%; /* Ensure it takes up the full width */
  }
  
/* Flex container for the time and title layout */
.fc-event-container {
    display: flex; /* Use flexbox to align content inside the anchor */
    flex-direction: column; /* Make sure the time and title will stack if needed */
    width: 100%;
}

.fc-daygrid-day.fc-day-other {
    opacity: 0.65;           /* Adjust opacity as you like */
}

.fc-event-time-title-row {
    display: grid;
    grid-template-columns: auto 1fr 40%; /* left | flexible middle | right */
    align-items: center;
    width: 100%;
    padding: 5px !important;
    border-radius: 5px !important;
    font-size: 0.75rem !important;
    column-gap: 0.5rem;
}

.fc-event-time-title-row-w {
    display: grid;
    grid-template-columns: auto 40%; /* left | flexible middle | right */
    align-items: center;
    width: 100%;
    padding: 5px !important;
    border-radius: 5px !important;
    font-size: 0.75rem !important;
    column-gap: 0.5rem;
}

.left-col {
    justify-self: start; /* stick to left */
}

.middle-col {
    justify-self: center; /* centered in the flexible space */
    display: flex;
    align-items: center;
}

.right-col {
    justify-self: start;  /* stick to left edge of its column */
    min-width: 0;
}

/* Container for workoutput events */
.fc-event-hours-output {
  display: grid;
  grid-template-columns: auto auto; /* left and right */
  width: 100%;
  padding: 5px !important;
  font-size: 0.75rem !important;
  column-gap: 0.5rem;
  background-color: #e8f5e9; /* optional: light green */
  border-radius: 5px;
}

/* Left column (time or label) */
.fc-event-hours-output .left-col {
  justify-self: start;
  display: flex;
  align-items: center;
}

/* Right column (hours) */
.fc-event-hours-output .right-col {
  justify-self: start;
  margin-left: 60%; /* always starts at 60% */
  display: flex;
  align-items: center;
  font-weight: 600;
}

/* Time column */
.fc-event-time {
    font-size: 0.75rem !important;
    flex: 0 0 50%; /* Set time column to 40% width */
    overflow: hidden;
    text-overflow: ellipsis; /* Show '...' if text is too long */
    white-space: nowrap; /* Prevent text wrapping */
    display: inline-block; /* Ensure it occupies its portion */
    margin-right: 0;
}

/* Title column */
.fc-event-title {
    font-size: 0.75rem !important;
    flex: 0 0 50%; /* Set title column to 60% width */
    overflow: hidden;
    text-overflow: ellipsis; /* Show '...' if text is too long */
    white-space: nowrap; /* Prevent text wrapping */
    display: inline-block; /* Ensure it occupies its portion */
}

.switch {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 17px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 17px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 13px;
    width: 13px;
    border-radius: 50%;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.4s;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(13px);
}

.custom-bottom-border {
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color:  #F1F1F4;
}

.custom-bottom-border-dashed {
    border-bottom-width: 1px;
    border-bottom-style: dashed;
    border-bottom-color:  #F1F1F4;
}

/* Shared */
tr[data-type] {
    cursor: pointer;
    transition: background-color 0.2s !important;
}

/* ASSIGNED = green background, white hover */
.assigned-general {
    background-color: #d4edda !important;
    transition: background-color 0.2s !important;
}

.assigned-general:hover {
    background-color: #f0f0f0 !important;
    
}
.available-general {
    background-color: #f0f0f0 !important;
    transition: background-color 0.2s !important;
}

.available-general:hover td {
    border: 1px solid black;
}

.row-green-hover {
    background-color: #ffffff !important; /* Default neutral background */
    transition: background-color 0.2s ease;
}

.row-green-hover:hover {
    background-color: #d4edda !important; /* Green on hover */
}

.row-white-hover {
    background-color: #d4edda !important; /* Default neutral background */
    transition: background-color 0.2s ease;
}

.row-white-hover:hover {
    background-color: #ffffff !important; /* Green on hover */
}

@media (max-height: 850px) {
    #kt_app_sidebar ul.nav span {
      font-size: .75rem !important; /* Shrink text */
    }
  
    #kt_app_sidebar ul.nav i,
    #kt_app_sidebar ul.nav svg {
        font-size: 1.25rem !important;
    }
  }

.custom-popover {
    font-family: sans-serif !important;
    font-style: normal !important;
}


/* Single select */
.select2-container .select2-selection--single {
    border-radius: 0.9rem !important;  /* Adjust for more or less roundness */
    border: 1px solid #ccc;
    height: 38px;
    padding: 4px 10px;
  }
  
  /* Multiple select */
  .select2-container .select2-selection--multiple {
    border-radius: 0.9rem !important;
    border: 1px solid #ccc;
    min-height: 38px;
  }

  .select2-container.active-filter {
    border: 0.15rem solid #b3d3f1; /* Default border color */
    border-radius: 13px;
}

/* Wrap icon inside search field (left-aligned) */
.select2-container--open .select2-search--dropdown {
    position: relative;
}

/* Add Font Awesome icon */
.select2-container--open .select2-search--dropdown::before {
    content: "\f002"; /* Unicode for fa-magnifying-glass */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 1.3rem;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    pointer-events: none;
    font-size: 14px;
}

/* Push the input text so it doesn't overlap with the icon */
.select2-search__field {
    padding-left: 2rem !important;
}

.short-phone-select2 + .select2-container {
    width: 200px !important;
    margin-bottom: 0.5rem;
  }

.short-phone-select2 + .select2-container {
width: 200px !important;
margin-bottom: 0.5rem;
}

.fs-9-notification {
    font-size: .65rem !important
}

.h-17px {
    height: 17px !important
}
.w-17px {
    width: 17px !important
}

/* Flip the content in the dropdown */
.select2-container--open.select2-container--above .select2-dropdown {
    display: flex;
    flex-direction: column-reverse;
}

.popover-scrollable-custom {
  max-height: 500px;
  overflow-y: auto;
  padding-right: 10px;
  text-align: left;
  font-size: 14px;
  line-height: 1.4;
  min-width: 400px; /* NEW: controls popover width */
  max-width: 600px; /* Optional: set an upper limit */
}

.popover:has(.custom-wide-popover) {
  max-width: 90vw !important;
  width: auto !important;
}

.custom-swal-popup {
    max-width: 600px;
    max-height: 80vh; /* 80% of viewport height */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.custom-html-content {
    overflow-y: auto;
    flex-grow: 1;
    min-height: 0; /* Important to enable flex shrinking */
    max-height: 80vh !important; /* Text scrolls inside, not whole popup */
}

.chart-scroll-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
}

.time-select-dropdown .select2-results__options {
    min-height: 200px !important;
    max-height: 400px !important;
    overflow-y: auto;

    /* prevent dropdown from going outside modal */
    box-sizing: border-box;
    padding: 4px;
}

.dotted-underline {
  text-decoration: underline dotted;
}

/* Ensure approval field <p> inside any modal is hidden before JS runs */
.modal p:has(.approval-field) {
    display: none;
}

/* Fallback for older browsers: add class to wrapper <p> via JS before modal opens */
.approval-hidden {
    display: none !important;
    visibility: hidden;
}

.input-has-value .form-control {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

.hover-popover {
    background: white;
    color: #111;
    border-radius: 0.25rem;
    padding: 0.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 10000;
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-line;
    word-break: break-word;
    position: absolute;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
}

#toast-container {
    z-index: 999999;
}