.bg-light-gray {
    background-color: #CCCCCC;
}

.bg-gray-200 {
    background-color: #edf2f7;
}

.bg-white {
    background-color: #ffffff;
}

.bg-green-200 {
    background-color: #c6f6d5;
}

.bg-red-200 {
    background-color: #fed7d7;
}

.bg-yellow-100 {
    background-color: #fffff0;
}

.bg-orange-400 {
    background-color: #f6ad55;
}

.bg-dark-orange {
    background-color: #FF8C00;
}

.bg-soft-orange {
    background-color: #FFA500;
}

.bg-blue-500 {
    background-color: #4299e1;
}

.bg-bgWarning {
  background-color: rgba(252, 250, 244, 1) !important;
}

.bg-bgDanger {
  background-color: rgba(255, 232, 232, 1) !important;
}

.bg-bgSuccess {
  background-color: rgba(232, 255, 248, 1) !important;
}

.bg-bgPrimary {
  background-color: rgba(245, 248, 252, 1) !important;
}

.text-white {
    color: #ffffff;
}

.text-cyan-500 {
    color: #4299e1;
}

.text-cyan-600 {
    color: #2b6cb0;
}

.message-sidebar-row {
    padding: 10px 0;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 10px;
    margin-left: 0;
    width: 100%;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.message-sidebar-col {
    margin-right: 10px;
}

.message-sidebar-command-row {
    display: flex;
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
}

.message-sidebar-command-checkbox {
    margin: 4px 5px 0 auto !important;
}

.checkbox-inline {
    display: flex;
    flex-direction: row;
    margin-bottom: 8px;
    border: 1px solid #ddd;
    border-radius:4px;
    padding: 8px;
}
.checkbox-inline label {
    margin: 4px 4px 0;
}

.justify-content-center {
    display: flex;
    justify-content: center;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.flex-centered {
    display: flex;
    justify-items: center;
    align-items: center;
}

.flex-row
{
    display: flex; !important;
    flex-direction: row; !important;
}

.align-self-start {
    align-self: start;
}

align-self-center {
    align-self: center;
}
.space-between {
    justify-content: space-between;
}

.gap-sm {
    gap: 8px;
}

.gap-xsm {
    gap: 4px;
}

.gap-l {
    gap: 12px;
}

.m-0 {
    margin: 0;
}

.m-2 {
    margin: 2px;
}

.mr-2 {
    margin-right: 2px;
}

.mr-8 {
    margin-right: 8px;
}

.mb-xxs {
    margin-bottom: 2px;
}

.mb-xs {
    margin-bottom: 4px;
}

.mb-sm {
    margin-bottom: 8px;
}

.mb-24 {
    margin-bottom: 24px;
}

.mb-64 {
    margin-bottom: 64px;
}

.ml-64 {
    margin-left: 64px;
}

.ml-128 {
    margin-left: 128px;
}

.ml-32 {
    margin-left: 32px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}


.text-center {
    text-align: center;
}

.text-m {
    font-size: 14px !important;
}

.text-l {
  font-size: 16px !important;
}

.text-xl {
  font-size: 20px !important;
}

.text-xxl {
    font-size: 24px !important;
}

.p-2 {
    padding: 2px !important;
}

.p-8 {
    padding: 8px !important;
}

.pl-10 {
    padding-left: 10px !important;
}

.pr-8 {
    padding-right: 6px !important;
}

.pr-6 {
    padding-right: 6px !important;
}

.pr-10 {
    padding-right: 10px !important;
}

.px-4 {
    padding-left: 4px !important;
    padding-right: 4px !important;
}

.px-8 {
    padding-left: 8px !important;
    padding-right: 8px !important;
}

.px-16 {
    padding-left: 16px !important;
    padding-right: 16px !important;
}

.py-2 {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}

.py-8 {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

.py-16 {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
}

.py-32 {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
}

.rounded {
    border-radius: 4px;
}
.rounded-tg {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.rounded-lg {
    border-radius: 8px;
}

.rounded-m {
    border-radius: 6px;
}

.w-60 {
    width: 60px;
}

.w-80 {
    width: 80px;
}

.w-100 {
    width: 100px;
}


.w-3\/5 {
    width: 60%;
}

.w-full {
    width: 100%;
}

.font-bold {
    font-weight: 700;
}

.underline {
    text-decoration-line: underline;
}

.border {
    border: 1px solid #e5e5e5;
}

.border-b {
    border-bottom: 1px solid #e5e5e5;
}

.table-separator {
    pointer-events: none;
    td {border: none !important;}
}

.group-fields-border {
    border: 2px solid #e5e5e5;
    padding: 8px 8px 0;
    border-radius: 6px;

}

.create-custom-document {
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: center;
}

.create-custom-document-head {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr 1fr;
    padding: 24px;
    width: 100%;
    text-align: center;
}

.create-custom-document-head-row {
    display: flex;
    flex-direction: row;
    gap: 8px;
    border: 1px #eee solid;
    padding: 8px;
    border-radius: 12px;
    font-size: 1.2em;
    align-items: center;
    justify-content: center;
}

.errorlist {
    color: #b94a48;
    margin: 0;
}

.cursor-not-allowed {
    cursor: not-allowed !important;
}

.long-select {
    width: 380px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Style for the disabled link */
.disabled-link {
    color: gray;
    text-decoration: none;
    position: relative;
    cursor: not-allowed;
}

.disabled-link:active {
    pointer-events: none; /* Disable clicking */
}

/* Tooltip wrapper */
.disabled-link-tooltip-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 100%;
}

/* Tooltip text */
.disabled-link-tooltip {
    visibility: hidden;
    background-color: #505A63;
    color: #fff;
    text-align: center;
    padding: 5px;
    border-radius: 4px;
    position: absolute;
    top: 50%; /* Center vertically */
    left: 110%; /* Position to the right of the link */
    transform: translateY(-50%); /* Center alignment */
    white-space: nowrap;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
}

/* Tooltip arrow */
.disabled-link-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -10px; /* Adjust position to point back at the link */
    transform: translateY(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent #505A63 transparent transparent;
}

/* Show tooltip on hover */
.disabled-link-tooltip-wrapper:hover .disabled-link-tooltip {
    visibility: visible;
    opacity: 1;
}

/* Changerequest List */
.open_detail{
    color:#999;
    text-decoration:none;
}
.open_detail:hover{
    text-decoration: underline;
    color:#666;
    cursor: default;
}
.ch_detail{
    display: none;
}

/* ca_ct_nature */
.ca-filter-link {
    padding: 12px 16px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.ca-filter-link-active {
    background-color: #4299e1;
    color: #ffffff;
}

.ca-filter-link-inactive {
    background-color: #edf2f7;
    color: #000000;
}

.ca-ct-card {
    flex: 1 1 calc(33.333% - 16px);
    box-sizing: border-box;
    max-width: 600px;
    text-align: center;
    border: 1px solid grey;
    border-radius: 24px;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ca-ct-root-button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    justify-content: center;
    max-width: 200px;
}

.ca-ct-root-button i {
    font-size: 18px;
}

.tabs-row {
    border-bottom: 2px solid #e5e5e5;
}

.button_container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background: #e5e5e5;
    border: 1px solid #9f9e9e;
    border-radius: 8px;
}

.square-button {
    position: relative;
    width: 50px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    border: 0px;
    border-radius: 8px;
    background-color: #e5e5e5;
    overflow: hidden;
}

@keyframes colorAnimationGreen {
    0% {
          background: linear-gradient(to right, #e5e5e5 100%,  green 0%);
    }
    25% {
          background: linear-gradient(to right, #e5e5e5 80%,  green 20%);
    }
    50% {
          background: linear-gradient(to right, #e5e5e5 60%,  green 40%);
    }
    75% {
          background: linear-gradient(to right, #e5e5e5 50%,  green 50%);
    }
    100% {
          background: linear-gradient(to right, #e5e5e5 0%,  green 100%);
    }
}

@keyframes colorAnimationRed {
    0% {
          background: linear-gradient(to left, #e5e5e5 100%,  red 0%);
    }
    25% {
          background: linear-gradient(to left, #e5e5e5 80%,  red 20%);
    }
    50% {
          background: linear-gradient(to left, #e5e5e5 60%,  red 40%);
    }
    50% {
          background: linear-gradient(to left, #e5e5e5 50%,  red 50%);
    }
    100% {
        background: linear-gradient(to left, #e5e5e5 0%, red 100%);
    }
}

@keyframes colorAnimationGrey {
    0% {
          background: linear-gradient(0.25turn, #e5e5e5 50%,  dimgrey 0%, #e5e5e5 50%);
    }
    25% {
          background: linear-gradient(0.25turn, #e5e5e5 40%,  dimgrey 20%, #e5e5e5 40%);
    }
    50% {
          background: linear-gradient(0.25turn, #e5e5e5 25%,  dimgrey 50%, #e5e5e5 25%);
    }
    75% {
          background: linear-gradient(0.25turn, #e5e5e5 10%,  dimgrey 80%, #e5e5e5 10%);
    }
    100% {
        background: linear-gradient(0.25turn, #e5e5e5 0%, dimgrey 100%, #e5e5e5 0%);
    }
}

.square-button.undefined {
    background-color: dimgrey;
    color: black;
    animation: colorAnimationGrey 0.2s ease-in;
}

.square-button.approved {
    color: white;
    background-color: green;
    animation: colorAnimationGreen 0.2s ease-in;
}

.square-button.refused {
    background-color: red;
    color: white;
    animation: colorAnimationRed 0.2s ease-in;
}

.square-button i {
    font-size: 24px;
}

.square-button.no-control {
    padding: 4px;
    border: 1px solid black;
}

.list-category-cards {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 16px 8px;
    gap: 8px;
}

.search-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    justify-content: space-around;
    align-items: center;
    padding: 16px 8px;
}

.ca-ct-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.ca-ct-right-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.icon-rotating {
    animation: rotate 1s linear infinite;
    display: inline-block;
}
