@import url('https://fonts.googleapis.com/css2?family=Geologica:wght@100..900&display=swap');

:root {
    --bs-font-sans-serif: "Geologica", sans-serif;
    --bs-body-font-family: "Geologica", sans-serif;
    --bs-body-font-weight: 250;
}

* {
    font-family: "Geologica", sans-serif;
    font-size: 14px;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 500;
}

[v-cloak] {
    display: none;
}

.selected-category {
    background-color: #5c636a;
    color: white !important;
}

.ui-page {
    font-weight: 400;
    color: #1f2933;
}

.ui-page-fit {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 56px - 5.5rem);
    min-height: 16rem;
}

.ui-page-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.ui-page-fit .ui-panel {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
}

.ui-page-fit .ui-scroll {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
    overflow: auto;
}

.ui-more {
    flex: 0 0 auto;
    padding: 0.65rem 0.9rem;
    border-top: 1px solid #eef0f2;
}

.ui-assortment-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid #eef0f2;
}

.ui-assortment-actions {
    display: flex;
    gap: 0.5rem;
}

.ui-combo {
    width: 36rem;
    max-width: 100%;
}

.ui-combo-label {
    display: block;
    margin-bottom: 0.25rem;
    color: #6b7280;
    font-size: 13px;
    font-weight: 400;
}

.ui-combo-box {
    position: relative;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    background: #fff;
}

.ui-combo-box:focus-within {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.ui-combo-box .form-control {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.ui-combo-box .form-control:focus {
    box-shadow: none;
}

.ui-combo-input {
    padding-right: 1.75rem;
}

.ui-combo-box.is-open {
    z-index: 30;
}

.ui-combo-search {
    position: absolute;
    top: 0;
    right: 0.65rem;
    width: 14px;
    height: 100%;
    pointer-events: none;
    background: center / 14px 14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='7' cy='7' r='4.25' fill='none' stroke='%2398a2b3' stroke-width='1.6'/%3E%3Cpath d='M10.4 10.4L13.6 13.6' fill='none' stroke='%2398a2b3' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
}

.ui-combo-menu {
    position: absolute;
    z-index: 1;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 14rem;
    overflow: auto;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    box-shadow: 0 8px 20px rgba(16, 24, 40, 0.12);
}

.ui-panel:has(.ui-combo-box.is-open) {
    overflow: visible;
}

.ui-combo-item {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0.4rem 0.7rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #1f2933;
    font: inherit;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
}

.ui-combo-item.is-active {
    background: #1d6fd8;
    color: #fff;
}

.ui-combo-empty {
    padding: 0.45rem 0.7rem;
    color: #98a2b3;
}

.ui-page h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.25;
}

.ui-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #e6e8eb;
}

.ui-back {
    display: inline-block;
    margin-bottom: 0.2rem;
    color: #6b7280;
    font-size: 12px;
    text-decoration: none;
}

.ui-back:hover {
    color: #1f2933;
}

.ui-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 13px;
    white-space: nowrap;
}

.ui-panel {
    background: #fff;
    border: 1px solid #e6e8eb;
    border-radius: 6px;
    overflow: hidden;
}

.ui-filters {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.ui-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid #eef0f2;
}

.ui-filters > .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.ui-filter {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
}

.ui-field {
    position: relative;
    flex: 0 1 22rem;
    width: 22rem;
    max-width: 100%;
}

.ui-control {
    width: 22rem;
    max-width: 100%;
}

.ui-filter .form-control {
    width: 100%;
    min-width: 0;
}

.ui-filter-field {
    position: relative;
}

.ui-filter-input {
    padding-right: 1.75rem;
}

.ui-filter-clear {
    position: absolute;
    top: 0;
    right: 0;
    width: 1.75rem;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: #667085;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.ui-filter-clear:hover {
    color: #101828;
}

.ui-filter-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 4px);
    left: 0;
    width: max(100%, 16rem);
    max-height: 16rem;
    overflow: auto;
    padding: 0.35rem 0;
    background: #fff;
    border: 1px solid #e6e8eb;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(16, 24, 40, 0.08);
}

.ui-filter-option {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0.35rem 0.7rem;
    cursor: pointer;
}

.ui-filter-option:hover {
    background: #f4f7fb;
}

.ui-filter-empty {
    padding: 0.45rem 0.7rem;
    color: #98a2b3;
}

.ui-picked {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.35rem;
}

.ui-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0.9rem;
    background: #f7f8fa;
    border-bottom: 1px solid #e6e8eb;
    color: #6b7280;
    font-size: 13px;
}

.ui-scroll {
    max-height: calc(100vh - 190px);
    overflow: auto;
}

.ui-table {
    margin: 0;
}

.ui-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f7f8fa;
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 1px solid #e6e8eb;
    box-shadow: inset 0 -1px 0 #e6e8eb;
}

.ui-scroll .ui-table {
    width: 100%;
    min-width: 960px;
}

.ui-scroll .ui-table th,
.ui-scroll .ui-table td {
    white-space: nowrap;
}

.ui-scroll .ui-table td.ui-wrap {
    white-space: normal;
}

.ui-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.ui-table td {
    font-weight: 400;
    vertical-align: middle;
    border-color: #eef0f2;
}

.ui-table-click tbody tr {
    cursor: pointer;
}

.ui-table-click tbody tr:hover td {
    background: #f4f7fb;
}

.ui-muted {
    color: #98a2b3;
    font-variant-numeric: tabular-nums;
}

.ui-clip {
    width: 240px;
    max-width: 240px;
    font-weight: 500;
}

.ui-clip span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ui-scroll .ui-table.ui-table-spread {
    min-width: 0;
    table-layout: fixed;
}

.ui-table-spread .ui-col-id {
    width: 6rem;
}

.ui-table-spread .ui-col-code {
    width: 8rem;
}

.ui-table-spread .ui-col-product-code,
.ui-table-spread .ui-col-status {
    width: 9rem;
}

.ui-scroll .ui-table.ui-table-spread .ui-col-nomenclature {
    width: 16rem;
    white-space: normal;
    overflow-wrap: break-word;
}

.ui-scroll .ui-table.ui-table-spread .ui-col-name,
.ui-scroll .ui-table.ui-table-spread .ui-col-full-name {
    white-space: normal;
    overflow-wrap: break-word;
}

.ui-scroll .ui-table.ui-table-spread .ui-col-name {
    font-weight: 500;
}

.ui-table-spread .ui-col-action {
    width: 7rem;
    text-align: right;
}

.ui-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    white-space: nowrap;
}

.ui-price {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
}

.ui-price:hover {
    text-decoration: underline;
}

.ui-price-edit {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
}

.ui-price-edit .form-control {
    width: 5.5rem;
    min-width: 0;
    text-align: right;
}

.ui-edit-cancel {
    padding: 0 0.2rem;
    border: 0;
    background: transparent;
    color: #6b7280;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
}

.ui-edit-cancel:hover {
    color: #111827;
}

.ui-edit-cancel:disabled {
    cursor: default;
    opacity: 0.45;
}

.ui-gap {
    margin-left: 0.45rem;
    color: #98a2b3;
    font-size: 12px;
}

.ui-pill {
    display: inline-block;
    padding: 0.12rem 0.45rem;
    border-radius: 4px;
    background: #eceff3;
    color: #4b5563;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
}

.ui-status {
    font-weight: 500;
    white-space: nowrap;
}

.ui-status-btn {
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
}

.ui-status-btn:hover {
    text-decoration: underline;
}

.ui-status-edit {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.ui-status-select {
    width: auto;
    max-width: 9.5rem;
    margin: 0;
    padding: 0.1rem 1.4rem 0.1rem 0.35rem;
    border: 1px solid #cfd4dc;
    border-radius: 0.25rem;
    background-color: #fff;
    font: inherit;
    font-weight: 500;
    line-height: inherit;
    cursor: pointer;
}

.ui-status-select:disabled {
    cursor: default;
    opacity: 0.6;
}

.ui-status--ok {
    color: #1b7f3a;
}

.ui-status--info {
    color: #1d4f91;
}

.ui-status--muted {
    color: #6b7280;
}

.ui-status--danger {
    color: #b42318;
}

.ui-message {
    padding: 1.25rem 0.9rem;
    color: #6b7280;
}

.ui-split {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
    margin-bottom: 0.75rem;
}

.ui-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ui-kv {
    margin: 0;
}

.ui-kv > div {
    display: grid;
    grid-template-columns: 11rem minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.55rem 0.9rem;
    border-top: 1px solid #eef0f2;
}

.ui-kv--form > div {
    grid-template-columns: 15rem minmax(0, 1fr);
    align-items: center;
}

.ui-kv dt {
    margin: 0;
    color: #6b7280;
    font-weight: 400;
}

.ui-kv dd {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

.ui-input-name,
.ui-input-code,
.ui-input-choice {
    max-width: 100%;
}

.ui-input-name {
    width: 36rem;
}

.ui-input-code {
    width: 14rem;
}

.ui-input-choice {
    width: 18rem;
}

.ui-input-type {
    width: 11rem;
    max-width: 100%;
}

.ui-subrow > td {
    padding: 0;
    background: #fbfbfc;
}

.ui-contact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0.9rem;
}

.ui-contact-type {
    flex: 0 0 5.5rem;
    color: #6b7280;
}

.ui-contact .contact-value {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.ui-contact .btn {
    flex: 0 0 auto;
}

.ui-input-name .form-control,
.ui-input-code .form-control {
    width: 100%;
}

.ui-note {
    padding: 0.7rem 0.9rem;
    border-top: 1px solid #eef0f2;
}

.ui-note-meta {
    margin-bottom: 0.2rem;
    color: #6b7280;
    font-size: 12px;
}

.ui-note-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .ui-split {
        grid-template-columns: 1fr;
    }

    .ui-kv > div {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }
}

.ui-links td {
    padding: 0;
}

.ui-links thead th {
    padding-left: 0.5rem;
}

.ui-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.55rem 0.5rem;
    color: inherit;
    font-weight: 500;
    text-decoration: none;
}

.ui-link::after {
    content: "›";
    color: #98a2b3;
    font-size: 18px;
    line-height: 1;
}

.ui-dialog .modal-header {
    align-items: flex-start;
}

.ui-dialog .modal-title {
    font-size: 16px;
    font-weight: 500;
}

.ui-dialog-sub {
    margin-top: 0.2rem;
    color: #6b7280;
    font-size: 13px;
}

.ui-dialog-line {
    display: block;
    margin-top: 0.1rem;
}
