/**
 * Theme appvnp2026 - Custom Production Utilities & Component Styles
 */

/* Form controls reset / consistency */
.appvnp-input {
  display: block;
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #0f172a;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.appvnp-input:focus {
  outline: none;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.appvnp-input:disabled {
  background-color: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
}

/* Button variants */
.btn-appvnp-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  background-color: #0284c7;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff;
  transition: all 0.15s ease-in-out;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.btn-appvnp-primary:hover {
  background-color: #0369a1;
  color: #ffffff;
}

.btn-appvnp-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-appvnp-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  background-color: #ffffff;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
  border: 1px solid #cbd5e1;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
  text-decoration: none;
}

.btn-appvnp-secondary:hover {
  background-color: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.btn-appvnp-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  background-color: #ffffff;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #e11d48;
  border: 1px solid #fecdd3;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
  text-decoration: none;
}

.btn-appvnp-danger:hover {
  background-color: #fff1f2;
  border-color: #fda4af;
  color: #be123c;
}

/* Table styling */
.appvnp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.875rem;
  text-align: left;
}

.appvnp-table th {
  background-color: #f8fafc;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.appvnp-table td {
  padding: 0.875rem 1rem;
  color: #1e293b;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.appvnp-table tr:hover td {
  background-color: #f8fafc;
}

.appvnp-table tr:last-child td {
  border-bottom: none;
}

/* Invoice sheet / paper styling */
.invoice-sheet-container {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

/* Pagination */
.pagination {
  display: inline-flex;
  gap: 0.25rem;
  padding-left: 0;
  list-style: none;
  align-items: center;
}

.pagination > li > a,
.pagination > li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  transition: all 0.15s ease-in-out;
}

.pagination > li > a:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.pagination > .active > a,
.pagination > .active > span {
  background-color: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}

.pagination > .disabled > a,
.pagination > .disabled > span {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #f8fafc;
}

/* Print optimizations */
@media print {
  body {
    background-color: #ffffff !important;
  }
  .no-print, header, footer, .workspace-nav {
    display: none !important;
  }
  .invoice-sheet-container {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
}
