* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

body {
  font-family: Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: bold;
  color: #222;
}

h1 {
  font-size: 2.1rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1rem;
}

h6 {
  font-size: 0.875rem;
}

a {
  text-decoration: none;
}

form {
  display: flex;
  flex-direction: column;
  row-gap: 1rem;
}

label {
  font-weight: bold;
  margin-bottom: 8px;
  display: block;
}

hr {
  margin-bottom: 20px;
}

input[type="text"],
input[type="date"],
input[type="file"],
input[type="number"],
input[type="password"],
input[type="email"],
input[type="button"],
select,
textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

input[type="checkbox"]{
  cursor: pointer;
}

select {
  padding: 0;
  min-height: 36px;
}

input[type="date"],
input[type="file"],
textarea {
  font-family: Arial, sans-serif;
}

input[type="button"] {
  cursor: pointer;
}

input[type="text"]:focus,
input[type="date"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #007bff;
}

input[readonly] {
  color: rgb(84, 84, 84);
  pointer-events: none;
  background-color: #fafafa;
}

hr {
  margin-top: 0.5rem;
}

.primary-button {
  background-color: #990000;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  text-align: center;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  width: 100%;
}

.primary-button:hover {
  background-color: red;
}

.primary-button:disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
}

.primary-button:disabled:hover {
  background-color: #ccc;
}

.secondary-button {
  background-color: black;
  color: #fff;
  padding: 10px 20px;
  border: none;
  text-align: center;
  border-radius: 5px;
  cursor: pointer;
  min-width: 110px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  width: fit-content
}

.secondary-button:hover {
  background-color: rgb(68, 68, 68);
}

.secondary-button:disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
}

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

.icon-hover {
  transition: transform 0.2s ease-in-out;
}

.icon-hover:hover {
  transform: scale(1.2);
}

/* FLASH CAKE PHP */
.message {
  clear: both;
  color: #fff;
  font-size: 140%;
  font-weight: bold;
  margin: 0 0 1em 0;
  padding: 5px;
}

.success,
.message,
.cake-error,
.cake-debug,
.notice,
p.error,
.error-message {
  background: #ffcc00;
  background-repeat: repeat-x;
  background-image: -moz-linear-gradient(top, #ffcc00, #E6B800);
  background-image: -ms-linear-gradient(top, #ffcc00, #E6B800);
  background-image: -webkit-gradient(linear, left top, left bottom, from(#ffcc00), to(#E6B800));
  background-image: -webkit-linear-gradient(top, #ffcc00, #E6B800);
  background-image: -o-linear-gradient(top, #ffcc00, #E6B800);
  background-image: linear-gradient(top, #ffcc00, #E6B800);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(0, 0, 0, 0.2);
  margin-bottom: 18px;
  padding: 7px 14px;
  color: #404040;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
  -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.success,
.message,
.cake-error,
p.error,
.error-message {
  clear: both;
  color: #fff;
  background: #c43c35;
  border: 1px solid rgba(0, 0, 0, 0.5);
  background-repeat: repeat-x;
  background-image: -moz-linear-gradient(top, #ee5f5b, #c43c35);
  background-image: -ms-linear-gradient(top, #ee5f5b, #c43c35);
  background-image: -webkit-gradient(linear, left top, left bottom, from(#ee5f5b), to(#c43c35));
  background-image: -webkit-linear-gradient(top, #ee5f5b, #c43c35);
  background-image: -o-linear-gradient(top, #ee5f5b, #c43c35);
  background-image: linear-gradient(top, #ee5f5b, #c43c35);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
}

.success {
  clear: both;
  color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.5);
  background: #3B8230;
  background-repeat: repeat-x;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#76BF6B), to(#3B8230));
  background-image: -webkit-linear-gradient(top, #76BF6B, #3B8230);
  background-image: -moz-linear-gradient(top, #76BF6B, #3B8230);
  background-image: -ms-linear-gradient(top, #76BF6B, #3B8230);
  background-image: -o-linear-gradient(top, #76BF6B, #3B8230);
  background-image: linear-gradient(top, #76BF6B, #3B8230);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
}

.hidden {
  display: none !important;
}

#sidebar {
  position: fixed;
  top: 0;
  left: -350px;
  width: 350px;
  height: 100%;
  background-color: #fff;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
  transition: left 0.3s ease;
  z-index: 1001;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.menu {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  overflow-y: auto;
}

.menu li {
  list-style: none;
}

.submenu li {
  border: none;
}

.menu>li>a {
  display: block;
  padding: 15px 20px;
  color: #ecf0f1;
  text-decoration: none;
  transition: background-color 0.3s;
  position: relative;
}

.menu li a {
  color: #333;
}

.menu>li>a:hover {
  background-color: #d6d6d6;
}

.submenu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.menu::-webkit-scrollbar {
  width: 8px;
}

.menu::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.menu::-webkit-scrollbar-track {
  background: transparent;
}


.menu li.active>.submenu {
  max-height: max-content;
  opacity: 1;
}

.submenu li a {
  padding: 12px 40px;
  font-size: 0.9em;
  display: block;
  text-decoration: none;
  transition: background-color 0.3s;
}

.menu-toggle {
  font-weight: 600;
  position: relative;
  display: inline-block;
  cursor: pointer;
  border-bottom: 1px solid rgb(235, 235, 235);
}

.submenu li a:hover {
  background-color: #d6d6d6;
}

.menu-toggle::after {
  content: "\25B6";
  font-size: 0.8rem;
  position: absolute;
  right: 10px;
  transition: transform 0.3s ease;
}


.menu-toggle.active::after {
  transform: rotate(90deg);
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

#sidebar.active {
  left: 0;
}

#overlay.active {
  opacity: 1;
  visibility: visible;
}

.sidebar-open-icon-btn {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

.tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-family: Arial, sans-serif;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
  white-space: nowrap;
  z-index: 1000;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.file-link-despesa {
  border-radius: 4px;
  padding: 4px 10px;
  transition: 0.1s all;
  text-decoration: underline !important;
  color: red !important;
}

.file-link-despesa:hover {
  background-color: red;
  color: white !important;
  text-decoration: none !important;
}

.button-v2:hover span {
  text-decoration: underline;
}

.flagTable {
  width: fit-content;
  border-radius: 4px;
  padding: 3px 8px;
}

.cardMenu {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.cardMenu:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.cardMenu .cardMenu-footer {
  display: flex;
  justify-content: end;
  height: 16px;
}

.cardMenu h3 {
  margin-top: 0;
  color: #333;
}

.cardMenu p {
  color: #555;
  margin-bottom: 15px;
  padding-top: 4px;
}

.label {
  display: inline;
  padding: .2em .6em .3em;
  font-size: 75%;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: .25em;
}

.titlePagesContainer {
  width: 100%;
  background-color: #990000;
  padding: 25px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.titlePagesContainer > h1{
  color: white;
}

.logoutButton:hover,.homeButton:hover{
  transform: background 0.4s;
  background: #ededed;
  border-radius: 4px;
}