﻿.inventory-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: -8px -4px 0;
    padding: 0 0 34px;
    color: #102648;
}

.inventory-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.inventory-page-header h1 {
    margin: 0;
    font-size: 26px;
    line-height: 1.12;
    font-weight: 800;
    color: #102648;
}

.inventory-page-header p {
    margin: 10px 0 0;
    max-width: 940px;
    color: #63748d;
    font-size: 14px;
    line-height: 1.5;
}

.inventory-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    padding-bottom: 0;
    border-bottom: 1px solid #cfdcf0;
}

.inventory-tab {
    border: none;
    background: transparent;
    min-height: 38px;
    padding: 0 0 12px;
    color: #102648;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    border-radius: 0;
}

.inventory-tab.active {
    color: #1f6eff;
    border-bottom-color: #2d72f7;
    background: transparent;
}

.inventory-tab:hover {
    color: #1f6eff;
    background: transparent;
}

.inventory-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 640px;
    gap: 18px;
    align-items: start;
}

.inventory-page.inventory-page-has-drawer-no .inventory-workspace {
    grid-template-columns: minmax(0, 1fr);
}

.inventory-content {
    min-width: 0;
}

.inventory-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.inventory-toolbar-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.inventory-select-card {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid rgba(207, 220, 240, 0.95);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 8px 20px rgba(30, 64, 115, 0.04);
    position: relative;
}

.inventory-select-card-icon {
    color: #394b63;
    font-size: 14px;
    line-height: 1;
}

.inventory-select-card-label {
    color: #102648;
    font-size: 12px;
    font-weight: 800;
}

.inventory-select-card select {
    border: none;
    outline: none;
    background: transparent;
    color: #102648;
    font-size: 12px;
    font-weight: 800;
}

.inventory-category-trigger {
    border: none;
    background: transparent;
    color: #102648;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.inventory-category-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 25;
    width: 280px;
    padding: 8px 10px 10px;
    border: 1px solid #cfe0ff;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(31, 47, 70, 0.14);
}

.inventory-category-menu input {
    width: 100%;
    height: 30px;
    margin-bottom: 8px;
    padding: 0 10px;
    border: 1px solid #2d72f7;
    border-radius: 4px;
    color: #1d2c42;
    font-size: 13px;
    outline: none;
}

.inventory-category-root,
.inventory-category-child {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
    min-height: 30px;
    margin: 2px 0;
    padding: 7px 8px;
    border: none;
    border-radius: 7px;
    background: transparent;
    color: #26364d;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    text-align: left;
    cursor: pointer;
    white-space: normal;
}

.inventory-category-root.active,
.inventory-category-child.active,
.inventory-category-root:hover,
.inventory-category-child:hover {
    background: #eaf2ff;
}

.inventory-category-child {
    padding-left: 28px;
}

.inventory-category-branch {
    flex: 0 0 12px;
    color: #596d88;
    font-size: 11px;
    line-height: 16px;
    text-align: center;
}

.inventory-category-name {
    min-width: 0;
    overflow-wrap: anywhere;
}

.inventory-category-menu-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.inventory-category-menu-footer button {
    border: none;
    background: transparent;
    color: #1269e8;
    font-size: 12px;
    cursor: pointer;
}

.inventory-toolbar-actions {
    display: flex;
    gap: 8px;
}

.inventory-toolbar-btn,
.inventory-toolbar-icon-btn,
.inventory-save-btn {
    height: 38px;
    border: 1px solid rgba(207, 220, 240, 0.95);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.84);
    padding: 0 14px;
    color: #102648;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.inventory-toolbar-icon-btn {
    width: 38px;
    padding: 0;
}

.inventory-toolbar-icon-btn.active {
    border-color: #2d72f7;
    box-shadow: 0 0 0 2px rgba(45, 114, 247, 0.12);
}

.inventory-stock-settings-menu-wrap {
    position: relative;
}

.inventory-stock-settings-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 20;
    width: 230px;
    padding: 8px 0;
    border: 1px solid #dce3ee;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(31, 47, 70, 0.14);
}

.inventory-stock-settings-menu label {
    min-height: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 10px;
    color: #2a394d;
    font-size: 13px;
    line-height: 1.25;
    cursor: pointer;
}

.inventory-stock-settings-menu label:hover {
    background: #eaf2ff;
}

.inventory-stock-settings-menu input {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    accent-color: #2d72f7;
}

.inventory-save-btn {
    background: #2d72f7;
    border-color: #2d72f7;
    color: #fff;
    min-width: 120px;
    font-weight: 600;
}

.inventory-save-btn:disabled {
    cursor: default;
    opacity: 0.6;
}

.inventory-panel,
.inventory-drawer {
    border: 1px solid #d9e2ef;
    border-radius: 16px;
    background: #fff;
}

.inventory-panel {
    padding: 16px;
}

.inventory-stock-panel {
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0;
}

.inventory-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin: 12px 0 18px;
}

.inventory-search {
    flex: 1;
    max-width: 360px;
}

.inventory-search input {
    width: 100%;
    height: 38px;
    padding: 0 42px 0 16px;
    border: 1px solid rgba(207, 220, 240, 0.95);
    border-radius: 8px;
    outline: none;
    font-size: 13px;
    background:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='11' cy='11' r='7' stroke='%23667A9E' stroke-width='2'/%3E%3Cpath d='m16 16 4 4' stroke='%23667A9E' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") calc(100% - 14px) center / 16px 16px no-repeat,
        rgba(255, 255, 255, 0.84);
    box-shadow: 0 8px 20px rgba(30, 64, 115, 0.04);
}

.inventory-search input:focus,
.inventory-field input:focus,
.inventory-field select:focus {
    border-color: #2d72f7;
    box-shadow: 0 0 0 3px rgba(45, 114, 247, 0.12);
}

.inventory-summary-inline {
    display: flex;
    gap: 18px;
    color: #667a9e;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.inventory-summary-inline strong {
    color: #102648;
}

.inventory-status {
    min-height: 20px;
    margin-bottom: 10px;
    color: #60708a;
    font-size: 13px;
}

.inventory-status.is-error {
    color: #c13e4d;
}

.inventory-table-wrap {
    overflow: auto;
    border: 1px solid rgba(207, 220, 240, 0.95);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 14px 34px rgba(30, 64, 115, 0.07);
}

.inventory-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 12px;
    color: #475467;
    font-size: 12px;
}

.inventory-pagination-summary {
    margin-right: auto;
}

.inventory-pagination-size,
.inventory-pagination-pages,
.inventory-pagination-pages label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.inventory-pagination select {
    height: 30px;
    border: 1px solid #cad5e6;
    border-radius: 6px;
    background: #fff;
    color: #1d2c42;
    font-size: 12px;
    padding: 0 8px;
}

.inventory-pagination button {
    width: 30px;
    height: 30px;
    border: 1px solid #cad5e6;
    border-radius: 6px;
    background: #fff;
    color: #1d2c42;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.inventory-pagination button:disabled,
.inventory-pagination select:disabled {
    cursor: default;
    opacity: 0.45;
}

.inventory-table {
    width: 100%;
    min-width: 1540px;
    border-collapse: collapse;
    table-layout: fixed;
    background: rgba(255, 255, 255, 0.74);
}

.inventory-table thead th {
    padding: 8px 10px;
    background: linear-gradient(180deg, #f7f9fd 0%, #eef3fa 100%);
    color: #667796;
    font-size: 11px;
    font-weight: 800;
    text-align: left;
    border-bottom: 1px solid #d8e2f0;
    border-right: 1px solid #d8e2f0;
    white-space: normal;
    position: relative;
    overflow: hidden;
    text-overflow: clip;
    line-height: 1.25;
}

.inventory-table thead tr:first-child th {
    height: 40px;
}

.inventory-table thead tr:nth-child(2) th {
    height: 34px;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
}

.inventory-table-group {
    text-align: center !important;
}

.inventory-check-col {
    width: 34px;
    text-align: center !important;
}

.inventory-check-col input {
    width: 14px;
    height: 14px;
}

.inventory-name-col {
    min-width: 360px;
    background: linear-gradient(180deg, #f7f9fd 0%, #eef3fa 100%) !important;
}

.inventory-sort-icon {
    float: right;
    color: #a5afbd;
    font-size: 11px;
    margin-left: 8px;
    line-height: 1.25;
}

.inventory-column-resize {
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 100%;
    cursor: col-resize;
    z-index: 2;
}

.inventory-column-resize::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    right: 3px;
    width: 1px;
    background: rgba(0, 0, 0, 0.16);
    opacity: 0;
}

.inventory-resizable-head:hover .inventory-column-resize::before,
.inventory-column-resize.is-resizing::before {
    opacity: 1;
}

.inventory-table tbody td {
    height: 31px !important;
    min-height: 31px !important;
    max-height: 31px !important;
    padding: 6px 10px;
    border-bottom: 1px solid #e6edf7;
    border-right: 1px solid #e6edf7;
    color: #102648;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inventory-table tbody tr {
    height: 31px !important;
    min-height: 31px !important;
    max-height: 31px !important;
    cursor: pointer;
}

.inventory-table tbody tr:hover {
    background: #f8fbff;
}

.inventory-table tbody tr.active {
    background: #eef5ff;
}

.inventory-table tbody tr.inventory-row-selected td {
    background: #eef5ff;
}

.inventory-item-name {
    font-weight: 800;
    white-space: normal;
    line-height: 1.18;
}

.inventory-stock-bulkbar {
    display: none;
    position: fixed;
    left: var(--sidebar-width, 190px);
    right: 0;
    bottom: 0;
    z-index: 35;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 54px;
    padding: 9px 10px;
    border-top: 1px solid #e7edf5;
    background: #fff;
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.04);
}

.inventory-stock-bulkbar.show {
    display: flex;
}

.inventory-stock-bulk-left {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.inventory-stock-bulk-actions-wrap {
    position: relative;
}

.inventory-stock-bulk-btn {
    min-height: 34px;
    padding: 0;
    border: 1px solid #cfd6df;
    border-radius: 3px;
    background: #fff;
    color: #1f2937;
    font-size: 12px;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}

.inventory-stock-bulk-btn span:first-child {
    padding: 0 14px;
}

.inventory-stock-bulk-btn-caret {
    align-self: stretch;
    min-width: 31px;
    border-left: 1px solid #cfd6df;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.inventory-stock-bulk-btn:hover,
.inventory-stock-bulk-btn.active {
    background: #f5f7fa;
    color: #1f2937;
}

.inventory-stock-actions-menu {
    position: absolute;
    left: 0;
    right: auto;
    bottom: calc(100% + 6px);
    top: auto;
    z-index: 25;
    width: 240px;
    padding: 8px 0;
    border: 1px solid #dce3ee;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(31,47,70,0.14);
}

.inventory-stock-actions-menu button {
    width: 100%;
    min-height: 32px;
    border: none;
    background: transparent;
    padding: 0 14px;
    color: #2a394d;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.inventory-stock-actions-menu button:hover {
    background: #eaf2ff;
}

.inventory-stock-action-icon {
    width: 18px;
    color: #2a394d;
    font-size: 15px;
    line-height: 1;
    text-align: center;
    flex: 0 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.inventory-stock-action-icon svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.inventory-stock-bulk-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1f2937;
    font-size: 12px;
    font-weight: 400;
}

.inventory-stock-bulk-clear {
    width: 17px;
    height: 17px;
    min-height: 17px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: #c7cbd1;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
}

.inventory-stock-bulk-clear:hover {
    background: #9ca3af;
}

.inventory-stock-bulk-delete {
    display: none;
    width: 50px;
    height: 34px;
    margin-left: auto;
    margin-right: 0;
    border: none;
    border-radius: 4px;
    background: #ff1f1f;
    color: #fff;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.inventory-stock-bulk-delete.show {
    display: inline-flex;
}

.inventory-stock-bulk-delete:hover {
    background: #e51515;
}

.inventory-stock-bulk-delete:disabled {
    cursor: default;
    opacity: .55;
}

.inventory-stock-bulk-delete svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.inventory-stock-move-note {
    color: #667085;
    font-size: 13px;
}

.inventory-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    height: 28px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.inventory-status-badge.is-on {
    background: #e9f7ee;
    color: #177f49;
}

.inventory-status-badge.is-off {
    background: #fff0f0;
    color: #bf4654;
}

.inventory-empty-cell {
    padding: 32px 18px !important;
    text-align: center;
    color: #657790 !important;
}

.inventory-drawer {
    display: flex;
    flex-direction: column;
    min-height: 720px;
    overflow: hidden;
}

.inventory-drawer-empty {
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 30px;
    text-align: center;
    color: #60708a;
}

.inventory-drawer-empty strong {
    color: #1d2c42;
    font-size: 16px;
}

.inventory-drawer-empty-icon,
.inventory-placeholder-icon {
    font-size: 36px;
}

.inventory-drawer-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    padding: 18px 18px 12px;
    border-bottom: 1px solid #e1e7f0;
}

.inventory-drawer-title-wrap h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

.inventory-drawer-meta {
    margin-top: 6px;
    color: #60708a;
    font-size: 13px;
}

.inventory-drawer-close {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 8px;
    background: #f1f4f9;
    color: #60708a;
    font-size: 22px;
    cursor: pointer;
}

.inventory-drawer-tabs {
    display: flex;
    gap: 18px;
    padding: 0 18px;
    border-bottom: 1px solid #e1e7f0;
    overflow-x: auto;
}

.inventory-drawer-tab {
    border: none;
    background: transparent;
    padding: 12px 0;
    color: #52627b;
    font-size: 13px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.inventory-drawer-tab.active {
    color: #2d72f7;
    border-bottom-color: #2d72f7;
}

.inventory-drawer-body {
    flex: 1;
    overflow: auto;
    padding: 18px;
}

.inventory-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.inventory-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.inventory-field-full {
    grid-column: 1 / -1;
}

.inventory-field span {
    color: #5b6b84;
    font-size: 12px;
    font-weight: 600;
}

.inventory-field input,
.inventory-field select {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #cad5e6;
    border-radius: 10px;
    outline: none;
    background: #fff;
    color: #1d2c42;
    font-size: 14px;
}

.inventory-field input:disabled,
.inventory-field select:disabled {
    background: #f7f9fc;
    color: #74849b;
}

.inventory-receipt-page {
    min-height: 620px;
    position: relative;
}

.inventory-receipt-copy {
    margin: 0 0 14px;
    color: #25364f;
    font-size: 13px;
}

.inventory-receipt-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.inventory-receipt-toolbar-left,
.inventory-receipt-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.inventory-receipt-primary,
.inventory-receipt-import-button,
.inventory-receipt-filter,
.inventory-receipt-action,
.inventory-receipt-icon-action {
    height: 34px;
    border: 1px solid #c8d1df;
    border-radius: 4px;
    background: #fff;
    padding: 0 12px;
    color: #1d2c42;
    font-size: 13px;
    cursor: pointer;
}

.inventory-receipt-import-button {
    background: #fff;
    color: #1d2c42;
}

.inventory-receipt-filter-wrap {
    position: relative;
}

.inventory-receipt-actions-menu-wrap {
    position: relative;
}

.inventory-receipt-settings-menu-wrap {
    position: relative;
}

.inventory-receipt-filter.active,
.inventory-receipt-action.active,
.inventory-receipt-icon-action.active {
    border-color: #2d72f7;
    box-shadow: 0 0 0 2px rgba(45, 114, 247, 0.12);
}

.inventory-receipt-filter-menu,
.inventory-receipt-actions-menu,
.inventory-receipt-settings-menu {
    position: absolute;
    top: calc(100% + 6px);
    z-index: 20;
    padding: 6px 0;
    border: 1px solid #dce3ee;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(31, 47, 70, 0.14);
}

.inventory-receipt-filter-menu {
    left: 0;
    width: 200px;
}

.inventory-receipt-actions-menu {
    right: 0;
    width: 200px;
}

.inventory-receipt-settings-menu {
    right: 0;
    width: 200px;
    padding: 8px 0;
}

.inventory-receipt-filter-menu button,
.inventory-receipt-actions-menu button {
    width: 100%;
    height: 27px;
    border: none;
    background: transparent;
    padding: 0 10px;
    color: #2a394d;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.inventory-receipt-filter-menu button:hover,
.inventory-receipt-filter-menu button.active,
.inventory-receipt-actions-menu button:hover {
    background: #eaf2ff;
}

.inventory-receipt-settings-menu label {
    height: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    color: #2a394d;
    font-size: 13px;
    cursor: pointer;
}

.inventory-receipt-settings-menu label:hover {
    background: #f3f7ff;
}

.inventory-receipt-settings-menu input {
    width: 14px;
    height: 14px;
    accent-color: #2d72f7;
}

.inventory-receipt-filter-separator {
    height: 1px;
    margin: 6px 0;
    background: #edf1f6;
}

.inventory-receipt-primary {
    border-color: #0ca34a;
    background: #0ca34a;
    color: #fff;
    font-weight: 700;
}

.inventory-receipt-icon-action {
    min-width: 52px;
    padding: 0 10px;
}

.inventory-receipt-divider {
    width: 1px;
    height: 28px;
    background: #d7dee9;
}

.inventory-receipt-table-tools {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 0 6px;
}

.inventory-receipt-toolbar-right .inventory-receipt-table-tools {
    min-height: 0;
    padding: 0;
}

.inventory-receipt-composer {
    max-width: 720px;
    margin-bottom: 14px;
    padding: 16px;
    border: 1px solid #d9e2ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(31, 47, 70, 0.08);
}

.inventory-receipt-composer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    color: #1d2c42;
}

.inventory-receipt-composer-head button {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 4px;
    background: #f1f4f9;
    color: #60708a;
    font-size: 20px;
    cursor: pointer;
}

.inventory-receipt-form {
    margin-bottom: 14px;
}

.inventory-receipt-actions {
    display: flex;
    justify-content: flex-end;
}

.inventory-receipt-table-wrap {
    overflow: auto;
    border-top: 1px solid #e1e5ec;
}

.inventory-receipt-table {
    width: 100%;
    min-width: 1120px;
    border-collapse: collapse;
}

.inventory-receipt-table th {
    height: 34px;
    padding: 0 10px;
    border-right: 1px solid #dce1e8;
    background: #eef0f3;
    color: #1d2c42;
    font-size: 12px;
    font-weight: 500;
    text-align: left;
    white-space: nowrap;
}

.inventory-receipt-table td {
    height: 42px;
    padding: 8px 10px;
    border-right: 1px solid #e2e7ef;
    border-bottom: 1px solid #eef2f7;
    color: #10233f;
    font-size: 12px;
    white-space: nowrap;
}

.inventory-receipt-row {
    cursor: pointer;
}

.inventory-receipt-row:hover td {
    background: #f7faff;
}

.inventory-receipt-table th:last-child {
    text-align: right;
}

.inventory-receipt-table th.is-money,
.inventory-receipt-table td.is-money {
    text-align: right;
}

.inventory-receipt-doc-title {
    font-weight: 700;
}

.inventory-receipt-doc-subtitle {
    margin-top: 2px;
    color: #667085;
    font-size: 11px;
}

.inventory-receipt-detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
}

.inventory-receipt-back {
    border: 1px solid #cfd8e6;
    border-radius: 4px;
    background: #fff;
    color: #10233f;
    font-size: 13px;
    font-weight: 600;
    height: 34px;
    padding: 0 12px;
    cursor: pointer;
}

.inventory-receipt-back:hover {
    background: #f3f7fc;
}

.inventory-receipt-detail-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.inventory-receipt-delete {
    height: 34px;
    border: 1px solid #f0b8b8;
    border-radius: 4px;
    background: #fff7f7;
    color: #b42318;
    font-size: 13px;
    font-weight: 600;
    padding: 0 12px;
    cursor: pointer;
}

.inventory-receipt-delete:hover {
    background: #fee4e2;
}

.inventory-receipt-detail-state {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667085;
    font-size: 14px;
}

.inventory-receipt-detail-state.is-error {
    color: #c03744;
}

.inventory-receipt-detail-summary {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr auto;
    gap: 20px;
    padding: 18px 0 20px;
    border-top: 1px solid #e1e5ec;
    border-bottom: 1px solid #e1e5ec;
}

.inventory-receipt-detail-kicker {
    color: #667085;
    font-size: 12px;
    font-weight: 600;
}

.inventory-receipt-detail-summary h2 {
    margin: 4px 0 0;
    color: #10233f;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.inventory-receipt-detail-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(130px, 1fr));
    gap: 12px 16px;
}

.inventory-receipt-detail-meta-item span {
    display: block;
    margin-bottom: 3px;
    color: #667085;
    font-size: 11px;
}

.inventory-receipt-detail-meta-item strong {
    display: block;
    color: #10233f;
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.inventory-receipt-detail-settings-slot {
    align-self: end;
    justify-self: end;
}

.inventory-receipt-detail-settings-slot .inventory-receipt-table-tools {
    min-height: auto;
    padding: 0;
}

.inventory-receipt-detail-table-wrap {
    overflow: auto;
    border-bottom: 1px solid #e1e5ec;
}

.inventory-receipt-detail-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.inventory-receipt-detail-table th,
.inventory-receipt-detail-table td {
    padding: 8px 10px;
    border-right: 1px solid #e2e7ef;
    border-bottom: 1px solid #eef2f7;
    color: #10233f;
    font-size: 12px;
    text-align: left;
    vertical-align: top;
}

.inventory-receipt-detail-table th {
    height: 34px;
    background: #eef0f3;
    font-weight: 500;
    white-space: nowrap;
}

.inventory-receipt-detail-resizable-head {
    position: relative;
}

.inventory-receipt-detail-resizable-head .inventory-column-resize-left {
    left: 0;
    right: auto;
}

.inventory-receipt-detail-resizable-head .inventory-column-resize-left::before {
    left: 3px;
    right: auto;
}

.inventory-receipt-detail-table .is-number,
.inventory-receipt-detail-table .is-money {
    text-align: right;
    white-space: nowrap;
}

.inventory-receipt-line-name {
    font-weight: 600;
}

.inventory-receipt-line-subtitle {
    margin-top: 2px;
    color: #667085;
    font-size: 11px;
}

.inventory-receipt-empty {
    min-height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px 20px;
    text-align: center;
}

.inventory-receipt-empty.hidden {
    display: none;
}

.inventory-receipt-empty h2 {
    margin: 0;
    color: #10233f;
    font-size: 18px;
    font-weight: 500;
}

.inventory-receipt-empty p {
    margin: 0;
    max-width: 760px;
    color: #203653;
    font-size: 13px;
    line-height: 1.45;
}

.inventory-receipt-empty button {
    border: none;
    background: transparent;
    color: #1269e8;
    font-size: 13px;
    cursor: pointer;
}

.inventory-receipt-empty-box {
    width: 86px;
    height: 62px;
    position: relative;
    margin-bottom: 8px;
}

.inventory-receipt-empty-box::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 18px;
    width: 42px;
    height: 34px;
    border: 3px solid #2d72f7;
    border-top: none;
    transform: skewY(8deg);
}

.inventory-receipt-empty-box::after {
    content: "";
    position: absolute;
    left: 14px;
    top: 8px;
    width: 58px;
    height: 28px;
    border: 3px solid #2d72f7;
    background: linear-gradient(135deg, transparent 47%, #2d72f7 48%, #2d72f7 52%, transparent 53%);
    transform: rotate(-8deg);
}

.inventory-toggle-list {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.inventory-check {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #32445f;
    font-size: 14px;
}

.inventory-placeholder-block {
    padding: 18px;
    border: 1px dashed #ccd7e8;
    border-radius: 12px;
    background: #f9fbff;
    color: #60708a;
}

.inventory-placeholder-block strong {
    display: block;
    margin-bottom: 8px;
    color: #1d2c42;
}

.inventory-drawer-footer {
    padding: 16px 18px 18px;
    border-top: 1px solid #e1e7f0;
}

.inventory-item-drawer-root {
    position: fixed;
    inset: 0;
    z-index: 1300;
}

.inventory-item-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.inventory-item-drawer {
    position: absolute;
    top: 0;
    right: 0;
    width: min(760px, calc(100vw - 44px));
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: -12px 0 28px rgba(19, 34, 55, 0.18);
}

.inventory-item-drawer-head {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #dde3ec;
    padding: 0 0 0 18px;
}

.inventory-item-drawer-head h2 {
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #343f4f;
    font-size: 22px;
    font-weight: 400;
}

.inventory-item-drawer-head button {
    width: 40px;
    height: 48px;
    border: none;
    border-left: 1px solid #dde3ec;
    background: #fff;
    color: #7a8492;
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
}

.inventory-item-drawer-create .inventory-item-drawer-body {
    padding-top: 14px;
}

.inventory-item-tabs {
    display: flex;
    gap: 18px;
    height: 43px;
    align-items: flex-end;
    padding: 0 14px;
    border-bottom: 1px solid #e4e9f1;
    background: #fbfcfe;
}

.inventory-item-tabs button {
    height: 34px;
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #2d3848;
    font-size: 13px;
    cursor: pointer;
}

.inventory-item-tabs button.active {
    color: #1269e8;
    border-bottom-color: #1269e8;
}

.inventory-item-drawer-body {
    flex: 1;
    overflow: auto;
    padding: 14px 14px 84px;
}

.inventory-item-general {
    display: grid;
    grid-template-columns: 214px minmax(0, 1fr);
    gap: 14px;
}

.inventory-item-upload {
    display: flex;
    height: 214px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 1px dashed #c7d2e1;
    color: #2d3848;
    text-align: center;
}

.inventory-item-upload-icon {
    color: #000;
    font-size: 34px;
    line-height: 1;
    margin-bottom: 14px;
}

.inventory-item-upload strong {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.inventory-item-upload strong span {
    color: #1269e8;
}

.inventory-item-upload p {
    margin: 10px 0 0;
    color: #39485c;
    font-size: 12px;
    line-height: 1.35;
}

.inventory-item-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.inventory-item-inline-field {
    display: grid;
    gap: 5px;
    color: #2d3848;
    font-size: 12px;
}

.inventory-item-inline-field b,
.inventory-item-inline-field label span {
    color: #d9262f;
}

.inventory-item-inline-field input,
.inventory-item-inline-field select,
.inventory-item-inline-field textarea {
    width: 100%;
    min-height: 30px;
    border: 1px solid #c8cfd8;
    border-radius: 4px;
    background: #fff;
    padding: 0 10px;
    color: #26364d;
    font-size: 12px;
    outline: none;
}

.inventory-item-inline-field input:focus,
.inventory-item-inline-field select:focus,
.inventory-item-inline-field textarea:focus {
    border-color: #2d72f7;
    box-shadow: 0 0 0 2px rgba(45, 114, 247, 0.12);
}

.inventory-item-inline-field textarea {
    min-height: 62px;
    padding: 8px 10px;
    resize: vertical;
}

.inventory-item-category-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.inventory-item-category-row button {
    height: 30px;
    border: 1px solid #c8cfd8;
    border-radius: 4px;
    background: #fff;
    padding: 0 12px;
    color: #1d2c42;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.inventory-item-details-grid {
    display: grid;
    grid-template-columns: 214px minmax(0, 1fr);
    gap: 14px;
    margin-top: 14px;
    padding-top: 16px;
    border-top: 1px solid #edf1f7;
}

.inventory-item-details-grid h3,
.inventory-item-prices h3 {
    margin: 0 0 10px;
    color: #2d3848;
    font-size: 14px;
    font-weight: 600;
}

.inventory-barcode-preview {
    width: 96px;
    height: 48px;
    overflow: hidden;
    color: #111;
    font-family: "Courier New", monospace;
    font-size: 22px;
    letter-spacing: -2px;
    line-height: 48px;
}

.inventory-link-btn {
    border: none;
    background: transparent;
    padding: 0;
    color: #1269e8;
    font-size: 12px;
    cursor: pointer;
}

.inventory-item-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    color: #46556a;
    font-size: 12px;
}

.inventory-item-check input {
    width: 14px;
    height: 14px;
    accent-color: #2d72f7;
}

.inventory-item-prices {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #edf1f7;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.inventory-item-two-column-section {
    display: grid;
    grid-template-columns: 206px minmax(0, 1fr);
    gap: 14px;
}

.inventory-item-two-column-section p {
    margin: 0;
    color: #8993a3;
    font-size: 12px;
    line-height: 1.45;
}

.inventory-item-prices-table,
.inventory-item-stock-table {
    width: 100%;
}

.inventory-item-prices-head,
.inventory-item-prices-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 130px;
}

.inventory-item-prices-head span,
.inventory-item-prices-row span,
.inventory-item-prices-row input {
    min-height: 32px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #edf1f7;
    padding: 0 8px;
    color: #1f2f46;
    font-size: 12px;
}

.inventory-item-prices-head span {
    background: #eceef2;
    font-weight: 500;
}

.inventory-item-prices-row input {
    border: none;
    border-left: 1px solid #dde3ec;
    text-align: right;
    justify-content: flex-end;
    background: #fff;
}

.inventory-item-stock-control,
.inventory-item-commission {
    display: grid;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #edf1f7;
}

.inventory-item-rule-btn {
    height: 29px;
    border: 1px solid #0ca34a;
    border-radius: 4px;
    background: #0ca34a;
    padding: 0 14px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 6px;
}

.inventory-item-stock-head {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 126px 126px;
}

.inventory-item-stock-head span {
    min-height: 34px;
    display: flex;
    align-items: center;
    border-right: 1px solid #dde3ec;
    background: #eceef2;
    padding: 0 8px;
    color: #1f2f46;
    font-size: 12px;
}

.inventory-item-stock-empty {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.inventory-item-stock-empty strong {
    color: #1d2c42;
    font-size: 16px;
    font-weight: 500;
}

.inventory-item-stock-empty p {
    max-width: 420px;
    color: #33445d;
    font-size: 12px;
}

.inventory-item-commission .inventory-item-check:first-child {
    margin-top: 0;
}

.inventory-item-drawer-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    height: 58px;
    padding: 0 14px;
    border-top: 1px solid #dbe6f3;
    background: #edf5ff;
}

.inventory-placeholder-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 52px 28px;
    text-align: center;
}

.inventory-placeholder-panel h2 {
    margin: 0;
    font-size: 20px;
    color: #1d2c42;
}

.inventory-placeholder-panel p {
    margin: 0;
    max-width: 560px;
    color: #60708a;
    line-height: 1.6;
}

@media (max-width: 1440px) {
    .inventory-workspace {
        grid-template-columns: minmax(0, 1fr) 520px;
    }
}

@media (max-width: 1180px) {
    .inventory-workspace,
    .inventory-page.inventory-page-has-drawer-no .inventory-workspace {
        grid-template-columns: 1fr;
    }

    .inventory-drawer {
        min-height: auto;
    }
}

@media (max-width: 760px) {
    .inventory-page {
        padding: 18px 14px 24px;
    }

    .inventory-toolbar,
    .inventory-panel-head {
        flex-direction: column;
        align-items: stretch;
    }

    .inventory-toolbar-filters {
        flex-direction: column;
    }

    .inventory-select-card {
        width: 100%;
        justify-content: space-between;
    }

    .inventory-form-grid {
        grid-template-columns: 1fr;
    }
}
