html {
    font-size: 12px !important; }

.main-content {
    min-height: calc(100vh - 65px);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-spiner {
    position: fixed;
    left: calc(50% - 60px);
    bottom: 50%;
    transform: translate(-50%, -50%);
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid var(--primary);
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
    z-index: 1000;
    display: none;
}

@keyframes load-loop {
    0% {
      background-position: 100%;
    }
  
    40% {
      background-position: 50%;
    }
  
    50% {
      background-position: 50%;
    }
  
    90% {
      background-position: 0%;
    }
  
    100% {
      background-position: 0%;
    }
}

.loader-horizontal {
    position: relative;
    font-family: sans-serif;
    display: flex;
    height: auto;
    width: auto;
    letter-spacing: 3px;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    font-size: 1.45em;
    color: transparent;
    background: linear-gradient(to right,#fff 33.3%,var(--primary) 33.3%, var(--primary) 66.6%, #fff 66.6%) no-repeat;
    background-size: 300%;
    background-position: 100%;
    background-clip: text;
    -webkit-background-clip: text;
    animation: infinite 1.4s load-loop ease;
}

.loader-horizontal::after {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    display: block;
    background: linear-gradient(to right,var(--primary) 33.3%, transparent 33.3% , transparent 66.6%, var(--primary) 66.6%) no-repeat;
    background-size: 300%;
    background-position: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    animation: infinite 1.4s load-loop ease;
}

/* Espace entre date et heure sur safari */
input::-webkit-datetime-edit-text {
    margin-inline: 3px;
}

.ck.ck-editor__main > .ck-editor__editable {
    background: none !important;
}

a {
    text-decoration: none !important;
}

.sortable {
    display: flex;
    white-space: nowrap;
}
.sortable span {
    margin-right: .25rem !important;
}

.sorted .asc, .sorted .desc {
    display: flex;
    white-space: nowrap;
}
.sorted .asc span, .sorted .desc span {
    margin-right: .25rem !important;
}

.table thead th {
    border: none;
}
.table td {
    vertical-align: middle;
    border: 0px;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
}
.table td:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}
.table td:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}
.path{
    flex-wrap: wrap;
    list-style: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    font-size: 1.2em;
}
.path__step.step--active {
    font-weight: bold;
}
.path__step {
    color: var(--primary);
    white-space: nowrap;
}
.path__step.step--disabled {
    color: var(--secondary);
}
.path__step:not(:first-of-type)::before {
    display: inline-block;
    content: "";
    width: 2.5rem;
    height: 0.125rem;
    margin: 0 0.125rem 0 0.3125rem;
    background-color: var(--primary);
}
.path__step.step--disabled::before {
    background-color: var(--secondary);
}
.stepper-wrapper {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-left: 25px;
    margin-bottom: 20px;
}
.stepper-item {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex: 1;
}
.step-name {
    margin-left: 25px;
    margin-top: -8px;
    text-align: center;
}
@media (min-width: 992px) {
    .stepper-wrapper {
        flex-direction: row;
    }
    .stepper-item {
        flex-direction: column;
    }
    .stepper-item::before {
        position: absolute;
        content: "";
        border-bottom: 2px solid #ccc;
        width: 100%;
        top: 20px;
        left: -50%;
        z-index: 2;
    }
    .stepper-item::after {
        position: absolute;
        content: "";
        border-bottom: 2px solid #ccc;
        width: 100%;
        top: 20px;
        left: 50%;
        z-index: 2;
    }
    .stepper-item.completed::after {
        position: absolute;
        content: "";
        border-bottom: 2px solid var(--primary);
        width: 100%;
        top: 20px;
        left: 50%;
        z-index: 3;
    }
    .step-name {
        margin-left: 0px;
        margin-top: 0px;
    }
}
.stepper-item .step-counter {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ccc;
    margin-bottom: 6px;
    color: white;
    font-size: large;
}
.stepper-item.completed .step-counter {
    background-color: var(--primary);
}
.stepper-item.active {
    font-weight: bold;
}
.stepper-item:first-child::before {
    content: none;
}
.stepper-item:last-child::after {
    content: none;
}

table.tableau-facturation{
    text-align: center;
    vertical-align: middle;
    border-radius: 0.5rem;
    overflow: hidden;
}
table.tableau-facturation td:nth-child(1) input{
    width: calc(100% - 10px);
    text-align: left;
    border:none;
}
table.tableau-facturation td:nth-child(2) input, table.tableau-facturation td:nth-child(3) input, table.tableau-facturation td:nth-child(4) input{
    width: 60px;
    text-align: center;
    border:none;
}
table.tableau-facturation {
    border-collapse: collapse;
}
table.tableau-facturation td, table.tableau-facturation th {
    padding: 5px;
}
table.tableau-facturation, table.tableau-facturation th, table.tableau-facturation td {
    border: 1px solid grey;
}
input[type=number] {
    appearance: textfield;
    -moz-appearance:textfield;
}

.datepick{
    background-color: white !important;
    color: #212529 !important;
}

.form-check {
    font-size: 16px !important;
    margin-left: 10px;
}
.form-check-input[type=checkbox]{
    margin-top: 2px;
}

.invalid-feedback{
    font-size: 1.2em !important;
    margin-bottom: 0.25rem !important;
}

.we-clamp {
	display: block;
	overflow: hidden;
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
	-webkit-mask-position: right bottom;
	mask-position: right bottom;
	word-break: break-word;
}

.we-clamp--visual {
	--clamp-lines: 0;
	display: -webkit-box;
	-webkit-line-clamp: var(--clamp-lines);
	line-clamp: var(--clamp-lines);
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.widget-pastille-list {
    list-style-type: none;
    display: flex;
    padding: 0;
}

.widget-pastille-list a {
    text-decoration: none;
    margin-right: 10px;
}

.widget-pastille-list li {
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 12px;
    color: inherit;
}

.colored-toast.swal2-icon-success {
    background-color: #a5dc86 !important;
}

.colored-toast.swal2-icon-error {
    background-color: #f27474 !important;
}

.colored-toast.swal2-icon-warning {
    background-color: #f8bb86 !important;
}

.colored-toast.swal2-icon-info {
    background-color: #3fc3ee !important;
}

.colored-toast.swal2-icon-question {
    background-color: #87adbd !important;
}

.colored-toast .swal2-title {
    color: white;
}

.colored-toast .swal2-close {
    color: white;
}

.colored-toast .swal2-html-container {
    color: white;
}

.color-preview {
    background-color: var(--cabinet-color, transparent); /* transparent en fallback */
    width: 41px;
    height: 26px;
    border-radius: 0.25rem;
}

/* Presence heatmap levels (darker greens overall) */
.presence-cell {
    border-radius: 0 !important;
    padding: 2px !important;
    border: 0 !important;
}
/* Base color: deeper green #0E7A5A; alpha grows with level */
.presence-level-0  { background-color: rgba(0, 140, 52, 0) !important; }
.presence-level-1  { background-color: rgba(14, 216, 0, 0.4) !important; }
.presence-level-2  { background-color: rgba(12, 203, 1, 0.475) !important; }
.presence-level-3  { background-color: rgba(10, 190, 2, 0.55) !important; }
.presence-level-4  { background-color: rgba(9, 177, 2, 0.625) !important; }
.presence-level-5  { background-color: rgba(8, 164, 2, 0.7) !important; }
.presence-level-6  { background-color: rgba(7, 151, 2, 0.775) !important; }
.presence-level-7  { background-color: rgba(6, 138, 2, 0.85) !important; }
.presence-level-8  { background-color: rgba(5, 125, 2, 0.925) !important; }
.presence-level-9  { background-color: rgba(4, 112, 2, 1) !important; }
.presence-level-10 { background-color: rgba(0, 111, 6, 1) !important; }