@charset "utf-8";

/* Css reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

body {
    line-height: 1.5;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.form-select {
    font-size: 14px;
}

ul,
ol {
    list-style: none;
}

a {
    text-decoration: none;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

ul {
    padding: 0;
}

:root {
    --clr-neutral-100: #fff;
    --clr-primary: #2DBB54;
}

.main-sidebar {
    max-height: 100vh;
    background-color: var(--clr-neutral-100);
}

.sidebar {
    max-height: 100vh;
    padding: 0;
}

textarea {
    resize: none;
}

.sidebar-mini layout-fixed .main-sidebar .nav-link,
.sidebar-mini layout-fixed-md .main-sidebar .nav-link,
.sidebar-mini layout-fixed-xs .main-sidebar .nav-link,
.sidebar-collapse.sidebar-mini layout-fixed .main-sidebar:hover:not(.sidebar-no-expand) .nav-link {
    width: 100%;
}

.brand-link:hover {
    color: unset;
}

.card-primary.card-outline {
    border-top: 3px solid var(--clr-primary);
}

.form-check-input:checked {
    border-color: var(--clr-primary);
    background-color: var(--clr-primary);
}

.nav-pills .nav-link:focus-visible {
    color: var(--clr-neutral-100);
}

.sidebar .nav-item .nav-link {
    padding: 12px 20px;
    cursor: pointer;
}

.main-ttl {
    color: #7d7d7d;
}

.brand-link,
.main-header {
    border: none;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
    padding-block: 11px;
}

.nav-pills .nav-link:not(.active):hover {
    color: var(--clr-neutral-100);
}

.nav-sidebar > .nav-item.menu-open > .nav-link,
.nav-sidebar > .nav-item:hover > .nav-link,
.nav-sidebar > .nav-item > .nav-link:focus,
.nav-treeview > .nav-item > .nav-link:hover {
    color: var(--clr-neutral-100);
    background-color: var(--clr-primary);
}

.nav-treeview > .nav-item > .nav-link {
    padding-left: 50px;
}

.content-wrapper {
    min-height: 90vh !important;
}

    .content-wrapper > .content {
        padding-top: 18px;
    }

.button-group a {
    color: var(--clr-neutral-100);
}

.bg-primary {
    color: var(--clr-primary) !important;
    background-color: var(--clr-neutral-100) !important;
}

.login-form .bg-primary {
    color: var(--clr-neutral-100) !important;
    background-color: var(--clr-primary) !important;
}

/* primary text (tz) */
.txt-primary {
    color: var(--clr-primary);
}

.p-extra {
    padding: 1rem .5rem;
}

.table th {
    vertical-align: middle !important;
}

.login-form {
    width: 620px;
}

.bib-logo {
    width: 60px;
}

table td {
    text-align: center;
}

.pos-card {
    border-radius: 0rem;
}

.pos-table tbody tr td a,
.card-box a,
.card-box a:hover {
    text-decoration: underline;
}

.box {
    width: 70px;
    height: 70px;
}

.no-product {
    color: #7c7c7c !important;
}

.product-card-body {
    padding-inline: 50px;
}

/* table width start */

.no {
    width: 45px;
    min-width: 45px;
}

.cmn-name,
.rate {
    width: 180px;
    min-width: 180px;
}

.shop-name {
    width: 240px;
    min-width: 240px;
}

.ph-number,
.email,
.date,
.status,
.default {
    width: 140px;
    min-width: 140px;
}

.address {
    width: 220px;
    min-width: 220px;
}

.cmn-th {
    width: 120px;
    min-width: 120px;
}

.profile-image,
.product-image {
    width: 50px !important;
    min-width: 50px !important;
}

.edit,
.trash,
.setting {
    width: 60px;
    min-width: 60px;
}

.quantity,
.unit,
.price {
    width: 105px;
    min-width: 105px;
}

/* table width end */
.profile {
    max-width: 35px;
    max-height: 35px;
    overflow: hidden;
    border: 1px solid gray;
    border-radius: 50%;
    object-fit: cover;
    margin-inline: auto;
}

.product-img {
    max-width: 50px;
    max-height: 50px;
    overflow: hidden;
    object-fit: cover;
    margin-inline: auto;
}

.card-img img {
    width: 80px !important;
}

.setting-header,
.header-icon {
    color: #212529 !important;
    background-color: transparent !important;
}

.is-invalid.form-control + .select2-container .selection .select2-selection {
    border-color: red !important;
}

.invalid-feedback {
    padding-left: 28.33%;
}

.nav-link {
    padding: 0.7rem 1rem;
}

.select2-container {
    width: inherit !important;
}

.table td,
.table th {
    padding: .5rem;
}

.btn-primary {
    min-width: 120px;
    padding: .5rem;
    border-color: var(--clr-primary) !important;
    background-color: var(--clr-primary) !important;
    transition: background-color 0.6s;
}

    .btn-primary:hover {
        background-color: rgba(45, 187, 84, 0.8) !important;
    }

.pos-card {
    padding: 1.25rem;
}

    .pos-card .card-body {
        padding: 0;
    }

.pos-tbl-wrapper {
    border: 1px solid #d7d7d7;
    border-radius: 10px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
    padding-block: 0;
}

.pos-table tbody td {
    max-width: 150px;
    text-align: left;
    white-space: normal;
    word-wrap: break-word; 
    overflow-wrap: break-word;
}

.table-bordered > :not(caption) > * {
    border-width: 0;
}

.table.table-head-fixed.pos-table thead tr th {
    font-weight: 600;
    background-color: #f2f2f2;
}

.table-bordered td,
.table-bordered th {
    /* border: 1px solid #b0b0b2; */
    background-color: #fff;
}

.table {
    margin-bottom: 0;
}

.pos-table tbody tr:nth-child(even) td {
    background-color: #eeeffa;
}

.pos-table tbody tr td a {
    text-decoration: underline;
}

.pos-table tbody tr td:first-child {
    text-align: right;
}

.pos-table tbody td.smoke-gray-background {
    background-color: #D2C7C7 !important;
}
.pos-table tbody td.red-row-color {
    background-color: #FFFFE0E0 !important;
}
.pos-table tbody td.disabled-td {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}

.pos-table tbody tr.deleted-row td {
    background-color: /*#ECECEC*/ #A6A4A5 !important;
}

.pos-table tbody tr.disabled-row td:not(.history-column) {
    pointer-events: none !important;
    cursor: not-allowed !important;
}

.pos-table tbody td .fa-cog {
    color: #7d7d7d;
}

.pos-table tbody td .fa-edit {
    color: var(--clr-primary);
}

.pos-table tbody td .fa-trash {
    color: #e74f3f;
}

.pagination {
    column-gap: 10px;
}

    .pagination li a {
        display: block;
        color: #212529;
    }

    .pagination li:hover {
        color: var(--clr-neutral-100);
        cursor: pointer;
        background-color: var(--clr-primary);
    }

        .pagination li:hover a {
            color: var(--clr-neutral-100);
        }

    .pagination li.active {
        color: var(--clr-neutral-100);
        background-color: var(--clr-primary);
    }

    .pagination li {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
        padding-block: 2px;
        transition: background-color 0.6s;
    }

        .pagination li.current-number {
            width: 106px;
        }

.navbar-light .navbar-nav .nav-link {
    color: #000000;
    font-weight: 700;
}

.card-body .form-group label {
    margin-bottom: 0px;
}

.pl-140 {
    padding-left: 140px;
}

.content .card-body .card-box {
    width: 19%;
    padding: 20px 20px 10px 20px;
    border: 2px solid var(--clr-primary);
    border-radius: 15px;
}

    .content .card-body .card-box .card-title {
        height: 40px;
    }

    .content .card-body .card-box .card-text {
        height: 30px;
    }

.card-text-number {
    line-height: 1;
    font-size: 18px;
}

.content .card-body .card-box .card-link {
    right: 20px;
    bottom: 7px;
    color: #000;
}

.content .card .card-body #barChart {
    width: 100% !important;
    height: 300px !important;
}

.content .sale-product-box .sale-product-card {
    height: 385px;
}

.content .sale-product-box .card-body .card-img {
    height: 70px;
}

    .content .sale-product-box .card-body .card-img img {
        width: 100%;
        height: 100%;
    }
.content .sale-product-box .card-body .card-text {
    height: 50px;
    max-width: 140px;
    overflow-x: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-top: 10px;
    position: relative;
    transition: max-height 0.3s ease;
}  

.file-input-container {
    display: flex;
    align-items: center;
    position: relative;
}

.custom-file-upload {
    display: inline-block;
    margin-right: 10px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    background-color: #f4f4f4;
}

#file-upload {
    display: block;
}

.table th,
.table td {
    vertical-align: middle !important;
}

.pt-100 {
    padding-top: 100px !important;
}

.pos-stock-transfer-tbl-wrapper {
    border: 1px solid #d7d7d7;
    border-radius: 10px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
    padding-block: 0;
}

.inner-ttl {
    display: inline-block;
    top: -10px;
    padding: 0px 5px;
    background-color: #fff;
}

.login-form .btn-primary {
    min-width: 60px;
}

.default-select-box {
    width: 170px;
}

.datatable {
    display: none;
}

    .datatable.active {
        display: block;
    }

.backup-link {
    padding: 0px 0px 0px 50px !important;
}

.backup {
    width: 100% !important;
    padding: 12px 20px 12px 0px !important;
    cursor: pointer !important;
}

.setting-card-body {
    padding-inline: 80px;
}

.sale-history .modal-content,
.sale-history .card,
.sale-history .card-header,
.sale-history .card-body {
    border-radius: 0 !important;
}

.sale-history-table {
    height: 170px;
}

.newproduct-card-body {
    padding-inline: 50px;
}

.product-pl {
    padding-left: 5%;
}

.first-product-row {
    padding-left: 10px;
}

/* Quantity Change */
.sale-history table .qty-change td {
    background-color: #e5dddd !important;
}

/* Quantity No Change */
.sale-history table .qty-nochange td {
    background-color: #f6f3f3 !important;
}

.expense-grand-ttl {
    width: 16.6%;
}

.p-price-grand-ttl {
    width: 20.8%;
}

.p-detail-grand-ttl {
    width: 17.2%;
}

.purchase-grand-ttl {
    width: 15.6%;
}

.s-price-grand-ttl {
    width: 11.8%;
}

.s-detail-grand-ttl {
    width: 10.5%;
}

.sale-grand-ttl {
    width: 13.5%;
}

.profit-loss-price {
    width: 14%;
}

/* ADDED */
.form-check-input:focus {
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 .25rem rgba(45, 187, 84, .25);
}

.form-control:focus,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--clr-primary);
}

.select2-container--default .select2-dropdown .select2-search__field:focus,
.select2-container--default .select2-search--inline .select2-search__field:focus {
    border: 1px solid var(--clr-primary);
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[aria-selected]:hover {
    background-color: var(--clr-primary);
}

.dashboard-card-body .card {
    border-radius: 10px;
}

.dashboard-card-body .card-body,
.modal-content .card-body {
    border-top: 1px solid rgba(0, 0, 0, 0.4);
}

.card-hdr-border {
    border-bottom: 1px solid rgba(0, 0, 0, 0.4);
}

.nav-pills .nav-link {
    border-radius: 0px 10px 10px 0px;
}

.card-header h3 {
    color: var(--clr-primary);
    font-weight: 700;
}

.content .bar-chart-box h3,
.content .sale-product-box h3 {
    color: #000;
    font-weight: 400;
}

.table.table-head-fixed thead tr:nth-child(1) th {
    box-shadow: none;
}

.table > thead {
    overflow: hidden;
    border-top-left-radius: 20px !important;
}

.card-footer {
    background-color: unset;
}

.login-form img {
    filter: brightness(0) invert(1);
}

.table-length {
    border-radius: 2px;
}

.nav-sidebar .nav-link > .right, .nav-sidebar .nav-link > p > .right {
    top: 1rem !important;
}

/* zlh */

.table-length.border > span {
    padding-block: 0.5rem;
}

.table-length.border > div {
    padding: 0.5rem;
}

.table-bordered tbody tr {
    cursor: default;
}

.pagination .first-number a,
.pagination .last-number a {
    padding: 10px 13px;
}

.pagination .prev-number a,
.pagination .next-number a {
    padding: 10px 17px;
}

@media screen and (max-width: 768px) {
    .btn-primary {
        padding: .375rem .75rem;
    }

    .content .card-body .card-box {
        width: 49%;
        padding: 2.604vw 2.604vw 3.255vw 2.604vw;
    }

    .card-text-number {
        font-size: 2.604vw;
    }

    .invalid-feedback {
        padding-left: 3%;
    }

    .login-form {
        width: 80vw;
    }

    .bib-logo {
        min-width: 6.51vw;
    }

    .card-container {
        flex-wrap: wrap;
        row-gap: 1.953vw;
    }

    .content .card-body .card-box .card-title {
        height: 4.557vw;
    }

    .content .card-body .card-box .card-text {
        height: 3.516vw;
    }

    .content .card-body .card-box .card-link {
        right: 2.604vw;
        bottom: 0.26vw;
    }

    .button-group {
        flex-wrap: wrap;
    }

        .button-group .btn-primary {
            min-width: 30.769vw;
        }

    .login-form .btn-primary {
        min-width: 15.385vw;
    }

    .sidebar {
        max-height: 100vh;
    }

    .default-select-box {
        width: 26.042vw;
    }

    .setting-card-body {
        padding-inline: 10.417vw;
    }

    .newproduct-card-body {
        padding-inline: 6.51vw;
    }

    .first-product-row {
        padding-left: 0.911vw;
    }

    .expense-grand-ttl,
    .p-price-grand-ttl,
    .p-detail-grand-ttl,
    .purchase-grand-ttl,
    .s-price-grand-ttl,
    .s-detail-grand-ttl,
    .sale-grand-ttl,
    .profit-loss-price {
        width: 32%;
    }
    
    .table-length.border > span {
        margin-inline: 1rem;
    }
}

@media screen and (max-width : 567px) {
    .select2-container:not(+label) {
        width: 100% !important;
    }

    .card-text-number {
        font-size: 3.527vw;
    }

    .profit-loss-txt {
        width: 60% !important;
    }
}
