.mt-1 {
    margin-top: var(--zk-pm1);
}

.mt-2 {
    margin-top: var(--zk-pm2);
}

.mb-1 {
    margin-bottom: var(--zk-pm1);
}

.mb-2 {
    margin-bottom: var(--zk-pm2);
}

.mb-3 {
    margin-bottom: var(--zk-pm3);
}

.btn {
    box-sizing: border-box;
    width: max-content;
    height: 34px;
    padding: 6px 12px;
    border-radius: var(--zk-border-radius);
    font-family: var(--zk-font-family);
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 1px 0 12px rgba(0,0,0,0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: var(--zk-primary-color);
    border: solid 1px var(--zk-primary-color);
    color: var(--zk-dark-text);
}

.btn-secondary {
    background: transparent;
    border: solid 1px var(--zk-primary-color);
    color: var(--zk-primary-color);
}

button {
    width: 100%;
    cursor: pointer;
}

button:hover {
    opacity: 0.9;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal_content {
    box-sizing: border-box;
    width: 100%;
    padding: 0;
    background: var(--zk-light-bg);
    position: relative;
    border-radius: var(--zk-border-radius);
    overflow: hidden;
}

.modal_content.reports {
    max-width: 992px;
    height: 860px;
}

.modal_content.manage_notification {
    max-width: 992px;
    height: auto;
}

.modal_confirmation .modal_content {
    height: max-content;
    max-width: 400px;
}

.modal_exit {
    width: 23px;
    height: 23px;
    border: var(--zk-default-border);
    border-radius: var(--zk-border-radius);
    box-shadow: 0 0 4px rgba(0,0,0,0.1);
    display: grid;
    place-content: center;
    cursor: pointer;
    background: var(--zk-light-bg);
    transition: all 0.3s ease-in-out;
}

.modal_exit:hover {
    opacity: .9;
}

.modal_content_head {
    width: calc(100% - 24px);
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--zk-primary-color);
    border-radius: var(--zk-border-radius) var(--zk-border-radius) 0 0;
}

.modal_content_body {
    padding: 0 12px 12px 12px;
    overflow: hidden;
    margin-top: var(--zk-pm2);
}

.modal_content_body.reports {
    height: 798px;
}

.modal_title {
    font-weight: 600;
    font-size: 1.25em;
    color: var(--zk-light-bg);
}

.modal_desc {
    color: var(--zk-desc-text);
    margin-bottom: var(--zk-pm3);
}

.modal_form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    height: calc(100% - 10px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 8px 0 0;
}

.form_buttons {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: var(--zk-pm1);
}

.modal_error {
    font-size: 0.95em;
    border-radius: var(--zk-border-radius);
    padding: 6px 12px;
}

.error_success {

    background: var(--zk-success-color-l);
    color: var(--zk-success-color);
    border: solid 1px var(--zk-success-color);
}

.error_danger {
    background: var(--zk-danger-color-l);
    color: var(--zk-danger-color);
    border: solid 1px var(--zk-danger-color);
}

.modal_info_container {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
}

.modal_info_group {
    width: calc(50% - 12px);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal_info_name {
    font-size: 1.1em;
    font-weight: 600;
}

.modal_info_value {
    color: var(--zk-desc-text);
    font-size: 1.1em;
}

.modal_section_hr {
    margin: 18px 0 12px 0;
    border-bottom: var(--zk-default-border);
    width: 100%;
    position: relative;
}

.modal_section_name {
    position: absolute;
    left: 0px;
    top: -14px;
    background: var(--zk-light-bg);
    padding: 4px 10px;
    font-weight: 700;
    font-size: 1.15em;
    border: var(--zk-default-border);
    border-radius: 4px;
}

.modal_highlist_text {
    font-weight: 700;
}

.modal-col-full {
    width: 100%;
}

.modal-col-half {
    width: 49.5%;
    margin-bottom: auto;
}

.modal_tabs {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0;
}

.modal_tab {
    position: relative;
    top: 1px;
    padding: 4px 6px;
    background: var(--zk-dark-text);
    border: solid 1px rgba(0,0,0,.2);
    cursor: pointer;
}

.modal_tab:not(:first-child) {
    border-left: none;
}

.modal_tab:first-child {
    border-top-left-radius: 4px;
}

.modal_tab:last-child {
    border-top-right-radius: 4px;
}

.modal_tab.active {
    background: var(--zk-light-bg);
    border-bottom-color: #fff;
}

.modal_tabs_content {
    width: calc(100% - 24px);
    height: auto;
    border: solid 1px rgba(0,0,0,.2);
    padding: 12px;
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    border-radius: 0 4px 4px 4px;
}

.modal_tabs_content.active {
    display: grid;
}

.tabs_content_full {
    grid-template-columns: 1fr;
}

.modal_group 
{
    padding: 0 5px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    position: relative;
    width: calc(100% - 10px);
}

.modal_group_sub {
    width: 216px;
    display: flex;
}

.modal_group label, .modal_global_group label {
    font-size: 1.1em;
    text-wrap: nowrap;
}

.modal_group input[type="text"], .modal_group select, .modal_group input[type="date"],
.modal_global_group input[type="text"],
.modal_global_group select,
.modal_global_group input[type="date"],
.modal_global_group input[type="number"] {
    height: 24px;
    font-size: 1.1em;
}

.modal_global_group textarea {
    height: 260px;
    font-size: 1.1em;
    white-space: pre-line;
    padding: 10px;
}

.modal_group textarea {
    box-sizing: border-box;
    border: var(--zk-default-border);
    border-radius: var(--zk-border-radius);
    width: 100%;
    height: 140px;
    padding: 0 10px;
    font-family: var(--zk-font-family);
    font-weight: 300;
    color: rgba(0, 0, 0, 0.75);
    background: transparent;
    resize: none;
}

.modal_tabs_content_item {
    width: calc(100% - 12px);
    padding: 6px;
    border: var(--zk-default-border);
    border-radius: 4px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
}

.modal_reports_content {
    width: 100%;
    height: max-content;
    display: flex;
    flex-direction: column;
}

.modal_global_columns {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.column-full {
    grid-template-columns: 1fr;
}

.modal_reports_hr {
    width: 100%;
    border-bottom: var(--zk-default-border);
    margin-bottom: 10px;
}

.modal_global_column {
    width: 100%;
}

.modal_global_groups {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.modal_global_group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    position: relative;
}

.big_label {
    font-size: 1.3em;
    font-weight: 600;
    text-transform: uppercase;
    display: block;
}
.mb-5 {
    margin-bottom: 5px;
}

.modal_global_group.column {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start
}

.modal_global_group.flex-start{
    justify-content: flex-start;
}

.modal_global_group.flex-end {
    justify-content: flex-end;
}


.input_disabled {
    background: var(--zk-dark-text) !important;
}

label .disabled {
    color: var(--zk-desc-text);
}

.input_number {
    text-align: right;
}

.reports_wz {
    height: 150px !important;
}

.reports_production {
    height: 280px !important;
}

.document_items_content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.document_items_content h5 {
    font-weight: 500;
    font-size: 1.1em;
    width: calc(100% - 8px);
    background: var(--zk-dark-text);
    padding: 4px;
}

.document_items_nav {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 2px;flex: 1 1 0px;
}

.modal_actions {
    margin-top: auto;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2px;
    flex: 1 1 0px;
}

.document_items_nav > *,
.document_actions > * {
    flex-basis: 120px;
}

.modal_error_text {
    margin-bottom: 12px;
}

.modal_button {
    font-family: var(--zk-font-family);
    padding: 4px 0;
    background: var(--zk-primary-color);
    color: var(--zk-dark-text);
    font-size: 1em;
    border-radius: 4px;
    width: 200px;
}

.button-second {
    background-color: var(--zk-secondary-color);
}

.document_table table {
    width: 100%;
    border-collapse: collapse;
}

.document_table table thead tr {
    background: var(--zk-dark-text);
}

.document_table table thead tr th,
.document_table table tbody tr td {
    border: var(--zk-default-border);
    font-size: 1em;
    font-weight: 400;
    text-align: left;
    padding: 2px 6px;
}

.document_table table tbody tr td.number, .table_text.number{
    text-align: right;
    justify-content: flex-end;
}

.document_table table thead tr th:not(:first-child) {
    border-left: none;
}

.selected_row {
    background: var(--zk-primary-color-l);
}

.document_select_cell, .document_input_cell {
    height: auto;
    width: 100%;
    border: none;
    font-size: 1em;
    font-weight: 400;
    text-align: right;
    padding: 0;
}

.document_select_cell {
    padding-right: 20px;
}

.document_input_cell {
    text-align: left;
}

.document_select_cell * {
    text-align: right;
}

#document_table td {
    position: relative;
}

.select_icon {
    position: absolute;
    right: 0px;
    top: 0;
    border-left: solid 1px rgba(0,0,0,.2);
    background: rgba(0,0,0,.1);
    padding: 1px 6px 0 6px;
    height: 100%;
}

/*
============== MODAL CHILD =====================
*/

.modal_child 
{
    z-index: 15;
}

.modal .modal_content.error {
    width: 440px;
    height: max-content;
}

.modal .modal_content.error .modal_content_body {
    height: max-content;
}

#user-search-result {
    position: absolute;
    top: 24px;
    left: 82px;
}

.user-search-box {
    border-radius: var(--zk-border-radius);
    background: var(--zk-light-bg);
    border: var(--zk-default-border);
    padding: 2px 0;
    width: 145px;
}

.user-search-item {
    padding: 4px 10px;
    cursor: pointer;
}

.user-search-item:hover {
    background: var(--zk-primary-color-l);
}



.w-max-content {
    width: max-content;
}

.text-primary {
    color: var(--zk-primary-color);
}

.text-notification {
    color: var(--zk-text-notification-color);
}

.text-success {
    color: var(--zk-success-color);
}

.text-danger {
    color: var(--zk-danger-color);
}

.text-alert {
    color: var(--zk-alert-color);
}

.text-bold {
    font-weight: 700;
}

.text-medium {
    font-weight: 600;
}


.badge {
    width: max-content;
    padding: 3px 12px;
    border-radius: 16px;
    border-width: 1px;
    border-style: solid;
}

.badge.inprogress {
    background: rgba(93, 189, 58, .4);
    color: rgba(93, 189, 58, 1);
    border-color: rgba(93, 189, 58, 1);
}

.badge.pending {
    background: rgba(189, 143, 58, 0.4);
    color: rgba(189, 143, 58, 1);
    border-color: rgba(189, 143, 58, 1);
}

.badge.completed {
    background: rgba(189, 58, 58, 0.4);
    color: rgba(189, 58, 58, 1);
    border-color: rgba(189, 58, 58, 1);
}

.badge.cancelled {
    background: rgba(155, 155, 155, 0.4);
    color: rgba(155, 155, 155, 1);
    border-color: rgba(155, 155, 155, 1);
}

.badge.website {
    background: rgba(255, 65, 138, 0.3);
    color: rgba(255, 65, 138, 1);
    border-color: rgba(255, 65, 138, 1);
}

/* BOOTSTRAP CLASSES */

.d-flex {
    display: inline-flex;
}

.flex-column {
    flex-direction: column;
}

.justify-content-center {
    justify-content: center
}

.justify-content-start {
    justify-content: start
}

.justify-content-end {
    justify-content: end
}

.align-items-center {
    justify-content: center
}

.align-items-start {
    justify-content: start
}

.align-items-end {
    justify-content: end
}

.gap-1 {
    gap: 5px;
}

.gap-2 {
    gap: 10px;
}

.gap-3 {
    gap: 12px;
}

.gap-4 {
    gap: 24px;
}

@media only screen and (max-width: 768px) {

    .modal {
        padding: 12px 8px;
        height: calc(100svh - 24px);
        width: calc(100% - 16px);
    }

    .modal_content {
        max-width: 100%;
        height: 100%;
    }

    .modal_content_body {
        height: calc(100% - 84px)
    }
    
    .modal_global_columns {
        grid-template-columns: 1fr;
    }

    .modal_global_groups {
        grid-template-columns: 1fr;
    }

    .modal_global_group > *:first-child, .modal_global_group>*:last-child {
        flex-basis: 50%;
    }

    .modal_global_group textarea {
        min-height: 150px;
    }

    .modal_global_group> :first-child,.reports_last_group {
        flex-basis: 100% !important;
    }

    .modal_content.reports {
        max-height: 100%;
    }

    .modal_content_body.reports {
        height: 100%;
    }

    .modal_form {
        height: calc(100% - 73px);
    }


}