html {
  font-size: 16px;
}

a, a:hover {
    color: #BC8D3F !important;
    text-decoration: underline !important;
}

.btn-primary-admin, .btn-primary-admin:hover {
    color: white !important;
    text-decoration: none !important;
}



.btn-secondary-admin, .btn-secondary-admin:hover {
    color: black !important;
    text-decoration: none !important;
}

.btn-warning-admin, .btn-warning-admin:hover {
    color: white !important;
    text-decoration: none !important;
}

.btn-dark-admin, .btn-dark-admin:hover {
    color: white !important;
    text-decoration: none !important;
}

.sidebar-link:hover {
    background-color: #F4D49E;
    color: #845D29;
    text-decoration: none !important;
}
.sidebar-link {
    color: black !important;
    text-decoration: none !important;
}

.sidebar-link.active {
    background-color: #BC8D3F;
    color: #ffffff !important;
}

/* Production planning board (vis-timeline) */

.pp-timeline {
  height: 60vh;
  min-height: 300px;
}

@media (min-width: 1024px) {
  .pp-timeline {
    height: 75vh;
    min-height: 420px;
  }
}

.pp-timeline .vis-timeline {
  height: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
}

.pp-timeline .vis-item {
  font-size: 0.75rem;
}

/* Phase palette shared by the legend chips and the timeline bars. The colors
   are defined once so both can never drift apart. */
.pp-bar-project {
  --pp-bar-bg: #475569;
  --pp-bar-border: #1e293b;
  --pp-bar-text: #ffffff;
}

.pp-bar-quote {
  --pp-bar-bg: #f1f5f9;
  --pp-bar-border: #94a3b8;
  --pp-bar-text: #334155;
}

.pp-phase-fabric {
  --pp-bar-bg: #3b82f6;
  --pp-bar-border: #1d4ed8;
  --pp-bar-text: #ffffff;
}

.pp-phase-cut {
  --pp-bar-bg: #f59e0b;
  --pp-bar-border: #b45309;
  --pp-bar-text: #ffffff;
}

.pp-phase-install {
  --pp-bar-bg: #10b981;
  --pp-bar-border: #047857;
  --pp-bar-text: #ffffff;
}

.pp-phase-external {
  --pp-bar-bg: #8b5cf6;
  --pp-bar-border: #6d28d9;
  --pp-bar-text: #ffffff;
}

.pp-bar-label {
  padding: 0 6px;
  white-space: nowrap;
}

.pp-legend-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--pp-bar-border);
  border-radius: 9999px;
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: var(--pp-bar-bg);
  color: var(--pp-bar-text);
}

/* Item rules are scoped and more specific than the vis-timeline defaults
   (.vis-item / .vis-item.vis-range), which load after this stylesheet and
   would otherwise win by source order. */
.pp-timeline .vis-item.pp-bar-project,
.pp-timeline .vis-item.pp-bar-quote,
.pp-timeline .vis-item.pp-phase-fabric,
.pp-timeline .vis-item.pp-phase-cut,
.pp-timeline .vis-item.pp-phase-install,
.pp-timeline .vis-item.pp-phase-external {
  background-color: var(--pp-bar-bg);
  border-color: var(--pp-bar-border);
  color: var(--pp-bar-text);
}

/* Keep the standard vis selection feedback above the phase colors. */
.pp-timeline .vis-item.vis-selected {
  background-color: #fff785;
  border-color: #ffc200;
}

.pp-group-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-wrap: wrap;
}

.pp-group-customer {
  font-weight: 400;
  color: #64748b;
}

.pp-group-quote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.375rem;
}

.pp-status {
  border-radius: 9999px;
  padding: 0 0.5rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pp-status-active {
  background-color: #eff6ff;
  color: #1d4ed8;
}

.pp-status-completed {
  background-color: #ecfdf5;
  color: #047857;
}

.pp-status-cancelled {
  background-color: #fff1f2;
  color: #be123c;
}

.pp-range-warning {
  color: #b45309;
  cursor: help;
  font-size: 0.9375rem;
  font-weight: 700;
}

.pp-add-phase {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.pp-add-phase:hover {
  background: #F4D49E;
  border-color: #BC8D3F;
  color: #845D29;
}

.pp-tooltip {
  font-size: 0.75rem;
  line-height: 1.25rem;
}

.pp-tooltip strong {
  font-size: 0.8125rem;
}

[x-cloak] {
    display: none !important;
}

[x-show="sidebarOpen"][x-cloak] {
  display: none !important;
}

.field-label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
}

.field-input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  outline: none;
}

.field-input:focus {
  border-color: #BC8D3F;
  box-shadow: 0 0 0 3px rgb(188 141 63 / 0.15);
}

.validation-message {
  margin-top: 0.25rem;
  display: block;
  font-size: 0.8125rem;
  color: #e11d48;
}

.admin-card {
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 10px 30px rgb(15 23 42 / 0.04);
}

.btn-primary-admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: #BC8D3F;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.btn-primary-admin:hover {
  background: #A07532;
  color: #fff;
}

.btn-secondary-admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #334155;
  text-decoration: none;
}

.btn-secondary-admin:hover {
  background: #f8fafc;
  color: #0f172a;
}

.btn-warning-admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: #F59E0B;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.btn-warning-admin:hover {
  background: #D97706;
  color: #fff;
}

.btn-success-admin, .btn-success-admin:hover {
    color: white !important;
    text-decoration: none !important;
}

.btn-danger-admin, .btn-danger-admin:hover {
    color: white !important;
    text-decoration: none !important;
}

.btn-success-admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: #16A34A;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.btn-success-admin:hover {
  background: #15803D;
  color: #fff;
}

.btn-danger-admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: #DC2626;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.btn-danger-admin:hover {
  background: #B91C1C;
  color: #fff;
}

.btn-dark-admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: #334155;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.btn-dark-admin:hover {
  background: #1E293B;
  color: #fff;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.sidebar-link {
  display: flex;
  align-items: center;
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  transition: all 0.15s ease;
}

.sidebar-link:hover {
  background-color: #F4D49E;
  color: #845D29;
}

.sidebar-link.active {
  background-color: #BC8D3F;
  color: #ffffff;
}

@media (max-width: 639px) {
  .pp-timeline .vis-labelset .vis-label .vis-inner {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .pp-timeline .vis-item {
    font-size: 0.6875rem;
  }
  .pp-timeline .vis-group {
    min-height: 28px;
  }
  .pp-group-title {
    flex-wrap: nowrap;
    font-size: 0.75rem;
  }
  .pp-group-customer {
    display: none;
  }
  .pp-status {
    display: none;
  }
  .pp-range-warning {
    display: none;
  }
}
