.wp-child-header-fields {
    display: none;
}

.wp-session-info-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-secondary);
}

.wp-session-info-card--header {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
    padding: 8px;
}

.wp-session-info-card--header div {
    padding: 8px 10px;
}

.wp-session-info-card div {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-primary);
}

.wp-session-info-card span {
    display: block;
    margin-bottom: 4px;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wp-session-info-card strong {
    display: block;
    color: var(--text-primary);
    font-size: 13px;
    line-height: 1.35;
}

.wp-signature-input-section {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
}

.wp-approval-info-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.wp-signature-input-section h4 {
    margin: 0 0 14px;
    color: var(--text-primary);
}

.wp-approval-info-section h4 {
    margin: 0 0 10px;
    color: var(--text-primary);
}

.wp-hidden-signature-fields {
    display: none;
}

.audit-session-hidden-field {
    display: none;
}

.wp-approval-info-card {
    margin-bottom: 0;
}

.wp-upload-group input[type="file"] {
    display: inline-block;
    width: auto;
    max-width: 100%;
    padding: 10px;
    border: 1px dashed var(--border-color);
    border-radius: 10px;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.wp-stock-file-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
}

.wp-stock-file-status-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.wp-stock-file-status-main i {
    color: var(--success-color);
    font-size: 1.25rem;
}

.wp-stock-file-status-main strong,
.wp-stock-file-status-main span {
    display: block;
}

.wp-stock-file-status-main strong {
    color: var(--text-primary);
    word-break: break-word;
}

.wp-stock-file-status-main span {
    color: var(--text-secondary);
    font-size: 0.85rem;
}


.wp-preview-section {
    margin-top: 24px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.wp-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.wp-preview-header h3 {
    margin: 0 0 6px;
    color: var(--text-primary);
}

.wp-preview-header p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
}

.wp-preview-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--success-light);
    color: var(--success);
    font-size: 12px;
    font-weight: 700;
}

.wp-preview-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.wp-preview-meta div {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-secondary);
}

.wp-preview-meta span {
    display: block;
    color: var(--text-secondary);
    font-size: 11px;
    margin-bottom: 4px;
}

.wp-preview-meta strong {
    color: var(--text-primary);
    font-size: 13px;
}

.wp-preview-table-wrap {
    max-height: 520px;
    overflow: auto;
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.wp-preview-table th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.wp-report-type-badge,
.wp-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.wp-report-type-badge,
.wp-status-badge.ready {
    background: rgba(0, 82, 204, 0.1);
    color: var(--primary-blue);
}

.wp-status-badge.pending {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.audit-session-action-group {
    flex-wrap: nowrap;
}

.wp-child-status-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.wp-child-status-text {
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.wp-child-status-text.pending {
    color: var(--text-secondary);
}

.wp-child-status-text.completed {
    color: var(--success);
}

.wp-child-action-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.wp-child-action-btn.pending {
    background: var(--bg-primary);
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.wp-child-action-btn.completed {
    background: var(--success);
    color: #ffffff;
    border-color: var(--success);
}

.audit-report-action-btn.export-incomplete {
    opacity: 0.65;
    border-style: dashed;
}

.wp-child-action-btn.completed:hover {
    color: #ffffff;
}

.wp-stock-admin-section {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.wp-stock-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.wp-stock-section-header h4 {
    margin: 0 0 6px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.wp-stock-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.wp-stock-preview-actions,
.wp-stock-edit-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

#btn-edit-wp-stock[hidden],
#wp-stock-preview-actions[hidden],
#wp-stock-edit-actions[hidden] {
    display: none !important;
}

.wp-stock-workspace[data-mode="readonly"] .wp-stock-add-row-action,
.wp-stock-workspace[data-mode="readonly"] .wp-stock-admin-navigation {
    display: none;
}

.wp-stock-workspace[data-mode="readonly"] input:disabled,
.wp-stock-workspace[data-mode="readonly"] select:disabled,
.wp-stock-workspace[data-mode="readonly"] textarea:disabled {
    opacity: 1;
    color: var(--text-primary);
    -webkit-text-fill-color: var(--text-primary);
    border-color: transparent;
    background: var(--bg-secondary);
    box-shadow: none;
    cursor: default;
}

.wp-stock-workspace[data-mode="readonly"] .wp-stock-admin-main-category:disabled,
.wp-stock-workspace[data-mode="readonly"] .wp-stock-admin-status:disabled {
    opacity: 0;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.wp-stock-admin-table-wrap {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: auto;
}

.wp-stock-admin-input-table {
    table-layout: fixed;
    min-width: 1288px;
    font-size: 12px;
}

.wp-stock-admin-input-table th {
    padding: 10px 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
    vertical-align: middle;
}

.wp-stock-admin-input-table th:nth-child(1),
.wp-stock-admin-input-table td:nth-child(1) { width: 40px; }
.wp-stock-admin-input-table th:nth-child(2),
.wp-stock-admin-input-table td:nth-child(2) { width: 100px; }
.wp-stock-admin-input-table th:nth-child(3),
.wp-stock-admin-input-table td:nth-child(3) { width: 140px; }
.wp-stock-admin-input-table th:nth-child(4),
.wp-stock-admin-input-table td:nth-child(4) { width: 240px; }
.wp-stock-admin-input-table th:nth-child(5),
.wp-stock-admin-input-table td:nth-child(5) { width: 48px; }
.wp-stock-admin-input-table th:nth-child(6),
.wp-stock-admin-input-table td:nth-child(6) { width: 88px; }
.wp-stock-admin-input-table th:nth-child(7),
.wp-stock-admin-input-table td:nth-child(7) { width: 100px; }
.wp-stock-admin-input-table th:nth-child(8),
.wp-stock-admin-input-table td:nth-child(8) { width: 110px; }
.wp-stock-admin-input-table th:nth-child(9),
.wp-stock-admin-input-table td:nth-child(9) { width: 332px; }
.wp-stock-admin-input-table th:nth-child(10),
.wp-stock-admin-input-table td:nth-child(10) { width: 90px; }

.wp-stock-admin-input-table th:nth-child(7),
.wp-stock-admin-input-table th:nth-child(8),
.wp-stock-admin-input-table th:nth-child(9) {
    text-align: center;
}

.wp-stock-admin-input-table td {
    padding: 12px 8px;
    font-size: 12px;
    line-height: 1.35;
    text-align: left;
    vertical-align: top;
}

.wp-stock-workspace[data-mode="readonly"] .wp-stock-admin-main-category-wrap > i,
.wp-stock-workspace[data-mode="readonly"] .wp-stock-admin-status-wrap > i {
    display: none;
}

.wp-stock-workspace[data-mode="readonly"] .wp-stock-admin-inventory-status:disabled {
    appearance: none;
    -webkit-appearance: none;
}

.wp-stock-workspace[data-mode="readonly"] .wp-stock-admin-status-other {
    display: none !important;
}

.wp-stock-admin-input-table input,
.wp-stock-admin-input-table select,
.wp-stock-admin-input-table textarea {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 8px 8px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 12px;
    line-height: 1.35;
}

.wp-stock-admin-input-table .wp-stock-admin-code,
.wp-stock-admin-input-table .wp-stock-admin-product-name,
.wp-stock-admin-input-table .wp-stock-admin-qty,
.wp-stock-admin-input-table .wp-stock-admin-inventory-status,
.wp-stock-admin-input-table .wp-stock-admin-status,
.wp-stock-admin-input-table .wp-stock-admin-issue-date,
.wp-stock-admin-input-table .wp-stock-admin-detail {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.wp-stock-admin-input-table .wp-stock-admin-code:focus,
.wp-stock-admin-input-table .wp-stock-admin-product-name:focus,
.wp-stock-admin-input-table .wp-stock-admin-qty:focus,
.wp-stock-admin-input-table .wp-stock-admin-inventory-status:focus,
.wp-stock-admin-input-table .wp-stock-admin-status:focus,
.wp-stock-admin-input-table .wp-stock-admin-issue-date:focus,
.wp-stock-admin-input-table .wp-stock-admin-detail:focus {
    border-color: var(--primary);
    background: var(--bg-primary);
}

.wp-stock-admin-input-table .wp-stock-admin-main-category,
.wp-stock-admin-input-table .wp-stock-admin-code,
.wp-stock-admin-input-table .wp-stock-admin-product-name {
    line-height: 1.35;
}

.wp-stock-th-stack,
.wp-stock-th-stack span,
.wp-stock-admin-main-category-display,
.wp-stock-admin-main-category-display span {
    display: block;
}

.wp-stock-admin-main-category-wrap {
    position: relative;
    display: block;
    min-height: 50px;
}

.wp-stock-admin-input-table .wp-stock-admin-main-category {
    position: absolute;
    inset: 0;
    z-index: 2;
    height: 100%;
    min-height: 50px;
    cursor: pointer;
    opacity: 0;
}

.wp-stock-admin-main-category-display {
    min-height: 50px;
    padding: 7px 22px 7px 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    word-break: normal;
    overflow-wrap: normal;
}

.wp-stock-admin-main-category-wrap > i {
    position: absolute;
    top: 50%;
    right: 4px;
    z-index: 1;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.wp-stock-admin-main-category:focus-visible + .wp-stock-admin-main-category-display {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.wp-stock-admin-input-table .wp-stock-admin-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 12px;
}

.wp-stock-admin-input-table .wp-stock-admin-detail {
    font-size: 12px;
    line-height: 1.35;
}

.wp-stock-admin-status-wrap {
    position: relative;
    display: block;
    min-height: 50px;
}

.wp-stock-admin-status-wrap .wp-stock-admin-status {
    position: absolute;
    inset: 0;
    z-index: 2;
    height: 100%;
    min-height: 50px;
    cursor: pointer;
    opacity: 0;
}

.wp-stock-admin-status-display {
    display: block;
    min-height: 50px;
    padding: 7px 18px 7px 0;
    color: var(--text-main);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
}

.wp-stock-admin-status-wrap > i {
    position: absolute;
    top: 50%;
    right: 2px;
    color: var(--text-muted);
    font-size: 13px;
    pointer-events: none;
    transform: translateY(-50%);
}

.wp-stock-admin-status-other {
    margin-top: 8px;
}

.wp-stock-admin-date-wrap {
    position: relative;
    display: block;
}

.wp-stock-admin-input-table .wp-stock-admin-issue-date {
    padding-left: 4px;
    padding-right: 4px;
    font-size: 12px;
}

.wp-stock-admin-input-table textarea {
    min-width: 0;
    min-height: 86px;
    resize: none;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.wp-stock-admin-input-table textarea.wp-stock-admin-product-name {
    min-height: 50px;
    font-size: 12px;
    line-height: 1.35;
}

.wp-stock-admin-input-table .wp-stock-admin-qty {
    padding-left: 8px;
    padding-right: 8px;
    text-align: center;
}

.wp-stock-admin-input-table td:first-child {
    text-align: left;
}

.wp-stock-admin-input-table td:last-child {
    text-align: left;
}

.wp-row-action-group {
    display: inline-grid;
    grid-template-columns: 30px 30px;
    grid-template-rows: 30px 30px;
    gap: 4px;
    align-items: center;
    justify-content: center;
    min-width: 64px;
}

.wp-row-action-group .btn-icon {
    width: 30px;
    height: 30px;
    min-height: 30px;
    padding: 0;
}

.wp-row-action-group .btn-icon:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.wp-row-action-group .btn-icon:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
}

.wp-row-action-group .btn-icon:nth-child(3) {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
}

.wp-row-action-group .btn-danger.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    min-height: 30px;
}

.wp-row-action-group .btn-icon i {
    font-size: 13px;
}

.wp-stock-admin-manage-cell {
    text-align: left;
}

.wp-stock-admin-action-layout {
    display: inline-flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
    min-width: 64px;
}

.wp-stock-admin-navigation {
    display: grid;
    grid-template-rows: repeat(2, 24px);
    gap: 3px;
}

.wp-stock-admin-navigation .wp-row-move-btn {
    width: 24px;
    min-width: 24px;
    height: 24px;
    min-height: 24px;
    padding: 0;
    border-radius: 6px;
}

.wp-stock-admin-navigation .wp-row-move-btn i {
    margin: 0;
    font-size: 12px;
}

.wp-stock-admin-manage-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.wp-stock-admin-manage-trigger {
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
    padding: 0;
    font-size: 16px;
}

.wp-stock-admin-manage-trigger i {
    margin: 0;
}

.wp-stock-admin-manage-trigger[aria-expanded="true"] {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.wp-stock-admin-manage-popover {
    position: fixed;
    z-index: 5000;
    display: grid;
    min-width: 220px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-card);
    color: var(--text-main);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.wp-stock-admin-manage-popover[hidden] {
    display: none;
}

.wp-stock-admin-manage-menu-item {
    width: 100%;
    min-height: 42px;
    padding: 7px 9px;
    border: 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 9px;
    background: transparent;
    color: var(--text-main);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.wp-stock-admin-manage-menu-item:hover,
.wp-stock-admin-manage-menu-item:focus-visible {
    background: var(--bg-color);
    outline: none;
}

.wp-stock-admin-manage-menu-item > i {
    width: 18px;
    font-size: 14px;
    text-align: center;
}

.wp-stock-admin-manage-menu-item > span,
.wp-stock-admin-manage-menu-item strong,
.wp-stock-admin-manage-menu-item small {
    display: block;
}

.wp-stock-admin-manage-menu-item strong {
    font-size: 12px;
    font-weight: 600;
}

.wp-stock-admin-manage-menu-item small {
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 10px;
}

.wp-stock-admin-manage-menu-item.is-danger,
.wp-stock-admin-manage-menu-item.is-danger small {
    color: var(--danger);
}

.wp-row-move-btn:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

.wp-stock-add-row-action {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.wp-evidence-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.wp-evidence-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-secondary);
    margin-bottom: 14px;
}

.wp-evidence-group strong {
    color: var(--text-primary);
}

.wp-evidence-group .form-help {
    margin: 4px 0 0;
}

.wp-stock-section-a-evidence-panel {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-secondary);
}

.wp-stock-section-a-evidence-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.wp-stock-section-a-evidence-header strong {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.wp-stock-section-a-evidence-header .form-help {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.4;
}

.wp-stock-section-a-evidence-panel .wp-evidence-info strong {
    font-size: 12px;
}

.wp-stock-section-a-evidence-panel .wp-evidence-info span {
    font-size: 12px;
}

.wp-stock-section-a-evidence-panel .wp-evidence-info strong,
.wp-stock-section-a-evidence-panel .wp-evidence-info span {
    line-height: 1.4;
}

.wp-stock-section-a-evidence-panel .wp-evidence-actions .btn {
    min-height: 30px;
    padding: 5px 9px;
    font-size: 12px;
    line-height: 1.2;
}

.wp-evidence-actions .wp-evidence-delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    min-height: 30px;
    min-width: 30px;
    padding: 0;
}

.wp-evidence-actions .wp-evidence-delete-btn i {
    margin: 0;
    font-size: 13px;
}

.wp-evidence-action-wrap {
    min-width: 220px;
}

.wp-evidence-action-wrap > .btn {
    width: 100%;
    justify-content: center;
    gap: 6px;
}

.wp-evidence-inline-list {
    margin-top: 10px;
    display: grid;
    gap: 8px;
}

@media (max-width: 768px) {
    .wp-evidence-grid {
        grid-template-columns: 1fr;
    }

    .wp-evidence-group,
    .wp-evidence-item {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
}

.wp-stock-preview-subtitle {
    margin: 18px 0 10px;
    color: var(--text-primary);
}

.wp-stock-preview-subtitle {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

#wp-stock-preview-table {
    width: 100%;
    table-layout: fixed;
    min-width: 1050px;
}

#wp-stock-preview-table th,
#wp-stock-preview-table td {
    padding: 10px 8px;
    font-size: 12px;
    line-height: 1.35;
    vertical-align: middle;
}

#wp-stock-preview-table th {
    font-size: 12px;
    font-weight: 600;
    text-align: left;
}

#wp-stock-preview-table td {
    font-size: 12px;
}

#wp-stock-preview-table th:nth-child(1),
#wp-stock-preview-table td:nth-child(1) { width: 45px; }
#wp-stock-preview-table th:nth-child(2),
#wp-stock-preview-table td:nth-child(2) { width: 130px; }
#wp-stock-preview-table th:nth-child(3),
#wp-stock-preview-table td:nth-child(3) { width: 155px; }
#wp-stock-preview-table th:nth-child(4),
#wp-stock-preview-table td:nth-child(4) { width: 320px; }
#wp-stock-preview-table th:nth-child(5),
#wp-stock-preview-table td:nth-child(5),
#wp-stock-preview-table th:nth-child(6),
#wp-stock-preview-table td:nth-child(6) { width: 65px; }
#wp-stock-preview-table th:nth-child(7),
#wp-stock-preview-table td:nth-child(7) { width: 110px; }
#wp-stock-preview-table th:nth-child(8),
#wp-stock-preview-table td:nth-child(8) { width: 160px; }

@media (max-width: 900px) {
    .wp-session-info-card--header {
        grid-template-columns: 1fr;
    }

    .wp-stock-section-header {
        flex-direction: column;
    }
}

.wp-cash-section {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.wp-cash-section h4 {
    margin: 0 0 14px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
}

.wp-cash-workspace .wp-approval-info-section h4 {
    font-size: 14px;
    font-weight: 600;
}

.wp-cash-workspace .form-group label,
.wp-cash-workspace .form-group input,
.wp-cash-workspace .form-group select,
.wp-cash-workspace .form-group textarea {
    font-size: 12px;
}

.wp-cash-input-table-wrap {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: auto;
}

.wp-cash-input-table input,
.wp-cash-input-table select {
    width: 100%;
    min-width: 110px;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 12px;
}

.wp-cash-input-table th {
    font-size: 12px;
    font-weight: 600;
}

.wp-cash-input-table td {
    font-size: 12px;
}

.wp-cash-input-table td:nth-child(1),
.wp-cash-input-table td:nth-child(4),
.wp-cash-input-table td:nth-child(5) {
    text-align: center;
}

.wp-cash-input-total-row td {
    font-weight: 700;
    background: var(--bg-secondary);
    text-align: center;
}

.wp-cash-input-total-row td:first-child {
    text-align: right;
}

.wp-cash-add-row-action {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.wp-cash-total-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 12px;
    color: var(--text-primary);
    font-size: 12px;
}

.wp-cash-workspace .wp-evidence-group,
.wp-cash-workspace .wp-evidence-inline-list {
    font-size: 12px;
}

.wp-cash-workspace .wp-evidence-info strong,
.wp-cash-workspace .wp-evidence-info span,
.wp-cash-workspace .form-help,
.wp-cash-workspace .wp-evidence-open {
    font-size: 12px;
}

.wp-workspace-mode-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.wp-workspace-mode-indicator {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.wp-workspace-mode-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--text-secondary);
}

.wp-workspace-mode-indicator[data-mode="edit"] {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.wp-workspace-mode-indicator[data-mode="edit"] .wp-workspace-mode-dot {
    background: var(--primary);
}

#btn-edit-wp-cash[hidden] {
    display: none;
}

.wp-cash-workspace[data-mode="readonly"] #wp-cash-edit-actions,
.wp-cash-workspace[data-mode="readonly"] .wp-cash-add-row-action,
.wp-cash-workspace[data-mode="readonly"] .wp-cash-petty-table th:last-child,
.wp-cash-workspace[data-mode="readonly"] .wp-cash-petty-table td:last-child,
.wp-cash-workspace[data-mode="readonly"] .wp-evidence-delete-btn {
    display: none;
}

.wp-cash-workspace[data-mode="readonly"] input:disabled,
.wp-cash-workspace[data-mode="readonly"] select:disabled,
.wp-cash-workspace[data-mode="readonly"] textarea:disabled {
    opacity: 1;
    color: var(--text-primary);
    -webkit-text-fill-color: var(--text-primary);
    border-color: transparent;
    background: var(--bg-secondary);
    box-shadow: none;
    cursor: default;
}

.wp-summary-section {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.wp-summary-section h4 {
    margin: 0 0 6px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.wp-summary-workspace {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
}

#wp-summary-edit-actions[hidden],
#wp-summary-row-edit-actions[hidden],
#btn-edit-wp-summary[hidden] {
    display: none !important;
}

#wp-summary-detail-panel[hidden] {
    display: none !important;
}

.wp-summary-table-column {
    min-width: 0;
}

.wp-summary-detail-panel {
    min-height: 220px;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
}

.wp-summary-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.wp-summary-detail-header span,
.wp-summary-detail-value span {
    display: block;
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.35;
}

.wp-summary-detail-header strong,
.wp-summary-detail-value strong {
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
}

.wp-summary-detail-header > div {
    min-width: 0;
}

.wp-summary-detail-header > div strong {
    display: block;
    margin-top: 3px;
}

.wp-summary-detail-value {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.wp-summary-detail-value:last-child {
    border-bottom: 0;
}

.wp-summary-detail-value strong {
    display: block;
    margin-top: 4px;
    font-weight: 500;
}

.wp-summary-detail-panel .form-group {
    margin-bottom: 12px;
}

.wp-summary-detail-panel .form-group:last-child {
    margin-bottom: 0;
}

.wp-summary-detail-panel label {
    font-size: 12px;
    font-weight: 600;
}

.wp-summary-detail-panel select,
.wp-summary-detail-panel textarea {
    width: 100%;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid var(--border-color);
    border-radius: 7px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 12px;
    line-height: 1.4;
}

.wp-summary-detail-panel textarea {
    min-height: 96px;
    resize: vertical;
}

.wp-summary-detail-empty {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-secondary);
    text-align: center;
}

.wp-summary-detail-empty i {
    font-size: 24px;
}

.wp-summary-detail-empty strong {
    color: var(--text-primary);
    font-size: 12px;
}

.wp-summary-detail-empty span {
    max-width: 220px;
    font-size: 11px;
    line-height: 1.4;
}

.wp-summary-input-table-wrap {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: auto;
}

.wp-summary-input-table {
    width: 100%;
    table-layout: fixed;
    min-width: 0;
}

.wp-summary-input-table th {
    padding: 10px 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    vertical-align: middle;
}

.wp-summary-input-table th:nth-child(1),
.wp-summary-input-table td:nth-child(1) { width: 50px; text-align: center; }
.wp-summary-input-table th:nth-child(2),
.wp-summary-input-table td:nth-child(2),
.wp-summary-input-table th:nth-child(3),
.wp-summary-input-table td:nth-child(3) { width: 210px; }
.wp-summary-input-table th:nth-child(4),
.wp-summary-input-table td:nth-child(4) { width: 160px; }
.wp-summary-input-table th:nth-child(5),
.wp-summary-input-table td:nth-child(5) { width: 272px; }
.wp-summary-input-table th:nth-child(6),
.wp-summary-input-table td:nth-child(6) { width: 100px; }
.wp-summary-input-table th:nth-child(7),
.wp-summary-input-table td:nth-child(7) { width: 108px; text-align: center; }

.wp-summary-input-table input,
.wp-summary-input-table textarea {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 12px;
    line-height: 1.35;
}

.wp-summary-input-table textarea {
    height: 120px;
    min-height: 120px;
    max-height: 240px;
    resize: none;
    overflow-y: hidden;
}

.wp-summary-input-table td {
    padding: 12px 8px;
    font-size: 12px;
    line-height: 1.35;
    vertical-align: top;
}

.wp-summary-finding-row {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.wp-summary-finding-row:hover {
    background: var(--bg-secondary);
}

.wp-summary-finding-row.is-selected,
.wp-summary-finding-row.is-selected:hover {
    background: var(--primary-light);
}

.wp-summary-workspace[data-mode="readonly"] .wp-summary-manage-column,
.wp-summary-workspace[data-mode="readonly"] .wp-summary-manage-cell {
    display: none;
}

.wp-summary-add-row-action {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

@media (max-width: 800px) {
    .wp-summary-input-table {
        min-width: 920px;
    }
}

.wp-stock-export-source,
.wp-cash-export-source,
.wp-summary-export-source {
    position: fixed;
    left: -10000px;
    top: 0;
    width: 210mm;
    background: #ffffff;
    color: #000000;
    font-family: Arial, sans-serif;
    z-index: -1;
}

.wp-stock-export-page,
.wp-cash-export-page {
    position: relative;
    width: 210mm;
    height: 297mm;
    box-sizing: border-box;
    padding: 10mm 10mm;
    background: #ffffff;
    color: #000000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.wp-summary-export-source {
    width: 297mm;
}

.wp-summary-export-page {
    position: relative;
    width: 297mm;
    height: 210mm;
    box-sizing: border-box;
    padding: 10mm 10mm;
    background: #ffffff;
    color: #000000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.wp-stock-export-page::before,
.wp-stock-export-page::after,
.wp-cash-export-page::before,
.wp-cash-export-page::after,
.wp-summary-export-page::before,
.wp-summary-export-page::after {
    content: '';
    position: absolute;
    pointer-events: none;
    border: 1px solid #000000;
    box-sizing: border-box;
}

.wp-stock-export-page::before,
.wp-cash-export-page::before,
.wp-summary-export-page::before {
    inset: 2.8mm;
}

.wp-stock-export-page::after,
.wp-cash-export-page::after,
.wp-summary-export-page::after {
    inset: 4.2mm;
}

.wp-stock-export-page > *,
.wp-cash-export-page > *,
.wp-summary-export-page > * {
    position: relative;
    z-index: 1;
}

.wp-stock-export-document-header {
    display: grid;
    grid-template-columns: 38mm 1fr;
    border: 1px solid #000000;
    margin-bottom: 6px;
    min-height: 32mm;
}

.wp-stock-export-logo-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #000000;
    padding: 4mm;
}

.wp-stock-export-logo {
    width: 30mm;
    height: auto;
    object-fit: contain;
    display: block;
}

.wp-stock-export-header-right {
    display: grid;
    grid-template-rows: 9mm 1fr;
    min-width: 0;
}

.wp-stock-export-title-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #000000;
    font-weight: 700;
    font-size: 12px;
    text-align: center;
}

.wp-stock-export-meta-table {
    display: grid;
    grid-template-columns: 34mm 1fr;
    font-size: 8.5px;
    line-height: 1.2;
}

.wp-stock-export-meta-table > div {
    border-bottom: 1px solid #000000;
    padding: 1.5px 4px;
    min-height: 3.3mm;
    display: flex;
    align-items: center;
}

.wp-stock-export-meta-table > div:nth-last-child(-n+2) {
    border-bottom: none;
}

.wp-stock-export-meta-table > div:nth-child(odd) {
    border-right: 1px solid #000000;
    font-weight: 600;
}

.wp-stock-export-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 8.5px;
    line-height: 1.15;
}

.wp-stock-export-table th,
.wp-stock-export-table td {
    border: 0.5px solid #000000;
    padding: 1.5px 2px;
    vertical-align: top;
    word-break: normal;
    overflow: hidden;
}

.wp-stock-export-table th {
    text-align: center;
    vertical-align: middle;
    font-weight: 700;
    font-size: 8.5px;
    line-height: 1.15;
    background: #f1f1f1;
}


.wp-stock-export-table tbody td {
    vertical-align: middle;
}


.wp-stock-export-table th:nth-child(5),
.wp-stock-export-table td:nth-child(5),
.wp-stock-export-table th:nth-child(6),
.wp-stock-export-table td:nth-child(6) {
    text-align: center;
    vertical-align: middle;
}

.wp-stock-export-table th:nth-child(7),
.wp-stock-export-table td:nth-child(7) {
    text-align: center;
    vertical-align: middle;
}

.wp-stock-export-table th:nth-child(1),
.wp-stock-export-table td:nth-child(1) { width: 6mm; text-align: center; }
.wp-stock-export-table th:nth-child(2),
.wp-stock-export-table td:nth-child(2) { width: 18mm; }
.wp-stock-export-table th:nth-child(3),
.wp-stock-export-table td:nth-child(3) { width: 25mm; }
.wp-stock-export-table th:nth-child(4),
.wp-stock-export-table td:nth-child(4) { width: 42mm; }
.wp-stock-export-table th:nth-child(5),
.wp-stock-export-table td:nth-child(5) { width: 12mm; }
.wp-stock-export-table th:nth-child(6),
.wp-stock-export-table td:nth-child(6) { width: 12mm; }
.wp-stock-export-table th:nth-child(7),
.wp-stock-export-table td:nth-child(7) { width: 20mm; }
.wp-stock-export-table th:nth-child(8),
.wp-stock-export-table td:nth-child(8) { width: auto; }

.wp-stock-admin-export-table th:nth-child(1),
.wp-stock-admin-export-table td:nth-child(1) { width: 6mm; text-align: center; }
.wp-stock-admin-export-table th:nth-child(2),
.wp-stock-admin-export-table td:nth-child(2) { width: 16mm; }
.wp-stock-admin-export-table th:nth-child(3),
.wp-stock-admin-export-table td:nth-child(3) { width: 22mm; }
.wp-stock-admin-export-table th:nth-child(4),
.wp-stock-admin-export-table td:nth-child(4) { width: 42mm; }
.wp-stock-admin-export-table th:nth-child(5),
.wp-stock-admin-export-table td:nth-child(5) { width: 7mm; text-align: center; }
.wp-stock-admin-export-table th:nth-child(6),
.wp-stock-admin-export-table td:nth-child(6) { width: 18mm; }
.wp-stock-admin-export-table th:nth-child(7),
.wp-stock-admin-export-table td:nth-child(7) { width: 18mm; }
.wp-stock-admin-export-table th:nth-child(8),
.wp-stock-admin-export-table td:nth-child(8) {
    width: auto;
    white-space: normal;
    word-break: break-word;
    overflow: visible;
}

.wp-stock-admin-export-table th:nth-child(8) {
    text-align: center;
}

.wp-stock-admin-export-table td:nth-child(8) {
    text-align: left;
}

.wp-stock-number {
    text-align: center;
}

.wp-stock-total-row td {
    font-weight: 700;
    background: #f5f5f5;
}

.wp-stock-signature-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    align-items: end;
    gap: 5mm;
    margin-top: auto;
    padding-top: 6mm;
    font-size: 8.5px;
}

.wp-stock-signature-left-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-self: end;
    gap: 0;
}

.wp-stock-signature-left-grid--checkers {
    grid-template-columns: 2fr 1fr;
}

.wp-stock-signature-card {
    border: 0.5px solid #000000;
    height: 32mm;
    display: flex;
    flex-direction: column;
    text-align: center;
    background: #ffffff;
}


.wp-stock-signature-left-grid .wp-stock-signature-card + .wp-stock-signature-card {
    border-left: none;
}

.wp-stock-signature-ack-wrap {
    display: flex;
    flex-direction: column;
    gap: 2mm;
}

.wp-stock-signature-ack-card {
    height: 32mm;
}

.wp-stock-signature-label,
.wp-stock-signature-date-outside,
.wp-stock-signer-name,
.wp-stock-signer-title {
    padding: 2px 4px;
    min-height: 5mm;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wp-stock-signature-label,
.wp-stock-signer-name {
    border-bottom: 0.5px solid #000000;
}

.wp-stock-signature-date-outside {
    justify-content: flex-end;
    text-align: right;
    min-height: 5mm;
    padding: 0;
}

.wp-stock-signature-label {
    font-weight: 600;
}

.wp-stock-signature-space {
    flex: 1;
    min-height: 10mm;
    border-bottom: 0.5px solid #000000;
}

.wp-stock-signer-name {
    font-weight: 600;
}

.wp-stock-checker-name-list {
    flex-wrap: wrap;
    gap: 2px 8px;
    line-height: 1.2;
}

.wp-stock-checker-name-list span {
    display: inline-flex;
}

.wp-stock-checker-separator {
    font-weight: 700;
}

.wp-stock-signer-title {
    font-style: italic;
}

.wp-stock-export-table td:nth-child(3),
.wp-stock-export-table td:nth-child(7) {
    white-space: nowrap;
    text-overflow: ellipsis;
}

.wp-stock-export-table td:nth-child(4),
.wp-stock-export-table td:nth-child(8) {
    white-space: normal;
    word-break: break-word;
    overflow: visible;
}

.wp-stock-export-table td:nth-child(8) {
    text-align: center;
    vertical-align: middle;
}

.wp-stock-admin-export-table td.wp-stock-admin-details-cell {
    text-align: left;
    vertical-align: top;
}

.wp-stock-admin-export-table td:nth-child(3),
.wp-stock-admin-export-table td:nth-child(4),
.wp-stock-admin-export-table td:nth-child(5),
.wp-stock-admin-export-table td:nth-child(6),
.wp-stock-admin-export-table td:nth-child(7),
.wp-stock-admin-export-table td:nth-child(8) {
    white-space: normal;
    word-break: break-word;
    overflow: visible;
}

.wp-stock-export-table tbody tr {
    height: 7mm;
}

.wp-stock-export-table thead tr {
    height: 9mm;
}

.wp-summary-export-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 9px;
    line-height: 1.18;
}

.wp-summary-export-table th,
.wp-summary-export-table td {
    border: 0.5px solid #000000;
    padding: 1.2px 1.5px;
    vertical-align: middle;
    word-break: break-word;
    white-space: normal;
    overflow: visible;
}

.wp-summary-export-table th {
    text-align: center;
    vertical-align: middle;
    font-weight: 700;
    background: #f1f1f1;
}

.wp-summary-export-table th:nth-child(1),
.wp-summary-export-table td:nth-child(1) { width: 5mm; text-align: center; }
.wp-summary-export-table th:nth-child(2),
.wp-summary-export-table td:nth-child(2) { width: 45mm; }
.wp-summary-export-table th:nth-child(3),
.wp-summary-export-table td:nth-child(3) { width: 26mm; }
.wp-summary-export-table th:nth-child(4),
.wp-summary-export-table td:nth-child(4) { width: 33mm; }
.wp-summary-export-table th:nth-child(5),
.wp-summary-export-table td:nth-child(5) { width: 45mm; }
.wp-summary-export-table th:nth-child(6),
.wp-summary-export-table td:nth-child(6) { width: 16mm; text-align: center; }
.wp-summary-export-table th:nth-child(7),
.wp-summary-export-table td:nth-child(7) { width: 16mm; }
.wp-summary-export-table th:nth-child(8),
.wp-summary-export-table td:nth-child(8) {
    width: 47mm;
    text-align: center;
}
.wp-summary-export-table th:nth-child(9),
.wp-summary-export-table td:nth-child(9) { width: 28mm; text-align: center; }
.wp-summary-export-table th:nth-child(10),
.wp-summary-export-table td:nth-child(10) { width: 14mm; text-align: center; }


.wp-stock-export-section-title,
.wp-cash-export-section-title {
    margin: 5px 0 3px;
    font-size: 9px;
    font-weight: 700;
}

.wp-cash-export-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 8.4px;
    line-height: 1.34;
    margin-bottom: 4px;
}

.wp-cash-export-table th,
.wp-cash-export-table td {
    border: 0.25px solid #777777;
    padding: 4.2px 2.4px;
    vertical-align: middle;
    min-width: 0;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
}

.wp-cash-export-table th {
    text-align: center;
    font-weight: 700;
    background: #DDEBFF;
    line-height: 1.18;
}

.wp-cash-export-table .wp-cash-col-no {
    width: 6mm;
}

.wp-cash-export-table .wp-cash-col-label {
    width: 38mm;
}

.wp-cash-export-table .wp-cash-col-money {
    width: 38mm;
}

.wp-cash-export-table .wp-cash-col-qty {
    width: 38mm;
}

.wp-cash-export-table .wp-cash-col-date {
    width: 38mm;
}

.wp-cash-export-table .wp-cash-col-invoice {
    width: 38mm;
}

.wp-cash-export-table .wp-cash-col-note {
    width: auto;
}

.wp-cash-export-table th:nth-child(1),
.wp-cash-export-table td:nth-child(1) {
    text-align: center;
}

.wp-cash-export-table td:nth-child(3),
.wp-cash-export-table td:nth-child(4),
.wp-cash-export-table td:nth-child(5) {
    text-align: center;
}

.wp-cash-total-row td {
    font-weight: 700;
    background: #f5f5f5;
}

.wp-cash-deposit-export-table td {
    border: none;
    background: #ffffff;
}

.wp-cash-question-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 8.4px;
    line-height: 1.22;
    margin: 2px 0 4px;
}

.wp-cash-question-table td {
    border: none;
    background: #ffffff;
    padding: 2px 0;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.wp-cash-question-table td:first-child {
    width: 42%;
}

.wp-cash-question-table td:last-child {
    width: 58%;
    font-weight: 700;
    text-align: left;
}

.wp-cash-deposit-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42mm;
    gap: 5mm;
    align-items: start;
    min-width: 0;
}

.wp-cash-deposit-layout .wp-cash-question-table {
    margin: 2px 0 4px;
}

.wp-cash-audit-note-box {
    border: 0.25px solid #777777;
    padding: 3px 4px;
    font-size: 8.4px;
    line-height: 1.22;
    min-height: 22mm;
    box-sizing: border-box;
    overflow-wrap: anywhere;
}

.wp-cash-audit-note-box div {
    font-weight: 700;
    margin-bottom: 4px;
}

.wp-cash-audit-note-box strong {
    font-weight: 400;
}

.wp-cash-total-row td:nth-child(2),
.wp-cash-nominal-cell {
    text-align: center;
}

.wp-cash-signature-layout {
    display: grid;
    grid-template-columns: 44mm 42mm;
    flex: 0 0 auto;
    align-items: end;
    justify-content: space-between;
    gap: 8mm;
    margin-top: auto;
    padding-top: 4mm;
    font-size: 8.5px;
}
