/* static/css/styles.css */

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

html {
  font-size: 80%;
}

body {
  font-family: "Rubik", sans-serif;
  line-height: 1;
  font-weight: 400;
  color: #555;
}


nav {
  margin-bottom: 1rem;
}

.logo {
  height: 4.8rem;
}

.header {
  display: flex;
  justify-content: space-between;
  margin: 2rem 0;
  padding: 0 3rem;
}

.container {
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 3.2rem;
}
.filter-form label {
  margin-right: 1rem;
}
.transactions-table {
  width: max-content;    /* grow to fit all columns */
  min-width: 100%;       /* but at least fill the wrapper */
  border-collapse: collapse;
  margin-top: 1rem;
}
.transactions-table th,
.transactions-table td {
  border: 1px solid #ccc;
  padding: 0.5rem;
  text-align: center;
  white-space: nowrap;
}
.transactions-table tfoot th {
  background: #f0f0f0;
}

.transactions-table thead {
  background: #f7f7f7;
}
.transactions-table .button {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: #337ab7;
  color: white;
  text-decoration: none;
  border-radius: 4px;
}
.transactions-table .button:hover {
  background: #286090;
}

/* static/css/styles.css */
form button, form a {
  margin-right: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

/* Customer-Rep Dashboard */
.filter-form { margin: 1rem 0; }
.chart-container {
  width: 100%;
  max-width: 600px;
  margin-bottom: 1rem;
  justify-self: center;
}
.today-entries, .completed-entries {
  /* list-style: none; */
  padding: 0 9.6rem;
  margin-bottom: 2.4rem;
}
.today-entries li, .completed-entries li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}
.submit-button {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #28a745;
  color: white;
  text-decoration: none;
  border-radius: 4px;
}
.submit-button:hover {
  background: #218838;
}

.form-group { margin-bottom: 1rem; }
form button, form a { margin-right: 0.5rem; padding: 0.5rem 1rem; }
datalist { display: none; }

.form-control { width: 100%; max-width: 400px; margin-bottom: 0.5rem; }

button { padding: 0.5rem 1rem; }

.button {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 4px;
}
.button.cancel {
  background: #6c757d;
}

.widgets {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
}
.widget {
  flex: 1;
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.widget h3 {
  margin-bottom: .5rem;
  font-size: 1rem;
  color: #555;
}
.widget p {
  font-size: 1.5rem;
  margin: 0;
  font-weight: bold;
}

.widget-row, .widgetrow {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  background: rgba(200,200,200,0.4) !important;
  padding: 1rem !important;
  gap: 1rem !important;
  margin: 2rem 4rem !important;
}
.widget-row .card, .widgetrow .card {
  background: white;
  border: 1px solid #666;
  padding: 1rem;
}

.card h4{
  margin-bottom: 1.8rem;
}

.card p {
  text-align: center;
}

/* 1. the scroll container */
.table-wrapper {
  width: 100%;           /* fill its parent */
  overflow-x: auto;      /* show a horizontal scrollbar as needed */
  /* optional: overflow-y: hidden; */
  margin-bottom: 1.5rem; /* give some breathing room below */
}

/* 2. (optional) style your horizontal scrollbar */
.table-wrapper::-webkit-scrollbar {
  height: 8px;
}
.table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
}

.cash_balance {
  background: #91e9a6;
  color: #777;
  border: 1px solid #ddd;
  padding: 0.5rem 1rem;
  margin-bottom: 2.4rem;
  border-radius: 4px;
  font-size: 1.1rem;
  text-align: end;
}

.top_bar {
  display: flex;
  justify-content: space-between;
  margin-right: 3.2rem;
}

.submit_form {
  padding-left: 4.8rem;
}

.page_title {
  margin-bottom: 2rem;
}

.trans_details {
  padding-left: 4.8rem; 
}

.view_filter {
  padding-left: 5.2rem;
  margin-bottom: 1.4rem;
}

.table_list {
  margin: 2rem 4.8rem;
}

.login {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.section_login {
  padding: 9.6rem;
  background-image:linear-gradient(
    to right bottom,
    rgba(210, 241, 244, 0.339),
    rgba(128, 165, 185, 0.35)
  ),url("../img/perfume_bannner_1.ccc63fe4dfdc.webp");
  background-size: cover;
  background-position: 10% 75%;
}

.login_box {
  background-color: #f8f9fa;
  padding: 6.4rem 9.6rem;
  border-radius: 12px;
  box-shadow: 0 0.4rem 0.6rem rgba(0, 0, 0, 0.1),
    0 0.1rem 0.3rem rgba(0, 0, 0, 0.08);
  width: 50%;
}

.login_box  p {
  font-size: 1.6rem;
  font-weight: 500;
}


.login button {
  padding: 0.5rem 9.6rem;
  background: #51cb86;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 1.2rem;
}
.login button:hover {
  background: #1cbf40;
  margin-top: 1rem;
}

.login input {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  width: 100%;
  max-width: 400px;
  margin-top: 0.5rem;
  font-size: 1.2rem;
}
.login input:focus {
  outline: none;
  border-color: #51cb86;
}