@import url("https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700");
@import url("https://fonts.googleapis.com/css?family=Roboto:400,300,500,700");

/* Apply border-box globally for better width control */
*, *::before, *::after {
    box-sizing: border-box;
}

.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;
}

.btn-link {
    color: inherit !important;
    text-decoration: none;
}

html {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: white;
    overflow-x: hidden;
}

body {
    font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 13px;
    overflow-x: hidden;
    min-height: 100%;
    position: relative;
    padding-bottom: 60px;
    margin: 0;
    background-color: white;
}

.title-action {
    text-align: right;
    padding-top: 30px;
}

.ibox-content h1, .ibox-content h2, .ibox-content h3, .ibox-content h4, .ibox-content h5,
.ibox-title h1, .ibox-title h2, .ibox-title h3, .ibox-title h4, .ibox-title h5 {
    margin-top: 5px;
}

.ibox-title {
    -moz-border-bottom-colors: none;
    -moz-border-left-colors: none;
    -moz-border-right-colors: none;
    -moz-border-top-colors: none;
    background-color: #ffffff;
    border-color: #e7eaec;
    border-image: none;
    border-style: solid solid none;
    border-width: 3px 0 0;
    color: inherit;
    margin-bottom: 0;
    padding: 14px 15px 7px;
    min-height: 48px;
    font-weight: 700;
}

.ibox {
    clear: both;
    margin-bottom: 25px;
    margin-top: 0;
    padding: 0;
}

.ibox-content {
    background-color: #ffffff;
    color: inherit;
    padding: 15px 20px 20px 20px;
    line-height: 1.42857143;
    border-color: #e7eaec;
    border-style: solid solid none;
    border-width: 1px 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.ibox-title h5 {
    display: inline-block;
    font-size: 14px;
    margin: 0 0 7px;
    padding: 0;
    text-overflow: ellipsis;
    float: left;
}

.ibox-title .label {
    float: left;
    margin-left: 4px;
}

/* BACKGROUNDS */
.gray-bg {
    background-color: #f3f3f4;
}

.white-bg {
    background-color: #ffffff;
}

.navy-bg {
    background-color: #1ab394;
    color: #ffffff;
}

.blue-bg {
    background-color: #1578BB; /* Darker blue for WCAG AA compliance - 3.5:1 contrast ratio with white text */
    color: #ffffff;
}

.lazur-bg {
    background-color: #23c6c8;
    color: #ffffff;
}

.yellow-bg {
    background-color: #f8ac59;
    color: #ffffff;
}

.red-bg {
    background-color: #ED5565;
    color: #ffffff;
}

.black-bg {
    background-color: #262626;
}

.btn:focus {
    outline: none !important;
}

.button-search {
    width: 80px !important;
}

.btn-success.btn-outline {
    color: #1578BB;
}


.btn-success {
    background-color: #1578BB; /* Darker blue for WCAG AA compliance - 3.5:1 contrast ratio with white text */
    border-color: #1578BB;
    color: #FFFFFF;
}

    .btn-success:hover, .btn-success:focus, .btn-success:active, .btn-success.active, .open .dropdown-toggle.btn-success, .btn-success:active:focus, .btn-success:active:hover, .btn-success.active:hover, .btn-success.active:focus {
        background-color: #126ba8; /* Slightly darker on hover */
        border-color: #126ba8;
        color: #FFFFFF;
    }

    .btn-success:active, .btn-success.active, .open .dropdown-toggle.btn-success {
        background-image: none;
    }

        .btn-success.disabled, .btn-success.disabled:hover, .btn-success.disabled:focus, .btn-success.disabled:active, .btn-success.disabled.active, .btn-success[disabled], .btn-success[disabled]:hover, .btn-success[disabled]:focus, .btn-success[disabled]:active, .btn-success.active[disabled], fieldset[disabled] .btn-success, fieldset[disabled] .btn-success:hover, fieldset[disabled] .btn-success:focus, fieldset[disabled] .btn-success:active, fieldset[disabled] .btn-success.active {
            background-color: #1f90d8;
            border-color: #1f90d8;
        }

/* used for required fields text */
span.required {
    font-size: small;
    font-style: italic;
    color: #C00000; /* Darker red for WCAG AA contrast compliance (7.0:1 ratio) */
    float: left;
}

.form-group {
    margin-bottom: 15px;
}

.voterReg-label {
    float: left;
    font-weight: 700;
}

/* Ensure legend with voterReg-label matches other label sizes */
legend.voterReg-label {
    font-size: 13px;
}

/* FOOTER */
footer.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: white;
    border-top: 1px solid #e7eaec;
    padding: 10px 20px;
    height: 40px;
}

.navbar-static-side, .nav-header, li.active, #page-wrapper, .footer {
    -webkit-transition: all 0.4s;
    -moz-transition: all 0.4s;
    -o-transition: all 0.4s;
    transition: all 0.4s;
}

.top-navigation #page-wrapper {
    margin-left: 0;
}

.navbar {
    border: 0;
    min-height: 50px;
}

/* Prevent navbar H1 title from wrapping in desktop view */
.navbar h1 {
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100vw - 400px);
    padding-bottom: 2px;
}

@media (max-width: 767px) {
    .navbar h1 {
        white-space: normal;
        max-width: 100%;
        font-size: 1.5rem;
    }
}

.navbar-static-top {
    display: block;
}

body.fixed-nav #wrapper .navbar-static-side,
body.fixed-nav #wrapper #page-wrapper {
    margin-top: 60px;
}

body.top-navigation.fixed-nav #wrapper #page-wrapper {
    margin-top: 0;
}

body.mini-navbar #page-wrapper {
    margin: 0 0 0 0;
}

body.canvas-menu.mini-navbar #page-wrapper,
body.canvas-menu.mini-navbar .footer {
    margin: 0 0 0 0;
}

body.fixed-sidebar.mini-navbar #page-wrapper {
    margin: 0 0 0 0;
}

body.body-small.fixed-sidebar.mini-navbar #page-wrapper {
    margin: 0 0 0 220px;
}

.top-navigation.mini-navbar #page-wrapper,
.top-navigation.body-small.fixed-sidebar.mini-navbar #page-wrapper,
.mini-navbar .top-navigation #page-wrapper,
.body-small.fixed-sidebar.mini-navbar .top-navigation #page-wrapper,
.canvas-menu #page-wrapper {
    margin: 0;
}

.top-navigation .navbar {
    margin-bottom: 0;
}

.top-navigation .navbar-right {
    margin-right: 10px;
}

.navbar-nav .dropdown-menu {
    box-shadow: none;
    border: 1px solid #e7eaec;
    right: 0;
    left: auto;
}


.navbar-nav .open .dropdown-menu > li > a {
    padding: 10px 15px 10px 20px;
}

.navbar-header:before {
    display: table;
    content: " ";
}

.navbar-header:after {
    clear: both;
    display: table;
}

#page-wrapper {
    padding: 0 15px;
    min-height: 568px;
    position: relative !important;
}

@media (min-width: 768px) {
    #page-wrapper {
        position: inherit;
        margin: 0 0 0 240px;
        min-height: 100vh;
    }

    .navbar-nav {
        float: left;
        margin: 0;
    }
}

/* WRAPPERS */
main {
    flex: 1 0 auto;
    padding-bottom: 0;
}

#wrapper {
    width: 100%;
    overflow-x: hidden;
    min-height: 100%;
}

.wrapper {
    padding: 0 20px;
}

.wrapper-content {
    padding: 20px 15px 0;
    margin-left: -5px !important;
    margin-right: -5px !important;
}

.voterStatus-box {
    padding: 5px !important;
    border: 1px solid #e5e6e7;
}

#headerMenu .k-menu-link-text {
    font-size: 13px;
    font-weight: 600;
}

#headerMenu .k-menu-item {
    font-size: 12px;
    padding: 10px 15px 10px 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 100;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 16px;
    font-weight: 600;
}

h4 {
    font-size: 14px;
    font-weight: 600;
}

.sk-spinner-wave.sk-spinner {
    margin: 0 auto;
    width: 50px;
    height: 30px;
    text-align: center;
    font-size: 10px;
    user-select: none
}

.sk-spinner-wave div {
    background-color: #1c84c6;
    height: 100%;
    width: 6px;
    display: inline-block;
    -webkit-animation: sk-waveStretchDelay 1.2s infinite ease-in-out;
    animation: sk-waveStretchDelay 1.2s infinite ease-in-out;
}

.sk-spinner-wave .sk-rect2 {
    -webkit-animation-delay: -1.1s;
    animation-delay: -1.1s;
}

.sk-spinner-wave .sk-rect3 {
    -webkit-animation-delay: -1s;
    animation-delay: -1s;
}

.sk-spinner-wave .sk-rect4 {
    -webkit-animation-delay: -0.9s;
    animation-delay: -0.9s;
}

.sk-spinner-wave .sk-rect5 {
    -webkit-animation-delay: -0.8s;
    animation-delay: -0.8s;
}

.k-picker-solid {
    background-color: var(--bs-body-bg) !important;
}

@-webkit-keyframes sk-waveStretchDelay {
    0%, 40%, 100% {
        -webkit-transform: scaleY(0.4);
        transform: scaleY(0.4);
    }

    20% {
        -webkit-transform: scaleY(1);
        transform: scaleY(1);
    }
}

@keyframes sk-waveStretchDelay {
    0%, 40%, 100% {
        -webkit-transform: scaleY(0.4);
        transform: scaleY(0.4);
    }

    20% {
        -webkit-transform: scaleY(1);
        transform: scaleY(1);
    }
}

@media (max-width: 767px) {
    /* Prevent horizontal scrollbar on mobile */
    body {
        overflow-x: hidden !important;
        width: 100%;
    }
    
    .wrapper-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 20px 10px 0;
    }
    
    /* Override inline styles that cause overflow */
    .navbar-collapse {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden;
    }
    
    /* Fix navbar overflow */
    .border-bottom {
        overflow-x: hidden;
        white-space: normal !important;
    }
    
    /* Prevent navbar elements from causing overflow */
    .navbar-static-top {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden;
        white-space: normal !important;
    }
    
    .navbar {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    .navbar-header {
        overflow-x: hidden;
        max-width: 100%;
    }

    .col-xs-6 {
        width: 50%
    }

    .visible-xs-block {
        display: block !important;
        font-size: 13px !important;
    }

    #applicationAnchor {
        display: none !important;
    }

    .ibox-content-xs {
        padding: 10px !important;
    }

    .top-navigation .navbar-header {
        display: block;
        float: none;
    }

    /* Bootstrap 5 navbar collapse for mobile - smooth sliding transition */
    .navbar-collapse {
        clear: both;
        width: 100%;
        background-color: #ffffff;
        border-top: 1px solid #e7eaec;
    }

    .navbar-collapse.collapse:not(.show) {
        display: none;
    }

    .navbar-collapse.collapsing {
        height: 0;
        overflow: hidden;
        transition: height 0.35s ease-in-out;
        display: block;
    }

    .navbar-collapse.collapse.show {
        display: block;
        height: auto;
    }

    .navbar-collapse .nav {
        float: none !important;
        width: 100%;
        padding: 10px 0;
    }

    .navbar-collapse .nav > li {
        float: none;
        display: block;
    }
}

@media (max-width: 575px) {
    .col-xs-12 {
        width: 100%;
    }
}

@media (min-width: 576px) {
    .col-sm-8 {
        width: 100%;
    }
    .col-sm-4 {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .col-sm-offset-2 {
        margin-left: 16.66667%;
    }

    .col-sm-offset-4 {
        margin-left: 33.3333333%;
    }

    .col-sm-4 {
        width: 33.33333333%;
    }

    .col-sm-5 {
        width: 41.66666667%
    }

    .col-sm-7 {
        width: 58.33333333%
    }

    .col-sm-8 {
        width: 66.66666667%
    }

    .navbar-toggle {
        display: none;
    }

    .navbar-collapse {
        padding-right: 0px;
        padding-left: 0px;
        overflow-x: visible;
        border-top: 1px solid transparent;
    }

        .navbar-collapse.collapse {
            display: block !important;
            height: auto !important;
            padding-bottom: 0;
            overflow: visible !important;
        }

        .navbar-collapse.in {
            overflow-y: auto;
        }

    .collaps.in {
        display: block;
    }

    .navbar-right {
        float: right !important;
    }

    .navbar-header {
        float: left;
    }
}

@media (min-width: 992px) {
    .col-md-offset-3 {
        margin-left: 25%;
    }

    col-md-4 {
        width: 33.3333333%;
    }

    .col-md-6 {
        width: 50%;
    }

    col-md-8 {
        width: 66.66666667%;
    }
}

.k-expander-content {
    font-size: 13px !important;
    padding-block: 0px !important;
    padding-inline: 0px !important;
}

.k-expander-header {
    padding: 14px 15px 14px 15px !important;
    font-size: 24px !important;
    background-color: #1c84c6 !important;
}

.k-expander-title {
    color: #ffffff !important;
    font-weight: 600 !important;
}

.k-svg-i-chevron-up {
    color: white !important;
    stroke: white;
    stroke-width: 50;
}

.k-svg-i-chevron-down {
    color: white !important;
    stroke: white;
    stroke-width: 50;
}

.voterInfo-label {
    float: left;
    font-weight: 700;
    margin-bottom: 5px;
}

.k-grid-header {
    background-color: #c4e2f7 !important;
    font-size: 1em;
    font-weight: 700 !important;
    text-align: left !important;
}

.k-grid-md .k-table-th {
    padding: 2px !important;
}

.k-grid-md .k-table-td {
    padding: 2px !important;
}

.navbar-toggle {
    background-color: #1c84c6;
    color: #fff;
    padding: 6px 12px;
    font-size: 14px;
    position: relative;
    float: right;
    margin-top: 8px;
    margin-bottom: 8px;
    margin-right: 6px;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px;
}

.nav {
    padding-left: 0;
    list-style: none;
}

    .nav > li > a {
        padding: 15px 20px;
        color: #333;
        position: relative;
        display: block;
        font-weight: 600;
        text-decoration: none;
    }

.navbar-nav > li > .dropdown-menu {
    margin-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.navbar-right {
    margin-right: 10px;
}

.navbar-header {
    min-height: 50px;
}

#headerMenu {
    justify-content: end;
}

#menu_desktop {
    position: absolute;
    right: 0;
    left: auto;
}

    #menu_desktop > li > a {
        color: inherit;
        padding: 10px 15px 10px 20px;
        display: block;
    }

.visible-xs-block {
    display: none;
    font-size: 13px !important;
}

.col-sm-4 {
    padding-left: 35px;
    padding-right: 35px;
}

#menu_index {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

#menu_index li,
#menu_index a {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

.menu-index {
    white-space: normal;
}
