@charset "UTF-8";



/* 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-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 */
}

.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-color: #f28a5a !important; 
    color: rgb(255, 255, 255) !important;
}
.fc-event-vacation { 
    background-color: #5ad1de !important; 
    color: rgb(255, 255, 255) !important;
}
.fc-event-sick-leave { 
    background-color: #f28a5a !important; 
    color: rgb(255, 255, 255) !important;
}
.fc-event-unpaid-leave { 
    background-color: #db2c18 !important; 
    color: rgb(255, 255, 255) !important;
}
.fc-event-other { 
    background-color: #f28a5a !important; 
    color: rgb(255, 255, 255) !important;
}
.fc-event-default { 
    background-color: #f28a5a !important; 
    color: rgb(255, 255, 255) !important;
}

.fc-event-workoutput { 
    background-color: #afadad !important; 
    border-color: #afadad !important;
    color: rgb(255, 255, 255) !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; /* Space between the left and right content */
    align-items: center; /* Vertically center items */
}

/* Custom class for top date grid (month view)*/
.fc-daygrid-day-top-custom {
    display: inline;
    margin-inline-start: 1rem;
}


/*################################### */
.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%;
}

/* Flex layout for the time and title */
.fc-event-time-title-row {
    display: flex; /* Align items in a row */
    flex-direction: row; /* Ensure the time and title are side by side */
    justify-content: space-between; /* Distribute space between the time and title */
    padding: 5px;
    border-radius: 5px;
    width: 100%;
  }
  
  /* 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 */
}