/* src/styles.scss */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color 0.15s,
    opacity 0.15s,
    border-color 0.15s;
  white-space: nowrap;
}
.btn--primary {
  background-color: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}
.btn--primary:hover:not(:disabled) {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
}
.btn--secondary {
  background-color: #ffffff;
  color: #111827;
  border-color: #d1d5db;
}
.btn--secondary:hover:not(:disabled) {
  background-color: #f9fafb;
}
.btn--danger {
  background-color: #ffffff;
  color: #dc2626;
  border-color: #dc2626;
}
.btn--danger:hover:not(:disabled) {
  background-color: #fef2f2;
}
.btn--sm {
  padding: 0.25rem 0.625rem;
  font-size: 0.8125rem;
}
.btn--full {
  width: 100%;
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.form-field {
  margin-bottom: 1.25rem;
}
.form-field__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #111827;
  margin-bottom: 0.375rem;
}
.form-field__input,
.form-field__select,
.form-field__textarea {
  display: block;
  width: 100%;
  padding: 0.5625rem 0.875rem;
  font-size: 1rem;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  color: #111827;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.form-field__input:focus,
.form-field__select:focus,
.form-field__textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.form-field__input--error,
.form-field__select--error,
.form-field__textarea--error {
  border-color: #dc2626;
}
.form-field__input--error:focus,
.form-field__select--error:focus,
.form-field__textarea--error:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}
.form-field__textarea {
  resize: vertical;
  min-height: 5rem;
}
.form-field__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}
.form-field__hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #6b7280;
}
.form-field__error {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.875rem;
  color: #dc2626;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}
.alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}
.alert--error {
  background-color: #fef2f2;
  color: #dc2626;
  border: 1px solid rgb(241.25, 169.75, 169.75);
}
.alert--success {
  background-color: #f0fdf4;
  color: #16a34a;
  border: 1px solid rgb(103.4540540541, 234.5459459459, 151.8);
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.badge--draft {
  background: #f3f4f6;
  color: #374151;
}
.badge--submitted {
  background: #eff6ff;
  color: #1d4ed8;
}
.badge--approved {
  background: #f0fdf4;
  color: #15803d;
}
.badge--sent {
  background: #eef2ff;
  color: #4338ca;
}
.badge--acknowledged {
  background: #faf5ff;
  color: #6d28d9;
}
.badge--rejected {
  background: #fef2f2;
  color: #b91c1c;
}
.badge--cancelled {
  background: #f9fafb;
  color: #9ca3af;
}
.badge--partially_received {
  background: #fff7ed;
  color: #c2410c;
}
.badge--received {
  background: #f0fdf4;
  color: #166534;
}
.badge--closed {
  background: #1e2640;
  color: #ffffff;
}
.badge--outbound {
  background: #eff6ff;
  color: #1d4ed8;
}
.badge--inbound {
  background: #f0fdf4;
  color: #15803d;
}
.badge--active {
  background: #f0fdf4;
  color: #15803d;
}
.badge--inactive {
  background: #f9fafb;
  color: #9ca3af;
}
.data-table-wrapper {
  overflow-x: auto;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.data-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #6b7280;
  background: #f9fafb;
  border-bottom: 1px solid #d1d5db;
  white-space: nowrap;
}
.data-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #f3f4f6;
  color: #111827;
  vertical-align: middle;
}
.data-table tr:last-child td {
  border-bottom: none;
}
.data-table tr:hover td {
  background: #fafafa;
}
.data-table__empty {
  text-align: center;
  color: #6b7280;
  padding: 3rem 1rem;
}
.data-table__actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.page-header__left {
  flex: 1;
  min-width: 0;
}
.page-header__title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.25rem;
}
.page-header__subtitle {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}
.page-header__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
  align-items: center;
}
.card {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.stat-card {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  display: block;
  color: inherit;
}
.stat-card--link {
  transition: box-shadow 0.15s, border-color 0.15s;
  cursor: pointer;
}
.stat-card--link:hover {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px #dbeafe;
}
.stat-card--warn {
  border-color: #fca5a5;
  background: #fff7f7;
}
.stat-card__label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
  margin: 0 0 0.5rem;
}
.stat-card__value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.25rem;
  line-height: 1.2;
}
.stat-card__sub {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.filter-bar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.filter-bar__input {
  flex: 1;
  min-width: 200px;
  max-width: 320px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-top: 1px solid #d1d5db;
  font-size: 0.875rem;
  color: #6b7280;
}
.pagination__controls {
  display: flex;
  gap: 0.25rem;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 640px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
}
.detail-field__label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.detail-field__value {
  font-size: 1rem;
  color: #111827;
}
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: #6b7280;
  font-size: 0.875rem;
}
.line-items {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.line-items__header {
  display: grid;
  grid-template-columns: 1fr 100px 120px 90px 90px 36px;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  background: #f9fafb;
  border-bottom: 1px solid #d1d5db;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.line-items__row {
  display: grid;
  grid-template-columns: 1fr 100px 120px 90px 90px 36px;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #f3f4f6;
  align-items: center;
}
.line-items__row:last-child {
  border-bottom: none;
}
.line-items__row .form-field {
  margin-bottom: 0;
}
.line-items__total {
  font-weight: 600;
  color: #111827;
  text-align: right;
}
.line-items__add {
  padding: 0.625rem 0.75rem;
  border-top: 1px solid #d1d5db;
  background: #f9fafb;
}
.shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
}
.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #1e293b;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.sidebar__brand {
  display: flex;
  align-items: center;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
}
.sidebar__brand-name {
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.01em;
}
.sidebar__brand-tenant {
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 400;
  display: block;
  margin-top: 0.125rem;
}
.sidebar__nav {
  flex: 1;
  padding: 0.75rem 0;
}
.sidebar__section {
  padding: 0.5rem 1.25rem 0.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.sidebar__section:not(:first-child) {
  margin-top: 0.5rem;
}
.sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5625rem 1.25rem;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0;
  transition: color 0.15s, background-color 0.15s;
}
.sidebar__link svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}
.sidebar__link:hover {
  color: #f1f5f9;
  background-color: rgba(255, 255, 255, 0.06);
}
.sidebar__link--active {
  color: #f8fafc;
  background-color: rgba(37, 99, 235, 0.3);
  position: relative;
}
.sidebar__link--active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #2563eb;
  border-radius: 0 2px 2px 0;
}
.sidebar__badge {
  margin-left: auto;
  background: #2563eb;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  min-width: 1.25rem;
  text-align: center;
  line-height: 1.4;
}
.sidebar__footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar__user {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
}
.sidebar__user-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #2563eb;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.sidebar__user-info {
  min-width: 0;
}
.sidebar__user-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar__user-role {
  font-size: 0.7rem;
  color: #64748b;
  text-transform: capitalize;
}
.sidebar__logout {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #94a3b8;
  font-size: 0.875rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.sidebar__logout:hover {
  color: #f1f5f9;
  border-color: rgba(255, 255, 255, 0.2);
}
.shell-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.topbar {
  height: 56px;
  flex-shrink: 0;
  background: #ffffff;
  border-bottom: 1px solid #d1d5db;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1rem;
}
.topbar__breadcrumb {
  flex: 1;
  font-size: 0.875rem;
  color: #6b7280;
}
.topbar__breadcrumb a {
  color: #6b7280;
  text-decoration: none;
}
.topbar__breadcrumb a:hover {
  color: #2563eb;
}
.topbar__breadcrumb span {
  color: #111827;
  font-weight: 500;
}
.shell-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.75rem 2rem;
  background: #f9fafb;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 1rem;
  color: #111827;
  background-color: #f9fafb;
  -webkit-font-smoothing: antialiased;
}

/* angular:styles/global:styles */
/*# sourceMappingURL=styles.css.map */
