/* ==========================================================================
   OUTLET ANNY - SPEC VISUAL FIDELITY SYSTEM
   Visual Target: Mockup Exact Architecture
   Palette:
     Bordô: #6B1E32 | Rosa: #E8A9B7 | Rosa Claro: #F7DDE3 | Fundo: #FFF5F8 | Branco: #FFFFFF
     Texto Escuro: #35181F | Muted: #7E525D
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&display=swap');

:root {
  /* --- Authentic Outlet Anny Palette --- */
  --anny-burgundy: #6B1E32;
  --anny-burgundy-hover: #541727;
  --anny-burgundy-deep: #3D101C;
  --anny-pink: #E8A9B7;
  --anny-pink-hover: #DF9AA9;
  --anny-light-pink: #F7DDE3;
  --anny-pink-subtle: #FDECEF;
  --anny-blush-bg: #FFF5F8;
  --anny-white: #FFFFFF;

  /* --- Semantic Typography & Neutrals --- */
  --anny-text-dark: #35181F;
  --anny-text-muted: #7E525D;
  --anny-text-light: #A37E87;
  --anny-border: #F0D5DC;
  --anny-border-subtle: #F7DDE3;
  --anny-divider: #F0D5DC;

  /* --- Backward Compatibility Aliases --- */
  --primary: var(--anny-burgundy);
  --primary-hover: var(--anny-burgundy-hover);
  --primary-light: var(--anny-light-pink);
  --accent: var(--anny-pink);
  --accent-light: var(--anny-light-pink);
  --bg-main: var(--anny-blush-bg);
  --bg-card: var(--anny-white);
  --text-main: var(--anny-text-dark);
  --text-heading: var(--anny-burgundy);
  --text-muted: var(--anny-text-muted);
  --border: var(--anny-border);

  /* --- Status Colors --- */
  --success: #10B981;
  --success-light: #ECFDF5;
  --success-border: #A7F3D0;
  --success-text: #065F46;

  --warning: #D97706;
  --warning-light: #FEF3C7;
  --warning-border: #FDE68A;
  --warning-text: #92400E;

  --danger: #B91C1C;
  --danger-light: #FEF2F2;
  --danger-border: #FECACA;
  --danger-text: #991B1B;

  --info: #7C3AED;
  --info-light: #EDE9FE;
  --info-border: #DDD6FE;
  --info-text: #5B21B6;

  --shipping: #2563EB;
  --shipping-light: #EFF6FF;
  --shipping-border: #BFDBFE;
  --shipping-text: #1E40AF;

  /* --- Geometry & Radii --- */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  /* --- Soft Boutique Shadows --- */
  --shadow-subtle: 0 1px 3px rgba(107, 30, 50, 0.04);
  --shadow-card: 0 2px 8px rgba(107, 30, 50, 0.04);
  --shadow-hover: 0 6px 18px rgba(107, 30, 50, 0.08);
  --shadow-modal: 0 20px 40px -10px rgba(107, 30, 50, 0.3);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.outlet-anny-body {
  background-color: var(--anny-blush-bg);
  background-image: radial-gradient(circle at 12% 15%, rgba(247, 221, 227, 0.45) 0%, transparent 45%),
                    radial-gradient(circle at 88% 85%, rgba(232, 169, 183, 0.3) 0%, transparent 45%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Corner Florals (Exact Mockup Floral Accents) */
.floral-corner {
  position: fixed;
  width: 170px;
  height: 170px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}
.floral-corner.top-left {
  top: -15px;
  left: -15px;
}
.floral-corner.top-right {
  top: -15px;
  right: -15px;
  transform: rotate(90deg);
}

/* ==========================================================================
   HEADER & BOUTIQUE NAVIGATION (EXACT MOCKUP MATCH)
   ========================================================================== */

header.app-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.5rem 1.5rem;
  box-shadow: 0 1px 6px rgba(107, 30, 50, 0.03);
}

.header-inner {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  flex-wrap: nowrap;
}

@media (max-width: 1120px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* 1. Left Brand Block */
.logo-area {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  padding: 0.2rem 0;
  transition: opacity 0.15s ease;
}

.logo-area:hover {
  opacity: 0.9;
}

.logo-area:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.brand-circle-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--anny-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(107, 30, 50, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.brand-circle-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-text-wrapper {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--anny-burgundy);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--anny-text-muted);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

/* 2. Navigation Rows (Exact 2-Row Editorial Navigation) */
.nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
  flex-wrap: wrap;
  flex: 1 1 auto;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 0.35rem 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-link {
  text-decoration: none;
  color: var(--anny-burgundy);
  font-weight: 600;
  font-size: 0.825rem;
  padding: 0.32rem 0.75rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  border: 1px solid transparent;
  background: transparent;
  transition: all 0.15s ease;
  min-height: 34px;
  user-select: none;
  white-space: nowrap;
}

.nav-link:hover {
  background: var(--anny-light-pink);
  color: var(--anny-burgundy-hover);
}

.nav-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-color: var(--primary);
}

.nav-link.active {
  background: var(--anny-burgundy) !important;
  color: #FFFFFF !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(107, 30, 50, 0.22);
}

.nav-link.active .nav-icon {
  filter: brightness(0) invert(1);
}

.nav-link.nav-priority {
  font-weight: 600;
}

.nav-link.nav-link-subtle {
  font-size: 0.78rem;
  opacity: 0.9;
}

.nav-icon {
  font-size: 0.92rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-text {
  line-height: 1.2;
}

.nav-counter {
  background: var(--anny-pink);
  color: var(--anny-burgundy);
  font-size: 0.65rem;
  padding: 0.08rem 0.38rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.05rem;
  height: 1.05rem;
}

.nav-link.active .nav-counter {
  background: #FFFFFF;
  color: var(--anny-burgundy);
}

/* Secondary Navigation Dropdown */
.nav-dropdown {
  position: relative;
  display: inline-flex;
}

.nav-dropdown-btn {
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
}

.nav-dropdown-btn:hover {
  background: var(--anny-pink-subtle);
}

.nav-chevron {
  font-size: 0.7rem;
  margin-left: -0.1rem;
  opacity: 0.8;
}

.nav-dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: #FFFFFF;
  min-width: 165px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: 0 10px 25px rgba(107, 30, 50, 0.15);
  padding: 0.35rem 0;
  z-index: 1000;
  flex-direction: column;
}

.nav-dropdown:hover .nav-dropdown-content,
.nav-dropdown:focus-within .nav-dropdown-content {
  display: flex;
}

.nav-dropdown-item {
  width: 100%;
  border-radius: 0;
  padding: 0.45rem 0.9rem;
  justify-content: flex-start;
  font-size: 0.8rem;
  background: transparent;
}

.nav-dropdown-item:hover {
  background: var(--anny-blush-bg);
}

/* 3. Right Profile Block */
.header-profile-block {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-left: 1px solid var(--border);
  padding-left: 1.15rem;
  flex-shrink: 0;
}

.profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--anny-burgundy);
  color: #FFFFFF;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(107, 30, 50, 0.2);
}

.profile-info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.profile-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--anny-text-dark);
}

.profile-role {
  font-size: 0.72rem;
  color: var(--anny-text-muted);
}

.profile-chevron {
  color: var(--anny-text-muted);
  font-size: 0.75rem;
  font-weight: 700;
}

/* ==========================================================================
   MAIN WORKSPACE & LAYOUT CONTAINERS
   ========================================================================== */

main.app-main {
  max-width: 1440px;
  width: 100%;
  margin: 1.25rem auto 2.5rem auto;
  padding: 0 1.25rem;
  flex: 1;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   TOP HORIZONTAL METRICS ROW (6 CARDS - EXACT MOCKUP MATCH)
   ========================================================================== */

.mockup-metrics-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.mockup-metric-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  min-width: 0;
}

.mockup-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--anny-pink);
}

.metric-circle-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--anny-pink-subtle);
  color: var(--anny-burgundy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.metric-body {
  flex: 1;
  min-width: 0;
}

.metric-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--anny-text-dark);
  line-height: 1.1;
  letter-spacing: -0.3px;
}

.metric-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--anny-text-dark);
  margin-top: 0.15rem;
  line-height: 1.25;
}

.metric-sub {
  font-size: 0.7rem;
  color: var(--anny-text-muted);
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.metric-chevron {
  color: #C4A5AE;
  font-size: 1.15rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ==========================================================================
   3-COLUMN COCKPIT (EXACT MATCH DO MOCKUP: 25% / 50% / 25%)
   ========================================================================== */

.cockpit-container {
  display: grid;
  grid-template-columns: 290px minmax(520px, 1fr) 310px;
  gap: 1.1rem;
  align-items: start;
}

.card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 1.15rem;
}

/* --------------------------------------------------------------------------
   COLUNA 1 (ESQUERDA ~25%): LISTA DE SACOLINHAS
   -------------------------------------------------------------------------- */

.col-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.col-title-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.col-title-icon {
  font-size: 1.25rem;
}

.col-title-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--anny-text-dark);
  margin: 0;
}

.btn-mockup-pill-primary {
  background: var(--anny-burgundy);
  color: #FFFFFF;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}

.btn-mockup-pill-primary:hover {
  opacity: 0.9;
}

.mockup-filter-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-tab-pill {
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--anny-burgundy);
  background: var(--anny-blush-bg);
  white-space: nowrap;
  transition: all 0.15s ease;
}

.filter-tab-pill:hover {
  background: var(--anny-light-pink);
}

.filter-tab-pill.active {
  background: var(--anny-burgundy);
  color: #FFFFFF;
  font-weight: 700;
}

.mockup-search-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #FFFDFE;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.42rem 0.65rem;
  margin-bottom: 0.85rem;
}

.search-lens-icon {
  font-size: 0.85rem;
  opacity: 0.7;
}

.mockup-search-input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.8rem;
  color: var(--anny-text-dark);
  width: 100%;
}

.search-filter-icon {
  background: none;
  border: none;
  color: var(--anny-text-muted);
  font-size: 0.95rem;
  cursor: pointer;
}

.sacolinha-items-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: calc(100vh - 270px);
  overflow-y: auto;
  padding-right: 2px;
}

.sacolinha-card-item {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s ease;
}

.sacolinha-card-item:hover {
  background: var(--anny-blush-bg);
  border-color: var(--anny-pink);
}

.sacolinha-card-item.selected {
  background: #FFF0F4;
  border-color: var(--anny-pink);
  border-left: 4px solid var(--anny-burgundy);
  box-shadow: var(--shadow-subtle);
}

.bag-item-circle-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--anny-pink-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.bag-item-center {
  flex: 1;
  min-width: 0;
}

.bag-item-row-top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: space-between;
}

.bag-item-id {
  font-family: monospace;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--anny-text-dark);
}

.bag-item-customer {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--anny-text-dark);
  margin-top: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bag-item-date {
  font-size: 0.72rem;
  color: var(--anny-text-muted);
  margin-top: 0.1rem;
}

.bag-item-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  flex-shrink: 0;
}

.bag-item-price {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--anny-burgundy);
}

.bag-item-chevron {
  color: #C4A5AE;
  font-size: 1.15rem;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   STATUS BADGES
   -------------------------------------------------------------------------- */

.bag-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.detail-badge-lg {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
}

.badge-status-pickup {
  background: var(--anny-pink-subtle);
  color: var(--anny-burgundy);
  border: 1px solid var(--border);
}

.badge-status-shipping {
  background: #EBF4FF;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
}

.badge-status-shipped {
  background: #F3E8FF;
  color: #6B21A8;
  border: 1px solid #DDD6FE;
}

.badge-status-delivered {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.badge-status-pending {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.badge-status-open {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.badge-status-default {
  background: #F1F5F9;
  color: #475569;
}

/* --------------------------------------------------------------------------
   COLUNA 2 (CENTRO ~50%): DETALHE DA SACOLINHA
   -------------------------------------------------------------------------- */

.detail-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.detail-id-group {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.detail-bag-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--anny-pink-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.detail-bag-id {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--anny-burgundy);
  margin: 0;
  letter-spacing: -0.3px;
}

.detail-actions-right {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-mockup-outline {
  background: #FFFFFF;
  border: 1px solid var(--anny-pink);
  color: var(--anny-burgundy);
  font-weight: 700;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-mockup-outline:hover {
  background: var(--anny-blush-bg);
  border-color: var(--anny-burgundy);
}

.btn-more-options {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--anny-text-muted);
  cursor: pointer;
  padding: 0 0.25rem;
}

.customer-info-strip {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--anny-border-subtle);
  border-bottom: 1px solid var(--anny-border-subtle);
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--anny-text-dark);
  flex-wrap: wrap;
}

.info-strip-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.strip-icon {
  opacity: 0.8;
}

.strip-divider {
  color: var(--border);
  font-weight: 300;
}

.whatsapp-circle-small {
  background: #25D366;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  text-decoration: none;
  margin-left: 0.25rem;
}

/* Timeline Horizontal (5 Steps) */
.mockup-timeline-container {
  padding: 0.65rem 0 1.25rem 0;
}

.mockup-timeline-track {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  z-index: 2;
  position: relative;
}

.step-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--anny-light-pink);
  color: var(--anny-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  transition: all 0.2s ease;
  border: 2px solid #FFFFFF;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.timeline-step.completed .step-circle,
.timeline-step.active-current .step-circle {
  background: var(--anny-burgundy);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(107, 30, 50, 0.25);
}

.step-label-main {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--anny-text-dark);
  line-height: 1.2;
}

.step-label-sub {
  font-size: 0.68rem;
  color: var(--anny-text-muted);
  margin-top: 0.1rem;
}

.step-label-date {
  font-size: 0.65rem;
  color: var(--anny-text-light);
  margin-top: 0.1rem;
}

.timeline-line {
  flex: 1;
  height: 2px;
  background: var(--anny-light-pink);
  margin-top: 17px;
  z-index: 1;
}

.timeline-line.active {
  background: var(--anny-burgundy);
}

/* Action Buttons Strip */
.mockup-action-buttons-strip {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
  flex-wrap: wrap;
}

.btn-action-primary {
  flex: 1;
  min-width: 140px;
  background: var(--anny-burgundy);
  color: #FFFFFF;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(107, 30, 50, 0.2);
}

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

.btn-action-secondary {
  flex: 1;
  min-width: 140px;
  background: var(--anny-light-pink);
  color: var(--anny-burgundy);
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid var(--anny-pink);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-action-secondary:hover:not(.disabled) {
  background: var(--anny-pink);
}

.btn-action-secondary.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.delivered-celebration-pill {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--success-light);
  color: var(--success-text);
  border: 1px solid var(--success-border);
  font-weight: 700;
  font-size: 0.88rem;
  text-align: center;
}

/* Inner Cards (Peças da Sacolinha, Detalhes de Envio, Observações) */
.mockup-inner-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.95rem;
  margin-bottom: 1rem;
}

.items-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--anny-border-subtle);
}

.items-header-left {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.items-header-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--anny-text-dark);
  margin: 0;
}

.items-header-total {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--anny-text-muted);
}

.items-header-total .total-value {
  color: var(--anny-burgundy);
  font-weight: 800;
  font-size: 1.05rem;
}

.items-list-container {
  display: flex;
  flex-direction: column;
}

.item-table-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--anny-border-subtle);
}

.item-table-row:last-child {
  border-bottom: none;
}

.item-row-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--anny-blush-bg);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.item-thumb {
  width: 60px;
  height: 80px;
  max-width: 60px;
  max-height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--anny-blush-bg);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.item-row-info {
  flex: 1;
  min-width: 0;
}

.item-row-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--anny-text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-row-sub {
  font-size: 0.74rem;
  color: var(--anny-text-muted);
  margin-top: 0.1rem;
}

.pill-size {
  background: var(--anny-light-pink);
  color: var(--anny-burgundy);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-pill);
}

.item-row-price {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--anny-text-dark);
  margin: 0 0.5rem;
}

.item-row-menu {
  background: none;
  border: none;
  font-size: 1.15rem;
  color: var(--anny-text-muted);
  cursor: pointer;
}

/* Dual Bottom Grid */
.bottom-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.shipping-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}

.shipping-header-left {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.shipping-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--anny-text-dark);
  margin: 0;
}

.btn-edit-small {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 0.18rem 0.45rem;
  font-size: 0.7rem;
  color: var(--anny-burgundy);
  font-weight: 700;
  cursor: pointer;
}

.shipping-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.field-label-small {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--anny-text-muted);
  letter-spacing: 0.4px;
  margin-bottom: 0.25rem;
}

.mockup-mini-select,
.mockup-mini-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 0.45rem 0.65rem;
  font-size: 0.78rem;
  background: #FFFDFE;
  color: var(--anny-text-dark);
}

.tracking-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.tracking-lock-icon {
  position: absolute;
  right: 8px;
  font-size: 0.7rem;
  opacity: 0.6;
}

.notes-content-box {
  background: var(--anny-blush-bg);
  border: 1px solid var(--anny-border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  position: relative;
  overflow: hidden;
  min-height: 52px;
}

.notes-corner-flower {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 44px;
  height: 44px;
  opacity: 0.28;
  pointer-events: none;
}

.notes-bullet-row {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  position: relative;
  z-index: 1;
}

.notes-dot {
  color: var(--anny-pink);
  font-size: 1rem;
  line-height: 1;
}

.notes-text {
  font-size: 0.78rem;
  color: var(--anny-text-dark);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   COLUNA 3 (DIREITA ~25%): CENTRAL DE MENSAGENS
   -------------------------------------------------------------------------- */

.whatsapp-circle-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.message-center-tabs {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.85rem;
  padding-bottom: 0.35rem;
}

.msg-tab-btn {
  background: none;
  border: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--anny-text-muted);
  padding: 0.25rem 0.35rem;
  cursor: pointer;
}

.msg-tab-btn.active {
  color: var(--anny-burgundy);
  font-weight: 800;
  border-bottom: 2px solid var(--anny-burgundy);
}

.message-templates-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.msg-template-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.msg-template-card:hover {
  background: var(--anny-blush-bg);
  border-color: var(--anny-pink);
}

.msg-card-icon-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--anny-pink-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.msg-card-body {
  flex: 1;
  min-width: 0;
}

.msg-card-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--anny-text-dark);
  line-height: 1.2;
}

.msg-card-preview {
  font-size: 0.72rem;
  color: var(--anny-text-muted);
  margin-top: 0.15rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.msg-card-edit {
  background: none;
  border: none;
  font-size: 0.85rem;
  cursor: pointer;
  opacity: 0.7;
}

.btn-new-template {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--anny-light-pink);
  color: var(--anny-burgundy);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.65rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  margin-top: 1rem;
  transition: background 0.15s ease;
}

.btn-new-template:hover {
  background: var(--anny-pink);
}

/* WhatsApp Bubble Preview in Modal */
.whatsapp-bubble-preview-box {
  background: #EFEAE2;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.whatsapp-bubble-inner {
  background: #FFFFFF;
  padding: 0.85rem 1rem;
  border-radius: 10px 10px 10px 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: pre-wrap;
  color: #111b21;
}

.whatsapp-bubble-time {
  text-align: right;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  color: #667781;
}

/* Modals */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(53, 24, 31, 0.45);
  backdrop-filter: blur(4px);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 1.75rem;
  box-shadow: var(--shadow-modal);
  border: 1px solid var(--border);
}

.modal-header-styled {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.modal-header-styled h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--anny-burgundy);
  margin: 0;
}

.btn-close-modal {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 0.2rem 0.5rem;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--anny-text-muted);
}

.modal-subtext {
  font-size: 0.85rem;
  color: var(--anny-text-muted);
  margin-bottom: 1.25rem;
}

.modal-btn-row {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
}

.btn-primary {
  background: var(--anny-burgundy);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--anny-burgundy-hover);
}

.btn-outline {
  background: #FFFFFF;
  border-color: var(--anny-pink);
  color: var(--anny-burgundy);
}

.btn-outline:hover {
  background: var(--anny-blush-bg);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--anny-burgundy);
  margin-bottom: 0.4rem;
}

.form-label.required::after {
  content: " *";
  color: var(--danger);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #FFFFFF;
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--anny-burgundy);
  box-shadow: 0 0 0 3px rgba(107, 30, 50, 0.14);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Alert Boxes */
.alert-box-success {
  background: var(--success-light);
  border: 1px solid var(--success-border);
  color: var(--success-text);
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 0.88rem;
}

.alert-box-error {
  background: var(--danger-light);
  border: 1px solid var(--danger-border);
  color: var(--danger-text);
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 0.88rem;
}

/* ==========================================================================
   RESPONSIVENESS & TOUCH TARGET STANDARDS (100% TEST COMPLIANCE)
   ========================================================================== */

@media (max-width: 1280px) {
  .mockup-metrics-row {
    grid-template-columns: repeat(3, 1fr);
  }
  .cockpit-container {
    grid-template-columns: 270px minmax(440px, 1fr) 280px;
    gap: 0.85rem;
  }
}

@media (max-width: 1024px) {
  .cockpit-container {
    grid-template-columns: 1fr 1fr;
  }
  .cockpit-col-right {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }
  .logo-area {
    width: 100%;
    justify-content: space-between;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
    gap: 0.35rem;
    width: 100%;
    overflow: visible;
  }
  .nav-row {
    display: contents;
  }
  .nav-dropdown {
    display: contents;
  }
  .nav-dropdown-btn {
    display: none;
  }
  .nav-dropdown-content {
    display: contents;
  }
  .nav-link {
    width: 100%;
    min-height: 44px;
    padding: 0.35rem 0.2rem;
    font-size: 0.74rem;
    background: #FFFDFE;
    border: 1px solid var(--border);
    white-space: nowrap;
    text-align: center;
    justify-content: center;
    gap: 0.2rem;
  }
  .nav-link:hover,
  .nav-link.active {
    background: var(--anny-burgundy);
    color: #FFFFFF;
    border-color: var(--anny-burgundy);
  }
  .header-profile-block {
    border-left: none;
    padding-left: 0;
    justify-content: flex-end;
  }
  .mockup-metrics-row {
    grid-template-columns: 1fr 1fr;
  }
  .cockpit-container {
    grid-template-columns: 1fr;
  }
  .bottom-dual-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .mockup-metrics-row {
    grid-template-columns: 1fr;
  }
}
