/* =========================
CONTAINER
========================= */

.portal-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* =========================
SECTIONS (ritmo vertical)
========================= */

.portal-section {
  margin-bottom: 30px;
}


/* =========================
STACK (espaçamento vertical)
========================= */

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}


/* =========================
GRID (layout simples)
========================= */

.grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 999px){
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================
RESPONSIVO
========================= */

@media (max-width: 999px){

  .portal-container {
    padding: 15px;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

}

/* =========================
APP LAYOUT
========================= */

.portal-app {
  display: block;
  min-height: 100vh;
}

/* MAIN */

.portal-main {
  min-width: 0;
}

.portal-main {
  padding: 25px;
  padding-top:80px;
  padding-bottom:120px;
}


/* TITULOS */

.portal-page-header {
    margin-bottom: 50px;
    border-bottom: 1px solid #0D4679;
    padding-bottom:28px;
}

.portal-page-title {
    font-size: 36px;
    font-style: normal;
    font-weight: 300;
    line-height: 81.5%;
    letter-spacing: -1.8px;
    font-family: 'Spectral', serif;
    color:#0D4679;
    margin:0;
    margin-bottom:20px;
    margin-top:20px;
}

.portal-page-subtitle {
    color: #A9A8A8;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 117%;
    margin:0;
}


.portal-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}

.portal-page-header__left {
  display: flex;
  flex-direction: column;
}

/* LOGO */

.portal-page-logo {
  width: 55px;
  height: auto;
  display: block;
}

/* =========================
DESKTOP
========================= */

@media (min-width: 999px){

  .portal-app {
    display: grid;
    grid-template-columns: 360px 1fr;
  }

  .portal-sidebar {
    position: relative;
    transform: none !important;
  }

}


/* =========================
MOBILE
========================= */
@media (max-width: 999px){

    .portal-info-row {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "label edit"
            "value value";
        gap: 8px 10px;
    }

    .portal-info-row .label {
        grid-area: label;
    }

    .portal-info-row .edit-trigger {
        grid-area: edit;
        justify-content: flex-end;
    }

    .portal-info-row .value {
        grid-area: value;
        text-align: left;
    }

    /* edição */
    .portal-info-row.editing .value {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .portal-info-row.editing .actions {
        justify-content: flex-end;
    }
}