/* Fontit */

body {
    font-family: 'Calibre', sans-serif !important;
}

h1, h2, h3, h4, h5, h6, p, a {
    font-family: 'Calibre', sans-serif !important;
}

.btn-primary {
    font-family: 'Calibre', sans-serif !important;
}

/* Progressbar */
.progressbar {
    display: flex;
    padding-bottom: 20px;
    background-color: var(--portalThemeColor5);
}

.progressbar li {
    float: left;
    width: 20%;
    position: relative;
    text-align: center;
}

.progressbar li:before {
    width: 30px;
    height: 30px;
    border: 2px solid #bebebe;
    display: block;
    margin: 0 auto 10px auto;
    border-radius: 50%;
    line-height: 27px;
    background: white;
    color: #bebebe;
    text-align: center;
    font-weight: bold;
}

.progressbar li.success:after {
    background: #3aac5d;
}

.progressbar li.success:before {
    border-color: #3aac5d;
    background: #3aac5d;
    color: white;
}

.progressbar button {
    margin-left: 0px;
    color: var(--portalThemeColor2);
    background-color: transparent;
}

.progressbar p {
    font-size: 15px;
    font-weight: 600;
}

.progressbar hr {
    margin: 0px;
    border-top-width: 5px;
    border-top-style: solid;
    border-top-color: var(--portalThemeColor4);
}

/* Toolbar and customer information */
div.sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 10px;
    min-height: 55px;
    background-color: var(--portalThemeColor5);
}

.customer-info {
    padding-bottom: 15px;
    border-style: solid;
    border-width: 2px;
    border-radius: 10px;
    border-color: var(--portalThemeColor6);
}

.customer-info h3 {
    font-size: 18px;
}

.toolbar-container {
    padding-bottom: 10px;
    box-shadow: 0px 3px var(--portalThemeColor6);
}

hr {
    border-bottom: 4px solid var(--portalThemeColor6);
}

/* Form related */
/*
h2.tab-title {
    font-size: 24px;
    font-weight: 900;
}

.section-title h3 {
    font-size: 18px;
    font-weight: 700;
}


*/
.form-control {
    border-radius: 2px;
}

.form-select {
    border: 1px solid #949494;
    border-radius: 2px;
}

table.custom-table {
    border-color: transparent;
    border-style: none;
    border-width: 0;
}

.crmEntityFormView, .entitylist, .modal-content, .popover-content {
    background-color: #FFFFFF;
    color: #000000;
    border: none !important;
}

.crmEntityFormView label {
    background-color: transparent !important;
    color: #000000;
}

/*
.instructions {
    margin-bottom: 20px;
}

.custom-btn {
    margin-left:10px;
}

.crmEntityFormView fieldset {
    margin-bottom:5px;
}

.crmEntityFormView .cell {
    padding-bottom:10px;
}


td.form-control-cell, td.boolean-radio-cell, td.picklist-cell {
    display: flex;
    flex-direction: row;
    align-items: center;
}





.col-md-8.columnBlockLayout, .col-md-4.columnBlockLayout, .col-md-12.columnBlockLayout {
    margin: 0px 0px;
}

#aktia_totalinsuranceprice_label, #aktia_totalinsuranceprice {
    font-weight: 700;
}
*/


/* Charts */
.highcharts-color-1 {
    fill: #67a61b;
}
.highcharts-color-0 {
    fill: grey;
}


/* Modals */

@media (min-width: 1024px){
    .modal-lg {width: 70%}
  }
  .modal-dialog.modal-lg .modal-content { 
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: stretch;
    height: auto;
    border-radius: 2px;
  }

  .modal-form .modal-body iframe {
    height: 85vh;
    display: flex;
    position: relative;
  }

  .list-group-item.active, .list-group-item.active:hover {
    background-color: var(--portalThemeColor9);
    border-color: var(--portalThemeColor9);
  }

  /* Footer */

  footer div.footer-bottom {
    display: none;
  }

  /* Loader */

  .loader {
    margin: auto;
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid black;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  /* Multistep form */

  .list-group-item.incomplete {
    display: none;
  }

  .progress.list-group {
    border: 1px solid #ccc;
    background-color: var(--portalThemeColor5);
  }

  /* Special form fields */

  input#aktia_opportunityversion, #aktia_opportunityversion_label, #aktia_opportunityversion_label ~ .control {
  color: white !important;
  border-width: 0px !important;
  border-color: white !important;
  box-shadow: inset 0 0px 0px !important;
  }

  /* Preview pdf modal */

#pdfModal {
    width: 90%;
    max-width: none;
    height: 80vh;
}

/* Errors */

label#aktia_kb_calculationerrortype_label,
label#aktia_ka_calculationerrortype_label,
label#aktia_tt_calculationerrortype_label,
label#aktia_tta_calculationerrortype_label,
label#aktia_t_calculationerrortype_label,
label#aktia_vs_calculationerrortype_label
 {
    font-weight: 600;
    padding: 0px;
    margin: 0px;
}

td.custom-alert {
    padding: 6px 28px !important;
    font-size: 16px !important;
    font-weight: 600;
    margin: 0px 0px 10px;
}

table.custom-alert {
    border: 2px solid #00EB64;
    border-radius: 2px;
}

/* Navbar */

.navbar-static-top.navbar-inverse {
    background-color: #ffffff;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    box-shadow: none !important;
    border-bottom: 2px #f2f2f2 solid !important;
    padding-top: 10px;
}

.navbar-brand {
    border-bottom: 4px solid #00eb66 !important;
}

.navbar-text {
    color: #000000;
    line-height: 21px;
    margin: 0px 0px 0px 3px;
    padding: 15px 8px 8px;
}

@media (max-width: 1200px) {
    .navbar-static-top .navbar-brand {
        border-bottom: none !important;
    }
    .navbar-text {
        padding: 14.5px 0px 8px;
    }
}

/* Pagination */

.pagination>.active>a, .pagination>.active>a:focus, .pagination>.active>a:hover {
    color: #fff;
    background-color: #666!important;
}

/* Multistep form buttons */

.btn.btn-primary.button.next.submit-btn:focus, .btn.btn-primary.button.next.submit-btn:hover {
    background-color: var(--portalThemeColor2) !important;
}

/* Buttons */

.btn-hidden {
    display: none !important;
}

#InsertButton, #UpdateButton {
    display: none;
}

.customerInfoLabel {
    font-weight: 500;
    width: 40%;
}

.columnBlockLayout {
    margin: 40px 0px 0px !important;
}

.nextButton {
     padding-right: 12px;
}

/* Alert */
.btn-close {
    font-size: 16px !important;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
}

.alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

/* Custom components */

.customComponent {
    padding: 0 28px 0;
    margin-bottom: 40px;
}

/* Progress bar */

.progressbar-default {
color: var(--portalThemeOnColor11); 
}

.progressbar-done {
color: var(--portalThemeOnColor10);
}

/* Read-only form */

.readOnlyField {
    padding: 6px 0 !important;
    border: 0px !important;
}

/* Valentino form labels */

.crmEntityFormView .cell .picklist label {
    float: none;
    font-weight: 500;
}

.crmEntityFormView table.table td:first-child {
    padding: 8px 0px;
}

/* Modal form label and field layout */

div[data-name^="modal_tab"] div.control {
    clear: none !important;
    float: right;
    width: 67%;
}

div[data-name^="modal_tab"] .field-label {
    font-weight: 500;
}

div[data-name^="modal_tab"] .cell {
    padding: 0 28px 12px;
}

/* Nationalities */
.add-nationality-modal .modal-dialog {
    width: 40%;
}

#Subgrid_nationalities .subgrid thead th.sort-enabled a {
    color: #ffffff;
}

/* Form fieds */

input[type=checkbox] {
    width: 1.5em;
    height: 1.5em;
}

.checkbox-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkbox-cell .table-info {
  margin-right: 1rem;
}

.checkbox-cell .control {
  margin-left: auto;
}

.crmEntityFormView .cell.checkbox-cell div.table-info {
    padding-left: 0px !important;
}

.input-group-addon {
    font-size: 1em;
    line-height: 1.5em;
}

.hidden-grid {
    display: none;
}

/* Remove left padding from table head  */
div.view-grid.table-responsive > table > thead > tr > th:nth-child(1) {
    padding-left: 0px;
}

/* Table head font weight  */
th > a {
    font-weight: 700;
}

label[for="Subgrid_nationalities"]::after {
    content: " *";
    color: red;
}

.form-custom-actions {
    padding-right: 28px;
}

.view-grid {
    min-height: 13em !important;
}

/* Hide tab titles */

h2.tab-title {
    display: none;
}

/* Disabled button */

.btn.disabled, .btn:disabled, fieldset:disabled .btn {
    color: var(--bs-btn-disabled-color);
    pointer-events: none;
    background-color: var(--portalThemeColor4);
    border-color: var(--portalThemeColor4);
    opacity: var(--bs-btn-disabled-opacity);
}
