/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

/* ============================================
   PRINT STYLES - iOS COMPATIBLE (MUST BE FIRST)
   ============================================ */

@media print {
    /* Reset all transforms and animations for iOS */
    *, *::before, *::after {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
        -webkit-transform: none !important;
        transform: none !important;
        -webkit-animation: none !important;
        animation: none !important;
        -webkit-transition: none !important;
        transition: none !important;
        -webkit-box-shadow: none !important;
        box-shadow: none !important;
    }

    html {
        -webkit-text-size-adjust: 100% !important;
    }

    body {
        -webkit-print-color-adjust: exact !important;
        background: #fff !important;
        color: #000 !important;
        font-size: 12pt !important;
        line-height: 1.4 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Page settings */
    @page {
        size: A4;
        margin: 10mm;
    }

    /* Hide unnecessary elements */
    .no-print,
    .menu,
    .sidebar,
    .navbar,
    .footer,
    .btn,
    button,
    nav,
    .layout-menu,
    .layout-navbar,
    .content-footer,
    .modal,
    .modal-backdrop,
    .dropdown-menu,
    .toast,
    .alert:not(.alert-print) {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
    }

    /* Layout adjustments */
    .layout-wrapper,
    .layout-container,
    .layout-page,
    .content-wrapper {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }

    /* Card styles for print */
    .card {
        border: none !important;
        box-shadow: none !important;
        -webkit-box-shadow: none !important;
        background: #fff !important;
        page-break-inside: avoid !important;
    }

    .card-body {
        padding: 10px !important;
    }

    /* Table styles for print */
    table {
        width: 100% !important;
        border-collapse: collapse !important;
        -webkit-border-horizontal-spacing: 0 !important;
        -webkit-border-vertical-spacing: 0 !important;
    }

    th, td {
        padding: 8px !important;
        border: 1px solid #ddd !important;
        text-align: left !important;
        font-size: 11pt !important;
        word-wrap: break-word !important;
    }

    thead {
        display: table-header-group !important;
    }

    tr {
        page-break-inside: avoid !important;
    }

    /* Flexbox fixes for iOS print */
    .d-flex,
    .d-inline-flex {
        display: block !important;
    }

    .flex-row,
    .flex-column,
    .flex-xl-row,
    .flex-md-column {
        display: block !important;
    }

    /* Row/Column print layout */
    .row {
        display: block !important;
    }

    .col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
    .col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
    .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6,
    .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
    .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
    .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
    .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6,
    .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12,
    .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6,
    .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12 {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
    }

    /* Image styles */
    img {
        max-width: 100% !important;
        height: auto !important;
        page-break-inside: avoid !important;
    }

    /* Typography */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid !important;
    }

    p {
        orphans: 3 !important;
        widows: 3 !important;
    }

    /* Links */
    a, a:visited {
        text-decoration: none !important;
        color: #000 !important;
    }

    a[href]::after {
        content: none !important;
    }

    /* Overflow handling */
    .table-responsive,
    .overflow-auto,
    .overflow-scroll {
        overflow: visible !important;
        -webkit-overflow-scrolling: auto !important;
    }

    /* DataTables print fixes */
    .dataTables_wrapper,
    .dt-buttons,
    .dataTables_length,
    .dataTables_filter,
    .dataTables_info,
    .dataTables_paginate {
        display: none !important;
    }

    table.dataTable {
        width: 100% !important;
        margin: 0 !important;
    }
}

/* iOS Safari Specific Print Fixes */
@supports (-webkit-touch-callout: none) {
    @media print {
        * {
            -webkit-print-color-adjust: exact !important;
        }

        body {
            -webkit-text-size-adjust: 100% !important;
        }

        .invoice-preview-card,
        .card {
            -webkit-transform: translateZ(0) !important;
            transform: translateZ(0) !important;
        }
    }
}

/* ============================================
   REGULAR SCREEN STYLES
   ============================================ */

[dir="rtl"] body {
}

.light-style .menu .app-brand.demo {
    height: 64px;
}

.dark-style .menu .app-brand.demo {
    height: 64px;
    margin-top: 10px;
}

.semi-dark-style .menu .app-brand.demo {
    height: 64px;
}

.app-brand-logo.demo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.app-brand-logo.demo {
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    display: flex;
    justify-content: center;
    width: 110px;
    height: 60px;
    overflow: hidden;
}

.app-brand-logo.demo img {
    width: 100%;
    height: auto;
}

.app-brand-text {
    margin-left: -0.375rem !important;
}

.app-brand-text.demo {
    font-size: 1.15rem;
}

/* ! For .layout-navbar-fixed added fix padding top to .layout-page */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
    padding-top: 64px !important;
}

.layout-navbar-fixed
    .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu)
    .layout-page {
    padding-top: 78px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
    z-index: auto;
}

/*
  * Content
  ******************************************************************************/

.demo-blocks > * {
    display: block !important;
}

.demo-inline-spacing > * {
    margin: 1rem 0.375rem 0 0 !important;
}

.demo-vertical-spacing > * {
    margin-top: 1rem !important;
    margin-bottom: 0 !important;
}

.demo-vertical-spacing.demo-only-element > :first-child {
    margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
    margin-top: 1.875rem !important;
    margin-bottom: 0 !important;
}

.demo-vertical-spacing-lg.demo-only-element > :first-child {
    margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
    margin-top: 5rem !important;
    margin-bottom: 0 !important;
}

.demo-vertical-spacing-xl.demo-only-element > :first-child {
    margin-top: 0 !important;
}

.rtl-only {
    display: none !important;
    text-align: left !important;
    direction: ltr !important;
}

[dir="rtl"] .rtl-only {
    display: block !important;
}

/* Dropdown buttons going out of small screens */
@media (max-width: 576px) {
    #dropdown-variation-demo .btn-group .text-truncate {
        width: 254px;
        position: relative;
    }

    #dropdown-variation-demo .btn-group .text-truncate::after {
        position: absolute;
        top: 45%;
        right: 0.65rem;
    }
}

/*
  * Layout demo
  ******************************************************************************/

.layout-demo-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    margin-top: 1rem;
}

.layout-demo-placeholder img {
    width: 900px;
}

.layout-demo-info {
    text-align: center;
    margin-top: 1rem;
}

/*  my css  */
.card-body .row .col-md-6 {
    margin-bottom: 20px;
}

.FormSave {
    text-align: center;
}

.FormSave .btn {
    width: 15%;
}

.add-header {
    margin-bottom: 20px;
}

/* My custom css  */
.btn-success {
    color: #fff !important;
}

.btn-warning {
    color: #fff !important;
}

/* Datetimepicker icon */
.form-group {
    position: relative;
}

.form-control.datetimepicker {
    padding-right: 30px;
    padding-left: 14px;
}

[dir="rtl"] .form-control.datetimepicker {
    padding-left: 30px;
    padding-right: 14px;
}

.calendar-icon {
    position: absolute;
    right: 10px;
    top: 70%;
    transform: translateY(-50%);
    pointer-events: none;
}

[dir="rtl"] .calendar-icon {
    right: auto;
    left: 10px !important;
}

[dir="rtl"] .datetimepicker {
    direction: rtl;
}

.tox-promotion {
    display: none !important;
}

.dropdown-menu-icons {
    min-width: auto !important;
    width: auto !important;
}

.dropdown-menu-icons .dropdown-item {
    padding: 0.25rem 0.5rem;
}

.dropdown-menu-icons .dropdown-item a {
    display: inline-block;
    padding: 0.25rem;
}

.order-details {
    text-align: justify;
}

.table:not(.table-borderless) {
    margin-bottom: 0;
}

table.dataTable {
    width: 100%;
    margin: 0 auto;
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: auto;
    border-spacing: 0;
}

table.dataTable {
    border-collapse: 0 !important;
    margin-bottom: 0 !important;
}

.filter-title {
    cursor: pointer;
}

.table-img {
    max-width: 80px;
    max-height: 80px;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
}

[dir="rtl"] div.dt-button-collection {
    right: 27px !important;
}

@media screen and (max-width: 640px) {
    div.dt-buttons {
        text-align: left;
    }

    [dir="rtl"] div.dt-buttons {
        text-align: right;
    }
}

.import-sheet {
    margin-left: 10px;
}

[dir="rtl"] .import-sheet {
    margin-right: 10px !important;
    margin-left: auto !important;
}

.categories-td {
}

.dt-scroll-body {
    scrollbar-color: #7367f0 #2d3147 !important;
}

.modal {
    --bs-modal-zindex: 1000;
}

.modal-backdrop {
    --bs-backdrop-zindex: 100;
}

.address_span {
    display: inline-block;
    max-width: 280px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Invoice Print Specific Styles */
.print-invoice-wrapper {
    width: 100%;
    max-width: 100%;
}

.invoice-preview-card {
    background: #fff;
}

.invoice-header-table,
.bill-details-table {
    border-collapse: collapse;
}

.invoice-header-table td,
.bill-details-table td {
    vertical-align: top;
}

/* Screen-only styles for invoice */
@media screen {
    .print-invoice-wrapper {
        max-width: 900px;
        margin: 0 auto;
        padding: 20px;
    }

    .invoice-preview-card {
        border: 1px solid #ddd;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
}
