[x-cloak] { display: none !important; }

/* FullCalendar colour overrides */
:root {
    --fc-button-bg-color: #7fa83d;
    --fc-button-border-color: #7fa83d;
    --fc-button-active-bg-color: #6c8c33;
    --fc-button-active-border-color: #6c8c33;
    --fc-button-hover-bg-color: var(--fc-button-active-bg-color);
    --fc-button-hover-border-color: var(--fc-button-active-border-color);
    --responsive-table-width: auto;
}

.fc-daygrid-dot-event {
    color: #000;
}

.fc-bg-event {
    overflow: hidden;
}

.fc-event-title {
    word-break: break-all;
    white-space: break-spaces;
}

.fc-toolbar-chunk:not(:nth-child(2)) {
    white-space: nowrap;
}

@media (max-width: 724px) {
    .fc-header-toolbar {
        flex-direction: column; /* Change to column direction */
        gap: 10px;
    }
    .uk-table, .uk-table th {
        font-size: 14px;
    }
    .uk-table-small td, .uk-table-small th {
        padding: 2px 4px;
    }
}

/* UIkit overrides */

.uk-navbar-container:not(.uk-navbar-transparent) {
	background: #263238;
}

.uk-navbar-nav > li > a {
	color: #fff;
}

.uk-navbar-nav > li > a:hover {
	color: #a5d24e;
}

.uk-navbar-nav > li > a:active {
    color: #b9b9b9;
}

.uk-align-right {
    margin-bottom: inherit;
}

a, .uk-link {
    color: #7fa83d;
}

.uk-panel-scrollable {
    resize: vertical;
}

.uk-height-small {
    height: 150px;
}

.uk-height-medium {
    height: 300px;
}

.uk-height-large {
    height: 450px;
}

.uk-height-max-small {
    max-height: 150px;
}

.uk-height-max-medium {
    max-height: 300px;
}

.uk-height-max-large {
    max-height: 450px;
}

.uk-button-primary, .uk-label, .uk-badge, .uk-subnav-pill > .uk-active > a {
    background-color: #7fa83d;
}

.uk-label-success {
    background-color: #32d296;
}

.uk-label-warning {
    background-color: #faa05a;
}

.uk-label-danger {
    background-color: #f0506e;
}

.uk-button-primary:not(:disabled):hover {
    background-color: #6c8c33;
}

.uk-button-primary:not(:disabled):active {
    background-color: #6c8c33;
}

.uk-checkbox, .uk-checkbox:focus {
    background-color: #fff;
}

.uk-checkbox:checked {
    background-color: #7fa83d;
}

.uk-checkbox:checked:focus {
    background-color: #6c8c33;
}

.uk-checkbox:disabled {
    background-color: #f8f8f8;
}

::selection {
    background: #6c8c33;
}

svg {
    vertical-align: text-bottom;
}

.uk-pagination svg {
    vertical-align: baseline;
}

.uk-tab > .uk-active > a {
	border-color: #a6cc3c;
}

.uk-list > :nth-child(n+2) {
    margin-top: 0;
}

.uk-list > :not(:last-child) {
    margin-bottom: 10px;
}

@media (max-width: 959px) {
    .uk-table-responsive td {
        display: flex;
    }
    .uk-table-responsive td::before {
        content: attr(data-label);
        color: #999;
        text-transform: uppercase;
        width: var(--responsive-table-width);
        text-align: right;
        display: inline-block;
        padding-right: 10px;
    }
    .uk-table-responsive tr:nth-child(2) {
        border-top: none;
    }
    .uk-table-responsive tr:nth-child(n+3) {
        margin-top: 10px;
        padding-top: 8px;
    }
}

.uk-input:not(input) {
    height: fit-content;
}

/* UIkit supplements */

.uk-flex-tag {
    gap: 0 10px;
}

.uk-flex-tag > div {
    height: 38px;
    display: flex;
    align-items: center;
}

.uk-label-muted {
    background-color: #A9A9A9;
}

.uk-label-tag {
    visibility: hidden;
    user-select: none;
    padding: 1px 5px;
}

.uk-label-tag-close {
    visibility: visible;
    position: absolute;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    transform-origin: top left;
    transition: transform 0.2s ease;
}

.uk-label-tag-close > span:last-of-type {
    display: inline-flex;
    box-sizing: border-box;
    width: 0;
    overflow: hidden;
    transition: width 0.33s ease;
}

.uk-label-tag-close:hover {
    z-index: 1;
    transform: scale(1.05);
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
}

.uk-label-tag-close:hover > span:last-of-type {
    width: 24px;
}

.uk-label-tag-close > span:last-of-type .uk-icon {
    padding-left: 4px;
}

.uk-input-stealth {
    height: 38px;
    display: inline;
    vertical-align: initial;
    border: 0 none;
    padding: 0 10px;
}

.uk-flex-grow {
    flex-grow: 1;
}

.uk-width-max-medium {
    max-width: 300px;
}

@media (max-width: 639px) {
    .filter-bar .uk-button {
        padding: 0 10px;
    }
}

.uk-table-hover-cell {
    font-size: .875rem;
}

.uk-table-hover-cell thead tr th:nth-child(1),
.uk-table-hover-cell tbody tr td:nth-child(1) {
    position: sticky;
    background-color: white;
    background-clip: padding-box;
    left: 0px;
    max-width: 92px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.uk-table-hover-cell tbody tr td:first-child:has(~ td:hover) {
    background-color: #a6cc3c;
    color: #fff;
}

.uk-table-hover-cell thead tr th:nth-child(n + 2) {
    writing-mode: sideways-rl;
}

.uk-table-hover-cell tbody tr td:nth-child(n + 2) {
    min-width: 32px;
    font-weight: bold;
}

.uk-table-hover-cell tbody tr td:nth-child(n + 2):hover {
    background-color: #a6cc3c;
    color: #fff;
}

.uk-table-tiny th,
.uk-table-tiny td {
  padding: 4px 12px;
}

.table-hover-header {
    background-color: #a6cc3c;
    color: #fff !important;
}

/* Custom classes */

.selected-host svg polygon {
    fill: #FFD700;
}

.ts-nav-img:hover {
    opacity: 0.6;
}

.ts-nav-button {
    color: #fff;
    border-radius: 500px;
}

.ts-nav-button:hover {
    color: #a6cc3c;
    border-color: #a6cc3c;
}

#trashcan {
    border: 2px dashed #888888;
    user-select: none;
}

.colour-tag {
    margin: 0;
	width: 20px;
	height: 20px;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
    vertical-align: middle;
}

.button-icon {
    width: 40px;
    padding: 0;
}

#draggables {
    gap: 10px;
}

.draggable {
    cursor: move;
    padding: 5px 10px;
}

.pending-leave {
    opacity: 0.5;
}

.clr-field-custom {
    display: inline-block;
    position: relative;
    color: transparent;
    top: 1px;
  }

.clr-field-custom input {
	width: 40px;
	height: 40px;
	box-sizing: border-box;
    cursor: pointer;
    margin: 0;
    direction: ltr;
}

.clr-field-custom button {
	width: 40px;
	height: 40px;
	border: 1px solid #ccc;
    box-sizing: border-box;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    padding: 0;
    color: inherit;
    text-indent: -1000px;
    white-space: nowrap;
    overflow: hidden;
    pointer-events: none;
}

.select-time {
    width: 40px;
    line-height: 22px !important;
    direction: rtl;
}

.context-menu {
    user-select: none;
    z-index: 1000;
    padding: 25px;
    background: #fff;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

.context-menu .button-icon svg path {
    fill: #797979;
}

.error-container {
    z-index: 1040;
}

.staff-scroll {
    height: 400px;
}

.cal-block {
    border: 1px solid #e5e5e5;
}

.cal-block-hov {
    background-color: #ffd;
}

.chevron-block:hover {
    background-color: #f2f2f2;
}

.roster-save > div:first-child button {
    line-height: 31px;
}

.pointer {
    cursor: pointer;
}

.restore-events {
    pointer-events: all !important;
}

.no-events {
    pointer-events: none;
    color: #bfbfbf;
}

.autocomplete-item-selected {
    background-color: #a6cc3c;
    color: #fff;
    margin: 0 -10px;
    padding: 0 10px;
}

.autocomplete-container {
    overflow: hidden;
    overflow-y: scroll;
    max-height: 304px;
}

.rope-table tr:not(:first-child) td {
    padding-top: 10px;
}

.rope-table tr td:not(:first-child) {
    padding-left: 20px;
}

.pay-period-start {
    background-color: #a6cc3c;
}

.pay-period-start a {
    color: #fff;
}

th:has(+ .pay-period-start) {
    background-color: var(--fc-non-business-color);
}