h1 {
  text-align: center;
  font-size: 25px;
  font-weight: 600;
  margin-top: 120px;
  margin-bottom: 80px;
}

.global-section{
    background-color:var(--redlina-background-2);
    max-width: 400px;
    padding: 30px 50px 10px 50px;
    margin:0px auto 50px auto;
    border-radius: 25px;
}

h2 {
  text-align: left;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 30px;
}

.global-form{
    background: transparent;
    margin: 0 auto 30px auto;
    display: flex;
    flex-direction: column;
}

.global-form label {
  font: inherit;
  font-size: 13px;
  font-weight: 500;
}
.global-form input,
.global-form select {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  margin-top: 5px;
  margin-bottom: 20px;
  border:1px solid var(--redlina-grayline-2);
  border-radius: 10px;
  background:transparent;
  font: inherit;
  font-size: 13px;
}

.global-form button {
  align-self: flex-end;
  height: 40px;
  margin-top: 10px;
  padding-left: 20px;
  padding-right: 20px;
  border: 0px solid #000;
  border-radius: 12px;
  background: #000000;
  color: #F1F1F1;
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: 0.2s ease;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.global-form button:hover {
  opacity: 0.8;
}

input::placeholder,
textarea::placeholder {
  color: #B6B6B6;
  opacity: 1;
}

input:disabled {
  color: #B6B6B6;
  opacity: 1;
}











/* ==============================
   NOTIFICATION CHANNEL
============================== */

.p-notifications{
  color:var(--redlina-graytext-2);
  font-size: 13px;
  
  width:100%;
}


.notification-channel{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:15px;
  margin-bottom:15px;
}

.notification-label{
  font-size:16px;
  font-weight:500;
}


/* ==============================
   TOGGLE SWITCH
============================== */

.switch {
  position: relative;
  width: 42px;
  height: 22px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position:absolute;
  cursor:pointer;
  background:#d6d6d6;
  border-radius:30px;
  top:0;
  left:0;
  right:0;
  bottom:0;
  transition:.25s;
}

.slider:before {
  position:absolute;
  content:"";
  height:18px;
  width:18px;
  left:2px;
  bottom:2px;
  background:white;
  border-radius:50%;
  transition:.25s;
}

.switch input:checked + .slider {
  background:#000;
}

.switch input:checked + .slider:before {
  transform:translateX(20px);
}


/* ==============================
   REMINDER OPTIONS
============================== */

.notification-reminders{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom:25px;
}

.reminder-option{
  padding:8px 14px;
  border-radius:10px;
  border:1px solid var(--redlina-grayline-2);
  cursor:pointer;
  font-size:13px;
  transition:0.15s;
}

.reminder-option:hover{
  background:var(--redlina-background-3);
}

.reminder-option.active{
  background:#000;
  color:white;
  border-color:#000;
}



/* ==============================
   STYLE SELECT SAFARI
============================== */
select {
  color: var(--redlina-black);
  -webkit-text-fill-color: var(--redlina-black);
}


/* ==============================
   AFFICHAGE DES OPTIONS AU CHECK DU TOGGLE
============================== */

#email-reminders {
  display: flex;
  flex-direction: column;
  gap: 10px;

  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-6px);

  transition:
    max-height 0.7s cubic-bezier(.4,0,.2,1),
    opacity 0.4s ease,
    transform 0.7s cubic-bezier(.4,0,.2,1);
}

/* Toggle ON */

.notification-channel:has(#email-enabled:checked) + #email-reminders {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
}








/* ==============================
   FACTURES
============================== */

.invoice-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--redlina-grayline-2);
  font-size: 13px;
  margin-top:0px;
}

.invoice-line:last-child {
  border-bottom: none;
}

.invoice-date {
  font-weight: 400;
  color: var(--redlina-black);
}

.invoice-download-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  min-height: 26px;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.invoice-download-btn:hover {
  opacity: 1;
}

.invoices-empty {
  font-size: 13px;
  color: var(--redlina-graytext-2);
  padding: 10px 0 20px 0;
}

#invoices-list{
  margin-bottom: 30px;
}

.invoices-show-more {
  display: block;
  height: 40px;
  margin-top: 10px;
  margin-left: auto;
  padding: 0 20px;
  border: none;
  border-radius: 12px;
  background: #000000;
  color: #F1F1F1;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.invoices-show-more:hover {
  opacity: 0.8;
}


/* ==============================
   BTN SHOW MORE
============================== */

.invoices-show-more {
  background: none;
  border: none;
  font: inherit;
  font-size: 13px;
  color: #000;
  cursor: pointer;
  padding: 12px 0 4px 0;
  text-decoration: underline;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.invoices-show-more:hover {
  opacity: 1;
}