/* THEME SCA CSS */
/*
 * Align all amounts on the right
*/
.entity-grid td[data-type="System.Decimal"], .entity-grid td[data-type="System.Int32"]:not(td[data-attribute="cms_invoice"]){
    text-align: right;
}

.tab-title{
    display: none;
}

#mainContent{
    margin-top: 3%;
}

.crmEntityFormView .actions {
    display: flex;
    justify-content: center;
}

#EntityFormControl_EntityFormView {
    background-color: #e9e9e9;
}

#EntityFormControl_EntityFormView h3 {
    text-decoration: underline;
}

#EntityFormControl_EntityFormView legend.section-title {
    border-bottom: none !important;
}

#btnView span {
    cursor: pointer;           
}

#btnView span:hover {
    opacity: 0.75;             
}

.btn-follow {
    cursor: pointer;
}

.btn-follow:hover {
    opacity: 0.75;
}

.btn-unfollow {
    cursor: pointer;
}

.btn-unfollow:hover {
    opacity: 0.75;
}


.requestSubTypedropdown-content{
    max-height: 210px;
    overflow-y: auto;
}

.contactdropdown-content,.requestSubTypedropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border: 1px solid black;
    padding: 10px;
}

.contactdropdown-content a,.requestSubTypedropdown-content a {
    float: none;
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.contactdropdown-content a:hover,.requestSubTypedropdown-content a:hover {
    background-color: #ddd;
}

/* Return back button */
a#previousPageButton {
  margin: 6.5em 0em 0em 3.3em;
  position: relative;
  /*color : white !important;*/
}
a#previousPageToOrderButton {
  margin: 6.5em 0em 0em 2em;
  position: relative;
  /*color : white !important;*/
}

a#previousPageButton:hover, a#previousPageButton:focus, a#previousPageToOrderButton:hover, a#previousPageToOrderButton:focus {
  text-decoration: none;
  color: #112753;
}

#WebResource_GestionDocumentPortail {
    height: 500px !important;
}

 .navbar-smartbar .nav>li>a:hover, .nav>li>a:focus, .nav>li>a:visited {
        /*background-color: red !important;*/
        text-decoration: none !important;
}

.tab-element {
    border-bottom: 1px #dddddd solid;
}
 /* Change the THEAD color of a part of the head column list */
.view-grid th:nth-child(n+13):nth-last-child(n+4) {
    background-color: #0066CC;
}

.view-grid th:nth-child(n+18):nth-last-child(n+1) {
    background-color: #255B8E;
}

.info label {
    font-size: 22px;
}

.navbar-notification-link {
    position: relative;
    display: inline-flex;
    align-items: center;
}


/* NOTIFICATIONS BLOCK */

/* Cloche */
.notification-bell {
    padding-right: 16px;
    padding-left: 16px;
    font-size: 14px;
    color: #ffffff;  
}

/* Badge style image */
.notification-badge {
    position: absolute;
    top: -9px;
    right: 1px;
    width: 15px;
    height: 15px;
    background-color: #e56a1b;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}



/* BACKGROUND */
.cabinlife {
  position: relative;
  background-image: url("/bg-plane.jpg");
  background-size: cover;
  background-position: center;
}
 
/* OVERLAY BLEU CLAIR */
.cabinlife-overlay {
  position: absolute;
  inset: 0;
  background: rgba(235, 243, 250, 0.9);
}
 
/* CONTENU */
.cabinlife-content {
  position: relative;
  padding: 40px 60px;
}
 
/* TITRE */
.home-title {
  font-size: 44px;          
  font-weight: 600;         
  color: #2f4f77;          
  margin-bottom: 30px;
}

/* Close button */

.home-toggle {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #1d3557;
    z-index: 20;
}

.home-toggle .glyphicon {
    font-size: 22px; 
}

/* Closed state*/
.home-card.main-card.collapsed .updates-section,
.home-card.main-card.collapsed .image-card {
    display: none;
}


 
/* main card */
.main-card {
  position: relative;
  background: #f6fbff;
  border-radius: 8px;
  padding: 50px;
  margin-bottom: 20px;
}
 
.home-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto; 
  gap: 30px;
}


 
/* UPDATES */
.update-item {
  margin-bottom: 16px;
}
 
.update-item p {
  margin: 4px 0 0;
  color: #555;
}
 
.image-card {
  grid-column: 2;
  grid-row: 1 / span 2; 
  display: flex;
  align-items: center;   
}


.image-card img {
  width: 100%;
  max-height: 100%;
  border-radius: 6px;
}

.powerbi-container {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
}

.powerbi-container.open {
    max-height: 950px;
    padding-bottom: 16px;
}

.kpi-title
{
  padding-left: 10px;
  padding-bottom: 16px;
}

/* CUSTOMER MANAGER */
.manager-card {
  margin-top: 40px;
}
 
.manager-card p {
  margin: 6px 0;
}
 
.control .text {
    font-size: 18px;
}

.body-breadcrumb .container:has(#previousPageButton) {
    height: 5em;
}

/* Add background image for the connexion page */
.addBackgroundImage {
    height: 100%;
    background-image: url("../backgroundimage.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
}

.content-container {
    display: flex;
    justify-content: center;
}

/*.connect-block-center{
    display: flex;
    justify-content: center;
}
*/

.connect-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.connect-buttons .bt-mg {
    padding: 0.5rem;
    width: 50%;
    margin: 0.5rem 0;
}

/* body:has(.addBackgroundImage){
    font-size: 12px;
} */

/*body:has(.addBackgroundImage) .bt{    
    padding: 0.25rem;
}

body:has(.addBackgroundImage) a.bt.bt-primary.bt-mg {
    margin-top: 2.5rem;
}
body:has(.addBackgroundImage) .bt-mg{
    height: 16%;
    width: 50%;
    margin: 1rem 0rem 0.5rem 8rem;
}
*/

body:has(.addBackgroundImage) .headerspace {
    margin: 0;
}

body:has(.addBackgroundImage) .footer {
    margin-top: 0;
}

/* Align the create request button with the title of the page */

@media screen and (min-width: 992px) {
    .bt-floatTopRight{
        float: right;
    }
}

@media screen and (max-width: 992px) {
    .bt-floatTopRight{
        margin: 0 0 2rem 0 !important;
        width: 100%;
    }
}

/*@media screen and (max-width: 1199px) {
    .tab-column div fieldset { 
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        align-content: center;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
}
*/

/* Request details */

.request-details-template{
  margin-bottom : 30px;
}


.request-actions {
  text-align: right;
  margin:10px;
  margin-bottom: 16px;
}

.request-box.description img{
  max-width: 100% !important;
  height: auto !important;
}


.crmEntityFormView .tab 
{
  margin-bottom: 0px !important;
}


.request-box.action img {
  max-width: 100% !important;
  height: auto !important;
}




.request-meta {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  font-size: 13px;
  font-weight: 700;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.request-meta-content{
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid #ddd;
  padding-bottom: 8px;
  margin-bottom: 16px;
}



.request-description-header{
    font-size: 20px;
    font-weight: 500;
}
.request-origin-block {
  padding: 20px 0px;
  margin-bottom: 5px;
  font-weight: 500;
  font-size: 20px;
}

.request-main-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.request-layout {
  display: flex;
  gap: 24px;
}

.request-sidebar {
  width: 260px;
}

.contact-card {
  background: #fff;
  border: 1px solid #ddd;
  padding: 12px;
  margin-bottom: 20px;
  font-weight: 700;
  font-size: 13px;
}
.request-steps-vertical {
  list-style: none;
  padding: 0;
  margin: 0;
}

.request-steps-vertical li {
  position: relative;
  padding-left: 40px;
  margin-bottom: 50px;
  color: #999;
}

.request-steps-vertical li::before {
  content: "";
  position: absolute;
  left: 95px;             
  top: 32px;               
  height: calc(100%);
  width: 1px;
  background: #ddd;
}

.request-steps-vertical li:last-child::before {
  display: none;
}

.step-index {
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #555;
  font-size: 13px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}


.step-label{
    font-size:14px;
    font-weight: 400;
    color : #525668;
}

li.active .step-label{
    font-size:14px;
    font-weight: 700;
    color : #255B8E;
}

li.done .step-index {
  background: #cfd8e3;
  color: #333;
}

li.active .step-index {
  background: #073A7C;
  color: #fff;
}

li.active {
  color: #073A7C;
  font-weight: 600;
}

.request-content {
  display: flex !important;
  flex-direction: row;
  background: #f4f9fc;
  flex: 1;
  gap: 20px;
  padding: 10px 20px 20px 20px;
}


.request-box {
  flex: 1;                
  padding: 16px;
}

/* Header */
.request-description-header {
  font-weight: bold;
  margin-bottom: 10px;
}


.request-gallery {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.attachment {
  width: 180px;
  height: 120px;
  background: #ddd;
}




.nav-order {
    padding: 0 5vw;
}

/*#cms_rmdescription_ControlView iframe {
    height: 23rem !important;
}*/

#sca_customeractionportal_ControlView iframe {
    height: 23rem !important;
}

/* Hide the Service Choices field*/
tr:has(#cms_serviceschoice_Container) {
    display: none;
}

.powerbi {
    height: 900px;
}

/* Plein écran pour le rapport Power BI entre le header et le footer */
#powerbi-fullscreen-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
}
#powerbi-main-content {
  flex: 1 1 auto;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  min-height: 0;
}
.powerbi-embed-responsive {
  width: 100%;
  height: 100%;
  min-height: 0;
  /* Pour s'assurer que l'iframe Power BI occupe tout l'espace */
}
/* Accessibilité : s'assurer que le contenu principal est bien détecté par les lecteurs d'écran */
#powerbi-main-content[role="main"] {
  outline: none;
}