* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'main';
    src: url('../fonts/Jost-VariableFont_wght.ttf');
}

@font-face {
    font-family: 'PT-b';
    src: url('../fonts/PTSansNarrow-Bold.ttf');
}

@font-face {
    font-family: 'As-m';
    src: url('../fonts/AlumniSans-VariableFont_wght.ttf');
}

body {
    font-family: 'PT-b', sans-serif;
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-gray-dark);
}

/** BaseStyles **/

.flex {
    display: flex;
}

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

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

.jc-sb {
    justify-content: space-between;
}

.jc-c {
    justify-content: center;
}

.ai-s {
    align-items: start;
}

.ai-c {
    align-items: center;
}

.ai-e {
    align-items: flex-end;
}

.ta-c {
    text-align: center;
}

.g-5 {
    gap: 5px;
}

.g-10 {
    gap: 10px;
}

.g-20 {
    gap: 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

li {
    list-style: none;
    text-decoration: none;
}

.f-s-m {
    font-size: var(--font-size-mini);
}

.mb-15 {
    margin-bottom: 15px;
}

button, .a-btn {
    font-family: inherit;
    font-weight: inherit;
    font-size: var(--font-size-mini);
    max-width: fit-content;
    padding: 0 30px;
    height: 32px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: .3s all;
    background: var(--color-orange-bright);
    color: white;
    text-transform: uppercase;
}

.a-btn {
    padding: 5px 10px;
}

.green-b {
    background: var(--color-green-bright);
}

.red-b {
    background: var(--color-red-bright);
}

.grey-b {
    background: var(--color-gray-light);
    color: var(--color-orange-dark);
}

.active-b,
button:hover {
    background: var(--color-orange-light);
    color: white;
}

.icon-buttons-block {
    height: 36px;
    white-space: nowrap;
    background-color: var(--color-white);
    padding: 2px;
}

.icon-buttons-block .a-btn,
.icon-buttons-block img,
.icon-buttons-block button {
    height: 100%;
}

/** Aside **/

aside {
    width: 300px;
    background: var(--bg-gradient);
    /*box-shadow: 8px 0 30px rgba(0, 0, 0, 0.2);*/
    color: var(--color-white-dark);
    display: flex;
    flex-direction: column;
    padding: 12px;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
}

.logo-text {
    font-weight: 500;
    font-size: 36px;
}

.nav-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.nav-item {
    position: relative;
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 16px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    color: var(--color-white-dark);
    font-weight: 500;
    border: solid 1px var(--color-orange-light);
}

.nav-1st {
    align-items: center;
    gap: 12px;
    border-radius: 16px;
    cursor: pointer;
}

.nav-item:hover {
    background: var(--color-brown-light);
    color: var(--color-white-dark);
    border: solid 1px transparent;
}

.nav-item.active {
    background: var(--color-orange-light);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    color: var(--color-white-dark);
    border: solid 1px transparent;
}

.nav-icon {
    height: 25px;
    text-align: center;
}

.submenu {
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: .3s all ease-out;
}

.submenu.open {
    display: block;
    max-height: 300px;
}

.submenu li {
    padding: 4px 20px;
    border-radius: 10px;
}

.submenu li:hover {
    background-color: var(--color-brown-light);
}

.submenu-indicator {
    position: absolute;
    right: 16px;
    top: 24px;
    width: 10px;
    transition: .3s all;
}

.submenu-indicator.rotated {
    transform: rotate(180deg);
}

.nav-item.has-submenu.active {
    background: inherit;
    border: solid 1px var(--color-orange-light);
}

/** Main **/

.main-content {
    padding: 10px;
}

.mt-tabs {
    margin-top: 70px;
}

.ml-aside {
    margin-left: 300px;
}

/** Form **/

.base-card {
    max-width: fit-content;
    width: 100%;
    background: var(--color-white);
    border-radius: 10px;
    box-shadow: 0 -2px 10px 8px rgba(0, 0, 0, 0.15);
    transition: .3s all;
    overflow: hidden;
    height: max-content;
    padding: 20px;
}

.form-header {
    padding: 16px 32px;
    border-bottom: 1px solid var(--color-white-dark);
}

.form-body {
    padding: 20px;
}

.row-fields > .form-row {
    flex: 1;
}

.row-fields > .field-block {
    flex: 1;
    width: 100%;
}

.form-row {
    align-items: center;
    width: 100%;
}

.field-label {
    max-width: 500px;
    text-align: end;
    flex: 0.75;
}

.field-wrapper {
    flex: 1;
    min-width: 300px;
}

.field-input,
.field-select {
    width: 100%;
    height: 32px;
    padding: 5px 15px;
    font-size: var(--font-size-mini);
    font-family: inherit;
    border: 1px solid var(--color-white-dark);
    border-radius: 5px;
    transition: .3s all;
    outline: none;
    font-weight: 500;
}

input:disabled {
    background: white;
}

.field-label-col {
    padding-right: 37px;
}

.field-input:focus,
.field-select:focus {
    border-color: var(--color-orange-light);
    box-shadow: 0 0 0 3px var(--color-brown-light);
}

.field-select {
    appearance: none;
    padding: 5px 25px;
    background-image: url("../img/icons/open.svg");
    background-repeat: no-repeat;
    background-position: right 5px center;
    background-size: 10px;
    cursor: pointer;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
}

.checkbox-form {
    width: 100%;
}

.field-label {
    width: 50%;
}

.checkbox-row {
    width: 50%;
    flex: 1;
}

.mw-500 {
    max-width: 500px;
}

input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-orange-bright);
    border-radius: 5px;
    background: white;
    cursor: pointer;
    position: relative;
    transition: .3s all;
    flex-shrink: 0;
}

input[type="checkbox"]:checked {
    background-color: var(--color-orange-bright);
    border-color: var(--color-orange-bright);
}

input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    color: var(--color-white);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--color-brown-light);
}

.input-reduction {
    max-width: min-content;
}

.input-reduction .field-label-col {
    white-space: nowrap;
}

/** Tabs **/

.tabs {
    position: fixed;
    width: 100%;
    background-color: var(--color-white);
    height: 80px;
    top: 0;
    left: 300px;
    padding: 10px;
    z-index: 999;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid #eef2f8;
}

.tab-btn {
    font-size: var(--font-size-base);
    background: transparent;
    padding: 16px 30px;
    cursor: pointer;
    color: var(--color-gray-dark);
    position: relative;
    border-radius: 10px 10px 0 0;
    height: inherit;
}

.tab-btn:hover {
    background-color: var(--color-white-dark);
    color: var(--color-brown-dark);
}

.tab-btn.active {
    color: var(--color-orange-dark);
    font-weight: 700;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-orange-bright);
    border-radius: 3px 3px 0 0;
    animation: slideIn 0.25s ease forwards;
}

.tab-btn:disabled,
.tab-btn.disabled {
    color: #bcb7b2;
    cursor: not-allowed;
}

.tab-btn:disabled:hover,
.tab-btn.disabled:hover {
    background-color: transparent;
}

@keyframes slideIn {
    from {
        transform: scaleX(0.7);
        opacity: 0.6;
    }
    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

.tabs-content {
    padding: 10px 0;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.active-pane {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/** Tooltip **/

[data-tooltip],
[data-tooltip-top],
[data-tooltip-right],
[data-tooltip-bottom],
[data-tooltip-left] {
    position: relative;
    max-width: 300px;
}

[data-tooltip]::before,
[data-tooltip-top]::before,
[data-tooltip-right]::before,
[data-tooltip-bottom]::before,
[data-tooltip-left]::before {
    position: absolute;
    background-color: #222222;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.2);
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    border-radius: 6px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: normal;
    max-width: 300px;
    text-align: center;
    width: max-content;
}

[data-tooltip]:hover::before,
[data-tooltip-top]:hover::before,
[data-tooltip-right]:hover::before,
[data-tooltip-bottom]:hover::before,
[data-tooltip-left]:hover::before {
    opacity: 1;
    visibility: visible;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
}

[data-tooltip-right]::before {
    content: attr(data-tooltip-right);
}

[data-tooltip]::before,
[data-tooltip-right]::before {
    top: 50%;
    left: calc(100% + 10px);
    transform: translate(-8px, -50%);
}

[data-tooltip]:hover::before,
[data-tooltip-right]:hover::before {
    transform: translate(0, -50%);
}

[data-tooltip-top]::before {
    content: attr(data-tooltip-top);
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translate(-50%, 8px);
}

[data-tooltip-top]:hover::before {
    transform: translate(-50%, 0);
}

[data-tooltip-bottom]::before {
    content: attr(data-tooltip-bottom);
    top: calc(100% + 10px);
    left: 50%;
    transform: translate(-50%, -8px);
}

[data-tooltip-bottom]:hover::before {
    transform: translate(-50%, 0);
}

[data-tooltip-left]::before {
    content: attr(data-tooltip-left);
    top: 50%;
    right: calc(100% + 10px);
    transform: translate(8px, -50%);
}

[data-tooltip-left]:hover::before {
    transform: translate(0, -50%);
}

/** Tables **/

.no-data-td {
    text-align: center;
    padding: 20px;
}

table {
    border-spacing: 0;
}

.table-wrapper {
    padding-bottom: 25px;
    overflow-x: auto;
    max-width: fit-content;
    background: var(--color-white);
    border-radius: 5px;
    box-shadow: 0 -2px 20px 8px rgba(0, 0, 0, 0.15);
    transition: .3s all;
    height: max-content;
}

.data-table {
    table-layout: fixed;
    border-collapse: collapse;
    min-width: 1000px;
    font-family: inherit;
}

.data-table th,
.data-table td {
    padding: 2px;
    text-align: left;
}

.data-table > tbody > tr:first-child > td {
    padding-top: 4px !important;
}

.data-table > tbody > tr:last-child > td {
    padding-bottom: 4px !important;
}

.v-a-for-textarea td {
    vertical-align: top;
}

.data-table thead tr:first-child th {
    font-weight: 700;
    padding: 10px 15px 10px 0;
    white-space: nowrap;
}

.data-table input,
.data-table select,
.data-table .field-input {
    padding: 5px;
}

.staff-spacer {
    border-top: 2px solid var(--color-white-dark);
    border-bottom: 2px solid var(--color-white-dark);
}

.staff-group-row td {
    position: relative;
}

.status-badge {
    display: block;
    white-space: nowrap;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: var(--font-size-mini);
    text-align: center;
    width: 100%;
}

.status-passed {
    background: var(--color-green-light);
    color: var(--color-green-bright);
}

.status-failed {
    background: var(--color-red-light);
    color: var(--color-red-bright);
}

.protocol-signed {
    color: var(--color-green-bright);
}

.protocol-unsigned {
    color: var(--color-red-bright);
}

.separator-space {
    border-top: 8px solid #f1f5f9;
}

.td-for-table-nested {
    padding: 0 0 32px 34px !important;
}

td input,
td textarea,
td select {
    margin: 0;
}

.table-nested {
    box-shadow: 0 -2px 20px 8px rgba(0, 0, 0, 0.15);
}

.table-nested th, .table-nested td {
    padding: 2px 4px;
}

.table-nested td {
    font-family: 'As-m', sans-serif;
    font-weight: 400;
}

/*.table-nested td:nth-child(even) {*/
/*    background-color: var(--color-white-light);*/
/*}*/

thead {
    background-color: var(--color-gray-light);
}

.first-th {
    padding-left: 15px !important;
}

.not-active-inputs,
.not-active-inputs > td > input,
.not-active-inputs > td > textarea {
    color: var(--color-gray);
}

.data-table .short-col {
    min-width: 75px !important;
    width: 75px !important;
}

.accepted-input {
    color: var(--color-green-bright) !important;
    background-color: var(--color-green-light) !important;
}

.cancelled-input {
    color: var(--color-red-bright) !important;
    background-color: var(--color-red-light) !important;
}

.signatures {
    width: 100%;
}

.signatures button {
    padding: 0 4px;
    border-radius: 5px;
    height: inherit;
    white-space: nowrap;
    max-width: 100%;
}

.wrap-buttons {
    display: grid;
    grid-template-columns: repeat(2, 0fr);
}

.wrap-buttons a,
.wrap-buttons img {
    height: 32px;
}

td textarea {
    position: absolute;
    height: calc(100% - 4px);
    width: calc(100% - 4px);
    resize: none;
    padding: 5px;
    font-size: var(--font-size-mini);
    font-family: inherit;
    border: 1px solid var(--color-white-dark);
    border-radius: 5px;
    transition: .3s all;
    outline: none;
    font-weight: 500;
}

.border-center-text {
    border: 2px solid var(--color-gray-light);
    position: relative;
}

.label-border-center-text {
    position: absolute;
    top: -16px;
    transform: translateX(0);
    background-color: var(--color-white);
}

.overflow-x-auto {
    overflow-x: auto;
}

.checkbox-with-icon img {
    height: 20px;
}

.pins td, th,
.bins td, th {
    padding: 10px 30px;
}

.uniq-td {
    padding: 0 !important;
}

.custom-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.custom-radio + label {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    user-select: none;
    display: inline-block;
    line-height: 22px;
}

.custom-radio + label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid var(--color-gray-dark);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.custom-radio:checked + label::after {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-orange-bright);
    transition: all 0.2s ease;
}

.custom-radio + label:hover::before {
    border-color: var(--color-orange-bright);
    box-shadow: 0 0 5px rgba(255, 140, 0, 0.5);
}

.custom-radio:disabled + label {
    opacity: 0.5;
    cursor: not-allowed;
}

/*tbody tr:first-child td,*/
/*tbody tr:first-child th {*/
/*    padding-top: 4px;*/
/*}*/

/*tbody tr:last-child td,*/
/*tbody tr:last-child th {*/
/*    padding-bottom: 2px;*/
/*}*/

.air-table tbody tr:nth-child(odd) {
    background-color: var(--color-white-light);
}

.air-table td {
    padding: 15px 2px;
}

.col-received-no-received,
.col-micro-data,
.col-date {
    min-width: 90px;
    max-width: 90px;
    width: 90px;
}

.col-phone-number,
.col-short-data,
.col-snils {
    min-width: 120px;
    max-width: 120px;
    width: 120px;
}

.col-medium-data {
    min-width: 150px;
    max-width: 150px;
    width: 150px;
}

.col-large-data {
    min-width: 250px;
    max-width: 250px;
    width: 250px;
}

.col-extra-large-data {
    min-width: 500px;
    max-width: 500px;
    width: 500px;
}

/** Profile **/

.classic-body {
    padding: 20px;
}

.profile-tabs button:nth-child(5) {
    margin-left: auto;
}

.sad-so-block {
    flex: 1;
    aspect-ratio: 1.75;
    border-radius: 25px;
    background-size: cover;
    background-position: center;
}

#sad-1 {
    background-image: url("../img/coca.jpg");
}

#sad-2 {
    background-image: url("../img/pepi.jpg");
}

#sad-3 {
    background-image: url("../img/7upi.jpg");
}

.button-icon {
    aspect-ratio: 1;
    height: 100%;
    transition: .3s all;
}

.button-icon:not(.disabled):hover {
    cursor: pointer;
    scale: 0.95;
}

.button-icon.disabled {
    cursor: not-allowed;
}

.lined-title {
    display: flex;
    align-items: center;
    width: 100%;
}

.lined-title::before,
.lined-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background-color: var(--color-orange-bright);
}

.lined-title span {
    padding: 0 20px;
    font-size: 24px;
    font-weight: bold;
    white-space: nowrap;
}

.unic-table-interface .field-input {
    min-width: 500px;
}

.unic-table-interface-5 {
    border-spacing: 5px;
}

.unic-table-interface-20 {
    border-spacing: 20px;
}

.nested-input {
    padding-left: 37px;
}

.for-fit-width {
    width: 1%;
}

/** Select2 fixes **/

.select2-container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.select2-container .select2-selection--multiple {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 42px !important;
    max-height: 120px !important;
    overflow-y: auto !important;
    padding: 2px 4px !important;
    display: block !important;
}

.select2-container .select2-selection--multiple::-webkit-scrollbar {
    width: 6px;
}

.select2-container .select2-selection--multiple::-webkit-scrollbar-thumb {
    background-color: #cccccc;
    border-radius: 4px;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    max-width: 580px;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    box-sizing: border-box !important;
}

.select2-container .select2-search--inline {
    display: flex !important;
    align-items: center !important;
    flex: 1 1 10px !important;
    max-width: 100% !important;
}

.select2-container .select2-search--inline .select2-search__field {
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 4px !important;
    height: auto !important;
    line-height: normal !important;
    padding: 0 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    margin: 4px !important;
    padding: 4px 8px !important;
    background-color: #e4e4e4 !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    position: static !important;
    border: none !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 8px 0 0 !important;
    color: #888 !important;
    font-size: 20px !important;
    font-weight: bold !important;
    line-height: 1 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #d9534f !important;
    background: transparent !important;
}

.select2-parent-wrapper {
    min-width: 0 !important;
    max-width: 100% !important;
}

/** Sweet Alerts Fixes **/

.swal2-container .swal2-actions button {
    margin: 0 10px !important;
    padding: 10px 24px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    border: none !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    transition: filter 0.2s;
}

.swal2-container .swal2-actions button:hover {
    filter: brightness(0.9);
}

/** Advertisement places **/

.disabled-matrix {
    opacity: 0.5 !important;
    pointer-events: none !important;
    user-select: none !important;
    transition: opacity 0.3s ease;
}

.pins {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.pins th, .pins td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.pins th:first-child, .pins td:first-child {
    text-align: left;
}

input[type="checkbox"][name$="_active"]:not(:checked) ~ .pin-icon {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
}

input[type="checkbox"][name$="_active"]:checked ~ .pin-icon.state-free {
    cursor: pointer;
    opacity: 1;
}

.matrix-fieldset {
    border: 1px solid #ccc;
    padding: 20px 30px;
    border-radius: 8px;
    margin-top: 15px;
}

.matrix-fieldset legend {
    padding: 0 10px;
    color: #666;
    font-weight: 500;
}

.matrix-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
}

.matrix-label {
    width: 130px;
    flex-shrink: 0;
    font-weight: 500;
}

.matrix-label-empty {
    width: 130px;
    flex-shrink: 0;
}

.matrix-col-title {
    flex: 1;
    text-align: center;
    color: #555;
    margin-bottom: 10px;
}

.matrix-cell {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.region-matrix-container {
    margin-bottom: 30px;
}

.region-location-header-name {
    margin-bottom: 10px;
    color: #444;
}

.pin-mask {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-color: currentColor;

    -webkit-mask-image: url('../img/icons/pin.svg');
    mask-image: url('../img/icons/pin.svg');

    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.hidden-pin {
    display: none;
}

.pin-icon {
    cursor: pointer;
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease-in-out;
    color: #666666;
}

.pin-icon.state-free {
    color: #666666;
}

.pin-icon.state-occupied {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
}

.pin-icon.state-occupied:hover {
    opacity: 0.4 !important;
}

.hidden-pin:checked ~ .pin-icon.state-occupied {
    color: unset !important;
    opacity: 0.4 !important;
}

.pin-icon:hover {
    opacity: 0.8;
}

.hidden-pin:checked + .pin-icon {
    color: #ff9800;
    transform: scale(1.15);
}

/** File upload **/

.hidden-file-input {
    opacity: 0;
    position: absolute;
    z-index: -1;
}

.custom-file-btn {
    cursor: pointer;
    width: 36px;
    height: 36px;
    background-color: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
}

.custom-file-btn img {
    width: 100%;
    height: 100%;
}

.custom-file-btn:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.file-name-display {
    color: #666;
    font-size: 14px;
    transition: color 0.2s;
}

.file-name-display.has-file {
    color: #333;
}

.field-error {
    color: red;
    font-size: 12px;
    margin-top: 5px;
}

/** Disabled inputs **/

.matrix-row input[name="id"]:disabled {
    background: transparent !important;
    border: none !important;
    font-weight: bold;
    padding-left: 0;
}

/** Ads Stats **/

.period-select {
    width: 220px;
    height: 40px;
}

.chart-wrapper {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    width: 100%;
}

.chart-title {
    text-align: center;
    color: #555;
    font-weight: 500;
    margin: 0 0 20px;
}

.form-control {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 15px;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: #cd6b28;
}

.filter-controls {
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.date-filter-fieldset, .grouping-control {
    flex-shrink: 0;
}

.grouping-control {
    gap: 8px;
}

.grouping-label {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.date-filter-fieldset {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 15px 25px 20px 20px !important;
    margin: 0 !important;
}

.date-legend {
    font-size: 18px;
    font-weight: 700;
    color: #666;
    padding: 0 10px;
    margin: 0;
}

.date-inputs-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.date-label-bold {
    font-size: 20px;
    font-weight: 700;
    color: #555;
    line-height: 1;
}

.date-input-styled {
    height: 42px;
    min-width: 160px;
}

.date-input-styled::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    transition: 0.2s;
}

.date-input-styled::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/** Icons **/

.pen {
    background-image: url("../img/buttons/pen.svg");
}

.waste {
    background-image: url("../img/buttons/waste.svg");
}

.document {
    background-image: url("../img/icons/document.svg");
}

.exit_black {
    background-image: url("../img/icons/exit_black.svg");
}

.eye {
    background-image: url("../img/buttons/eye.svg");
}

.save {
    background-image: url("../img/buttons/save.svg");
}

.add {
    background-image: url("../img/buttons/add.svg");
}

.delete {
    background-image: url("../img/buttons/delete.svg");
}

.ad-preview-image {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    object-fit: contain;
}

.hidden {
    display: none;
}

.for-text-area-three {
    height: inherit;
    position: static;
    width: 100%;
}

/** Errors container **/

.form-errors {
    background-color: #fff1f0;
    border: 1px solid #ffccc7;
    border-radius: 6px;
    padding: 15px;
    color: #cf1322;
    max-width: 300px;
}

.form-errors .error-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    color: #a8071a;
}

.form-errors .error-list {
    margin: 0;
    padding-left: 20px;
}

.form-errors .error-list li {
    font-size: 14px;
    line-height: 1.5;
}

/** Table ordering **/

th.sorted-column {
    background-color: #c2c2c2 !important;
    transition: background-color 0.2s ease;
}

td.sorted-column {
    background-color: #f5f5f5 !important;
    transition: background-color 0.2s ease;
}

th a.sort-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

th a.sort-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 4px;
}

th a.sort-link .sort-indicator {
    display: inline-block;
    width: 12px;
    text-align: center;
}

th a.sort-link .sort-indicator.hidden {
    visibility: hidden;
}

/** Errors **/

.error-block {
    width: 100vw;
    height: 100vh;
    padding: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    gap: 20px;
}

.error-description {
    text-decoration: none;
    font-weight: 400;
    font-size: 20px;
    text-align: center;
}

.text-footer {
    position: absolute;
    margin: 0 auto;
    bottom: 50px;
    font-weight: 600;
    font-size: 20px;
    text-align: center;
}

.error-block img {
    max-width: 400px;
}

@media (max-width: 500px) {
    .pic,
    h1,
    .text-footer {
        width: 90%;
    }

    h1,
    .text-footer {
        font-size: 16px;
    }
}

/** List of elements in popup **/

.submit-btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.select-error {
    border: 2px solid red !important;
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.3) !important;
}

.popup-list-item {
    background-color: var(--color-white-dark, #e0e0e0);
    padding: 10px;
    border-radius: 4px;
}

.button-form {
    width: 36px;
}

/** Formset Table Styles **/

.th-actions {
    width: 10%;
    text-align: center;
}

.td-actions {
    text-align: center;
}

.hidden-row {
    display: none !important;
}

.formset-field-errors {
    color: #cf1322;
    font-size: 13px;
    margin-top: 4px;
    line-height: 1.4;
}

.js-add-formset-row {
    cursor: pointer;
}
