/*
Template Name: Velzon - Admin & Dashboard Template
Author: Themesbrand
Website: https://themesbrand.com/
Contact: support@themesbrand.com
File: Custom Css File
*/
:root {
    --vz-vertical-menu-width-sm: 180px !important;
}

html {
    min-height: 100%;
}

body {
    background-color: #fff;
}

.flex {
    display: flex;
}

.plaintext {
    width: revert;
    display: inline;
}

.h-70 {
    height: 70% !important;
}

.h-30 {
    height: 30% !important;
}

.h-80 {
    height: 80% !important;
}

.h-20 {
    height: 20% !important;
}
.page-content {
    padding: 0 calc(1.5rem* .5) 0 calc(1.5rem* .5);
    /* height: 910px !important; */
    margin-top: 1.5rem;
}

.page-title-box {
    margin: 0 -1.5rem 1.5rem -1.5rem;
}

.card, .card-header, .card-body, .card-footer {
    background-color: var(--vz-body-bg);
}

.card-header {
    padding-bottom: .5em !important;
}

.form-card-body {
    padding-top: 0 !important;
}

.custom-btn {
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.custom-btn i {
    font-size: 2.5rem;
}
/* Forms */
fieldset {
    margin: 2px;
    border: 1px solid silver;
    padding: 8px;    
    border-radius: 4px;
}
legend {
    padding: 2px;
    font-size: .85rem;
    width: unset !important; 
    float: unset !important;
    margin-bottom: -8px !important; 
}

/* Invoice */
table.invoice thead:first-of-type th {
    padding: 0;
}

/* Login */
.login {
    background-image: url("/assets/images/copper-scrap.jpg");
    background-position: center;
    background-size: cover;
}
.bg-overlay {
    position: absolute;
    height: 100%;
    width: 100%;
    right: 0;
    bottom: 0;
    left: 0;
    top: 0;
    opacity: .25;
    background-color: #000;
}
/* Login END */


/* Footer */
[data-layout=vertical][data-sidebar-size=md] .footer {
    left: 0 !important;
}
.footer {
    background-color: #2e3230 !important;
    height: unset !important;
}
.tamar-logo {
    height: 25px;
}
.powered-by {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-end;
}
.powered-by-text {
    margin-bottom: 0;
    margin-right: 1em;
}
/* Footer END */


/* Sidebar */
.app-menu.navbar-menu {
    padding-block-end: 100px;
}
.sidebar-container {
    display: flex;
    flex-direction: column;
}
.navbar-nav {
    row-gap: .5em;
}
.navbar-menu .navbar-nav .nav-link {
    display: flex !important;
    flex-direction: column;
    width: 60%;
    text-align: center;
    padding: .55rem .525rem !important;
    color: #FFF;
    border-radius: 4px;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1;
    background-color: #515252 !important;
}
.navbar-menu .navbar-nav .nav-link:hover {
    background-color: #FFF !important;
    color: #000 !important;
}
.nav-item {
    width: 100% !important;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}
.topbar-user {
    background-color: var(--vz-topbar-user-bg);
}
.sidebar-footer .powered-by {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.sidebar-footer .powered-by-text {
    margin-bottom: 0;
    margin-inline: auto;
}


.sidebar-footer {
    padding-inline: 1.5rem;
    text-align: center;
}

.header-item {
    height: 128px;
    border: none;
}

.logout-section {
    flex-direction: column;
    width: 80%;
}



.logout-btn {
    z-index: 1;
    --vz-btn-padding-x: 0.9rem;
    --vz-btn-padding-y: 0.5rem;

    padding: var(--vz-btn-padding-y) var(--vz-btn-padding-x) !important;
    color: #FFF !important;
    margin-block: 3px;
}

.settings {
    width: 50% !important;
}

.settingsBtn {
    background-color: var(--vz-vertical-menu-bg);
    color: #FFF;
    width: 40%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.settingsBtn:hover {
    color: #fff;
    background-color: #515252 !important;
}

.settingsBtnContents {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vertical-center {
  margin: 0;
  /* position: absolute;
  top: 50%; */
  transform: translateY(250%);
}

.btn-label {
    padding-left: 44px !important;
}

.user-name-text {
    max-width: 100%;
    text-align: center;
    font-size: .9rem;
}
/* Sidebar END */


/* Home Layout */
.home-img {
    width: 100%;
}
.home-layout {
    background-image: url("/assets/images/copper-scrap.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    height: 100vh;
    overflow: hidden;
}
/* Home Layout END */

/* Card Styles */
.supplier-card, .client-card {
    height: 863px !important;
}

/* DataTables */
#supplier-datatable td.dataTables_empty {
    height: 458px;
}

#client-datatable td.dataTables_empty {
    height: 458px;
}

#invoice-datatable td.dataTables_empty {
    height: 268px;
}

#history-datatable td.dataTables_empty,
#sale-history-datatable td.dataTables_empty {
    height: 411px;
}

#supplier-datatable_wrapper .dataTables_scrollBody {
    height: 523px !important;
}

#client-datatable_wrapper .dataTables_scrollBody {
    height: 476px !important;
}

#invoice-datatable_wrapper .dataTables_scrollBody {
    height: 522px !important;
}

#history-datatable_wrapper .dataTables_scrollBody,
#sale-history-datatable_wrapper .dataTables_scrollBody  {
    height: 479px !important;
}

table.dataTable.table-striped>tbody>tr.odd {
    background-color: #e7e7e7;
}

table.dataTable.table-striped>tbody>tr.even {
    background-color: #d1d1d1;
}

.clickable-row:hover, .table-active {
    background-color: #212529 !important;
    color: #FFF !important;
    cursor: pointer;
}

/* div#supplier-datatable_filter {
    width: 50%;
} */

div#supplier-datatable_length {
    width: 50%;
}

div#supplier-datatable_info {
    width: 50%;
}

div#supplier-datatable_paginate {
    width: 50%;
}

/* div#client-datatable_filter {
    width: 50%;
} */

div#client-datatable_length {
    width: 50%;
}

div#client-datatable_info {
    width: 50%;
}

div#client-datatable_paginate {
    width: 50%;
}

.invoice thead>tr:first-of-type th {
    padding-right: 0 !important;
    /* padding-bottom: 10px !important; */
}

.form-control[readonly] {
    background-color: var(--vz-tertiary-bg);
}

/* Styles for screen display (your usual styles) */
.printable-image {
    width: 100px; /* Or whatever width you want for screen display */
    height: auto; /* Maintain aspect ratio */
}

.top, .bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

/* --- Print-specific styles --- */
@media print {
    .printable-image {
        width: 50mm; /* Example: set a fixed width in millimeters for print */
        /* Or use a percentage of the print area */
        /* width: 25%; */
        height: auto; /* Always good to maintain aspect ratio */
        /* You can also add margins or other print-specific adjustments */
        margin: 10px;
    }

    /* If you only want to print the image and nothing else from the page */
    .supplier-client *:not(.printable-image) {
        display: none;
    }

    :is([data-layout=vertical],[data-layout=semibox])[data-sidebar-size=md] .main-content {
        margin-left: 0;
    }

    .purchase-items {
        page-break-inside: auto;
    }

    .purchase-items thead {
        display: table-header-group;
    }

    .purchase-items tfoot {
        display: table-footer-group;
    }

    .purchase-items tr {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .purchase-items td, 
    .purchase-items th {
        page-break-inside: avoid;
    }

    .invoice .card-body {
        background-color: white !important;
    }

    /* Optional: Force full-width layout when printing */
    body, html {
        width: 100%;
    }

    [class^="col-"] {
        padding-inline-start: 0 !important;
        padding-inline-end: 0 !important;
    }

    .page-content {
        margin-top: 0;
    }

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

.pagination {
    --vz-pagination-active-bg: #212529;
    --vz-pagination-active-border-color: #212529;
}