@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;400&display=swap');

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
    margin-bottom: 60px;
    background-color: #ededed;
    font-family: 'Roboto', sans-serif;
}
.kodu-left {
    min-width: 0;
}
.kodu-wrap {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.container{
    max-width: none;
}

.bg-lightgray {
    background-color: #fefefe !important;
}

.col-md-1.overflow-hidden {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table-hover tbody tr:hover td, .table-hover tbody tr:hover th,
.node-container:hover, .node-container.highlighted {
    background-color: #fef4d1 !important; /*#fef4d1;*/
    --bs-table-accent-bg: none;
}

.node-container {
    background-color: #fff; /*#f6f6f6;*/
    border-radius: 4px !important;
    width: 100%;
    padding: 4px 8px;
    align-items: center;
    display: flex;
    cursor: pointer;
    margin: 4px;
}

.light-background {
    background: #f6f5f4;
}

.section-container {
    background: #fefefe;
    border-radius: 4px;
    box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.05);
    padding: 5px;
    margin: 0 0 5px 0;
}

.form-control {
    padding: 6px 12px;
    border-radius: 1px;
    line-height: 14px !important;
    padding-left: 10px !important;
    padding-right: 10px
}

.hover-input {
    border: 1px solid transparent;
    outline: 0;
    box-shadow: none;
    transition: 0.1s all ease-out;
    background: transparent;
    -moz-appearance: none;
    -webkit-appearance: none;
}

.hover-input:hover,
.hover-input:active
{
    border: 1px solid #ddd;
    outline: 0;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    background: #fff;
}
/* When .hover-input-select is hovered, focus, or activated, target the button inside it */
.hover-input-select:hover button,
.hover-input-select:focus button,
.hover-input-select:active button {
    border: 1px solid #ddd;
    outline: 0;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    background: #fff !important;
}

/* When .hover-input-select is focused, target the button inside it */
.hover-input-select:focus button {
    border: 1px solid #66afe9;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);
    background: #fff !important;
}

/* Normal state of the button inside .hover-input-select */
.hover-input-select button {
    border: 1px solid transparent;
    outline: 0;
    box-shadow: none;
    transition: 0.1s all ease-out;
    background: transparent;
    -moz-appearance: none;
    -webkit-appearance: none;
    background: transparent !important;
}


input[type="checkbox"] {
    transition: background-color 0.3s ease;
    width: 1.35em;
    height: 1.35em ;
    display: flex;
    border-radius: 2px !important;
}

input[type="checkbox"]:hover {
    background-color: lightblue;
    cursor:pointer;
}

select {
    border-radius: 2px !important;
}

input:disabled {
    background-color: #fff!important;
}

.small-info-text {
    color: #aaa;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    font-size: 13px
}

.btn {
    border-radius: 2px !important;
    margin-top: 7px;
    margin-bottom: 7px;
}

.trim-text {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.text-pesa {
    color: #9C9894;
}

h2, h3 {
    margin-top: 10px;
    margin-bottom: 10px;
}

.bg-gray {
    background: #f6f6f6;
}

p, input, textarea {
    line-height: 14px !important;
}

select {
    padding: 6px 12px;
    padding-left: 10px !important;
    padding-right: 10px !important;
}

p {
    margin: 0 auto;
}

.btn-default {
    color: #333;
    background-color: #fff;
    border-color: #ccc;
}

.btn-default:focus {
    color: #333;
    background-color: #e6e6e6;
    border-color: #8c8c8c;
}

.btn-default:hover {
    color: #333;
    background-color: #e6e6e6;
    border-color: #adadad;
}

.btn-default:active {
    color: #333;
    background-color: #e6e6e6;
    border-color: #adadad;
}

.no-margin {
    margin: 0 auto !important;
}

.form-section-container {
    background: #fefefe;
    border-radius: 4px;
    box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.05);
    padding: 5px 0;
    margin: 0 0 15px 0;
}

.table-noborder td {
    border: none !important;
}

.pull-right {
    float: right !important;
}

thead {
    cursor: pointer;
}

.btn-remove {
    cursor: pointer;
    color: #d9534f;
    border: 0;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    padding: 4px 6px;
    box-sizing: border-box;
}

.secondary-info-field{
}

.highlight:hover{
    background: #fef4d1;
}

.caret-icon {
    font-size: 12px;
    margin-right: 5px;
}

.bg-highlight {
    background: #ffe997;
}

.light-small-header {
    font-size: 12px;
    color: #999;
    justify-content: flex-end !important;
    align-items: center;
    display: flex;
    overflow: hidden;
}

.border-left-yellow {
    border-left: 10px solid #fceebb;
}

.node-caret {
    margin-right: 5px;
    font-size: 18px;
}

.navbar {
    background-color: #93a0b3;
    height: 55px;
    overflow: hidden;
}

.navbar-local {
    background-color: #a093b3;
}

.navbar-server {
    background-color: #93a0b3;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 1rem;
}

    .nav-link i {
        color: #a2abc1; /* #b4bcd1*/
        font-size: 2em;
        transition: font-size 0.1s ease-in-out;
    }

.icon-with-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 64px;
    color: #dfd6d2;
    margin-top: 12px;
}

    .icon-with-text p {
        text-align: center;
        opacity: 0;
        font-size: 13px;
        color: #f1eeea;
        margin-top: 2px;
        transform: translateY(150%);
        transition: transform 0.1s ease-in-out, opacity 0.1s ease-in-out;
    }

.navbar:hover .icon-with-text p {
    transform: translateY(0);
    opacity: 1;
}

.navbar:hover .nav-link i {
    color: #fff;
    font-size: 1.5em;
}

.navbar:hover .nav-link i, .navbar:hover .nav-link, .navbar:hover .navbar-brand {
    transition: color 0.1s ease-in-out;
    color: #fff;
}

.navbar:hover .icon-with-text p {
    opacity: 1;
}

.nav-item:hover {
    background-color: #a2abc1;
}

.nav-item {
    color: #f1eeea !important;
}

.navbar-nav .nav-link, .navbar-brand, .navbar-nav .btn {
    color: #b4bcd1 !important; /* #b4bcd1*/
    transition: color 0.1s ease-in-out;
}

.navbar:hover .navbar-nav .nav-link, .navbar:hover .navbar-brand, .navbar:hover .navbar-nav .btn {
    color: #fff !important;
}

.navbar-nav .nav-link:hover, .navbar-nav .btn:hover {
    color: #a2abc1 !important;
}

.table thead tr th {
    border-bottom: 0px;
}

.btn-danger {
    background-color: #d9534f;
    border: none;
    align-items: center;
}


.dashboard-btn {
    max-width: 80px;
    font-size: 16px;
    color: white;
    margin: 0;
    padding: 9px 4px;
    display: flex;
}

/* Custom btn-pesa style */
.btn-pesa {
    background-color: #f7f5f3 !important;
    color: #9C9894 !important;
    border-color: #9C9894 !important;
}

    .btn-pesa:hover, .btn-pesa:focus {
        background-color: #e5e3e1 !important; /* Darker shade of the background color */
        color: #7A7671 !important; /* Slightly darker text color for better contrast */
        border-color: #9C9894 !important;
    }

/* Custom btn-outline-pesa style */
.btn-outline-pesa {
    background-color: transparent !important;
    color: #9C9894 !important;
    border-color: #9C9894 !important;
}

    .btn-outline-pesa:hover, .btn-outline-pesa:focus {
        background-color: #e5e3e1 !important; /* Darker shade for hover and focus states */
        color: #7A7671 !important; /* Slightly darker text color for better contrast */
        border-color: #9C9894 !important;
    }
}

.btn-pesa {
    color: #afa397;
    cursor: pointer;
}

.text-lightgray {
    color: #ccc;
}

.btn-outline-primary:hover {
    background:#428bca;
}

.tooltip {
    opacity: 1 !important;
    transition: opacity 0.1s ease-in-out !important;
}

.tooltip-inner {
    background-color: #fff; /* Background color */
    color: #333; /* Text color */
    padding: 2px 8px;
    border-radius: 3px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
}

.tooltip .arrow::before {
    border-top-color: #fff !important; /* For top positioned tooltips */
    background-color: #fff !important;
    color: #fff !important;
}

.modal-header, .modal-footer {
    border: none;
}

.btn-lightgreen {
    background-color: #5cb85c;
    border-color: #5cb85c;
    color: #ffffff; /* This is for white text. Adjust if needed. */
}

    .btn-lightgreen:hover, .btn-lightgreen:focus, .btn-lightgreen:active, .btn-lightgreen.active {
        background-color: #499d49; /* A bit darker for hover and active states */
        border-color: #3d8a3d;
    }

    .btn-lightgreen:disabled, .btn-lightgreen[disabled] {
        background-color: #5cb85c;
        border-color: #5cb85c;
        opacity: 0.65;
        cursor: not-allowed;
    }
.btn-outline-lightgreen {
    background-color: transparent;
    border-color: #5cb85c;
    color: #5cb85c;
}

    .btn-outline-lightgreen:hover, .btn-outline-lightgreen:focus, .btn-outline-lightgreen:active, .btn-outline-lightgreen.active {
        background-color: #5cb85c;
        border-color: #5cb85c;
        color: #ffffff; /* This is for white text. Adjust if needed. */
    }

    .btn-outline-lightgreen:disabled, .btn-outline-lightgreen[disabled] {
        border-color: #5cb85c;
        color: #5cb85c;
        opacity: 0.65;
        cursor: not-allowed;
    }

.btn-darkgray {
    background-color: #eee;
    border-color: #eee;
    color: #666; /* Darker text color for contrast. Adjust if needed. */
}

    .btn-darkgray:hover, .btn-darkgray:focus, .btn-darkgray:active, .btn-darkgray.active {
        background-color: #f1f1f1; /* Slightly darker shade for hover and active states */
        border-color: #f1f1f1;
        color: #666;
    }

    .btn-darkgray:disabled, .btn-darkgray[disabled] {
        background-color: #ccc;
        border-color: #ccc;
        opacity: 0.65;
        cursor: not-allowed;
    }

.btn-gray {
    background-color: #f6f6f6;
    border-color: #f6f6f6;
    color: #666; /* Darker text color for contrast. Adjust if needed. */
}

    .btn-gray:hover, .btn-gray:focus, .btn-gray:active, .btn-gray.active {
        background-color: #fff; /* Slightly darker shade for hover and active states */
        border-color: #fff;
        color: #666;
    }

    .btn-gray:disabled, .btn-gray[disabled] {
        background-color: #ccc;
        border-color: #ccc;
        opacity: 0.65;
        cursor: not-allowed;
    }

.btn-outline-gray {
    background-color: transparent;
    border-color: #ccc;
    color: #666;
}

    .btn-outline-gray:hover, .btn-outline-gray:focus, .btn-outline-gray:active, .btn-outline-gray.active {
        background-color: #fff;
        border-color: #ccc;
    }

    .btn-outline-gray:disabled, .btn-outline-gray[disabled] {
        border-color: #ccc;
        color: #666;
        opacity: 0.65;
        cursor: not-allowed;
    }

[data-action="toggle"]{
    cursor: pointer;
}

.btn-primary {
    background-color: #408cc8;
    border-color: #408cc8;
}

    .btn-primary:hover,
    .btn-primary:focus,
    .btn-primary:active {
        background-color: #307cb2; /* darker shade for hover state */
        border-color: #307cb2;
    }

.btn-outline-primary {
    color: #408cc8;
    border-color: #408cc8;
}

    .btn-outline-primary:hover,
    .btn-outline-primary:focus,
    .btn-outline-primary:active {
        color: #fff;
        background-color: #408cc8;
        border-color: #408cc8;
    }


.modal-content {
    background-color: #f3f3f3 ;
}

.dropdown {
    width: 100% !important;
    padding:0 !important;
}

.dropdown-toggle {
    margin: 0 !important;
    background: #fff !important;
    border: 1px solid #ced4da;
}

.sticky-right {
    position: sticky;
    right: 0;
    text-align: right;
}

.sticky-left {
    position: sticky;
    left: 0;
    text-align: left;
}

tr td{
    border: none;
}

.center-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.full-height {
    display: flex;
    align-items: stretch; /* This makes the div stretch to full height of its container */
}

.warning {
    display: none; /* Initially hidden */
    position: absolute;
    background-color: #ffc107; /* Yellow background */
    padding: 5px;
    border-radius: 4px;
    z-index: 10; /* Ensures the div is displayed on top */
    font-size: 12px;
    color: #333; /* Dark text for better contrast with yellow background */
    white-space: nowrap; /* To ensure the warning text stays in a single line */
}

/* Light gray button style */
.btn-lightgray {
    background-color: #d3d3d3; /* light gray color */
    color: #000; /* text color */
}

    /* Hover effect for light gray button */
    .btn-lightgray:hover {
        background-color: #b0b0b0; /* slightly darker gray for hover */
        color: #000; /* keep text color unchanged */
    }

/* Outline light gray button style */
.btn-outline-lightgray {
    color: #d3d3d3;
    border-color: #d3d3d3;
    background-color: transparent;
}

    /* Hover effect for outline light gray button */
    .btn-outline-lightgray:hover {
        background-color: #d3d3d3; /* fill button with light gray on hover */
        color: #000; /* text color on hover */
    }

.disabled-link {
    pointer-events: none;
    cursor: default;
    color: #ccc; /* You can change this to any grayed-out color you prefer */
}

.btn-check:checked + .btn-outline-light{
    background: #fff;
}

input[type='file'].hide-choosefile-btn::file-selector-button {
    display: none;
}

input[type='file'].hide-choosefile-btn::-webkit-file-upload-button {
    display: none;
}

.form-control[readonly]{
    background: #fefefe;
}

.empty-field {
    display: none
}

.advanced-field {
    display: none
}

/* Style for the scrollbar itself */
.overflow-scroll::-webkit-scrollbar {
    width: 8px; /* Width of the vertical scrollbar */
    height: 8px; /* Height of the horizontal scrollbar */
}

/* Style for the track (background) of the scrollbar */
.overflow-scroll::-webkit-scrollbar-track {
    background: #f1f1f1; /* Light grey track */
}

/* Style for the handle (thumb) of the scrollbar */
.overflow-scroll::-webkit-scrollbar-thumb {
    background: #888; /* Darker grey thumb */
    border-radius: 4px; /* Rounded corners on the thumb */
}

    /* Hover styles for the thumb */
    .overflow-scroll::-webkit-scrollbar-thumb:hover {
        background: #555; /* Dark grey thumb when hovering */
    }

textarea {
    white-space: pre-wrap; /* CSS3 */
    white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
    white-space: -pre-wrap; /* Opera 4-6 */
    white-space: -o-pre-wrap; /* Opera 7 */
    word-wrap: break-word; /* Internet Explorer 5.5+ */
}

.bc-toolbar {
    display: flex;
    gap: .5rem;
    align-items: center;
    padding: .5rem .5rem
}

.bc-pane {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px
}

.bc-tree {
    font-size: 13px;
    line-height: 1.25;
    max-height: 48vh;
    overflow: auto;
    padding: .25rem
}

.bc-node {
    position: relative
}

.bc-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .25rem .35rem;
    border-radius: 4px;
    margin: .1rem 0
}

    .bc-item:hover {
        background: #f8f9fa
    }

.bc-toggle {
    cursor: pointer;
    user-select: none;
    width: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6b7280
}

.bc-code {
    font-weight: 600;
    color: #111827;
    min-width: 5.2rem
}

.bc-name {
    color: #111827
}

.bc-badges {
    margin-left: auto;
    display: flex;
    gap: .25rem;
    flex-wrap: wrap
}

.bc-badge {
    font-size: 11px;
    padding: .05rem .35rem;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #374151
}

.bc-children {
    margin-left: 1.4rem;
    border-left: 1px dashed #e5e7eb;
    padding-left: .5rem
}

.bc-selected-pane {
    font-size: 13px;
    max-height: 48vh;
    overflow: auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: .5rem
}

.bc-chip {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    background: #eef2ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    padding: .2rem .5rem;
    margin: .15rem
}

    .bc-chip .remove {
        cursor: pointer;
        font-weight: 700
    }

#BuildingCodeTree .bc-toggle {
    cursor: pointer;
    user-select: none;
}

#CountyTree .bc-toggle {
    cursor: pointer;
    user-select: none;
}

[name="company-offer-node"] {
    cursor: pointer;
}
    [name="company-offer-node"]:hover {
        box-shadow: 0 0.4rem 0.8rem rgba(0,0,0,0.9)!important;
    }