@import "modern-normalize";


/* 
configure variable font
// <uniquifier>: Use a unique and descriptive class name
// <weight>: Use a value from 100 to 1000

.roboto-flex-<uniquifier> {
  font-family: "Roboto Flex", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal; //italic, bold, oblique 12deg;
  font-stretch: 89%;
  font-optical-sizing: auto;
  font-variation-settings:
    "slnt" 0, slant (inclinação, equivalente a oblique)
    "wdth" 100, (equivalente a font-stretch)
    "GRAD" 0, (Grade, grossura)
    "XOPQ" 96,
    "XTRA" 468,
    "YOPQ" 79,
    "YTAS" 750, (ascendentes)
    "YTDE" -203, (descendentes)
    "YTFI" 738,
    "YTLC" 514,
    "YTUC" 712;
} */

.list_table_container {
  width: 100%;
  overflow-x: auto;
  margin: 1rem 0;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-color: #ffffff; /* White background for consistency */
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Roboto Flex", sans-serif;
  font-size: 0.9rem;
  color: #424242; /* Medium dark gray for text */
}

th,
td {
  padding: 12px;
  text-align: left;
  border: 1px solid #ddd;
}

th {
  background-color: #2196f3; /* Blue for header */
  color: white;
  font-weight: bold;
}

tbody tr:nth-child(even) {
  background-color: #f5f5f5; /* Light gray for alternating rows */
}

tbody tr:hover {
  background-color: #e3f2fd; /* Light blue on hover */
}

tfoot {
  background-color: #4a524a; /* Dark gray for footer */
  color: white;
  font-weight: bold;
}

/* Adjust column sizes dynamically */
td:first-child {
  min-width: 150px;
  max-width: 300px;
  word-wrap: break-word;
}

td:last-child {
  word-break: break-word;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  th,
  td {
    font-size: 0.8rem;
    padding: 8px;
  }
}

:root {
  line-height: 1.5;
}

/* :root {
  --font-size-hl: 20px;
  --font-size-h2: 15px;
  --font-size-h3: 12px;
  --font-size-p: 8px;
  --letter-spacing: 8px;
}

@media (min-width: 300px) {
  :root {
      --font-size-hl: 13px;
      --font-size-h2: 10;
      --font-size-h3: 8px;
      --font-size-p: 5px;
      --letter_spacing: 4px;
  }
} */



h1, h2, h3, h4, h5, figure, p, ol, ul {
  margin: 0;
}

ol[role="list"], ul[role="list"] {
  list-style: none;
  padding-inline: 0;
}

h1, h2, h3, h4, h5 {
  font-size: inherit;
  font-weight: inherit;
}

img {
  display: block;
  max-inline-size: 100%;
}

.gruppo-regular {
  font-family: "Roboto Flex", sans-serif;
  font-weight: 400;
  font-style: normal;
}

body {
  background-color: #e0e0e0; /* Medium gray */
  color: #424242; /* Medium dark gray for text */
  margin: 0rem;
  padding: 0rem;
  height: 100%;
  font-family: "Roboto Flex", sans-serif;
  /* font-weight: 400;
  font-style: normal; */
}

.main {
  /* background-color: lightcyan; */
  /* margin: 0rem;
  padding: 0rem;
  height: 89vh; */
  display: flex;
}

.contents {
  margin-left: 3vw; /* Default sidebar width when closed */
  padding: 2rem;
  flex-grow: 1;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  flex-flow: row wrap;
  align-items: flex-start;
  justify-content: flex-start;
  align-content: flex-start;
  transition: margin-left 0.3s ease; /* Smooth transition for sidebar toggle */
}

.sidebar {
    width: 20vw;
    background-color: #102241; /* Medium blue */
    color: white;
    padding: 1rem;
    height: 93vh;
    position: fixed;
    display: flex;
    flex-direction: column;
    /* margin: 0rem; */
}

.sidebar.closed {
    width: 2vw;
}

.sidebar.closed + .contents {
  margin-left: 3vw; /* Sidebar width when closed */
}

.sidebar.opened {
  width: 20vw;
}

.sidebar.opened + .contents {
  margin-left: 21vw; /* Sidebar width when opened */
}

.toggle_sidebar {
  background-color: rgba(14, 74, 108, 0);
  color: white;
  text-align: right;
}

.sidebar_item {
  /* font-size: 1.5rem; Adjust icon size */
  margin-right: 0.5rem; /* Space between icon and text */
  vertical-align: middle; /* Align icon with text */
  color: white; /* Default color for icons */
  transition: color 0.3s ease; /* Smooth color transition */
}

.sidebar_item:hover {
  color: #bbdefb; /* Light blue on hover */
}

.page_title {
  width: 100%;
  min-height: 0;
  padding: 0rem;
  margin: 0rem;
  font-size: 32px;
  font-weight: 700;
  color: rgba(21, 106, 155, 1);
}

.page_title p {
  padding: 0 1rem;
  font-size: 1.5rem;
  font-weight: bold;
}

.form_actions {
  width: 100%;
  height: 2rem;
  border-top: 1px solid rgba(21, 155, 118, 1);
  border-bottom: 1px solid rgba(21, 155, 118, 1);
  display: flex;
  flex-direction: row;
  padding: 0.5rem;
}

.form_actions_left {
  width: 15%;
  padding: 0rem;
  margin: 0rem;
  display: flex;
  flex-direction: row;
  justify-content: start;
}

.form_actions_right {
  width: 85%;
  padding: 0rem;
  margin: 0rem;
  display: flex;
  flex-direction: row;
  justify-content: end;
}

.button {
  padding: 0.6rem 1.2rem;
  margin: 0.2rem;
  border-radius: 0.5rem;
  border: none;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Primary Button */
.button.primary {
  background-color: #2196f3; /* Blue */
  color: white;
}

.button.primary:hover {
  background-color: #1976d2;
}

.button.primary:active {
  background-color: #1565c0;
}

/* Secondary Button */
.button.secondary {
  background-color: #f5f5f5; /* Light gray */
  color: #424242;
}

.button.secondary:hover {
  background-color: #e0e0e0;
}

.button.secondary:active {
  background-color: #bdbdbd;
}

/* Danger Button */
.button.danger {
  background-color: #f44336; /* Red */
  color: white;
}

.button.danger:hover {
  background-color: #d32f2f;
}

.button.danger:active {
  background-color: #b71c1c;
}

/* Warning Button */
.button.warning {
  background-color: #ff9800; /* Orange */
  color: white;
}

.button.warning:hover {
  background-color: #fb8c00;
}

.button.warning:active {
  background-color: #ef6c00;
}

/* Success Button */
.button.success {
  background-color: #4caf50; /* Green */
  color: white;
}

.button.success:hover {
  background-color: #388e3c;
}

.button.success:active {
  background-color: #2e7d32;
}

/* Info Button */
.button.info {
  background-color: #03a9f4; /* Light Blue */
  color: white;
}

.button.info:hover {
  background-color: #0288d1;
}

.button.info:active {
  background-color: #0277bd;
}

/* Disabled Button */
.button.disabled {
  background-color: #e0e0e0; /* Gray */
  color: #9e9e9e;
  cursor: not-allowed;
  box-shadow: none;
}

.button.disabled:hover {
  transform: none;
  box-shadow: none;
}

.not_found {
  width: 100%;
  height: 100%;
  display: flex;
  align-content: center;
  align-items: center;
  justify-content: space-around;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #6d7abb; /* Medium purple */
  padding: 1rem;
  color: white;
  /* width: 100%;
  height: 7vh;
  margin: 0rem; */
  padding: 1rem;
}

.toolbar a {
  color: white;
  padding: 0rem 1rem 0rem 1rem;
  text-decoration: none;
  font-weight: 600;
}

.toolbar-left {
  display: flex;
  /* justify-content: start;
  width: 100%; */
  align-items: center;
}

.toolbar-left img {
  height: 40px;
}

.toolbar-right {
  display: flex;
  /* justify-content: end;
  width: 100%; */
  align-items: center;
}

.toolbar-right a, .toolbar-right button {
  color: white;
  text-decoration: none;
  margin-left: 1rem;
  display: flex;
  align-items: center;
}

.toolbar-right button {
  background: none;
  border: none;
  cursor: pointer;
}

.menu {
  min-width: 200px; /* Ensure a minimum width for the menu */
  max-width: 300px; /* Optional: Set a maximum width */
  height: auto;
  display: flex;
  flex-direction: column;
  align-self: flex-end;
  align-content: end;
  background-color: grey;
  position: absolute;
  right: 0.5rem;
  top: 3.8rem;
  z-index: 999;
  padding: 0.5rem;
  border-radius: 0.4rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add a shadow for better visibility */
  opacity: 1; /* Ensure the menu is visible */
  transform: translateY(0); /* Ensure the menu is in the correct position */
  transition: opacity 0.3s ease, transform 0.3s ease; /* Smooth transition for visibility */
}

.menu.hidden {
  opacity: 0; /* Hide the menu */
  transform: translateY(-10px); /* Move it slightly up */
}

.menu a {
  text-decoration: none;
  color: white;
  padding: 0.5rem 0;
  transition: background-color 0.3s ease;
}

.menu a:hover {
  background-color: rgba(255, 255, 255, 0.2); /* Add hover effect */
}

.menu-button {
  display: flex;
  align-items: center;
}

.card_container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem; /* Increased gap for better spacing */
  padding: 1rem;
}

.card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 300px;
  transition: transform 0.2s, box-shadow 0.2s;
  margin: 0; /* Ensure no margin for smoother integration */
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.card_header {
  background-color: #2196f3; /* Blue */
  color: #ffffff;
  padding: 1rem;
  font-weight: bold;
  text-align: center;
}

.card_contents {
  padding: 1rem;
  flex-grow: 1;
  color: #424242; /* Dark gray */
}

.card_footer {
  padding: 1rem;
  background-color: #f5f5f5; /* Light gray */
  text-align: center;
  font-size: 0.875rem;
  color: #757575; /* Medium gray */
}

.tabs_container {
  width: 99%;
  min-height: 0;
}

.tabs_header {
  width: 99%;
  display: flex;
  flex-direction: row;
  overflow-x: auto;
}

.tab {
  margin-top: 0.5rem;
  padding: 0.5rem;
  margin: 0.3rem 0.1rem 0rem 0rem;
  width: 8rem;
  background-color: #e3f2fd; /* Light blue background */
  border-radius: 0.4rem 0.4rem 0rem 0rem;
  color: #424242; /* Medium dark gray for text */
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.tab:hover {
  background-color: #bbdefb; /* Slightly darker blue on hover */
  color: #212121; /* Darker text color on hover */
}

.tab.active {
  background-color: #69ace2; /* Blue for active tab */
  color: white; /* White text for active tab */
  border-bottom: 2px solid #1976d2; /* Darker blue border for active tab */
}

.tabs_contents {
  padding: 0.3rem 0.3rem 0.3rem 0.3rem;
  height: 100%;
  width: 100%;
  background-color: rgb(201, 224, 231);
}

.tab_contents {
  display: none;
  visibility: hidden;
}

.tab_contents.active {
  width: 99%;
  visibility: visible;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin-right: 0rem;
  padding-right: 0rem;
  /* overflow: auto; */
}

.label {
  width: 100%;
  height: 1rem;
  font-size: 13px;
  color: rgb(52, 51, 51);
}

.progress_bar_container {
  margin: 0.5rem;
  min-height: 0;
}

.progress_bar {
  width: 100%;
  height: 3rem;
  margin: 0rem;
  padding: 0rem;
}

.textarea_container {
  margin: 0.5rem;
  min-height: 0;
}

.textarea {
  width: 100%;
  /* height: 100%; */
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid;
  border-color: grey;
}

.string_field_container {
  margin: 0.5rem;
  min-height: 0;
}

.string_field {
  width: 100%;
  height: 1rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid;
  border-color: grey;
}

.select_field_container {
  margin: 0.5rem;
  min-height: 0;
}

.select_field {
  width: 100%;
  height: 2rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid;
  border-color: grey;
}

.float_field_container {
  margin: 0.5rem;
  min-height: 0;
}

.float_field {
  width: 100%;
  height: 2rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid;
  border-color: grey;
}

.wysiwyg_field_container {
  margin: 0.5rem;
  min-height: 0;
}

.wysiwyg_field {
  width: 100%;
  height: 2rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid;
  border-color: grey;
}

.m2m_field_container {
  margin: 0.5rem;
  min-height: 0;
}

.m2m_field {
  width: 100%;
  height: 2rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid;
  border-color: grey;
}

.radio_field_container {
  margin: 0.5rem;
  min-height: 0;
}

.radio_field {
  width: 100%;
  height: 2rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid;
  border-color: grey;
}

.checkbox_field_container {
  margin: 0.5rem;
  min-height: 0;
}

.checkbox_field {
  width: 100%;
  height: 2rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid;
  border-color: grey;
}

.choice_field_container {
  margin: 0.5rem;
  min-height: 0;
}

.choice_field {
  width: 100%;
  height: 2rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid;
  border-color: grey;
}

.date_field_container {
  margin: 0.5rem;
  min-height: 0;
}

.date_field {
  width: 100%;
  height: 2rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid;
  border-color: grey;
}

.date_time_field_container {
  margin: 0.5rem;
  min-height: 0;
}

.date_time_field {
  width: 100%;
  height: 2rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid;
  border-color: grey;
}

.time_field_container {
  margin: 0.5rem;
  min-height: 0;
}

.time_field {
  width: 100%;
  height: 2rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid;
  border-color: grey;
}

.image_field_container {
  margin: 0.5rem;
  min-height: 0;
}

.image_field {
  width: 100%;
  height: 2rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid;
  border-color: grey;
}

.list_field_container {
  margin: 0.5rem;
  min-height: 0;
}

.list_field {
  width: 100%;
  height: 2rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid;
  border-color: grey;
}

.upload_field_container {
  margin: 0.5rem;
  min-height: 0;
}

.upload_field {
  width: 100%;
  height: 2rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid;
  border-color: grey;
}

.currency_field_container {
  margin: 0.5rem;
  min-height: 0;
}

.currency_field {
  width: 100%;
  height: 2rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid;
  border-color: grey;
}

.decimal_field_container {
  margin: 0.5rem;
  min-height: 0;
}

.decimal_field {
  width: 100%;
  height: 2rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid;
  border-color: grey;
}

.integer_field_container {
  margin: 0.5rem;
  min-height: 0;
}

.integer_field {
  width: 100%;
  height: 2rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid;
  border-color: grey;
}

.col-12 {
  /* width: 50.04%; */
  width: 100%;
  flex-grow: 12;
  min-height: 0;
  margin: 0.5rem;
}

.col-11 {
  /* width: 45.87%; */
  width: 89%;
  flex-grow: 11;
  min-height: 0;
  margin: 0.5rem;
}

.col-10 {
  /* width: 41.7%; */
  width: 82%;
  flex-grow: 10;
  min-height: 0;
  margin: 0.5rem;
}

.col-9 {
  /* width: 37.53%; */
  width: 73%;
  flex-grow: 9;
  min-height: 0;
  margin: 0.5rem;
}

.col-8 {
  /* width: 33.36%; */
  width: 64%;
  flex-grow: 8;
  min-height: 0;
  margin: 0.5rem;
}

.col-7 {
  /* width: 29.19%; */
  width: 56%;
  flex-grow: 7;
  min-height: 0;
  margin: 0.5rem;
}

.col-6 {
  /* width: 25.02%; */
  width: 47%;
  flex-grow: 6;
  min-height: 0;
  margin: 0.5rem;
}

.col-5 {
  /* width: 20.85%; */
  width: 39%;
  flex-grow: 5;
  min-height: 0;
  margin: 0.5rem;
}

.col-4 {
  /* width: 16.68%; */
  width: 31%;
  flex-grow: 4;
  min-height: 0;
  margin: 0.5rem;
}

.col-3 {
  /* width: 12.51%; */
  width: 22%;
  flex-grow: 3;
  min-height: 0;
  margin: 0.5rem;
}

.col-2 {
  /* width: 8.34%; */
  width: 13%;
  flex-grow: 2;
  min-height: 0;
  margin: 0.5rem;
}

.col-1 {
  /* width: 4.17%; */
  width: 6%;
  flex-grow: 1;
  min-height: 0;
  margin: 0.5rem;
}


/* https://css-tricks.com/snippets/css/a-guide-to-flexbox/#aa-flexbox-tricks */
/* Large */
/* .navigation {
  display: flex;
  flex-flow: row wrap; */
  /* This aligns items to the end line on main-axis */
  /* justify-content: flex-end;
} */

/* Medium screens */
/* @media all and (max-width: 800px) {
  .navigation { */
    /* When on medium sized screens, we center it by evenly distributing empty space around items */
    /* justify-content: space-around;
  }
} */

/* Small screens */
/* @media all and (max-width: 500px) {
  .navigation { */
    /* On small screens, we are no longer using row direction but column */
    /* flex-direction: column;
  }
} */