﻿html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    /*background-color: white;*/
    min-height: 100%;
    font-family: Nunito, sans-serif;
    overflow-x: hidden; /* Prevent horizontal scrolling on mobile devices */
}

/*New Class*/
/*.index-home-background {
    background-color: transparent;
}*/
.index-home-background {
    background-color: rgba(255, 255, 255, 0.5) !important; /* White background with 50% transparency */
}

.flex-wrapper-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.flex-wrapper-vertical {
    margin-top: 50px;
    min-height: calc(100vh - 50px);
    display: flex;
    flex-direction: column;
}

main {
    flex-grow: 1
}

.modal .modal-body {
    background-color: var(--mdb-body-bg);
}

.first-row {
    margin-top: 80px;
}

#bgcanvas {
    width: 100%;
    height: stretch;
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

.bgshape {
    display: block;
    position: absolute;
}

.svg-container {
    position: absolute;
    top: 0px;
    right: 0;
    left: 0;
    width: 100%;
    /*height:stretch;*/
    z-index: -2;
}

.img-rounded {
    border-radius: 10px;
    max-width: 100%;
}

@media (min-width: 768px) {
    .img-rounded {
        border-radius: 10px;
        max-width: 100%;
    }
}

label {
    font-weight: bold;
    color: var(--mdb-light-dark);
}

#map {
    height: 500px;
    width: 96%;
    margin: 15px auto 15px auto;
}

.signature-pad > .signature-pad--body {
    width: 350px;
    height: 200px;
    margin-top: 5px;
    margin-bottom: 5px;
    background-color: white;
    border-radius: 10px;
    margin: auto;
}

.datatable {
    border-radius: 5px;
}

.datatable-inner {
    border-radius: 5px;
}

.datatable .priority-cell {
    background-color: rgba(0, 128, 0, 0.3);
}

.datatable .table > :not(caption) > * > .priority-cell {
    background-color: rgba(0, 128, 0, 0.3);
}

.datatable .candidate-cell {
    background-color: rgba(0, 0, 128, 0.3);
}

.datatable .table > :not(caption) > * > .candidate-cell {
    background-color: rgba(0, 0, 128, 0.3);
}
.candidate-list-class {
    background-color: #004963 !important;
    color: #fff !important;
    font-weight: bold;
}

treetable {
    background: var(--mdb-menu-light-dark);
    border-radius: 5px;
}

.treetable-table {
    border-radius: 5px;
}

.sortable-list {
    max-width: 100%;
    border: solid 1px #ccc;
    min-height: 60px;
    display: block;
    background: var(--mdb-menu-light-dark);
    border-radius: 4px;
}

.sortable-item {
    padding: 15px 10px;
    border-bottom: solid 1px #ccc;
    color: var(--mdb-light-dark);
    background: var(--mdb-menu-light-dark);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

/* Color of the navbar AFTER scroll */
.navbar-scrolled {
    background-color: var(--mdb-menu-light-dark);
}

.sidenav-link {
    justify-content: space-between;
}

h2 b {
    color: var(--mdb-primary);
}

h4 b {
    color: var(--mdb-primary);
}

.table th {
    font-weight: 900;
}

.autocomplete-custom-item-title {
    font-weight: 500;
}

.autocomplete-custom-item-subtitle {
    font-size: 0.8rem;
}

.autocomplete-custom-content div {
    padding: 0.5rem;
}

.autocomplete-item {
    padding: 0.5rem;
}

    .autocomplete-item .container {
        padding: 0;
    }

.form-outline .form-control ~ .form-label:not(.select-fake-value) {
    color: var(--mdb-light-dark);
    font-weight: bolder;
}

.form-outline .form-control:focus ~ .form-label {
    color: var(--mdb-primary);
    font-weight: bolder;
}

.form-outline .form-control ~ .form-label.select-fake-value {
    color: var(--mdb-input-color);
}

.form-outline {
    margin-top: 0px;
}

.card .file-upload-wrapper {
    border-radius: 5px;
}

.card .file-upload-mask {
    border-radius: 5px;
}

.card .file-upload-preview {
    border-radius: 5px;
}

.card .file-upload-render {
    border-radius: 5px;
}

    .card .file-upload-render img {
        border-radius: 5px;
    }

@-webkit-keyframes fpFadeInDown {
    from {
        opacity: 0;
        -webkit-transform: translate3d(0,-20px,0);
        transform: translate3d(0,-20px,0)
    }

    to {
        opacity: 1;
        -webkit-transform: translate3d(0,0,0);
        transform: translate3d(0,0,0)
    }
}

@keyframes fpFadeInDown {
    from {
        opacity: 0;
        -webkit-transform: translate3d(0,-20px,0);
        transform: translate3d(0,-20px,0)
    }

    to {
        opacity: 1;
        -webkit-transform: translate3d(0,0,0);
        transform: translate3d(0,0,0)
    }
}

/*Here*/
.full-width-container {
    position: relative;
    top: auto;
    margin: 0; /* Remove margins */
    padding: 0; /* Ensure no padding */
    width: calc(100vw - 5px); /* 100% width of the viewport, eliminate extra pixels */
    box-sizing: border-box; /* Include padding and borders in width calculation */
    overflow: hidden; /* Prevent unwanted horizontal scrolling */
}

@media (min-width: 576px) {
    .full-width-container {
        left: calc(((100vw - 540px) / -2)-3px);
    }
}

@media (min-width: 768px) {
    .full-width-container {
        left: calc((100vw - 720px) / -2);
    }
}

@media (min-width: 992px) {
    .full-width-container {
        left: calc((100vw - 960px) / -2);
    }
}

@media (min-width: 1200px) {
    .full-width-container {
        left: calc((100vw - 1140px) / -2);
    }
}

@media (min-width: 1400px) {
    .full-width-container {
        left: calc(calc((100vw - 1320px) / -2) - 8px);
    }
}

@media (max-width: 576px) {
    .hide-mobile {
        height: 0px; /*
        display: none;*/
    }
}

/* CSS */
#menu-title.center-title {
    transition: transform 0.5s ease;
    transform: translateX(25%);
}

.partial-view {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

    .partial-view.show {
        opacity: 1;
    }

/*New code for Bootstrap*/
/* CSS */
/* Reused from previous column */
.custom-subtitle {
    font-size: 20px;
    color: #444444;
}

.custom-request-demo-button {
    font-size: 1.10rem;
    color: black;
    background-color: #abc12a;
    border-radius: 15px;
    border: none; /* Remove Bootstrap default border */
}

.custom-card {
    max-width: 450px;
    background: linear-gradient(to bottom, rgba(173, 216, 230, 0.15), rgba(173, 216, 230, 0.05));
    border-radius: 20px;
    padding: 25px;
}

.custom-margin-uniform {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.custom-small-card {
    max-width: 350px;
    padding: 20px;
}

.custom-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.custom-card-content {
    background: #ffffff;
    border-radius: 15px;
    position: relative;
    z-index: 1;
    padding-top: 30px;
    flex-grow: 1;
}

.custom-card-text {
    color: #333333;
}

.custom-icon-image {
    height: 45px;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.custom-welder-image {
    width: 100%;
    max-width: 450px;
    height: auto;
    object-fit: cover;
    align-self: flex-start;
}

.custom-bottom-spacing {
    margin-bottom: 3rem;
}

/* Menu styles */
.custom-logo-container {
    width: 100%;
    max-width: 400px;
    height: 100px;
    margin-bottom: 0;
}

.custom-logo-image {
    max-height: 50px;
    width: auto;
}

.custom-menu-title {
    color: white;
    font-family: 'Nunito', sans-serif;
    font-size: 25px;
}

.custom-menu-button {
    border-radius: 20px;
    color: white;
    padding: 4px 12px;
    border: 2px solid transparent;
    text-transform: none;
    transition: all 0.3s ease-in-out;
}

    .custom-menu-button[data-target="OnLand"] {
        background-color: rgba(76, 136, 194, 0.15);
        border-color: #4C88C2;
    }

.custom-platform-button {
    background-color: rgba(108, 154, 161, 0.15);
    border-color: #6C9AA1;
}

.custom-comprehensive-button {
    background-color: rgba(90, 77, 71, 0.15);
    border-color: #5A4D47;
}

.custom-operational-impact-button {
    background-color: rgba(102, 122, 98, 0.15);
    border-color: #667A62;
}

@media (max-width: 768px) {
    .custom-logo-container {
        height: auto;
        padding-top: 1rem;
    }

    .custom-menu-content {
        margin-top: 1.5rem;
    }

    #buttons-container {
        justify-content: center !important;
    }
}

.menu-container {
    margin-bottom: 0;
    padding-bottom: 0;
}

.menu-content {
    flex-grow: 1;
    margin-bottom: 1rem;
}

.full-width-container {
    margin-bottom: 0 !important;
    padding: 0;
}

/* Styles for partial views */
.custom-partials-container {
    margin-bottom: 0;
}

.custom-partial-view {
    display: none;
    transition: opacity 0.5s ease-in-out;
}

/* --- New styles added for mobile devices --- */

/* Adjustments for mobile devices */
@media (max-width: 560px) {
    .menu-container {
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 100%;
        left: 0;
        z-index: 1000;
    }

    .menu-content {
        flex-direction: column;
        margin-left: 0;
        margin-top: 1rem;
        padding: 1rem;
        margin-top: 80px; /* Ensure content is not hidden behind the menu */
    }

        .menu-content img {
            width: 100%;
            height: auto;
        }

    .col-md-6, .col-md-8 {
        max-width: 100%;
        width: 100%;
    }

    .text-container {
        max-width: 100%;
    }

    #buttons-container {
        padding-left: 0;
        align-items: center;
    }

    .btn.show-partial {
        margin-bottom: 1rem;
        width: 80%;
        text-align: center;
    }

    #menu-title {
        text-align: center;
        margin-left: 0;
        transform: translateX(0%);
    }

    .custom-welder-image, .img-fluid {
        width: 100%;
        height: auto;
    }

    .text-container p {
        font-size: 16px;
        line-height: 1.4;
    }

    .full-width-container {
        margin: 0 !important;
        padding: 0 !important;
        width: 100%;
        left: 0 !important;
    }

    body {
        overflow-x: hidden;
    }
}

.menu-style {
    border-top: 2px solid black;
    margin: 0;
    padding: 0;
}

.menu-style-vertical {
    height: 100vh;
    background-color: #2e2e2e;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    min-height: 100vh;
}

.logo-container-style {
    width: 400px;
    height: 100px;
    margin: 0 auto;
}

.logo-image-style {
    max-height: 50px;
    width: auto;
}


.menu-title-style {
    color: white;
    text-align: left;
    max-width: 400px;
    margin-top: 20px;
    margin-left: 25%;
}


.buttons-container-style {
    padding: 15px;
    border-radius: 10px;
    min-height: 100px;
}

.buttons-inner-style {
    max-width: 400px;
    width: 100%;
    padding-left: 80px;
}

.button-style {
    background-color: #2e2e2e;
    border-radius: 20px;
    color: white;
    padding: 4px 16px;
    width: auto;
    text-transform: capitalize;
    border: 2px solid;
}

/* Buttons with custom borders */
.button-onland {
    border-color: #4C88C2;
}

.button-platform {
    border-color: #6C9AA1;
}

.button-comprehensive {
    border-color: #5A4D47;
}

.button-operational-impact {
    border-color: #667A62;
}

.menu-content-style {
    background-color: transparent;
}

.col-style {
    background-color: transparent;
}

.img-style {
    border-radius: 10px;
    width: 90%;
    height: auto;
}

.col-md-8-style {
    background-color: transparent;
}

.heading-style {
    font-family: 'Nunito', sans-serif;
    font-size: 28px;
}

.text-container-style {
    max-width: 450px;
}

.paragraph-style {
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #111111;
}

/*
view 2*/
.menu-border-top {
    border-top: 2px solid black;
}


@media (max-width: 576px) {

    .menu-full-height {
        height: 100px;
    }
}


@media (min-width: 576px) {

    .menu-full-height {
        height: 100vh;
        background-color: #2e2e2e;
    }
}


.logo-container-style {
    width: 400px;
    height: 100px;
    margin: 0 auto;
}

.logo-image-style {
    max-height: 50px;
    width: auto;
}

.menu-title-specific {
    color: white;
    text-align: left;
    max-width: 400px;
    margin-top: 20px;
    margin-left: 25%;
}

.max-width-350 {
    max-width: 350px;
}

.small-icon-image {
    width: 30px; 
    height: 30px; 
}

@media (max-width: 576px) {
    .small-icon-image {
        width: 20px; 
        height: 20px; 
    }
}


.uniform-img-style {
    width: 70%; /* Adjust this value to reduce the size proportionally */
    height: auto; /* Maintain the aspect ratio of the image */
}

.custom-margin {
    margin-left: -20px; /* Adjust this value as needed to bring the text closer */
}

/* Adjust the right margin of the image */
.col-style {
    margin-right: 10px; /* Reduce the right margin */
}

/* Make paragraph titles smaller */
.heading-style {
    font-size: 1.25rem; /* Adjust the title size */
}

.logo-container-custom {
    width: 100%;
    max-width: 400px;
    height: 100px;
    margin-bottom: 0;
}

.logo-img-custom {
    max-height: 50px;
    width: auto;
}

.menu-visible {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: transparent; 
    padding: 15px;
    width: 100%;
    height: auto;
    z-index: 1000; 
}

/* Footer adjustments for mobile devices */
@media (max-width: 576px) {
    .responsive-footer {
        padding: 20px; /* General padding to ensure space around the container */
        box-sizing: border-box; /* Include padding in the total width */
    }

        .responsive-footer h2 {
            margin: 20px auto !important; /* Add top and bottom margin with priority and centering */
        }

        .responsive-footer p {
            margin: 20px auto !important; /* Add top and bottom margin, centered */
            padding: 0 20px; /* Add padding to the sides for additional space */
        }

        .responsive-footer .btn {
            margin: 20px auto !important; /* Add top and bottom margin and center the button */
            display: block; /* Ensure the button is a block to keep it centered */
            padding: 15px 20px; /* Larger clickable area */
            max-width: 80%; /* Limit the button width */
        }
}
.compact-tariff-table {
    width: 100%;
    overflow-x: hidden !important;
}

    .compact-tariff-table .datatable,
    .compact-tariff-table .datatable-inner {
        width: 100%;
        overflow-x: hidden !important;
    }

    .compact-tariff-table table {
        width: 100%;
        table-layout: fixed;
    }

    .compact-tariff-table th,
    .compact-tariff-table td {
        padding-left: 4px !important;
        padding-right: 4px !important;
        font-size: 0.85rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

        /* Adjust column widths based on content type */
        .compact-tariff-table th:first-child,
        .compact-tariff-table td:first-child {
            width: 40px !important;
        }

    /* Checkbox columns */
    .compact-tariff-table [data-mdb-field="BAccumulateByLocation"] {
        width: 50px !important;
    }

    /* Short text columns */
    .compact-tariff-table [data-mdb-field="SComponent"],
    .compact-tariff-table [data-mdb-field="SRepair"],
    .compact-tariff-table [data-mdb-field="SLocation"],
    .compact-tariff-table [data-mdb-field="SDamage"],
    .compact-tariff-table [data-mdb-field="SUnitOfMeasure"] {
        width: 60px !important;
    }

    /* Number columns */
    .compact-tariff-table [data-mdb-field="FMatCost"],
    .compact-tariff-table [data-mdb-field="FHours"],
    .compact-tariff-table [data-mdb-field="FValue"],
    .compact-tariff-table [data-mdb-field="FOtherCosts"],
    .compact-tariff-table [data-mdb-field="FMaxQuantity"] {
        width: 70px !important;
    }

    /* Description should take more space */
    .compact-tariff-table [data-mdb-field="SName"] {
        width: auto !important;
    }

    /* When cell is being edited, allow overflow */
    .compact-tariff-table .table-editor__edit-cell {
        overflow: visible !important;
    }
/* Re-enable clicks only for labels that contain links */
.form-outline .form-label.label-has-link {
    pointer-events: auto;
}

.btn-narrow {
    width: 65px; /* fixed width for all buttons */
    padding-left: 0.9rem;
    padding-right: 0.9rem;
    text-align: center;
    display: inline-flex; /* icon and number aligned */
    align-items: center;
    justify-content: center;
    gap: 2px; /* space between icon and number */
    overflow: hidden;
}

.btn-narrow-number {
    max-width: 22px; /* adjusts according to button size and font */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

.table-editor .form-control {
    min-width: 60px; /* Ensure input fields have a minimum width */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

/* Set table layout to fixed */
.fix-tbl-min table {
    width: 100%;
    box-sizing: border-box;
}

/* Reset table cell padding */
table th,
table td {
    padding: 2.50px !important;
}

/*Set min-width for columns */
.col-min-w {
    min-width: 80px !important;
    width: auto;
}

/* Remove the up/down arrows inside the number input field Chrome, Safari, Edge, Opera */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/*Remove the up/down arrows inside the number input field Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

        .compact-tariff-table td {
            padding: 0.15rem 0.25rem !important;
            vertical-align: middle !important;
        }

        .compact-tariff-table th {
            padding: 0.25rem 0.35rem !important;
            font-size: 0.8rem !important;
            white-space: nowrap !important;
        }

        .compact-tariff-table .table-editor__input-select {
            padding: 0.15rem 0.25rem !important;
            margin: 0 !important;
            font-size: 0.8rem !important;
            min-height: unset !important;
        }

        .compact-tariff-table .select-wrapper {
            margin: 0 !important;
        }

        .compact-tariff-table .form-outline {
            margin: 0 !important;
        }

        .compact-tariff-table .form-control {
            min-height: unset !important;
            padding: 0.2rem 0.4rem !important;
        }

        /* Prevent horizontal scroll by setting table layout */
        .compact-tariff-table table {
            table-layout: auto !important;
            width: 100% !important;
        }

      
        .compact-tariff-table .table-editor__actions button {
            padding: 0.15rem 0.35rem !important;
            margin: 0 0.1rem !important;
            font-size: 0.75rem !important;
        }
