/* -------------------------
 * Author: Geofrey Xvr & Kalebu Jordan
 * Copyright: Harlos Limited
 * Year: 2020
---------------------------*/

/* --- NEW: @font-face rules for Cerebri Sans --- */
/* Ensure these paths correctly point to where you uploaded the font files */
@font-face {
    font-family: 'Cerebri Sans';
    src: url('../fonts/cerebrisans-regular.woff2') format('woff2'), /* Add woff2 if available */
         url('../fonts/cerebrisans-regular.woff') format('woff');
    font-weight: 400; /* Assuming regular weight is 400 */
    font-style: normal;
    font-display: swap; /* Best practice for font loading */
}

@font-face {
    font-family: 'Cerebri Sans';
    src: url('../fonts/cerebrisans-medium.woff2') format('woff2'), /* Add woff2 if available */
         url('../fonts/cerebrisans-medium.woff') format('woff');
    font-weight: 500; /* Assuming medium weight is 500 */
    font-style: normal;
    font-display: swap; /* Best practice for font loading */
}
/* If you have other weights (e.g., bold), add similar @font-face rules */
/* --- END @font-face --- */


@import 'root.css';

/* -----General----- */

html,
body {
    height: 100%;
    margin: 0;
    /* Changed from 'Cerebri Sans' to 'Nunito' and font-size to 14px for consistency */
    font-family: 'Nunito', sans-serif;
    font-size: 14px; /* Base font size set to 14px as per request */
    overflow-x: hidden;
}

/* New: Specific heading font sizes and weights from Laravel ERP analysis */
h4 {
    /* Matched to 1.125rem relative to 20px base (22.5px) */
    font-size: 1.125rem;
    font-weight: 500; /* Set to 500 to match Laravel ERP's "Best Match h4" */
}

.page-title-box .page-title { /* More specific rule for the page title */
    /* Matched to 1.25rem relative to 20px base (25px) */
    font-size: 1.25rem;
    font-weight: 500; /* Set to 500 to match Laravel ERP's "Best Match h4" */
}

p {
    font-size: 1rem; /* Will be 14px based on body font-size */
}

/* -----Structure---- */

.full-height {
    height: 100% !important;
}

h6 {
    font-weight: 400; /* Keeping current value, if Laravel ERP has a different h6 weight, let me know */
}

a {
    text-decoration: none !important;
    cursor: pointer !important;
    font-family: inherit;
}

.input--file {
    position: relative;
    color: #7f7f7f;
}

.input--file input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.presonal-inform {
    margin-top: 25px;
}

.presonal-inform ul li {
    width: 50%;
    float: left;
}

.presonal-inform li b {
    width: 108px;
    display: inline-block;
    color: #1f2124;
    font-size: 15px;
    font-weight: 500;
    color: #888;
}

.presonal-inform li {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 20px;
}

.presonal-inform ul li {
    width: 50%;
    float: left;
    color: #00bcd2;
}

.bg-dark,
.bg-secondary {
    background-color: #313949 !important;
}

::-webkit-scrollbar {
    width: 10px !important;
}

::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
}

::-webkit-scrollbar-thumb {
    background: #d1d1d1 !important;
}

::-webkit-scrollbar-thumb:hover {
    background: #b1b1b1 !important;
}


/* -----Auth------ */

.main-form {
    background: var(--white);
    padding: 5px 150px;
    font-size: 15.3px !important;
}

.auth-cover {
    overflow: hidden;
}

.auth-img {
    width: 1000px;
}

.auth-cover .bg-back {
    background: #cc3333;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: absolute;
    z-index: -2;
}

.auth-cover .auth-img {
    background: url(../img/header.jpg) no-repeat center center;
    background-size: cover;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    mix-blend-mode: multiply;
    filter: grayscale(100%);
    z-index: -1;
}

.user-thumb {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    background-color: #ddd;
    overflow: hidden;
    border: 2px solid rgba(238, 238, 238, 0.014);
}

.user-thumb img {
    width: 100%;
    height: 100%;
    display: block;
}


/* -----Dashboard----- */

.main-header {
    font-weight: 300 !important; /* Keeping Flask's current value for now, as Laravel ERP's .main-header weight is not provided */
}

.header-icons li {
    font-size: 18px !important;
}

.sidebar {
    font-size: 0.92em !important;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

@media (max-width: 767.98px) {
    .sidebar {
        top: 5rem;
    }
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: .5rem;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar .nav-link {
    color: #333;
    font-weight: 500;
}

.sidebar .nav-link .feather {
    margin-right: 4px;
    color: #727272;
}

.sidebar .active {
    background-color: #fff;
    border: 1px solid #ddd;
    border-right: 0px !important;
    border-left: 3px solid var(--primary-red);
}

.sidebar .nav-link:hover .feather,
.sidebar .nav-link.active .feather {
    color: inherit;
}

.sidebar .nav-item {
    margin: 2px 0px;
}

.sidebar-heading {
    font-size: .75rem;
    text-transform: uppercase;
}

.navbar-brand {
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
    font-size: 1.2rem;
    background-color: rgba(0, 0, 0, .25);
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
}

.navbar .navbar-toggler {
    top: .25rem;
    right: 1rem;
}

.navbar .form-control {
    padding: .75rem 1rem;
    border-width: 0;
    border-radius: 0;
}

.form-control-dark {
    color: #fff;
    background-color: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .1);
}

.form-control-dark:focus {
    border-color: transparent;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
}


/* ------Buttons----- */

.h-btn-lg {
    padding: 12px 18px;
    font-size: 15px;
    border: transparent;
    font-family: inherit;
}

.h-btn-sm {
    padding: 8px 15px;
    font-size: 15px;
    border: transparent;
    font-family: inherit;
}

.h-btn-red {
    background-color: var(--primary-red) !important; /* Added !important */
    color: var(--white);
}

.h-btn-red:hover {
    background-color: var(--secondary-red) !important; /* Added !important for consistency */
    color: var(--white);
}

.h-btn-red:focus {
    background-color: var(--primary-red) !important;
    color: var(--white);
}

/* Force the Login button background to red */
.h-btn-red#btnSpinner {
    background-color: var(--primary-red) !important;
    color: var(--white) !important;
    border-color: var(--primary-red) !important; /* Ensure border is also red */
}

.h-btn-red#btnSpinner:hover,
.h-btn-red#btnSpinner:focus,
.h-btn-red#btnSpinner:active {
    background-color: var(--secondary-red) !important;
    color: var(--white) !important;
    border-color: var(--secondary-red) !important; /* Ensure border is red on hover/focus */
}

.h-btn-black {
    background-color: var(--black);
    color: var(--white);
}

.h-btn-disabled {
    background-color: var(--gray) !important;
}

.btn-icon {
    background-color: #eee !important;
}

.btn-group {
    display: block
}

.btn-danger a {
    color: inherit;
}

/* ----Input----- */

input {
    font-family: inherit;
}

.h-input-icon {
    padding: 20px 20px 20px 50px !important;
}

.h-input {
    padding: 20px 20px 20px 20px;
    box-shadow: inset 0 0 3px 3px #fff;
    background-color: var(--white);
}

.h-padd {
    height: 43px;
}

.h-input-sm {
    padding: 8px 20px 8px 20px !important;
}

.h-breadcrumbs {
    font-family: inherit;
    font-size: 15px;
    margin-top: 5px;
}

label {
    font-family: inherit;
}

a {
    font-family: inherit;
}

.form-group {
    position: relative !important;
}

.input-icon {
    position: absolute !important;
    top: 44px;
    left: 20px;
}

input[type="checkbox"] {
    border: 2px solid #ccc !important;
}

input[type="text"] {
    font-family: inherit !important;
}

input[type="email"] {
    font-family: inherit;
}

input[type="number"] {
    font-family: inherit;
}

.paid-sign img {
    max-width: 250px;
    position: absolute;
    right: 30px;
    top: -20px;
    z-index: 20;
}

textarea {
    font-family: inherit;
}


/* -----User Component------- */

.h-user-container {
    color: #fff !important;
    cursor: pointer;
    font-size: 15px;
}

.h-user-photo {
    width: 35px;
    height: 35px;
    border-radius: 5px;
    background-color: #ddd;
    overflow: hidden;
    border: 2px solid rgba(238, 238, 238, 0.014);
}

.h-user-photo img {
    width: 100%;
    height: 100%;
    display: block;
}

.h-user-name {
    margin-top: 5px;
    margin-left: 10px;
}

.dropdown-menu {
    border-radius: 0px !important;
}

.dropdown-h {
    left: -85px !important;
    padding: .2rem 0 !important;
    font-size: 14px !important;
}


/* ------Icons------ */

.nav-link .far {
    color: #737373;
    margin-right: 5px;
}

.nav-link:hover>.far {
    color: #000 !important;
}


/* ----Table----- */

div.dataTables_wrapper {
    margin: 0 auto;
    overflow: scroll;
}

.rolesTable input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/*----Modal---- */

.modal-dialog-sm {
    margin: 0.6rem auto !important;
}

.modal-content {
    border-radius: 0rem !important;
}

.modal-header {
    background-color: #f3f3f3;
}

.custom-file {
    overflow: hidden;
}

.popover-body {
    padding: .2rem .2rem !important;
}


/* ------Misc------ */

.secMod {
    display: none;
}

.link-red {
    color: var(--primary-red) !important;
    text-decoration: none !important;
}

.remove_field {
    color: #fff !important;
    background-color: #e23636;
    border-color: #a9190a;
    padding: 5px 12px;
    margin-left: 15px;
    margin-top: 3px;
    border-radius: 3px;
    display: block !important;
}

.remove_field:hover {
    color: #fff !important;
}

.shadow-sm {
    box-shadow: 0 .125rem .10rem rgba(0, 0, 0, .075) !important;
}

@media (min-width: 992px) {
    .animate {
        animation-duration: 0.3s;
        -webkit-animation-duration: 0.3s;
        animation-fill-mode: both;
        -webkit-animation-fill-mode: both;
    }
}

@keyframes slideIn {
    0% {
        transform: translateY(1rem);
        opacity: 0;
    }

    100% {
        transform: translateY(0rem);
        opacity: 1;
    }

    0% {
        transform: translateY(1rem);
        opacity: 0;
    }
}

@-webkit-keyframes slideIn {
    0% {
        -webkit-transform: transform;
        -webkit-opacity: 0;
    }

    100% {
        -webkit-transform: translateY(0);
        -webkit-opacity: 1;
    }

    0% {
        -webkit-transform: translateY(1rem);
        -webkit-opacity: 0;
    }
}

.slideIn {
    -webkit-animation-name: slideIn;
    animation-name: slideIn;
}

.card {
    position: relative;
    top: 0;
    transition: top ease 0.1s;
    -webkit-transition: top ease 0.1s;
}

.card:hover {
    top: -5px;
}

.pulse-button {
    animation: pulse 2s infinite;
}

.pulse-button:hover {
    animation: pulse none;
}

.pulse-button:focus {
    animation: pulse none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}


/* ----Chosen----- */

.chosen-container-single .chosen-single span {
    font-size: 15px !important;
}


/* ----Datables---- */

#leadsTable_filter input {
    box-shadow: inset 0 0 3px 3px #fafafa !important;
    background-color: var(--white) !important;
    margin-left: 10px;
    font-family: inherit !important;
}

#dealsTable_filter input {
    box-shadow: inset 0 0 3px 3px #fafafa !important;
    background-color: var(--white) !important;
    margin-left: 10px;
    font-family: inherit !important;
}

#contactsTable_filter input {
    box-shadow: inset 0 0 3px 3px #fafafa !important;
    background-color: var(--white) !important;
    margin-left: 10px;
    font-family: inherit !important;
}

.dataTables_length select {
    padding: 1px 10px !important;
    box-shadow: inset 0 0 3px 3px #fafafa !important;
    background-color: var(--white) !important;
    margin-right: 6px;
    font-family: inherit !important;
}

table.dataTable thead th,
table.dataTable thead td {
    border-bottom: 1px solid #c5c5c5 !important;
}

.dataTables_wrapper.no-footer .dataTables_scrollBody {
    border-bottom: 1px solid #c9c9c9 !important;
}

.add_field_button {
    cursor: pointer;
}

div.dt-searchPane div.dataTables_length {
    float: none;
    text-align: center;
}

.input-group-addon {
    padding: 8px 12px;
    font-weight: 400;
    line-height: 1.2;
    color: #555;
    text-align: center;
    background-color: #f3f3f3;
    border-top: 1px solid #ced4da;
    border-bottom: 1px solid #ced4da;
}

.form-control[readonly] {
    background-color: #fcfcfc !important;
}

/* Invoice */
.invoice-box {
    max-width: 100%;
    margin: auto;
    padding: 30px;
    font-size: 16px;
    line-height: 24px;
    /* Updated for Nunito */
    font-family: "Nunito", sans-serif !important;
    font-size: 14px !important; /* Set to 14px for consistency */
    font-style: normal !important;
    font-weight: 400 !important;
    color: #555;
}

/* Specific overrides for invoice elements to ensure Nunito and correct styles */
.invoice-box * { /* Target ALL children of invoice-box to ensure Nunito */
    font-family: "Nunito", sans-serif !important;
    font-style: normal !important;
    font-weight: 400 !important;
    color: black !important; /* Ensured black color for invoice text */
}

.invoice-box .r-align {
    text-align: right;
}

.invoice-box .inv-terms ul li {
    margin-bottom: 5px;
    font-size: 14px !important; /* Adjusted for 14px base */
    font-family: "Nunito", sans-serif !important;
    font-weight: 400 !important;
}

.invoice-box .inv-terms ul {
    padding-left: 15px !important;
    margin-top: -10px !important;
}

.invoice-box .information {
    margin-bottom: 50px !important;
    display: block !important;
}

.invoice-box .inv-head {
    font-weight: 700 !important; /* Set to bold */
    font-size: 14px !important; /* Explicitly 14px */
    font-family: "Nunito", sans-serif !important;
    color: black !important;
}

.invoice-box .thanknote {
    font-weight: 700;
    color: #d72229;
}

.invoice-box .invoice {
    font-size: 15px; /* Keep this if it's intentionally different */
    font-family: "Nunito", sans-serif !important;
}

.invoice-box .total {
    border-top: 3px solid #dddddd;
    font-weight: bold !important; /* Ensure bold */
    font-size: 14px !important; /* Consistent 14px */
    font-family: "Nunito", sans-serif !important;
}

/* Specific invoice HTML elements */
.invoice-box table {
    font-family: "Nunito", sans-serif !important;
    font-size: 14px !important; /* Set to 14px for table contents */
    font-weight: 400 !important;
    color: black !important;
}

.invoice-box table tbody tr td,
.invoice-box table thead th {
    font-family: "Nunito", sans-serif !important;
    font-size: 14px !important; /* Set to 14px for table contents */
    font-weight: 400 !important;
    color: black !important;
}

.invoice-box .t { /* Specifically for your bank details table */
    font-family: "Nunito", sans-serif !important;
    font-size: 14px !important; /* Set to 14px */
    font-weight: 400 !important;
    color: black !important;
}

.invoice-box .text-start { /* For the "I & M BANK (USD)" headings etc. */
    font-family: "Nunito", sans-serif !important;
    font-size: 14px !important; /* Set to 14px */
    font-weight: 400 !important; /* Or 700 if you want these headings bold */
    color: black !important;
}

.invoice-box address {
    font-family: "Nunito", sans-serif !important;
    font-style: italic !important; /* As per your request for address */
    font-weight: 400 !important;
    color: black !important;
}

.invoice-box .inv-font { /* Used for the main invoice text blocks like From/Name Address */
    font-family: "Nunito", sans-serif !important;
    font-size: 14px !important; /* Set to 14px */
    font-weight: 400 !important;
    color: black !important;
}


/** RTL **/

.rtl {
    direction: rtl;
    font-family: Tahoma, 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif;
}

.rtl table {
    text-align: right;
}

.rtl table tr td:nth-child(2) {
    text-align: left;
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
    color: #c33;
    background-color: transparent;
    border-color: transparent transparent #f3f3f3;
    border-bottom: 3px solid !important;
}

.nav-link {
    color: #686868;
    font-family: inherit;
    padding: 10px 20px;
}

.nav-link:hover {
    color: #3d3d3d;
}

table {
    font-family: inherit !important;
}


/*
    th {
        font-weight: 400 !important;
    } */

.popover {
    width: 300px !important;
    overflow: hidden;
}

.popover img {
    width: 100% !important;
}

.crm-settings h5 {
    font-family: inherit !important;
    font-weight: 500;
    font-size: 1em;
    color: #c33;
}

.pieprogress svg {
    width: 18px;
    height: 18px;
    left: 80px;
    top: 10px;
    position: absolute;
}

.pieprogress {
    position: relative;
}

.logo-holder {
    width: 100px;
    height: 100px;
    border-radius: 5px;
    background-color: #fcfcfc;
    border: 1px solid #ddd;
    overflow: hidden;
}

.logo-holder img {
    width: 100%;
    padding: 10px;
}


/* Apex Charts */

.apexcharts-tooltip-title {
    background-color: #cc3333 !important;
    color: #fff;
}

.apexcharts-tooltip-marker {
    background-color: #cc3333 !important;
}


/* Dashboard */

.dashboard-card {
    border-radius: 0px !important;
}

.dashboard-card .btn {
    border-radius: 0px !important;
    color: #fff !important;
}

.dashboard-card span {
    font-family: inherit !important;
    font-size: 14px;
}

.dashboard-card ul li {
    list-style-type: none;
}

.dashboard-card ul li::before {
    content: "\2022";
    color: #c33;
    font-weight: bold;
    font-size: 20px;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}


/* jscalendar */

.jsCalendar.material-theme table {
    width: 100% !important;
    margin: 0px !important;
}

.jsCalendar .jsCalendar-title-row {
    display: block !important;
}

.jsCalendar .jsCalendar-week-days {
    margin-left: 30px !important;
    display: block !important;
}

.jsCalendar tbody {
    margin-left: 33px !important;
    display: block;
}

.pdfobject-container {
    height: 50rem;
    border: 0.8rem solid rgba(0, 0, 0, .1);
}

thead,
th {
    text-align: left;
}

.table-total {
    font-weight: 500;
    border-top: 3px solid #a3a3a3 !important;
    font-size: 17px;
}

.select2-selection--multiple {
    border: 1px solid #ced4da !important;
    padding: 8px 10px 8px 10px !important;
}

.release-order {
    font-family: inherit !important;
}

.release-order h1,
h2,
h3,
h4,
h5,
p {
    font-family: inherit !important;
    line-height: 20px;
}

.release-order-header {
    border-bottom: 8px solid #ec0101;
}

.release-order p {
    font-size: 16px;
}


.add {
    background-color: #0f9000;
    border: none;
    border-radius: 60px;
}

.modal {
    border-radius: 2em !important;
}

/* Sidebar */
/* .sideNav {
    height: 100vh;
    width: 50px;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    overflow-x: hidden;
    padding-top: 60px;
    transition: 0.2s;
}


.main-content {
    transition: 0.5s;
} */