/**
 * These fixes are for the summary page, which doesn't play well with
 * the new forms
div[id^=save_client] {
  max-width: calc(100vw - 350px);
}
div[id^=save_client] form {
  max-width: calc(100vw - 390px);
  overflow: auto;
}
div[id^=save_client] table.summary {
  max-width: 500px;
}
div[id^=save_client] table.summary table {
  max-width: 300px;
}
*/
div[id^=save_client] table.summary td:nth-child(3) {
  white-space: nowrap;
}
div[id^=save_client] table.summary td:nth-child(3) a {
  margin-right: 5px;
}

/* May be LBA-specific: Counselling in Report */
div#actions-container ol li:nth-child(odd) {
  background-color: rgb(247, 247, 247);
}

table#sale_outlets-table tr td:last-child {
  background-color: rgb(247, 247, 247);
}

table#sale_outlets-table thead tr:first-child th:nth-child(4) {
  background-color: rgb(247, 247, 247);
}
table#sale_outlets-table thead tr:last-child th:nth-child(4),
table#sale_outlets-table thead tr:last-child th:nth-child(5) {
  background-color: rgb(247, 247, 247);
}

table#sale_outlets-table thead tr:first-child th:nth-child(5) {
  background-color: rgb(242, 242, 242);
}
table#sale_outlets-table thead tr:last-child th:nth-child(6),
table#sale_outlets-table thead tr:last-child th:nth-child(7) {
  background-color: rgb(242, 242, 242);
}

a.meapp-button.delete_employee {
  background-color: rgb(168, 54, 56);
}

/** New inline report **/
.non-folding-header {
  background-color: rgb(63, 89, 122);
  color: white;
  height: 32px;
  line-height: 32px;
  padding: 4px;
  cursor: pointer;
  z-index: 99;
}

.floaty-toc {
  height: 0px;
  cursor: pointer;
  margin-top: 60px;
  float: right;
  width: 280px;
  border-top: 4px solid rgb(63, 89, 122);
  z-index: 102;
}
.floaty-toc > div {
  height: 320px;
  background-color: white;
  box-shadow: 0px 3px 6px #00000029;
}
/*
.floaty-toc:hover {
  color: rgb(0, 0, 0, .1);
  background-color: rgb(255, 255, 255, .1);
}
.floaty-toc:hover * {
  color: rgb(0, 0, 0, .1) !important;
}
.floaty-toc:hover a:hover {
  color: rgb(63, 89, 122, 1) !important;
  background-color: white !important;
  font-weight: bold;
  text-decoration: none;
}
*/

div.next-report-employee-row {
  border: 1px solid rgb(63, 89, 122);
  padding: 4px;
}

div#client-inline-report-validation-container > div {
  font-style: italic;
}
div#client-inline-report-validation-container td.validation-link {
  font-weight: bold;
  /*
  font-size: small;
  */
  width: 16px;
  white-space: nowrap;
  cursor: pointer;
}
div#client-inline-report-validation-container td.validation-title {
  font-weight: bold;
  /*
  font-size: small;
  */
  width: 40%;
  white-space: nowrap;
}
div#client-inline-report-validation-container td.validation-message {
  /*
  font-size: small;
  */
}
div#next_client_status_report a.success.meapp-button {
  pointer-events: none;
  cursor: wait;
}
@media screen {
  .floaty-toc {
    position: sticky;
    top: 110px;
  }
  .non-folding-header {
    position: sticky;
    top: 60px;
  }
  .hide-business-2,
  .hide-business-1 {
    display: none;
  }
}
@media print {
  .floaty-toc {
    display: none;
  }
}

div.employee-group .meapp-form-group {
  width: 280px !important;
  float: left;
}
div.employee-group {
  float: none;
  clear: both;
  height: 70px;
}

.floaty-toc .toc-header {
  color:rgb(63, 89, 122);
  font-weight: bold;
  padding: 10px;
  padding-bottom: 2px;
}

a.switch-to-followup-report,
a.switch-to-counselling-report {
  cursor: pointer;
}

/**
 * Explicit Design Changes 12 April 2021
 */

#next_client_status_report {
    padding: 0;
    border: none;
}

div.inline-report-buttons {
  padding: 10px;
}

.non-folding-element {
    padding: 10px;
    padding-bottom: 32px;
}

.non-folding-content {
    background-color: #eee;
    padding: 32px 0 32px 0;
    margin: 0 0 10px 0;
}

.non-folding-header {
    position: sticky;
    top: 60px;
    margin: 0 -10px;
    padding-left: 10px;
}

.floaty-toc {
    margin: 60px -20px 0 0;
}

div#client-inline-report-validation-container {
    padding: 10px;
    /*
    background-color: #FFCCCC;
    */
    background-color: #F7E4E4;
    display: grid;
    place-items: center !important;
}

/**
 * TODO: THIS IS A GLOBAL CHANGE!
 */
.meapp-checkbox > label {
    margin-bottom: 10px;
    display: inline-block;
    width: 240px;
}

add_employee_row-button {
    padding: 5px 10px;
}

h6 {
    padding: 0 10px;
    margin: 0;
}

div.next-report-employee-row {
    border: 1px solid #ccc;
    padding: 4px;
}

div.next-report-employee-row {
    border: 1px solid rgb(63, 89, 122);
    padding: 4px;
    border: 1px solid #ccc;
    padding: 4px 20px 50px 4px;
}

.delete_employee_row-button {
    float: right;
    border: 2px solid #FFCCCC;
    color: #FF6666;
}

.meapp-form-group select, .meapp-form-group input:focus, .meapp-form-group input:valid, .meapp-form-group input[value]:not([value='']), .meapp-form-group input.meapp-has-value, .meapp-form-group textarea:focus, .meapp-form-group textarea:valid, .meapp-form-group textarea.meapp-has-value {
    color: #333;
    padding: 0 0 0px 10px;
}

select[multiple] {
  height: 180px !important;
}
select[multiple][name$="-business_record"] {
  height: 230px !important;
}

div#client-inline-report-validation-container {
  padding: 10px;
  border: 1px solid red;
  display: none; /* per default */
}

div.srnid {
  font-size: small;
  font-weight: bold;
  color: rgb(63, 89, 122);
  padding: 10px;
  padding-top: 0px;
  padding-bottom: 0px;
  line-height: 1rem;
}

.sum.number-cell {
  font-weight: bold;
}

table.business_assets td.col2 {
  width: 300px;
} 
table.business_assets td.col3 {
  width: 90px;
} 

td.sum *,
td.sum {
  height: 100%;
  margin-bottom: 0px;
}

.client-portrait-controls-container {
  float: right;
  padding-left: 20px;
}
.client-portrait-widget {
  float: right;
  position: relative;
}

input.client_portrait[type=file] {
  height: 36px !important;
  width: 340px !important;
}
.client-portrait-cancel,
.client-portrait-delete {
  float: right;
  margin-right: 6px;
}

.client-portrait-controls-buttons {
  text-align: right; 
}
.client-portrait-control {
  color: rgb(63, 89, 122);
  cursor: pointer;
}
.client-portrait-control:hover {
  text-decoration: underline;
}

.open-portrait-controls {
  text-align: right;
  color: rgb(63, 89, 122);
  cursor: pointer;
}
.open-portrait-controls:hover {
  text-decoration: underline;
}

.client-large-portrait-container {
  position: fixed;
  top: 100px;
  margin-left: auto;
  margin-right: auto;
  padding: 60px;
  border: 1px solid rgb(63, 89, 122);
  box-shadow: 3px 3px 6px rgb(63, 89, 122);
  background-color: white;
}
i.close-large-portrait {
  position: absolute;
  top: 4px;
  right: 6px;
}
.client-portrait-controls-container .info {
  max-width: 280px;
}
img.client-portrait-thumbnail {
  max-height: 200px;
  display: block;
  margin-left: auto;
}