@font-face{
    font-family:"carnas";
    src: url("/assets/fonts/CARNAS/carnas-bold.otf"),
        url("/assets/fonts/CARNAS/carnas-boldita.otf"),
        url("/assets/fonts/CARNAS/carnas-ita.otf"),
        url("/assets/fonts/CARNAS/carnas-reg.otf"),
        url("/assets/fonts/CARNAS/carnas-thin.otf"),
        url("/assets/fonts/CARNAS/carnas-thinita.otf");
}

html, body {
    height: 100%;
}

body{
    display: flex;
    flex-direction: column;
    padding-top: 90px;
    background-color: #efeff0;
    background-image: url("bg-kersia.jpg");
    background-repeat: no-repeat;
    background-position: top;
    background-attachment: fixed;
    margin:0px;
    font-family: carnas, verdana, serif;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
}

table{
    font-family: verdana, serif !important;
}

.wrapper {
    flex: 1 0 auto;
}

#search-text-input{
    border: none;
    float:left;
    height:40px;
    width: 100%;
    max-width: 250px;
    margin:11px 0 0 0;
}
#button-holder{
    border: 1px solid #d3d3d3;
    background-color:#f1f1f1;
    height:40px;
    width:48px;
    margin-top: 11px;
    margin-left: 3px;
}

#button-holder:hover{
    background-color: #d3d3d3;

}

#button-holder:active{
    transform: translateY(2px);

}

#to-top-button {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed/sticky position */
    bottom: 20px; /* Place the button at the bottom of the page */
    right: 30px; /* Place the button 30px from the right */
    z-index: 99; /* Make sure it does not overlap */
    border: none; /* Remove borders */
    outline: none; /* Remove outline */
    color: white; /* Text color */
    cursor: pointer; /* Add a mouse pointer on hover */
    padding: 15px; /* Some padding */
    border-radius: 10px; /* Rounded corners */
    font-size: 18px; /* Increase font size */
}

.azure-button {
    background-color:#176ed1;
    border-color:#176ed1;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.2;
}

.azure-button:hover{
    background-color: #1156a5;
}

.title {
    pointer-events: none;
    user-select: none;
    -moz-user-select: none;
    cursor: default;
    font-size: 130%;
    font-weight: bold;
    color: #77777a;
    text-align:center;
}
table{
    width: 100% !important;
    table-layout: fixed !important;

}


#translation-list-table{
    width: 200% !important;


}
#translation-list-table td{
    padding:0.25rem;

}
.dropdown-menu-large {
    min-width: 15rem;
}

.sticky-div{
    overflow:auto;
    max-height:80vh;
    border: 2px inset white;
    margin:0 !important;
}
.sticky-div thead th{
    position: sticky;
    top: -1px;
    background-color: #0069b4;
    z-index: 2;
}
#translation-sider{
    font-size:0.9rem;
    position: sticky;
    left: -1px;
    background-color: #a9adad;
}
table td{
    word-wrap: break-word !important;;
}
.disabled{
    cursor: not-allowed;
}
.table-value{
    color: transparent;
    text-shadow: 0 0 0 black;
    background-color: #11ffee00;
    border: 0px solid #fff;
    border-radius: 8px;
    text-align: center;
    font-size: 90%;
    outline: none;
}
.table-title{
    min-width:10px;
    pointer-events: none;
    user-select: none;
    -moz-user-select: none;
    text-align: center;
    font-weight: bold;
    color: white;
    background-color: #0c5f9d;
    font-size: 90%;
    text-transform: uppercase;
}

.title-row {
    margin-bottom:0px !important;
}

.link-align {
    /*margin-left: -10px;*/
    display:flex;
    align-items:center;
    text-align: left;
    vertical-align: middle;
}

.link {
    font-size: 80%;
    font-weight: bold;
    text-decoration: underline;
    color: #939598;
}

.link:hover {
    text-decoration: underline;
    color: #77777a;
}

.legal {
    cursor: pointer;
    font-weight: bold;
    color: #fff;
}

.legal:hover {
    cursor: pointer;
    text-decoration: underline;
}

#masthead {
    position: fixed;
    top: 0;
    /*height: 90px; WARNING : causes navbar collaps (on mobile) to be smaller */
    width: 100%;
    background: #fff;
    z-index: 666;
}
.kersia_logo img {
    width: 162px;
    height: 53px;
    margin: 10px;
}
.icon-flag {
    width: 36px !important;
    margin-right: 5px !important;
    margin-bottom: 3px !important;
}
.padding-bottom1 {
    padding-bottom: 30px ! important;
}

.padding-left1 {
    padding-left: 45px ! important;
}

.padding-left2 {
    padding-left: 110px ! important;
}

.btn{
    font-weight: bold !important;
}

.footer{
    flex-shrink: 0;
    margin-top: 25px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    color: white;
    text-align: center;
}

/*
* ---- KERSIA COLOURS
*/
.bg-kersia-light-green{
    background-color: #4EAD33 !important;
}

.bg-kersia-dark-green{
    background-color: #00783F !important;
}

.bg-kersia-light-blue{
    background-color: #009EDF !important;
}

.bg-kersia-dark-blue{
    background-color: #0069b4 !important;
}

.text-kersia-light-green{
    background-color: #4EAD33 !important;
}

.text-kersia-dark-green{
    color: #00783F !important;
}

.text-kersia-light-blue{
    color: #009EDF !important;
}

.text-kersia-dark-blue{
    color: #0069b4 !important;
}

/*
* ---- Others
*/
.noselect {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently supported by Chrome and Opera */
}

#myImg {
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

#myImg:hover {opacity: 0.7;}

/* ### animations ### */
/* Rotate */
.rotate .svg{
    display: inline-block;
    vertical-align: middle;
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    -webkit-transition-duration: 0.2s;
    transition-duration: 0.2s;
    -webkit-transition-property: transform;
    transition-property: transform;
}
.rotate:hover .svg, .rotate:focus .vg, .rotate:active .svg {
    -webkit-transform: rotate(20deg);
    transform: rotate(20deg);
}
/* Grow */
.grow .svg{
    display: inline-block;
    vertical-align: middle;
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    -webkit-transition-duration: 0.2s;
    transition-duration: 0.2s;
    -webkit-transition-property: transform;
    transition-property: transform;
}
.grow:hover .svg, .grow:focus .svg, .grow:active .svg{
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}

/* Grow Shadow */
.grow-shadow {
    display: inline-block;
    vertical-align: middle;
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    -webkit-transition-duration: 0.25s;
    transition-duration: 0.25s;
    -webkit-transition-property: box-shadow, transform;
    transition-property: box-shadow, transform;
}
.grow-shadow:hover, .hvr-grow-shadow:focus, .hvr-grow-shadow:active {
    box-shadow: 0 10px 10px -10px rgba(0, 0, 0, 0.5);
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}

/*
 * Loading animation
 */
#loading {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: fixed;
    display: block;
    background-color: #ffffff;
    opacity: 0.8;
    z-index: 99;
    text-align: center;
}


#loading-container{
    position: center;
    margin-top: 275px;
    z-index: 100;
}

.sk-circle {
    margin: 100px auto;
    margin-bottom: 30px !important;
    width: 40px;
    height: 40px;
    position: relative;
}
.sk-circle .sk-child {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}
.sk-circle .sk-child:before {
    content: '';
    display: block;
    margin: 0 auto;
    width: 15%;
    height: 15%;
    background-color: #333;
    border-radius: 100%;
    -webkit-animation: sk-circleBounceDelay 1.2s infinite ease-in-out both;
    animation: sk-circleBounceDelay 1.2s infinite ease-in-out both;
}
.sk-circle .sk-circle2 {
    -webkit-transform: rotate(30deg);
    -ms-transform: rotate(30deg);
    transform: rotate(30deg); }
.sk-circle .sk-circle3 {
    -webkit-transform: rotate(60deg);
    -ms-transform: rotate(60deg);
    transform: rotate(60deg); }
.sk-circle .sk-circle4 {
    -webkit-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg); }
.sk-circle .sk-circle5 {
    -webkit-transform: rotate(120deg);
    -ms-transform: rotate(120deg);
    transform: rotate(120deg); }
.sk-circle .sk-circle6 {
    -webkit-transform: rotate(150deg);
    -ms-transform: rotate(150deg);
    transform: rotate(150deg); }
.sk-circle .sk-circle7 {
    -webkit-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    transform: rotate(180deg); }
.sk-circle .sk-circle8 {
    -webkit-transform: rotate(210deg);
    -ms-transform: rotate(210deg);
    transform: rotate(210deg); }
.sk-circle .sk-circle9 {
    -webkit-transform: rotate(240deg);
    -ms-transform: rotate(240deg);
    transform: rotate(240deg); }
.sk-circle .sk-circle10 {
    -webkit-transform: rotate(270deg);
    -ms-transform: rotate(270deg);
    transform: rotate(270deg); }
.sk-circle .sk-circle11 {
    -webkit-transform: rotate(300deg);
    -ms-transform: rotate(300deg);
    transform: rotate(300deg); }
.sk-circle .sk-circle12 {
    -webkit-transform: rotate(330deg);
    -ms-transform: rotate(330deg);
    transform: rotate(330deg); }
.sk-circle .sk-circle2:before {
    -webkit-animation-delay: -1.1s;
    animation-delay: -1.1s; }
.sk-circle .sk-circle3:before {
    -webkit-animation-delay: -1s;
    animation-delay: -1s; }
.sk-circle .sk-circle4:before {
    -webkit-animation-delay: -0.9s;
    animation-delay: -0.9s; }
.sk-circle .sk-circle5:before {
    -webkit-animation-delay: -0.8s;
    animation-delay: -0.8s; }
.sk-circle .sk-circle6:before {
    -webkit-animation-delay: -0.7s;
    animation-delay: -0.7s; }
.sk-circle .sk-circle7:before {
    -webkit-animation-delay: -0.6s;
    animation-delay: -0.6s; }
.sk-circle .sk-circle8:before {
    -webkit-animation-delay: -0.5s;
    animation-delay: -0.5s; }
.sk-circle .sk-circle9:before {
    -webkit-animation-delay: -0.4s;
    animation-delay: -0.4s; }
.sk-circle .sk-circle10:before {
    -webkit-animation-delay: -0.3s;
    animation-delay: -0.3s; }
.sk-circle .sk-circle11:before {
    -webkit-animation-delay: -0.2s;
    animation-delay: -0.2s; }
.sk-circle .sk-circle12:before {
    -webkit-animation-delay: -0.1s;
    animation-delay: -0.1s; }

.login-options{
    display:flex;
    flex-direction:row;
}

@-webkit-keyframes sk-circleBounceDelay {
    0%, 80%, 100% {
        -webkit-transform: scale(0);
        transform: scale(0);
    } 40% {
          -webkit-transform: scale(1);
          transform: scale(1);
      }
}

@keyframes sk-circleBounceDelay {
    0%, 80%, 100% {
        -webkit-transform: scale(0);
        transform: scale(0);
    } 40% {
          -webkit-transform: scale(1);
          transform: scale(1);
      }
}
/*
 * </ Loading animation >
 */
@-webkit-keyframes zoom {
    from {-webkit-transform:scale(0)}
    to {-webkit-transform:scale(1)}
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

/*  tablet Screens */
@media only screen and (max-width: 1150px){
    .rm-padding-left2{
        padding-left: 30px !important;
    }
    .rm-padding{
        padding-left: 30px !important;
    }

}
/*  tablet Screens */
@media only screen and (max-width: 1024px){
    .low-res-invisible-countdown {
        visibility: hidden !important;
        width: 0px !important;
        height: 0px !important;
    }
    .rm-padding-left2{
        padding-left: 10px !important;
    }
    .rm-padding{
        padding-left: 10px !important;
    }
    .rm-margin{
        margin-left: -5px !important
    }


}

@media (max-width:991px) {
    .centered {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100%;
        -ms-transform: translate(-50%, -70%);
        -webkit-transform: translate(-50%, -70%);
        transform: translate(-50%, -70%);
        text-align: center
    }
    .centered .countdown .counter {
        display: inline-block;
        width: 80px;
        height: 80px;
        border-radius: 50%;
        border: 2px solid #fff;
        margin: 0px 2px;
        margin-bottom: 10px;
        font-weight: bold;
        text-transform: uppercase
    }
    .centered .countdown .counter .number {
        color: #fff;
        font-size: 26px;
        line-height: 26px;
        margin-top: 16px
    }
    .centered .countdown .counter .legend {
        color: #1f5c31;
        font-size: 14px;
        line-height: 14px
    }
    .tablet-hide{
        display: none !important;
        width: 0px !important;
        height: 0px !important;
    }
    .tablet-show{
        display: block !important;
    }
}

@media (width:768px) {
    .phone-margin{
        margin-top: 18px;
    }
}

/*  phones Screens */
@media only screen and (max-width: 600px){
    .low-res-invisible-actuality {
        display: none;
        visibility: hidden !important;
        width: 0px !important;
        height: 0px !important;
    }

    .center-mobile, .title {
        text-align: center !important;
        margin-left: 0px !important;
        padding-left: 0px !important;
    }

    .text-center-mobile {
        font-size : 130% !important;
        padding-bottom: 15px;
        display: block!important;
        text-align: center !important;
        margin-left: 0px !important;
        padding-left: 0px !important;
    }
    .rm-margin2{
        margin-right: -5px !important
    }

    .low-res_600-padding{
        padding-top: 18px !important;
    }
    .phone-hide{
        display: none !important;
        width: 0px !important;
        height: 0px !important;
    }
}

@media only screen and (max-width: 425px){
    .low-res-invisible {
        visibility: hidden !important;
        width: 0px !important;
        height: 0px !important;

    }
    .low-res-visible {
        visibility: visible;
        width: 100%;
        height: 100%;

    }
}

@media (max-width:400px) {
    .centered .countdown .counter {
        width: 60px;
        height: 60px
    }
    .centered .countdown .counter .number {
        margin-top: 8px
    }
    .centered .countdown .counter .legend {
        font-size: 11px
    }
    .centered .text {
        margin-bottom: 20px;
        padding: 15px 0px
    }
    .phone{
        margin-left: 0px !important;
    }

    .phone-margin{
        margin-top: 18px;
    }
}

.partner-space {
    .partner-info {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .info-group label {
        display: block;
        margin-bottom: 0;
    }

    .title {
        padding-top: 2rem;
        padding-bottom: 1rem;
    }

    /* Table Styling */
    .partners-table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 2rem;
        background-color: white;
    }

    .partners-table th {
        background-color: #006033;
        font-family: carnas, serif !important;
        color: white;
        font-weight: 600;
        padding: 0.75rem;
        text-align: left;
    }

    .partners-table td {
        padding: 0.25rem;
        border-bottom: 1px solid #efeff0;
    }

    .badge-list {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-content: center;
        gap: 0.25em;
        white-space: nowrap;
    }

    .doctype-badge, .country-badge {
        padding: 0.1em 0.25em;
        background-color: #d1d1d1;
        color: black;
        border-radius: 0.25rem;
        font-size: 0.75em;
    }

    .country-badge {
        padding: 0 0.25em 0 0;
        display: inline-flex;
        align-items: center;
        height: 1.5em;
    }

    .country-flag {
        margin-right: 0.25rem;
        height: 100%;
        display: block;
        border-bottom-left-radius: 0.25rem;
        border-top-left-radius: 0.25rem;
        aspect-ratio: 2/1;
    }

    /* Modal */
    .partner-modal {
        display: none;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }

    .partner-modal-content {
        background-color: white;
        padding: 1rem;
        border-radius: 0.5rem;
        width: 80%;
        max-width: 50rem;
    }

    .modal-header h2 {
        color: #006033;
    }

    .modal-header {
        padding: 0;
    }

    .close-modal {
        float: right;
        cursor: pointer;
        font-size: 1.5rem;
    }

    .modal-body {
        max-height: 70vh;
        overflow-y: auto;
    }

    .modal-footer {
        flex-wrap: wrap;
    }

    .modal-body, .modal-footer {
        padding: 1rem 0 0 0;
    }

    /* Lists */
    .lists-container {
        display: flex;
        gap: 1rem;
        margin-top: 1rem;
    }

    .list-section {
        flex: 1;
        min-width: 0;
    }

    .list-box {
        border: 1px solid #ddd;
        border-radius: 0.25rem;
        background: white;
        height: 18rem;
        overflow-y: auto;
        padding: 0.25rem;
    }

    .checkbox-label {
        display: flex;
        align-items: center;
        cursor: pointer;
        user-select: none;
        transition: background-color 0.2s;
        height: 1em;
    }

    .checkbox-label:hover {
        background-color: #f5f5f5;
    }

    .checkbox-label input[type="checkbox"] {
        margin-right: 0.5rem;
        width: 1rem;
        height: 1rem;
        accent-color: #0069b4;
    }

    .item-text {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* NDA Handling */
    .nda-container {
        margin-top: 0.25rem;
    }

    .current-nda {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
        padding: 0.5rem;
        background: #f5f5f5;
        border-radius: 0.25rem;
    }

    .file-name {
        flex: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .view-nda, .nda-view-btn {
        color: #0069b4;
        text-decoration: none;
        padding: 0 0.25rem;
        border-radius: 0.25rem;
        background: white;
        border: 1px solid #0069b4;
        font-size: 0.8rem;
    }

    .actions {
        button {
            font-size: 0.9em;
            padding: 0.25em 0.7em;
            white-space: normal;
        }
    }

    .view-nda:hover, .nda-view-btn:hover {
        background: #0069b4;
        color: white;
    }

    .file-input-container {
        position: relative;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .file-input {
        position: absolute;
        width: 0;
        height: 0;
        opacity: 0;
        overflow: hidden;
        z-index: -1;
    }

    .file-input-label {
        display: inline-block;
        padding: 0.25rem 0.5rem;
        background: #0069b4;
        color: white;
        border-radius: 0.25rem;
        cursor: pointer;
        transition: background-color 0.2s;
    }

    .file-input-label:hover {
        background: #005291;
    }

    .selected-file-name {
        color: #666;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .nda-actions {
        display: flex;
        gap: 0.5rem;
        margin-top: 0.25rem;
    }

    .remove-nda {
        color: black;
        border: none;
        border-radius: 50%;
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.75rem;
        font-weight: bold;
        line-height: 1;
        cursor: pointer;
        transition: background-color 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    .remove-nda:hover {
        background-color: gray;
    }

    /* For styling modified partners */
    .removal-marked {
        background-color: #6c757d;
    }

    .marked-for-removal .file-name {
        text-decoration: line-through;
        color: #6c757d;
    }

    .nda-cell {
        display: flex;
        gap: 0.25rem;
        align-items: baseline;
    }

    .nda-filename {
        margin-bottom: 0.25rem;
        font-size: 0.75rem;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
        max-width: 100%;
    }

    .deletion-message {
        font-size: 0.85rem;
        font-style: italic;
    }

    /* Form elements */
    .address-input {
        width: 100%;
        min-height: 5rem;
        padding: 0.5rem;
        border: 1px solid #ccc;
        border-radius: 0.25rem;
        font-family: inherit;
        font-size: inherit;
        resize: vertical;
    }

    /* Messages */
    .success-message {
        color: #155724 !important;
    }

    .error-message {
        color: #721c24 !important;
    }

    .input-container {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 0.25rem;
    }

    .email-input {
        width: 100%;
        padding: 0.5rem;
        border: none;
        border-radius: 0.25rem;
        background: #f5f5f5;
        height: 3rem;
    }

    /* Layout */
    .title-container {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;

        .actions {
            position: absolute;
            right: 0;
        }
    }

    #deleteButton {
        margin-right: auto;
    }
}

/* Responsive Design - Consolidated */
@media only screen and (max-width: 1024px) {
    .partner-space .partners-table {
        font-size: 0.75rem;
    }

    .partner-space .country-badge {
        font-size: 0.6rem;
    }
}

@media only screen and (max-width: 768px) {
    .partner-space .lists-container {
        flex-direction: column;
    }

    .partner-space .list-box {
        height: 12.5rem;
    }
}

@media only screen and (max-width: 600px) {
    .partner-space .partners-table thead {
        display: none;
    }

    .partner-space .partners-table,
    .partner-space .partners-table tbody,
    .partner-space .partners-table tr,
    .partner-space .partners-table td {
        display: block;
        width: 100%;
    }

    .partner-space .partners-table tr {
        margin-bottom: 1rem;
        border-bottom: 2px solid #006033;
    }

    .partner-space .partners-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }

    .partner-space .partners-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        padding-left: 0.9375rem;
        font-weight: bold;
        text-align: left;
    }
}

/* Form components and loading indicator */
.form-component:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

.loading-indicator {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.loading-indicator.active {
    display: inline-flex;
}

.spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 0.25rem solid white;
    border-radius: 50%;
    border-top-color: #3498db;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}