/* SIPO GENERALS */

.italic
{
    font-style: italic;
}

.invisible
{
    opacity: 0;
}

.uninteractable
{
    pointer-events: none;
}

tr.bold-row
{
    font-weight: bold;
}

.form-group label {
    vertical-align: top;
}

div.unrecoverable-info-banner
{
    border: 1px solid red;
    padding: 5px;
    background-color: #f2dede;
}

fieldset {
    border: solid 1px #DDD !important;
    padding: 0 7px 7px 7px;
    border-bottom: none;
}

legend {
    width: auto !important;
    border: none;
    font-size: 2em;
    margin-bottom: 0px;
}

div.flex-space-between
{
    display: flex;
    align-content: space-between;
}

.credit-short-compiled {
    color:      red;
    font-size: 0.90em;
}

.control-label {
    text-align: right;
}

tr.selected {
    background-color: #E0E0E0;
}

.sipo-title-tab
{
    border: 1px solid #3baae3;
    background-color: #3baae3;
    padding: 7px;
    margin: 1px;
    border-radius: 3px;
}

.sipo-title-tab > a
{
    color: white;
}

.sipo-bordered {
    border: 1px solid #3baae3;
}

.sipo-bordered-subtle {
    border: 1px solid lightgrey;
    padding: 7px;
    border-radius: 3px;
    margin: 1px;
}

.sipo-title-subtle
{
    margin-left: 5px;
    text-decoration: underline;
}

.sipo-bold
{
    font-weight: bold;
}

.sipo-descriptif {
    font-size: 1em;
    color: #3c3c3c;
    font-style: italic;
}

.sipo-descriptif-sm {
    font-size: 0.85em;
    color: #3c3c3c;
    font-style: italic;
    padding: 1px;
}

input[type="checkbox"][readonly],
select[readonly]
{
    pointer-events: none;
    tab-index: -1;
}

input.small-currency
{
    height: 25px;
    padding: 2px 5px;
    font-size: 12px;
    line-height: 1.5; /* If Placeholder of the input is moved up, rem/modify this. */
    border-radius: 3px;
}

input[type=text].monetary {
    width: 100px;
}

.float-right {
    float: right;
}

.float-left {
    float: left;
}

tr.validated,
tr.validated:hover {
    background-color: lightgrey !important;
}

input[type="checkbox"][readonly] {
    pointer-events: none !important;
    tab-index: -1 !important;
}

.inline {
    display: inline;
}

div.form-group-inline div {
    display: inline;
    width: auto;
    padding-left: 15px;
}

div.form-group-inline input {
    display: inline;
}

input.sm {
    width: 100px;
}

body {
    position: relative;
}

#main {
    padding: 5px;
    transition: margin-left .5s;
    margin: auto;
    /*width: min-content;*/
    width: 100%;
}

@media only screen and (max-width: 768px) {
    body {
        padding: 0px;
    }

    #main {
        padding: 0px;
        width: 100%;
    }
}


@media only screen and (min-width: 1400px) {
    #main {
        /*width: 75%;*/
    }
}

input[type=monetary] {
    text-align: right;
    font-weight: bold;
}

.label-inline {
    font-weight: bold;
}

.underline {
    text-decoration: underline;
}

.dotted-line {
    border-bottom: 1px dotted #8c8c8c;
}

.max-width-1024 {
    max-width: 1024px;
}

.width-full {
    /* width: 100%; */
}

.width-fit {
    width: fit-content;
}

.width-auto {
    width: auto;
}

.width-0 {
    width: 0px;
}

.width-25 {
    width: 25px;
}

.width-40 {
    width: 40px;
}

.width-50 {
    width: 50px;
}

.width-75 {
    width: 75px;
}

.width-100 {
    width: 100px;
}

.width-150 {
    width: 150px;
}

.mg-t-10 {
    margin-top: 10px;
}

.mg-b-10 {
    margin-bottom: 10px;
}

.mg-l-10 {
    margin-left: 10px;
}

.mg-r-10 {
    margin-right: 10px;
}

a.active {
    text-decoration: underline;
}

.centered {
    text-align: center;
}

.description {
    /*font-style: italic;*/
    font-size: 1.25em;
}

.monetary {
    text-align: right;
    width: 110px;
}

.hidden {
    display: none;
}

.shown {
    display: block;
}

.align-left {
    text-align: left;
}

.align-right {
    text-align: right;
}

.subtle {
    color: #333333;
    font-size: 0.75em;
    margin-top: -3px;
}

.info-drabe {
    padding: 5px;
    padding-left: 10px;
}

/* flash */
.error,
.success,
.info {
    margin-bottom: 2px;
    padding: 5px;
    padding-left: 10px;
}

.error {
    border: 1px solid red;
    background-color: lightcoral;
}

.success {
    border: 1px solid green;
    background-color: #b2dba1;
}

.info {
    border: 1px solid #2694e8;
    background-color: #92d0dc;
}

.section-title {
    font-size: 2em;
}

.section-description {
    font-style: italic;
    color: #3c3c3c;
}

@media only screen and (max-width: 768px) {
    .error,
    .success,
    .info {
        position: sticky;
        top: 0px;
        left: 0;
        width: 100%;
    }
}

/* modals */
#modal {
    z-index: 99999;
    overflow: auto;
}

.modal-title {
    font-size: 1.5em;
    font-weight: bold;
}

.modal-header,
.modal-footer,
.modal-body {
    padding: 10px;
}

.vertical-alignment-helper {
    display: table;
    height: 100%;
    width: 100%;
}

.vertical-align-center {
    /* To center vertically */
    display: table-cell;
    vertical-align: middle;
}

.valign-middle {
    vertical-align: middle !important;
}

.modal-content {
    /* Bootstrap sets the size of the modal in the modal-dialog class, we need to inherit it */
    width: inherit;
    height: inherit;
    /* To center horizontally */
    margin: 0 auto;
}

table {
}

td {
}

input:read-only,
input:disabled,
select:disabled {
    background-color: lightgrey;
    border: 1px solid darkgray;
}

/* Navigation Bar */
#header-nav-bar.container {
}

#header-nav-bar ul {
    padding: 0px;
}

#header-nav-bar li {
    display: inline;
}

#header-nav-bar a {
    text-decoration: underline;
}

/* User */
#user-nav-bar ul {
    list-style-type: none;
    padding: 0px;
}

#user-nav-bar li {
    display: inline;
}

table.notifications {
    border: 1px solid black;
}

table.notifications td, th {
    border: 1px solid black;
    padding: 5px;
}

table.notifications td {
    font-size: 0.9em;
}

/* Client Navigation Bar */
#client-nav-bar ul {
    list-style-type: none;
    padding: 0px;
}

#client-nav-bar li {
    display: inline;
}

.client-tab {
}

.client-active-tab {
    font-size: 1.5em;
    border: 1px solid black;
    border-bottom: none;
    background-color: white;
}

/* Client List */
table#client-list {
    width: 100%;
    border: 1px solid black;
}

table#client-list td {
    border: 1px solid black;
    padding: 5px;
}

table#client-list th {
    padding: 5px;
}

/* Services */
.services-list {
    width: 100%;
    border: 1px solid black;
    border-radius: 3px;
    margin-top: 10px;
}

.services-list tr {
}

.services-list td {
    padding: 5px;
    border: 1px solid grey;
}

.services-list th {
    text-align: left;
}

.services-list input[type=checkbox] {
    /*margin-left: 4px;*/
}

.service-controls-bar {
    margin-top: 10px;
}

/* Bill */
#bill-nav-bar.container {
    border-bottom: 1px dotted grey;
}

#bill-nav-bar ul {
    list-style-type: none;
    padding: 0;
}

#bill-nav-bar li {
    display: inline;
    margin-right: 5px;
}

#bill.container {
    margin-top: 10px;
}

#bill-services-table {
    border: 1px solid black;
    font-size: 0.95em;
}

#bill-services-table td {
    border: 1px solid black;
    padding: 8px;
    vertical-align: top;
}

#bill-services-table th {
    border: 1px solid black;
    padding: 8px;
    vertical-align: top;
    font-size: 1.1em;
}

div#service-description-container {
    width: 300px;
    /*font-size: 0.9em;*/
}

table.opened-bills td,
table.opened-bills th,
table.closed-bills td,
table.closed-bills th {
    border: 1px solid black;
    padding: 3px;
    vertical-align: center;
}

/* Handouts */
#management-openened-services-table, #management-ready-handouts-table {
    border: 1px solid black;
}

#management-openened-services-table td {
    padding: 5px;
    border: 1px solid black;
}

#management-openened-services-table th {
    padding: 5px;
    border: 1px solid black;
}

#management-ready-handouts-table td {
    padding: 5px;
    border: 1px solid black;
}

#management-ready-handouts-table th {
    padding: 5px;
    border: 1px solid black;
}

/* Add & Mod Service */
/*form#add-service,*/
/*form#mod-service*/
/*{*/
/*    width: auto;*/
/*}*/

/*form#add-service label,*/
/*form#mod-service label*/
/*{*/
/*    display: inline-block;*/
/*    width: 150px;*/
/*    height: 25px;*/
/*    text-align: right;*/
/*    vertical-align: top;*/
/*}*/

/*form#add-service input,*/
/*form#mod-service input*/
/*{*/
/*    width: 180px;*/
/*}*/

/*form#add-service select,*/
/*form#mod-service select*/
/*{*/
/*    width: 180px;*/
/*}*/

/*form#add-service textarea,*/
/*form#mod-service textarea*/
/*{*/
/*    width: 300px;*/
/*    height: 100px;*/
/*}*/

/* Third Party Payer */

form#add-tpp label,
form#mod-tpp label {
    display: inline-block;
    text-align: right;
    vertical-align: top;
    width: 90px;
}

form#add-tpp label[for=txt-name],
form#mod-tpp label[for=txt-name] {
    width: 128px;
}

form#add-tpp input,
form#add-tpp textarea,
form#mod-tpp input,
form#mod-tpp textarea {
    margin-left: 3px;
}

div#add-tpp-container,
div#mod-tpp-container {
    width: 100%;
    display: flex;
    flex-direction: row;
}

form#add-tpp #adm,
form#mod-tpp #adm {
    flex: 1;
}

div#copy-buttons {

    flex: 0;
}

form#add-tpp #fac,
form#mod-tpp #fac {
    width: auto;
    flex: 1;
}

input#txt-name {
    width: 255px;
}


div#adm-name,
div#adm-title,
div#adm-tel,
div#adm-email,
div#adm-l1,
div#adm-l2,
div#adm-l3,
div#adm-l4,
div#fac-name,
div#fac-title,
div#fac-tel,
div#fac-email,
div#fac-l1,
div#fac-l2,
div#fac-l3,
div#fac-l4,
div#add-tpp-modality,
div#add-tpp-memo,
div#mod-tpp-modality,
div#mod-tpp-memo {
    display: flex;
    flex-direction: row;
    margin-bottom: 3px;
    padding-right: 3px;
}

div#adm-name input,
div#adm-title input,
div#adm-tel input,
div#adm-email input,
div#adm-l1 input,
div#adm-l2 input,
div#adm-l3 input,
div#adm-l4 input,
div#fac-name input,
div#fac-title input,
div#fac-tel input,
div#fac-email input,
div#fac-l1 input,
div#fac-l2 input,
div#fac-l3 input,
div#fac-l4 input,
div#add-tpp-modality textarea,
div#add-tpp-memo textarea,
div#mod-tpp-modality textarea,
div#mod-tpp-memo textarea {
    flex: 1;
}

div#add-tpp-modality textarea {
    flex: 1;
}


/* TPPS management */

div#adm h4,
div#fac h4 {
    text-align: center;
    border-bottom: 1px solid darkgray;
}

select#sel-tpp-id {
    height: 30px;
    vertical-align: top;
}

div#title-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 10px;
}

div#title-bar div#title {
    flex: 2;
}

div#title-bar div#btn-add-tpp,
div#title-bar div#select-tpp {
    flex: 1;
}

div#title {
    text-align: center;
}

div#select-tpp {
    text-align: left;
}

div#btn-add-tpp {
    text-align: right;
}

/* Add TPP Folder */

#add-tpp-folder label {
    display: inline-block;
    text-align: right;
    width: 128px;
}


#right input,
#right span {
    flex: 1;
}

#two-columns-container {
    display: flex;
    flex-direction: row;
}

#two-columns-container #left,
#two-columns-container #right {
    flex: 1;
}

#two-columns-container #right input {
    width: 50px;
}

#two-columns-container #right div {
    margin-bottom: 10px;
}

div#add-tpp-folder-memo {
    display: flex;
    flex-direction: row;
    padding: 3px;
}

div#add-tpp-folder-memo textarea {
    flex: 1;
}

div.subsidized-meeting {
    padding: 5px;
    margin-bottom: 5px;
    border: 1px solid darkgray;
}

div.linked {
    border: 1px solid lightgreen;
}

div.form-row {
    display: flex;
    flex-direction: row;
    margin-bottom: 3px;
    padding: 3px;
    align-items: center;
}

div.form-row label {
    flex: initial;
    text-align: right;
    width: 100px;
}

div.form-row input:not([type=radio]):not([type=checkbox]):not([type=submit]),
div.form-row textarea,
div.form-row select,
div.form-row-container {
    flex: 3;
}

div.form-row select {
    flex: initial;
    width: 200px;
}

div.form-row input[type=radio],
div.form-row input[type=checkbox] {
    margin-left: 10px;
    margin-right: 3px;
}

.event-room-a {
    width: 27%;
    left: 19.5% !important;
}

.event-room-b {
    width: 27%;
    left: 47.25% !important;
}

.event-room-c {
    width: 27%;
    left: 75% !important;
}

.event-availability {
}

.event-appointment {
}

.event-unsure {
    border: 2px dashed red !important;
}

.event-anonym {
    /*border: 1px solid #333333 !important;*/
    /*background-color: grey !important;*/
}

.event-availability-anonym {
    /*border: 1px solid #333333 !important;*/
    /*background-color: lightgrey !important;*/
}

.form-control-inline {
    min-width: 0;
    width: auto;
    display: inline;
}

a:hover {
    cursor: pointer;
}

/* overview */
#current-date-container {
    font-size: 1.5em;
    display: inline-block;
    width: fit-content;
}

/* topbar */
#topbar {
    /*height: 50px;*/
    padding: 5px;
    background-color: #4aadae;
    width: 100%;
    max-width: 100%;
    z-index: 500;
    position: relative;;
}

#topbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#topbar li {
    margin-top: 0;
    display: inline-block;
    vertical-align: middle;
    margin-left: 5px;
    margin-right: 5px;
    text-transform: uppercase;
    font-weight: bold;
}

#topbar a {
    color: whitesmoke;
}

#topbar .active {
    /*background-color: white;*/
    /*color: #4aadae;*/
    text-decoration: underline;
}

#topbar .right {
    float: right;
}

#topbar .btn-menu {
    /*display: none;*/
}

@media only screen and (max-width: 768px) {
    #topbar li {
        display: none;
    }

    #topbar .nav-user,
    #topbar .btn-menu,
        /*#topbar .nav-disconnect*/
    #topbar .nav-notifs {
        display: inline-block;
    }
}

/* contextual topbar */
.contextual-topbar {
    margin-bottom: 10px;
}

.contextual-topbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.contextual-topbar li {
    margin-top: 0;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
    text-transform: uppercase;
    font-weight: bold;
}

.contextual-topbar .active {
}

.contextual-topbar .right {
    float: right;
}

@media only screen and (max-width: 768px) {
    .contextual-topbar {

    }

    .contextual-topbar ul {
        display: flex;
        flex-wrap: wrap;
        /*flex-direction: column;*/
    }

    .contextual-topbar li {
        /*display: table;*/
        /*overflow: paged-x;*/
        /*width: 15%;*/
        font-size: 0.8em;
        background-color: #2b669a;
        border: 1px solid #0f0f0f;
        text-align: center;
        padding: 10px;
        margin: 1px;
        border-radius: 3px;
    }

    .contextual-topbar a {
        color: white;
    }
}

/* sidebar */
#contextual-menu {
    height: 100%; /* 100% Full-height */
    width: 0; /* 0 width - change this with JavaScript */
    position: fixed; /* Stay in place */
    z-index: 450; /* Stay on top */
    top: 0;
    left: 0;
    padding-top: 55px;
    background-color: #4aadae;
    overflow-x: hidden; /* Disable horizontal scroll */
    transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */
}


#contextual-menu img {
    /*width: %;*/
    border-radius: 3px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.show-menu {
    width: 250px !important;
}

#contextual-menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#contextual-menu li {
    /*margin-top: 0;*/
    display: block;
    /*vertical-align: middle;*/
    margin-left: 10px;
    margin-bottom: 10px;
    margin-right: 10px;
    /*text-transform: uppercase;*/
    font-weight: bold;
}

#contextual-menu a {
    width: 90%;
    margin-left: 5%;
}

#contextual-menu a.active {
    text-decoration: underline;
}

@media only screen and (max-width: 768px) {
    .show-menu {
        width: 100vw !important;
    }

    #contextual-menu a {
        color: white;
        font-size: 1.5em;
    }

    #contextual-menu img {
        display: none;
    }
}

/* notifications */
.row-notification {
    border: 1px solid #31b0d5;
    margin-bottom: 5px;
}

.notification-content {
    display: inline-block;
}

.notification-btn {
    display: inline-block;
    float: right;
}

/* tasks */
.row-task {
    margin-bottom: 5px;
    border: 1px solid #31b0d5;
}

.task-content {
    display: inline-block;
}

.task-btn {
    display: inline-block;
    float: right;
}

/* History */
table#history {
    width: 100%;
    font-size: 1.1em;
}

table#history thead {
    font-size: 1.5em;
    font-weight: bold;
    border-spacing: 5px;
}

table#history tr {
    border-spacing: 5px;
}

table#history td {
    padding: 5px;
}

.history-confirmed {
    background-color: lightgreen;
}

.history-provisional {
    background-color: lightskyblue;
}

.history-missed {
    background-color: lightgoldenrodyellow;
}

.history-canceled {
    background-color: lightcoral;
}

.history-completed {
    background-color: limegreen;
}

/* bills lists */
table.bills {
}

tr.row-disabled,
tr.row-disabled:hover
{
    background-color: lightgray !important;
}

table tr.row-paid {
    background-color: #b2dba1;
}

table tr.row-not-paid {
    background-color: lightcoral;
}

table.bills td,
table.bills th {
    text-align: center;
    padding: 5px;
    border: 1px solid #333333;
}

.arrayed {
    display: flex;
    justify-content: space-around;
}

.arrayed > * {
    margin-right: 3px;
}

.arrayed-evenly {
    display: flex;
    justify-content: space-evenly;
}

.arrayed-evenly > * {
    margin-right: 3px;
    flex-grow: 1;
}

/* intervention */
form.intervention {
    border: 1px solid #3baae3;
    padding: 10px;
    margin-bottom: 5px;
}

form.intervention .row-btn {
    display: flex;
    flex-wrap: nowrap;
}

form.intervention div.signature {
    align-self: flex-start;
    flex-grow: 1;
    margin-top: 10px;
    color: #3c3c3c;
    font-style: italic;
}

form.intervention div.buttons {
    align-self: flex-end;
    flex-grow: 2;
    text-align: right;
}

/* Calendrier */

div#calendar {
    width: 100% !important;
}

.event-availability {
    z-index: 1 !important;
    opacity: 0.80 !important;
}

.event-appointment {
    z-index: 2 !important;
    opacity: 1.0 !important;
}

/* Documents */
.documents {
    border: 1px solid #3baae3;
    padding: 5px;
}

/* Evaluation */
.table-evaluation {
    margin-bottom: 0;
}

.table-evaluation td {
    display: inline-block;
    min-width: 100px;
}

.evaluation-section {
    border: 1px solid lightgrey;
    border-radius: 3px;
    padding: 10px;
    margin-bottom: 5px;
}

.evaluation-section-title {
    font-size: 1.5em;
    font-weight: bold;
}

#evaluation .row {
    padding: 3px;
    /*border-bottom: 1px solid lightgrey;*/
}

#evaluation .row .col-md-2:first-child {
    /*background-color: red;*/
    height: 35px;
    width: 125px;
}

.green {
    cursor: pointer;
    background-color: greenyellow;
}

.yellow {
    cursor: pointer;
    background-color: yellow;
}

.orange {
    cursor: pointer;
    color: white;
    background-color: orange;
}

.red {
    cursor: pointer;
    color: white;
    background-color: red;
}

table#suicide input[type=checkbox].big {
    height: 33px;
    width: 22px;
}

table#suicide td {
    height: 50px;
}

/* Printable */
div.printable-eval-row {
    margin-bottom: 5px;
}

.printable-eval-label {
    /*width: max-content;*/
    text-align: right;
    display: table-cell;
    padding-right: 5px;
    font-weight: bold;
}

span.printable-eval-value {
    display: table-cell;
    padding-right: 5px;
}

ul.toc, ol.toc {
    padding: 0;
    margin: 0;
}

ol.toc {
    counter-reset: toc-counter;
}

ul.toc li, ol.toc li {
    display: flex;
}

ol.toc li {
    counter-increment: toc-counter;
}

ul.toc .dots, ol.toc .dots {
    display: block;
    background: radial-gradient(circle, rgba(0,0,0,.62) 1px, transparent 1px) repeat-x;
    background-size: 10px 20px;
    flex-grow: 10;
}

ol.toc li::before {
    content: counter(toc-counter) ".";
    padding-right: 3px;
    font-weight: bold;
}

/* Banner */
.banner {
    border: 1px solid;
    padding: 5px; 
    border-radius: 2px;

    display: flex; 
    justify-content: space-between; 
    vertical-align: center; 
}

.banner-info {
    border-color: lightblue;
}

.banner-warning {
    border-color: lightcoral;
}