/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
  --ops-bg: #f3ece1;
  --ops-bg-alt: #e6dfd3;
  --ops-text: #1f1e1b;
  --ops-muted: #5a554b;
  --ops-card: #fffdf8;
  --ops-border: #d4cab9;
  --ops-primary: #2f5f66;
  --ops-primary-hover: #254d53;
  --ops-approval: #265a9d;
  --ops-procurement: #2f6f3e;
  --ops-receiving: #8b5a2b;
}

.ops-body {
  margin: 0;
  min-height: 100vh;
  color: var(--ops-text);
  font-family: "Manrope", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at 10% 10%, #fff6de 0%, transparent 45%),
    radial-gradient(circle at 85% 90%, #dce8e2 0%, transparent 40%),
    linear-gradient(140deg, var(--ops-bg) 0%, var(--ops-bg-alt) 100%);
}

.ops-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.ops-panel {
  width: min(460px, 100%);
  background: linear-gradient(175deg, #fffefb, #f5eee3);
  border: 1px solid var(--ops-border);
  border-radius: 22px;
  box-shadow: 0 22px 45px rgba(54, 45, 29, 0.15);
  padding: 28px;
  animation: ops-rise 340ms ease-out;
}

.ops-eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.72rem;
  color: var(--ops-muted);
}

.ops-title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 2.7rem);
  line-height: 1;
}

.ops-subtitle {
  margin: 10px 0 20px;
  color: var(--ops-muted);
}

.ops-alert {
  margin-bottom: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fde8e5;
  color: #7f1d1d;
  border: 1px solid #f3c0b9;
}

.ops-field-group {
  display: grid;
  gap: 8px;
}

.ops-field-group-gap {
  margin-top: 14px;
}

.ops-label {
  font-size: 0.88rem;
  color: #3f3a33;
}

.ops-input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #cfc2ae;
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ops-input:focus {
  outline: none;
  border-color: var(--ops-primary);
  box-shadow: 0 0 0 3px rgba(47, 95, 102, 0.16);
}

.ops-button {
  margin-top: 18px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 11px 12px;
  font-weight: 700;
  color: #fff;
  background: var(--ops-primary);
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease;
}

.ops-button:hover {
  background: var(--ops-primary-hover);
  transform: translateY(-1px);
}

.ops-dashboard-shell {
  min-height: 100vh;
  padding: 28px;
}

.ops-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin-bottom: 20px;
}

.ops-dashboard-title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.9rem, 5.2vw, 2.8rem);
  line-height: 1.05;
}

.ops-dashboard-subtitle {
  margin: 8px 0 0;
  color: var(--ops-muted);
}

.ops-signout {
  border: 1px solid var(--ops-border);
  border-radius: 10px;
  background: #fffef8;
  color: #2c2a25;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.ops-signout:hover {
  border-color: #b7ab96;
  transform: translateY(-1px);
}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 16px;
}

.ops-card {
  background: linear-gradient(185deg, var(--ops-card), #f6efe2);
  border: 1px solid var(--ops-border);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(60, 48, 28, 0.1);
  padding: 16px;
  animation: ops-rise 360ms ease-out;
}

.ops-card-approval {
  border-left: 6px solid var(--ops-approval);
}

.ops-card-procurement {
  border-left: 6px solid var(--ops-procurement);
}

.ops-card-receiving {
  border-left: 6px solid var(--ops-receiving);
}

.ops-card-title {
  margin: 0 0 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: 1.24rem;
}

.ops-card-row {
  margin: 0 0 8px;
  color: #3c372f;
}

@keyframes ops-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .ops-dashboard-shell {
    padding: 18px;
  }

  .ops-dashboard-header {
    align-items: stretch;
    flex-direction: column;
  }
}
