:root {
    /* Primary Colors - HSL based for modern aesthetics */
    --oms-primary: hsl(210, 100%, 50%);
    --oms-primary-dark: hsl(210, 100%, 40%);
    --oms-primary-light: hsl(210, 100%, 95%);
    
    --oms-success: hsl(145, 63%, 49%);
    --oms-success-dark: hsl(145, 63%, 40%);
    --oms-success-light: hsl(145, 63%, 95%);
    
    --oms-warning: hsl(36, 100%, 50%);
    --oms-warning-dark: hsl(36, 100%, 40%);
    
    --oms-danger: hsl(0, 84%, 60%);
    --oms-danger-dark: hsl(0, 84%, 50%);
    
    --oms-info: hsl(210, 8%, 51%);
    
    /* Neutral Colors */
    --oms-bg-main: #f0f2f5;
    --oms-bg-card: #FFFFFF;
    --oms-text-primary: #292A2E;
    --oms-text-regular: #606266;
    --oms-text-secondary: #909399;
    --oms-border-color: #EBEEF5;
    
    /* Transitions & Shadows */
    --oms-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --oms-shadow-light: 0 2px 12px 0 rgba(0, 0, 0, 0.1);

    /* Jira Design Tokens */
    --ds-text: #172B4D;
    --ds-text-subtle: #5E6C84;
    --ds-text-inverse: #FFFFFF;
    --ds-link: #0052CC;
    --ds-link-hover: #0065FF;
    --ds-icon: #44526C;
    --ds-icon-subtle: #6B778C;
    --ds-border: #DFE1E6;
    --ds-border-focused: #4C9AFF;
    --ds-bg-hover: #EBECF0;
    --ds-bg-active: #DEEBFF;
    --ds-bg-brand: #0052CC;
    --ds-bg-danger: #DE350B;
    --ds-bg-warning: #FF8B00;
    --ds-bg-success: #00875A;
    --ds-shadow: 0 8px 24px rgba(9, 30, 66, 0.15);
    --ds-shadow-overlay: 0 4px 8px rgba(9, 30, 66, 0.10);
    --ds-radius: 3px;
    --ds-radius-large: 6px;
    --ds-transition: 0.15s ease-in-out;
    --ds-blanket: rgba(9, 30, 66, 0.54);
}

body, html {
    margin: 0;
    padding: 0;
    line-height: 1.42857142857143;
    background-color: var(--oms-bg-card);
    color: var(--oms-text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-size: 14px;
    font-weight: 400;
    -ms-overflow-style: -ms-autohiding-scrollbar;
    text-decoration-skip-ink: auto;
}

/* 抖动动画 - 用于错误定位提示 */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%,    25% { transform: translate(-2px, 0); }
    75% { transform: translate(2px, 0); }
}

/* 复制提示类 */
.copyable-id {
    cursor: pointer;
    color: #409EFF;
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.copyable-id:hover {
    background-color: #ecf5ff;
    text-decoration: underline;
}
.animate-shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}


#app {
    background-color: var(--oms-bg-main);
}

.store {
    padding: 16px 16px 80px 16px;
    /*min-width: 1300px;*/
}

.store.flex-table-layout {
    height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 24px;
}

.store.flex-table-layout .searchFrom {
    flex-shrink: 0;
}

.store.flex-table-layout .search-section-wrapper {
    flex-shrink: 0;
}

.store.flex-table-layout .el-table {
    flex: 1;
    min-height: 0;
}

/* 统一 flex-table-layout 页面的表格加载遮罩样式 */
.flex-table-layout .el-loading-mask {
    background-color: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(1px);
    transition: opacity 0.2s ease-in-out;
}

.flex-table-layout .el-loading-mask.el-loading-fade-leave-active,
.flex-table-layout .el-loading-mask.el-loading-fade-leave-to {
    pointer-events: none;
}

.store .el-table__footer-wrapper {
    position: sticky;
    bottom: 0;
    z-index: 10;
    background-color: var(--oms-bg-card) !important;
    border-top: 2px solid var(--oms-border-color);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}


/* Table Header & Cell Styling */
.store .el-table {
    background-color: var(--oms-bg-card);
}

.store .el-table th.el-table__cell {
    background-color: #ffffff !important;
    color: #262626 !important;
    font-weight: 700 !important;
    border-bottom: 2px solid var(--oms-border-color) !important;
}

.store .el-table--striped .el-table__row--striped td.el-table__cell {
    background-color: #fafafa !important;
}

.store .el-table .el-table__row:hover > td.el-table__cell {
    background-color: #f0f5ff !important;
}

.store .el-table__footer-wrapper tbody td.el-table__cell {
    background-color: #fafafa !important;
    font-weight: 700 !important;
    color: #262626 !important;
    border-top: 2px solid var(--oms-border-color) !important;
}

/* Tree Table Row Styling (Task 182) */
.store .el-table tr.table-parent-row,
.store .el-table tr.table-parent-row td.el-table__cell {
    background-color: #ffffff !important;
}

.store .el-table tr.table-parent-row-striped,
.store .el-table tr.table-parent-row-striped td.el-table__cell {
    background-color: #f7f9fc !important;
}

.store .el-table tr.table-child-row,
.store .el-table tr.table-child-row td.el-table__cell {
    background-color: #f9fafb !important;
    color: #595959 !important;
    font-size: 13px !important;
}

a {
    text-decoration: none;
}

.layout {
    display: flex;
    justify-content: space-between;
    background-color: var(--oms-bg-card);
    padding: 8px;
}

.default_search__button .el-icon {
    margin: 0 3px;
}

.default_search__button {
    border: 1px solid #000000;
    height: 34px;
}

.width100 {
    width: 100px;
}

.width120 {
    width: 120px;
}

.width150 {
    width: 150px;
}

.width250 {
    width: 250px;
}

/* 兼容旧版类名（Vue2->Vue3） */
.input-width100 { width: 100px; }
.input-width120 { width: 120px; }
.input-width150 { width: 150px; }

/* 搜索区域样式 */
.searchFrom .el-form-item {
    margin: 2px;
    vertical-align: bottom;
}

.searchBtn .el-button:focus, .searchBtn .el-button:hover {
    color: #FFFFFF;
    border-color: #5FB878;
    border: 1px solid;
    background-color: #5FB878;
    outline: 0;
}

.searchBtn .el-button:focus, searchBtn .el-button:hover {
    color: #FFFFFF;
    border-color: #5FB878;
    border: 1px solid;
    background-color: #5FB878;
    outline: 0;
}

@media screen and (min-width: 992px) {
    .searchPopover {
        width: 410px;
    }

    .nc-head-s {
        height: 92px;
    }

    .nc-head-goods-list {
        height: calc(100vh - 156px);
    }
}

/* 用户下拉样式 */
.userPopover {
    width: 180px;
    min-width: auto;
    padding: 6px;
}

.userPopover .user {
    display: flex;
    cursor: pointer;
}

.userPopover .user .info {
    margin-top: 4px;
    margin-left: 6px;
}

.userPopover .user .info span {
    display: block;
    line-height: 20px;
}

.userPopover .user .el-image {
    width: 50px;
    height: 50px;
}

.userPopover .user .el-image i {
    font-size: 36px;
    padding: 6px;
}

.userPopover p {
    line-height: 32px;
    cursor: pointer;
}

.userPopover p:hover {
    background: #DBEDFC;
}

.userPopover p i {
    margin: 0 6px;
}

.pointer {
    cursor: pointer
}

/*cashier*/
.cashier {
    height: 100vh;
}

.nc-head-left {
    display: flex;
    background-color: #001529;
    text-align: center;
    line-height: 40px;
    font-size: 16px;
    cursor: pointer;
}

.nc-head-left .item {
    flex: 1;
    list-style: none;
    color: #ffffff;
}

.nc-head-left .active, .nc-head-left .item:active, .nc-head-left .item:hover {
    background-color: #67c23a;
}

/* .nc-head-warp removed empty */

.nc-head-s {
    background-color: #FFFFFF;
    margin: 12px 0;
    height: 46px;
}

.nc-head-s .tablePagination {
    float: right;
    margin-top: 4px;
    margin-right: 8px;
    border: 0;
}

.nc-head-search {
    padding: 6px 8px;
}

.nc-head-goods {
    width: 100%;
}

.nc-head-goods-list {
    height: calc(100vh - 110px);
    overflow-y: auto;
    overflow-x: hidden;
}

.nc-head-goods .el-card {
    border-radius: 0;
    cursor: pointer;
}

.nc-head-goods .el-card__body {
    padding: 4px;
    font-weight: 700;
}

.nc-head-goods .el-card:hover, .nc-head-goods .el-card:focus {
    background-color: #67c23a;
    color: #ffffff;
}

.nc-head-goods-item {
    margin-bottom: 8px;
}

.nc-head-goods .goods-title {
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nc-head-goods .goods-desc {
    display: flex;
}

.nc-head-goods .goods-ctypes {
    flex: 1;
}

.nc-head-goods .goods-price {
    flex: 1;
    text-align: right;
}

.nc-head-goods .goods-price span {
    color: #ff6a23;
    font-size: 16px;
    font-weight: bolder;
}

.nc-head-customer {
    margin: 8px;
    padding: 8px;
    background-color: #ffffff;
}

.nc-head-customer-search {
    width: 150px;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.nc-head-customer-input {
    width: 100%;
}

/* .nc-head-customer-info removed empty */

.nc-head-customer-block {
    display: flex;
    background-color: #d9a468;
    color: #ffffff;
    padding: 16px;
    margin: 8px 0;
    font-weight: 500;
}

.nc-head-customer-red {
    background-color: #F56C6C;
}

.nc-head-customer-name {
    flex: 1;
    font-size: 16px;
}

.nc-head-customer-desc {
    flex: 1;
}

/* .nc-head-customer-blance removed empty */

.nc-head-customer-create {
    cursor: pointer;
    text-decoration: underline;
}

.nc-head-g-list {
    margin: 8px;
    height: calc(100vh - 275px);
    background-color: #ffffff;
    overflow-y: auto;
    overflow-x: hidden;
}

.nc-head-g-item {
    background: #f7f8fa;
    padding: 8px;
    overflow: hidden;
    margin-bottom: 4px;
}

.nc-head-g-info {
    overflow: hidden;
}

.nc-head-g-name {
    width: 30%;
    float: left;
}

.nc-head-g-nums {
    width: 30%;
    float: left;
}

.nc-head-g-nums .el-input-number {
    width: 120px;
}

.nc-head-g-right {
    width: 40%;
    float: left;
}

.nc-head-g-actual {
    float: right;
    font-weight: 500;
    color: #323232;
    line-height: 20px;
    font-size: 20px;
    cursor: pointer;
}

.nc-head-g-close {
    width: 30px;
    float: right;
    font-size: 24px;
    cursor: pointer;
}

.nc-head-g-sale {
    text-align: right;
}

.nc-head-g-oragin-price {
    color: #b7b7b7;
    text-decoration: line-through;
    margin-right: 12px;
}

.nc-head-g-oragin-total {
    color: #fe2278;
}

.nc-head-g-total {
    padding: 8px;
}

.nc-head-shopping {
    padding: 8px;
    background-color: #ffffff;
    margin: 0 8px;
}

.nc-head-shopping-warp {
    display: flex;
    height: 44px;
    line-height: 44px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.nc-head-shopping-clear {
    flex: 1;
    background-color: #ecf5ff;
    cursor: pointer;
}

.nc-head-shopping-keep {
    flex: 1;
    background-color: #e1f3d8;
    cursor: pointer;
}

.nc-head-shopping-pay {
    background-color: #07c160;
    color: #fff;
    line-height: 44px;
    text-align: center;
    font-size: 18px;
    cursor: pointer;
}

.nc-head-shopping-pay span {
    font-size: 20px;
    font-weight: 800;
    margin-left: 40px;
}

.nc-head-in {
    margin: 8px;
    padding: 8px;
    background-color: #fff;
}

.nc-head-warp-search {
    border: 1px solid #393D49;
}

.searchFromButton {
    margin-top: 32px;
    height: 34px;
    border: 1px solid #393D49;
}


.tabsDialog .dialog-footer {
    float: right;
}

.input-readonly .el-input__wrapper {
    border-color: #d2d2d2;
    background-color: #d2d2d2;
}

.store-order-list .order-row {
    line-height: 24px;
    color: #000000;
}

.store-order-list .order-row span {
    padding-right: 8px;
    color: #909399;
    width: 64px;
    display: inline-block;
}

.store-order-list .order-detail .el-card__header {
    padding: 8px;
    font-weight: 800;
}

.store-order-list .order-detail .el-card__body {
    padding: 8px;
}

/* ===== Atlassian 风格分页组件 ===== */
.custom-pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding: 8px 16px;
    background: #FFFFFF;
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 12px;
}

/* el-pagination Atlassian 覆盖样式 */
.custom-pagination-el.el-pagination {
    --el-pagination-button-gap: 2px;
    font-weight: 400;
    padding: 0;
}

.custom-pagination-el .btn-prev,
.custom-pagination-el .btn-next {
    height: 32px;
    min-width: 32px;
    padding: 0;
    border: none;
    background: transparent;
    color: #42526E;
    font-size: 16px;
    line-height: 32px;
    border-radius: 3px;
    transition: all 0.15s ease;
}

.custom-pagination-el .btn-prev:hover,
.custom-pagination-el .btn-next:hover {
    background: #F4F5F7;
    color: #0052CC;
}

.custom-pagination-el .btn-prev:active,
.custom-pagination-el .btn-next:active {
    background: #EBECF0;
}

.custom-pagination-el .btn-prev:focus-visible,
.custom-pagination-el .btn-next:focus-visible {
    box-shadow: 0 0 0 2px rgba(38, 132, 255, 0.4);
    outline: none;
}

.custom-pagination-el .btn-prev.is-disabled,
.custom-pagination-el .btn-next.is-disabled {
    color: #A5ADBA;
    background: transparent;
    cursor: not-allowed;
}

.custom-pagination-el .el-pager {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.custom-pagination-el .el-pager li {
    height: 32px;
    min-width: 32px;
    padding: 0 2px;
    border: none;
    border-radius: 3px;
    background: transparent;
    color: #42526E;
    font-size: 13px;
    font-weight: 400;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.15s ease;
}

.custom-pagination-el .el-pager li:hover {
    background: #F4F5F7;
    color: #0052CC;
}

.custom-pagination-el .el-pager li:active {
    background: #EBECF0;
}

.custom-pagination-el .el-pager li:focus-visible {
    box-shadow: 0 0 0 2px rgba(38, 132, 255, 0.4);
    outline: none;
}

.custom-pagination-el .el-pager li.is-active {
    background: #0052CC;
    color: #fff;
    font-weight: 500;
    cursor: default;
}

.custom-pagination-el .el-pager li.is-active:hover {
    background: #0052CC;
    color: #fff;
}

.custom-pagination-el .el-pager li.more {
    background: transparent;
    color: #42526E;
    font-weight: 400;
    letter-spacing: 2px;
    cursor: default;
}

.custom-pagination-el .el-pager li.more:hover {
    background: #F4F5F7;
    color: #0052CC;
}

.custom-pagination-el .el-pagination__total {
    color: #5E6C84;
    font-size: 13px;
    margin-left: 8px;
    font-weight: 400;
}

/* 下拉刷新 (Pull-to-Refresh) */
.pull-refresh-indicator {
    height: 60px;
    width: 100%;
    margin-top: -60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #909399;
    transition: transform 0.2s cubic-bezier(0.1, 0.57, 0.1, 1);
}

.pull-refresh-active {
    transform: translateY(60px);
}

.pull-refresh-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #67c23a;
    border-top-color: transparent;
    border-radius: 50%;
    margin-right: 8px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 横扫删除 (Swipe-to-Delete) */
.swipe-row-container {
    position: relative;
    overflow: hidden;
    touch-action: pan-y;
}

.swipe-row-content {
    background: #fff;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.swipe-row-actions {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    display: flex;
    z-index: 1;
}

.swipe-row-delete {
    background: var(--oms-danger);
    color: #fff;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* 断网显著提示样式 (Task 28) */
.offline-notice {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--oms-danger);
    color: white;
    text-align: center;
    padding: 10px;
    z-index: 9999;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* 统一加载指示器 (Task 43) */
.oms-loading-mask {
    background-color: rgba(255, 255, 255, 0.7) !important;
}

.oms-loader {
    width: 48px;
    height: 48px;
    border: 3px solid var(--oms-primary-light);
    border-radius: 50%;
    display: inline-block;
    position: relative;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}
.oms-loader::after {
    content: '';  
    box-sizing: border-box;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-bottom-color: var(--oms-primary);
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 图片懒加载与占位 (Task 147, 54) */
.img-lazy {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background-color: #f5f7fa;
    background-image: linear-gradient(90deg, #f5f7fa 25%, #e6e8eb 50%, #f5f7fa 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.img-loaded {
    opacity: 1;
    animation: none;
    background-image: none;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 无障碍增强 (Task 182) */
.accessible-label {
    cursor: pointer;
    user-select: none;
}
.accessible-label:hover {
    color: var(--oms-primary);
}

/* 移动端底部导航 - Task 77 */
.mobile-tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 56px;
    background: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    border-top: 1px solid var(--oms-border-color);
}

.tabbar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--oms-text-secondary);
    font-size: 11px;
    cursor: pointer;
    transition: var(--oms-transition);
}

.tabbar-item .el-icon {
    font-size: 22px;
    margin-bottom: 2px;
}

.tabbar-item.active {
    color: var(--oms-primary);
}

/* 移动端适配补丁 - Task 76, 78, 101 */
@media screen and (max-width: 768px) {
    .home {
        overflow-x: hidden;
    }
    
    .container {
        padding-bottom: 70px; /* 为 Tabbar 留出空间 */
    }

    .el-aside {
        display: block !important; /* 覆盖全局隐藏 */
        width: 320px !important;
        transform: translateX(-320px) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
    }

    .zoom .el-aside {
        transform: translateX(0) !important;
    }

    .theme_0_0 .el-aside .el-menu:not(.el-menu--collapse) {
        width: 320px !important;
    }

    .content {
        margin-left: 0 !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .zoom .content {
        transform: translateX(320px) !important;
    }

    .sticky-bottom-actions {
        position: fixed !important;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 10px 16px 24px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 -4px 12px rgba(0, 0, 10, 0.05);
        z-index: 999;
        display: flex;
        gap: 12px;
        box-sizing: border-box;
    }
    
    .sticky-bottom-actions .el-button {
        flex: 1;
        margin: 0 !important;
        height: 44px;
    }

    /* 移动端列表卡片化 - Task 76 */
    .responsive-table.el-table {
        background-color: transparent !important;
    }
    .responsive-table.el-table .el-table__header-wrapper {
        display: none !important;
    }
    .responsive-table.el-table .el-table__row {
        display: flex !important;
        flex-direction: column;
        margin-bottom: 12px;
        border: 1px solid var(--oms-border-color);
        border-radius: 12px;
        overflow: hidden;
        background: #fff;
        box-shadow: var(--oms-shadow-light);
        padding: 8px;
    }
    .responsive-table.el-table .el-table__cell {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #f0f2f5 !important;
        padding: 10px 8px !important;
        width: 100% !important;
        box-sizing: border-box;
    }
    .responsive-table.el-table .el-table__cell:last-child {
        border-bottom: none !important;
    }
    .responsive-table.el-table .el-table__cell .cell {
        padding: 0 !important;
        text-align: right !important;
        width: auto !important;
    }
    .responsive-table.el-table .el-table__cell:before {
        content: attr(data-label);
        font-weight: 500;
        color: var(--oms-text-secondary);
        font-size: 13px;
    }
}

/* --- Stepper Input Styles --- */
.cashier-step-input {
    width: 140px !important;
}

.input-unit-append {
    padding: 0 12px;
    color: var(--el-text-color-secondary);
    font-size: 14px;
    background-color: var(--el-fill-color-light);
    border: 1px solid var(--el-border-color);
    border-left: none;
    border-radius: 0 var(--el-border-radius-base) var(--el-border-radius-base) 0;
    height: 32px;
    display: inline-flex;
    align-items: center;
    vertical-align: top;
    box-sizing: border-box;
}

.take-nums-stepper {
    vertical-align: top;
}

/* Ensure the stepper buttons look clean */
.el-input-number .el-input-number__increase,
.el-input-number .el-input-number__decrease {
    background-color: var(--el-fill-color-light);
}

.cashier-step-input .el-input__wrapper {
    padding-left: 40px;
    padding-right: 40px;
}

/* --- Jira Status Dropdown Component Styles --- */
.jira-status-dropdown {
  display: block;
  margin-bottom: 16px;
}

.jira-status-button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--ds-radius-large, 6px);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: background var(--ds-transition, 0.15s ease-in-out), filter var(--ds-transition, 0.15s ease-in-out), box-shadow var(--ds-transition, 0.15s ease-in-out);
  line-height: 1;
  box-sizing: border-box;
  height: 36px;
  border: 1px solid transparent;
}

.jira-status-button .status-text {
  flex: 1;
  text-align: left;
}

.jira-status-button .status-icon {
  font-size: 14px;
  color: inherit;
}

/* Color Themes based on Jira Design Guidelines */

/* 1. Gray / Info / Unchecked */
.jira-status-info,
.jira-status-unchecked {
  background-color: #DFE1E6;
  color: #42526E;
}
.jira-status-info:hover,
.jira-status-unchecked:hover {
  filter: brightness(0.95);
  box-shadow: 0 0 0 2px rgba(9, 30, 66, 0.08);
}
.jira-status-info:active,
.jira-status-unchecked:active {
  background-color: #c1c7d0;
}

/* 2. Green / Success / Checked */
.jira-status-success,
.jira-status-checked {
  background-color: #E3FCEF;
  color: #006644;
}
.jira-status-success:hover,
.jira-status-checked:hover {
  filter: brightness(0.95);
  box-shadow: 0 0 0 2px rgba(0, 135, 90, 0.15);
}
.jira-status-success:active,
.jira-status-checked:active {
  background-color: #abf5d1;
}

/* 3. Blue / Primary / Processing */
.jira-status-primary {
  background-color: #DEEBFF;
  color: #0747A6;
}
.jira-status-primary:hover {
  filter: brightness(0.95);
  box-shadow: 0 0 0 2px rgba(38, 132, 255, 0.15);
}
.jira-status-primary:active {
  background-color: #b3d4ff;
}

/* 4. Orange / Warning / Alert */
.jira-status-warning {
  background-color: #FFF0B3;
  color: #172B4D;
}
.jira-status-warning:hover {
  filter: brightness(0.95);
  box-shadow: 0 0 0 2px rgba(255, 171, 0, 0.15);
}
.jira-status-warning:active {
  background-color: #ffe380;
}

/* 5. Red / Danger / Error */
.jira-status-danger {
  background-color: #FFE3E3;
  color: #BF2600;
}
.jira-status-danger:hover {
  filter: brightness(0.95);
  box-shadow: 0 0 0 2px rgba(222, 53, 11, 0.15);
}
.jira-status-danger:active {
  background-color: #ffbdad;
}

/* Disabled & Loading state */
.jira-status-button.is-disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Dropdown Popper Overrides */
.jira-status-popper {
  min-width: unset !important;
}

.jira-status-dropdown-menu {
        background-color: transparent !important;
    }
    .responsive-table.el-table .el-table__header-wrapper {
        display: none !important;
    }
    .responsive-table.el-table .el-table__row {
        display: flex !important;
        flex-direction: column;
        margin-bottom: 12px;
        border: 1px solid var(--oms-border-color);
        border-radius: 12px;
        overflow: hidden;
        background: #fff;
        box-shadow: var(--oms-shadow-light);
        padding: 8px;
    }
    .responsive-table.el-table .el-table__cell {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #f0f2f5 !important;
        padding: 10px 8px !important;
        width: 100% !important;
        box-sizing: border-box;
    }
    .responsive-table.el-table .el-table__cell:last-child {
        border-bottom: none !important;
    }
    .responsive-table.el-table .el-table__cell .cell {
        padding: 0 !important;
        text-align: right !important;
        width: auto !important;
    }
    .responsive-table.el-table .el-table__cell:before {
        content: attr(data-label);
        font-weight: 500;
        color: var(--oms-text-secondary);
        font-size: 13px;
    }
}

/* --- Stepper Input Styles --- */
.cashier-step-input {
    width: 140px !important;
}

.input-unit-append {
    padding: 0 12px;
    color: var(--el-text-color-secondary);
    font-size: 14px;
    background-color: var(--el-fill-color-light);
    border: 1px solid var(--el-border-color);
    border-left: none;
    border-radius: 0 var(--el-border-radius-base) var(--el-border-radius-base) 0;
    height: 32px;
    display: inline-flex;
    align-items: center;
    vertical-align: top;
    box-sizing: border-box;
}

.take-nums-stepper {
    vertical-align: top;
}

/* Ensure the stepper buttons look clean */
.el-input-number .el-input-number__increase,
.el-input-number .el-input-number__decrease {
    background-color: var(--el-fill-color-light);
}

.cashier-step-input .el-input__wrapper {
    padding-left: 40px;
    padding-right: 40px;
}

/* --- Jira Status Dropdown Component Styles --- */
.jira-status-dropdown {
  display: block;
  margin-bottom: 16px;
}

.jira-status-button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--ds-radius-large, 6px);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: background var(--ds-transition, 0.15s ease-in-out), filter var(--ds-transition, 0.15s ease-in-out), box-shadow var(--ds-transition, 0.15s ease-in-out);
  line-height: 1;
  box-sizing: border-box;
  height: 36px;
  border: 1px solid transparent;
}

.jira-status-button .status-text {
  flex: 1;
  text-align: left;
}

.jira-status-button .status-icon {
  font-size: 14px;
  color: inherit;
}

/* Color Themes based on Jira Design Guidelines */

/* 1. Gray / Info / Unchecked */
.jira-status-info,
.jira-status-unchecked {
  background-color: #DFE1E6;
  color: #42526E;
}
.jira-status-info:hover,
.jira-status-unchecked:hover {
  filter: brightness(0.95);
  box-shadow: 0 0 0 2px rgba(9, 30, 66, 0.08);
}
.jira-status-info:active,
.jira-status-unchecked:active {
  background-color: #c1c7d0;
}

/* 2. Green / Success / Checked */
.jira-status-success,
.jira-status-checked {
  background-color: #E3FCEF;
  color: #006644;
}
.jira-status-success:hover,
.jira-status-checked:hover {
  filter: brightness(0.95);
  box-shadow: 0 0 0 2px rgba(0, 135, 90, 0.15);
}
.jira-status-success:active,
.jira-status-checked:active {
  background-color: #abf5d1;
}

/* 3. Blue / Primary / Processing */
.jira-status-primary {
  background-color: #DEEBFF;
  color: #0747A6;
}
.jira-status-primary:hover {
  filter: brightness(0.95);
  box-shadow: 0 0 0 2px rgba(38, 132, 255, 0.15);
}
.jira-status-primary:active {
  background-color: #b3d4ff;
}

/* 4. Orange / Warning / Alert */
.jira-status-warning {
  background-color: #FFF0B3;
  color: #172B4D;
}
.jira-status-warning:hover {
  filter: brightness(0.95);
  box-shadow: 0 0 0 2px rgba(255, 171, 0, 0.15);
}
.jira-status-warning:active {
  background-color: #ffe380;
}

/* 5. Red / Danger / Error */
.jira-status-danger {
  background-color: #FFE3E3;
  color: #BF2600;
}
.jira-status-danger:hover {
  filter: brightness(0.95);
  box-shadow: 0 0 0 2px rgba(222, 53, 11, 0.15);
}
.jira-status-danger:active {
  background-color: #ffbdad;
}

/* Disabled & Loading state */
.jira-status-button.is-disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Dropdown Popper Overrides */
.jira-status-popper {
  min-width: unset !important;
}

.jira-status-dropdown-menu {
  padding: 4px 0 !important;
  width: 100% !important;
  box-sizing: border-box;
}

.jira-status-dropdown-menu .el-dropdown-menu__item {
  font-weight: 500;
  display: flex !important;
  align-items: center;
  justify-content: flex-start !important;
  text-align: left !important;
  padding: 8px 12px !important;
  width: 100% !important;
  box-sizing: border-box;
}

/* 高级筛选中等宽单选按钮组全局样式 */
.half-width-btn-group {
  display: flex !important;
  width: 100% !important;
}
.half-width-btn-group .el-radio-button {
  flex: 1 !important;
  display: flex !important;
}
.half-width-btn-group .el-radio-button__inner {
  width: 100% !important;
  text-align: center !important;
  padding: 8px 12px !important;
}
