/* =========================================================
   VARIÁVEIS

   Paleta em teste: cinza-chumbo profundo com fúcsia como
   cor de assinatura — contraste forte, editorial, sem
   depender de roxo/gradiente genérico de dashboard.
========================================================= */

:root {
  --paper: #eef3f8;
  --surface: #ffffff;
  --surface-alt: #eaf1f8;
  --sidebar: #12314e;
  --sidebar-alt: #1a3d5e;
  --ink: #1e293b;
  --muted: #64748b;
  --line: #dbe4ee;
  --line-soft: #eaf0f6;

  --primary: #2f80ed;
  --primary-dark: #1c5fc2;
  --primary-soft: #d7e8fb;

  --gold: #64748b;
  --gold-soft: #e2e8f0;

  --green: #3f7a5a;
  --green-soft: #e3ede6;

  --amber: #93621d;
  --amber-soft: #f2e5c9;

  --red: #9c3b3b;
  --red-soft: #f3e1dd;

  --shadow: 0 20px 40px rgba(18, 49, 78, .18);
  --shadow-sm: 0 2px 0 rgba(18, 49, 78, .05);

  --radius-lg: 10px;
  --radius-md: 8px;
  --radius-sm: 6px;
  --radius-pill: 999px;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.2px;
}

button, input, select {
  font: inherit;
}

/* Textura discreta de "tecido" — linhas finas em diagonal,
   quase imperceptíveis, um aceno ao ofício da loja. */
.login-screen,
.sidebar {
  background-image:
    repeating-linear-gradient(
      128deg,
      rgba(255, 255, 255, .02) 0px,
      rgba(255, 255, 255, .02) 1px,
      transparent 1px,
      transparent 34px
    );
}

/* =========================================================
   LAYOUT GERAL
========================================================= */

.app {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background: var(--sidebar);
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  border-right: 1px solid rgba(255, 255, 255, .06);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 8px 26px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  background: var(--primary);
  color: #eaf2fb;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: 19px;
  transform: rotate(-4deg);
  box-shadow: 2px 3px 0 rgba(0, 0, 0, .18);
}

.brand strong {
  display: block;
  color: #eaf2fb;
  font-size: 15px;
  font-family: var(--font-display);
  font-weight: 600;
}

.brand span {
  display: block;
  color: #9db3cc;
  font-size: 10px;
  font-style: italic;
  margin-top: 2px;
}

nav {
  display: flex;
  flex-direction: column;
}

.nav-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 12px;
  font-weight: 500;
  color: #7d93ad;
  padding: 0 12px;
  margin: 18px 0 7px;
  text-transform: lowercase;
}

.nav-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: #c3d3e3;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  text-align: left;
  display: flex;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  font-size: 13px;
  margin: 1px 0;
  transition: background .15s, color .15s;
}

.nav-item span {
  width: 20px;
  text-align: center;
  font-size: 15px;
}

.nav-item:hover {
  background: rgba(255, 255, 255, .06);
  color: #fff;
}

.nav-item.active {
  background: var(--primary);
  color: #eaf2fb;
  font-weight: 600;
}

.sidebar-bottom {
  margin-top: auto;
  padding: 0 2px;
}

.user {
  border-top: 1px dashed rgba(255, 255, 255, .14);
  padding: 16px 4px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--primary-dark);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-family: var(--font-display);
  font-weight: 600;
  flex-shrink: 0;
}

.user strong {
  font-size: 11px;
  display: block;
  color: #eaf2fb;
  font-weight: 600;
}

.user small {
  color: #9db3cc;
  font-size: 9px;
}

.user button {
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, .14);
  background: transparent;
  color: #c3d3e3;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  font-size: 12px;
}

.user button:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.main {
  margin-left: 260px;
  width: calc(100% - 260px);
}

.topbar {
  height: 68px;
  background: rgba(238, 243, 248, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.breadcrumb {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

.breadcrumb b {
  font-weight: 400;
  color: #b6c8dc;
}

.breadcrumb strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
}

.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.mobile-menu {
  display: none;
  border: 0;
  background: transparent;
  font-size: 20px;
  color: var(--ink);
  cursor: pointer;
}

.content {
  padding: 30px 34px 56px;
  max-width: 1440px;
  margin: auto;
}

/* =========================================================
   CABEÇALHO DE PÁGINA
========================================================= */

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--line);
  flex-wrap: wrap;
}

.page-head h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
}

.page-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}

.primary-btn {
  border: 1px solid var(--primary-dark);
  background: var(--primary);
  color: #ffffff;
  padding: 11px 18px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .12s, transform .08s;
  white-space: nowrap;
}

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

.secondary-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.secondary-btn:hover {
  background: var(--surface-alt);
  border-color: #9fc3ea;
}

/* =========================================================
   CARDS DE MÉTRICAS
========================================================= */

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-sm);
}

.card-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 9px;
}

.card-value {
  font-size: 23px;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: -.3px;
}

/* =========================================================
   GRIDS DE PAINÉIS
========================================================= */

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-top: 16px;
}

.dashboard-grid .panel,
.grid-2 .panel {
  margin-top: 0;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line-soft);
}

.panel-head h2 {
  font-size: 15px;
  margin: 0;
  font-weight: 600;
}

.panel-head p {
  font-size: 11px;
  color: var(--muted);
  margin: 3px 0 0;
  font-style: italic;
}

/* =========================================================
   TABELAS
========================================================= */

.table-wrap {
  overflow-x: auto;
  padding: 0 2px 4px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 620px;
}

th {
  text-align: left;
  color: var(--muted);
  font-size: 11px;
  font-style: italic;
  font-weight: 500;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}

td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-soft);
}

tbody tr:hover {
  background: var(--surface-alt);
}

.product-name {
  font-weight: 700;
}

.muted {
  color: var(--muted);
}

.sale-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--primary-dark);
  padding: 12px 4px;
  margin-top: 4px;
  border-top: 1px dashed var(--line);
}

.sale-total strong {
  font-family: var(--font-display);
  font-size: 17px;
}

.sale-total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 4px;
  font-size: 12px;
  color: var(--muted);
}

.sale-add-row {
  display: grid;
  grid-template-columns: 1fr 90px auto;
  gap: 8px;
  align-items: center;
}

.sale-add-row select,
.sale-add-row input {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-family: inherit;
  background: var(--surface);
}

/* =========================================================
   ABAS DE PERÍODO (VENDAS)
========================================================= */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 2px 0 18px;
}

.tab-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}

.tab-btn:hover {
  background: var(--surface-alt);
  color: var(--ink);
}

.tab-btn.active {
  background: var(--primary);
  border-color: var(--primary-dark);
  color: #ffffff;
}

.empty-state {
  padding: 46px 20px !important;
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  font-style: italic;
}

/* =========================================================
   BADGES
========================================================= */

.badge {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  display: inline-block;
  letter-spacing: .1px;
  border: 1px solid transparent;
}

.badge.green {
  background: var(--green-soft);
  color: var(--green);
  border-color: #c7d8c9;
}

.badge.orange {
  background: var(--amber-soft);
  color: var(--amber);
  border-color: #ddc48c;
}

.badge.red {
  background: var(--red-soft);
  color: var(--red);
  border-color: #dfbcb6;
}

.badge.purple {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: #b9d3f5;
}

/* =========================================================
   AÇÕES DE LINHA
========================================================= */

.actions {
  display: flex;
  gap: 6px;
}

.action-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 6px 9px;
  font-size: 11px;
  cursor: pointer;
  transition: background .15s;
}

.action-btn:hover {
  background: var(--surface-alt);
}

.action-btn.delete:hover {
  background: var(--red-soft);
  border-color: #dfbcb6;
}

/* =========================================================
   ESTOQUE — RESUMO
========================================================= */

.stock-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 4px 20px 22px;
}

.stock-summary > div {
  background: var(--surface-alt);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 13px;
  text-align: center;
}

.stock-summary strong {
  display: block;
  font-size: 19px;
  font-family: var(--font-display);
  font-weight: 600;
}

.stock-summary span {
  font-size: 10px;
  color: var(--muted);
}

/* =========================================================
   FORMULÁRIOS
========================================================= */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  margin-bottom: 4px;
}

.field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

.field input,
.field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  outline: none;
  font-size: 12px;
  background: var(--surface);
  color: var(--ink);
}

.field input:focus,
.field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* =========================================================
   RELATÓRIOS — GRÁFICO DE BARRAS
========================================================= */

.report-chart {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding: 8px 20px 22px;
  min-height: 220px;
  overflow-x: auto;
}

.report-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  min-width: 44px;
  height: 190px;
}

.report-bar-value {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 6px;
  white-space: nowrap;
}

.report-bar {
  width: 100%;
  max-width: 30px;
  border-radius: 2px 2px 0 0;
  background: var(--gold);
  min-height: 6px;
}

.report-bar-label {
  font-size: 9.5px;
  color: var(--muted);
  margin-top: 8px;
  font-style: italic;
}

/* =========================================================
   RELATÓRIOS / DASHBOARD — RANKING
========================================================= */

.report-ranking {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 8px 20px 22px;
}

.report-rank-row {
  display: grid;
  grid-template-columns: 120px 1fr 60px;
  align-items: center;
  gap: 12px;
}

.report-rank-name {
  font-size: 11.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-rank-bar-wrap {
  height: 7px;
  background: var(--surface-alt);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.report-rank-bar {
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--primary);
}

.report-rank-value {
  font-size: 10.5px;
  color: var(--muted);
  text-align: right;
}

/* =========================================================
   NOTA FISCAL
========================================================= */

.invoice {
  margin-top: 18px;
  border: 1px dashed #9fc3ea;
  border-radius: var(--radius-md);
  padding: 18px;
  background: var(--surface-alt);
}

.invoice-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.invoice-head strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  display: block;
}

.invoice-head span {
  font-size: 10.5px;
  color: var(--muted);
}

.invoice-doc {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  font-size: 10.5px;
  color: var(--muted);
  text-align: right;
}

.invoice-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 12px;
}

.invoice-label {
  font-size: 10px;
  color: var(--muted);
  font-style: italic;
}

.invoice-table {
  min-width: 0;
  margin-top: 4px;
}

.invoice-table th,
.invoice-table td {
  padding: 9px 10px;
}

.invoice-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 4px;
  margin-top: 6px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
}

.invoice-total strong {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--primary-dark);
}

.invoice-key code {
  font-size: 10px;
  background: var(--primary-soft);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  color: var(--primary-dark);
}

.invoice-disclaimer {
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.5;
  margin: 14px 0 4px;
  padding: 10px 12px;
  background: var(--amber-soft);
  border-radius: var(--radius-sm);
  border: 1px solid #ddc48c;
}

/* =========================================================
   MODAL
========================================================= */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(33, 31, 36, .55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 20px;
  backdrop-filter: blur(2px);
}

.modal-backdrop.show {
  display: flex;
}

.modal {
  background: var(--surface);
  width: min(560px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  padding: 26px;
  position: relative;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.modal h2 {
  font-size: 19px;
  margin: 0 0 20px;
  font-weight: 600;
}

.modal-close {
  position: absolute;
  right: 16px;
  top: 14px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 18px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-color: #b9d3f5;
}

/* =========================================================
   TOAST
========================================================= */

.toast {
  position: fixed;
  right: 25px;
  bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--sidebar);
  color: #eaf2fb;
  padding: 13px 20px 13px 16px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(15px) scale(.97);
  transition: opacity .25s, transform .25s;
  z-index: 100;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
  max-width: min(360px, calc(100vw - 40px));
}

.toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: toastPop .35s ease;
}

@keyframes toastPop {
  0% { transform: translateY(15px) scale(.9); }
  55% { transform: translateY(-3px) scale(1.02); }
  100% { transform: translateY(0) scale(1); }
}

.toast-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}

.toast-icon svg {
  width: 20px;
  height: 20px;
}

.toast-msg {
  line-height: 1.35;
}

.toast.toast-success {
  border-left-color: var(--green);
}

.toast.toast-success .toast-icon {
  color: var(--green);
}

.toast.toast-error {
  border-left-color: #e5787a;
}

.toast.toast-error .toast-icon {
  color: #f39a9c;
}

@media (prefers-reduced-motion: reduce) {
  .toast.show {
    animation: none;
  }
}

/* =========================================================
   EFEITO DE ENTRADA

   Um único gesto orquestrado ao entrar — não uma animação
   repetida em cada cartão ou item de menu.
========================================================= */

@keyframes appReveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.logged-in .app {
  animation: appReveal .45s ease both;
}

@media (prefers-reduced-motion: reduce) {
  body.logged-in .app {
    animation: none;
  }
}

/* =========================================================
   LOGIN
========================================================= */

body:not(.logged-in) .app {
  display: none;
}

body.logged-in .login-screen {
  display: none;
}

.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--sidebar);
}

.login-card {
  width: 100%;
  max-width: 396px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  box-shadow: var(--shadow);
  border-top: 3px dashed var(--primary);
}

.login-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 26px;
}

.login-brand strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
}

.login-brand span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-style: italic;
  margin-top: 2px;
}

.login-card h1 {
  margin: 0 0 4px;
  font-size: 23px;
  font-weight: 600;
}

.login-card > p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 12px;
}

.login-card form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-submit {
  width: 100%;
  margin-top: 4px;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--muted);
  font-size: 10.5px;
  font-style: italic;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.login-hint {
  margin: 22px 0 0;
  text-align: center;
  font-size: 10.5px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  line-height: 1.5;
  border: 1px solid #b9d3f5;
}

/* =========================================================
   CONTEÚDO DE PAINEL COM PADDING
========================================================= */

.panel-body {
  padding: 20px;
}

/* =========================================================
   RESPONSIVO
========================================================= */

@media (max-width: 1000px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-grid,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .sidebar {
    transform: translateX(-100%);
    transition: .25s;
    box-shadow: 15px 0 35px rgba(0, 0, 0, .25);
  }

  .sidebar.open {
    transform: none;
  }

  .main {
    margin-left: 0;
    width: 100%;
  }

  .mobile-menu {
    display: block;
  }

  .topbar {
    padding: 0 18px;
  }

  .content {
    padding: 22px 18px 46px;
  }

  .page-head {
    align-items: flex-start;
    gap: 12px;
  }

  .page-head h1 {
    font-size: 21px;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .report-rank-row {
    grid-template-columns: 90px 1fr 46px;
  }
}

@media (max-width: 500px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .sale-add-row {
    grid-template-columns: 1fr;
  }

  .page-head {
    flex-direction: column;
  }

  .page-head .primary-btn {
    width: 100%;
  }

  .stock-summary {
    grid-template-columns: 1fr;
  }
}
