n//* ----------------- Base Reset & Utilities ----------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  background-color: #f9f9f9; /* softer background */
  color: #333; /* improved readability */
  line-height: 1.6;
  overflow-x: hidden;
}

/* ----------------- Alerts ----------------- */
.notice,
.alert {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 10px 0;
  padding: 10px 15px;
  border-radius: 8px;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.notice {
  color: #155724;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
}

.alert {
  color: #721c24;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  position: relative; /* safer than absolute for most cases */
}

/* ----------------- Headings ----------------- */
h1 {
  font-size: clamp(1.8rem, 4vw, 3rem); /* slightly smaller max and responsive */
  text-align: center;
  margin: 20px 0; /* less vertical space */
  color: #222;
}

h2 {
  font-size: 1.5rem; /* slightly smaller than before */
  margin: 30px 0 15px; /* less spacing before and after */
  color: #444;
}

/* ----------------- Main Layout ----------------- */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 20px;
}

/* ----------------- Links ----------------- */
a {
  text-decoration: none;
  color: #007bff;
  transition: color 0.2s ease;
}

a:hover {
  text-decoration: underline;
  color: #0056b3;
}

/* ----------------- Buttons ----------------- */
button,
.submit-button input {
  cursor: pointer;
  padding: 0 30px;
  min-width: 150px;
  height: 45px;
  border-radius: 8px; /* unified radius for all interactive elements */
  border: 1px solid #ccc;
  background-color: #ffffff;
  font-weight: 500;
  color: #333;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

/* ----------------- Circular Buttons ----------------- */
.button-circle,
button.button-circle {
  width: 45px; /* equal width and height */
  height: 45px;
  padding: 0; /* remove horizontal padding */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.button-circle:hover {
  filter: brightness(0.95);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

button:hover,
.submit-button input:hover {
  filter: brightness(0.95);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

/* ----------------- Inputs & Form Fields ----------------- */
input,
textarea,
select {
  padding: 5px; /* compact and clean */
  cursor: text;
  border: 1px solid #ccc;
  border-radius: 8px; /* consistent radius */
  min-width: 200px; /* restored previous sizing */
  min-height: 35px;
  max-width: 350px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
  font-size: 1rem;
  background-color: #fff;
}

select:hover {
  cursor: pointer;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
  outline: none;
}

/* ----------------- Navigation ----------------- */
nav {
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #ddd;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

nav .login-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

/* ----------------- Utility Classes ----------------- */
.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}
form {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(1.1);
}

.batch-form {
  display: flex;
  /* flex-direction: column; */
  gap: 20px;
}

.form_field textarea {
  width: 200px;
  height: 80px;
  resize: none;
}

.form_field {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.form_field > :first-child {
  font-weight: bold;
}

#recap_field > :last-child {
  max-width: 200px;
}

.form_field input,
.form_field select,
.form_field textarea {
  box-sizing: border-box;
}

.form-box {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid black;
  display: flex;
  flex-direction: column;
  min-width: 350px;
}

.form-box-label {
  font-size: large;
  font-weight: bold;
  padding: 0px 5px;
  position: absolute;
  transform: translateY(-120%);
  background-color: #f9f9f9; /* softer background */
}

form .error-message {
  font-size: small;
  display: flex;
  justify-content: flex-end;
  color: red;
}

form .field_with_errors {
  padding: 1px;
  display: table;
}

form .field_with_errors input {
  border: 1px solid red;
}

.batch-buttons {
  margin-top: 20px;
  display: flex;
  gap: 25px;
  justify-content: space-evenly;
  align-items: center;
}

.batch-buttons a {
  border: 0.5px solid black;
  padding: 10px 30px;
  border-radius: 30px;
}

.batch-buttons a:visited {
  color: black;
}

.batch-buttons a:hover {
  background-color: lightgray;
  text-decoration: none;
}

.submit-button input {
  border: 1px solid greenyellow;
}

.delete-button {
  background-color: pink;
  border: 1px solid red;
}
.batch-box {
  padding: 20px;
  background: #ffffff; /* clean white card */
  border: 1px solid #e5e7eb; /* light neutral border (Tailwind gray-200) */
  border-radius: 12px; /* soft radius for modern feel */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); /* subtle elevation */

  display: flex;
  flex-direction: column;
  gap: 4px; /* slightly bigger, cleaner spacing */

  min-width: 350px;
}

.batch-details {
  padding: 30px;
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  font-size: x-large;
}

.batch-field {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  min-width: fit-content;
}

.batch-field > :first-child {
  margin-left: -20px;
  font-weight: 600;
  font-size: 0.8em;
  width: 100%;
}

.batch-field > :last-child {
  width: 100%;
  max-width: 350px;
  display: flex;
  padding: 5px 10px;
  border: 1px solid #d1d5db;
  min-height: 30px;
}

.notes {
  max-width: 400px;
  overflow: auto;
  display: flex;
  height: 100px;
}

.print-and-title {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.print-and-title a {
  font-size: x-large;
  background-color: lightgrey;
  border: 1px solid #d1d5db;
  padding: 10px 10px;
  border-radius: 5px;
  color: darkgreen;
}

.print-and-title a:hover {
  text-decoration: none;
}

.print-and-title a:visited {
  color: darkgreen;
}

.return-button {
  margin-bottom: 50px;
}

.in-progress,
.completed {
  display: flex;
  flex-direction: column;
}

.batch {
  padding: 5px;
}

.hidden {
  display: none;
}

div.batch-section .copy-button {
  min-width: 10px;
  max-height: 22px;
  border-radius: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  vertical-align: middle;
}

.copy-button:hover {
  color: #1976d2; /* Material blue hover */
}

.copy-button .material-icons {
  font-size: 18px; /* Adjust this as you want */
  line-height: 1;
  vertical-align: middle;
  width: 18px;
  height: 18px;
}

.batch-activity-window {
  position: fixed;
  left: 16px;
  bottom: 16px;
  width: 300px;
  max-height: 50vh;
  overflow: auto;
  background: #fff;
  border: 1px solid #d1d5db;
  padding: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  font-size: 13px;
  z-index: 1000;
}
.batch-activity-window h4 {
  margin: 0 0 6px 0;
  font-size: 14px;
}
.batch-activity-window .activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.batch-activity-window .activity-list li {
  margin-bottom: 6px;
}
.batch-activity-window .changes {
  color: #666;
  font-size: 12px;
  margin-top: 4px;
}
/* ----------- Layout ----------- */
.status-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.batches-sections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  gap: 1rem;
  justify-content: space-around;
}

.batch-section {
  display: flex;
  flex-direction: column;
  padding: 0 30px;
  overflow-y: auto;
  max-height: 60vh;
}

/* ----------- Header & Buttons ----------- */
header {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 20px;
}

.add-batch,
.submit-button input {
  background-color: lightgreen;
  border: 2px solid greenyellow;
  cursor: pointer;
}

.add-batch {
  font-size: x-large;
  width: 40px;
  min-width: fit-content;
  padding: 0;
  transform: translateY(2px);
}

/* ----------- Sort Bar ----------- */
.sort-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;
}

.sort-link,
.sort-active {
  padding: 0.3rem 0.8rem;
  border-radius: 5px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sort-link {
  background-color: #ffffff;
  color: #007bff;
  border: 1px solid #007bff;
}

.sort-link:hover {
  background-color: #007bff;
  color: #ffffff;
  text-decoration: none;
}

.sort-active {
  background-color: #007bff;
  color: #ffffff;
  border: 1px solid #007bff;
}

/* ----------- Batch Items ----------- */
.batch-section .batch {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  border-radius: 10px;
  padding: 10px 15px;
  margin-bottom: 10px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 0; /* for ellipsis to work inside flex */
}

/* Hover effect */
.batch-section .batch:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* ----------- Batch Text / Links ----------- */
.batch-section .batch a {
  color: #007bff;
  font-weight: 500;
  text-decoration: none;
  margin-left: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

.batch-section .batch a:hover {
  text-decoration: underline;
  color: #0056b3;
}

/* ----------- Copy Button ----------- */
.copy-button {
  background-color: #f1f3f5;
  border: none;
  border-radius: 6px;
  padding: 4px 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

.copy-button:hover {
  background-color: #007bff;
  color: white;
}

.material-icons {
  font-size: 1rem;
}

/* ----------- Status Borders ----------- */
.batch-section.in-progress .batch {
  border-left: 5px solid #ffc107; /* yellow */
}

.batch-section.completed .batch {
  border-left: 5px solid #17a2b8; /* teal */
}

.batch-section.paid .batch {
  border-left: 5px solid #28a745; /* green */
}
.new_user {
  display: flex;
  margin-bottom: 20px;
}

.new_user input {
  width: 250px;
  margin-bottom: 8px;
}

.new_user .field {
  display: flex;
  flex-direction: column;
}

.new_user .actions {
  margin: 10px 0px;
}

.rememberable {
  display: none;
  width: 250px;
}

.rememberable input {
  width: 20px;
}

.devise-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
html, body {
  height: 100%;
  margin: 0;
}

.print-supplier {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.print-supplier h1 {
  font-size: clamp(1rem, 4vw, 5rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.print-supplier p {
  font-size: 16px;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
