.stocktaking-page .stocktaking-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    padding: 22px 18px 26px;
    margin-bottom: 26px;
}

.stocktaking-page .stocktaking-header {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.stocktaking-page .required-star {
    color: #ff3b30;
    font-weight: 700;
}

.stocktaking-page .stocktaking-filter-actions,
.stocktaking-page .stocktaking-grid-actions,
.stocktaking-page .stocktaking-grid-top-actions {
    /*display: flex;
   // align-items: end;*/
/*    gap: 10px;*/
    /*flex-wrap: wrap;*/
}

.stocktaking-page .stocktaking-filter-actions {
    min-height: 74px;
}

.stocktaking-page .stocktaking-grid-top-actions {
    margin-top: 12px;
    margin-bottom: 16px;
}

.stocktaking-page.stocktaking-figma-page .stocktaking-master-card,
.stocktaking-page.stocktaking-figma-page .stocktaking-grid-card {
    padding: 26px 18px;
}

.stocktaking-page.stocktaking-figma-page .stocktaking-master-field label,
.stocktaking-page.stocktaking-figma-page .stocktaking-filter-col label,
.stocktaking-page.stocktaking-figma-page  label {
    display: block;
    margin-bottom: 8px;
    color: #444;
    font-weight: 700;
    font-size: 13px;
}

.stocktaking-page.stocktaking-figma-page .stocktaking-master-card .form-control,
.stocktaking-page.stocktaking-figma-page .stocktaking-master-card .form-select,
.stocktaking-page.stocktaking-figma-page .stocktaking-grid-card .form-control,
.stocktaking-page.stocktaking-figma-page .stocktaking-grid-card .form-select {
    height: 40px;
    border-radius: 4px;
    border: 1px solid #dfe5ec;
    box-shadow: none;
}

.stocktaking-page.stocktaking-figma-page .select2-container {
    width: 100% !important;
}

.stocktaking-page.stocktaking-figma-page .select2-container .select2-selection--single,
.stocktaking-page.stocktaking-figma-page .select2-container .select2-selection--multiple {
    min-height: 40px;
    border: 1px solid #dfe5ec;
    border-radius: 4px;
    box-shadow: none;
    display: flex;
    align-items: center;
    padding: 4px 12px;
}

.stocktaking-page.stocktaking-figma-page .select2-container .select2-selection--multiple {
    flex-wrap: wrap;
    gap: 4px;
    align-items: flex-start;
}

.stocktaking-page.stocktaking-figma-page .select2-container .select2-selection--single .select2-selection__rendered,
.stocktaking-page.stocktaking-figma-page .select2-container .select2-selection--multiple .select2-selection__rendered {
    padding: 0;
    margin: 0;
    line-height: 1.6;
}

.stocktaking-page.stocktaking-figma-page .stocktaking-item-picker {
    width: 100%;
}

.stocktaking-page.stocktaking-figma-page .stocktaking-item-picker .select2-container {
    width: 100% !important;
}

.stocktaking-page.stocktaking-figma-page .stocktaking-item-picker .select2-selection--multiple {
    position: relative;
    height: 40px !important;
    min-height: 40px !important;
    padding: 4px 30px 4px 12px !important;
    border: 1px solid #dfe5ec !important;
    border-radius: 4px !important;
    background: #fff;
    overflow: hidden;
    box-sizing: border-box;
}

.stocktaking-page.stocktaking-figma-page .stocktaking-item-picker .select2-selection--multiple::after {
    content: "\f107";
    font-family: FontAwesome;
    position: absolute;
    inset-inline-end: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
    font-size: 13px;
    pointer-events: none;
}

.stocktaking-page.stocktaking-figma-page .stocktaking-item-picker .select2-selection--multiple .select2-selection__rendered {
    display: block !important;
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 30px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stocktaking-page.stocktaking-figma-page .stocktaking-item-picker .select2-selection--multiple .select2-selection__choice {
    float: none !important;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    color: #555;
    font-size: 14px;
    font-weight: 400;
}

.stocktaking-page.stocktaking-figma-page .stocktaking-item-picker .select2-selection--multiple .select2-selection__placeholder {
    display: block;
    margin: 0 !important;
    color: #777;
    line-height: 20px;
}

.stocktaking-page.stocktaking-figma-page .stocktaking-item-picker .select2-selection--multiple .select2-selection__choice__remove,
.stocktaking-page.stocktaking-figma-page .stocktaking-item-picker .select2-search--inline {
    display: none !important;
}

.stocktaking-page.stocktaking-figma-page .stocktaking-item-picker .select2-dropdown {
    border: 1px solid #d2d6de;
    border-radius: 4px;
    box-shadow: none;
}

.stocktaking-page.stocktaking-figma-page .stocktaking-item-picker .select2-search--dropdown {
    display: block;
    padding: 8px;
}

.stocktaking-page.stocktaking-figma-page .stocktaking-item-picker .select2-search--dropdown .select2-search__field {
    height: 34px;
    border: 1px solid #d2d6de;
    border-radius: 4px;
    padding: 6px 12px;
}

.stocktaking-page.stocktaking-figma-page .select2-container .select2-selection--single .select2-selection__arrow {
    height: 38px;
}

.stocktaking-page.stocktaking-figma-page .select2-container .select2-selection--multiple .select2-search--inline .select2-search__field,
.stocktaking-page.stocktaking-figma-page .select2-container .select2-selection--multiple .select2-selection__choice {
    margin-top: 0;
}

.stocktaking-page.stocktaking-figma-page textarea.form-control {
    height: 74px;
    resize: none;
    padding-top: 12px;
}

.stocktaking-page .stocktaking-field-error {
    display: block;
    min-height: 18px;
    margin-top: 6px;
    color: #d93025;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.stocktaking-page .stocktaking-input-invalid {
    border-color: #d93025 !important;
    background: #fff6f6;
    box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.12);
}

.stocktaking-page .stocktaking-input-invalid:focus {
    border-color: #d93025 !important;
    box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.18);
}

.stocktaking-page.stocktaking-figma-page .stocktaking-grid-filter-head {
    align-items: end;
    margin-bottom: 14px;
}

.stocktaking-page.stocktaking-figma-page .stocktaking-grid-top-actions-inline {
    justify-content: flex-start;
    margin-top: 0;
    margin-bottom: 0;
}

.stocktaking-page.stocktaking-figma-page .stocktaking-grid-search-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
/*    column-gap: 36px;
    row-gap: 12px;
    margin-bottom: 10px;*/
}

.stocktaking-page.stocktaking-figma-page .stocktaking-grid-actions {
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 0;
    flex-wrap: nowrap;
    padding-inline-end: 0;
    padding-inline-start: 0;
}

.stocktaking-page.stocktaking-figma-page .stocktaking-grid-search-col {
/*    padding-inline-end: 18px;*/
    padding-inline-start: 0;
}

.stocktaking-page .stocktaking-btn-warning {
    background: #f39c12;
    border-color: #e08e0b;
    color: #fff;
}

.stocktaking-page .stocktaking-btn-secondary {
    background: #9aa1aa;
    border-color: #9aa1aa;
    color: #fff;
}

.stocktaking-page .stocktaking-btn-secondary:hover,
.stocktaking-page .stocktaking-btn-secondary:focus {
    background: #868d96;
    border-color: #868d96;
    color: #fff;
}

.stocktaking-page #btnAddItem:disabled {
    cursor: not-allowed;
    opacity: 1;
}

.stocktaking-page .stocktaking-btn-info {
    background: #26a9e0;
    border-color: #26a9e0;
    color: #fff;
}

.stocktaking-page .stocktaking-grid-actions {
/*    margin-bottom: 16px;*/
}

.stocktaking-page .table-responsive {
    max-height: min(62vh, 720px);
    overflow: auto;
}

.stocktaking-page .stocktaking-grid-wrapper {
    margin-top: 14px;
    border: 1px solid #e2e7ee;
    border-radius: 12px;
    background: #fff;
}

.stocktaking-page .stocktaking-actions-dropdown {
    display: inline-block;
}

.stocktaking-page .stocktaking-actions-dropdown .dropdown-content {
    min-width: 165px;
    text-align: right;
}

.stocktaking-page .stocktaking-actions-dropdown .dropdown-content a {
    display: block;
    white-space: nowrap;
}

.stocktaking-page .stocktaking-table > thead > tr > th {
    background: #ffffff;
    color: #555;
    font-weight: 700;
    vertical-align: middle;
    white-space: nowrap;
    font-size: 12px;
    position: sticky;
    top: 0;
    z-index: 5;
    box-shadow: inset 0 -1px 0 #d9e1ea, 0 2px 8px rgba(15, 23, 42, 0.08);
    border-bottom: 1px solid #d7dee8;
}

.stocktaking-page .stocktaking-table tbody td {
    vertical-align: middle;
    font-size: 12px;
    white-space: normal;
    padding: 10px 8px;
    line-height: 1.45;
    overflow: hidden;
}

.stocktaking-page .stocktaking-list-cell-text {
    display: block;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stocktaking-page .stocktaking-adjustment-link {
    display: inline-block;
    max-width: 100%;
    color: #0b63b6;
    cursor: pointer;
    text-decoration: underline;
}

.stocktaking-page .stocktaking-adjustment-link:hover,
.stocktaking-page .stocktaking-adjustment-link:focus {
    color: #084b89;
}

.stocktaking-page .stocktaking-actions-cell {
    overflow: visible !important;
    white-space: nowrap;
    width: 72px;
}

.stocktaking-page .stocktaking-adjustment-actions-col {
    width: 96px;
    min-width: 96px;
}

.stocktaking-page .stocktaking-table .form-control {
    min-width: 90px;
    text-align: center;
}

.stocktaking-page .stocktaking-table {
    table-layout: fixed;
    margin-bottom: 0;
}

.stocktaking-page .stocktaking-row-number-col,
.stocktaking-page .stocktaking-row-number-cell {
    width: 48px;
    min-width: 48px;
    max-width: 48px;
}

.stocktaking-page .stocktaking-item-cell {
    min-width: 320px;
    width: 32%;
    text-align: center;
}

.stocktaking-page .stocktaking-item-name-col {
    width: 32%;
}

.stocktaking-page .stocktaking-item-name {
    display: block;
    font-weight: 700;
    word-break: break-word;
}

.stocktaking-page .stocktaking-item-code {
    display: block;
    margin-top: 2px;
    color: #6f7b8a;
    word-break: break-word;
}

.stocktaking-page .stocktaking-table tbody tr.stocktaking-scan-highlight {
    animation: stocktaking-row-highlight 1.2s ease;
}

@keyframes stocktaking-row-highlight {
    0% {
        background-color: #d9f6e5;
    }

    100% {
        background-color: transparent;
    }
}

.stocktaking-page .stocktaking-grid-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
    font-weight: 700;
}

.stocktaking-page .stocktaking-clickable-row {
    cursor: pointer;
}

.stocktaking-page .stocktaking-clickable-row:hover {
    background: #f7fbff;
}

.stocktaking-page .stocktaking-reference-code {
    font-size: 32px;
    font-weight: 800;
    color: #18324b;
    margin-bottom: 8px;
    text-align: right;
}

.stocktaking-page .stocktaking-details-outline-card {
    border: 2px solid #2b9cff;
    box-shadow: none;
}

.stocktaking-page.stocktaking-figma-page .stocktaking-grid-footer {
    padding-top: 4px;
}

.stocktaking-page .stocktaking-editor-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
    direction: rtl;
}

.stocktaking-page .stocktaking-editor-actions .btn,
.stocktaking-page .stocktaking-adjustment-actions .btn {
    min-width: 176px;
    min-height: 42px;
    padding: 9px 20px;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.stocktaking-page .stocktaking-primary-action {
    background: #00a65a;
    border-color: #008d4c;
    color: #fff;
}

.stocktaking-page .stocktaking-primary-action:hover,
.stocktaking-page .stocktaking-primary-action:focus {
    background: #008d4c;
    border-color: #00733e;
    color: #fff;
}

.stocktaking-page .stocktaking-match-action {
    min-width: 240px;
    padding-inline: 24px;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 8px;
}

.stocktaking-page .stocktaking-match-action:hover,
.stocktaking-page .stocktaking-match-action:focus {
    box-shadow: none;
    transform: none;
}

.stocktaking-page .stocktaking-match-action i {
    font-size: 16px;
    flex-shrink: 0;
    position: static;
    transform: none;
    margin-inline-start: 0;
}

.stocktaking-page .stocktaking-action-label {
    white-space: nowrap;
}

.stocktaking-page .stocktaking-match-action .stocktaking-action-label {
    display: inline-block;
    padding-inline: 0;
    text-align: center;
}

.stocktaking-page .stocktaking-secondary-action {
    background: #f39c12;
    border-color: #e08e0b;
    color: #fff;
}

.stocktaking-page .stocktaking-secondary-action:hover,
.stocktaking-page .stocktaking-secondary-action:focus {
    background: #e08e0b;
    border-color: #c87f0a;
    color: #fff;
}

.stocktaking-page .stocktaking-post-match-outline-primary {
    background: #3c8dbc;
    border: 1px solid #367fa9;
    color: #fff;
}

.stocktaking-page .stocktaking-post-match-outline-primary:hover,
.stocktaking-page .stocktaking-post-match-outline-primary:focus {
    background: #367fa9;
    border-color: #2f6c94;
    color: #fff;
}

.stocktaking-page .stocktaking-post-match-solid-success {
    background: #00a65a;
    border: 1px solid #008d4c;
    color: #fff;
}

.stocktaking-page .stocktaking-post-match-solid-success:hover,
.stocktaking-page .stocktaking-post-match-solid-success:focus {
    background: #008d4c;
    border-color: #00733e;
    color: #fff;
}

.stocktaking-page .stocktaking-post-match-outline-success {
    background: #fff;
    border: 1px solid #00a65a;
    color: #00a65a;
}

.stocktaking-page .stocktaking-post-match-outline-success:hover,
.stocktaking-page .stocktaking-post-match-outline-success:focus {
    background: #f4fbf7;
    border-color: #008d4c;
    color: #008d4c;
}

.stocktaking-page .stocktaking-readonly-field {
    background: #edf1f5;
    border: 1px solid #d9e2ea;
    border-radius: 6px;
    padding: 10px 14px;
    min-height: 42px;
    display: flex;
    align-items: center;
    color: #303133;
}

.stocktaking-page .stocktaking-notes-field {
    min-height: 74px;
    align-items: flex-start;
}

.stocktaking-page .stocktaking-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    font-weight: 700;
    padding: 8px 10px 2px;
}

.stocktaking-page.stocktaking-details-page .stocktaking-header {
    justify-content: flex-start;
}

.stocktaking-page.stocktaking-details-page .stocktaking-details-master-card,
.stocktaking-page.stocktaking-details-page .stocktaking-details-grid-card {
    padding: 26px 18px;
}

.stocktaking-page.stocktaking-details-page .stocktaking-details-field label {
    display: block;
    margin-bottom: 8px;
    color: #444;
    font-weight: 700;
    font-size: 13px;
}

.stocktaking-page.stocktaking-details-page .stocktaking-details-field {
    margin-bottom: 16px;
}

.stocktaking-page.stocktaking-details-page .stocktaking-readonly-field {
    justify-content: flex-start;
    text-align: right;
    min-height: 30px;
    padding: 13px 14px;
    font-size: 12px;
}

.stocktaking-page.stocktaking-details-page .stocktaking-notes-field {
    min-height: 74px;
    justify-content: flex-start;
    text-align: right;
}

.stocktaking-page.stocktaking-details-page .stocktaking-readonly-field-select {
    position: relative;
    justify-content: flex-start;
    padding-inline-start: 32px;
}

.stocktaking-page.stocktaking-details-page .stocktaking-readonly-field-select::before {
    content: "\f107";
    font-family: FontAwesome;
    position: absolute;
    inset-inline-start: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #8c96a0;
    font-size: 14px;
}

.stocktaking-page.stocktaking-details-page .stocktaking-details-grid-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.stocktaking-page.stocktaking-details-page .stocktaking-details-grid-actions {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
}

.stocktaking-page.stocktaking-details-page .stocktaking-details-search-col label {
    display: block;
    margin-bottom: 8px;
    color: #444;
    font-weight: 700;
    font-size: 13px;
    text-align: right;
}

.stocktaking-page.stocktaking-details-page .stocktaking-details-search-col {
    margin-inline-start: auto;
}

.stocktaking-page.stocktaking-adjustment-review-page .stocktaking-adjustment-summary-card,
.stocktaking-page.stocktaking-adjustment-review-page .stocktaking-adjustment-grid-card {
    padding: 26px 18px;
}

.stocktaking-page.stocktaking-adjustment-review-page .stocktaking-details-field {
    margin-bottom: 16px;
}

.stocktaking-page.stocktaking-adjustment-review-page .stocktaking-details-field label {
    display: block;
    margin-bottom: 8px;
    color: #444;
    font-weight: 700;
    font-size: 13px;
}

.stocktaking-page .stocktaking-readonly-field-date {
    position: relative;
    padding-inline-start: 38px;
}

.stocktaking-page .stocktaking-readonly-field-date::before {
    content: "\f073";
    font-family: FontAwesome;
    position: absolute;
    inset-inline-start: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #8c96a0;
    font-size: 14px;
}

.stocktaking-page .stocktaking-adjustment-reason {
    min-height: 74px;
    resize: vertical;
    border-radius: 6px;
}

.stocktaking-page .stocktaking-adjustment-actions {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.stocktaking-page.stocktaking-adjustment-details-page .box-body {
    background: #f7f9fc;
    padding: 14px 20px 30px;
}

.stocktaking-page.stocktaking-adjustment-details-page.box {
    border-top: 0;
    box-shadow: none;
    background: transparent;
}

.stocktaking-page.stocktaking-adjustment-details-page .box-header {
    background: transparent;
    border-bottom: 0;
    padding: 4px 0 8px;
}

.stocktaking-page.stocktaking-adjustment-details-page .box-header .btn {
    min-width: 52px;
    border-radius: 4px;
    padding: 6px 16px;
    font-weight: 700;
}

.stocktaking-page.stocktaking-adjustment-details-page .stocktaking-card {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.stocktaking-page.stocktaking-adjustment-details-page .stocktaking-adjustment-hero-card {
    position: relative;
    border: 1px solid #edf2f7;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
    min-height: 210px;
    padding: 34px 26px 16px;
    margin-bottom: 16px;
}

.stocktaking-page.stocktaking-adjustment-details-page .stocktaking-adjustment-number {
    color: #17324d;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 0;
    position: absolute;
    top: 18px;
    right: 16px;
    left: auto;
    width: auto;
    display: block;
    text-align: right;
    line-height: 1;
    z-index: 1;
}

.stocktaking-page.stocktaking-adjustment-details-page .stocktaking-adjustment-hero-grid {
    display: block;
}

.stocktaking-page.stocktaking-adjustment-details-page .stocktaking-adjustment-hero-grid > .row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 8px;
}

.stocktaking-page.stocktaking-adjustment-details-page .stocktaking-adjustment-field {
    margin-bottom: 18px;
    text-align: center;
}

.stocktaking-page.stocktaking-adjustment-details-page .stocktaking-adjustment-field label {
    color: #7a8796;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 7px;
}

.stocktaking-page.stocktaking-adjustment-details-page .stocktaking-adjustment-value {
    color: #1d2d3d;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.7;
    min-height: 28px;
}

.stocktaking-page.stocktaking-adjustment-details-page .stocktaking-adjustment-title {
    font-size: 13px;
    text-align: right;
}

.stocktaking-page.stocktaking-adjustment-details-page .stocktaking-adjustment-type-block {
    width: fit-content;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 2px;
    margin-left: auto;
    margin-right: 0;
}

.stocktaking-page.stocktaking-adjustment-details-page .stocktaking-adjustment-type-label {
    color: #7a8796;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 6px;
}

.stocktaking-page.stocktaking-adjustment-details-page .stocktaking-adjustment-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: 2px 10px;
    border-radius: 999px;
    background: #e9f4ff;
    color: #1672c8;
    font-size: 11px;
    font-weight: 800;
}

.stocktaking-page.stocktaking-adjustment-details-page .stocktaking-adjustment-reason-block {
    margin-bottom: 0;
    margin-top: 8px;
    text-align: right;
}

.stocktaking-page.stocktaking-adjustment-details-page .stocktaking-adjustment-reason-text {
    min-height: 32px;
    max-width: 340px;
    margin-inline-start: 0;
    margin-inline-end: auto;
    text-align: right;
    direction: rtl;
    unicode-bidi: plaintext;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    line-height: 1.95;
}

.stocktaking-page.stocktaking-adjustment-details-page .stocktaking-details-grid-card {
    padding: 0;
    overflow: hidden;
    border-radius: 0 0 4px 4px;
}

.stocktaking-page.stocktaking-adjustment-details-page .stocktaking-grid-wrapper {
    border: 0;
    border-radius: 0;
    max-height: 520px;
    overflow-y: auto;
}

.stocktaking-page.stocktaking-adjustment-details-page .stocktaking-table {
    margin-bottom: 0;
    width: 100%;
    table-layout: fixed;
    background: #fff;
    border-collapse: separate;
    border-spacing: 0;
}

.stocktaking-page.stocktaking-adjustment-details-page .stocktaking-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f2f4f7;
    color: #5e6976;
    font-size: 12px;
    font-weight: 800;
    border-bottom: 1px solid #e7ecf2;
    border-left: 0;
    border-right: 0;
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: center;
    vertical-align: middle;
}

.stocktaking-page.stocktaking-adjustment-details-page .stocktaking-table tbody td {
    padding: 18px 16px;
    border-color: #edf1f5;
    border-left: 0;
    border-right: 0;
    vertical-align: middle;
    font-size: 12px;
    font-weight: 600;
    color: #24364a;
    text-align: center;
    background: #fff;
}

.stocktaking-page.stocktaking-adjustment-details-page .stocktaking-item-cell {
    text-align: right;
    width: 42%;
}

.stocktaking-page.stocktaking-adjustment-details-page .stocktaking-item-name-col {
    text-align: right;
    width: 42%;
}

.stocktaking-page.stocktaking-adjustment-details-page .stocktaking-item-name {
    color: #213547;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.8;
    text-align: inherit;
    display: block;
    width: 100%;
}

.stocktaking-page.stocktaking-adjustment-details-page .stocktaking-table thead th:not(.stocktaking-item-name-col),
.stocktaking-page.stocktaking-adjustment-details-page .stocktaking-table tbody td:not(.stocktaking-item-cell) {
    text-align: center;
}

.stocktaking-page.stocktaking-adjustment-details-page .stocktaking-table tbody tr:last-child td {
    border-bottom: 0;
}

.stocktaking-page.stocktaking-adjustment-details-page .stocktaking-grid-footer {
    padding: 10px 18px 12px;
    color: #7d8792;
    font-size: 12px;
    text-align: end;
    font-weight: 600;
}

.stocktaking-page.stocktaking-adjustment-details-page .stocktaking-grid-footer span {
    display: inline-block;
}

html[dir="ltr"] .stocktaking-page.stocktaking-adjustment-details-page .stocktaking-adjustment-number,
html[dir="ltr"] .stocktaking-page.stocktaking-adjustment-details-page .stocktaking-grid-footer {
    text-align: left;
}

html[dir="ltr"] .stocktaking-page.stocktaking-adjustment-details-page .stocktaking-adjustment-number {
    right: auto;
    left: 16px;
}

html[dir="ltr"] .stocktaking-page.stocktaking-adjustment-details-page .stocktaking-adjustment-field-main,
html[dir="ltr"] .stocktaking-page.stocktaking-adjustment-details-page .stocktaking-adjustment-field-type,
html[dir="ltr"] .stocktaking-page.stocktaking-adjustment-details-page .stocktaking-adjustment-reason-block,
html[dir="ltr"] .stocktaking-page.stocktaking-adjustment-details-page .stocktaking-item-cell {
    text-align: left;
}

html[dir="ltr"] .stocktaking-page.stocktaking-adjustment-details-page .stocktaking-item-name-col {
    text-align: left;
}

html[dir="rtl"] .stocktaking-page.stocktaking-adjustment-details-page .stocktaking-item-cell,
html[dir="rtl"] .stocktaking-page.stocktaking-adjustment-details-page .stocktaking-item-name-col,
html[dir="rtl"] .stocktaking-page.stocktaking-adjustment-details-page .stocktaking-item-name {
    text-align: right !important;
}

html[dir="ltr"] .stocktaking-page.stocktaking-adjustment-details-page .stocktaking-adjustment-title,
html[dir="ltr"] .stocktaking-page.stocktaking-adjustment-details-page .stocktaking-adjustment-reason-text {
    text-align: left;
}

html[dir="ltr"] .stocktaking-page.stocktaking-adjustment-details-page .stocktaking-adjustment-reason-block {
    text-align: left !important;
}

html[dir="ltr"] .stocktaking-page.stocktaking-adjustment-details-page .stocktaking-adjustment-reason-text {
    direction: ltr;
    margin-inline-start: 0;
    margin-inline-end: 0;
}

html[dir="ltr"] .stocktaking-page.stocktaking-adjustment-details-page .stocktaking-adjustment-type-block {
    align-items: flex-start;
    margin-left: 0;
    margin-right: auto;
}

.stocktaking-page.stocktaking-adjustment-details-page .stocktaking-adjustment-field-main,
.stocktaking-page.stocktaking-adjustment-details-page .stocktaking-adjustment-reason-block {
    text-align: right;
}

.stocktaking-page.stocktaking-adjustment-details-page .stocktaking-adjustment-field-type {
    text-align: right;
}

.stocktaking-page.stocktaking-adjustment-details-page .stocktaking-adjustment-field-date .stocktaking-adjustment-value {
    white-space: nowrap;
}

.stocktaking-page.stocktaking-adjustment-details-page .stocktaking-adjustment-field-number .stocktaking-adjustment-value,
.stocktaking-page.stocktaking-adjustment-details-page .stocktaking-adjustment-field-branch .stocktaking-adjustment-value,
.stocktaking-page.stocktaking-adjustment-details-page .stocktaking-adjustment-field-created .stocktaking-adjustment-value,
.stocktaking-page.stocktaking-adjustment-details-page .stocktaking-adjustment-field-confirmed .stocktaking-adjustment-value {
    text-align: center;
}

@media (max-width: 767px) {
    .stocktaking-page.stocktaking-adjustment-details-page .stocktaking-adjustment-number {
        font-size: 18px;
        top: 14px;
    }

    .stocktaking-page.stocktaking-adjustment-details-page .stocktaking-adjustment-value,
    .stocktaking-page.stocktaking-adjustment-details-page .stocktaking-adjustment-title {
        font-size: 13px;
    }

    .stocktaking-page.stocktaking-adjustment-details-page .box-body {
        padding: 18px 12px 26px;
    }

    .stocktaking-page.stocktaking-adjustment-details-page .stocktaking-adjustment-hero-card {
        min-height: 0;
        padding: 44px 16px 16px;
    }

    .stocktaking-page.stocktaking-adjustment-details-page .stocktaking-adjustment-field {
        text-align: right;
    }

    .stocktaking-page.stocktaking-adjustment-details-page .stocktaking-adjustment-spacer {
        display: none;
    }

    .stocktaking-page.stocktaking-adjustment-details-page .stocktaking-adjustment-reason-text {
        max-width: none;
    }
}

.stocktaking-page .stocktaking-cancel-action {
    min-width: 120px;
    border-radius: 4px;
    background: #d2d6de;
    border-color: #c1c7d1;
    color: #444;
}

.stocktaking-page .stocktaking-cancel-action:hover,
.stocktaking-page .stocktaking-cancel-action:focus {
    background: #c1c7d1;
    border-color: #afb7c2;
    color: #2c3b41;
}

.stocktaking-page .stocktaking-diff-positive {
    color: #2490c7;
    font-weight: 700;
}

.stocktaking-page .stocktaking-diff-negative {
    color: #d9534f;
    font-weight: 700;
}

.stocktaking-page .stocktaking-serial-cell {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.stocktaking-page .stocktaking-serial-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.stocktaking-page .stocktaking-serial-status-pending {
    background: #fff7e6;
    color: #b26a00;
}

.stocktaking-page .stocktaking-serial-status-complete {
    background: #eaf8ec;
    color: #188038;
}

.stocktaking-page .stocktaking-serial-modal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.stocktaking-page .stocktaking-serial-modal-subtitle {
    margin-bottom: 14px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.7;
}

.stocktaking-page .stocktaking-serial-modal-alert {
    margin-bottom: 14px;
}

.stocktaking-page .stocktaking-serial-picker-meta {
    margin-top: 8px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
}

.stocktaking-page .stocktaking-serial-modal .select2-container {
    width: 100% !important;
}

.stocktaking-page .stocktaking-serial-modal .select2-search--inline {
    display: none;
}

.stocktaking-page.stocktaking-details-page .stocktaking-details-search-col .form-control {
    height: 40px;
    border-radius: 4px;
    border: 1px solid #dfe5ec;
    box-shadow: none;
}

.stocktaking-page.stocktaking-details-page .stocktaking-table tbody td {
    padding: 11px 10px;
}

.stocktaking-page.stocktaking-details-page .stocktaking-grid-footer {
    justify-content: flex-start;
    margin-top: 10px;
}

.stocktaking-page.stocktaking-details-page .stocktaking-details-meta-row {
    padding-top: 16px;
    align-items: flex-start;
}

.stocktaking-page.stocktaking-details-page .stocktaking-meta-group {
    min-width: 240px;
    text-align: right;
    line-height: 1.9;
}

.stocktaking-page.stocktaking-details-page .stocktaking-meta-group-created {
    margin-inline-start: auto;
}

.stocktaking-page .status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
}

.stocktaking-page .status-pill.pending {
    background: #f0f2f5;
    color: #525252;
}

.stocktaking-page .status-pill.approved-without {
    background: #eaf8ec;
    color: #188038;
}

.stocktaking-page .status-pill.approved-with {
    background: #e9f5ff;
    color: #1677c6;
}

.stocktaking-page .status-pill.canceled {
    background: #fff1f0;
    color: #d93025;
}

.stocktaking-page .match-text.match-equal {
    color: #222;
    font-weight: 700;
}

.stocktaking-page .match-text.match-increase {
    color: #3b82f6;
    font-weight: 700;
}

.stocktaking-page .match-text.match-decrease {
    color: #d93025;
    font-weight: 700;
}

.stocktaking-page .stocktaking-checkbox-col {
    width: 40px;
}

.stocktaking-page .stocktaking-row-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.stocktaking-page .stocktaking-delete-btn {
    background: transparent;
    border: 0;
    color: #ef4444;
    padding: 0;
    width: 18px;
    height: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.stocktaking-page .stocktaking-delete-btn:hover,
.stocktaking-page .stocktaking-delete-btn:focus {
    color: #dc2626;
    background: transparent;
    border: 0;
    outline: none;
}

.stocktaking-page .stocktaking-delete-btn i {
    font-size: 14px;
}

.stocktaking-page .stocktaking-empty-row {
    padding: 30px 10px;
    color: #8b8f97;
    font-weight: 600;
}

.stocktaking-page .quantity-validation {
    color: #d93025;
    font-size: 11px;
    margin-top: 4px;
}

@media (max-width: 991px) {
    .stocktaking-page .stocktaking-filter-actions,
    .stocktaking-page .stocktaking-grid-actions,
    .stocktaking-page .stocktaking-grid-top-actions,
    .stocktaking-page .stocktaking-editor-actions {
        align-items: stretch;
    }

    .stocktaking-page .stocktaking-editor-actions .btn {
        min-width: 0;
        width: 100%;
    }

    .stocktaking-page .stocktaking-meta-row {
        flex-direction: column;
    }

    .stocktaking-page.stocktaking-figma-page .stocktaking-grid-actions {
        flex-wrap: wrap;
        padding-inline-start: 0;
        padding-inline-end: 0;
    }

    .stocktaking-page.stocktaking-figma-page .stocktaking-grid-search-col {
        padding-inline-end: 0;
    }

    .stocktaking-page.stocktaking-figma-page  {
        padding-inline-start: 0;
        padding-inline-end: 0;
    }

    .stocktaking-page.stocktaking-details-page .stocktaking-details-grid-toolbar,
    .stocktaking-page.stocktaking-details-page .stocktaking-details-grid-actions {
        display: block;
    }

    .stocktaking-page.stocktaking-details-page .stocktaking-details-grid-actions .btn {
        margin-bottom: 8px;
    }

    .stocktaking-page.stocktaking-details-page .stocktaking-meta-group,
    .stocktaking-page.stocktaking-details-page .stocktaking-meta-group-created {
        min-width: 0;
        margin-inline-start: 0;
    }
}
