html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 14px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    opacity: 0;
    font-family: Montserrat;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

fieldset {
    margin: 8px;
    border: 1px solid silver;
    padding: 8px;
    border-radius: 4px;
}

legend {
    padding: 2px;
}

.fieldset {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 1rem 0.75rem 0.75rem;
    position: relative;
}

.fieldset-title {
    position: absolute;
    top: -0.7em;
    left: 1rem;
    background: white; /* same as page background */
    padding: 0 0.5em;
    font-weight: 600;
    font-size: 16px;
}

.fieldset-body {
    margin-top: 0.5rem;
}

.k-checkbox-label, .k-radio-label, .k-form .k-form-field > .k-label, .k-form .k-form-field > kendo-label, .k-form .k-form-label {
    font-weight: 500;
}

.font-400 {
    font-weight: 400;
}

.font-500 {
    font-weight: 500;
}

.font-600 {
    font-weight: 600;
}

.navbar {
    padding: 0rem 1rem !important;
}

.k-tabstrip-items-wrapper .k-tabstrip-item:focus, .k-tabstrip-items-wrapper .k-tabstrip-item.k-focus, .k-tabstrip-items-wrapper .k-item:focus, .k-tabstrip-items-wrapper .k-item.k-focus {
    box-shadow: none;
}

.k-tabstrip-content:focus, .k-tabstrip-content.k-focus, .k-tabstrip > .k-content:focus, .k-tabstrip > .k-content.k-focus {
    outline: none;
}

.k-menu-right-align {
    margin-left: auto;
    margin-inline-start: auto !important;
    margin-inline-end: 0px;
}

    .k-menu-right-align .k-animation-container {
        left: auto !important;
        right: 0 !important;
    }

#myMenu {
    font-weight: 600;
    padding-inline: 0.5rem;
}

.image-menu-item img {
    height: 40px;
}

.k-button,
.k-floating-label-container > .k-floating-label {
    font-weight: 500;
}

.w100 {
    width: 100%;
}

.no-shadow {
    box-shadow: none !important;
}

.red {
    color: red;
}

.discount-checkbox {
    color: white;
    position: absolute;
    right: 10px;
}


.list-item .fieldset-title {
    font-size: 14px;
    background: #f5f5f5;
}

.list-item {
    position: relative;
    border: 1px solid #e8e8e9;
    border-radius: 4px;
    padding: 6px;
    background: #f5f5f5;
    height: auto !important;
    cursor: auto;
}

/* Target the even rows of the specific classes */
.k-listview-content > .list-item:nth-child(even of .list-item),
.k-listview-content > .fieldset-title:nth-child(even of .list-item) {
    background-color: white;
}

    .k-listview-content > .list-item:nth-child(even of .list-item) .fieldset-title {
        background-color: white;
    }

.k-listview-content {
    padding: 0 11px;
    overflow-x: hidden;
}

.light-separator {
    margin-block: 4px;
}

.w-80 {
    width: 80px;
    display: inline-block;
    text-align: right;
    padding-right: 4px;
}

.w-90 {
    width: 90px;
    display: inline-block;
    text-align: right;
    padding-right: 4px;
}

.w-100 {
    width: 100px !important;
    display: inline-block;
    text-align: right;
    padding-right: 4px;
}

.active-chb {
    position: absolute;
    bottom: 0;
    right: 15px;
}

.noloaderList .k-listview-content {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    min-height: 500px; /* Keeps the container from collapsing */
}

/* Ensure no gray overlays or masks appear */
.noloaderList .k-loading-mask,
.noloaderList .k-loading-color {
    display: none !important;
}

.font-10 {
    font-size: 10px;
}

.font-12 {
    font-size: 12px;
}

.font-14 {
    font-size: 14px;
}

.font-16 {
    font-size: 16px;
}

.font-18 {
    font-size: 18px;
}

.font-24 {
    font-size: 24px;
}

.pointer {
    cursor: pointer;
}

.k-notification {
    color: black !important;
}
/* Prevent scrollbars from popping up during the tab transition
.k-tabstrip-content {
    max-height: 87vh !important;
}*/

.k-tabstrip-items {
    width: 200px;
}

.k-sortable-hint {
    opacity: 1 !important;
    background: #fff !important;
    color: #000 !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    border: 1px solid #ccc;
}

    .k-sortable-hint td {
        background: #fff !important;
        color: #000 !important;
    }

.drag-hint {
    background: #ffffff;
    border-radius: 8px;
    padding: 10px 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    font-size: 14px;
    min-width: 200px;
    font-family: Montserrat, sans-serif;
}

.k-edit-cell .k-input-inner {
    padding-block: 0.15rem !important;
    padding-inline: 0.5rem !important;
}

#template_groups .k-detail-cell {
    padding: 0 !important;
}

    #template_groups .k-detail-cell .k-grid {
        border-right: none !important;
    }

.k-grid-header {
    background-color: #AECA36;
    color: white;
    font-weight: 600;
}

.active-menu-item {
    border-bottom: 3px solid #AECA36;
}

.k-grid-toolbar {
    background-color: #334410;
}

.k-grid-tradegroup-title {
    width: calc(100% - 210px);
}

.k-grid-invoice-title {
    width: calc(100% - 430px);
}

.toolbar-title {
    color: white;
    font-weight: 600;
    text-align: center;
    width: 100%;
}

.k-menu-link {
    padding-block: var(--kendo-spacing-1, 0.5rem);
}

.role-box {
    position: absolute;
    left: 0;
    top: -2px;
    font-size: 12px;
    border-top-left-radius: 4px;
    font-weight: 500;
    color: white;
    padding: 2px 8px;
    background-color: #AECA36;
}

.role-border {
    border-top: 2px solid #AECA36 !important;
}

.role-padding {
    padding-top: 2rem !important;
}

#captcha-success {
}

.k-dialog-content {
    max-height: 90vh !important;
}

.kgr-block {
    width: 50px;
    display: inline-block;
    font-weight: 600;
}

.hide {
    display: none;
}

.k-listview-content > .k-selected {
    background-color: color-mix(in srgb, var(--kendo-color-primary, #007bff) 100%, transparent) !important;
    color: white !important;
}

.k-stepper .k-progressbar-horizontal {
    margin-top: -3px;
}

.k-stepper .k-svg-icon, .k-svg-icon.k-icon-md {
    width: 1.5rem;
    height: 1.5rem;
}

.k-stepper .k-step-label,
.k-stepper .k-step-text {
    max-width: none !important
}

.font-italic {
    font-style: italic;
}

.suffix {
    padding-inline: 8px;
    font-weight: 500;
}

.k-numerictextbox .k-input-inner {
    text-align: right;
}


.suffix-label ~ .k-floating-label {
    max-width: 80% !important;
}

.k-floating-label-container.k-focus .k-floating-label {
    max-width: none !important;
}

.mt-label {
    margin-top: 28px !important;
}

.k-menu-popup {
    max-height: none !important;
}

.black {
    color: black;
}

.dark-green {
    background: #334410 !important;
    color: white !important;
}

.tradeview-dark-header {
    background: #334410 !important;
    padding: 0.25rem 1rem !important;
    font-size: 14px;
    border-radius: 4px;
    color: white !important;
    top: -1rem !important;
}

.tradeview-light-header {
    background: #AECA36 !important;
    padding: 0.25rem 1rem !important;
    font-size: 14px;
    border-radius: 4px;
    top: -1rem !important;
}

.k-window.k-window-md {
    width: 900px;
}

.k-input-suffix .k-input-inner {
    padding-inline: var(--kendo-spacing-1, 0.75rem) !important;
}

.k-chip.k-chip-outline.k-chip-success {
    color: #212529;
    border-color: #ccc;
}

.k-chip-text, .k-chip-label {
    font-weight: 600;
}

.k-chip.k-chip-lg {
    line-height: 1.5;
    padding-left: var(--kendo-spacing-2, 0.25rem);
    max-width: 250px;
}

.k-chip-remove-action .k-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.k-tooltip {
    max-width: 300px;
}

.k-grid .k-grid-header .k-table-th {
    vertical-align: middle;
}

.k-grid .k-column-title:not(:has(> .custom-header)) {
    white-space: pre-wrap;
    text-align: center;
    margin: auto;
}

.k-grid .k-numeric-wrap .k-select {
    display: none;
}

.k-grid .k-numeric-wrap {
    padding-right: 0;
}

.k-grid .k-loading-mask, .k-grid .k-loading-image, .k-grid .k-loading-color {
    display: none !important;
    visibility: hidden !important;
}

.float-right {
    float: right;
}

.float-left {
    float: left;
}

.k-grid-table, .k-grid-header-table {
    table-layout: fixed !important;
}

.k-footer-template, .aggregate-cell {
    background-color: #AECA36;
    color: white;
    font-weight: 600 !important;
}

    .k-footer-template .k-table-td {
        font-weight: 600 !important;
    }

#publicTemplates .k-grid-table tbody tr,
#publicTemplateGroups .k-grid-table tbody tr {
    height: 36px;
}

#projectOverview .k-grid-table tbody tr {
    height: 40px;
}

#contractInvoices .k-grid-table tbody tr {
    height: 44px;
}

#contractCosts .k-grid-table tbody tr {
    height: 56px;
}

.white-border-checkbox .k-checkbox:checked, .white-border-checkbox .k-checkbox.k-checked {
    border-color: white !important;
}

.k-grid-toolbar .k-grid-header-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none; /* Allows clicks to pass through if overlapping occurs */
    margin: 0;
    padding: 0;
}

.readonly {
    pointer-events: none;
}

    .readonly .delete-icon {
        display: none;
    }

    .readonly .fa-eye,
    .readonly .sr-checkbox {
        pointer-events: all !important;
        position: relative;
        z-index: 1;
    }

.price-row {
    display: flow-root;
    width: 100%;
}

#reportViewerDashboard {
    position: absolute;
    left: 5px;
    right: 5px;
    top: 55px;
    bottom: 5px;
    overflow: hidden;
    font-family: Verdana, Arial;
}

.action-log {
    position: relative;
    height: 90px;
    overflow: hidden;
    border: 0.5px solid var(--color-border-tertiary);
    border-radius: 6px;
    background: var(--color-background-secondary);
    padding: 0 12px;
    font-size: 13px;
}

.log-item {
    position: absolute;
    left: 12px;
    right: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 22px;
}

    .log-item .ts {
        display: inline-block;
        width: 140px;
        color: #999;
        font-size: 12px;
        font-family: monospace;
    }

@keyframes logFlash {
    0% {
        background-color: rgba(255, 220, 50, 0);
    }

    30% {
        background-color: rgba(255, 220, 50, 0.75);
    }

    100% {
        background-color: rgba(255, 220, 50, 0);
    }
}

.log-item--flash {
    animation: logFlash 2s ease-out forwards;
    border-radius: 3px;
    display: inline-block;
    padding: 0 4px;
    margin: 0 -4px;
}

.row--flash {
    animation: logFlash 2s ease-out forwards;
}

.trade-row:has(.closed-trade),
li:has(.closed-trade),
tr.k-table-row:has(.closed-trade) td {
    background-color: rgba(174, 202, 54, 0.3);
    color: #4a5e40;
}

tr.k-table-row:has(.closed-trade):not(:has(.marked)):hover td {
    background-color: rgba(174, 202, 54, 0.52) !important;
}

.k-table-td:has(.marked) {
    background: #ffccff !important;
    background-color: #ffccff !important;
}

.k-grid .k-column-title:has(> .right) {
    margin-right: 0;
}

.k-column-title:has(>.right),
.k-table-th:has(.right),
.k-table-td:has(.right) {
    text-align: right
}

.k-menu.k-context-menu .k-item.k-focus > .k-link {
    box-shadow: none !important;
}

.wrap-text {
    white-space: pre-wrap !important;
}

.head-title {
    display: inline-block;
    margin-inline: 8px;
}

.head-budget-row {
    display: flex;
    flex-direction: column; /* label stacked above value */
    align-items: flex-end;
    line-height: 1.3;
}

.head-label {
    font-weight: bold;
    white-space: nowrap;
    font-size: 12px;
}

.head-value {
    white-space: nowrap;
}

th:has(.custom-header) .k-cell-inner,
th:has(.custom-header) .k-link,
th:has(.custom-header) .k-column-title {
    width: 100%;
    flex: 1 1 100%;
    overflow: visible;
}

th:has(.custom-header) .custom-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.align-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.align-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.line-16 {
    display: block;
    line-height: 16px;
}

#projectOverview .k-grid-header {
    position: sticky;
    top: 0px; /* your navbar height */
    z-index: 10;
}

    #projectOverview .k-grid-header table,
    #projectOverview .k-grid-table {
        table-layout: fixed !important;
    }

.toggle-btn {
    padding-inline: 2px;
    height: 33px;
}

.k-table-row:has(.tg-disabled) > td {
    pointer-events: none;
    color: #999 !important;
    filter: grayscale(0.3);
}

    .k-table-row:has(.tg-disabled) > td > * {
        opacity: 0.45;
    }

.k-table-row:has(.tg-disabled) .group-icon,
.k-table-row:has(.tg-disabled) .k-checkbox-wrap {
    display: none;
}

.tg-detail-row > td {
    padding: 0 !important;
    border-top: none !important;
}

.tg-detail-row .k-grid {
    border: none;
    border-radius: 0;
}

.tg-detail-row .k-grid-header {
    display: none;
}

.orange-eye {
    color: darkorange;
}

.green-eye {
    color: #334410;
}

.no-eye {
    color: transparent;
}

.k-table-td:has(.toggle-cell) {
    cursor: pointer;
}

.k-table-td:has(.center) {
    text-align: center;
}

.k-edit-cell .k-button {
    padding: 4px !important;
}

.k-edit-cell {
    padding: 2px !important;
}

.k-dirty {
    display: none;
}

@keyframes onAutoFillStart {
    from {
    }

    to {
    }
}

input:-webkit-autofill {
    animation-name: onAutoFillStart;
    animation-duration: 1ms;
}

.wrap-label {
    display: flex;
    align-items: flex-start;
}

    .wrap-label .k-checkbox-wrap {
        flex-shrink: 0;
    }

    .wrap-label .k-checkbox-label {
        display: inline-flex !important;
        align-items: flex-start;
        gap: 0px;
        margin-top: 1px;
        white-space: normal;
    }

        .wrap-label .k-checkbox-label .kgr-block {
            flex-shrink: 0;
            min-width: 50px; /* keeps all numbers same width so text columns align */
        }

#projectOverview .k-grid-table .k-table-thead .k-table-row:first-child {
    background-color: #334410;
}
