﻿/* Sofia Sans (variable, self-hosted) */
/*@font-face {
  font-family: 'Sofia Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/sofia-sans/sofia-sans-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Sofia Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/sofia-sans/sofia-sans-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Sofia Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/sofia-sans/sofia-sans-greek.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Sofia Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/sofia-sans/sofia-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Sofia Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/sofia-sans/sofia-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sofia Sans';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/sofia-sans/sofia-sans-cyrillic-ext-italic.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Sofia Sans';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/sofia-sans/sofia-sans-cyrillic-italic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Sofia Sans';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/sofia-sans/sofia-sans-greek-italic.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Sofia Sans';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/sofia-sans/sofia-sans-latin-ext-italic.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Sofia Sans';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/sofia-sans/sofia-sans-latin-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}*/

@font-face {
    font-family: "Sofia Sans";
    src: url(../fonts/Bebas_Neue/BebasNeue-Regular.ttf) format("truetype");
    font-weight: 100 900;
}

@font-face {
    font-family: "Sofia Sans";
    src: url(../fonts/SofiaSans-Regular.ttf) format("truetype");
    font-weight: 400;
}

@font-face {
    font-family: "Sofia Sans";
    src: url(../fonts/SofiaSans-SemiBold.ttf) format("truetype");
    font-weight: 600;
}

@font-face {
    font-family: "Sofia Sans";
    src: url(../fonts/SofiaSans-Bold.ttf) format("truetype");
    font-weight: 700;
}

@font-face {
    font-family: "Sofia Sans";
    src: url(../fonts/SofiaSans-ExtraBold.ttf) format("truetype");
    font-weight: 800;
}

:root {
    --bs-body-font-family: 'Sofia Sans', system-ui, -apple-system, sans-serif;
}

html, body {
    font-family: 'Sofia Sans', system-ui, -apple-system, sans-serif;
    font-weight: 400;
}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}


.input-group-append {
    background-color: #f8f9fb;
}

.input-group-text {
    background-color: #f8f9fb;
    padding: 0.49rem 10px 13px;
    font-weight: 700;
}

.button-pid {
    background-color: #24bf6a !important;
}

.btn-default {
    background-color: #f8f9fa;
    border-color: #ddd;
    color: #444;
}


.form-control {
    padding: 0.375rem 0.75rem;
    height: unset;
}

.form-group {
    margin-bottom: 1rem;
    position: relative !important;
}

.dt-container .dt-paging {
    display: flex;
    justify-content: flex-end;
}

.dt-paging-button {
    margin-left: 5px !important;
}

#toast-container > div {
    opacity: 1 !important;
}


.toast-error {
    background-color: #BD362F !important;
}

.form-control-decimal {
    text-align: right;
}

.icon-20 {
    font-size: 20px;
}

a.nav-item {
    color: #0077cc;
}

.button-150 {
    min-width: 150px;
}

.breadcrumb {
    --bs-breadcrumb-padding-x: 0;
    --bs-breadcrumb-padding-y: 0;
    --bs-breadcrumb-margin-bottom: 1rem;
    --bs-breadcrumb-bg:;
    --bs-breadcrumb-border-radius:;
    --bs-breadcrumb-divider-color: var(--bs-secondary-color);
    --bs-breadcrumb-item-padding-x: .5rem;
    --bs-breadcrumb-item-active-color: var(--bs-secondary-color);
    display: flex;
    flex-wrap: wrap;
    padding: var(--bs-breadcrumb-padding-y) var(--bs-breadcrumb-padding-x);
    margin-bottom: var(--bs-breadcrumb-margin-bottom);
    font-size: var(--bs-breadcrumb-font-size);
    list-style: none;
    background-color: var(--bs-breadcrumb-bg);
    border-radius: var(--bs-breadcrumb-border-radius)
}

.breadcrumb-item + .breadcrumb-item {
    padding-left: var(--bs-breadcrumb-item-padding-x)
}

    .breadcrumb-item + .breadcrumb-item:before {
        float: left;
        padding-right: var(--bs-breadcrumb-item-padding-x);
        color: var(--bs-breadcrumb-divider-color);
        content: var(--bs-breadcrumb-divider, "/")
    }

.breadcrumb-item.active {
    color: var(--bs-breadcrumb-item-active-color)
}

.shadow, .page .box {
    box-shadow: var(--bs-box-shadow) !important
}

.shadow-sm {
    box-shadow: var(--bs-box-shadow-sm) !important
}

.shadow-lg {
    box-shadow: var(--bs-box-shadow-lg) !important
}

.shadow-none {
    box-shadow: none !important
}

.padding-box {
    padding: 1rem;
}


.pid-type {
    max-width: 100px;
}


.ul-radio-button input[type="radio"] {
    display: none;
}

.ul-radio-button {
    display: flex;
    flex-direction: row;
    justify-content: stretch;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

    .ul-radio-button li {
        flex: 1;
        margin: 0px;
        /* padding: 2px;*/
        background: var(--buttons-buttons-style1-empty);
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }


    .ul-radio-button input[type="radio"]:checked + label {
        background: var(--buttons-buttons-style1-normal);
        color: var(--text-text-inverted);
    }

    .ul-radio-button label {
        padding: 0.5rem;
        background: var(--buttons-buttons-style1-empty);
        border: none;
        cursor: pointer;
        z-index: 90;
        width: 100%;
        height: 100%;
        text-align: center;
    }

        .ul-radio-button label:hover {
            background: var(--buttons-buttons-style1-empty-hover);
        }

    .ul-radio-button input:disabled + label {
        background: #ccc;
    }

/*.form-check-input {
    width: 1rem;
    height: 1rem;
    margin-top: 0;
    margin-right: 0.5rem;
    border: 1px solid #4d7b94;
}

.form-check-input:checked {
    background-color: #4d7b94;
    background-size: 18px;
}
*/


#toast-container > div {
    opacity: 1 !important;
}

:root,
[data-bs-theme=light] {
    --bs-success-bg-subtle: #198754;
}

.toast-error {
    background-color: #BD362F !important;
}

.u-btn--add {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    min-width: unset;
    padding: 1rem;
    color: #0077b6;
    background-color: transparent;
    border: 1px solid #0077b6;
}

    .u-btn--add:disabled {
        border: 1px solid #99a3a7;
    }

    .u-btn--add:before {
        content: '';
        display: block;
        margin-right: 1rem;
        width: 18px;
        height: 18px;
        background-image: url(../img/bc/add-blue.svg);
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;
    }

    .u-btn--add[aria-label] {
        padding: 1rem;
    }

        .u-btn--add[aria-label]::before {
            margin-right: 0;
        }

        .u-btn--add[aria-label]:hover, .u-btn--add[aria-label]:focus {
            background-color: #99c9e2;
        }

            .u-btn--add[aria-label]:hover:before, .u-btn--add[aria-label]:focus:before {
                background-image: url(../img/bc/add-blue.svg);
            }

    .u-btn--add:hover, .u-btn--add:focus {
        color: #0077b6;
        background-color: #99c9e2;
    }

        .u-btn--add:hover:before, .u-btn--add:focus:before {
            background-image: url(../img/bc/add-blue.svg);
        }

.add-width {
    min-width: 12rem;
}

.sidebar-nav .sidebar-group {
    margin-bottom: 8px;
}

.sidebar-nav .nav-link {
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
}

    .sidebar-nav .nav-link:hover {
        background-color: #f1f3f5;
    }

.sidebar-submenu {
    padding-left: 12px;
    margin-top: 4px;
}

    .sidebar-submenu .nav-link {
        padding: 8px 16px;
        font-size: 0.95rem;
    }


.btn-info {
    color: #fff;
    background-color: #17a2b8;
    border-color: #17a2b8;
}

    .btn-info:hover {
        color: #fff;
        background-color: #138496;
        border-color: #117a8b;
    }

    .btn-info:focus, .btn-info.focus {
        box-shadow: 0 0 0 0.2rem rgba(58, 176, 195, 0.5);
    }

    .btn-info.disabled, .btn-info:disabled {
        color: #fff;
        background-color: #17a2b8;
        border-color: #17a2b8;
    }

    .btn-info:not(:disabled):not(.disabled):active, .btn-info:not(:disabled):not(.disabled).active,
    .show > .btn-info.dropdown-toggle {
        color: #fff;
        background-color: #117a8b;
        border-color: #10707f;
    }

        .btn-info:not(:disabled):not(.disabled):active:focus, .btn-info:not(:disabled):not(.disabled).active:focus,
        .show > .btn-info.dropdown-toggle:focus {
            box-shadow: 0 0 0 0.2rem rgba(58, 176, 195, 0.5);
        }

.btn-tool {
    font-size: 1.3rem !important;
}

.icon-bold {
    -webkit-text-stroke: 2px; /* Simulates bold effect */
}

    .icon-bold:hover {
        -webkit-text-stroke: 3px; /* Thicker on hover */
    }

.card-title {
    font-size: 1.3rem !important;
    font-weight: 700 !important;
}

.scanner-page-container {
    width: 100%;
    height: 72vh;
    background-color: #ccc;
    border: 1px solid grey;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 15px;
    margin: 5px 0 5px 0;
}

/* The Overlay (background) */
.overlay-loader {
    /* Height & width depends on how you want to reveal the overlay (see JS below) */
    height: 100%;
    width: 100%;
    position: fixed; /* Stay in place */
    z-index: 100000; /* Sit on top */
    left: 0;
    top: 0;
    background-color: #777; /* Black fallback color */
    background-color: rgba(7,7,7, 0.8); /* Black w/opacity */
    overflow: hidden; /* Disable horizontal scroll */
    transition: 0.5s; /* 0.5 second transition effect to slide in or slide down the overlay (height or width, depending on reveal) */
    display: none;
}

.loader-content {
    position: relative;
    top: 25%; /* 25% from the top */
    width: 100%; /* 100% width */
    text-align: center; /* Centered text/links */
    margin-top: 30px; /* 30px top margin to avoid conflict with the close button on smaller screens */
}

.margin-r-5 {
    margin-right: 5px;
}

.thumbnail-container {
    margin-bottom: 15px;
}

    .thumbnail-container > a.thumbnail {
        cursor: default;
    }

    .thumbnail-container > .thumbnail > img {
        width: 100%;
    }

.preview-page-container {
    width: 100%;
    height: 75vh;
    background-color: #ccc;
    border: 1px solid grey;
    overflow-y: hidden;
    overflow-x: hidden;
    padding: 0 15px 0 15px;
    margin: 5px 0 5px 0;
}

.docx-page-container {
    width: 100%;
    height: 75vh;
    background-color: #ccc;
    border: 1px solid grey;
    overflow-y: auto;
    overflow-x: hidden;
    margin: 5px 0 5px 0;
}

#previewHolder > .embeded-element {
    text-align: center;
}

    #previewHolder > .embeded-element > .embeded-object {
        width: 100%;
        min-height: 75vh;
        max-width: 794px;
        background-color: ivory
    }
/* Sidebar */
.sidebar {
    width: 260px;
    min-width: 260px; /* IMPORTANT */
    height: 100%;
    background: #fff;
    transition: all 0.3s ease;
}

/* Hide it AND remove its space */
.sidebar-hidden .sidebar {
    transform: translateX(-100%);
    margin-left: -300px;
}

/* Main content */
.main-content {
    transition: margin-left 0.3s ease;
}

/* Hidden state */
.sidebar-hidden .sidebar {
    transform: translateX(-100%);
}

.sidebar-hidden .main-content {
    margin-left: 0;
}

/* Toggle button always visible */
.toggle-btn {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1100; /* above sidebar */
}

/* Vertical toggle button */
.sidebar-toggle {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 80px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-left: none;
    border-radius: 0 6px 6px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1100;
    transition: all 0.3s ease;
    background-color: #f0f0f0;
}

    /* Icon */
    .sidebar-toggle i {
        font-size: 14px;
        transition: transform 0.3s ease;
    }

    /* Hover effect */
    .sidebar-toggle:hover {
        background: #f5f5f5;
    }

/* When sidebar is hidden */
.sidebar-hidden .sidebar-toggle {
    left: 0;
    border-left: 1px solid #ddd;
    border-right: none;
    border-radius: 0 6px 6px 0;
}

    /* Flip arrow when closed */
    .sidebar-hidden .sidebar-toggle i {
        transform: rotate(180deg);
    }


.form-control {
    padding: 0.375rem 0.75rem;
    height: unset;
}

.form-group {
    margin-bottom: 1rem;
    position: relative !important;
}
