﻿:root {
  --brand-primary: #0a8f43;
  --brand-primary-dark: #06602d;
  --brand-accent: #d92027;
  --brand-ink: #16201c;
  --brand-muted: #63726b;
  --brand-surface: #ffffff;
  --brand-surface-alt: #f2f7f3;
  --brand-border: rgba(10, 143, 67, 0.14);
  --brand-shadow: 0 18px 40px rgba(8, 38, 22, 0.12);
  --brand-shadow-soft: 0 10px 24px rgba(8, 38, 22, 0.08);
  --brand-radius: 18px;
}

html {
  position: relative;
  min-height: 100%;
  font-size: 14px;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  min-height: 100vh;
  margin: 0;
  margin-bottom: 84px;
  overflow-x: hidden;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--brand-ink);
  background:
    radial-gradient(circle at top left, rgba(217, 32, 39, 0.08), transparent 24%),
    radial-gradient(circle at top right, rgba(10, 143, 67, 0.12), transparent 28%),
    linear-gradient(180deg, #f7fbf8 0%, #eef5ef 100%);
}

a {
  color: var(--brand-primary);
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--brand-accent);
  text-decoration: none;
}

a.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  white-space: normal;
  text-align: left;
  word-break: break-word;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.boss-navbar-brand {
  gap: 0.9rem;
  max-width: min(520px, 100%);
  padding: 0.35rem 0.9rem 0.35rem 0.45rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  text-transform: none;
  letter-spacing: 0;
}

.boss-navbar-logo {
  display: block;
  width: auto;
  height: 40px;
  padding: 0.35rem 0.45rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(6, 24, 56, 0.22);
}

.boss-navbar-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.1;
}

.boss-navbar-copy strong {
  color: #fff;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0;
}

.boss-navbar-copy small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.navbar,
.navbar-light,
.navbar-dark {
  border: 0;
  background: linear-gradient(135deg, var(--brand-primary-dark) 0%, var(--brand-primary) 60%, #20b65d 100%) !important;
  box-shadow: 0 14px 34px rgba(6, 96, 45, 0.26);
}

.navbar .navbar-brand,
.navbar .nav-link,
.navbar .navbar-text,
.navbar .navbar-toggler {
  color: #fff !important;
}

.navbar .nav-link {
  font-weight: 600;
  opacity: 0.92;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active {
  opacity: 1;
  color: #fff !important;
}

/* =========================================================================
   BoSS — Goela Electronics login screen
   Mobile-first. Matches Figma "Login screen" (file bTQI2FHOMsMRXTP01gfQ1V).
   Applied to pages wrapped by Startup.RewriteLoginMarkup().
   ========================================================================= */

.boss-login-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  background: #ffffff;
  color: #0a0a0a;
  font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.boss-login-page .container-fluid,
.boss-login-page .container {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}

.boss-login-page .navbar,
.boss-login-page footer,
.boss-login-page .footer {
  display: none !important;
}

.boss-login {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 20px 16px 32px;
  box-sizing: border-box;
}

/* ---- Top bar (Goela logo) ---- */
.boss-login__topbar {
  width: 100%;
  max-width: 1280px;
  display: flex;
  justify-content: center;
  padding: 4px 0;
}

.boss-login__goela {
  display: block;
  width: auto;
  height: 52px;
  max-width: 220px;
  object-fit: contain;
  object-position: left center;
}

/* ---- Login card ---- */
.boss-login__card {
  width: 100%;
  max-width: 600px;
  box-sizing: border-box;
  padding: 28px 20px 24px;
  background: #ffffff;
  border: 1px solid #f3f4f6;
  border-top: 5px solid #001e4b;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* ---- BoSS brand lockup ---- */
.boss-login__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 4px 0 6px;
}

.boss-login__brand-mark {
  width: 48px;
  height: 48px;
  flex: none;
  display: block;
}

.boss-login__brand-name {
  font-family: "Montserrat Alternates", "Inter", "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: 48px;
  line-height: 1;
  color: #001e4b;
  letter-spacing: -0.5px;
}

.boss-login__tagline {
  margin: 0 0 16px;
  text-align: center;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.3px;
  color: #0a0a0a;
}

.boss-login__divider {
  width: 100%;
  height: 1px;
  margin: 0 0 18px;
  border: 0;
  background: #e5e7eb;
}

/* ---- Heading + subtitle ---- */
.boss-login__heading {
  margin: 4px 0 6px;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: #000000;
}

.boss-login__subtitle {
  margin: 0 0 18px;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  color: #2e2e2e;
}

/* ---- Form ---- */
.boss-login__form,
.boss-login__form.legacy-auth-form {
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* ---- Phone / OTP field wrapper ---- */
.boss-login__field {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.boss-login__field:focus-within {
  border-color: #001e4b;
  box-shadow: 0 0 0 3px rgba(0, 30, 75, 0.12);
}

.boss-login__field-icon {
  flex: none;
  width: 20px;
  height: 20px;
  color: #858585;
}

.boss-login__field-prefix {
  flex: none;
  margin-left: 10px;
  font-size: 16px;
  font-weight: 400;
  color: #858585;
  letter-spacing: -0.32px;
}

.boss-login__field-divider {
  flex: none;
  width: 1px;
  align-self: stretch;
  margin: 6px 12px;
  background: #e5e7eb;
}

.boss-login__field--phone .boss-login__input {
  padding-left: 0;
}

/* ---- OTP segmented cells ---- */
.boss-login__field--otp {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  direction: ltr;
}

.boss-login__field--otp:focus-within {
  border-color: transparent;
  box-shadow: none;
}

.boss-login__otp-cell {
  width: 100%;
  height: 56px;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  font-family: inherit;
  font-size: 22px;
  font-weight: 700;
  color: #001e4b;
  text-align: center;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  caret-color: #001e4b;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.boss-login__otp-cell::-webkit-outer-spin-button,
.boss-login__otp-cell::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.boss-login__otp-cell:focus {
  border-color: #001e4b;
  box-shadow: 0 0 0 3px rgba(0, 30, 75, 0.18);
}

.boss-login__otp-cell.is-filled {
  background: #f5f7fb;
  border-color: #c7d0e1;
}

.boss-login__otp-cell.is-error {
  border-color: #d92d20;
  box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.15);
}

.boss-login__input,
.boss-login-page input[type="text"].boss-login__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  color: #0a0a0a;
  line-height: 1.2;
  appearance: none;
  -webkit-appearance: none;
}

.boss-login__input::placeholder {
  color: rgba(10, 10, 10, 0.5);
}

.boss-login__input:-webkit-autofill {
  -webkit-text-fill-color: #0a0a0a;
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
  transition: background-color 100000s ease-in-out 0s;
}

/* Hide spinners on number-like text inputs */
.boss-login__input::-webkit-outer-spin-button,
.boss-login__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ---- Submit button ---- */
.boss-login__submit,
.boss-login-page input[type="submit"].boss-login__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  margin: 2px 0 0;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  background: #001e4b;
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.1px;
  cursor: pointer;
  box-shadow: 0 10px 15px -3px rgba(0, 30, 75, 0.2);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  -webkit-appearance: none;
  appearance: none;
}

.boss-login__submit:hover,
.boss-login__submit:focus-visible {
  background: #0a2b66;
  outline: none;
}

.boss-login__submit:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 30, 75, 0.3);
}

.boss-login__submit:active {
  transform: translateY(1px);
  box-shadow: 0 6px 12px -3px rgba(0, 30, 75, 0.25);
}

.boss-login__submit[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---- Footer note inside card ---- */
.boss-login__footer-note {
  margin: 22px 0 4px;
  text-align: center;
  font-size: 12px;
  line-height: 1.33;
  color: #99a1af;
}

/* ---- Server-side validation message (ASP.NET ViewBag.ErrorMessage) ---- */
.boss-login__form .validation-summary-errors,
.boss-login__form .field-validation-error,
.boss-login__form .text-danger,
.boss-login-page .validation-summary-errors,
.boss-login-page .text-danger {
  margin: -4px 0 0;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #b42318;
  background: #fef3f2;
  border: 1px solid #fecdca;
  border-radius: 10px;
}

.boss-login-page .validation-summary-errors ul {
  margin: 0;
  padding-left: 16px;
}

/* ---- Floating Office Sahayogi chatbot ---- */
.boss-login__chatbot {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 30, 75, 0.22), 0 4px 10px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: boss-login-chatbot-bob 4.5s ease-in-out infinite;
}

.boss-login__chatbot img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  pointer-events: none;
}

.boss-login__chatbot:hover,
.boss-login__chatbot:focus-visible {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 18px 36px rgba(0, 30, 75, 0.28), 0 6px 12px rgba(0, 0, 0, 0.1);
  outline: none;
}

.boss-login__chatbot:focus-visible {
  box-shadow: 0 18px 36px rgba(0, 30, 75, 0.28), 0 0 0 3px rgba(0, 30, 75, 0.35);
}

.boss-login__chatbot:active {
  transform: translateY(-1px) scale(1);
}

@keyframes boss-login-chatbot-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .boss-login__chatbot {
    animation: none;
  }
  .boss-login__chatbot:hover,
  .boss-login__chatbot:focus-visible {
    transform: none;
  }
}

/* ------------------------------------------------------------------------
   Tablet and up
   ------------------------------------------------------------------------ */
@media (min-width: 600px) {
  .boss-login {
    padding: 28px 24px 40px;
    gap: 28px;
  }

  .boss-login__chatbot {
    width: 72px;
    height: 72px;
    right: 24px;
    bottom: 24px;
  }

  .boss-login__goela {
    height: 64px;
    max-width: 260px;
  }

  .boss-login__card {
    padding: 36px 40px 28px;
    border-radius: 24px;
  }

  .boss-login__brand-mark {
    width: 60px;
    height: 60px;
  }

  .boss-login__brand-name {
    font-size: 64px;
  }

  .boss-login__tagline {
    font-size: 16px;
    margin-bottom: 22px;
  }

  .boss-login__heading {
    font-size: 30px;
    letter-spacing: -0.6px;
  }

  .boss-login__subtitle {
    font-size: 16px;
    line-height: 1.5;
  }

  .boss-login__field {
    height: 54px;
    padding: 0 16px;
  }

  .boss-login__submit {
    font-size: 16px;
  }
}

/* ------------------------------------------------------------------------
   Desktop — pin Goela logo top-left, card centered
   ------------------------------------------------------------------------ */
@media (min-width: 1024px) {
  .boss-login {
    display: grid;
    grid-template-columns: 1fr minmax(0, 600px) 1fr;
    grid-template-rows: auto 1fr auto;
    gap: 0;
    padding: 32px 48px 48px;
    align-items: start;
  }

  .boss-login__topbar {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    justify-self: start;
    justify-content: flex-start;
    padding: 0;
  }

  .boss-login__goela {
    height: 96px;
    max-width: 260px;
  }

  .boss-login__card {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    justify-self: center;
    margin-top: 40px;
    padding: 40px 56px 32px;
  }

  .boss-login__brand-name {
    font-size: 88px;
  }
}

/* ------------------------------------------------------------------------
   Very small viewports
   ------------------------------------------------------------------------ */
@media (max-width: 360px) {
  .boss-login {
    padding: 16px 12px 24px;
  }

  .boss-login__card {
    padding: 24px 16px 20px;
    border-radius: 18px;
  }

  .boss-login__brand-name {
    font-size: 40px;
  }

  .boss-login__brand-mark {
    width: 42px;
    height: 42px;
  }

  .boss-login__heading {
    font-size: 22px;
  }
}

/* Honour users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .boss-login__field,
  .boss-login__submit {
    transition: none;
  }
}

.workspace-hub,
.module-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.workspace-hub {
  display: grid;
  gap: 1.5rem;
  padding: 1rem 0 2rem;
}

.workspace-hub-header,
.module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  border: 1px solid rgba(16, 39, 88, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 44px rgba(16, 39, 88, 0.08);
}

.workspace-hub-brand,
.module-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.workspace-hub-badge,
.module-brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #eef3ff;
}

.workspace-hub-logo,
.module-brand-logo {
  width: 32px;
  height: 32px;
}

.workspace-hub-copy strong,
.module-brand strong,
.workspace-hub-user span {
  color: #102758;
  font-size: 1.02rem;
  font-weight: 700;
}

.workspace-hub-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.workspace-hub-card,
.module-card {
  border: 1px solid rgba(16, 39, 88, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 40px rgba(16, 39, 88, 0.08);
}

.workspace-hub-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 160px;
  padding: 1.3rem 1.35rem;
  color: #102758;
  text-decoration: none;
}

.workspace-hub-card strong {
  font-size: 1.1rem;
}

.workspace-hub-card span {
  color: #5c6f8e;
  line-height: 1.55;
}

.workspace-hub-card.is-primary {
  background: linear-gradient(180deg, #102b67 0%, #12306f 100%);
}

.workspace-hub-card.is-primary strong,
.workspace-hub-card.is-primary span {
  color: #fff;
}

.module-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.module-nav-link {
  padding: 0.62rem 0.9rem;
  border-radius: 12px;
  color: #48617f;
  font-weight: 600;
  text-decoration: none;
}

.module-nav-link.is-active,
.module-nav-link:hover {
  background: #eef3ff;
  color: #102758;
}

.module-card {
  padding: 1.35rem;
}

.module-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.module-card-head h1 {
  margin: 0 0 0.35rem;
  color: #102758;
  font-size: 1.65rem;
}

.module-card-head p {
  margin: 0;
  color: #5c6f8e;
}

.portal-page-host {
  padding-top: 0.5rem;
}

.module-page .navbar,
.module-page footer {
  display: none !important;
}

@media (max-width: 767.98px) {
  .workspace-hub-header,
  .module-header,
  .module-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .module-nav {
    width: 100%;
  }

  .module-nav-link {
    width: 100%;
    text-align: center;
  }
}

.container,
.container-fluid {
  position: relative;
}

main,
.pb-3 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.card,
.modal-content,
.dropdown-menu,
.list-group-item,
.table,
.alert,
form,
.form-control,
.custom-select,
.input-group-text {
  border-color: var(--brand-border);
}

.card,
.modal-content,
.dropdown-menu,
.alert,
form {
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius);
  box-shadow: var(--brand-shadow-soft);
}

.card,
.modal-content,
.dropdown-menu,
form {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
}

.table {
  overflow: hidden;
  border-radius: 16px;
  background: var(--brand-surface);
  box-shadow: var(--brand-shadow-soft);
}

.table thead th {
  border-bottom: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-primary-dark), var(--brand-primary));
  font-weight: 700;
  letter-spacing: 0.03em;
}

.table td,
.table th {
  vertical-align: middle;
}

.table tbody tr:hover {
  background: rgba(10, 143, 67, 0.05);
}

.btn {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(6, 96, 45, 0.18);
}

.btn-primary,
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  color: #fff;
  border-color: var(--brand-primary);
  background: linear-gradient(135deg, var(--brand-primary-dark), var(--brand-primary));
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active {
  color: #fff;
  border-color: var(--brand-primary-dark);
  background: linear-gradient(135deg, var(--brand-primary), #20b65d);
}

.btn-secondary,
.btn-outline-secondary:hover {
  border-color: var(--brand-accent);
  background: var(--brand-accent);
}

.btn-outline-primary {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: #fff;
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}

.form-control,
.custom-select,
.input-group-text {
  min-height: 46px;
  border-radius: 14px;
  background-color: rgba(255, 255, 255, 0.96);
}

.form-control:focus,
.custom-select:focus {
  border-color: rgba(10, 143, 67, 0.44);
  box-shadow: 0 0 0 0.2rem rgba(10, 143, 67, 0.15);
}

label {
  margin-bottom: 0.45rem;
  color: var(--brand-ink);
  font-weight: 600;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--brand-ink);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.text-muted,
small,
.small {
  color: var(--brand-muted) !important;
}

.badge-primary {
  background: var(--brand-primary);
}

.badge-secondary {
  background: var(--brand-accent);
}

.border-top,
.border-bottom {
  border-color: var(--brand-border) !important;
}

.box-shadow {
  box-shadow: var(--brand-shadow-soft) !important;
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

img[src*="Logo"],
.img-fluid,
img,
.navbar-brand img {
  max-width: 100%;
  max-height: 58px;
  width: auto;
}

.jumbotron,
.rounded,
.shadow-sm {
  border-radius: var(--brand-radius) !important;
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  min-height: 64px;
  white-space: nowrap;
  line-height: 64px;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(135deg, #101915 0%, var(--brand-primary-dark) 100%);
  box-shadow: 0 -12px 30px rgba(8, 38, 22, 0.18);
}

.footer a {
  color: #ffffff;
}

.footer-branding {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 0 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
  white-space: normal;
}

.table-responsive-shell {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
}

.mobile-form-shell {
  padding: 1rem;
}

.home-landing-page .text-center br {
  display: none;
}

.home-landing-page .text-center {
  display: block;
  width: 100%;
  text-align: left !important;
}

.home-dashboard-shell {
  width: min(1200px, 100%);
}

.home-dashboard-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
  gap: 1.5rem;
  padding: 1.8rem;
  border: 1px solid rgba(8, 62, 32, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(64, 196, 99, 0.18), transparent 26%),
    radial-gradient(circle at bottom left, rgba(217, 32, 39, 0.08), transparent 24%),
    linear-gradient(135deg, rgba(9, 32, 18, 0.98), rgba(14, 76, 39, 0.96) 58%, rgba(25, 128, 66, 0.92) 100%);
  box-shadow: 0 30px 80px rgba(7, 31, 18, 0.22);
  overflow: hidden;
}

.home-dashboard-hero::before {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.home-dashboard-copy,
.home-dashboard-panel {
  position: relative;
  z-index: 1;
}

.home-dashboard-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: 0.4rem;
}

.home-dashboard-eyebrow {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-dashboard-copy h1 {
  max-width: 11ch;
  margin: 1.15rem 0 0.9rem;
  color: #fff;
  font-size: clamp(2.6rem, 4vw, 4.4rem);
  line-height: 0.98;
}

.home-dashboard-summary {
  max-width: 640px;
  margin: 0;
  color: rgba(245, 249, 246, 0.84);
  font-size: 1.06rem;
  line-height: 1.75;
}

.home-dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.home-dashboard-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.35rem;
  border-radius: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.home-dashboard-action:hover,
.home-dashboard-action:focus {
  transform: translateY(-1px);
}

.home-dashboard-action-primary {
  color: #132418 !important;
  background: linear-gradient(135deg, #f3f7f2, #dff6e4);
  box-shadow: 0 18px 34px rgba(8, 38, 22, 0.18);
}

.home-dashboard-action-secondary {
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.home-dashboard-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.home-dashboard-signals span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  font-weight: 600;
}

.home-dashboard-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.home-dashboard-greeting-card,
.home-dashboard-metrics {
  padding: 1.25rem;
  border: 1px solid rgba(10, 42, 22, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(6, 20, 12, 0.12);
}

.home-dashboard-panel-label {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--brand-primary-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-dashboard-greeting-card h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.55rem, 2.2vw, 2.1rem);
  line-height: 1.08;
}

.home-dashboard-greeting-card p {
  margin: 0;
  color: var(--brand-muted);
  line-height: 1.7;
}

.home-dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.home-dashboard-metric-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(10, 143, 67, 0.07), rgba(10, 143, 67, 0.02)),
    #f6fbf7;
}

.home-dashboard-metric-value {
  color: var(--brand-ink);
  font-size: 1.2rem;
  font-weight: 800;
}

.home-dashboard-metric-label {
  color: var(--brand-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.home-dashboard-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  padding: 0 0.25rem;
}

.home-dashboard-inline-link {
  color: rgba(255, 255, 255, 0.94) !important;
  font-weight: 700;
}

.home-dashboard-inline-link.muted {
  color: rgba(255, 255, 255, 0.68) !important;
}

.home-landing-page .navbar,
.home-landing-page .footer {
  display: none !important;
}

.home-landing-page .container-fluid,
.home-landing-page .container-fluid > main.pb-3 {
  max-width: none;
  padding: 0 !important;
}

.home-portal-shell {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 1rem;
  min-height: auto;
  padding: 1.1rem;
  align-items: start;
  background: linear-gradient(180deg, #eef3fb 0%, #f7fafc 100%);
}

.home-portal-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0.7rem;
  border-radius: 28px;
  background: linear-gradient(180deg, #102758, #183775);
  box-shadow: 0 24px 60px rgba(13, 32, 79, 0.22);
  position: sticky;
  top: 1rem;
  align-self: start;
}

.home-portal-brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  padding: 0.75rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 32px rgba(8, 18, 46, 0.22);
}

.home-portal-brand-logo {
  display: block;
  width: 100%;
  height: auto;
}

.home-portal-sidebar-nav {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.8rem;
  width: 100%;
}

.home-portal-sidebar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.8rem 0.35rem;
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.88) !important;
  text-align: center;
}

.home-portal-sidebar-item.active,
.home-portal-sidebar-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.home-portal-sidebar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: #102758;
  font-weight: 800;
}

.home-portal-sidebar-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.home-portal-sidebar-copy strong {
  font-size: 0.82rem;
}

.home-portal-sidebar-copy small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.68rem;
  line-height: 1.25;
}

.home-portal-main {
  display: grid;
  grid-template-rows: auto auto auto auto;
  gap: 1rem;
  min-width: 0;
  min-height: 0;
}

.home-portal-topbar {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 140px minmax(260px, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 1.2rem;
  border-radius: 26px;
  background: linear-gradient(135deg, #102758 0%, #183775 100%);
  box-shadow: 0 20px 54px rgba(13, 32, 79, 0.18);
}

.home-portal-company-switcher,
.home-portal-user-chip {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.home-portal-company-badge,
.home-portal-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 44px;
  padding: 0.45rem 0.6rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: #102758;
  font-weight: 900;
}

.home-portal-company-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 28px;
}

.home-portal-company-meta,
.home-portal-user-chip div {
  display: flex;
  flex-direction: column;
}

.home-portal-company-meta strong,
.home-portal-user-chip strong {
  color: #fff;
  font-size: 0.98rem;
}

.home-portal-company-meta small,
.home-portal-user-chip small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.8rem;
}

.home-portal-year-switcher select {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: #102758;
  font-weight: 700;
  padding: 0 1rem;
}

.home-portal-search-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.2rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.home-portal-search-box span {
  display: none;
}

.home-portal-search-box input {
  width: 100%;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.94);
  outline: 0;
}

.home-portal-search-box input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.home-portal-search-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 38px;
  padding: 0.55rem 0.9rem;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: #102758;
  font-size: 0.82rem;
  font-weight: 800;
}

.home-portal-banner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1.4rem 1.5rem;
  border-radius: 28px;
  background: linear-gradient(135deg, #132b63, #102758 58%, #1a4c9c);
  box-shadow: 0 22px 56px rgba(13, 32, 79, 0.16);
}

.home-portal-banner-eyebrow {
  display: inline-flex;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-portal-banner h1 {
  margin: 0.85rem 0 0.35rem;
  color: #fff;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.home-portal-banner p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.home-portal-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.home-portal-primary-cta,
.home-portal-secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.2rem;
  border-radius: 16px;
  font-weight: 700;
}

.home-portal-primary-cta {
  color: #102758 !important;
  background: #fff;
}

.home-portal-secondary-cta {
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.home-portal-kpi-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.9fr);
  gap: 1rem;
}

.home-portal-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.home-portal-kpi-card,
.home-portal-panel,
.home-portal-approvals-card {
  border: 1px solid rgba(16, 39, 88, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 38px rgba(18, 35, 72, 0.08);
}

.home-portal-kpi-card {
  padding: 1rem 1.1rem;
}

.home-portal-kpi-label {
  display: block;
  margin-bottom: 0.5rem;
  color: #7c88a9;
  font-size: 0.83rem;
  font-weight: 700;
}

.home-portal-kpi-value {
  display: block;
  color: #102758;
  font-size: 1.35rem;
}

.home-portal-kpi-card.tone-emerald { border-top: 4px solid #22b573; }
.home-portal-kpi-card.tone-blue { border-top: 4px solid #3a7afe; }
.home-portal-kpi-card.tone-violet { border-top: 4px solid #7d61ff; }
.home-portal-kpi-card.tone-orange { border-top: 4px solid #ff9d3f; }

.home-portal-approvals-card,
.home-portal-panel {
  padding: 1.15rem 1.2rem;
  min-height: 0;
}

.home-portal-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.home-portal-section-head strong {
  color: #102758;
  font-size: 1rem;
}

.home-portal-section-head span {
  color: #8994b3;
  font-size: 0.82rem;
  font-weight: 700;
}

.home-portal-approvals-card p {
  margin: 0 0 0.9rem;
  color: #5d6c91;
  line-height: 1.7;
}

.home-portal-inline-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.home-portal-inline-status span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: #eef3ff;
  color: #27467f;
  font-size: 0.8rem;
  font-weight: 700;
}

.home-portal-content-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.35fr) minmax(320px, 1.05fr);
  grid-template-rows: minmax(0, 0.92fr) minmax(0, 1.08fr);
  grid-auto-rows: minmax(280px, auto);
  gap: 1rem;
  min-height: 0;
}

.home-portal-activity-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 0;
  padding-left: 1rem;
  color: #5d6c91;
  line-height: 1.6;
}

.home-portal-chart-area {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem;
  height: calc(100% - 1.5rem);
  min-height: 280px;
  padding-top: 1rem;
}

.home-portal-chart-bar-group {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  gap: 0.55rem;
  height: 100%;
}

.home-portal-chart-bar {
  width: 100%;
  max-width: 28px;
  border-radius: 14px 14px 6px 6px;
  background: linear-gradient(180deg, #6e7bff, #3d5cff);
  box-shadow: 0 12px 24px rgba(71, 91, 255, 0.18);
}

.home-portal-chart-bar-group small {
  color: #95a0bf;
  font-weight: 700;
}

.home-portal-sources-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  overflow: auto;
}

.home-portal-source-card {
  padding: 0.95rem 1rem;
  border: 1px solid rgba(16, 39, 88, 0.08);
  border-radius: 18px;
  background: #f8faff;
}

.home-portal-source-card.is-live {
  border-left: 4px solid #22b573;
}

.home-portal-source-card.is-error {
  border-left: 4px solid #e05252;
}

.home-portal-source-header,
.home-portal-source-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.home-portal-source-header strong {
  color: #102758;
}

.home-portal-source-header span,
.home-portal-source-meta span {
  color: #7a87a9;
  font-size: 0.8rem;
  font-weight: 700;
}

.home-portal-source-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: #e8f7ef;
  color: #1f8d56;
  font-size: 0.72rem;
  font-weight: 800;
}

.home-portal-source-db {
  margin: 0.45rem 0;
  color: #4d5d87;
  font-size: 0.9rem;
  word-break: break-word;
}

.home-portal-calendar-head {
  margin-bottom: 0.9rem;
  color: #102758;
}

.home-portal-calendar-weekdays,
.home-portal-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.45rem;
}

.home-portal-calendar-weekdays {
  margin-bottom: 0.55rem;
}

.home-portal-calendar-weekdays span {
  color: #8f99b8;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.home-portal-calendar-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 12px;
  color: #102758;
  font-weight: 700;
}

.home-portal-calendar-date.is-today {
  background: #102758;
  color: #fff;
}

.home-portal-calendar-date.is-empty {
  background: transparent;
}

.home-portal-sources-panel,
.home-portal-trend-panel,
.home-portal-report-panel,
.home-portal-inventory-panel,
.home-portal-calendar-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.home-portal-sources-panel {
  grid-column: 1;
  grid-row: 1;
}

.home-portal-trend-panel {
  grid-column: 2;
  grid-row: 1;
}

.home-portal-inventory-panel {
  grid-column: 3;
  grid-row: 1 / span 2;
}

.home-portal-report-panel {
  grid-column: 1 / span 2;
  grid-row: 2;
}

.home-portal-calendar-panel {
  display: none;
}

.home-portal-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 1.25rem;
  border: 1px dashed rgba(16, 39, 88, 0.12);
  border-radius: 18px;
  color: #7c88a9;
  text-align: center;
  line-height: 1.6;
}

.home-portal-empty-cell {
  padding: 2rem 1rem !important;
  color: #8390af;
  text-align: center;
}

.home-portal-table-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.home-portal-table-meta strong {
  color: #102758;
  font-size: 0.96rem;
}

.home-portal-table-meta span {
  color: #7f8bad;
  font-size: 0.78rem;
  font-weight: 700;
}

.home-portal-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  border: 1px solid rgba(16, 39, 88, 0.08);
  border-radius: 18px;
  background: #fbfcff;
}

.home-portal-sales-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
}

.home-portal-sales-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0.95rem 1rem;
  background: #eef3ff;
  color: #27467f;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.home-portal-sales-table tbody td {
  padding: 0.92rem 1rem;
  border-top: 1px solid rgba(16, 39, 88, 0.08);
  color: #32425f;
  font-size: 0.9rem;
  vertical-align: top;
}

.home-portal-sales-table tbody tr:hover {
  background: #f5f8ff;
}

.home-portal-inventory-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.home-portal-inventory-input {
  width: 100%;
  min-height: 46px;
  padding: 0 1rem;
  border: 1px solid rgba(16, 39, 88, 0.12);
  border-radius: 16px;
  color: #102758;
  background: #fbfcff;
}

.home-portal-stock-list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.8rem;
  min-height: 0;
  overflow: auto;
}

.home-portal-stock-card {
  padding: 1rem;
  border: 1px solid rgba(16, 39, 88, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfcff, #f5f8ff);
}

.home-portal-stock-head,
.home-portal-stock-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.home-portal-stock-head strong {
  color: #102758;
  font-size: 0.92rem;
  line-height: 1.45;
}

.home-portal-stock-head span,
.home-portal-stock-meta span {
  color: #7a87a9;
  font-size: 0.78rem;
  font-weight: 700;
}

.home-portal-stock-meta {
  margin-top: 0.45rem;
}

.home-portal-stock-qty {
  margin-top: 0.9rem;
  color: #143573;
  font-size: 1.35rem;
  font-weight: 900;
}

.home-portal-report-shell {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 1rem;
  flex: 1 1 auto;
  min-height: 0;
}

.home-portal-report-catalog {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 0;
  overflow: auto;
  padding-right: 0.2rem;
}

.home-portal-report-group-label {
  margin-top: 0.2rem;
  color: #7c88a9;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-portal-report-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(16, 39, 88, 0.08);
  border-radius: 18px;
  background: #f8faff;
  color: #102758;
  text-align: left;
}

.home-portal-report-card strong {
  color: #102758;
  font-size: 0.9rem;
}

.home-portal-report-card span {
  color: #69779a;
  font-size: 0.8rem;
  line-height: 1.5;
}

.home-portal-report-card.is-active {
  border-color: rgba(28, 90, 214, 0.24);
  background: linear-gradient(180deg, #eef3ff, #f8fbff);
  box-shadow: 0 14px 34px rgba(18, 35, 72, 0.08);
}

.home-portal-report-preview {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid rgba(16, 39, 88, 0.08);
  border-radius: 20px;
  background: #fbfcff;
  padding: 1rem;
}

.home-portal-report-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.home-portal-report-preview-head strong {
  color: #102758;
  font-size: 1rem;
}

.home-portal-report-preview-head p {
  margin: 0.35rem 0 0;
  color: #6d7b9d;
  line-height: 1.55;
}

.home-portal-report-preview-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.22rem;
  text-align: right;
}

.home-portal-report-preview-meta span,
.home-portal-report-preview-meta small {
  color: #7c88a9;
  font-size: 0.76rem;
  font-weight: 700;
}

.home-portal-report-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  border: 1px solid rgba(16, 39, 88, 0.08);
  border-radius: 16px;
  background: #fff;
}

.home-portal-report-table {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
}

.home-portal-report-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0.9rem 1rem;
  background: #eef3ff;
  color: #27467f;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-portal-report-table tbody td {
  padding: 0.9rem 1rem;
  border-top: 1px solid rgba(16, 39, 88, 0.08);
  color: #344465;
  font-size: 0.89rem;
}

.home-portal-report-table tbody tr:hover {
  background: #f6f9ff;
}

@media (max-width: 1399.98px) {
  .home-portal-topbar {
    grid-template-columns: minmax(200px, 1fr) 140px minmax(220px, 1fr);
  }

  .home-portal-user-chip {
    grid-column: 1 / -1;
    justify-self: end;
  }

  .home-portal-content-grid {
    grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1fr);
    grid-template-rows: auto;
  }

  .home-portal-sources-panel,
  .home-portal-trend-panel,
  .home-portal-inventory-panel,
  .home-portal-report-panel {
    grid-column: auto;
    grid-row: auto;
  }

  .home-portal-report-panel {
    grid-column: 1 / -1;
  }
}

.order-page h4 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.8rem, 2vw, 2.3rem);
}

.order-page .order-form-shell {
  padding: 1.25rem 1rem 1.5rem;
}

.order-page .order-form-shell .row {
  row-gap: 1rem;
}

.order-page .order-form-shell [style*="float:left"] {
  float: none !important;
}

.order-page .order-form-shell .col-lg-1,
.order-page .order-form-shell .col-lg-2,
.order-page .order-form-shell .col-lg-3,
.order-page .order-form-shell .col-lg-4 {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.order-page .order-header-row {
  margin-bottom: 0.5rem;
}

.order-page .order-entry-row {
  margin-top: 0.75rem !important;
}

.order-page .order-entry-panel {
  margin-bottom: 0;
  padding: 1.5rem;
  border: 1px solid rgba(10, 143, 67, 0.12);
  background:
    linear-gradient(180deg, rgba(12, 40, 21, 0.04), rgba(12, 40, 21, 0.02)),
    rgba(244, 247, 244, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.order-page .order-entry-controls {
  align-items: end;
}

.order-page .MarginStyle {
  margin-bottom: 0.75rem;
}

.order-page .order-add-cell {
  align-items: flex-end;
}

.order-page .order-add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
}

.order-page .order-items-table {
  display: table !important;
  width: 100% !important;
  min-width: 100% !important;
  margin-top: 0.5rem;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.order-page .order-items-table thead,
.order-page .order-items-table tbody,
.order-page .order-items-table tr {
  width: 100%;
}

.order-page .order-items-table thead th,
.order-page .order-items-table td {
  white-space: normal;
  word-break: break-word;
}

.order-page .order-items-table thead th:last-child,
.order-page .order-items-table thead th:nth-last-child(2) {
  width: 88px !important;
}

.order-page #Tran2:empty::before {
  content: "No items added yet. Select an item, quantity, and price to build the order.";
  display: block;
  padding: 1rem;
  color: var(--brand-muted);
  font-weight: 600;
}

.order-page .order-actions-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  padding-top: 1rem !important;
}

.order-page .order-actions-row .btn,
.order-page .order-actions-row input[type="submit"] {
  width: auto;
  min-width: 132px;
}

.order-page .select2-container {
  width: 100% !important;
}

.order-page .select2-container .select2-selection--single {
  height: 46px !important;
  border: 1px solid var(--brand-border) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.96) !important;
}

.order-page .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 44px !important;
  padding-left: 0.9rem !important;
  color: var(--brand-ink) !important;
}

.order-page .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 44px !important;
  right: 8px !important;
}

.order-page .select2-dropdown {
  border: 1px solid rgba(10, 143, 67, 0.18) !important;
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 22px 48px rgba(8, 38, 22, 0.18);
}

.order-page .select2-container--open .select2-dropdown {
  width: min(720px, calc(100vw - 2rem)) !important;
  max-width: calc(100vw - 2rem) !important;
}

.order-page .select2-search--dropdown {
  padding: 0.65rem;
  background: #fff;
  border-bottom: 1px solid rgba(10, 143, 67, 0.1);
}

.order-page .select2-search--dropdown .select2-search__field {
  min-height: 42px;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(10, 143, 67, 0.22) !important;
  border-radius: 12px !important;
  font-size: 0.96rem;
}

.order-page .select2-results__options {
  max-height: min(42vh, 340px) !important;
  padding: 0.25rem 0;
}

.order-page .select2-results__option {
  padding: 0.75rem 0.9rem !important;
  font-size: 0.95rem;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
}

.order-page .select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: linear-gradient(135deg, rgba(10, 143, 67, 0.78), rgba(10, 143, 67, 0.58)) !important;
  color: #fff !important;
}

.order-page .select2-container--default .select2-results__option[aria-selected="true"] {
  background: rgba(10, 143, 67, 0.08);
  color: var(--brand-ink);
}

@media (min-width: 992px) {
  body.home-landing-page,
  body.order-page {
    margin-bottom: 0;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .home-landing-page .container-fluid > main.pb-3,
  .order-page .container-fluid > main.pb-3 {
    min-height: auto;
    padding-bottom: 0 !important;
  }

  .home-landing-page .container-fluid > main.pb-3 {
    display: block;
    padding-top: 0 !important;
  }

  .home-landing-page .text-center {
    min-height: auto;
  }

  .order-page .container-fluid > main.pb-3 {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .order-page .order-form-shell {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .order-page .order-entry-row {
    flex: 1 1 auto;
    min-height: 0;
  }

  .order-page .order-entry-panel {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .order-page .order-entry-panel .table-responsive-shell {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
  }

  .order-page .order-actions-row {
    margin-top: auto;
  }
}

@media (max-width: 767.98px) {
  body {
    margin-bottom: 100px;
  }

  .navbar {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .boss-navbar-brand {
    max-width: 100%;
    padding-right: 0.65rem;
  }

  .boss-navbar-logo {
    height: 34px;
  }

  .boss-navbar-copy strong {
    font-size: 0.88rem;
  }

  .boss-navbar-copy small {
    font-size: 0.66rem;
  }

  .home-landing-page .container-fluid > main.pb-3 {
    min-height: auto;
  }

  .home-portal-shell {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 0.75rem;
  }

  .home-portal-sidebar {
    flex-direction: row;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0.8rem;
  }

  .home-portal-sidebar-nav {
    flex-direction: row;
  }

  .home-portal-sidebar-item {
    min-width: 110px;
  }

  .home-portal-topbar {
    grid-template-columns: 1fr;
  }

  .home-portal-search-box {
    flex-wrap: wrap;
  }

  .home-portal-search-action {
    width: 100%;
  }

  .home-portal-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-portal-kpi-grid,
  .home-portal-content-grid,
  .home-portal-kpi-strip {
    grid-template-columns: 1fr;
  }

  .home-portal-content-grid {
    grid-template-rows: auto;
  }

  .home-portal-sources-panel,
  .home-portal-trend-panel,
  .home-portal-inventory-panel,
  .home-portal-report-panel {
    grid-column: auto;
    grid-row: auto;
  }

  .home-portal-inventory-toolbar {
    grid-template-columns: 1fr;
  }

  .home-portal-report-shell {
    grid-template-columns: 1fr;
  }

  .home-portal-report-preview-meta {
    align-items: flex-start;
    text-align: left;
  }

  .home-portal-report-table {
    min-width: 680px;
  }

  .navbar-collapse {
    margin-top: 0.85rem;
    padding: 0.75rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
  }

  .navbar-nav .nav-link {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .container,
  .container-fluid {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .card,
  .modal-content,
  form,
  .alert {
    border-radius: 16px;
  }

  .btn,
  .form-control,
  .custom-select,
  .input-group-text {
    min-height: 48px;
    font-size: 0.95rem;
  }

  .table {
    display: table;
    width: 100%;
    min-width: 680px;
    white-space: nowrap;
    font-size: 0.88rem;
  }

  .table thead th,
  .table td,
  .table th {
    padding: 0.65rem 0.7rem;
  }

  .footer {
    min-height: 84px;
    line-height: normal;
  }

  .footer-branding {
    min-height: 84px;
    font-size: 0.88rem;
  }

  .order-page .order-form-shell {
    padding: 1rem 0.85rem 1.25rem;
  }

  .order-page .order-entry-panel {
    padding: 1rem;
  }

  .order-page .order-add-cell,
  .order-page .order-actions-row {
    align-items: stretch;
  }

  .order-page .order-items-table {
    min-width: 720px !important;
  }

  .order-page .select2-container--open .select2-dropdown {
    width: min(92vw, 640px) !important;
  }

  .home-dashboard-hero {
    grid-template-columns: 1fr;
    padding: 1.1rem;
    border-radius: 22px;
  }

  .home-dashboard-copy h1 {
    max-width: none;
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .home-dashboard-summary {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .home-dashboard-actions,
  .home-dashboard-footer-links {
    flex-direction: column;
  }

  .home-dashboard-action,
  .home-dashboard-inline-link {
    width: 100%;
  }

  .home-dashboard-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  body {
    margin-bottom: 112px;
  }

  h1 {
    font-size: 1.7rem;
  }

  h2 {
    font-size: 1.45rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .btn,
  .btn-primary,
  .btn-secondary,
  .btn-outline-primary,
  .btn-outline-secondary {
    width: 100%;
  }

  .mobile-form-shell .btn + .btn,
  .mobile-form-shell button + button,
  .mobile-form-shell input[type="submit"] + input[type="submit"] {
    margin-top: 0.75rem;
  }

  .order-page .order-actions-row .btn,
  .order-page .order-actions-row input[type="submit"] {
    width: 100%;
  }

  .order-page .select2-results__option {
    font-size: 0.92rem;
    padding: 0.7rem 0.8rem !important;
  }

  .order-page .select2-container--open .select2-dropdown {
    width: calc(100vw - 1.25rem) !important;
    max-width: calc(100vw - 1.25rem) !important;
  }

  .home-portal-chart-area {
    min-height: 220px;
    gap: 0.45rem;
  }

  .home-portal-chart-bar {
    max-width: 20px;
  }

  .home-portal-table-meta,
  .home-portal-report-preview-head,
  .home-portal-stock-head,
  .home-portal-stock-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}
