:root {
  --bg: #f7f4ea;
  --bg-accent: #fffef7;
  --ink: #131313;
  --muted: #444;
  --brand-green: #0f6d3f;
  --brand-orange: #ff9f1c;
  --danger: #b00020;
  --ok: #166534;
  --card: rgba(255, 255, 255, 0.84);
  --shadow: 0 18px 50px rgba(13, 21, 18, 0.18);
}

* {
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(247, 244, 234, 0.82), rgba(255, 254, 247, 0.86)),
    url("/assets/Fundo%20Teste.png") center / cover fixed no-repeat;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

.bg-shape {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(2px);
  animation: float 10s ease-in-out infinite;
}

.bg-shape-one {
  width: 350px;
  height: 350px;
  right: -120px;
  bottom: -90px;
  background: rgba(255, 159, 28, 0.35);
}

.bg-shape-two {
  width: 280px;
  height: 280px;
  left: -110px;
  top: -90px;
  background: rgba(15, 109, 63, 0.28);
  animation-delay: 1.5s;
}

.shell {
  width: min(1100px, 92vw);
  margin: 4rem auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
  align-items: stretch;
}

.topbar {
  position: relative;
  z-index: 40;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(16, 44, 26, 0.1);
  border-radius: 18px;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
}

.topbar-brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.cart-button {
  border: 1px solid #d5dfd8;
  background: #fff;
  border-radius: 14px;
  padding: 0.7rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.cart-button img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.cart-count {
  min-width: 24px;
  height: 24px;
  padding: 0 0.35rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #eb6a32;
  color: #fff;
  font-size: 0.78rem;
}

.account-wrap {
  position: relative;
  z-index: 45;
}

.account-trigger {
  border: 1px solid #d5dfd8;
  background: #fff;
  border-radius: 12px;
  padding: 0.45rem 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  cursor: pointer;
}

.avatar-mini,
.avatar-large {
  border-radius: 999px;
  background: #e6f3e8;
  color: #25663f;
  display: grid;
  place-items: center;
  font-weight: 700;
  overflow: hidden;
}

.avatar-mini {
  width: 30px;
  height: 30px;
  font-size: 0.8rem;
}

.avatar-large {
  width: 52px;
  height: 52px;
  font-size: 1rem;
}

.avatar-mini img,
.avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(460px, 90vw);
  z-index: 60;
  border: 1px solid #dbe7df;
  border-radius: 16px;
  background: #fff;
  padding: 1rem;
  box-shadow: 0 24px 40px rgba(11, 25, 17, 0.2);
}

.account-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.account-head p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.account-info {
  margin-top: 0.8rem;
  border: 1px solid #ecf0ed;
  border-radius: 10px;
  padding: 0.7rem;
  background: #fbfdfc;
}

.account-info p {
  margin: 0.35rem 0;
  font-size: 0.9rem;
}

.account-buttons {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.6rem;
}

.account-buttons .action {
  flex: 1;
}

.profile-shell {
  grid-template-columns: 1fr;
  width: min(900px, 92vw);
}

.profile-card {
  border: 1px solid rgba(16, 44, 26, 0.1);
  border-radius: 24px;
  background: var(--card);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
  padding: 1.4rem;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.8rem;
}

.avatar-picker {
  position: relative;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.profile-header .avatar-large {
  width: 84px;
  height: 84px;
  font-size: 1.5rem;
  box-shadow: 0 8px 18px rgba(18, 38, 29, 0.2);
}

.avatar-edit-overlay {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(12, 21, 16, 0.86);
  border: 2px solid #fff;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.avatar-picker:hover .avatar-edit-overlay,
.avatar-picker:focus-visible .avatar-edit-overlay {
  opacity: 1;
  transform: scale(1);
}

.avatar-edit-overlay img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.avatar-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 8, 14, 0.8);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.avatar-modal-card {
  width: min(540px, 94vw);
  max-height: min(92vh, 760px);
  overflow: auto;
  border-radius: 18px;
  background: #101319;
  color: #eef3f7;
  border: 1px solid #222834;
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.45);
  padding: 1rem;
}

.avatar-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.avatar-modal-header h2 {
  margin: 0;
  font-size: 1.3rem;
}

.icon-close {
  border: 0;
  background: transparent;
  color: #b4bfca;
  font-size: 1.3rem;
  cursor: pointer;
}

.avatar-crop-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: min(62vh, 460px);
  border-radius: 14px;
  overflow: hidden;
  background: #131720;
}

.avatar-crop-stage canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

.avatar-crop-stage canvas:active {
  cursor: grabbing;
}

.crop-circle-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.crop-circle-frame::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 999px;
  border: 4px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 9999px rgba(9, 12, 16, 0.35);
}

.avatar-controls {
  margin-top: 0.9rem;
}

.avatar-controls label {
  color: #dde7f1;
  font-weight: 600;
}

.avatar-controls input[type="range"] {
  margin-top: 0.4rem;
}

.avatar-modal-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

@media (max-width: 700px) {
  .avatar-modal-card {
    width: 95vw;
    padding: 0.85rem;
  }

  .avatar-crop-stage {
    max-height: 52vh;
  }

  .avatar-modal-actions {
    justify-content: stretch;
  }

  .avatar-modal-actions .action {
    flex: 1;
  }
}

.profile-header h1 {
  margin: 0;
}

.profile-header p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.remove-avatar-line {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.5rem;
}

.remove-avatar-line input {
  width: auto;
}

.brand-panel,
.auth-card,
.dashboard {
  border: 1px solid rgba(16, 44, 26, 0.1);
  border-radius: 24px;
  background: var(--card);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
}

.brand-panel {
  padding: 2.4rem;
  animation: slideUp 0.6s ease;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-green);
  margin: 0 0 0.8rem;
  font-weight: 700;
}

.market-badge {
  width: 92px;
  height: 92px;
  border-radius: 16px;
  border: 1px solid rgba(15, 109, 63, 0.2);
  background: #ffffff;
  display: grid;
  place-items: center;
  margin: 0 auto 0.9rem;
  box-shadow: 0 10px 24px rgba(18, 45, 30, 0.16);
}

.market-badge img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.brand-panel h1 {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0;
  line-height: 1;
  color: #56b847;
  text-align: center;
}

.subtitle {
  font-size: 1rem;
  color: var(--muted);
  margin: 1rem 0;
}

.brand-panel ul {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.brand-panel li {
  background: #eef7f1;
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  border-left: 5px solid var(--brand-green);
  font-weight: 500;
}

.auth-card,
.dashboard {
  padding: 2rem;
  animation: slideUp 0.7s ease;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tab {
  border: 1px solid #ddd;
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  padding: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.tab.active {
  border-color: var(--brand-green);
  background: #ebf7f0;
}

.form {
  display: none;
  gap: 0.9rem;
}

.form.active {
  display: grid;
}

.account-edit-form {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.9rem;
}

.form-section-label {
  padding: 0 0 0.2rem;
}

.form-section-label strong {
  display: block;
  color: #205f3f;
}

.form-section-label p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.form-field-group {
  margin-top: 0.3rem;
  padding: 1rem;
  border: 1px solid #dbe7df;
  border-radius: 18px;
  background: rgba(247, 251, 248, 0.85);
}

.form-field-group-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-top: 0.8rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}

input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #d3d3d3;
  font-size: 1rem;
  padding: 0.68rem 0.8rem;
  font-family: inherit;
}

select,
textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #d3d3d3;
  font-size: 1rem;
  padding: 0.68rem 0.8rem;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
}

input:focus {
  outline: 2px solid rgba(15, 109, 63, 0.2);
  border-color: var(--brand-green);
}

select:focus,
textarea:focus {
  outline: 2px solid rgba(15, 109, 63, 0.2);
  border-color: var(--brand-green);
}

input[readonly] {
  background: #eff3ef;
  color: #475249;
  cursor: not-allowed;
}

.link-button {
  border: 0;
  background: transparent;
  color: #0f6d3f;
  font-weight: 700;
  text-align: left;
  padding: 0;
  cursor: pointer;
}

.link-button:hover {
  text-decoration: underline;
}

.address-details {
  border: 1px solid #d9e5dd;
  border-radius: 12px;
  padding: 0.75rem;
  background: #f8fcf9;
}

.address-details > summary {
  font-weight: 700;
  cursor: pointer;
  color: #205f3f;
  list-style: none;
}

.address-details > summary::-webkit-details-marker {
  display: none;
}

.address-details > summary::after {
  content: "+";
  float: right;
  font-size: 1.1rem;
}

.address-details[open] > summary::after {
  content: "-";
}

.address-grid {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.col-span-2 {
  grid-column: 1 / -1;
}

.action {
  border: 0;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(100deg, var(--brand-green), #1d965c);
}

.action:hover {
  transform: translateY(-1px);
}

.action.ghost {
  margin-top: 1rem;
  background: linear-gradient(100deg, #ff8d0a, var(--brand-orange));
}

.action.danger {
  background: linear-gradient(100deg, #bb1e2d, #df4856);
}

.topbar .action.ghost,
.account-buttons .action.ghost,
.avatar-modal-actions .action.ghost {
  margin-top: 0;
}

.message {
  min-height: 1.2rem;
  margin-top: 0.8rem;
  font-weight: 600;
}

.message.error {
  color: var(--danger);
}

.message.success {
  color: var(--ok);
}

.site-footer {
  width: min(1240px, 94vw);
  margin: 0 auto 2.4rem;
  border: 1px solid rgba(16, 44, 26, 0.1);
  border-radius: 24px;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
}

.site-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.site-footer h2 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
}

.site-footer p {
  margin: 0.25rem 0;
  color: var(--muted);
  line-height: 1.5;
}

.site-footer a {
  color: var(--brand-green);
  text-decoration: none;
  font-weight: 700;
}

.site-footer a:hover {
  text-decoration: underline;
}

.dashboard.hidden,
.auth-card.hidden,
.topbar.hidden,
.account-panel.hidden {
  display: none;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-top: 1rem;
}

.dashboard-grid article {
  border-radius: 14px;
  border: 1px solid #e8e8e8;
  padding: 0.8rem;
  background: #fff;
}

.orders-shell {
  grid-template-columns: 1fr;
  width: min(1280px, 94vw);
}

.orders-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 1.2rem;
  grid-column: 1 / -1;
}

.orders-catalog,
.order-form-card,
.cart-card,
.orders-history-card {
  border: 1px solid rgba(16, 44, 26, 0.1);
  border-radius: 24px;
  background: var(--card);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
}

.orders-catalog,
.order-form-card,
.cart-card,
.orders-history-card {
  padding: 1.2rem;
}

.orders-main {
  display: grid;
  gap: 1rem;
}

.cart-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 1rem;
  grid-column: 1 / -1;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 1rem;
  grid-column: 1 / -1;
}

.employee-orders-layout {
  grid-column: 1 / -1;
}

.employee-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  grid-column: 1 / -1;
}

.employee-company-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 780px);
  justify-content: center;
  grid-column: 1 / -1;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
}

.section-copy {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.catalog-search {
  margin-top: 1rem;
}

.catalog-list {
  margin-top: 1rem;
  display: grid;
  gap: 0.7rem;
  max-height: 720px;
  overflow: auto;
  padding-right: 0.2rem;
}

.catalog-item {
  border: 1px solid #d7e5da;
  border-radius: 16px;
  background: #fff;
  padding: 0.9rem;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 0.35rem;
}

.catalog-item strong {
  font-size: 1rem;
}

.catalog-item span {
  color: var(--muted);
  font-size: 0.88rem;
}

.catalog-item.active {
  border-color: var(--brand-green);
  background: #eef8f1;
}

.order-item-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.checkout-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.order-item-form label:first-child,
.order-item-form .action {
  grid-column: 1 / -1;
}

.checkout-notes,
.checkout-actions {
  grid-column: 1 / -1;
}

.checkout-actions {
  display: flex;
  justify-content: flex-end;
}

.employee-inline-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.employee-orders-panel {
  grid-column: 1 / -1;
}

.employee-filters {
  margin-top: 1rem;
  margin-bottom: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.employee-filter-toolbar {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-start;
}

.filter-toggle-button {
  border: 1px solid #d5dfd8;
  background: #fff;
  border-radius: 14px;
  padding: 0.7rem 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.filter-toggle-button img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.filter-toggle-button:hover {
  transform: translateY(-1px);
}

.filter-toggle-button.active {
  background: linear-gradient(100deg, var(--brand-green), #1d965c);
  border-color: #1d965c;
  color: #fff;
  box-shadow: 0 10px 22px rgba(15, 109, 63, 0.2);
}

.filter-toggle-button.active img {
  filter: brightness(0) invert(1);
  transform: rotate(-8deg);
}

.employee-filters {
  transform-origin: top center;
}

.employee-filters.filter-panel-enter {
  animation: filterReveal 0.22s ease;
}

.employee-search-wide {
  grid-column: 1 / -1;
}

.cart-list,
.orders-history-list {
  display: grid;
  gap: 0.8rem;
}

.cart-list {
  margin-top: 1rem;
}

.cart-item,
.history-order {
  border: 1px solid #e5ece6;
  border-radius: 16px;
  padding: 0.9rem;
  background: #fff;
}

.history-order {
  position: relative;
}

.history-order-highlight {
  border-color: #1d965c;
  box-shadow: 0 14px 28px rgba(15, 109, 63, 0.16);
  background: linear-gradient(180deg, rgba(238, 248, 241, 0.96), #fff);
}

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.cart-item p,
.history-order p,
.history-order ul {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.cart-summary {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid #dde6dd;
  padding-top: 1rem;
}

.cart-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.cart-summary strong {
  font-size: 1.35rem;
}

.empty-state {
  border: 1px dashed #cad8cd;
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
}

.employee-helper-card {
  margin-top: 1rem;
  text-align: left;
  line-height: 1.6;
}

.employee-list-layout {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 1rem;
  grid-column: 1 / -1;
}

.employee-card-actions {
  flex-wrap: wrap;
}

.company-alert-card {
  border-color: #e6b0a6;
  background: linear-gradient(180deg, rgba(255, 238, 232, 0.95), #fff7f4);
}

.company-alert-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e6b0a6;
  box-shadow: 0 8px 18px rgba(169, 84, 62, 0.16);
}

.company-alert-badge img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.company-alert-text {
  color: #8a4a3e;
}

.history-order header,
.history-order footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.history-order ul {
  padding-left: 1.1rem;
}

.history-order-details {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.75rem;
}

.history-order-details p {
  margin: 0;
}

.order-status {
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: #e9f4ec;
  color: var(--brand-green);
  font-weight: 700;
  text-transform: capitalize;
}

.order-status-cancelado {
  background: #fdeaea;
  color: #9f1d1d;
}

.history-cancel-button {
  min-width: 170px;
}

.employee-order-actions {
  align-items: flex-start;
}

.employee-order-action-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
}

.shared-product-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: #eef8f1;
  color: #205f3f;
  font-weight: 700;
  border: 1px solid #cfe5d7;
}

.orders-summary-grid {
  margin: 1rem 0 1.15rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.orders-summary-card {
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid #dbe7df;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(245, 250, 246, 0.92));
}

.orders-summary-card span {
  display: block;
  color: #205f3f;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.orders-summary-card strong {
  display: block;
  margin-top: 0.55rem;
  font-size: 1.6rem;
}

.orders-summary-card p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.field-hint {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.company-warning-modal {
  width: min(520px, 94vw);
  background: #fff;
  color: var(--ink);
  border: 1px solid #dbe7df;
}

.company-warning-list {
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid #dbe7df;
  background: #f7fbf8;
}

.company-warning-list strong {
  display: block;
  margin-bottom: 0.5rem;
  color: #205f3f;
}

.company-warning-list ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.confirm-line {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
}

.confirm-line input {
  width: auto;
}

.reports-toolbar {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.reports-date-field {
  flex: 1;
  min-width: 220px;
}

.delivery-quick-dates {
  margin-top: 1.3rem;
}

.delivery-quick-dates-head {
  margin-bottom: 0.85rem;
}

.delivery-date-chip-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.8rem;
}

.delivery-date-chip {
  border: 1px solid #d5dfd8;
  background: #fff;
  border-radius: 16px;
  padding: 0.85rem 0.95rem;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease;
}

.delivery-date-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 109, 63, 0.12);
}

.delivery-date-chip.active {
  border-color: #1d965c;
  background: #eef8f1;
  box-shadow: 0 12px 24px rgba(15, 109, 63, 0.16);
}

.delivery-date-chip strong,
.delivery-date-chip span,
.delivery-date-chip small {
  display: block;
}

.delivery-date-chip span,
.delivery-date-chip small {
  margin-top: 0.2rem;
  color: var(--muted);
}

.delivery-report-layout {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: 1rem;
}

.delivery-report-card {
  border: 1px solid #dbe7df;
  border-radius: 20px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.82);
}

.delivery-order-list {
  margin-top: 1rem;
  display: grid;
  gap: 0.8rem;
}

.delivery-order-card {
  border: 1px solid #e5ece6;
  border-radius: 16px;
  padding: 0.9rem;
  background: #fff;
}

.delivery-order-card header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.delivery-order-card p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-16px);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .shell {
    margin: 1.2rem auto 2rem;
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-actions {
    justify-content: space-between;
  }

  .cart-button {
    justify-content: center;
  }

  .account-panel {
    right: 0;
  }

  .brand-panel,
  .auth-card,
  .dashboard {
    padding: 1.2rem;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
  }

  .address-grid {
    grid-template-columns: 1fr;
  }

  .orders-layout {
    grid-template-columns: 1fr;
  }

  .cart-page-layout {
    grid-template-columns: 1fr;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .employee-orders-layout {
    grid-template-columns: 1fr;
  }

  .employee-admin-layout {
    grid-template-columns: 1fr;
  }

  .employee-filters {
    grid-template-columns: 1fr;
  }

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

  .reports-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .delivery-report-layout {
    grid-template-columns: 1fr;
  }

  .order-item-form,
  .checkout-form {
    grid-template-columns: 1fr;
  }

  .cart-item,
  .cart-summary,
  .history-order header,
  .history-order footer {
    flex-direction: column;
    align-items: stretch;
  }

  .col-span-2 {
    grid-column: auto;
  }
}

@keyframes filterReveal {
  from {
    opacity: 0;
    transform: translateY(-8px) scaleY(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.report-table th,
.report-table td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border, #e0ddd0);
}

.report-table th {
  font-weight: 700;
  background: var(--bg-accent, #fffef7);
}

.report-table tr:last-child td {
  border-bottom: none;
}

.change-password-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-accent, #fffef7);
  border-radius: 8px;
  border: 1px solid var(--border, #e0ddd0);
}

.change-password-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.order-status-exclu\0000EDdo {
  background: #f3e8ff;
  color: #6b21a8;
}

.order-status-arquivado {
  background: #e5e7eb;
  color: #374151;
}

