html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
    position: relative;
    min-height: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

body {
    background-color: #eaecef; /*#f3f3f3*/
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
}

main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}


.container{
    max-width: none;
}

.table-hover tbody tr:hover td, .table-hover tbody tr:hover th,
.node-container:hover, .node-container.highlighted {
    background-color: #fef4d1;
    --bs-table-accent-bg: none;
}

.node-container {
    background-color: #f6f6f6;
    border-radius: 4px !important;
    width:100%;
    padding: 4px 8px;
    align-items: center;
    display: flex;
    cursor: pointer;
    margin: 4px;
}

.light-background {
    background: #f6f5f4;
}

.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;
}

.hover-input:focus
{
    border: 1px solid #66afe9;
    outline: 0;
    -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;
}

input[type="checkbox"] {
    transition: background-color 0.3s ease;
    width: 1.35em;
    height: 1.35em ;
    display: flex;
    border-radius: 4px !important;
}

input[type="checkbox"]:hover {
    background-color: lightblue;
    cursor:pointer;
}

select {
    border-radius: 4px !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: 4px !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: #f8f8f8;
}


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 1px 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: 4px;
    padding: 4px 6px;
    box-sizing: border-box;
}

.secondary-info-field{
    display:none;
}

.highlight:hover{
    background: #fef4d1;
}

.caret-icon {
    margin-right: 5px; /* Adjust as needed */
}

.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: 14px;
}

.text-bold{
    font-weight: 600;
}

.btn-purple {
    color: #ffffff;
    background-color: #6f42c1; /* Default purple shade */
    border-color: #6f42c1;
}

    .btn-purple:hover {
        color: #ffffff;
        background-color: #5a349e; /* Darken the shade on hover */
        border-color: #5a349e;
    }

    .btn-purple:focus, .btn-purple.focus {
        box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.5); /* Lighter purple shade for focus state */
    }

    .btn-purple:disabled, .btn-purple.disabled {
        background-color: #6f42c1;
        border-color: #6f42c1;
        opacity: 0.65;
    }

.btn-outline-purple {
    color: #6f42c1; /* Using your purple as text color */
    background-color: transparent;
    border-color: #6f42c1; /* Purple border */
}

    .btn-outline-purple:hover {
        color: #ffffff; /* White text on hover */
        background-color: #6f42c1; /* Purple background on hover */
        border-color: #5a349e; /* Darker border on hover */
    }

    .btn-outline-purple:focus, .btn-outline-purple.focus {
        box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.5); /* Same focus as your regular purple button */
        color: #ffffff; /* You might want to ensure text is readable in focus state, so setting it to white */
        background-color: #6f42c1; /* Purple background for focus */
    }

    .btn-outline-purple:disabled, .btn-outline-purple.disabled {
        color: #6f42c1; /* Maintaining purple text color for disabled state */
        background-color: transparent;
        border-color: #6f42c1;
        opacity: 0.65; /* You can adjust this value if you want */
    }


.vh-50 {
    height: 50vh;
}

a{
    text-decoration: none;
}

.section-container {
    background: #fefefe;
    border-radius: 4px;
    box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.05);
    padding: 5px;
    margin: 0 0 1px 0;
}

.secondary-header {
    padding:0;
    max-height: 0;
    overflow: hidden; /* Hide any overflow content */
    width: 100%;
    background-color: #503b74;
    position: absolute;
    top: 56px;
    left: 0;
    z-index: 10;
    transition: max-height 0.2s ease-in-out; /* Transition on max-height */
}

/* Show the secondary header with a larger max-height when the header is hovered */
header:hover .secondary-header {
    max-height: 200px; /* Greater than the actual height of the secondary header */
}


.nav-link {
    position: relative;
    display: inline-block; /* Or 'block', depending on your layout */
    overflow: hidden;
    font-size: 13px;
}

    .nav-link::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.1); /* Adjust the opacity to control the darkness */
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .nav-link:hover::after {
        opacity: 1;
    }

hr {
    border-top: 1px solid #939393; /* Change #f00 to your desired color */
    border-bottom: 0;
    border-left: 0;
    border-right: 0;
}

.threshold-success {
    height: 8px;
    width: 8px;
    border: 1px solid #198754;
    background: #198754;
    margin-bottom: 1px;
    border-radius: 100%;
}

.threshold-gray {
    height: 8px;
    width: 8px;
    border: 1px solid #999;
    background: #fff;
    margin-bottom: 1px;
    border-radius: 100%;
}


.modal-content {
    background-color: #f3f3f3;
}

.dropdown-menu{
    padding: 0;
    font-size: 13px;
}

.dropdown-toggle {
    margin: 0 !important;
    background: #fff !important;
    border: 1px solid #ccc !important;
}

.nav-link.dropdown-toggle {
    background: none !important;
    border: none !important;
}
    .nav-link.dropdown-toggle:hover {
        border: none !important;
    }

.truncate {
    max-height: 65px; /* Your desired max height */
    overflow: hidden;
    line-height: 1.2em; /* Example line height */
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Number of lines you want to show */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

td {
    font-size: 13px;
}

.font-kroon{
    font-size:13px;
}

.label{
    font-size:13px !important;
}

@media (min-width: 768px) { /* Adjusts for Bootstrap's medium breakpoint */
    .spacer {
        flex: 0 0 4.1666%; /* Half of col-md-1 */
        max-width: 4.1666%; /* Half of col-md-1 */
    }

    .second-container {
        flex: 0 0 45.8333%; /* Adjusted to fill the space left, considering original col-md-4 plus half of col-md-1 */
        max-width: 37.5%; /* Adjusted accordingly */
    }

    .navbar-collapse {
        justify-content: flex-start;
    }
}

.hover-pointer:hover {
    cursor: pointer;
}

.section-container, input[name="ProfileCreationMenuButton"] {
    font-size: 13px;
}

.small-height {
    height:30px !important;
    font-size:13px !important;
}

.filter-option-inner-inner {
    max-height: 20px;
    font-size: 13px;
    overflow: hidden; /* To ensure no overflow if the element's content exceeds the max height */
}

[name="ProfileCreationMenuButton"] {
    font-size: 13px;
}

th .fa {
    margin-left: 0.5em; /* Adds space between the icon and the header text */
}

#backToTopBtn {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.5;
    position: fixed;
    bottom: 20px;
    left: 50%; /* Position the left edge of the button at the center of the screen */
    transform: translateX(-50%); /* Shift the button left by half its own width to center it */
    width: 30%; /* Set the button width to 30% of the viewport width */
    text-align: center; /* Center the text inside the button */
}

    #backToTopBtn:hover {
        opacity: 1;
        /* Fully opaque on hover */
    }

.popover {
    max-width: none;
    width: auto;
    background-color: #ffffff;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
}

.popover-body{
    padding:.5rem;
}

    .popover .popover-arrow::after {
        border-width: 0;
        background-color: #ffffff; /* Change this color to your desired arrow color */
        width: 1rem; /* Adjust the size as needed */
        height: 1rem; /* Adjust the size as needed */
        transform: rotate(45deg); /* Rotate to make it a diamond shape */
    }
/*
.image-container {
    position: relative;
    overflow: hidden;
    max-height: 300px;
}

    .image-container img {
        width: 100%;
        height: auto;
        object-fit: cover;
        transform: translate(-0%, -35%);
    }
*/

.text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2.75rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 2);
}

.fade-out {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px; /* Adjust height to control the fade length */
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
    pointer-events: none; /* Ensures the fade doesn't interfere with text overlay */
}

@media (max-width: 768px) {
    #countrySelect,
    .login-button {
        display: none;
    }

    #secondaryNavbar {
        display: none;
    }

    #offcanvasNavbar {
        display: block;
    }

    .public-ttable {
        display: none;
    }

    .card-container {
        display: block;
    }
}

@media (max-width: 1300px) {
    .public-table {
        display: none;
    }
}


@media (min-width: 1300px) {
    .card-container {
        display: none;
    }
}

@media (min-width: 768px) {
    #offcanvasNavbar {
        display: none;
    }
}

.offcanvas.offcanvas-start {
    width: 250px; /* Adjust this value as needed */
}

.limit-height {
    max-height:227px;
}

.privacy-content ul {
    list-style-type: disc !important;
    padding-left: 20px;
}

.publictext {
    font-family: Raleway, sans-serif !important;
    line-height: 1.6;
    font-weight: 300;
    color: #323335;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#BuildingCodeTree .bc-toggle {
    cursor: pointer;
    user-select: none;
}

#CountyTree .bc-toggle {
    cursor: pointer;
    user-select: none;
}


.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
    }
