﻿/* Override some variables for styles */
:root {
    --bs-primary: #188cde;
    --bs-primary-rgb: rgb(24, 140, 222);
}

/* ------------------------------------------------------------ */
/* -------------------- Main Page Layout ---------------------- */
/* ------------------------------------------------------------ */

html {
    font-size: 16px;
    position: relative;
    min-height: 100%;
}

textarea {
    resize: none;
}

/* Cookie Consent */
.pm__table-td {
    white-space: pre-wrap !important;
}

/* Header */
header.page-header-container {
    height: 60px;
    width: 100%;
}

.header-nav-container {
    top: 0px;
    left: 0px;
    position: fixed;
    height: 59px;
    width: 100%;
    background: #fff;
    z-index: 999;
    display: flex;
    flex-direction: row;
    padding: 7px 15px;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 0.25rem 0.75rem rgb(0 0 0 / 5%);
}

    .header-nav-container .header-nav-logo-container {
        margin-top: 4px;
    }

        .header-nav-container .header-nav-logo-container img {
            height: 40px;
        }

    .header-nav-container .header-nav-content {
        margin-right: 15px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        flex-grow: 1;
    }

        .header-nav-container .header-nav-content .header-title {
            color: #333;
            font-size: 1.25rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            text-decoration: none;
        }

            .header-nav-container .header-nav-content .header-title:hover {
                color: #222;
                text-decoration: none;
            }

        .header-nav-container .header-nav-content .header-links {
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 10px;
            font-size: 1rem;
        }


/* Global Buttons */
.btn.btn-primary {
    background-color: #188CDE;
}

.btn.btn-border {
    color: #188CDE;
    border: 2px solid #188CDE;
}

/* Main page content (sidebar + page content) */

.page-main-container {
    display: flex;
    flex-direction: row;
    height: calc(100dvh - 61px);
    overflow: hidden;
}

.right-side-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.main-content-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

    .main-content-container .footer {
        margin: 0 -15px;
        width: calc(100% + 30px);
        white-space: nowrap;
        height: 60px;
        line-height: 59px; /* Vertically center the text there */
        padding: 0 15px;
        border-top: 1px solid #ddd;
        z-index: 999;
        background: #fff;
        overflow: hidden;
    }

.sidebar-navigation-container {
    background-color: #fafafa;
    position: relative;
    border-right: 1px solid #ddd;
    min-width: 165px;
    transition: all ease-out 0.25s;
}

.sidebar-nav {
    padding: 10px;
    padding-right:0px;
    height: 100%;
    width: 100%;
    opacity: 1;
    transition: all ease-out 0.25s;
    overflow-y: auto;
}

    /* Webkit scrollbar */
    .sidebar-nav::-webkit-scrollbar {
        visibility: hidden !important;
        width: 3px;
    }

    .sidebar-nav:hover::-webkit-scrollbar {
        visibility: visible;
    }

    .sidebar-nav:hover::-webkit-scrollbar-track {
        box-shadow: inset 0 0 2px grey;
        border-radius: 10px;
    }

    .sidebar-nav:hover::-webkit-scrollbar-thumb {
        background: #17a2b8;
        border-radius: 10px;
    }

        .sidebar-nav:hover::-webkit-scrollbar-thumb:hover {
            background: #0056b3;
        }

/* Mozilla scrollbar */
.sidebar-nav {
    scrollbar-color: transparent transparent;
    scrollbar-width: thin;
}

    .sidebar-nav:hover {
        scrollbar-color: #17a2b8 #ccc;
        scrollbar-width: thin;
    }


/* Sidebar collapsing */
.sidebar-nav-collapse-button {
    position: absolute;
    top: 10px;
    right: 5px;
    width: 25px;
    height: 25px;
    border: 1px solid #17a2b8;
    color: #17a2b8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all ease-out 0.25s;
}

.sidebar-navigation-container.collapsed {
    max-width: 30px;
    min-width: inherit;
}

    .sidebar-navigation-container.collapsed .sidebar-nav {
        opacity: 0;
        pointer-events: none;
    }

    .sidebar-navigation-container.collapsed .sidebar-nav-collapse-button {
        right: 2px;
        transform: rotate(180deg);
    }

/* Sidebar inner styles */

.sidebar-nav > ul > li:first-child {
    /*margin-right: 25px;*/
}

.sidebar-nav .vj-menu-heading {
    padding: 8px 0;
    cursor: pointer;
}

    .sidebar-nav .vj-menu-heading .dropdown-toggle {
        display: inline-flex;
        justify-content: space-between;
        width: 100%;
    }

        .sidebar-nav .vj-menu-heading .dropdown-toggle::after {
            display: none; /* Hide bootstrap toogle arrow (we add our own) */
        }

        .sidebar-nav .vj-menu-heading .dropdown-toggle .vj-menu-heading-arrow {
            border-top: 5px solid;
            border-right: 4px solid transparent;
            border-bottom: 0;
            border-left: 4px solid transparent;
            margin: auto 0 auto 5px;
            transition: transform ease-out 0.25s;
        }

        .sidebar-nav .vj-menu-heading .dropdown-toggle:not(.collapsed) .vj-menu-heading-arrow {
            transform: rotate(180deg);
        }

/* Devexpress Cell Templates */


a.job-link {
    color: #333333;
    text-decoration: underline;
    cursor: pointer;
}

a.candidates-cell {
    text-decoration: none;
    color: #188CDE;
    display: flex;
    align-items: center;
    margin-left: 6px;
}

.chat-cell {
    display: flex;
    align-items: center;
    font-size: 11px;
    color: #707377;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
}

    .chat-cell img {
        width: 28px;
        margin-right: 8px;
    }

/* Account styles */
.validation-summary-errors ul {
    list-style: none;
    padding: 0;
}

/* ------------------------------------------------------------ */
/* ---------------- END of Main Page Layout ------------------- */
/* ------------------------------------------------------------ */

/* ------------------------------------------------------------ */
/* ----------- START of Devextreme Override Styles ------------ */
/* ------------------------------------------------------------ */

/* Make toasts always on top */
.dx-toast-wrapper {
    z-index: 99999 !important;
}

/* Checkbox in grid selection always visible */
.dx-datagrid-rowsview .dx-select-checkboxes-hidden .dx-select-checkbox {
    display: inline-block !important;
}

/* Global DevExpress styles */
body, .dx-widget, .dx-overlay-wrapper {
    font-family: 'Roboto', sans-serif !important;
}

.dx-popup-title {
    border-bottom: none;
}

/* Grid header styles */
tr.dx-row.dx-column-lines.dx-header-row {
    background: #188cde !important;
    color: white !important;
}

span.dx-header-filter.dx-header-filter-empty {
    color: white;
}

/* Save button in data grid edit forms style */
.dx-datagrid-edit-popup .dx-toolbar div[aria-label="Save"]:not(.dx-state-hover):not(.dx-state-active),
.dx-datagrid-edit-popup .dx-toolbar div[aria-label="Запази"]:not(.dx-state-hover):not(.dx-state-active) {
    background-color: #188cde;
    color: #fff;
}

/* Default Button blue color change */
.dx-button-mode-contained.dx-button-default {
    background-color: #188cde;
}

    .dx-button-mode-contained.dx-button-default.dx-state-active {
        background-color: #1579c1;
    }

    .dx-button-mode-contained.dx-button-default.dx-state-focused {
        background-color: #167fca;
    }

    .dx-button-mode-contained.dx-button-default.dx-state-hover {
        background-color: #1782cf;
    }

.ai-format-button .dx-button-content {
    background-image: url('/images/ai-background.png');
    background-size: cover;
    height: 45px;
    color: white;
    width: 206px;
    font-size: 16px;
}

    .ai-format-button .dx-button-content .dx-button-text {
        margin-left: 24px !important;
    }

/* ------------------------------------------------------------ */
/* ------------ END of Devextreme Override Styles ------------- */
/* ------------------------------------------------------------ */

/* ------------------------------------------------------------ */
/* --------- START of Devextreme Customization Styles --------- */
/* ------------------------------------------------------------ */

.vj-dx-popup-no-border-radius .dx-overlay-content {
    border-radius: 0;
}

.vj-dx-no-popup-title-padding .dx-popup-title {
    padding: 0;
}

.vj-dx-no-popup-content-padding .dx-popup-content {
    padding: 0;
}

/* ------------------------------------------------------------ */
/* ---------- END of Devextreme Customization Styles ---------- */
/* ------------------------------------------------------------ */


/* Mobile Styles */
@media (max-width: 1200px) {
    html {
        font-size: 14px;
    }

    header.page-header-container {
        height: 39px;
    }

    .header-nav-container {
        height: 39px;
        padding: 2px 6px;
    }

        .header-nav-container .header-nav-content .header-links .nav-link {
            padding: 3px 15px;
        }

        .header-nav-container .header-nav-logo-container img {
            height: 28px !important;
        }

        .header-nav-container .header-nav-content {
            margin-right: 0px !important;
        }

    .page-main-container {
        height: calc(100dvh - 40px);
    }

    .right-side-container {
        padding: 10px;
    }

    .sidebar-nav {
        padding: 5px;
    }

    .main-content-container .footer {
        margin: 0 -5px;
        width: calc(100% + 10px);
        height: 30px;
        line-height: 29px;
    }

    .dx-toolbar .dx-icon.dx-icon-close {
        font-size: 30px;
    }

    .dx-toolbar .dx-closebutton {
        margin-right: 10px;
        margin-top: 10px;
    }
}

@media (max-width: 967px) {
    html {
        font-size: 12px;
    }

    .message-send-input {
        font-size: 16px !important;
    }
}

@media only screen and (max-width : 768px) {
    .job-info-popup-content {
        width: 100%;
    }

    .job-info-with-pic {
        flex-direction: column;
    }

    .job-info-without-pic {
        display: block;
    }

    #job-info-popup-content .right {
        margin-left: unset;
        width: 100%;
    }

    #job-info-popup-content .left {
        width: 100%;
    }
}
