/* Basic styles for the application */

body {
   margin: 0;
   padding: 0; /* No padding around body */
   font-family: Arial, sans-serif;
   background-color: #f4f4f4;
   color: #333;
}

a {
   display: block;
   text-align: center;
   margin-top: 20px;
   color: #3498db;
   text-decoration: none;
}

a:hover {
   text-decoration: underline;
}

h1, h2, h3 {
   text-align: center;
}

ul {
   list-style-type: none;
   padding: 0;
}

ul li {
   background-color: #ecf0f1;
   margin: 5px;
   padding: 10px;
   border-radius: 5px;
   display: flex;
   justify-content: space-between;
}

.content-wrapper {
   padding: 20px;
   max-width: 800px;
   background-color: #fff;
   border-radius: 5px;
   box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
   margin-bottom: 20px;
   margin-right: auto;
   margin-left: auto;
}

.header {
   background-color: #6c7175;
   color: white;
   padding: 20px;
   text-align: center;
}

.header h1 {
   font-size: 1.5em;
   margin: 0;
}

.header p {
   margin: 0;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="number"],
select {
   font-size: 16px;
   font: 500;
   font-family: Arial, Helvetica, sans-serif;
   padding: 5px;
   border: 1px solid #ccc;
   border-radius: 5px;
}

.box-form {
   max-width: 300px;
   margin: 20px auto;
   padding: 10px;
   background-color: #fff;
   border-radius: 5px;
   box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

@media only screen and (max-width: 768px) {
   .box-form {
      max-width: 100%;
   }
}

.box-form input[type="text"],
.box-form input[type="password"],
.box-form input[type="date"],
.box-form input[type="number"] {
   width: calc(100% - 10px);
   margin-bottom: 10px;
}

.box-form button{
   width: 100%;
}

button {
   padding: 10px;
   border: none;
   background-color: #2ecc71;
   color: white;
   font-size: 16px;
   border-radius: 5px;
}

button:hover {
   background-color: #27ae60;
}

.flashes {
   padding: 10px;
   margin: 20px auto;
   width: 80%;
   max-width: 500px;
}

.flashes li {
   background-color: #e74c3c;
   color: white;
   padding: 10px;
   margin-bottom: 10px;
   border-radius: 5px;
}

.entry {
   display: flex;
   justify-content: right;
 }

.entry p {
   padding-left: 10px;
   padding-right: 10px;
   margin-top: auto;
   margin-bottom: auto;
   display: table-cell;
   vertical-align: middle;
 }

 .change-form, .delete-form {
   margin-top: 0px;
   margin-bottom: 0px;
   margin-right: 0px;
   margin-left: 10px;
   display: flex;
   justify-content: right;
   padding: 10px;
 }

 @media only screen and (max-width: 768px) {
   .entry {
      display: block;
    }

   .entry p {
      width: 100%;
      text-align: center;
   }

   .change-form, .delete-form {
      margin-top: 0px;
      margin-bottom: 0px;
      margin-right: 0px;
      margin-left: 00px;
      display: flex;
      justify-content: left;
      padding: 10px;
    }
 }

 .change-form input {
   margin: 0;
 }

 .change-form button {
   width: auto;
   margin-left: 10px;
 }

#selected_partner {
   margin-bottom: 10px;
   padding: 5px;
   border: 1px solid #ccc;
   border-radius: 5px;
}

.login-container {
   margin: 20px;
}

.date-container {
   width: 100%;
   margin: auto;
   position: relative;
   display: flex;
   justify-content: center;
}

.date-form {
   display: flex;
   flex-wrap: wrap;
   gap: 10px;
   align-items: center;
   margin-bottom: 10px;
}

.chart-container {
   width: 100%;
   max-width: 1000px;
   margin: auto;
   position: relative;
   height: 500px; /* Default height for desktop */
}

canvas {
   width: 100% !important;
   height: 100% !important;
}

/* Mobile-specific height adjustment */
@media (max-width: 768px) {
   .chart-container {
       height: 300px;  /* Adjust as needed for mobile */
   }
}

