/* This file is used by the Angular CLI build system */
/* You can import other style files here */
/* Import your shared styles */
.sm {
  font-size: 16px;
  padding: 8px;
}
.md {
  font-size: 16px;
  padding: 10px;
}
.lg {
  font-size: 20px;
  padding: 15px;
}
/* Global standard styles for form elements */
label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}
span {
  display: block;
  margin-top: 5px;
}
/* Standard styling for textual inputs and select elements */
input[type="text"],
input[type="number"],
select {
  padding: 5px;
  margin-bottom: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  text-align: center;
}
/* Standard spacing for containers */
.search-fields,
.list {
  margin: 10px auto;
  padding: 10px;
}
.search-fields {
  display: flex;
  flex-direction: row;
  justify-content: left;
  width: 90%;
  max-width: 850px;
  gap: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f1f1f1;
  flex-wrap: wrap;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px;
}
header .title-group {
  display: flex;
  align-items: center;
  margin-left: 10px;
  text-align: left;
}
header .title-group h1 {
  margin: 0;
}
header .title-group h2 {
  margin: 0 0 0 10px;
  font-size: 0.8em;
  color: grey;
}
.search-fields header {
  text-align: left;
  flex-direction: row;
  width: 100%;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}
.search-fields header > * {
  margin-right: 15px;
}
.search-fields h1 {
  font-weight: bold;
  font-size: 26px;
}
.search-fields h2 {
  font-size: 14px;
  color: #666;
}
.search-fields label {
  margin-bottom: 5px;
  font-weight: bold;
}
.search-fields input[type="text"],
.search-fields input[type="number"],
.search-fields input[type="checkbox"],
.search-fields select {
  margin-bottom: 5px;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  text-align: center;
}
/* ===========================================
   BUTTON STYLES - STANDARDIZED ACROSS APP
   =========================================== */
/* Base button styling */
button {
  padding: 10px;
  margin: 5px;
  border: none;
  border-radius: 5px;
  background-color: #007bff;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s;
  font-family: inherit;
  font-size: 14px;
}
button:disabled {
  background-color: #707070;
  cursor: not-allowed;
  opacity: 0.6;
}
button:disabled:hover {
  background-color: #3b3b3b;
  cursor: not-allowed;
}
button:hover:not(:disabled) {
  background-color: #0056b3;
}
/* Cancel button variant */
.cancel-btn {
  background-color: #ac0000 !important;
  color: white !important;
}
.cancel-btn:hover:not(:disabled) {
  background-color: #750000 !important;
}
/* Icon-only buttons (small square buttons) */
.icon-button {
  background-color: transparent;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 6px 8px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  margin: 2px;
}
.icon-button:hover:not(:disabled) {
  background-color: #f8f9fa;
  border-color: #adb5bd;
}
.icon-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #707070;
  border-color: #e9ecef;
}
/* Edit button (pencil) */
.icon-button.edit-btn {
  color: #007bff;
  border-color: #007bff;
}
.icon-button.edit-btn:hover:not(:disabled) {
  background-color: rgba(0, 123, 255, 0.1);
  border-color: #0056b3;
}
/* Cancel icon button */
.icon-button.cancel-btn {
  color: #dc3545 !important;
  border-color: #dc3545 !important;
  background-color: transparent !important;
}
.icon-button.cancel-btn:hover:not(:disabled) {
  background-color: rgba(220, 53, 69, 0.1) !important;
  border-color: #c82333 !important;
}
/* Save button */
.icon-button.save-btn:not(:disabled) {
  color: #28a745;
  border-color: #28a745;
}
.icon-button.save-btn:hover:not(:disabled) {
  background-color: rgba(40, 167, 69, 0.1);
  border-color: #1e7e34;
}
/* Action button containers */
.buttons-container {
  display: flex;
  margin-top: auto;
  flex-basis: 100%;
}
/* Styled "new" button for headers */
.new-button {
  background-color: #e2e2e2;
  color: #007bff;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-left: auto;
  margin-right: 20px;
  text-decoration: none; /* Explicitly remove underline */
}
.new-button:hover {
  background-color: #d0d0d0;
  color: #0056b3; /* Darker shade of blue */
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}
.new-button i {
  font-size: 14px;
}
/* Detail view button (like "Ver detalle" in cards) */
.btn-detail {
  background-color: transparent;
  border: none;
  color: #007bff;
  cursor: pointer;
  font-size: 13px;
  padding: 3px 8px;
  border-radius: 4px;
  transition: all 0.2s;
  margin: 0;
}
.btn-detail:hover:not(:disabled) {
  background-color: rgba(0, 123, 255, 0.1);
}
/* Edit/Toggle button for forms */
.edit-button {
  background-color: transparent;
  border: 1px solid #007bff;
  color: #007bff;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  min-height: 32px;
}
.edit-button:hover:not(:disabled) {
  background-color: rgba(0, 123, 255, 0.1);
  border-color: #0056b3;
}
/* Save button for forms */
.save-button {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  min-height: 32px;
}
.save-button:hover:not(:disabled) {
  background-color: #218838;
}
.save-button:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}
button:hover {
  background-color: #0056b3;
}
.search button {
  background: none;
  margin-top: 0px;
  margin-left: 0px;
  color: #007bff;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  flex-shrink: 0;
}
.search button:hover {
  background-color: #007bff;
  color: white;
}
.search button i {
  font-size: 16px;
}
.card {
  margin: 10px auto; /* Center the card horizontally */
  padding: 15px;
  width: auto;
  max-width: 80%;
  display: flex;
  flex-direction: row;
  justify-content: left;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  background-color: #f9f9f9;
  transition: transform 0.2s, box-shadow 0.2s;
  align-items: left;
  flex-wrap: wrap;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
}
.card label {
  display: block;
  margin-bottom: 2px;
}
.card span {
  display: block;
  margin-top: 5px;
}
.card input {
  display: block;
  width: 100%;
  min-width: 15px;
  text-align: center;
}
.card input[type="text"],
.card input[type="number"]{
  margin-bottom: 5px; /* updated spacing */
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: auto;
  max-width: 150px;
  min-width: 50px;
}
.card select {
  margin-bottom: 5px; /* updated spacing */
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: auto;
  min-width: 50px;
}
.card input[type="checkbox"] {
  margin-bottom: 2px;
}
.card input:disabled {
  background-color: #e9ecef;
  color: #495057;
  opacity: 1;
}
.card select:disabled {
  background-color: #e9ecef;
  color: #495057;
  opacity: 1;
}
.card input[type="checkbox"]:disabled {
  opacity: 1;
}
.card .error-message {
  color: red;
  margin-top: 10px;
}
.info {
  display: flex;
  align-items: flex-start;
  margin-right: 10px;
  flex-wrap: wrap;
}
.info label {
  margin-right: 5px;
  white-space: nowrap;
  align-self: flex-start;
}
.info input {
  margin-right: 10px;
  flex: 1 1 auto;
  min-width: 0;
  align-self: flex-start;
}
.list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
  margin: 10px auto;
  align-items: center;
  width: 90%; /* Ensure full width */
  max-width: 850px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f1f1f1;
}
.list header {
  text-align: left;
  flex-direction: row;
  width: 100%;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.list header > * {
  margin-right: 15px;
}
.buttons-container {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  flex-basis: 100%;
}
.error-message {
  color: red;
  font-weight: bold;
  margin-top: 10px;
}
/* Optionally, to enforce consistent button spacing, you can add:
button {
  margin-right: 10px;
}
*/
/* Global common container style */
.container {
  margin: 10px auto;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
/* Global heading styles for consistency */
h1, h2, h3, h4, h5, h6 {
  text-align: center;
  margin: 10px auto;
  font-family: Arial, sans-serif;
}
/* Standard button styling with consistent margin */
button {
  margin: 5px;  /* Adjust as needed for a standard spacing */
}
/* Global container for search fields */
.global-search {
  display: flex;
  flex-direction: row;
  justify-content: left;
  gap: 10px;
  padding: 10px;
  margin: 10px auto;
  width: 90%;
  max-width: 850px; /* Default max-width */
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f1f1f1;
  flex-wrap: wrap;
}
/* Allow components to opt-out of width restriction */
.global-search.full-width {
  max-width: none !important;
  width: 100% !important;
}
/* Global container for results lists */
.global-results {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  margin: 10px auto;
  width: 90%;
  max-width: 850px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f1f1f1;
}
.search-controls-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.search-controls-row > div {
  display: flex;
  flex-direction: column;
  /* Optional: align items if needed */
  align-items: flex-start;
}
/* Global application styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8f8f8;
}
/* Add any additional global styles that should apply to the entire application */
.app-content {
  min-height: 80vh;
  margin: 0 auto;
  padding: 20px;
}
/* Font Awesome compatibility styles */
.fa, .fas, .far, .fal, .fab {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
}


/*# sourceMappingURL=styles.css.map*/