body {
    background: #f8f8f8;
    color: #334155;
}

.navbar {
    background: rgba(245, 246, 248, 0.92) !important;
    backdrop-filter: blur(8px);
    border-bottom-color: #d8dde4 !important;
    position: relative;
    z-index: 1055;
}

.navbar .nav-link {
    color: #475569;
    font-weight: 500;
    position: relative;
    padding-bottom: 0.55rem;
}

.navbar .nav-link:hover {
    color: #374151;
}

.navbar .nav-link.active {
    color: #374151 !important;
    font-weight: 700;
}

.navbar .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0.45rem;
    right: 0.45rem;
    bottom: 0.08rem;
    height: 2px;
    border-radius: 999px;
    background: #6b7280;
}

.app-brand {
    display: inline-flex;
    align-items: center;
    padding: 0.14rem 0.4rem 0.14rem 0.28rem;
    border: 1px solid #d7dde5;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.app-brand:hover {
    border-color: #c6d1de;
    background: #fcfdff;
}

.app-brand-logo {
    display: block;
    height: 2.05rem;
    width: auto;
    max-width: min(40vw, 11.6rem);
    object-fit: contain;
    filter: none;
}

.card {
    border: 1px solid #d6dbe3;
    border-radius: 0.95rem;
    box-shadow:
        0 10px 24px rgba(17, 24, 39, 0.08),
        0 2px 6px rgba(17, 24, 39, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.query-filter-card,
.table-body-card,
.table-pagination-card {
    color: #8f98a6;
    font-size: 0.86rem;
}

.products-page-wrapper {
    --products-page-height: 70dvh;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: var(--products-page-height);
    min-height: 0;
    overflow: hidden;
}

.query-page-title {
    text-align: center;
    font-size: 1.38rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #9ca3af;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 4px rgba(148, 163, 184, 0.22);
}

.navbar-user {
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #334155;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85), 0 2px 8px rgba(30, 41, 59, 0.18);
}

.user-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid #cfd8e3;
    border-radius: 999px;
    padding: 0.24rem 0.65rem;
    background: linear-gradient(180deg, #f9fafb 0%, #eef2f6 100%);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.09);
}

.user-menu-toggle:hover,
.user-menu-toggle:focus {
    border-color: #9db0c7;
    background: linear-gradient(180deg, #fbfcfe 0%, #f1f5f9 100%);
}

.user-menu-list {
    min-width: 10rem;
    border-radius: 0.6rem;
    border: 1px solid #d4dbe5;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
    z-index: 1060;
}

.user-menu-list .dropdown-item {
    font-size: 0.84rem;
    color: #475569;
}

.app-toast-stack {
    top: 4.1rem;
    right: 1rem;
    z-index: 1100;
}

.app-toast {
    min-width: 20rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.2);
}

.app-toast .toast-body {
    white-space: pre-line;
}

.home-page-wrapper {
    max-width: 980px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.home-guide-accordion .accordion-item {
    border: 1px solid #d6dbe3;
    border-radius: 0.95rem;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08), 0 2px 6px rgba(17, 24, 39, 0.05);
}

.home-guide-accordion .accordion-button {
    font-weight: 700;
    color: #475569;
    background: #f8fafc;
}

.home-guide-accordion .accordion-button:not(.collapsed) {
    color: #334155;
    background: #f1f5f9;
    box-shadow: none;
}

.home-guide-accordion .accordion-body {
    color: #64748b;
    font-size: 0.93rem;
}

.home-notice-card .card-body {
    padding: 1rem 1.1rem;
}

.home-notice-title {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 700;
    color: #475569;
}

.home-notice-text {
    font-size: 0.92rem;
    color: #64748b;
    white-space: normal;
    word-break: break-word;
}

.home-notice-time {
    flex-shrink: 0;
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 600;
}

.home-post-link {
    color: #475569;
    text-decoration: none;
}

.home-post-link:hover {
    color: #334155;
    text-decoration: underline;
}

.home-post-author {
    font-weight: 500;
    color: #94a3b8 !important;
}

.home-post-meta {
    line-height: 1;
}

.home-post-comment-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
}

.home-post-comment-link:hover {
    color: #334155;
}

.home-footer-card .card-body {
    padding: 0.7rem 1rem;
}

.home-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
}

.home-footer-left,
.home-footer-center,
.home-footer-right {
    display: flex;
    align-items: center;
}

.home-footer-center {
    justify-content: center;
    flex: 1;
}

.home-footer-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
}

.home-footer-link:hover,
.home-footer-link.active {
    color: #334155;
}

.home-footer-sep {
    margin: 0 0.45rem;
    color: #94a3b8;
}

.home-comment-item .small {
    line-height: 1.5;
}

.home-qr-float {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    z-index: 1;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

.home-qr-image {
    display: block;
    width: 250px;
    height: 250px;
    object-fit: contain;
    border-radius: 0;
    opacity: 0.65;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

@media (max-width: 767.98px) {
    .home-footer-row {
        flex-direction: column;
        align-items: stretch;
    }

    .home-footer-left,
    .home-footer-center,
    .home-footer-right {
        justify-content: center;
    }

    .home-qr-float {
        right: 0.7rem;
        bottom: 0.7rem;
        padding: 0.35rem;
    }

    .home-qr-image {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 767.98px) {
    .app-brand {
        padding: 0.12rem 0.32rem 0.12rem 0.22rem;
    }

    .app-brand-logo {
        height: 1.78rem;
        max-width: 52vw;
    }

    .app-toast-stack {
        top: 3.8rem;
        right: 0.6rem;
        left: 0.6rem;
    }

    .app-toast {
        min-width: unset;
        width: 100%;
    }
}

.query-filter-card .form-label {
    color: #8b94a1;
    font-weight: 600;
    margin-bottom: 0.35rem;
    font-size: 0.86rem;
}

.query-filter-card {
    flex-shrink: 0;
}

.product-filter-toolbar {
    display: none;
    padding: 0.45rem 0.6rem 0.1rem;
    justify-content: flex-end;
}

.product-filter-toggle {
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: linear-gradient(180deg, #f8fafc 0%, #e9eef5 100%);
    color: #475569;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.1;
    padding: 0.24rem 0.7rem;
}

.product-filter-toggle:hover {
    border-color: #94a3b8;
    color: #334155;
}

.inventory-filter-toolbar {
    display: none;
    padding: 0.45rem 0.6rem 0.1rem;
    justify-content: flex-end;
}

.inventory-filter-toggle {
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: linear-gradient(180deg, #f8fafc 0%, #e9eef5 100%);
    color: #475569;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.1;
    padding: 0.24rem 0.7rem;
}

.inventory-filter-toggle:hover {
    border-color: #94a3b8;
    color: #334155;
}

.stock-move-filter-toolbar {
    display: none;
    padding: 0.45rem 0.6rem 0.1rem;
    justify-content: flex-end;
}

.stock-move-filter-toggle {
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: linear-gradient(180deg, #f8fafc 0%, #e9eef5 100%);
    color: #475569;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.1;
    padding: 0.24rem 0.7rem;
}

.stock-move-filter-toggle:hover {
    border-color: #94a3b8;
    color: #334155;
}

.stock-move-filter-fields {
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: 0.2rem;
    max-height: 34vh;
}

.stock-move-query-actions {
    justify-content: flex-end;
    margin-top: 0.45rem;
}

.stock-move-actions-bar {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.4rem;
}

.stock-moves-page-wrapper .stock-move-filter-row {
    flex-wrap: wrap !important;
    width: 100%;
    min-width: 0;
}

.stock-moves-page-wrapper .stock-move-filter-row > [class*="col-"] {
    flex: 0 0 var(--filter-col-width) !important;
    width: var(--filter-col-width) !important;
    max-width: var(--filter-col-width) !important;
    min-width: var(--filter-col-width) !important;
}

.query-filter-card .form-control,
.query-filter-card .form-select {
    border-color: #d4dde8;
    background-color: #fbfdff;
    color: #8b94a1;
    font-size: 0.86rem;
    min-height: 1.95rem;
    height: 1.95rem;
    padding-top: 0.16rem;
    padding-bottom: 0.16rem;
}

.query-filter-card .form-control.is-valid,
.query-filter-card .form-select.is-valid,
.query-filter-card .was-validated .form-control:valid,
.query-filter-card .was-validated .form-select:valid {
    border-color: #d4dde8;
    background-image: none !important;
    padding-right: 0.75rem !important;
}

.query-filter-card .form-control::placeholder {
    font-size: 0.83rem;
    color: rgba(71, 85, 105, 0.5);
}

.filter-input-wrap {
    position: relative;
}

.filter-input-wrap .form-control {
    padding-right: 2rem;
}

.filter-clear-btn {
    position: absolute;
    right: 0.45rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    border: 0;
    border-radius: 999px;
    background: #94a3b8;
    color: #fff;
    font-size: 0.8rem;
    line-height: 1;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.85;
}

.filter-input-wrap.has-value .filter-clear-btn {
    display: inline-flex;
}

.filter-clear-btn:hover {
    opacity: 1;
    background: #64748b;
}

.query-filter-card .form-control:focus,
.query-filter-card .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.12);
}

.product-table-shell {
    overflow: visible;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.product-table-shell .table-container {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: 1;
    min-height: 0;
}

.product-table-shell .table-scroll-zone {
    overflow-x: auto;
    overflow-y: scroll;
    height: 100%;
    min-height: 0;
    padding-bottom: 0;
    border-radius: 0.85rem;
    background: #f8fafc;
    position: relative;
}

.table-body-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.table-body-card .card-body {
    flex: 1;
    min-height: 0;
    display: flex;
    padding: 0.3rem !important;
}

.table-body-card .card-body > .table-scroll-zone {
    flex: 1 1 auto;
    min-width: 0;
}

.product-table-shell .table {
    margin-bottom: 0.1rem;
    border-radius: 0;
    background: #fff;
    color: #8f98a6;
    border-collapse: separate;
    border-spacing: 0;
    width: 100% !important;
    min-width: 100%;
}

@media (min-width: 1200px) {
    .products-page-wrapper:not(.inventory-page-wrapper):not(.stock-moves-page-wrapper) .product-table-shell .table {
        table-layout: fixed;
    }

    .products-page-wrapper:not(.inventory-page-wrapper):not(.stock-moves-page-wrapper) .product-table-shell .table td {
        white-space: nowrap;
    }

    .products-page-wrapper:not(.inventory-page-wrapper):not(.stock-moves-page-wrapper) .product-table-shell .table th {
        overflow: visible;
        text-overflow: clip;
        white-space: nowrap;
    }

    .products-page-wrapper:not(.inventory-page-wrapper):not(.stock-moves-page-wrapper) .product-table-shell .table td:nth-child(3),
    .products-page-wrapper:not(.inventory-page-wrapper):not(.stock-moves-page-wrapper) .product-table-shell .table th:nth-child(3) {
        width: 24%;
    }

    .products-page-wrapper:not(.inventory-page-wrapper):not(.stock-moves-page-wrapper) .product-table-shell .table td:nth-child(3) {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .products-page-wrapper:not(.inventory-page-wrapper):not(.stock-moves-page-wrapper) .product-table-shell .table td:nth-child(1),
    .products-page-wrapper:not(.inventory-page-wrapper):not(.stock-moves-page-wrapper) .product-table-shell .table td:nth-child(2),
    .products-page-wrapper:not(.inventory-page-wrapper):not(.stock-moves-page-wrapper) .product-table-shell .table th:nth-child(1),
    .products-page-wrapper:not(.inventory-page-wrapper):not(.stock-moves-page-wrapper) .product-table-shell .table th:nth-child(2) {
        width: 12%;
    }
}

.product-table-shell thead {
    position: sticky;
    top: 0;
    z-index: 8;
}

.product-table-shell table thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 30 !important;
    background: #f4f7fb;
    box-shadow: inset 0 -1px 0 #d6dce4;
}

.product-table-shell tbody td {
    background: #fff;
}

.product-table-shell tbody td + td,
.product-table-shell thead th + th {
    border-left: 1px dashed #d9dee6 !important;
}

.product-table-shell thead th a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.55rem;
    border-radius: 0.5rem;
    border: 1px solid #dfe3ea;
    background: #f8fafc;
    color: #8b94a1;
    font-weight: 600;
    font-size: 0.86rem;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
}

.product-table-shell thead th .th-static {
    color: #8b94a1;
    font-weight: 600;
    font-size: 0.86rem;
}

.product-table-shell thead th a:hover {
    border-color: #9ec5fe;
    background: #e7f1ff;
    color: #0a58ca;
    transform: translateY(-1px);
}

.waybill-link {
    text-decoration: none;
}

.waybill-link:hover,
.waybill-link:focus {
    text-decoration: none;
}

.doc-entry-fallback-table td {
    min-width: 8rem;
}

.doc-entry-page-wrapper .doc-entry-fallback-table thead th {
    position: sticky;
    top: 0;
    z-index: 5;
    font-weight: 700;
    color: #6f7b8b;
    background: #f3f6fb;
}

.doc-entry-page-wrapper .jss_content {
    position: relative;
    overflow: visible !important;
    max-height: none !important;
}

.doc-entry-page-wrapper .jss_worksheet thead td,
.doc-entry-page-wrapper .jss_worksheet thead th {
    position: sticky;
    top: 0;
    z-index: 5;
    font-weight: 700 !important;
    color: #6f7b8b;
    background: #f3f6fb !important;
}

.doc-entry-page-wrapper #doc-entry-grid .jss_worksheet {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.doc-entry-page-wrapper #doc-entry-grid .jss_about {
    display: none !important;
}

.doc-entry-page-wrapper #doc-entry-grid.doc-entry-grid-readonly {
    pointer-events: none;
    opacity: 0.72;
}

.doc-entry-page-wrapper .table-scroll-zone {
    position: relative;
}

.doc-entry-page-wrapper .doc-entry-grid-lock {
    position: absolute;
    inset: 0;
    z-index: 16;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(248, 248, 248, 0.72);
    backdrop-filter: blur(1px);
}

.doc-entry-page-wrapper .doc-entry-grid-location-suggest {
    position: fixed;
    z-index: 1080;
    display: none;
    overflow: auto;
    border: 1px solid #ced4da;
    border-radius: 0.5rem;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
    background: #fff;
}

.doc-entry-page-wrapper .doc-entry-grid-location-suggest.show {
    display: block;
}

.doc-entry-page-wrapper .doc-entry-grid-location-suggest .list-group-item {
    font-size: 0.82rem;
    color: #475569;
    padding: 0.32rem 0.55rem;
}

.doc-entry-page-wrapper #doc-entry-grid .jss_worksheet tbody tr td:nth-child(4),
.doc-entry-page-wrapper #doc-entry-grid .doc-entry-fallback-table tbody tr td:nth-child(3) {
    text-align: left !important;
}

.doc-entry-page-wrapper .entry-partner-wrap {
    position: relative;
}

.doc-entry-page-wrapper .entry-partner-suggest {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    max-height: 14rem;
    overflow: auto;
    z-index: 35;
    border: 1px solid #ced4da;
    border-radius: 0.5rem;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
    background: #fff;
    display: none;
}

.doc-entry-page-wrapper .entry-partner-suggest.show {
    display: block;
}

.doc-entry-page-wrapper .entry-partner-suggest .list-group-item {
    font-size: 0.82rem;
    color: #475569;
    padding: 0.35rem 0.55rem;
}

.doc-entry-page-wrapper .entry-partner-suggest .list-group-item.active,
.doc-entry-page-wrapper .entry-partner-suggest .list-group-item:active {
    background: #eaf2ff;
    border-color: #d5e3fb;
    color: #334155;
}

.doc-entry-product-pick-modal .table {
    font-size: 0.86rem;
}

.doc-entry-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    font-size: 0.82rem;
    color: #7b8796;
}

.doc-entry-summary-block {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    white-space: nowrap;
}

.doc-entry-summary-label {
    color: #8b94a1;
    font-weight: 600;
}

.doc-entry-summary-value {
    color: #51606f;
    font-weight: 700;
}

.doc-entry-summary-sep {
    color: #bcc7d4;
    font-weight: 600;
    padding: 0 0.14rem;
}

.doc-entry-summary-block.is-alert .doc-entry-summary-value {
    color: #9f1239;
    font-weight: 800;
}

@media (max-width: 991.98px) {
    .doc-entry-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }
}

@media (max-width: 991.98px) {
    .doc-entry-page-wrapper .doc-entry-filter-item.doc-entry-quad-item {
        flex: 1 0 100%;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
}

@media (min-width: 992px) {
    .doc-entry-page-wrapper .doc-entry-filter-item {
        flex: 0 0 var(--filter-col-width);
        width: var(--filter-col-width);
        max-width: var(--filter-col-width);
        min-width: var(--filter-col-width);
    }

    .doc-entry-page-wrapper .doc-entry-filter-item.doc-entry-wide-item {
        flex: 1 1 auto !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
    }

    .doc-entry-page-wrapper .doc-entry-filter-item.doc-entry-quad-item {
        flex: 0 0 calc(var(--filter-col-width) * 4) !important;
        width: calc(var(--filter-col-width) * 4) !important;
        max-width: calc(var(--filter-col-width) * 4) !important;
        min-width: calc(var(--filter-col-width) * 4) !important;
    }
}

.product-table-shell .pagination {
    margin: 0.35rem 0.6rem 0.45rem;
    gap: 0.24rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.doc-entry-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.doc-entry-actions-left,
.doc-entry-actions-right {
    align-items: center;
}

.doc-entry-actions-right {
    margin-left: auto;
}

.query-actions {
    gap: 0.5rem;
}

.query-actions .btn {
    min-width: 5.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.query-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 16px rgba(15, 23, 42, 0.2);
    filter: brightness(1.03);
}

.query-actions .btn.btn-primary {
    background: linear-gradient(135deg, #2f4858 0%, #5f7286 100%);
    border-color: #4a5a6b;
}

.query-actions .btn.btn-outline-secondary {
    color: #e8edf3;
    background: linear-gradient(135deg, #616e7c 0%, #8a97a5 100%);
    border-color: #727f8d;
}

.query-actions .btn.js-export-btn {
    color: #4b5563;
    background: #f8fafc;
    border-color: #cfd8e3;
}

.query-actions .btn.js-export-btn:hover,
.query-actions .btn.js-export-btn:focus {
    color: #ffffff;
    background: #4b5563;
    border-color: #4b5563;
    filter: none;
}

.product-table-shell .pagination .page-item .page-link {
    border-radius: 0.55rem;
    border: 1px solid #c8d0db;
    color: #334155;
    background: linear-gradient(180deg, #f9fafb 0%, #eef2f6 100%);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
    white-space: nowrap;
    min-width: 2.35rem;
    text-align: center;
    padding: 0.28rem 0.52rem;
    font-size: 0.74rem;
}

.table-pagination-wrap {
    overflow-x: auto;
    padding-bottom: 0.2rem;
}

.table-footer-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    padding: 0.22rem 0.5rem 0.2rem;
    background: transparent;
    border-radius: 0.8rem;
}

.table-pagination-card {
    border-top-left-radius: 0.9rem;
    border-top-right-radius: 0.9rem;
    margin-bottom: 0;
    flex-shrink: 0;
}

.table-pagination-card .card-body {
    padding-top: 0.15rem !important;
    padding-bottom: 0.1rem !important;
}

.table-footer-left {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.table-total {
    font-weight: 700;
    color: #8b94a1;
    white-space: nowrap;
    font-size: 0.74rem;
}

.per-page-form {
    margin: 0;
}

.per-page-select {
    min-width: 7rem;
    border-radius: 0.55rem;
    border-color: #c8d0db;
    background: linear-gradient(180deg, #f9fafb 0%, #eef2f6 100%);
    font-weight: 600;
    font-size: 0.74rem;
    padding-top: 0.08rem;
    padding-bottom: 0.08rem;
}

.product-table-shell .pagination .page-item.active .page-link {
    color: #fff;
    border-color: #3f5266;
    background: linear-gradient(135deg, #2f4858 0%, #5f7286 100%);
}

.product-table-shell .pagination .page-item .page-link:hover {
    border-color: #8ea0b5;
    color: #1e293b;
    transform: translateY(-1px);
}

.product-table-shell .pagination .page-item.disabled .page-link {
    color: #94a3b8;
    background: linear-gradient(180deg, #f5f7fa 0%, #edf1f5 100%);
    border-color: #d4dbe5;
}

.product-table-shell .pagination .page-item .page-link.page-next {
    min-width: 2.2rem;
    padding-inline: 0.5rem;
}

@media (max-width: 767.98px) {
    .products-page-wrapper:not(.inventory-page-wrapper) .product-filter-toolbar {
        display: flex;
    }

    .products-page-wrapper:not(.inventory-page-wrapper) .query-filter-card.product-filter-collapsed .product-filter-toolbar {
        padding-bottom: 0.45rem;
    }

    .products-page-wrapper:not(.inventory-page-wrapper) .query-filter-card.product-filter-collapsed .card-body {
        display: none;
    }

    .inventory-page-wrapper .inventory-filter-toolbar {
        display: flex;
    }

    .inventory-page-wrapper .query-filter-card.inventory-filter-collapsed .inventory-filter-toolbar {
        padding-bottom: 0.45rem;
    }

    .inventory-page-wrapper .query-filter-card.inventory-filter-collapsed .card-body {
        display: none;
    }

    .stock-moves-page-wrapper .stock-move-filter-toolbar {
        display: flex;
    }

    .stock-moves-page-wrapper .query-filter-card.stock-move-filter-collapsed .stock-move-filter-toolbar {
        padding-bottom: 0.45rem;
    }

    .stock-moves-page-wrapper .query-filter-card.stock-move-filter-collapsed .card-body {
        display: none;
    }

    .stock-moves-page-wrapper .query-filter-card:not(.stock-move-filter-collapsed) .card-body {
        display: block;
        max-height: none;
        overflow: visible;
    }

    .stock-moves-page-wrapper .stock-move-filter-fields {
        min-height: auto;
        overflow-y: auto;
        overflow-x: hidden;
        max-height: 48vh;
    }

    .stock-moves-page-wrapper .stock-move-filter-row > [class*="col-"] {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .stock-moves-page-wrapper .stock-move-filter-row > .stock-move-date-item {
        flex: 0 0 calc(50% - 0.25rem) !important;
        width: calc(50% - 0.25rem) !important;
        max-width: calc(50% - 0.25rem) !important;
        min-width: 0 !important;
    }

    .stock-moves-page-wrapper .stock-move-query-actions {
        position: static;
        z-index: 1;
        background: transparent;
        padding-top: 0;
        margin-top: 0.35rem;
        justify-content: flex-end;
    }

    .products-page-wrapper {
        gap: 0.6rem;
    }

    .query-page-title {
        font-size: 1.26rem;
    }

    .product-table-shell .table-scroll-zone {
        min-height: 15rem;
    }

    .table-footer-controls {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.22rem;
        padding: 0.15rem 0.3rem 0.12rem;
    }

    .table-footer-left {
        width: 100%;
        justify-content: center;
    }

    .table-total {
        font-size: 0.74rem;
    }

    .per-page-select {
        min-width: 5.8rem;
        padding-block: 0.18rem;
    }

    .table-pagination-wrap {
        width: 100%;
        display: flex;
        justify-content: center;
        overflow-x: auto;
    }

    .product-table-shell .pagination {
        margin: 0.12rem 0 0.08rem;
    }

    .product-table-shell .pagination .page-item .page-link {
        min-width: 2rem;
        padding: 0.28rem 0.5rem;
        border-radius: 0.48rem;
    }
}


@media (min-width: 992px) {
    .query-filter-card {
        --filter-col-width: 10.8rem;
    }

    .query-filter-card .row {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-end;
        gap: 0.5rem 0.55rem;
    }

    .query-filter-card .row > [class*="col-"]:not(.query-actions):not(.inventory-query-actions):not(.stock-move-query-actions) {
        flex: 0 0 var(--filter-col-width) !important;
        width: var(--filter-col-width) !important;
        max-width: var(--filter-col-width) !important;
        min-width: var(--filter-col-width) !important;
    }

    .doc-entry-page-wrapper .query-filter-card .row > .doc-entry-filter-item.doc-entry-quad-item {
        flex: 0 0 calc(var(--filter-col-width) * 4) !important;
        width: calc(var(--filter-col-width) * 4) !important;
        max-width: calc(var(--filter-col-width) * 4) !important;
        min-width: calc(var(--filter-col-width) * 4) !important;
    }

    .doc-entry-page-wrapper .query-filter-card .row > [class*="col-"].doc-entry-filter-item.doc-entry-quad-item:not(.query-actions):not(.inventory-query-actions):not(.stock-move-query-actions) {
        flex: 0 0 calc(var(--filter-col-width) * 4) !important;
        width: calc(var(--filter-col-width) * 4) !important;
        max-width: calc(var(--filter-col-width) * 4) !important;
        min-width: calc(var(--filter-col-width) * 4) !important;
    }

    .query-actions {
        margin-left: auto;
        justify-content: flex-end;
        flex: 0 0 auto !important;
        width: auto !important;
        white-space: nowrap;
    }

    .doc-entry-page-wrapper .doc-entry-actions {
        width: 100%;
    }
}

@media (min-width: 992px) {
    .inventory-page-wrapper .inventory-filter-row {
        display: flex;
        flex-wrap: wrap !important;
        align-items: flex-end;
    }

    .inventory-page-wrapper .inventory-filter-item {
        flex: 0 0 var(--filter-col-width) !important;
        width: var(--filter-col-width) !important;
        max-width: var(--filter-col-width) !important;
        min-width: var(--filter-col-width) !important;
    }

    .inventory-page-wrapper .inventory-query-actions {
        flex: 0 0 auto !important;
        width: auto !important;
        margin-left: auto !important;
        justify-content: flex-end;
        white-space: nowrap;
    }

    .stock-moves-page-wrapper .stock-move-filter-fields {
        padding-right: 0;
        max-height: 32vh;
    }

    .stock-moves-page-wrapper .stock-move-query-actions {
        position: static;
        transform: none;
        margin-top: 0;
        justify-content: flex-end;
        white-space: nowrap;
        background: transparent;
        padding-top: 0;
    }

    .stock-moves-page-wrapper .stock-move-actions-bar {
        margin-top: 0.4rem;
    }
}
