body {
    font-size: 14px;
}

.full-height {
    height: 100vh;
}

table {
    font-size: 0.85rem;
    border-left: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    margin-top: 15px;
}

.btn[type="submit"] {
    float: right;
}

table th,
table td {
    padding: 0.3rem;
    border-left: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
}

.btn-custom {
    font-size: 0.8rem;
    padding: 0.1rem 0.5rem;
    height: 36px;
}

.btn-custom-table {
    font-size: 0.8rem;
    padding: 0.1rem 0.5rem;
    height: 25px;
}

.controls {
    width: 90px;
}

.form-control,
.form-control-file,
.form-control-sm {
    font-size: 12px;
    padding: 0.25rem 0.5rem;
}

.form-group {
    margin-bottom: 0.5rem;
}

.btn {
    font-size: 12px;
    padding: 0.25rem 0.5rem;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.gallery img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.remove-btn {
    font-size: 10px;
    padding: 0.1rem 0.3rem;
}

.gallery-item {
    display: inline-block;
    position: relative;
    margin: 5px;
}

.gallery-item img {
    max-width: 100px;
    max-height: 100px;
}

.remove-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: red;
    color: white;
    border: none;
    cursor: pointer;
}

.table-control-edit,
.table-control-delete,
.table-control-visibility {
    border: none;
    background-color: transparent;
}

.table-control-edit:hover,
.table-control-delete:hover,
.table-control-visibility:hover {
    cursor: pointer;
    border: none;
}

.table-control-edit:focus,
.table-control-delete:focus,
.table-control-visibility:focus {
    outline: none;
}

.table-control-edit {
    color: #ff7800;
}

.table-control-delete {
    color: #dc3545;
}

.table-control-visibility {
    color: #28a745;
}

.table-control-visibility.is-hidden {
    color: #6c757d;
}

.source-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    font-size: 11px;
    line-height: 1.4;
    border-radius: 3px;
    vertical-align: middle;
    white-space: nowrap;
    color: #fff;
    background: #6c757d;
}

.source-badge--manual {
    background: #6c757d;
}

.source-badge--equipme {
    background: #0d6efd;
}

.source-badge--td {
    background: #198754;
}

.main-page-settings .input-group {
    gap: 10px;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
}

.order_product {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 10px 0;
}

.order_product_img img {
    width: 100%;
}

.order_product .order_product_img {
    width: 170px;
    border-radius: 10px;
}

.product-stocks-list {
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 8px;
}

.product-stocks-list .product-stock-name {
    min-width: 220px;
    text-align: left;
}

.category-picker-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 28px;
    margin-bottom: 8px;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 3px 8px;
    background: #eef2f7;
    border: 1px solid #d5dde6;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.3;
}

.category-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-chip button {
    border: 0;
    background: transparent;
    padding: 0;
    line-height: 1;
    font-size: 16px;
    color: #6c757d;
    cursor: pointer;
}

.category-picker-list {
    max-height: 240px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 6px 8px;
    background: #fff;
}

.category-picker-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 4px 2px;
    font-size: 13px;
    cursor: pointer;
}

.category-picker-item input {
    margin-top: 3px;
}

.category-picker-item.is-root {
    font-weight: 600;
}

.edit-subcategories-list {
    max-height: 360px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 8px;
    background: #fafafa;
}

.edit-subcategory-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 8px;
}

.edit-subcategory-item:last-child {
    margin-bottom: 0;
}

.edit-subcategory-item__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px auto auto auto auto;
    gap: 6px;
    align-items: center;
}

.edit-subcategory-item__seo {
    margin-top: 8px;
}

.edit-subcategory-item .toggle-subcategory.is-hidden {
    color: #6c757d;
}

.edit-category-actions {
    overflow: hidden;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

@media (max-width: 767px) {
    .edit-subcategory-item__row {
        grid-template-columns: 1fr 1fr;
    }
}
