/*
Theme Name:     Miramont FdS Template
Theme URI:      tbd
Description:    Custom child theme for Miramont
Author:         TDelet
Author URI:     tbd
Template:       twentytwentytwo
Version:        0.2
*/
 
@import url("../twentytwentytwo/style.css");

#page {
    padding-left: 1em;
    padding-right: 1em;
}

.error {
    color: red;
}
.success {
    color: green;
}
.well {
    min-height: 20px;
    padding: 19px;
    margin-bottom: 20px;
    background-color: #f5f5f5;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.05);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.05);
}

/* FdS - Specific */
.mrm-fds-item {
    margin: 1em;
    padding: 1em;
    border: 1px solid gray;
    border-radius: 5px;
}

.mrm-fds-status-container {
    display: inline-block;
    float: right;
    margin: 1em;
}

.mrm-fds-status {
    border: 1px solid gray;
    padding: 1em;
    border-radius: 0.5em;
    background-color: lightgray;
    color: gray;
}

.mrm-fds-status-invalid, .mrm-fds-status-empty {
    color: gray;
    background-color: lightgray;
    border-color: gray;
}
.mrm-fds-status-draft {
    color: blueviolet;
    background-color: mistyrose;
    border-color: blueviolet;
}
.mrm-fds-status-initialized {
    color: blue;
    background-color: lightblue;
    border-color: blue;
}
.mrm-fds-status-validatedByOwner {
    color: darkorange;
    background-color: lightyellow;
    border-color: darkorange;
}
.mrm-fds-status-validatedByAdmin {
    color: green;
    background-color: lightgreen;
    border-color: green;
}
.mrm-fds-status-cancelled {
    color: indianred;
    background-color: mistyrose;
    border-color: indianred;
}

.mrm-fds-actions-container {
    margin-bottom: 1em;
}
.mrm-fds-action-btn {
    background-color: var(--wp--preset--color--primary);
    border-radius: 0;
    border-width: 0;
    color: var(--wp--preset--color--contrast);
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    padding: calc(0.667em + 2px) calc(1.333em + 2px);
    text-decoration: none;
    cursor: pointer;
    margin: 0.5em;
}
.mrm-fds-action-btn.mrm-secondary {
    background-color: var(--wp--preset--color--vivid-cyan-blue);
}
.mrm-fds-action-btn:hover {
    background-color: black;
    color: white;
}

.mrm-disabled-field {
    display: none;
}

/* FdS / Participants */
#mrm_fds_participants_form {
    margin: 0;
    padding: 16px;
    border-top-width: 1px;
    border-top-style: solid;
    border-top-color: #EAECF0;
}
#mrm_fds_participants_form .acf-label {
    vertical-align: top;
    margin: 0 0 10px;
}
#mrm_fds_participants_form .acf-label label {
    display: block;
    font-weight: 500;
    margin: 0 0 3px;
    padding: 0;
}
.mrm-fds-participant-container {
    margin: 5px;
    padding: 10px;
    border: 1px solid lightgray;
    border-radius: 2px;
}

.mrm-form-field-error {
    border: 2px solid red !important;
}

/* Notice / alerts etc */
.mrm-fds-notice {
    border: 1px solid gray;
    padding: 1em;
    border-radius: 0.5em;
    background-color: lightgray;
    color: gray;
    margin-bottom: 1em;
}
.mrm-fds-notice-info {
    color: blue;
    background-color: lightblue;
    border-color: blue;
}

#message.updated {
    border: 1px solid gray;
    padding: 1em;
    border-radius: 0.5em;
    color: green;
    background-color: lightgreen;
    border-color: green;
    margin-bottom: 1em;
}

/* Bootstrap override */
.text-bg-secondary-light {
    background-color: lightgray;
}
.badge.text-bg-secondary-light {
    color: gray;
}

/* Debug infos */
.debug-container {
    border-top: 1px solid gray;
    margin-top: 20px;
    margin-bottom: 20px;
    padding-top: 20px;
}

.debug-infos {
    width: 33%;
    padding: 1em;
    float: left;
    font-size: 0.8em;
    box-sizing: border-box;
}

.debug-infos-container {
    overflow: auto;
    padding: 5px;
}

.debug-page-name {
    font-family: Consolas,Monaco,'Andale Mono',monospace;
    font-size: 0.8em;
    min-height: 20px;
    padding: 5px;
    margin-bottom: 5px;
    background-color: #f5f5f5;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.05);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.05);
}