html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

footer {
    background-color: #f8f9fa;
    /* sets the background color to a light gray */
    opacity: 1;
    /* sets the opacity to 1, making the footer non-transparent */
}

body {
    margin-bottom: 60px;
}

/* <> ReportViewer */
.trv-report-viewer {
    height: calc(100vh - 160px) !important;
    /*min-height: 800px !important;*/
    font-family: Verdana, Arial !important;
}

.trv-parameters-area.preview {
    display: flex;
    flex-direction: column;
}

.trv-parameters-area.preview .trv-parameters-area-content {
    position: static !important;
}

.trv-parameters-area .trv-parameters-area-footer {
    position: static !important;
}

.trv-parameters-area .trv-parameters-area-preview-button {
    position: static !important;
    margin: 0.5em 0em 0.3em 0.4em;
}

.trv-parameter-container .trv-parameter-title {
    white-space: initial !important;
}

input[type="text"],
select {
    width: 150px;
}

.modal {
    position: fixed;
    z-index: 999;
    height: 100%;
    width: 100%;
    top: 0;
    background-color: Black;
    filter: alpha(opacity=60);
    opacity: 0.6;
    -moz-opacity: 0.8;
    display: none;
}

.center {
    z-index: 1000;
    margin: 50px auto;
    padding: 10px;
    width: 130px;
    background-color: rgb(255, 255, 255);
    border-radius: 10px;
    filter: alpha(opacity=100);
    opacity: 1;
    -moz-opacity: 1;
    height: 60px;
    width: 60px;
    align-content: center;
}

.connectbutton {
    position: relative;
    display: inline-block;
    margin: 50px;
}

.connectbutton .img-top {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 99;
}

.connectbutton:hover .img-top {
    display: inline;
}

.jumbotron {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    margin-bottom: 1px !important;
}

.k-numerictextbox>input {
    text-align: end;
}

.k-datepicker>input {
    text-align: center;
}

@media print {

    /* All your print styles go here */
    footer {
        display: none !important;
    }
}

/* Currency and Amount Styles */
.currency {
    text-align: right;
}

.currency.negative {
    color: red;
}

.amount-input,
.form-control[name*='Amounts[]'] {
    width: 150px;
    /* Width to accommodate digits */
    text-align: right;
}

.form-control[name*='Descriptions[]'],
.form-control[name*='Names[]'] {
    width: 150px;
    text-align: left;
}

/* Card Styles */
.card {
    margin-bottom: 0 !important;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Card Body to be responsive */
.card-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Table Styles */
.table-spreadsheet {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    flex-grow: 1;
    margin: 0;
}

.table-spreadsheet th,
.table-spreadsheet td {
    border: 1px solid #dee2e6;
    padding: 0px;
    text-align: left;
    vertical-align: middle;
}

.table-spreadsheet th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #495057;
}

.table-spreadsheet  .name-column {
    width: 25%;
}


.table-spreadsheet .description-column {
    width: 55%;
}

.table-spreadsheet .amount-column {
    width: 15%;
    text-align: right;
}

.table-spreadsheet .percentage-column {
    width: 15%;
    text-align: right;
}

.table-spreadsheet .form-control {
    width: 100%;
    box-sizing: border-box;
}

.table-spreadsheet tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

.table-spreadsheet tbody tr:hover {
    background-color: #e9ecef;
}

.table-spreadsheet tfoot tr {
    font-weight: bold;
}

.currency,
.total-amount {
    text-align: right;
}

/* Header Styles */
.header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #dee2e6;
    background-color: #f8f9fa;
    margin-bottom: 20px;
}

.header-left,
.header-right {
    flex: 1;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo {
    max-height: 80px;
    margin-right: 20px;
}

.company-details {
    line-height: 1.4;
}

.company-details h1 {
    margin: 0;
    font-size: 24px;
    color: #343a40;
}

.company-details p {
    margin: 5px 0;
    font-size: 14px;
    color: #495057;
}

.header-right {
    text-align: right;
}

.header-right p {
    margin: 5px 0;
    font-size: 14px;
    color: #495057;
}

.header-right input.form-control {
    display: inline-block;
    width: auto;
    max-width: 150px;
    margin-left: 10px;
}

/* Info Container Styles */
.info-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.info-section {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 20px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    flex: 1;
}

.info-section h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 20px;
    color: #007bff;
}

.info-section p {
    margin: 5px 0;
    font-size: 16px;
    color: #343a40;
}

.info-section p strong {
    font-weight: bold;
    color: #495057;
}

.client-info {
    border-color: #007bff;
}

#clientDropdown {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    background-color: #ffffff;
    max-height: 200px;
    overflow-y: auto;
    position: absolute;
    z-index: 1000;
    width: calc(100% - 2px);
}

.dropdown-item {
    padding: 8px;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: #e9ecef;
}

.project-info {
    border-color: #28a745;
}

#projectDropdown {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    background-color: #ffffff;
    max-height: 200px;
    overflow-y: auto;
    position: absolute;
    z-index: 1000;
    width: calc(100% - 2px);
}

.dropdown-item {
    padding: 8px;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: #e9ecef;
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-left,
    .header-right {
        flex: none;
        width: 100%;
        margin-bottom: 10px;
    }

    .header-left {
        display: block;
        text-align: center;
    }

    .logo {
        margin: 0 auto 10px;
    }

    .header-right {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .company-details h1 {
        font-size: 20px;
    }

    .company-details p {
        font-size: 12px;
    }

    .header-right h2 {
        font-size: 24px;
    }

    .header-right p {
        font-size: 12px;
    }
}

/* Add styles for buttons here */
.form-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

/* Align action buttons to the right */
.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
    /* Add space under action buttons */
}

.form-actions .btn {
    margin-left: 15px;
    /* Space between buttons, adjust as needed */
}

/* Hide action buttons in print and PDF output */
@media print {
    .form-actions {
        display: none !important; 
    }
}

/* Hide action buttons in PDF generation */
.no-print {
    display: none;
}

.k-numerictextbox {
    padding-right: 0; /* Remove any padding on the right side */
}

.k-numerictextbox .k-select {
    margin-right: 0; /* Remove any margin on the right side of the spinner */
}

.k-numerictextbox input.k-input {
    padding-right: 1.5em; /* Adjust input padding to reduce space between input and spinner */
}

/* Ensure the form container has relative positioning */
.form-container {
    position: relative;
}

/* Make sure the progress mask covers the viewport */
.k-loading-mask {
    position: fixed; /* Use fixed positioning to cover the viewport */
    top: 0;
    left: 0;
    width: 100vw; /* Full width of the viewport */
    height: 100vh; /* Full height of the viewport */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.7); /* Optional: semi-transparent background */
    z-index: 1000; /* Ensure it is on top of other elements */
}
.amount-label, .amount-value {
    display: inline-block;
    margin: 0 5px; /* Optional: adds space between the label and value */
    vertical-align: middle; /* Aligns items vertically in the middle */
}