@import url('https://fonts.googleapis.com/css2?family=Fjalla+One&family=League+Spartan:wght@100..900&family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

/* =================== DEFINIÇÕES GERAIS ================================ */
/* ====================================================================== */
/* #region */
.fjalla-one-regular {
  font-family: "Fjalla One", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.league-spartan {
  font-family: "League Spartan", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.open-sans {
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.nunito {
  font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

:root {
  --sb-bg: #020812;
  --sb-color: #e0e0e0;
  --sb-accent: #ae9fff;
  --sb-hover: #1b263b;
  --sb-tag-beta: #8293b3;
  --sb-toggle: #8579eb;
  --fonte-fjalla: "Fjalla One", sans-serif;
  --fonte-spartan: "League Spartan", sans-serif;
  --fonte-open-sans: "Open Sans", sans-serif;
  --fonte-nunito: "Nunito", sans-serif;
}

body {
  margin: 0;
  background-color: #f5f6fa;
}
/* #endregion */
/* ========================= SIDEBAR (NAV) =============================== */
/* ====================================================================== */
/* #region */
.sb-sidebar {
  top: 0;
  left: 0;
  z-index: 111;
  display: flex;
  flex-direction: column;
  font-size: 12px;
  width: 250px;
  height: 100vh;
  background: var(--sb-bg);
  color: var(--sb-color);
  transition: width 0.3s ease;
  position: fixed;
  border-right: 1px solid #ffffff20;
}

.sb-sidebar.sb-collapsed {
  width: 88px;
}

.sb-sidebar.sb-collapsed .sb-logo-text,
.sb-sidebar.sb-collapsed .sb-text,
.sb-sidebar.sb-collapsed .sb-section-title,
.sb-sidebar.sb-collapsed .sb-tag,
.sb-sidebar.sb-collapsed .sb-footer p {
  display: none;
}

.sb-sidebar.sb-collapsed .sb-footer {
  height: 60px;
  width: 40px;
}

.sb-sidebar.sb-collapsed .sb-menu a {
  justify-content: center;
}

.sb-sidebar.sb-collapsed .sb-toggle {
  transform: rotate(180deg);
}

/* --- Header / Logo --- */
.sb-header {
  display: flex;
  align-items: center;
  padding: 20px;
}

.sb-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sb-logo-icon {
  font-size: 20px;
  border-radius: 20%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sb-logo-text {
  font-family: var(--fonte-nunito);
  line-height: 20px;
  font-size: 16px;
  font-weight: 900;
}

.sb-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 30px;
  right: -10px;
  z-index: 1001;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 100%;
  background: var(--sb-toggle);
  color: var(--sb-color);
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

/* --- Section --- */
.sb-section {
  padding-left: 15px;
  overflow: hidden;
  padding-bottom: 0;
}

.sb-section-title {
  display: block;
  font-size: 12px;
  color: #8a8a8a;
  padding: 0 20px;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Menu --- */
.sb-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sb-menu li {
  margin-bottom: 5px;
}

.sb-menu a {
  display: flex;
  font-size: 16px;
  align-items: center;
  color: var(--sb-color);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.sb-menu a:hover {
  background: var(--sb-hover);
}

/* animação dos ícones */
@keyframes swing {
  20% { transform: rotate(20deg); }
  40% { transform: rotate(-15deg); }
  60% { transform: rotate(10deg); }
  80% { transform: rotate(-10deg); }
  100% { transform: rotate(0deg); }
}

.sb-menu a:hover .sb-icon {
  animation: 0.5s ease-in-out 0s 1 alternate none running swing;
}

.sb-icon {
  font-size: 15px;
  margin-right: 10px;
}

.sb-text {
  font-family: var(--fonte-spartan);
}

/* --- Footer --- */
.sb-footer {
  transition-duration: 0.3s;
  align-items: center;
  height: 100px;
  width: 150px;
  align-self: center;
  margin-top: auto;
  margin-left: 5%;
  margin-right: 5%;
  margin-bottom: 50px;
  border-radius: 10px;
  background: var(--sb-hover);
  text-align: center;
  padding: 10px;
  font-size: 10px;
}

.sb-llama-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.llama-icon-medium {
  display: flex;
  flex-direction: column;
  height: 60px;
  width: 40px;
}

.sb-footer-txt {
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  text-align: left;
  font-size: 16px;
  line-height: 19px;
}

.sb-footer .mail {
  font-family: var(--fonte-open-sans);
}
/* #endregion*/
/* ========================= MAIN (REGISTRO) ============================ */
/* ====================================================================== */
/* #region */
#mr {
  top: 0px;
  position: static;
  height: 100vh;
  margin-left: 250px;
  transition: margin-left 0.3s ease;
  background: #020914;
}

.mr-s1 {
  padding: 20px;
  margin:0;
}

.sb-sidebar.sb-collapsed ~ #mr {
  margin-left: 88px;
  transition: margin-left 0.3s ease;
}

.mr-dashboard-header {
  /* Este item da grade ocupará toda a largura */
  grid-column: 1 / -1; 
  background: linear-gradient(135deg, rgba(105, 92, 254, 0.15) 0%, rgba(41, 46, 68, 0.8) 100%);
  border-image: linear-gradient(45deg, #695CFE, #4ADEDE, #FF7BDA);
  border-image-slice: 1;
  border-style: solid;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
}

.mr-header-content h1 {
  font-family: var(--fonte-fjalla);
  font-size: 2.5rem;
  background: linear-gradient(90deg, #695CFE, #00ffcc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ========================= GRID CONTAINER ============================== */
/* ====================================================================== */

.grid-container {
  display: grid;
  width: 100%;
  height: 100%;
  margin: 0; /* Centraliza a grid na página */
  
  /* UMA ÚNICA COLUNA */
  grid-template-columns: 1fr;
  
  /* TRÊS LINHAS: Header (auto), Botões (auto), Conteúdo (resto) */
  grid-template-rows: 15% 10% 1fr 1fr;
  
  height: 90vh;
  gap: 10px; /* Espaço entre as 3 linhas */
}


/* ====================================================================== */
/* =================== LAYOUT =========  NOVO  ========================== */
/* ====================================================================== */

/* LINHA 2: A barra de botões (Container Flexbox) */
.mr-button-bar {
  display: flex;
  flex-wrap: wrap; 
  gap: 10px; 
  justify-content: center;
  padding: 10px;
  background: rgb(105 ,92 ,254 , 0.14);
  border-image: linear-gradient(45deg, #695CFE, #4ADEDE, #FF7BDA);
  border-image-slice: 1;
  border-style: solid;
}

/* LINHA 3: Listagem */
.mr-lists {
  background: rgb(105 ,92 ,254 , 0.14);
  border-image: linear-gradient(45deg, #695CFE, #4ADEDE, #FF7BDA);
  border-image-slice: 1;
  border-style: solid;
  padding: 10px;
}

.mr-lists .table {
  
  font-size: 14px;
  padding:0px;
}

.mr-lists .table td {
  padding-top:2px;
  padding-bottom:2px;
}

/* ========================== Botões da barra ========================== */
/* #region */

button {
     outline: none;
     -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.eta .btn {
    display: inline-block;
    margin: 10px;
    font-size: inherit;
    padding: 0.5em 1.8em;
    font-weight: normal;
    border-width: 2px;
    border-style: solid;
    background: transparent;
    border-radius: 0.9em;
    cursor: pointer;
    font-family: "Avenir Next", Avenir, sans-serif;
    user-select: none;
    vertical-align: bottom;
    position: relative;
    overflow: hidden;
    text-shadow: rgba(0, 0, 0, 0.2) 0px -1px 0px;
    transition: box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    background-color: #44415a;
    color: #E6EAEF;
    border-color: #0d0a36;
    border-bottom-color: #14093b;
    box-shadow: 0 1px 1px -1px rgba(255, 255, 255, 0.9) inset, 0 40px 20px -20px rgba(255, 255, 255, 0.15) inset, 0 -1px 1px -1px rgba(0, 0, 0, 0.7) inset, 0 -40px 20px -20px rgba(0, 0, 0, 0.06) inset, 0 9px 8px -4px rgba(0, 0, 0, 0.4), 0 2px 1px -1px rgba(0, 0, 0, 0.3), 7px 7px 8px -4px rgba(0, 0, 0, 0.1), -7px 7px 8px -4px rgba(0, 0, 0, 0.1), 0 -4px 12px 2px rgba(163, 48, 230, 0.2);
}

.eta .btn:active {
     text-shadow: rgba(255, 255, 255, 0.2) 0px 1px 0px;
     transition-duration: 0.2s;
}

.eta .btn::after {
     content: "";
     display: block;
     position: absolute;
     top: 0px;
     left: 0px;
     height: 100%;
     width: 100%;
     transform: rotate(-19deg) translateY(-1.3em) scale(1.05);
     filter: blur(1px);
     background-image: linear-gradient(-90deg, rgba(255, 255, 255, 0.12) 20%, rgba(255, 255, 255, 0));
}

.eta .btn:hover {
  background-color: #3e2ba7;
}
.eta .btn:active {
  box-shadow: 0 -1px 1px -1px rgba(255, 255, 255, 0.4) inset, 0 -40px 20px -20px rgba(255, 255, 255, 0.1) inset, 0 1px 1px -1px rgba(0, 0, 0, 0.7) inset, 0 40px 20px -20px rgba(0, 0, 0, 0.06) inset, 0 7px 8px -4px rgba(0, 0, 0, 0.4), 0 2px 1px -1px rgba(0, 0, 0, 0.2), 7px 7px 8px -4px rgba(0, 0, 0, 0.05), -7px 7px 8px -4px rgba(0, 0, 0, 0.05), 0 -4px 12px 2px rgba(163, 48, 230, 0.1);
  background-color: #4b37b8;
  color: #281190;
}

/* #endregion */

/* Grid item 3 corpo do cadastro */
.mr-content-area {
  background-color: transparent;
  border-image: linear-gradient(45deg, #695CFE, #4ADEDE, #FF7BDA);
  border-image-slice: 1;
  border-style: solid;
  height: 100%;
  overflow-y:scroll;
  padding:20px;
}

.mr-container-all { /* cria o flex para colocar foto e campos de cadastro lado a lado*/
  display: flex;
  flex-direction: row;
  gap: 20px;
  width: 100%;
}

.mr-container-left {
  border: 1px solid rgb(245, 7, 7);
}

.mr-container-right {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
}

.form-field {
  display: grid;
  gap: 5px; /* Espaço entre o label e o input */
}

.form-field.small {
  grid-column: span 2; /* Ocupa 2 de 9 colunas */
}
.form-field.x-small {
  grid-column: span 1; /* Ocupa 1 de 9 colunas */
}

/* campos cliente */

.label-customer {
  color:rgb(255, 255, 255);
  font-family: var(--fonte-nunito); 
}


.mr-input {
  font-size: 16px;
  height: 30px;
  padding-left: 10px;
  background: rgb(255, 255, 255);
}

.mr-screen {
  display: grid;
  gap: 20px;    
  width: 100%;  
  grid-template-columns: 5% 1fr;
}

.hidden {
    display: none;
}

/* opcional: marcar botão ativo visualmente */
.mr-button.active {
    outline: 2px solid var(--sb-bg);
    filter: brightness(1.1);
}


.mr-lists .table td {
  padding-top:2px;
  padding-bottom:2px;
}

/* Cursor pointer nas linhas da tabela */
.mr-lists .table tbody tr {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.mr-lists .table tbody tr:hover {
  background-color: rgba(105, 92, 254, 0.2) !important;
}

textarea.mr-input {
  height: auto;
  min-height: 80px;
  resize: vertical;
}