/* Home */
.loading-text{
    font-size: 42px;
    font-weight: 700;
    color: #1f4e8c;
    margin-bottom: 20px;
    animation: pulse 1.5s infinite;
}

.loading-text span{
    color: #28a745;
}

.loading-bar{
    width: 300px;
    height: 4px;
    background: #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    margin: 15px 0;
}

.loading-progress{
    width: 80px;
    height: 100%;
    background: #ff6b00;
    animation: loading 2s infinite;
}

.loading-msg{
    color: #666;
    font-size: 16px;
    text-align: center;
    max-width: 400px;
}

@keyframes loading{
    0%{
        margin-left: -80px;
    }
    100%{
        margin-left: 300px;
    }
}

@keyframes pulse{
    0%,100%{
        opacity: 1;
    }
    50%{
        opacity: .5;
    }
}

/* Login form*/
        * {
            box-sizing: border-box;
        }

        body.login-page {
            margin: 0;
            min-height: 100vh;
            background: #f4f5fa;
            font-family: 'Inter', sans-serif;
            overflow-x: hidden;
        }

        .aurora-login {
            display: flex;
            width: 100%;
            min-height: 100vh;
        }

        /* LEFT SECTION */

        .login-left {
            width: 56%;
            min-height: 100vh;
            position: relative;
            overflow: hidden;
            padding: 45px 55px;
            color: #fff;
            background:
                radial-gradient(circle at 10% 80%, #482044 0%, transparent 40%),
                linear-gradient(135deg, #101a36, #17142d 60%, #301638);
        }

        .login-left::before {
            content: "";
            position: absolute;
            width: 450px;
            height: 450px;
            border: 1px solid rgba(220,174,91,.25);
            border-radius: 50%;
            top: -200px;
            right: -150px;
        }

        .login-left::after {
            content: "";
            position: absolute;
            width: 350px;
            height: 350px;
            background: rgba(198,145,59,.08);
            filter: blur(70px);
            bottom: 0;
            left: 0;
            border-radius: 50%;
        }

        .left-content {
            position: relative;
            z-index: 2;
            max-width: 760px;
            margin: auto;
        }

        /* BRAND */

        .brand-area {
            display: flex;
            align-items: center;
            gap: 20px;
            margin-bottom: 55px;
        }

        .brand-icon {
            width: 65px;
            height: 65px;
            border: 1px solid #d8ad62;
            border-radius: 16px;
            display: flex;
            justify-content: center;
            align-items: center;
            color: #e4bd72;
            font-size: 34px;
        }

        .brand-name {
            font-family: 'Playfair Display', serif;
            font-size: 32px;
            letter-spacing: 3px;
            line-height: 1.1;
        }

        .brand-name span {
            color: #e5bb69;
        }

        .brand-subtitle {
            font-size: 11px;
            letter-spacing: 5px;
            color: #d7c6a5;
            margin-top: 7px;
        }

        .software-name {
            border-left: 1px solid rgba(255,255,255,.3);
            padding-left: 20px;
        }

        .software-name strong {
            font-size: 19px;
            display: block;
        }

        .software-name small {
            color: #b8bfd2;
            font-size: 11px;
        }

        /* LEFT TEXT */

        .hero-heading {
            font-size: clamp(30px, 3.3vw, 48px);
            font-weight: 800;
            line-height: 1.2;
            margin-bottom: 18px;
            letter-spacing: -1.5px;
        }

        .hero-heading span {
            color: #e5bd70;
        }

        .hero-description {
            color: #c1c8d9;
            font-size: 14px;
            line-height: 1.8;
            max-width: 600px;
            margin-bottom: 28px;
        }

        .gold-line {
            width: 65px;
            height: 3px;
            background: #d9ae63;
            margin-bottom: 28px;
        }

        /* JEWELLERY SHOWCASE */

        .showcase {
            display: grid;
            grid-template-columns: 1.15fr .85fr;
            gap: 22px;
            align-items: center;
            margin-top: 15px;
        }

        .jewellery-image {
            height: 270px;
            border-radius: 18px;
            overflow: hidden;
            border: 1px solid rgba(224,181,100,.35);
            background: #24152b;
            position: relative;
        }

        .jewellery-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .jewellery-image::after {
            content: "AURORA COLLECTION";
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 25px 15px 14px;
            font-size: 10px;
            letter-spacing: 3px;
            color: #fff;
            background: linear-gradient(transparent, rgba(0,0,0,.8));
        }

        .showcase-info h4 {
            font-size: 19px;
            font-weight: 700;
            margin-bottom: 20px;
        }

        .feature-item {
            display: flex;
            align-items: center;
            gap: 13px;
            margin-bottom: 17px;
            color: #e5e8f0;
            font-size: 13px;
        }

        .feature-icon {
            width: 39px;
            height: 39px;
            flex-shrink: 0;
            border: 1px solid rgba(218,174,98,.5);
            border-radius: 11px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #e5bd70;
            font-size: 16px;
            background: rgba(255,255,255,.05);
        }

        /* LEFT FOOTER */

        .left-footer {
            display: flex;
            gap: 25px;
            flex-wrap: wrap;
            margin-top: 40px;
            padding-top: 22px;
            border-top: 1px solid rgba(255,255,255,.15);
        }

        .footer-feature {
            color: #c5cada;
            font-size: 11px;
        }

        .footer-feature i {
            color: #dfb76e;
            margin-right: 6px;
        }

        /* RIGHT SECTION */

        .login-right {
            width: 44%;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 45px;
            background:
                radial-gradient(circle at 100% 0%, #eee8f5, transparent 45%),
                #f8f8fc;
            position: relative;
        }

        .login-right::before {
            content: "";
            position: absolute;
            width: 250px;
            height: 250px;
            border-radius: 50%;
            border: 1px solid rgba(198,151,77,.2);
            top: -130px;
            right: -100px;
        }

        .login-card {
            width: 100%;
            max-width: 440px;
            padding: 40px 36px;
            background: #fff;
            border: 1px solid #eceaf2;
            border-radius: 22px;
            box-shadow: 0 20px 60px rgba(26,28,60,.10);
            position: relative;
            z-index: 2;
        }

        .login-card::before {
            content: "";
            position: absolute;
            top: 0;
            left: 35%;
            width: 30%;
            height: 4px;
            background: linear-gradient(90deg,#bd8b42,#e7c47e);
            border-radius: 0 0 10px 10px;
        }

        .login-brand {
            text-align: center;
            margin-bottom: 28px;
        }

        .login-brand-icon {
            font-size: 40px;
            color: #c59a50;
            margin-bottom: 10px;
        }

        .login-brand h2 {
            font-family: 'Playfair Display', serif;
            color: #301a3d;
            font-size: 32px;
            letter-spacing: 2px;
            margin: 0;
        }

        .login-brand p {
            font-size: 10px;
            color: #9b7843;
            letter-spacing: 5px;
            margin: 5px 0 0;
        }

        .login-heading {
            text-align: center;
            margin-bottom: 28px;
        }

        .login-heading h3 {
            font-size: 23px;
            font-weight: 800;
            color: #17213b;
            margin-bottom: 8px;
        }

        .login-heading p {
            font-size: 13px;
            color: #85899a;
        }

        /* INPUTS */

        .form-group {
            margin-bottom: 19px;
        }

        .input-wrap {
            position: relative;
        }

        .input-wrap > i {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: #858a9a;
            font-size: 16px;
        }

        .input-wrap .form-control {
            height: 52px;
            padding: 10px 45px;
            border: 1px solid #dfe1e9;
            border-radius: 10px;
            font-size: 13px;
            box-shadow: none;
            color: #30364b;
            background: #fbfbfd;
        }

        .input-wrap .form-control:focus {
            border-color: #6c43a1;
            background: #fff;
            box-shadow: 0 0 0 3px rgba(108,67,161,.08);
        }

        .password-toggle {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            border: none;
            background: transparent;
            color: #858a9a;
            cursor: pointer;
            padding: 5px;
        }

        /* REMEMBER */

        .login-options {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin: 8px 0 25px;
            font-size: 12px;
        }

        .remember-label {
            color: #555a6b;
            display: flex;
            align-items: center;
            gap: 7px;
            cursor: pointer;
        }

        .remember-label input {
            accent-color: #653b91;
            width: 15px;
            height: 15px;
        }

        .forgot-link {
            color: #713c91;
            font-weight: 600;
            text-decoration: none;
        }

        .forgot-link:hover {
            color: #382044;
            text-decoration: none;
        }

        /* BUTTON */

        .btn-login {
            width: 100%;
            height: 52px;
            border: 0;
            border-radius: 10px;
            background: linear-gradient(110deg,#51226e,#32133f);
            color: #fff;
            font-size: 15px;
            font-weight: 700;
            letter-spacing: .5px;
            transition: .3s;
            box-shadow: 0 8px 20px rgba(75,32,103,.2);
        }

        .btn-login:hover {
            background: linear-gradient(110deg,#67318b,#451957);
            transform: translateY(-2px);
            color: #fff;
        }

        .btn-login i {
            margin-right: 9px;
        }

        .login-security {
            text-align: center;
            margin-top: 23px;
            font-size: 11px;
            color: #9295a2;
        }

        .login-security i {
            color: #b18a4e;
            margin-right: 5px;
        }

        .copyright {
            position: absolute;
            bottom: 25px;
            color: #9293a1;
            font-size: 11px;
            text-align: center;
            left: 15px;
            right: 15px;
        }

        /* RESPONSIVE */

        @media (max-width: 1100px) {
            .login-left {
                padding: 35px 30px;
            }

            .login-right {
                padding: 30px 22px;
            }

            .brand-area {
                flex-wrap: wrap;
                margin-bottom: 35px;
            }

            .showcase {
                grid-template-columns: 1fr;
            }

            .jewellery-image {
                height: 220px;
            }
        }

        @media (max-width: 767px) {
            body.login-page {
                display: block;
            }

            .aurora-login {
                flex-direction: column;
            }

            .login-left {
                width: 100%;
                min-height: auto;
                padding: 35px 22px;
            }

            .login-right {
                width: 100%;
                min-height: auto;
                padding: 40px 20px 85px;
            }

            .brand-area {
                gap: 12px;
                margin-bottom: 35px;
            }

            .brand-icon {
                width: 52px;
                height: 52px;
                font-size: 26px;
            }

            .brand-name {
                font-size: 25px;
            }

            .software-name {
                width: 100%;
                border-left: 0;
                padding-left: 0;
                margin-top: 10px;
            }

            .hero-heading {
                font-size: 30px;
            }

            .showcase {
                grid-template-columns: 1fr;
            }

            .jewellery-image {
                height: 240px;
            }

            .showcase-info {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 8px;
            }

            .showcase-info h4 {
                grid-column: 1 / -1;
            }

            .feature-item {
                font-size: 11px;
                gap: 7px;
            }

            .feature-icon {
                width: 34px;
                height: 34px;
            }

            .left-footer {
                gap: 13px;
                margin-top: 25px;
            }

            .login-card {
                padding: 32px 23px;
            }

            .copyright {
                bottom: 20px;
            }
        }

        @media (max-width: 380px) {
            .login-card {
                padding: 28px 17px;
            }

            .login-options {
                font-size: 11px;
            }

            .brand-name {
                font-size: 22px;
            }
        }

/*  Category List */

/* =========================================
   CATEGORY LIST - LOADING ANIMATION
========================================= */

.loading-text {
    font-size: 42px;
    font-weight: 700;
    color: #1f4e8c;
    margin-bottom: 20px;
    animation: pulse 1.5s infinite;
}

.loading-text span {
    color: #28a745;
}

.loading-bar {
    width: 300px;
    max-width: 100%;
    height: 4px;
    background: #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    margin: 15px 0;
}

.loading-progress {
    width: 80px;
    height: 100%;
    background: #ff6b00;
    animation: loading 2s infinite;
}

.loading-msg {
    color: #666;
    font-size: 16px;
    text-align: center;
    max-width: 400px;
}

@keyframes loading {
    0% {
        transform: translateX(-80px);
    }
    100% {
        transform: translateX(300px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}


/* =========================================
   CATEGORY CARD
========================================= */

.category-card {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #dee2e6;
}

.category-card .card-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    min-height: 58px;
    padding: 12px 16px;
}

.category-card .card-title {
    float: none;
    font-size: 15px;
    font-weight: 700;
    margin: 0;
}

.category-card .card-tools {
    position: static;
    float: none;
    margin: 0 0 0 auto;
}

.add-category-btn {
    min-width: 150px;
    padding: 7px 14px;
    font-weight: 600;
    white-space: nowrap;
}


/* =========================================
   CATEGORY CARD BODY
========================================= */

.category-card .card-body {
    padding: 18px;
}


/* =========================================
   DATATABLE MAIN WRAPPER
========================================= */

#example1_wrapper {
    width: 100%;
}


/* =========================================
   SHOW ENTRIES + SEARCH
========================================= */

#example1_wrapper > .row:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

#example1_wrapper > .row:first-child > div {
    min-width: 0;
}

/* Show Entries */

#example1_wrapper .dataTables_length {
    width: 50%;
    text-align: left;
}

#example1_wrapper .dataTables_length label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

#example1_wrapper .dataTables_length select {
    width: 80px;
    height: 35px;
    margin: 0;
}

/* Search */

#example1_wrapper .dataTables_filter {
    width: 50%;
    text-align: right;
}

#example1_wrapper .dataTables_filter label {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

#example1_wrapper .dataTables_filter input {
    width: 195px;
    height: 35px;
    margin: 0;
}


/* =========================================
   CATEGORY TABLE
========================================= */

.category-table-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

#example1 {
    width: 100% !important;
    min-width: 650px;
    margin-bottom: 0 !important;
}

#example1 th {
    font-size: 14px;
    font-weight: 700;
    padding: 12px;
    vertical-align: middle;
    white-space: nowrap;
}

#example1 td {
    font-size: 14px;
    padding: 11px 12px;
    vertical-align: middle;
    white-space: nowrap;
}

#example1 tbody tr:hover {
    background-color: #f8f9fa;
}


/* =========================================
   CATEGORY IMAGE
========================================= */

.category-image {
    width: 55px;
    height: 45px;
    object-fit: cover;
    border-radius: 5px;
}


/* =========================================
   ACTION BUTTONS
========================================= */

.action-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.action-buttons .btn {
    min-width: 65px;
    white-space: nowrap;
}


/* =========================================
   DATATABLE INFORMATION
========================================= */

#example1_wrapper .dataTables_info {
    padding-top: 10px;
    font-size: 13px;
}


/* =========================================
   PAGINATION
========================================= */

#example1_wrapper .dataTables_paginate {
    display: flex;
    justify-content: flex-end;
}

#example1_wrapper .pagination {
    margin-bottom: 0;
}

#example1_wrapper .page-link {
    padding: 7px 12px;
}


/* =========================================
   TABLET RESPONSIVE
========================================= */

@media (max-width: 991.98px) {

    .category-card .card-body {
        padding: 14px;
    }

    #example1 th,
    #example1 td {
        padding: 10px;
    }

}


/* =========================================
   MOBILE RESPONSIVE
========================================= */

@media (max-width: 767.98px) {

    .content-header h1 {
        font-size: 21px;
    }

    .content-header .breadcrumb {
        float: none !important;
        padding: 0;
        margin-top: 8px;
    }

    /* Category Header */

    .category-card .card-header {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 12px;
        padding: 14px;
    }

    .category-card .card-title {
        width: 100%;
        font-size: 15px;
    }

    .category-card .card-tools {
        width: 100%;
        margin: 0;
    }

    .add-category-btn {
        display: block;
        width: 100%;
        min-width: 100%;
        padding: 9px;
    }

    /* Card Body */

    .category-card .card-body {
        padding: 12px;
    }

    /* DataTable Controls */

    #example1_wrapper > .row:first-child {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-bottom: 15px;
    }

    #example1_wrapper > .row:first-child > div {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    /* Show Entries */

    #example1_wrapper .dataTables_length {
        width: 100%;
        text-align: left;
    }

    #example1_wrapper .dataTables_length label {
        justify-content: flex-start;
    }

    /* Search */

    #example1_wrapper .dataTables_filter {
        width: 100%;
        text-align: left;
    }

    #example1_wrapper .dataTables_filter label {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 6px;
        width: 100%;
        white-space: normal;
    }

    #example1_wrapper .dataTables_filter input {
        width: 100% !important;
        max-width: 100%;
        height: 38px;
        margin: 0 !important;
    }

    /* Table Horizontal Scroll */

    .category-table-wrapper {
        width: 100%;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
    }

    #example1 {
        width: 650px !important;
        min-width: 650px !important;
    }

    #example1 th,
    #example1 td {
        font-size: 13px;
        padding: 10px;
        white-space: nowrap;
    }

    /* Action Buttons */

    .action-buttons {
        display: flex;
        flex-wrap: nowrap;
        gap: 5px;
    }

    .action-buttons .btn {
        min-width: 65px;
        font-size: 12px;
        padding: 5px 8px;
    }

    /* Bottom Information */

    #example1_wrapper > .row:last-child {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    #example1_wrapper .dataTables_info {
        width: 100%;
        text-align: center;
    }

    #example1_wrapper .dataTables_paginate {
        width: 100%;
        justify-content: center;
    }

    #example1_wrapper .pagination {
        justify-content: center;
        flex-wrap: wrap;
    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

    .content-header h1 {
        font-size: 19px;
    }

    .category-card .card-title {
        font-size: 14px;
    }

    .category-image {
        width: 45px;
        height: 40px;
    }

    .category-card .card-body {
        padding: 10px;
    }

}


/* =========================================
   VERY SMALL MOBILE
========================================= */

@media (max-width: 360px) {

    .content-header h1 {
        font-size: 18px;
    }

    .category-card .card-title {
        font-size: 13px;
    }

    #example1_wrapper .dataTables_length label {
        font-size: 12px;
    }

}

/* Add Categort Form */
/* =====================================
   PROFESSIONAL CATEGORY FORM
===================================== */

.professional-form-card {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
}

.professional-form-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 22px;
    background: #fff;
    border-bottom: 1px solid #edf0f4;
}

.professional-form-card .card-title {
    float: none;
    font-size: 17px;
    font-weight: 700;
    color: #263445;
    margin: 0;
}

.form-subtitle {
    color: #8993a0;
    font-size: 13px;
    margin: 6px 0 0;
}

.professional-form-card .card-body {
    padding: 25px 22px;
}

/* Labels */

.professional-form-card label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #344054;
    margin-bottom: 8px;
}

/* Inputs */

.professional-form-card .form-control {
    height: 44px;
    border: 1px solid #dce1e8;
    border-radius: 5px;
    padding: 10px 13px;
    font-size: 14px;
    color: #344054;
    box-shadow: none;
    transition: all .2s ease;
}

.professional-form-card .form-control:focus {
    border-color: #3c8dbc;
    box-shadow: 0 0 0 3px rgba(60,141,188,.10);
}

.professional-form-card .form-group {
    margin-bottom: 23px;
}

.professional-form-card .form-text {
    font-size: 12px;
    color: #929ba8;
}

.professional-form-card .input-group-text {
    background: #f8fafc;
    border-color: #dce1e8;
    color: #718096;
}

/* Image Upload */

.category-upload-box {
    position: relative;
    min-height: 190px;
    border: 2px dashed #cbd5e1;
    border-radius: 7px;
    background: #f9fbfd;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    cursor: pointer;
    transition: all .2s ease;
}

.category-upload-box:hover {
    border-color: #3c8dbc;
    background: #f2f8fc;
}

.category-upload-box input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 3;
}

.upload-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    background: #eaf3fa;
    color: #3c8dbc;
    border-radius: 50%;
    font-size: 22px;
}

.category-upload-box h6 {
    font-weight: 700;
    color: #344054;
    font-size: 14px;
    margin-bottom: 5px;
}

.category-upload-box p {
    color: #667085;
    font-size: 13px;
    margin-bottom: 5px;
}

.category-upload-box span {
    font-size: 11px;
    color: #98a2b3;
}

#image_preview {
    display: none;
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
    padding: 10px;
}

/* Form Footer */

.professional-form-card .form-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding: 15px 22px;
    background: #fafbfc;
    border-top: 1px solid #edf0f4;
}

.professional-form-card .form-footer .btn {
    font-size: 13px;
    font-weight: 600;
    padding: 9px 17px;
    border-radius: 5px;
}

/* Information Card */

.category-info-card {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.category-info-card .card-body {
    padding: 22px;
}

.info-icon {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    background: #fff5e9;
    color: #f39c12;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    margin-bottom: 15px;
}

.category-info-card h5 {
    font-size: 16px;
    font-weight: 700;
    color: #344054;
    margin-bottom: 8px;
}

.category-info-card p {
    font-size: 13px;
    color: #8792a2;
    line-height: 1.6;
}

.category-info-card ul {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
}

.category-info-card ul li {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    font-size: 13px;
    color: #667085;
    margin-bottom: 13px;
}

.category-info-card ul li i {
    color: #28a745;
    margin-top: 3px;
}

/* Mobile Responsive */

@media (max-width: 767.98px) {

    .professional-form-card .card-header {
        padding: 15px;
        gap: 10px;
    }

    .professional-form-card .card-title {
        font-size: 15px;
    }

    .form-subtitle {
        font-size: 12px;
    }

    .professional-form-card .card-body {
        padding: 18px 15px;
    }

    .category-upload-box {
        min-height: 170px;
    }

    .professional-form-card .form-footer {
        padding: 13px 15px;
    }

    .category-info-card {
        margin-top: 10px;
    }
}

@media (max-width: 380px) {

    .professional-form-card .card-header {
        align-items: flex-start;
    }

    .professional-form-card .card-header > a {
        white-space: nowrap;
    }

    .professional-form-card .form-footer {
        justify-content: stretch;
    }

    .professional-form-card .form-footer .btn {
        flex: 1;
        padding: 9px 8px;
    }
}
/* Product form */




/* =====================================
   PRODUCT FORM
===================================== */

.product-upload-box {
    position: relative;
    height: 175px;
    border: 2px dashed #cbd5e1;
    border-radius: 7px;
    background: #f9fbfd;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    cursor: pointer;
    transition: all .2s ease;
}

.product-upload-box:hover {
    border-color: #3c8dbc;
    background: #f2f8fc;
}

.product-upload-box input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 3;
}

.product-upload-content {
    padding: 10px;
}

.product-upload-content i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: #eaf3fa;
    color: #3c8dbc;
    font-size: 19px;
}

.product-upload-content h6 {
    font-size: 13px;
    font-weight: 700;
    color: #344054;
    margin-bottom: 5px;
}

.product-upload-content span {
    font-size: 11px;
    color: #98a2b3;
}

.product-image-preview {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
    padding: 8px;
    z-index: 2;
}

@media (max-width: 767.98px) {

    .product-upload-box {
        height: 160px;
    }

}
/* =====================================
   PRODUCT IMAGE GALLERY
===================================== */

.product-image-card {
    position: relative;
    height: 100%;
    background: #fff;
    border: 1px solid #e2e7ee;
    border-radius: 8px;
    overflow: hidden;
    transition: all .2s ease;
}

.product-image-card:hover {
    border-color: #3c8dbc;
    box-shadow: 0 3px 12px rgba(0,0,0,.07);
}

/* Header */

.product-image-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 11px;
    background: #f8fafc;
    border-bottom: 1px solid #edf0f4;
    font-size: 12px;
    font-weight: 600;
    color: #344054;
}

.image-number {
    color: #98a2b3;
    font-size: 11px;
}

/* Upload Area */

.product-image-upload {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0;
    background: #fafbfd;
    overflow: hidden;
    cursor: pointer;
}

.product-image-upload input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Placeholder */

.product-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #667085;
    text-align: center;
}

.product-upload-placeholder i {
    font-size: 27px;
    color: #3c8dbc;
    margin-bottom: 5px;
}

.product-upload-placeholder strong {
    font-size: 12px;
    color: #344054;
}

.product-upload-placeholder small {
    font-size: 10px;
    color: #98a2b3;
}

/* Image Preview */

.product-image-preview {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    background: #fff;
}

/* Change Image */

.image-change-text {
    display: none;
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 5px 9px;
    background: rgba(0,0,0,.65);
    color: #fff;
    border-radius: 4px;
    font-size: 10px;
    z-index: 2;
}

.product-image-card.has-image .image-change-text {
    display: block;
}

/* Remove Button */

.remove-product-image {
    display: none;
    position: absolute;
    top: 48px;
    right: 8px;
    width: 25px;
    height: 25px;
    border: 0;
    border-radius: 50%;
    background: #dc3545;
    color: #fff;
    font-size: 11px;
    z-index: 4;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.product-image-card.has-image .remove-product-image {
    display: flex;
}

/* Footer */

.product-image-footer {
    padding: 9px 5px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #667085;
    background: #fff;
    border-top: 1px solid #edf0f4;
}

/* Mobile */

@media (max-width: 767.98px) {

    .product-image-header {
        padding: 8px;
        font-size: 11px;
    }

    .product-image-footer {
        font-size: 10px;
        padding: 8px 3px;
    }

}


/* =====================================
   PRODUCT DESCRIPTION - SUMMERNOTE
===================================== */

.product-description-group {
    margin-bottom: 25px;
}

.product-description-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #344054;
    margin-bottom: 9px;
}

.product-description-group .note-editor.note-frame {
    border: 1px solid #dce1e8;
    border-radius: 6px;
    box-shadow: none;
    overflow: hidden;
}

.product-description-group .note-editor.note-frame:focus-within {
    border-color: #3c8dbc;
    box-shadow: 0 0 0 3px rgba(60,141,188,.10);
}

/* Toolbar */

.product-description-group .note-toolbar {
    background: #f8fafc;
    border-bottom: 1px solid #e5e9ef;
    padding: 8px 10px;
}

.product-description-group .note-btn {
    background: #fff;
    border: 1px solid #dce1e8;
    color: #475467;
    border-radius: 4px;
    box-shadow: none;
}

.product-description-group .note-btn:hover,
.product-description-group .note-btn:focus {
    background: #eaf3fa;
    border-color: #b8d5e8;
    color: #2879a8;
}

.product-description-group .note-btn-group {
    margin-right: 5px;
}

/* Editable Area */

.product-description-group .note-editing-area {
    background: #fff;
}

.product-description-group .note-editable {
    min-height: 250px;
    padding: 15px 17px;
    font-size: 14px;
    line-height: 1.7;
    color: #344054;
    background: #fff;
    outline: none;
}

.product-description-group .note-editable:focus {
    outline: none;
}

.product-description-group .note-editable p {
    margin-bottom: 10px;
}

/* Status Bar */

.product-description-group .note-statusbar {
    background: #fafbfc;
    border-top: 1px solid #edf0f4;
}

.product-description-group .note-resizebar {
    height: 8px;
}

/* Help Text */

.product-description-group .form-text {
    font-size: 12px;
    color: #929ba8;
    margin-top: 8px;
}

/* Mobile */

@media (max-width: 767.98px) {

    .product-description-group .note-editable {
        min-height: 200px;
        padding: 12px;
    }

    .product-description-group .note-toolbar {
        padding: 6px;
    }

}

/* =====================================
   PRODUCT LIST DESIGN
===================================== */

.category-card {
    border-radius: 4px;
    border: 1px solid #d5d5d5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.category-card .card-header {
    background: #e5f0f3;
    border-bottom: 1px solid #c9d5d9;
    padding: 10px 15px;
}

.category-card .card-title {
    font-size: 18px;
    font-weight: 600;
    color: #263746;
    margin: 0;
}

/* Toolbar */

.product-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 12px;
}

.add-product-btn {
    background: #159f91;
    border-color: #159f91;
    color: #fff;
    padding: 8px 14px;
    font-size: 14px;
    border-radius: 2px;
}

.add-product-btn:hover {
    background: #118477;
    border-color: #118477;
    color: #fff;
}

/* Table Wrapper */

.category-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

/* Product Table */

.product-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-bottom: 0 !important;
    font-size: 14px;
}

.product-table thead th {
    background: #d9edf5;
    color: #304b66;
    font-weight: 600;
    vertical-align: middle;
    padding: 11px 10px;
    border: 1px solid #d5d5d5 !important;
    white-space: normal;
}

.product-table tbody td {
    padding: 9px 10px;
    vertical-align: top;
    border: 1px solid #ddd !important;
    color: #172b40;
}

.product-table tbody tr:hover {
    background: #f0f8fb;
}

/* Product Image */

.product-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid #e2e2e2;
    display: block;
}

/* Description */

.product-description {
    max-width: 350px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Status */

.product-status {
    display: inline-block;
    min-width: 55px;
    padding: 7px 10px;
    color: #fff;
    font-size: 12px;
    text-align: center;
    border-radius: 2px;
}

.product-status.active {
    background: #28a745;
    border: 1px solid #23923d;
}

.product-status.inactive {
    background: #ffad32;
    border: 1px solid #ed9a20;
}

/* Action Buttons */

.product-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.product-actions .btn {
    width: 32px;
    height: 30px;
    padding: 5px;
    border-radius: 2px;
    font-size: 12px;
}

.product-actions .btn-primary {
    background: #398bc5;
    border-color: #398bc5;
}

.product-actions .btn-danger {
    background: #e71949;
    border-color: #e71949;
}

/* DataTables Search */

.dataTables_wrapper .dataTables_filter {
    margin-bottom: 12px;
}

.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #aaa;
    border-radius: 3px;
    padding: 5px 8px;
    height: 32px;
    outline: none;
}

.dataTables_wrapper .dataTables_length select {
    border: 1px solid #ccc;
    padding: 4px;
    border-radius: 3px;
}

/* Responsive */

@media (max-width: 767px) {

    .product-table {
        min-width: 1250px;
    }

    .product-toolbar {
        margin-bottom: 15px;
    }

    .product-thumb {
        width: 42px;
        height: 42px;
    }

}

/* =================================
   PRODUCT PAGE HEADER
================================= */

.product-page-header {
    background: #fff;
    padding: 12px 15px;
    border-bottom: 1px solid #c8cdd2;
    margin-bottom: 15px;
}

.page-title-wrapper {
    display: flex;
    align-items: center;
    gap: 18px;
}

.page-title-icon {
    width: 48px;
    height: 42px;
    background: #159f91;
    color: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
}

.page-title-content h1 {
    font-size: 25px;
    font-weight: 600;
    margin: 0;
    color: #172b40;
}

.page-title-content p {
    font-size: 13px;
    font-weight: 500;
    margin: 0;
    color: #333;
}

/* =================================
   DATATABLE SEARCH
================================= */

/* Hide Show Entries */

.dataTables_wrapper .dataTables_length {
    display: none !important;
}

/* Search Position */

.dataTables_wrapper .dataTables_filter {
    float: none !important;
    text-align: right !important;
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
    width: 100%;
}

.dataTables_wrapper .dataTables_filter label {
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    font-size: 14px;
    font-weight: 400;
    color: #304b66;
    margin: 0 !important;
}

.dataTables_wrapper .dataTables_filter input {
    width: 170px !important;
    height: 33px !important;
    border: 1px solid #aaa !important;
    border-radius: 3px !important;
    padding: 5px 9px !important;
    margin: 0 !important;
    outline: none;
    box-shadow: none !important;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #159f91 !important;
}

/* Table Top Spacing */

.dataTables_wrapper .row:first-child {
    margin-bottom: 10px;
}

.dataTables_wrapper .dataTables_info {
    padding-top: 12px;
}

.dataTables_wrapper .dataTables_paginate {
    padding-top: 10px;
}

/* Responsive */

@media (max-width: 576px) {

    .page-title-icon {
        width: 42px;
        height: 40px;
        font-size: 23px;
    }

    .page-title-content h1 {
        font-size: 21px;
    }

    .dataTables_wrapper .dataTables_filter {
        text-align: left !important;
    }

    .dataTables_wrapper .dataTables_filter label {
        justify-content: flex-start;
    }

}
/* DataTables Top Controls */
.dataTables_wrapper .row:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

/* Show Entries Left */
.dataTables_wrapper .dataTables_length {
    display: block !important;
    text-align: left;
}

/* Search Right */
.dataTables_wrapper .dataTables_filter {
    display: block !important;
    text-align: right !important;
    margin: 0 !important;
}

/* Search Input */
.dataTables_wrapper .dataTables_filter input {
    width: 170px !important;
    height: 34px;
    border: 1px solid #aaa;
    border-radius: 3px;
    padding: 5px 8px;
    margin-left: 5px;
}
/* =====================================
   INDIVIDUAL IMAGE PROCESSING
===================================== */

.image-processing {
    display: none;
    padding: 9px 10px;
    background: #f8fafc;
    border-top: 1px solid #edf0f4;
}

.product-image-card.processing .image-processing {
    display: block;
}

.product-image-card.has-image .image-processing {
    display: none;
}

.image-progress {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.image-progress-bar {
    width: 0%;
    height: 100%;
    background: #3c8dbc;
    border-radius: 10px;
    transition: width .2s ease;
}

.image-processing-text,
.image-progress-percent {
    font-size: 10px;
    color: #667085;
}

.image-progress-percent {
    font-weight: 700;
}

.product-image-card.processing {
    border-color: #3c8dbc;
}

.product-image-card.has-image .image-processing {
    display: none;
}
/* Individual Image Processing */

.image-processing {
    display: none;
    padding: 10px;
    background: #f8fafc;
    border-top: 1px solid #edf0f4;
}

.product-image-card.processing .image-processing,
.product-image-card.has-image .image-processing {
    display: block;
}

.image-progress {
    width: 100%;
    height: 7px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.image-progress-bar {
    width: 0%;
    height: 100%;
    background: #3c8dbc;
    border-radius: 10px;
    transition: width .15s linear;
}

.product-image-card.has-image .image-progress-bar {
    background: #28a745;
}

.image-processing-text,
.image-progress-percent {
    font-size: 10px;
    color: #667085;
}

.image-progress-percent {
    font-weight: 700;
}
/* Order Page Header */
.order-page-header {
    background: #fff;
    padding: 12px 20px;
    border-bottom: 1px solid #d5dce2;
}

.order-heading {
    display: flex;
    align-items: center;
    gap: 20px;
}

.order-heading-icon {
    width: 48px;
    height: 40px;
    background: #159b91;
    color: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
}

.order-heading h1 {
    font-size: 24px;
    font-weight: 600;
    color: #222;
    margin: 0;
}

.order-heading p {
    font-size: 13px;
    margin: 0;
    color: #333;
}


/* Main Order Card */
.order-card {
    border: 1px solid #d1d8dd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    margin-top: 8px;
}

.order-card .card-header {
    background: #e5f0f3;
    border-bottom: 1px solid #bfcbd0;
    padding: 9px 12px;
    min-height: 41px;
}

.order-card .card-title {
    font-size: 18px;
    font-weight: 600;
    color: #263746;
}

.order-card .card-tools .btn-tool {
    color: #526d89;
    font-size: 13px;
    padding: 3px 6px;
}

.order-card .card-body {
    padding: 15px;
}


/* Table */
.order-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.order-table {
    width: 100% !important;
    border-collapse: collapse;
    font-size: 14px;
    color: #263746;
    margin-bottom: 0 !important;
}

.order-table thead th {
    background: #dceef5;
    color: #344c65;
    font-weight: 700;
    padding: 11px 10px;
    vertical-align: middle;
    border: 1px solid #d0dce1;
    white-space: nowrap;
}

.order-table tbody td {
    padding: 8px 10px;
    vertical-align: middle;
    border: 1px solid #dedede;
    white-space: nowrap;
}

.order-table tbody tr:nth-child(even) {
    background-color: #f8f8f8;
}

.order-table tbody tr:hover {
    background-color: #edf5f8;
}


/* View Button */
.order-table .btn-info {
    background: #5bc9e3;
    border-color: #46b8d0;
    color: #fff;
    border-radius: 2px;
    padding: 5px 12px;
    font-size: 12px;
}


/* Action Buttons */
.order-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.order-actions .btn {
    border-radius: 2px;
    font-size: 12px;
    padding: 5px 10px;
}

.order-actions .btn-success {
    background: #369b28;
    border-color: #369b28;
}

.order-actions .btn-danger {
    background: #e81743;
    border-color: #e81743;
    min-width: 30px;
}


/* DataTable Search */
.dataTables_wrapper .dataTables_filter {
    text-align: right;
    margin-bottom: 5px;
}

.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #bcbcbc;
    border-radius: 3px;
    height: 33px;
    padding: 4px 8px;
    outline: none;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #159b91;
    box-shadow: 0 0 3px rgba(21,155,145,0.2);
}


/* Responsive */
@media (max-width: 767px) {

    .order-page-header {
        padding: 10px;
    }

    .order-heading h1 {
        font-size: 20px;
    }

    .order-heading-icon {
        width: 42px;
        height: 38px;
        font-size: 23px;
    }

    .order-card .card-body {
        padding: 10px;
    }

    .order-table {
        min-width: 950px;
    }

    .order-card .card-tools {
        display: none;
    }

}
/* Order Modal */
.order-modal-content {
    border: none;
    border-radius: 5px;
    overflow: hidden;
}

.order-modal-header {
    background: #167cf5;
    color: #fff;
    padding: 12px 16px;
}

.order-modal-header .modal-title {
    font-size: 18px;
    font-weight: 500;
}

.order-modal-close {
    color: #fff !important;
    opacity: .7;
    text-shadow: none;
    outline: none !important;
}

.order-modal-close:hover {
    opacity: 1;
}

.order-modal-content .modal-body {
    padding: 16px;
}


/* Customer and Summary Box */
.order-info-box {
    background: #f6f7f8;
    border-radius: 10px;
    padding: 15px;
    height: 100%;
    color: #34495e;
}

.info-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
}

.order-info-box p {
    font-size: 14px;
    margin: 9px 0;
    color: #34495e;
}

.order-info-box strong {
    color: #304b69;
}

.order-info-box hr {
    border-top: 1px solid #dce2e8;
    margin: 16px 0;
}


/* Order Items */
.order-items-box {
    border: 1px solid #e3e6e8;
    border-radius: 10px;
    padding: 15px;
    margin-top: 12px;
}

.order-items-table {
    font-size: 14px;
    margin-bottom: 10px;
}

.order-items-table thead th {
    background: #f5f7f9;
    color: #34495e;
    font-weight: 600;
    white-space: nowrap;
}

.order-items-table th,
.order-items-table td {
    padding: 9px 10px;
    vertical-align: middle;
}


/* Order Total */
.order-total-section {
    max-width: 320px;
    margin-left: auto;
    padding-top: 10px;
}

.order-total-row {
    display: flex;
    justify-content: space-between;
    padding: 7px 5px;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.grand-total {
    font-size: 17px;
    font-weight: 700;
    color: #167cf5;
    border-bottom: none;
}


/* Responsive */
@media(max-width: 767px) {

    .order-modal-content .modal-body {
        padding: 10px;
    }

    .order-info-box {
        margin-bottom: 12px;
        height: auto;
    }

    .order-modal-header .modal-title {
        font-size: 16px;
    }

    .order-items-box {
        padding: 10px;
    }

    .order-items-table {
        min-width: 550px;
    }

}

/* PRINT INVOICE - HIDDEN ON SCREEN */

.print-invoice {
    display: none;
    background: #fff;
    color: #000;
    font-family: Arial, sans-serif;
    font-size: 12px;
}

/* Header */

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #198754;
    padding-bottom: 8px;
}

.invoice-logo img {
    max-width: 150px;
    max-height: 55px;
    object-fit: contain;
}

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

.invoice-company h3 {
    color: #198754;
    font-size: 19px;
    font-weight: bold;
    margin: 0 0 3px;
}

.invoice-company p {
    font-size: 10px;
    line-height: 1.4;
    margin: 0;
}

/* Invoice Title */

.invoice-title {
    text-align: center;
    margin: 8px 0 12px;
}

.invoice-title h3 {
    font-size: 17px;
    font-weight: bold;
    margin: 0;
}

/* Customer Details */

.invoice-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 15px;
}

.invoice-billing,
.invoice-order {
    width: 50%;
}

.invoice-billing p,
.invoice-order p {
    font-size: 11px;
    line-height: 1.5;
    margin: 3px 0;
}

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

/* Product Table */

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.invoice-table th,
.invoice-table td {
    border: 1px solid #999;
    padding: 6px 5px;
}

.invoice-table th {
    font-weight: normal;
    color: #666;
    text-align: center;
}

.invoice-table td:first-child,
.invoice-table td:nth-child(3),
.invoice-table td:nth-child(4),
.invoice-table td:last-child {
    text-align: center;
}

/* Total */

.invoice-total {
    text-align: right;
    margin-top: 10px;
}

.invoice-total p {
    font-size: 11px;
    margin: 8px 0;
}

.invoice-total h4 {
    font-size: 13px;
    font-weight: bold;
    margin-top: 18px;
}

/* Footer */

.invoice-footer {
    text-align: center;
    font-size: 10px;
    font-weight: bold;
    margin-top: 20px;
}

/* PRINT SETTINGS */

@media print {

    @page {
        size: A4 portrait;
        margin: 10mm;
    }

    body * {
        visibility: hidden !important;
    }

    #orderDetailsModal,
    #orderDetailsModal * {
        visibility: visible !important;
    }

    /* Hide normal popup content */
    #orderDetailsModal .modal-header,
    #orderDetailsModal .modal-footer,
    #orderDetailsModal .modal-body > .row,
    #orderDetailsModal .modal-body > .order-items-box {
        display: none !important;
    }

    /* Show Invoice */
    #orderDetailsModal .modal-body {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
        max-height: none !important;
    }

    #orderDetailsModal .print-invoice {
        display: block !important;
        width: 100% !important;
        padding: 5px !important;
        margin: 0 !important;
        color: #000 !important;
        background: #fff !important;
    }

    #orderDetailsModal {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        background: #fff !important;
    }

    #orderDetailsModal .modal-dialog,
    #orderDetailsModal .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    .invoice-table tr {
        page-break-inside: avoid !important;
    }

    .invoice-header,
    .invoice-total,
    .invoice-footer {
        page-break-inside: avoid !important;
    }

    html, body {
        height: auto !important;
        overflow: visible !important;
    }
}


/* =====================================
   POS INVOICE
===================================== */

.pos-invoice {
    display: none;
    width: 72mm;
    padding: 2mm;
    margin: 0 auto;
    background: #fff;
    color: #000;
    font-family: Arial, sans-serif;
    font-size: 11px;
    box-sizing: border-box;
}

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

.pos-logo {
    display: block;
    width: 35mm;
    max-height: 15mm;
    object-fit: contain;
    margin: 0 auto 3px;
}

.pos-header h3 {
    font-size: 19px;
    font-weight: bold;
    margin: 3px 0;
}

.pos-header p {
    font-size: 10px;
    line-height: 1.4;
    margin: 0;
}

.pos-divider {
    border-top: 1px dashed #000;
    margin: 7px 0;
}

.pos-invoice-title {
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    margin: 7px 0;
}

.pos-details p {
    margin: 4px 0;
    font-size: 10px;
    line-height: 1.4;
}

.pos-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10px;
}

.pos-table th {
    border-bottom: 1px dashed #000;
    padding: 5px 1px;
    text-align: center;
}

.pos-table td {
    padding: 5px 1px;
    vertical-align: top;
}

.pos-table th:first-child,
.pos-table td:first-child {
    text-align: left;
    width: 38%;
    overflow-wrap: anywhere;
}

.pos-table th:not(:first-child),
.pos-table td:not(:first-child) {
    text-align: right;
}

.pos-total p {
    display: flex;
    justify-content: space-between;
    margin: 6px 0;
    font-size: 11px;
}

.pos-total h3 {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: bold;
    margin: 8px 0;
}

.pos-footer {
    text-align: center;
    margin-top: 10px;
    font-size: 11px;
}

.pos-footer p {
    margin: 5px 0;
}

.pos-footer strong {
    font-size: 15px;
}


/* =====================================
   POS THERMAL PRINT
===================================== */

@media print {

    @page {
        size: 80mm auto;
        margin: 0;
    }

    html,
    body {
        width: 80mm !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        overflow: visible !important;
    }

    /* Hide All Content */

    body * {
        visibility: hidden !important;
    }

    /* Modal Print Area */

    #orderDetailsModal {
        display: block !important;
        visibility: visible !important;

        position: fixed !important;
        top: 0 !important;
        left: 0 !important;

        width: 80mm !important;
        max-width: 80mm !important;

        height: auto !important;

        margin: 0 !important;
        padding: 0 !important;

        background: #fff !important;
        overflow: visible !important;
        transform: none !important;
    }

    /* Remove Modal Center Alignment */

    #orderDetailsModal .modal-dialog,
    #orderDetailsModal .modal-dialog-centered {
        display: block !important;

        position: absolute !important;
        top: 0 !important;
        left: 0 !important;

        width: 80mm !important;
        max-width: 80mm !important;

        min-height: 0 !important;

        margin: 0 !important;
        padding: 0 !important;

        transform: none !important;
        align-items: flex-start !important;
    }

    #orderDetailsModal .modal-content {
        display: block !important;

        width: 80mm !important;
        max-width: 80mm !important;

        height: auto !important;

        margin: 0 !important;
        padding: 0 !important;

        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;

        overflow: visible !important;
    }

    /* Hide Unnecessary Sections */

    #orderDetailsModal .modal-header,
    #orderDetailsModal .modal-footer,
    #orderDetailsModal .screen-order-details {
        display: none !important;
        visibility: hidden !important;
    }

    /* Modal Body */

    #orderDetailsModal .modal-body {
        display: block !important;
        visibility: visible !important;

        width: 80mm !important;
        max-width: 80mm !important;

        height: auto !important;
        max-height: none !important;

        margin: 0 !important;
        padding: 0 !important;

        overflow: visible !important;
    }

    /* POS Invoice */

    #orderDetailsModal .print-invoice,
    #orderDetailsModal .pos-invoice {

        display: block !important;
        visibility: visible !important;

        position: relative !important;
        top: -10mm !important;
        left: 0 !important;

        width: 72mm !important;
        max-width: 72mm !important;

        height: auto !important;

        margin: 0 !important;
        padding: 2mm !important;

        box-sizing: border-box !important;

        background: #fff !important;
        color: #000 !important;

        font-family: Arial, sans-serif !important;

        overflow: visible !important;
        box-shadow: none !important;
    }

    /* Show Invoice Content */

    #orderDetailsModal .pos-invoice * {
        visibility: visible !important;
    }

    /* Remove Bootstrap Backdrop */

    .modal-backdrop {
        display: none !important;
    }

    body.modal-open {
        overflow: visible !important;
        padding: 0 !important;
    }

}


/* =================================
   CUSTOM PAGE HEADER
================================= */

.custom-page-header {
    background: #e3f0f3;
    padding: 18px 15px !important;
    margin-bottom: 15px;
    border-bottom: 1px solid #cbd9dd;
}

.custom-page-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: #263746;
    margin: 0 0 5px 0;
}

.custom-page-header p {
    font-size: 14px;
    color: #607080;
}

.custom-page-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin-top: 8px;
}

.custom-page-header .breadcrumb-item {
    font-size: 14px;
    color: #607080;
}

.custom-page-header .breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
}

.custom-page-header .breadcrumb-item a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.custom-page-header .breadcrumb-item.active {
    color: #6c757d;
}

/* Mobile Responsive */

@media (max-width: 576px) {

    .custom-page-header {
        padding: 15px 10px !important;
    }

    .custom-page-header h1 {
        font-size: 20px;
    }

    .custom-page-header .breadcrumb {
        float: left !important;
        margin-top: 12px;
    }

}

/* =========================================
   CATEGORY FORM - HIGHLIGHTED BACKGROUND
========================================= */

.content {
    background: #f1f5f9;
    min-height: calc(100vh - 120px);
    padding: 20px 0;
}

/* Main Form Card */

.professional-form-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(31, 45, 61, 0.10);
    overflow: hidden;
    margin-bottom: 20px;
}

/* Card Header */

.professional-form-card .card-header {
    background: linear-gradient(135deg, #e5f5f3, #edf5ff);
    border-bottom: 1px solid #dce8ec;
    padding: 18px 22px;
}

.professional-form-card .card-title {
    font-size: 19px;
    font-weight: 700;
    color: #243b53;
    margin-bottom: 5px;
}

.professional-form-card .form-subtitle {
    font-size: 13px;
    color: #718096;
    margin: 0;
}

/* Form Body */

.professional-form-card .card-body {
    padding: 25px 24px;
    background: #ffffff;
}

.professional-form-card .form-group {
    margin-bottom: 22px;
}

.professional-form-card label {
    font-size: 14px;
    font-weight: 600;
    color: #344767;
    margin-bottom: 8px;
}

.professional-form-card .form-control {
    height: 43px;
    border: 1px solid #d5dce5;
    border-radius: 6px;
    font-size: 14px;
    padding: 9px 13px;
    background: #fbfdff;
    transition: all 0.25s ease;
}

.professional-form-card .form-control:focus {
    border-color: #159f91;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(21, 159, 145, 0.12);
}

.professional-form-card .input-group-text {
    background: #e9f5f3;
    border-color: #d5dce5;
    color: #159f91;
}

.professional-form-card .form-text {
    font-size: 12px;
    color: #8795a1;
}

/* Image Upload Box */

.category-upload-box {
    position: relative;
    min-height: 175px;
    border: 2px dashed #9ccdc7;
    border-radius: 9px;
    background: linear-gradient(135deg, #f2fbfa, #f5f8ff);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.category-upload-box:hover {
    border-color: #159f91;
    background: #eaf8f5;
}

.category-upload-box input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
}

.category-upload-box .upload-icon {
    width: 48px;
    height: 48px;
    background: #d8f1ed;
    color: #159f91;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 10px;
}

.category-upload-box h6 {
    color: #344767;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 5px;
}

.category-upload-box p {
    color: #718096;
    font-size: 13px;
    margin-bottom: 5px;
}

.category-upload-box span {
    color: #159f91;
    font-size: 11px;
    font-weight: 600;
}

/* Image Preview */

.category-upload-box img {
    max-width: 100%;
    max-height: 160px;
    object-fit: contain;
    border-radius: 6px;
    position: relative;
    z-index: 2;
}

/* Footer */

.professional-form-card .card-footer {
    background: #f8fafc;
    border-top: 1px solid #e8edf2;
    padding: 15px 24px;
}

.form-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.form-footer .btn {
    padding: 9px 20px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
}

.form-footer .btn-primary {
    background: #159f91;
    border-color: #159f91;
}

.form-footer .btn-primary:hover {
    background: #108477;
    border-color: #108477;
}

/* =========================================
   CATEGORY INFORMATION CARD
========================================= */

.category-info-card {
    border: 1px solid #dce8ec;
    border-radius: 10px;
    background: linear-gradient(145deg, #ffffff, #f0f8ff);
    box-shadow: 0 4px 18px rgba(31, 45, 61, 0.09);
    overflow: hidden;
}

.category-info-card .card-body {
    padding: 24px 22px;
}

.category-info-card .info-icon {
    width: 45px;
    height: 45px;
    background: #fff2d9;
    color: #e5a126;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    margin-bottom: 15px;
}

.category-info-card h5 {
    color: #263b53;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
}

.category-info-card p {
    font-size: 13px;
    color: #718096;
    line-height: 1.6;
}

.category-info-card ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
}

.category-info-card ul li {
    font-size: 13px;
    color: #475569;
    margin-bottom: 13px;
    display: flex;
    gap: 9px;
    line-height: 1.5;
}

.category-info-card ul li i {
    color: #159f91;
    margin-top: 3px;
}

/* Responsive */

@media (max-width: 991px) {
    .category-info-card {
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .professional-form-card .card-body {
        padding: 18px 15px;
    }

    .professional-form-card .card-header {
        padding: 15px;
    }

    .form-footer {
        padding: 12px 15px !important;
    }

    .category-upload-box {
        min-height: 150px;
    }
}

/* =====================================
   COMPACT PRODUCT FORM DESIGN
===================================== */

.professional-form-card {
    border: 1px solid #dce3eb;
    border-radius: 7px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 15px;
}

.professional-form-card .card-header {
    padding: 12px 16px;
    background: #e5f1f4;
    border-bottom: 1px solid #d5e0e5;
}

.professional-form-card .card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.professional-form-card .card-body {
    padding: 16px;
}

/* Form spacing */
.professional-form-card .form-group {
    margin-bottom: 12px;
}

.professional-form-card label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #34445a;
}

.professional-form-card .form-control,
.professional-form-card .custom-select {
    height: 36px;
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 4px;
}

.professional-form-card textarea.form-control {
    height: auto;
    min-height: 80px;
}

/* Compact three-column row */
.compact-product-row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -7px;
    margin-right: -7px;
}

.compact-product-row > [class*="col-"] {
    padding-left: 7px;
    padding-right: 7px;
}

/* Description */
.product-description-group {
    margin-bottom: 12px;
}

.product-description-group .note-editor {
    margin-bottom: 0;
}

.product-description-group .note-editable {
    min-height: 140px;
}

/* Product image upload */
.product-image-card {
    padding: 10px;
    border: 1px solid #e0e6ed;
    border-radius: 6px;
    background: #fafcfe;
}

.product-image-upload {
    height: 115px;
    min-height: 115px;
    border: 1px dashed #aebdce;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    background: #f5f9fc;
}

.product-image-upload img {
    max-width: 100%;
    max-height: 105px;
    object-fit: contain;
}

.product-image-upload .upload-icon {
    font-size: 25px;
    color: #3498db;
}

/* Footer */
.professional-form-card .card-footer {
    padding: 10px 16px;
    background: #f8fafc;
}

.professional-form-card .btn {
    font-size: 13px;
    padding: 7px 16px;
}

/* Guidelines card */
.category-info-card {
    border-radius: 7px;
    margin-bottom: 15px;
}

.category-info-card .card-body {
    padding: 15px;
}

.category-info-card h5 {
    font-size: 15px;
    font-weight: 600;
}

.category-info-card p,
.category-info-card li {
    font-size: 12px;
    line-height: 1.6;
}

/* Mobile Responsive */
@media (max-width: 767px) {

    .professional-form-card .card-body {
        padding: 12px;
    }

    .compact-product-row > [class*="col-"] {
        width: 100%;
    }

    .product-image-upload {
        height: 100px;
        min-height: 100px;
    }

}

.page-title-icon {
    width: 48px;
    height: 45px;
    min-width: 48px;
    background: #159f91;
    color: #ffffff;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 3px 7px rgba(21, 159, 145, 0.20);
}

.custom-page-header h1 {
    font-size: 23px;
    color: #263746;
}

.custom-page-header p {
    font-size: 13px;
    color: #718096;
}

@media (max-width: 576px) {
    .custom-page-header .breadcrumb {
        float: left !important;
        margin-top: 12px;
    }
}
