
/* SISTEMA FINANCEIRO ÉVORA MAXX */

:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #172b3c;
  background: #f3f6fa;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

/* ESTRUTURA PRINCIPAL */

.app-layout {
  display: flex;
  min-height: 100vh;
}

/* MENU LATERAL AZUL */

.sidebar {
  width: 255px;
  min-width: 255px;
  min-height: 100vh;
  background: linear-gradient(
    165deg,
    #08385c 0%,
    #092e4c 45%,
    #061e35 100%
  );
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

/* LOGOTIPO OFICIAL */

.brand {
  padding: 30px 20px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}

.logo-oficial {
  display: block;
  width: 100%;
  max-width: 215px;
  height: auto;
  object-fit: contain;
  mix-blend-mode: screen;
}

/* MENU DE NAVEGAÇÃO */

.menu-label {
  padding: 28px 26px 13px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: #90aabe;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0 12px;
}

.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 15px;
  color: #c8d8e6;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  border-radius: 5px;
  text-align: left;
  font-size: 14px;
  transition: background .2s, color .2s;
}

.nav-item:hover {
  background: rgba(255,255,255,.08);
  color: #ffffff;
}

.nav-item.active {
  background: #16486b;
  color: #ffffff;
  border-left-color: #e3b646;
  font-weight: 700;
}

.nav-icon {
  width: 22px;
  text-align: center;
  color: #e3b646;
  font-size: 19px;
}

/* RODAPÉ DO MENU */

.sidebar-footer {
  margin-top: auto;
  padding: 25px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #a2b5c5;
  font-size: 11px;
}

.sidebar-footer button {
  display: block;
  margin-top: 15px;
  padding: 9px 0;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 13px;
}

.sidebar-footer button:hover {
  color: #e3b646;
}

/* ÁREA PRINCIPAL */

.main-area {
  flex: 1;
  min-width: 0;
}

.topbar {
  height: 78px;
  background: #ffffff;
  border-bottom: 1px solid #e1e7ee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 35px;
}

.topbar strong {
  display: block;
  font-size: 17px;
  color: #0b3555;
}

.topbar small {
  display: block;
  color: #8796a4;
  margin-top: 5px;
}

.user-email {
  color: #607587;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.content {
  padding: 35px;
  max-width: 1500px;
}

.page-heading {
  margin-bottom: 28px;
}

.page-heading h1 {
  font-size: 27px;
  color: #103c5c;
  margin: 0 0 8px;
}

.page-heading p {
  margin: 0;
  color: #8796a4;
  font-size: 14px;
}

/* DASHBOARD */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.stat-card {
  background: #ffffff;
  border: 1px solid #e2e8ee;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 3px 12px rgba(12,48,76,.04);
}

.stat-card span {
  display: block;
  color: #718597;
  font-size: 13px;
}

.stat-card strong {
  display: block;
  font-size: 32px;
  color: #103c5c;
  margin: 15px 0 8px;
}

.stat-card small {
  color: #9aa8b5;
  font-size: 11px;
}

/* PAINÉIS */

.panel {
  background: #ffffff;
  border: 1px solid #e2e8ee;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 3px 12px rgba(12,48,76,.04);
}

.panel h3 {
  color: #103c5c;
  margin: 0 0 15px;
  font-size: 17px;
}

.panel p {
  color: #6f8090;
  line-height: 1.6;
}

.panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}

.panel-toolbar h3 {
  margin: 0;
}

/* BOTÕES */

.actions {
  display: flex;
  gap: 10px;
}

.actions button,
.login-card button {
  background: #10466a;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 11px 17px;
  font-weight: 600;
}

.actions button:hover,
.login-card button:hover {
  background: #0a3451;
}

/* TABELAS */

.scroll {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th {
  background: #f1f5f9;
  color: #25455e;
  text-align: left;
  padding: 13px;
  white-space: nowrap;
}

td {
  padding: 13px;
  border-bottom: 1px solid #e8edf2;
  color: #455b6d;
}

tr:hover td {
  background: #f8fafc;
}

#notice {
  color: #b14d37;
  font-size: 13px;
}

/* TELA DE LOGIN */

.center {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #092c48, #061c32);
  padding: 20px;
}

.login-card {
  background: #ffffff;
  width: 100%;
  max-width: 410px;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 15px 50px rgba(0,0,0,.2);
}

.login-logo {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
  margin: 0 auto 20px;
  background: #092e4c;
  border-radius: 6px;
  mix-blend-mode: screen;
}

.login-card h1 {
  color: #103c5c;
  font-size: 30px;
  margin: 0;
}

.login-card h2 {
  color: #d3a92f;
  font-size: 16px;
  margin: 10px 0 25px;
}

.login-card p {
  color: #788a99;
  font-size: 13px;
}

.login-card form {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 25px;
}

.login-card input {
  padding: 13px;
  border: 1px solid #d8e0e7;
  border-radius: 6px;
  width: 100%;
}

.login-card button {
  margin-top: 5px;
}

/* RESPONSIVIDADE */

@media (max-width: 900px) {
  .sidebar {
    width: 210px;
    min-width: 210px;
  }

  .content {
    padding: 22px;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .app-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    min-width: 0;
    min-height: auto;
  }

  .brand {
    padding: 18px;
  }

  .logo-oficial {
    max-width: 170px;
  }

  .menu-label {
    padding: 15px 18px 8px;
  }

  .side-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-bottom: 15px;
  }

  .nav-item {
    font-size: 12px;
    padding: 11px;
  }

  .sidebar-footer {
    padding: 12px 18px;
  }

  .topbar {
    padding: 15px;
    height: auto;
    gap: 12px;
  }

  .content {
    padding: 18px;
  }

  .panel-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .actions {
    flex-wrap: wrap;
  }
}


/* LOGO INTEGRADO AO MENU AZUL */

.brand {
  background: transparent;
}

.logo-oficial {
  display: block;
  width: 100%;
  max-width: 215px;
  height: auto;
  background: transparent;
  mix-blend-mode: screen;
  filter: brightness(1.05);
}



/* EVORA MAXX - FORMULARIOS PADRONIZADOS */

#collaborator-form {
  margin-top: 24px;
  padding: 26px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

#form-pj {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px !important;
  max-width: 100% !important;
  margin: 0 !important;
}

#form-pj h3 {
  grid-column: 1 / -1;
  color: #123d65;
  font-size: 20px;
  margin: 0 0 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

#form-pj label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #243b53;
  font-size: 13px;
  font-weight: 600;
  min-width: 0;
}

#form-pj input,
#form-pj select {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #172b4d;
  font-size: 14px;
  font-family: inherit;
}

#form-pj input:focus,
#form-pj select:focus {
  outline: none;
  border-color: #b89b52;
  box-shadow: 0 0 0 3px rgba(184,155,82,.15);
}

#form-pj > div {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

#form-pj button {
  border: 0;
  border-radius: 8px;
  padding: 12px 20px;
  font-weight: 600;
  cursor: pointer;
}

#save-collaborator {
  background: #123d65;
  color: white;
}

#cancel-collaborator {
  background: #e9eef4;
  color: #123d65;
}

#form-notice {
  grid-column: 1 / -1;
  font-size: 13px;
}

@media (max-width: 700px) {
  #collaborator-form {
    padding: 16px;
  }

  #form-pj {
    grid-template-columns: 1fr;
  }
}
