

.select2-container--default .select2-selection--single .select2-selection__rendered,
.form-control {
    color: #000;
}

/* 让 Select2 单选框高度与 Bootstrap .form-control 一致 */
.select2-container--default .select2-selection--single {
    height: calc(1.5em + .75rem + calc(var(--bs-border-width, 1px) * 2)) !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: calc(1.5em + .75rem) !important;
    padding-left: .75rem !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: calc(1.5em + .75rem) !important;
}

.pagination {



    margin: 2px 0;
    white-space: nowrap;
    justify-content: flex-end;
}

.alert-date-warning {
    background-color: sandybrown !important;
}

.expired-date-warning {
    background-color: red !important;
}


.certs {

    box-shadow: 0 0 1px rgb(0 0 0 / 13%), 0 1px 3px rgb(0 0 0 / 20%);
    margin-bottom: 1rem;
    border-radius: 0.25rem;
    padding: var(--bs-card-spacer-y) var(--bs-card-spacer-x);
}

.card-footer ul li {
    list-style: none;
}


body {
    font-family: 12px/1.5 Microsoft YaHei, Hiragino Sans GB, "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    color: #000
}

.invoice {
    padding: 20px;
}

.invoice .logo {
    width: 120px;
}

.invoice .warning {
    color: red;
    font-weight: 700;
}

.invoice table {
    text-align: center;
    margin-top: 20px;
}

.invoice table .total {
    background-color: #fff;
    font-weight: 700;
}


p.type_title {
    text-align: right;
    height: 40px;
    position: absolute;
    left: 20px;
    top: 190px;
    width: 140px;
    display: block;

}

p.type_title span {
    border: 3px solid #000;
    padding: 15px;
    font-weight: 700;
    font-size: 20px;
    position: absolute;
    left: 0;
    top: 0;
}

.table-bordered .itemLine td,
.table-bordered .itemLine th {
    white-space: nowrap;
    height: auto;
    vertical-align: middle;
}


table.table-bordered.dataTable thead tr:first-child th,
table.table-bordered.dataTable thead tr:first-child td {
    white-space: nowrap;
}

table.table-bordered.table thead tr:first-child th,
table.table-bordered.table thead tr:first-child td {
    white-space: nowrap;
}

table.table-bordered.dataTable tbody tr:first-child th,
table.table-bordered.dataTable tbody tr:first-child td {
    white-space: nowrap;
}

table.table-bordered.table tbody tr:first-child th,
table.table-bordered.table tbody tr:first-child td {
    white-space: nowrap;

}

table th {
    white-space: nowrap;
}





.ag-theme-alpine {
    --ag-column-select-indent-size: 40px;

}

.ag-theme-alpine .ag-column-drop-cell {
    background-color: purple;
}

.ag-theme-alpine .ag-column-drop-cell .ag-icon {
    color: white;
}

.ag-theme-alpine .ag-column-drop-cell-text {
    color: white;
    font-weight: bold;
}

.ag-floating-filter-button {
    display: none;
}

/* ---------- AG Grid 表头文字自动换行 ---------- */
.ag-theme-alpine .ag-header-cell-label,
.ag-theme-balham .ag-header-cell-label,
.ag-theme-quartz .ag-header-cell-label,
.ag-theme-material .ag-header-cell-label {
    overflow: visible !important;
    text-overflow: unset !important;
}
.ag-theme-alpine .ag-header-cell-text,
.ag-theme-balham .ag-header-cell-text,
.ag-theme-quartz .ag-header-cell-text,
.ag-theme-material .ag-header-cell-text {
    overflow: visible !important;
    text-overflow: unset !important;
    white-space: normal !important;
    line-height: 1.3 !important;
}
.ag-theme-alpine .ag-header-group-text,
.ag-theme-balham .ag-header-group-text,
.ag-theme-quartz .ag-header-group-text,
.ag-theme-material .ag-header-group-text {
    overflow: visible !important;
    text-overflow: unset !important;
    white-space: normal !important;
}
.ag-theme-alpine .ag-header-cell-comp-wrapper,
.ag-theme-balham .ag-header-cell-comp-wrapper,
.ag-theme-quartz .ag-header-cell-comp-wrapper,
.ag-theme-material .ag-header-cell-comp-wrapper {
    white-space: normal !important;
}
.ag-theme-alpine .ag-header-cell:not(.ag-header-cell-auto-height):not(.ag-floating-filter) .ag-header-cell-comp-wrapper,
.ag-theme-balham .ag-header-cell:not(.ag-header-cell-auto-height):not(.ag-floating-filter) .ag-header-cell-comp-wrapper,
.ag-theme-quartz .ag-header-cell:not(.ag-header-cell-auto-height):not(.ag-floating-filter) .ag-header-cell-comp-wrapper,
.ag-theme-material .ag-header-cell:not(.ag-header-cell-auto-height):not(.ag-floating-filter) .ag-header-cell-comp-wrapper {
    height: auto !important;
    align-items: flex-start !important;
    padding-top: 3px;
    padding-bottom: 3px;
}
.ag-theme-alpine .ag-header-cell:not(.ag-floating-filter),
.ag-theme-alpine .ag-header-group-cell,
.ag-theme-balham .ag-header-cell:not(.ag-floating-filter),
.ag-theme-balham .ag-header-group-cell,
.ag-theme-quartz .ag-header-cell:not(.ag-floating-filter),
.ag-theme-quartz .ag-header-group-cell,
.ag-theme-material .ag-header-cell:not(.ag-floating-filter),
.ag-theme-material .ag-header-group-cell {
    height: auto !important;
}

/* ---------- AG Grid 浮动过滤行保持上下居中 ---------- */
.ag-theme-alpine .ag-floating-filter,
.ag-theme-balham .ag-floating-filter,
.ag-theme-quartz .ag-floating-filter,
.ag-theme-material .ag-floating-filter {
    height: 100% !important;
    align-items: center !important;
}
.ag-theme-alpine .ag-floating-filter-body,
.ag-theme-balham .ag-floating-filter-body,
.ag-theme-quartz .ag-floating-filter-body,
.ag-theme-material .ag-floating-filter-body {
    height: 100%;
}


.text-center {
    text-align: center;
}

.mt-10 {
    margin-top: 10px;
}

.ml-0 {
    margin-left: 0;
}

.mr-0 {
    margin-right: 0px
}

.inline-input {
    display: inline;
    max-width: 320px;
}

.inline-dateinput {
    display: inline;

}

.text-right {
    text-align: right;
}

table.dataTable>tbody>tr.selected>* {
    color: #000;
    box-shadow: inset 0 0 0 9999px rgba(127, 127, 127, 0.2);
}

.input-wide {
    width: 100px
}

.product-name-trim {
    overflow: hidden;
    text-overflow: ellipsis;
    width: 500px;
    margin: 0
}

.order-name {
    width: 120px;
    margin: 0;
}

.customer-name {
    width: 320px;
    margin: 0;
}

.note-name {
    width: 300px;
    margin: 0;
}

.row {
    clear: both
}

@page {

    margin: 0;
    size: A4 landscape;
}

@media print {
    .noprint {
        visibility: hidden;
    }

    .invoice {
        padding: 0;
    }

    body {
        font-size: 20px;
    }


    .table thead th {
        border-bottom: 2px solid #ccc;
    }

    .table td,
    .table th {
        border-bottom: 2px solid #ccc;
    }

    @page {
        size: 241mm 279.4mm;
    }
}

@media only screen and (max-width: 479px) {
    .small-mt-10 {
        margin-top: 10px;
    }

    .small-hidden {
        display: none;
    }
}

@media only screen and (min-width: 480px) {
    .main-sidebar {
        display: none;
    }

    .sidebar-mini.sidebar-collapse .content-wrapper,
    .sidebar-mini.sidebar-collapse .main-footer,
    .sidebar-mini.sidebar-collapse .main-header {
        margin-left: 0 !important;
    }



    .jorigin-erpapi-stockout-print .main-sidebar {
        display: none;
    }

    .jorigin-erpapi-so-bulkprint .main-sidebar {
        display: none;
    }

    .jorigin-erpapi-stockout-bulkprint .main-sidebar {
        display: none;
    }
    .jorigin-erpapi-stockin-print .main-sidebar {
        display: none;
    }
    .jorigin-erpapi-poo-print .main-sidebar {
        display: none;
    }

}

@media only screen and (max-width: 770px) {
    .ag-status-bar-right {
        display: none !important;
    }

}

.logo-icons {
    display: flex;
    align-items: center;
    height: 40px;
}

.logo-brand {
    display: inline-flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.logo-wordmark {
    display: inline-block;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: .12em;
    line-height: 1;
    white-space: nowrap;
    color: var(--fa-navy, #0b2545);
}

.logo-brand:hover .logo-wordmark {
    color: var(--fa-yellow, #f2b705);
}

.logo-wordmark-dashboard {
    font-size: 28px;
    vertical-align: middle;
}

@media only screen and (max-width: 1600px) {
    .logo-icons {
        width: 40px;
        overflow: hidden;
    }

    .logo-icons .logo-wordmark {
        font-size: 0;
    }

    .logo-icons .logo-wordmark::first-letter {
        font-size: 24px;
    }
}

/* 公共工具栏：高级筛选 UI 与按钮保持同一行，使用合理固定宽度 */
[data-grid-advfilter-host] {
    display: inline-flex !important;
    align-items: center;
    vertical-align: middle;
    width: 600px;
    max-width: 100%;
}

[data-grid-advfilter-host] .ag-advanced-filter {
    display: flex !important;
    width: 100% !important;
}

/* 高级筛选器里的 autocomplete 输入框占满剩余空间 */
[data-grid-advfilter-host] ag-autocomplete,
[data-grid-advfilter-host] .ag-autocomplete {
    flex: 1 1 auto;
    min-width: 0;
}

/* 高级筛选器里的按钮（应用/清除等）文字不换行 */
[data-grid-advfilter-host] .ag-button,
[data-grid-advfilter-host] .ag-standard-button,
[data-grid-advfilter-host] button {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

/* 公共工具栏右侧组（按钮 + 搜索框）间距 */
.grid-toolbar-right-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.grid-toolbar-search-box {
    width: 200px;
    margin: 0 !important;
}