/* ---------------------------------------------------
    RUAC COLORS
----------------------------------------------------- */
.text-ruac {
    color: #0169b0;
}

.bg-ruac {
    background-color: #0169b0;
}

.btn-ruac {
    color: #fff;
    background-color: #0169b0;
    border-color: #0169b0;
}

.btn-ruac:hover {
    color: #fff;
    background-color: #01579B;
    border-color: #01579B;
}

.alert-ruac {
    color: #fff;
    background-color: #0169b0;
    border-color: #01579B;
}


.navbar {
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar-btn {
    box-shadow: none;
    outline: none !important;
    border: none;
}

.line {
    width: 100%;
    height: 1px;
    border-bottom: 1px dashed #ddd;
    margin: 40px 0;
}


/* ---------------------------------------------------
    SIDEBAR STYLE
----------------------------------------------------- */

.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
    /*perspective: 1500px;*/
}


#sidebar {
    min-width: 250px;
    max-width: 250px;
    background: #0169b0;
    color: #fff;
    transition: all 0.6s cubic-bezier(0.945, 0.020, 0.270, 0.665);
    transform-origin: bottom left;
}


#sidebar.active {
    margin-left: -250px;
    transform: rotateY(100deg);
}

#sidebar ul.components {
    padding: 20px 0;
    border-bottom: 1px solid #47748b;
}

#sidebar ul p {
    color: #fff;
    padding: 10px;
}

#sidebar ul li a {
    padding: 10px;
    font-size: 1.1em;
    display: block;
}

#sidebar ul li a:hover {
    color: #7386D5;
    background: #fff;
}

#sidebar ul li.active > a,
a[aria-expanded="true"] {
    color: #fff;
}

#sidebar .sidebar-divider {
    padding: 3px 20px;
    text-align: center;
    background: #6e757c;
    border-top: 15px solid #fff;
    border-bottom: 1px solid #fff;
}


/* ---------------------------------------------------
    CONTENT STYLE
----------------------------------------------------- */
#content {
    width: 100%;
    min-height: 100vh;
    transition: all 0.3s;
}

#content .navbar button.control {
    width: 40px;
    height: 40px;
    cursor: pointer;
}

#sidebarCollapse span {
    width: 80%;
    height: 2px;
    margin: 0 auto;
    display: block;
    background: #555;
    transition: all 0.8s cubic-bezier(0.810, -0.330, 0.345, 1.375);
    transition-delay: 0.2s;
}

#sidebarCollapse span:first-of-type {
    transform: rotate(45deg) translate(2px, 2px);
}

#sidebarCollapse span:nth-of-type(2) {
    opacity: 0;
}

#sidebarCollapse span:last-of-type {
    transform: rotate(-45deg) translate(1px, -1px);
}


#sidebarCollapse.active span {
    transform: none;
    opacity: 1;
    margin: 5px auto;
}


/* ---------------------------------------------------
    MEDIAQUERIES
----------------------------------------------------- */
@media (max-width: 768px) {
    #sidebar {
        margin-left: -250px;
        transform: rotateY(90deg);
    }

    #sidebar.active {
        margin-left: 0;
        transform: none;
    }

    #sidebarCollapse span:first-of-type,
    #sidebarCollapse span:nth-of-type(2),
    #sidebarCollapse span:last-of-type {
        transform: none;
        opacity: 1;
        margin: 5px auto;
    }

    #sidebarCollapse.active span {
        margin: 0 auto;
    }

    #sidebarCollapse.active span:first-of-type {
        transform: rotate(45deg) translate(2px, 2px);
    }

    #sidebarCollapse.active span:nth-of-type(2) {
        opacity: 0;
    }

    #sidebarCollapse.active span:last-of-type {
        transform: rotate(-45deg) translate(1px, -1px);
    }

}

/* DASHBOARD CARDS */
@media (min-width: 576px) {
    .card-columns {
        column-count: 1;
    }
}

@media (min-width: 1200px) {
    .card-columns {
        column-count: 2;
    }
}

@media (min-width: 1440px) {
    .card-columns {
        column-count: 2;
    }
}

.log_pic .img-thumbnail {
    max-width: 31px;
}

.btn-group-xs > .btn,
.btn-xs {
    padding: .10rem 0.3rem;
    font-size: .7rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

/* ---------------------------------------------------
    LOGIN
----------------------------------------------------- */
#login {
    width: 100%;
    min-height: calc(100%);
    background: #004272 url("/assets/admin/img/bg-login.jpg") 50% 0 no-repeat;
    background-size: cover;
}

#login-box {
    height: 100vh;
}

@media (max-width: 550px) {
    #login-box {
        width: 100vw;
    }
}

#login-box .ruac_logo {
    width: 100%;
}

#planner_holder {
    max-width: 100%;
    height: calc(100vh - 135px);
    display: block;
    position: absolute;
}

#planner_holder .table.planner {
    overflow-x: auto;
    /*display: block; ha ez ittvan, akkor nem lesz sticky a fejléc */
    margin: 0;
}

#planner_holder .table.planner th {
    padding: 3px;
}

#planner_holder .table.planner.sticky-left tr th:nth-of-type(1) {
    position: sticky;
    left: 0;
    z-index: 100;
    background: #fff;
}

#planner_holder .name-cell {
    width: 250px !important;
    max-width: 250px !important;
    min-width: 250px !important;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

#planner_holder .table.planner.has-planned-work-time .name-cell {
    width: 280px !important;
    max-width: 280px !important;
    min-width: 280px !important;
}

#planner_holder .shift-cell {
    position: relative;
    min-width: 135px;
    padding: 3px;
}

#planner_holder .shift-cell.has-indicator {
    padding: 3px 19px 3px 3px;
}

#planner_holder .planner-cell-indicator {
    display: none;
    font-size: 11px;
    width: 16px;
    height: 17px;
    text-align: center;
    line-height: 16px;
    animation: blinker 1s linear infinite;
    z-index: 9;
    color: #fff;
}

#planner_holder .shift-cell .planner-cell-indicator {
    position: absolute;
    right: 3px;
    top: 3px;
    height: 33px;
    line-height: 34px;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
}

#planner_holder .planner-indicator.type-remote-work {
    display: inline-block;
    color: #ffffff;
    background: #007bff;
}

#planner_holder .planner-indicator.type-no-inout-log {
    display: inline-block;
    color: #ffffff;
    background: #FF9800;
}

#planner_holder .planner-indicator.type-non-worknig-day {
    display: inline-block;
    color: #ffffff;
    background: #929292;
}

#planner_holder .planner-indicator.type-shift {
    display: inline-block;
    color: #656565;
    background: #d8d8d8;
}

#planner_holder .planner-indicator.type-conflict {
    display: inline-block;
    color: #ffffff;
    background: #ff0000;
}

#planner_holder .legends .planner-indicator {
    font-size: 11px;
    line-height: 16px;
    padding: 3px;
}


#planner_holder .planner-shift-select {
    font-size: 13px;
    padding: 3px;
    width: 100%;
}

#planner_holder .shift-cell.has-indicator .planner-shift-select {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

#planner_holder .shift-cell:not(.has-indicator) .planlner-shift-seect {
}

#planner_holder .planner-shift-select.type-shift {
    color: #000000;
}

#planner_holder .planner-shift-select.type-non-worknig-day {
    color: #929292;
}

#planner_holder .planner-shift-select.type-remote-work {
    color: #00a2ff;
}


#planner_holder .planner-shift-select optgroup.type-shift {
    color: #000000;
}

#planner_holder .planner-shift-select optgroup.type-non-worknig-day {
    color: #929292;
}

#planner_holder .planner-shift-select optgroup.type-remote-work {
    color: #00a2ff;
}


#planner_holder .day-columh-header .day-of-week {
    text-align: center;
    display: block;
    font-size: 0.85rem;
}

#planner_holder .day-columh-header .date {
    text-align: center;
    display: block;
    font-size: 1rem;
}

.planner {
    border-collapse: collapse; /* A táblázat határainak egyesítése */
    width: 100%; /* Táblázat szélessége */
    /*border-left: none;*/
    /*border-right: none;*/
}

.planner th, .planner td {
    padding: 8px; /* Cellák közötti térköz */
    /*text-align: left; !* Balra zárt szöveg *!*/
}

/* Az első oszlop stílusa */
.planner tbody tr td.name-cell,
.planner thead tr th:first-child {
    position: sticky !important; /* Rögzített pozíció */
    left: 0; /* Balra rögzítve */
    background-color: white; /* Háttérszín */
    z-index: 101; /* Réteg z-index, hogy a tartalom felett legyen */
    font-weight: bold;
    /*height: 14px;*/
}

#welcome_img {
    pointer-events: none;
}

.carousel-caption {
    position: relative !important;
    right: 0% !important;
    left: 0% !important;
    color: #333 !important;
    text-shadow: none !important;
    padding-bottom: 0 !important;
}

.list-group-item.glow {
    background: #5cb75c;
    color: #fff;
}

#pw-4-1::before,
#pw-2-1::before {
    content: "";
    display: table;
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: -1;
}

.anim_bg {
    background: #3269cd;
    background: linear-gradient(270deg, #3269cd, #5bb85d);
    background-size: 400% 400%;
    -webkit-animation: animatedBackground 9s ease infinite;
    -moz-animation: animatedBackground 9s ease infinite;
    animation: animatedBackground 9s ease infinite;
}

@-webkit-keyframes animatedBackground {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

@-moz-keyframes animatedBackground {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

@keyframes animatedBackground {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

/*DASHBOARD - NEWS TIMELINE*/
ul.timeline {
    list-style-type: none;
    position: relative;
}

ul.timeline:before {
    content: ' ';
    background: #d4d9df;
    display: inline-block;
    position: absolute;
    left: 29px;
    width: 2px;
    height: 100%;
    z-index: 400;
}

ul.timeline > li {
    padding-left: 20px;
}

ul.timeline > li:before {
    content: ' ';
    background: white;
    display: inline-block;
    position: absolute;
    border-radius: 50%;
    border: 3px solid #0169b0;
    left: 20px;
    width: 20px;
    height: 20px;
    z-index: 400;
}

/*COLORPICKER*/
span.colorpicker-input-addon::before {
    display: none !important;
}

span.input-group-text.colorpicker-input-addon svg {
    background: transparent !important;
}

/*RANGE INPUT*/
#field-treshold {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: #d7dcdf;
    outline: none;
    padding: 0;
    margin: 0;
}

#field-treshold::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2c3e50;
    cursor: pointer;
}

#treshold_value {
    display: inline-block;
    position: absolute;
    right: 0;
    top: 100%;
    width: 10%;
    color: #fff;
    text-align: center;
    border-radius: 3px;
    background: #2c3e50;
    padding: 3px 10px;
    margin-left: 8px;
    font-size: 12px;
}

.form-control {
    position: relative;
}

.white {
    color: white;
}

.pointer {
    cursor: pointer;
}

.badge-grey {
    color: white;
    background-color: grey;
}

.form-control.inline {
    width: auto;
    display: inline-block;
}

.valign-middle {
    vertical-align: middle;
}

.form-field {
    padding-left: 30px;
    padding-right: 30px;
    margin-bottom: 20px;
}

.form-field label[for] {
    display: block;
    font-weight: bold;
}

.form-field .bootstrap-select,
.form-field .form-control {
    display: block;
    width: 100% !important;
}

.form-field .bootstrap-select > .dropdown-toggle:after {
    right: 10px;
    position: absolute;
    top: 17px;
}

.form-field.nolabel {
    padding-top: 32px;
}

@media (max-width: 768px) {
    .form-field.nolabel {
        padding-top: 7px;
    }
}

.notifyjs-corner {
    z-index: 9999 !important;
}

table thead tr th {
    background-color: white;
    position: sticky;
    z-index: 1;
    top: 0;
}

.shift-cell .select-container {
    display: inline-flex;
    align-items: center;
    position: relative; /* Hogy az ikon helyesen pozicionálódjon */
}

.shift-cell .icon {
    background-color: #929292; /* Háttérszín az ikonhoz */
    color: white; /* Az ikon színe */
    padding: 0 1px; /* Pici belső margó az ikon körül */
    height: 33px;
    line-height: 34px;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
    font-size: 8px;
    width: 16px;
    text-align: center;
    animation: blinker 1s linear infinite;
    z-index: 9;
    /* Nincs szükség position: absolute-ra */
}

.shift-cell .icon_bg {
    background-color: #5cb75c; /* Háttérszín az ikonhoz */
}

.shift-cell select {
    height: 33px; /* Ugyanaz a magasság, mint az ikon */
    margin-left: -2px; /* Kicsit összehúzva, hogy közvetlenül az ikon után kezdődjön */
    padding-left: 20px; /* Hogy az ikon ne lógjon bele a szövegbe */
    border-radius: 3px; /* Sima sarkok */
}

.planner-mission {
    cursor: pointer;
}