html,
body {
    font-family: "DM Sans";
    font-size: 15px;
    min-height: 100vh;
    background: transparent;
}

html {
    overflow-y: scroll;
}

body {
    display: flex;
    flex-direction: column;
    opacity: 0;
}

h1,
h2,
h3,
h4 {
    color: #2e2e2e;
}

h1 {
    font-size: 25px;
    padding: 20px 0 8px;
}

h2 {
    font-size: 18px;
    padding: 8px 0;
}

h3 {
    font-size: 18px;
    padding: 8px 0;
}

p {
    margin: 10px 0;
    text-align: justify;
}

li {
    margin-left: 40px;
    list-style-type: disc;
}

.img-container {
    margin-top: 20px;
    border-radius: 8px;
    border: 1px solid #888;
}

.img-container img {
    border-radius: 8px;
}

.navbar {
    background-color: #2f3338;
    color: rgba(255, 255, 255, 0.55);
}

.body {
    flex-grow: 1;
}

.link {
    color: #5985f4;
}

.link:hover {
    color: #193c95;
}

.alert {
    width: 100%;
    margin: 10px 0px;
    padding: 10px 20px;
    border-radius: 5px;
    border: 1px solid transparent;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.table {
    margin: 15px 0;
}

.table td {
    padding: 4px 8px;
    border-bottom: 1px solid #cccccc;
    vertical-align: middle;
}

.table tr:last-child td {
    border-bottom: none;
}

.form-label {
    display: block;
}

.form-control {
    padding: 5px 8px;
    margin: 5px 0;
    width: 250px;
    color: #212529;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control[type="checkbox"],
.form-control[type="radio"] {
    width: auto;
    margin: 0 10px 0 0 !important;
}

.form-control[type="color"] {
    padding: 0 3px;
    margin: 5px 0;
    width: 100px;
}

.form-control[disabled="disabled"] {
    background-color: #ebebeb;
}

.form-error {
    margin-bottom: 10px;
    margin-left: 5px;
    color: #b92735;
    font-size: 12px;
}

.form-legend {
    display: block;
    font-size: 0.8em;
}

.name-field {
    display: none;
}

.contact-message {
    width: 400px;
    height: 200px;
}

.inline-form {
    display: inline;
    margin-right: 10px;
}

.inline-form input,
.inline-form select {
    margin-right: 10px;
}
.inline-form input[type="submit"] {
    position: relative;
    top: -2px;
}

.btn {
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    background-color: transparent;
    border: 1px solid transparent;
    margin: 3px 0;
    padding: 2px 6px;
    font-size: 1rem;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
        border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn:hover {
    color: #212529;
}

.btn-sm {
    margin: 1px 0;
    padding: 0px 4px;
    font-size: 0.9em;
}

.btn-primary {
    color: #fff;
    background-color: #3d8bff;
    border-color: #3d8bff;
}

.btn-primary:hover {
    color: #fff;
    background-color: #0a55c5;
    border-color: #0b51bb;
}

.btn-disabled {
    color: #fff;
    background-color: #858585;
    border-color: #858585;
    cursor: default;
}

.btn-disabled:hover {
    color: #fff;
    background-color: #858585;
    border-color: #858585;
}

.btn-danger {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    color: #fff;
    background-color: #bb2d3b;
    border-color: #b02a37;
}

.btn-success {
    color: #fff;
    background-color: #55c23a;
    border-color: #55c23a;
}

.btn-success:hover {
    color: #fff;
    background-color: #447e36;
    border-color: #447e36;
}

.btn-warning {
    color: #fff;
    background-color: #ffc107;
    border-color: #ffc107;
}

.btn-warning:hover {
    color: #fff;
    background-color: #ffca2c;
    border-color: #ffc720;
}

.btn-switch {
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    background-color: #2a2e31;
    margin: 3px 0;
    padding: 2px 6px;
    width: 100px;
    font-size: 1rem;
    color: #fff;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
        border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    border-right: 1px solid #636363;
    border-radius: 0;
}

.btn-switch:first-child {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.btn-switch:last-child {
    border-right: none;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

/*
.btn-switch-left {
    border-right: 1px solid #636363;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.btn-switch-middle {
    border-right: 1px solid #636363;
    border-radius: 0;
}
    

.btn-switch-right {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
    */

.btn-switch-active {
    background-color: #3d8bff;
}

.btn-switch-not-active:hover {
    background-color: #505050;
}

.img-btn {
    line-height: 1;
    padding: 2px;
    margin-right: 8px;
    width: 28px;
    height: 28px;
}

.img-btn img {
    width: 24px;
    height: 24px;
}

.wrapper {
    opacity: 0.9;
    color: #000;
    padding: 2px 5px;
    font-weight: bold;
}

.wrapper:hover {
    opacity: 0.6;
    cursor: pointer;
}

.wrapper-secondary {
    opacity: 0.7;
}

/*
.wrapper-primary:after{
    display:inline-block;
    width:20px;
    height:20px;
    position:relative;
    top:6px;
    content:'';
    background-image:url('../img/feather/chevron-down.svg');
    background-size: contain;
}

.wrapper-secondary:after{
    display:inline-block;
    width:20px;
    height:20px;
    position:relative;
    top:6px;
    content:'';
    background-image:url('../img/feather/chevron-up.svg');
    background-size: contain;
}

*/

.explain {
    position: relative;
    z-index: 0;
    margin: 20px 0;
    padding: 5px 10px;
    background-color: #e4f4ff;
    border: 1px solid #9dd6ff;
    border-radius: 10px;
    width: 100%;
}

.explain-title {
    font-weight: bold;
    color: #4b5691;
}

.explain p {
    margin: 0;
    padding: 4px 0;
    font-size: 0.8em;
    color: #4b5691;
}

.actionCard {
    padding: 10px 0;
    border-bottom: 1px solid #dadada;
    overflow-x: auto;
}

.actionCard-disabled {
    background-color: #f1f1f1;
}

.actionCard-header {
    display: flex;
}

.actionCard-title {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.actionCard-action {
    display: flex;
    align-items: center;
}
.actionCard-primaryAction,
.actionCard-secondaryAction {
    margin-left: 10px;
}

.actionCard-secondaryAction,
.actionCard-hiddenContent {
    display: none;
}

.actionCard-visibleContent {
    margin-bottom: 10px;
}

.actionCard-hiddenContent {
    padding: 0 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: rgba(238, 238, 238, 0.233);
}

.role-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 18px;
    width: 80%;
    border-radius: 4px;
    color: #000000;
    font-size: 0.65em;
    background-color: #fff;
    font-weight: bold;
}

.role-badge-not-acces {
    color: #ff3232;
}

.role-badge-acces {
    color: #5583d8;
}

.role-badge-manage {
    color: #50aa39;
}

.role-badge-admin {
    color: #9e258a;
}

.operator-color {
    width: 20px;
    height: 20px;
    position: relative;
    top: 3px;
    left: 10px;
    border-radius: 12px;
}

.selectDate-form {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.smartphone-dateselector {
    display: none;
}

.selectDate-links-group {
    text-align: center;
    padding-top: 5px;
    display: flex;
    justify-content: center;
}
.selectDate-links-group a {
    margin-left: 5px;
    margin-right: 5px;
}

.planning-slot {
    display: inline-block;
    margin: 1px;
    margin-right: 2px;
    padding: 5px 6px;
    border-radius: 4px;
    background-color: #ccd8ff;
}

.planning-hour {
    display: inline-block;
    width: 47px;
    padding: 2px 3px;
    font-size: 0.9em;
}

.planning-hour::placeholder {
    color: rgb(199, 199, 199);
    font-size: 0.8em;
}

.change-details {
    display: flex;
    align-items: center;
    text-align: center;
    cursor: pointer;
    color: #888;
    font-size: 0.8em;
}

.changes-months-list {
    display: flex;
    flex-flow: wrap;
    justify-content: center;
}

.changes-months-list-element {
    margin: 3px;
    width: 130px;
}

.operator-link {
    color: #000;
    text-decoration: none;
}

.operator-link:hover {
    color: #3b4254;
    text-decoration: underline;
}

.operator-hours-count {
    display: inline-block;
    margin-left: 5px;
}

.color-picker-group {
    display: flex;
    justify-content: center;
}

.color-picker-button {
    width: 18px;
    height: 18px;
    margin-left: 2px;
    border-radius: 4px;
    cursor: pointer;
}

.operator-avatar-group {
    display: flex;
    flex-wrap: wrap;
}

.operator-avatar {
    display: flex;
    align-items: center;
    flex-direction: column;
    margin: 4px;
    width: 100px;
    height: 90px;
    border-radius: 10px;
    cursor: pointer;
}

.avatar-name {
    margin-top: 10px;
    color: #fff;
    font-weight: bold;
    text-shadow: 0 0 5px #000;
    font-size: 0.9em;
}

.planning-plus-description {
    margin: 10px 20px;
    padding: 20px;
    border: 1px solid #226326;
    border-radius: 5px;
    background-color: #ecfff0;
}

.planning-plus-description li {
    list-style-type: none;
    line-height: 1.5em;
}

.planning-plus-description li:before {
    content: "\2714";
    color: green;
    padding-right: 8px;
}

.img-plans {
    margin-top: 10px;
    margin-bottom: 30px;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.25);
    border-radius: 8px;
}

.float-left {
    float: left;
}

/*

.company-select {
    position: absolute;
    top: 4px;
    right: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #fff;
    color: #000;
    border: none;
    border-radius: 4px;
    padding: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.company-select:hover {
    background-color: #f0f0f0;
}

.company-select .icon {
    width: 24px;
    height: 24px;
    pointer-events: none;
}

*/

.company-select {
    position: absolute;
    top: 4px;
    right: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #fff;
    color: #000;
    border: none;
    border-radius: 4px;
    padding: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    z-index: 1001; /* toujours au-dessus */
}

.company-select:hover {
    background-color: #f0f0f0;
}

.company-select .icon {
    width: 24px;
    height: 24px;
    pointer-events: none;
}

/* Menu flottant */
.company-menu {
    width: 95%;
    margin: 8px auto;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0;
    display: none; /* caché par défaut */
    z-index: 1000;
}

.company-menu a {
    display: block;
    padding: 6px 12px;
    text-decoration: none;
    color: #111;
    font-size: 14px;
    border-radius: 4px;
    margin: 1px;
    background: #fff;
}

.company-menu a:hover {
    background: #aaccff;
}
