:host, :root, [data-bs-theme=light]{
    --tblr-primary: #3c642b;
    --tblr-primary-rgb: 60, 100, 43;
    --tblr-link-color: #3c642b;
    --tblr-link-color-rgb: 60, 100, 43;
    --tblr-link-hover-color: #2e551d;
    --tblr-link-hover-color-rgb: 46, 85, 29;
}

.navbar-brand-image {
    height: 100px;
}

img.navbar-brand-image-in {
    width: 160px;
    height: auto;
}

.navbar-vertical.navbar-expand-lg {
    overflow-y: auto;
}

.nav-link-icon {
    width: 1rem;
}



#sidebar-menu .dropdown-menu,a.dropdown-toggle.show, .nav-item.active>a {
    background: rgba(172, 198, 40, 0.25) !important;
}
.navbar-vertical.navbar-expand-lg .navbar-collapse .dropdown-menu .dropdown-menu .dropdown-item,
.navbar-vertical.navbar-expand-lg .navbar-collapse .dropdown-menu .dropdown-item {
    padding-left: 15px;
}

.nav-link .ti {
    font-size: 1.25rem;
    display: inline-block;
    vertical-align: middle;
    width: 1.25rem;
    height: 1.25rem;
    color: #7c8a28;
}

.navbar-vertical.navbar-expand-lg .navbar-collapse .nav-item.active:after {
    content: "";
    border: none !important;
    /* width: 16px;
    background: url(/assets/icons/arrow-up-right.svg);
    background-size:contain;
    background-color:transparent;
    background-repeat:no-repeat;
    background-position: center;
    left: 1px;
    filter: brightness(0) saturate(100%) invert(30%) sepia(95%) saturate(299%) hue-rotate(58deg) brightness(87%) contrast(87%); */
}
.nav-item.active>a{
    font-weight: 500;
}
#sidebar-menu .nav-item>a:hover{
    box-shadow: inset 0px 0px 50px rgba(172, 198, 40, .7);
}
.btn i.ti {
    font-size: 1.25rem;
    width: 1.25rem;
    height: 1.25rem;
    display: inline-block;
    vertical-align: middle;
}

a.btn.icon-btn {
    padding: 5px 15px;
    text-transform: capitalize;
    font-weight: 400;
}

a.btn.icon-btn .ti {
    font-size: 1.125rem;
    width: 1.125rem;
    height: 1.125rem;
    margin-right: 0.25rem;
    display: inline-block;
    vertical-align: middle;
}

.icon-btn.btn-outline-primary .ti, .filter-primary {
    filter: brightness(0) saturate(100%) invert(30%) sepia(95%) saturate(299%) hue-rotate(58deg) brightness(87%) contrast(87%);
}

.icon-btn.btn-outline-danger .ti, .filter-danger {
filter: brightness(0) saturate(100%) invert(31%) sepia(62%) saturate(1744%) hue-rotate(332deg) brightness(90%) contrast(99%);
}

a.btn.icon-btn:hover .ti {
    color: #fff;
}
.modal-blur {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    background: rgba(0, 0, 0, .5);
}
.btn-close:focus, .btn:focus{
    box-shadow: none !important;
}
.modal,.modal *{
    pointer-events:none ;
}
.modal.show,.modal.show *{
    pointer-events:all ;
}
.modal-close.modal-back {
    position: absolute;
    width: 100%;
    height: 100%;
}
.listing-bool i {
    width: 20px;
    height: 20px;
    display: block;
    background-size: contain;
}
.form-group{
    position: relative;
}

.q-link {
    margin-right: 30px;
    display: flex;
    align-items: center;
    flex-flow: column;
    width: 140px;
    text-align: center;
    border: 1px solid #f0f0f0;
    padding: 10px 20px;
    border-radius: 5px;
}

.ql-icon .ti {
    font-size: 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1;
}
.ql-icon {
    opacity: .6;
}

a.q-link {
    background: #fbfbfb;
}

th .flag {
    width: 1.3rem;
    height: 0.8rem;
}

.nav-link .flag {
    width: 1.2rem;
    height: 0.9rem;
    margin-right: 3px;
}

.icon-btn {
    flex-flow: row;
}
table#pages-table th:nth-child(1), table#pages-table th:nth-child(2) {
    width: 20%;
}

span.trans-percent {
    font-size: 10px;
    border: 1px solid;
    padding: 0px 2px;
    border-radius: 5px;
    width: 33px;
    display: inline-block;
    font-weight: 500;
    text-align: center;
}

.tp-full {
    color: #3b632b;
}
.tp-half {
    color: #fdb913;
}
.tp-empty {
    color: #d63939;
}

textarea.form-control {
    height: 150px;
    resize: none;
}

.dropzone .dz-preview .dz-image {
    width: 90px;
    height: 90px;
    border: 1px solid #ddd;
}

.dropzone .dz-preview.dz-image-preview {
    margin: 9px;
    height: 110px;
}
.dz-details {
    display: none !important;
}

.dz-progress {
    display: none;
}

.flex-1 {
    flex: 1;
}
.mr-1 {
    margin-right: 1rem;
}
.h-40 {
    height: 40px;
}

.input-icon .ti {
    font-size: 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
    display: inline-block;
    vertical-align: middle;
}

img.row-img {
    width: 80px;
    height: 60px;
    object-fit: contain;
}

.product-categories-table tr {
    border: 1px solid #e0e0e0;
}

.product-categories-table {
    border-spacing: 5px;
}

td.text-end.pc-actions {
    white-space: nowrap;
}

td.text-end.pc-actions a {
    padding: 3px 3px;
    box-shadow: none;
}
a.dz-link-to-file * {
    cursor: pointer !important;
}

.dz-link-to-file img.file-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    opacity: .6;
}
.dropzone .dz-preview:hover .dz-image img {
    transform: scale(1.05, 1.05);
    filter: none !important;
}
.view-item {
    border: 1px solid #f0f0f0;
    padding: 30px;
}

.view-label {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 0;
}

img.view-img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border: 1px solid #f0f0f0;
    display: inline-block;
}

.view-value {
    display: inline-block;
    font-size: 15px;
    font-style: italic;
}

.view-i-row.s-between {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.sub-card {
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.sub-card h3 {
    font-size: 16px;
    margin-bottom: 5px;
    margin-top: 10px;
}

.sub-card .view-i-row {
    margin-bottom: 3px;
}

.t-right {
    text-align: right;
}
.vv-item {
    display: inline-block;
}
.view-value.no-value {
    color: #ff2222;
    font-weight: 600;
}
.view-item-checkbox {
    display: inline-block;
}
.w-auto {
    width: auto;
}
td.text-end {
    width: 300px;
}

td.text-end a {
    margin: 2px;
}
.vanillatoasts-toast {
    background: #fff;
    text-align: left;
    display: inline-block;
    margin-bottom: 0;
    min-width: 300px;

}
#vanillatoasts-container {
    width: 600px;
    text-align: right;
}

.pagination .page-link i {
    height: 16px;
    width: 16px;
    display: inline-block;
    background-size: contain;
    background-position: center;
    vertical-align: middle;
    opacity: .6;
}

ul.pagination {
    margin-bottom: 0;
}

.disabled>.page-link, .page-link.disabled {
    color: var(--tblr-pagination-color);
    opacity: .2;
}

.search-and-filters {
    padding: 15px;
    margin-bottom: 30px;
    background: #f6f8fb;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
}

.filter-search-wr {
    display: flex;
    max-width: 300px;
}

.filter-select-wr {
    display: flex;
    align-items: center;
}

.filters {
    display: flex;
}

.filters>div {
    margin-right: 30px;
}

.filter-select-wr>label {
    white-space: nowrap;
    font-weight: 500;
    margin-right: 15px;
}

.filter-select-wr>select {
    width: 300px;
}
option[disabled] {
    display: none;
}
span.badge {
    color: #fff;
}
tr.table-primary td {
    background: #f4f4f4!important;
}

tr.table-primary td.invoice-file-cell, td.invoice-file-cell {
    background: #fcfdfe !important;
    border: 1px solid #ccc;
}

td {
    vertical-align: middle;
}

.btn i.ti {
    color: rgba(255, 255, 255, 0.7);
}

a.btn:hover i.ti {
    color: #fff;
}

/* Order list table responsive improvements */
.table-responsive {
    overflow-x: auto;
    /* Remove max-height to avoid double scrollbar */
}

/* Sticky table header - applies to all admin tables */
.table-responsive .table thead th {
    position: sticky !important;
    top: 0 !important;
    background-color: #fff !important;
    z-index: 1020 !important; /* Higher than Bootstrap modals */
    border-bottom: 2px solid #dee2e6 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    /* Allow text wrapping in table headers */
    white-space: normal !important;
    word-wrap: break-word !important;
    line-height: 1.2 !important;
    padding: 0.5rem 0.75rem !important;
}

/* Dark theme support for sticky header */
.dark .table-responsive .table thead th {
    background-color: var(--bs-dark) !important;
    color: var(--bs-light) !important;
}

/* Ensure table container allows sticky positioning */
.table-responsive {
    position: relative !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
}

/* JavaScript sticky header clone styling */
.sticky-table-clone {
    background-color: #fff !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 0 !important;
}

.sticky-header-clone {
    background-color: #fff !important;
}

.sticky-header-clone tr {
    display: table-row !important;
    background-color: #fff !important;
}

.sticky-header-clone th {
    background-color: #fff !important;
    border-bottom: 2px solid #dee2e6 !important;
    padding: 0.5rem 0.75rem !important;
    font-weight: 600 !important;
    text-align: left !important;
    border-right: 1px solid #dee2e6 !important;
    display: table-cell !important;
    vertical-align: middle !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    line-height: 1.2 !important;
}

.sticky-header-clone th:last-child {
    border-right: none !important;
}

.sticky-header-clone th:first-child {
    border-left: none !important;
}

/* Dark theme support for JS sticky header */
.dark .sticky-table-clone,
.dark .sticky-header-clone,
.dark .sticky-header-clone tr,
.dark .sticky-header-clone th {
    background-color: var(--bs-dark) !important;
    color: var(--bs-light) !important;
    border-color: #495057 !important;
}

/* Count badges styling */
.badge {
    font-size: 0.75rem;
    min-width: 1.5rem;
    text-align: center;
}

/* Responsive table columns for orders */
@media (max-width: 1200px) {
    .table th:nth-child(n+7),
    .table td:nth-child(n+7) {
        min-width: 80px;
        font-size: 0.875rem;
    }
}

@media (max-width: 992px) {
    .table th:nth-child(n+5),
    .table td:nth-child(n+5) {
        min-width: 70px;
        font-size: 0.8rem;
    }

    .table th,
    .table td {
        padding: 0.5rem 0.25rem;
    }
}

/* Visual markers for order types */
.table-primary {
    background-color: rgba(13, 110, 253, 0.1) !important;
}

.table-light {
    background-color: rgba(248, 249, 250, 0.8) !important;
}

/* DateTime display styling */
.datetime-display {
    line-height: 1.2;
    white-space: nowrap !important;
    min-width: 80px;
}

.datetime-display .date-part {
    font-weight: 500;
    margin-bottom: 2px;
    white-space: nowrap !important;
}

.datetime-display .time-part {
    font-size: 0.8rem;
    color: #6c757d !important;
    white-space: nowrap !important;
}

/* Total price column uppercase styling */
.table td[data-column="total_price"],
.table th[data-column="total_price"],
.table .total-price-cell {
    text-transform: uppercase !important;
    font-weight: 600 !important;
}

/* Orders table specific styling */
#orders-table .table td:nth-child(6),
#orders-table .table th:nth-child(6) {
    text-transform: uppercase !important;
    font-weight: 600 !important;
}
.pell-editor-container {
    border: var(--tblr-border-width) solid var(--tblr-border-color);
    border-radius: var(--tblr-border-radius);
    overflow: hidden;
}

/* Info content styling for table display */
.info-content {
    max-width: 300px;
    max-height: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.info-content p {
    margin: 0 0 0.5rem 0;
}

.info-content p:last-child {
    margin-bottom: 0;
}

.info-content h1, .info-content h2, .info-content h3,
.info-content h4, .info-content h5, .info-content h6 {
    font-size: 1rem;
    margin: 0 0 0.25rem 0;
    font-weight: 600;
}

.info-content ul, .info-content ol {
    margin: 0;
    padding-left: 1.2rem;
}

.info-content blockquote {
    margin: 0;
    padding: 0.25rem 0.5rem;
    border-left: 3px solid #dee2e6;
    background-color: #f8f9fa;
    font-style: italic;
}
.page-builder-blocks .empty-icon {
    margin: 0 auto 1rem;
}
.btn-group.btn-group-sm .btn {
    padding: 5px 10px;
    border-radius: 3px;
}
.page-block-actions .btn .icon {
    --tblr-btn-icon-size: 18px;
}

.page-block-actions {
    gap: 7px !important;
}

.page-block-actions .btn {
    border-radius: 3px;
}

/* CSP-compliant utility classes to replace inline styles */
.d-block {
    display: block !important;
}

.d-none {
    display: none !important;
}

.pell-editor-min {
    min-height: 150px;
}

.json-editor-font {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    line-height: 1.4;
    min-height: 400px;
}

.border-success {
    border-color: #28a745 !important;
}

.border-danger {
    border-color: #dc3545 !important;
}

.border-default {
    border-color: #ced4da !important;
}