/* ============================================
   Felpuditos App - Design System & Styles
   ============================================ */

/* --- CSS Variables (Design Tokens) --- */
:root {
  --color-bg: #f8f9fa;
  --color-white: #ffffff;
  --color-black: #0a0a0a;
  --color-sidebar-bg: #f4f4f5;
  --color-text-primary: #0a0a0a;
  --color-text-secondary: #717182;
  --color-text-dark: #2c3e50;
  --color-accent: #fac24e;
  --color-accent-light: #efe1bf;
  --color-stroke: #cfcece;
  --color-input-bg: rgba(208, 232, 255, 0.3);
  --color-divider: rgba(0, 0, 0, 0.1);
  --color-divider-thick: rgba(0, 0, 0, 0.15);
  --color-stock-ok: #4ade80;
  --color-stock-medium: #b8860b;
  --color-stock-low: #f40c0c;

  --font-family: 'Uncut Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 100px;
  --radius-sidebar: 8px;

  --shadow-card: 0px 1px 4px rgba(0, 0, 0, 0.03);
  --shadow-order: 0px 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-btn: 0px 1px 4px rgba(0, 0, 0, 0.04);

  --sidebar-width: 305px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

select {
  font-family: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

input[type="number"] {
  font-family: inherit;
}

/* --- App Layout --- */
.app-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* --- Mobile Header --- */
.mobile-header {
  display: none;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  height: 60px;
  align-items: center;
  padding: 0 16px;
  box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.04);
}

.mobile-menu-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  flex-shrink: 0;
}

.mobile-header-brand {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 40px;
}

.mobile-header-logo {
  width: 150px;
  max-width: 100%;
  height: auto;
}

/* --- Sidebar Overlay --- */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 199;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

/* --- Sidebar --- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--color-sidebar-bg);
  border-radius: 0 var(--radius-sidebar) var(--radius-sidebar) 0;
  border-right: 1px solid var(--color-divider);
  z-index: 200;
  display: flex;
  flex-direction: column;
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 18px 14px 20px;
  overflow-y: auto;
}

.sidebar-top {
  display: flex;
  flex-direction: column;
}

.sidebar-logo {
  margin-bottom: 30px;
}

.logo-img {
  width: 266px;
  height: auto;
  object-fit: contain;
}

/* --- Navigation --- */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-primary);
  transition: background-color 0.2s ease;
}

.nav-item:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.nav-item.active {
  background-color: var(--color-accent-light);
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  overflow: hidden;
}

.nav-label {
  white-space: nowrap;
}

.nav-divider {
  height: 1px;
  background: var(--color-divider);
  margin: 10px 0 12px;
}

/* --- Sidebar Bottom (User) --- */
.sidebar-bottom {
  margin-top: auto;
}

.sidebar-divider {
  height: 1px;
  background: var(--color-divider);
  margin-bottom: 18px;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 59px;
  padding: 0 20px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 300px;
  width: 100%;
}

.user-avatar {
  width: 35px;
  height: 35px;
  border-radius: 100px;
  overflow: hidden;
  flex-shrink: 0;
}

.user-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 100px;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-dark);
}

/* --- Main Content --- */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  overflow-y: auto;
  min-height: 100vh;
}

.main-inner {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 1227px;
  margin: 0 auto;
}

.page-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 32px;
}

/* --- Calculator Layout --- */
.calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 663px) minmax(0, 540px);
  gap: 24px;
  align-items: start;
}

/* --- Cards --- */
.config-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-stroke);
  border-radius: var(--radius-lg);
}

/* --- Configuration Card --- */
.config-card {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 24px;
}

/* --- Shipping Buttons --- */
.shipping-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  max-width: 295px;
}

.pill-btn {
  height: 28px;
  border: 1px solid var(--color-black);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-primary);
  background: var(--color-white);
  transition: background-color 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pill-btn.active {
  background: var(--color-accent);
}

.pill-btn:hover:not(.active) {
  background: rgba(0, 0, 0, 0.04);
}

/* --- Config Fields --- */
.config-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.config-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-primary);
  line-height: 21px;
}

.label-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

/* --- Dropdown --- */
.dropdown {
  position: relative;
  width: 100%;
}

.dropdown-select {
  width: 100%;
  height: 36px;
  background: var(--color-input-bg);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  padding: 0 36px 0 13px;
  font-size: 14px;
  color: var(--color-text-dark);
  appearance: none;
  outline: none;
  cursor: pointer;
}

.dropdown-select:focus {
  border-color: var(--color-accent);
}

.dropdown-arrow {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* --- Number Input --- */
.number-input {
  width: 100%;
  height: 36px;
  background: var(--color-input-bg);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  padding: 0 13px;
  font-size: 14px;
  color: var(--color-text-dark);
  outline: none;
}

.number-input:focus {
  border-color: var(--color-accent);
}

/* --- Quantity Buttons --- */
.quantity-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.qty-btn {
  height: 28px;
  border: 1px solid var(--color-black);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-primary);
  background: var(--color-white);
  transition: background-color 0.15s ease;
}

.qty-btn:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* --- Range Slider --- */
.range-slider {
  width: 100%;
  height: 8px;
  appearance: none;
  background: linear-gradient(to right, var(--color-accent) 0%, var(--color-accent) 53%, #e5e7eb 53%, #e5e7eb 100%);
  border-radius: 100px;
  outline: none;
  margin-top: 10px;
}

.range-slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 2px solid var(--color-white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.range-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 2px solid var(--color-white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

/* --- Agregar Button --- */
.btn-agregar {
  background: var(--color-accent);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-btn);
  padding: 14px 58px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-primary);
  line-height: 22.5px;
  text-align: center;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: filter 0.15s;
  align-self: flex-start;
}

.btn-agregar:hover {
  filter: brightness(0.95);
}

/* --- Costs Row --- */
.costs-row {
  display: block;
}

.cost-card {
  padding: 26px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.cost-card--combined {
  box-shadow: var(--shadow-order);
  gap: 0;
}

.cost-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
}

.cost-group {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}

.cost-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 24px;
}

.cost-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cost-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cost-label {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 21px;
}

.cost-value {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-primary);
  line-height: 21px;
}

.cost-divider {
  height: 1px;
  background: var(--color-divider);
}

/* --- Order Card --- */
.order-card {
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 29px;
  min-width: 0;
}

.order-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.order-image-wrapper {
  width: 150px;
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
}

.order-client-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-number {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 33px;
}

.order-divider-thick {
  height: 2px;
  background: var(--color-divider-thick);
}

/* --- Articles --- */
.articles-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 60px 43px 24px;
  gap: 16px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-divider);
}

.articles-col-name {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-primary);
  line-height: 21px;
}

.articles-col-qty {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-primary);
  line-height: 21px;
  text-align: left;
}

.articles-col-price {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-primary);
  line-height: 21px;
  text-align: left;
}

.articles-list {
  display: flex;
  flex-direction: column;
}

/* --- Order Empty State --- */
.order-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  min-height: 61px;
}

.order-empty-text {
  font-size: 14px;
  font-weight: 400;
  color: #717182;
  line-height: 21px;
  text-align: center;
}

.article-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 60px 43px 24px;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

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

.article-desc {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 21px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-qty {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-primary);
  line-height: 21px;
  text-align: left;
}

.article-price {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-primary);
  line-height: 21px;
  text-align: left;
}

.article-delete {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.15s;
}

.article-delete:hover {
  opacity: 1;
}

/* --- Totals Breakdown --- */
.totals-breakdown {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.total-label {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 21px;
}

.total-value {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-primary);
  line-height: 21px;
}

/* --- Grand Total --- */
.grand-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
}

.grand-total-label {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-dark);
  line-height: 27px;
}

.grand-total-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 54px;
}

.average-sticker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}

.average-sticker-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  line-height: 21px;
}

.average-sticker-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 27px;
}

/* --- Action Buttons --- */
.action-buttons {
  display: flex;
  gap: 14px;
}

.btn-primary {
  flex: 1;
  height: 52px;
  background: var(--color-accent);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-btn);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: filter 0.15s;
}

.btn-primary:hover {
  filter: brightness(0.95);
}

.btn-secondary {
  flex: 1;
  height: 52px;
  background: var(--color-white);
  border: 1px solid var(--color-divider-thick);
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.15s;
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.02);
}

/* --- Vinyl Section --- */
.vinyl-section {
  border-top: 1px solid var(--color-divider);
  padding-top: 21px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.vinyl-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 19.5px;
}

.vinyl-cards {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.vinyl-cards::-webkit-scrollbar {
  display: none;
}

.vinyl-card {
  background: #ebebeb;
  width: 135px;
  flex-shrink: 0;
  padding: 12px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.vinyl-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-primary);
  line-height: 18px;
  text-align: center;
}

.vinyl-sheets {
  font-size: 11px;
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 16.5px;
  text-align: center;
}

.vinyl-stock {
  font-size: 10px;
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 15px;
  text-align: center;
}

.vinyl-card.stock-ok .vinyl-stock {
  color: var(--color-stock-ok);
}

.vinyl-card.stock-medium .vinyl-stock {
  color: var(--color-stock-medium);
}

.vinyl-card.stock-low .vinyl-stock {
  color: var(--color-stock-low);
}

/* --- Profit Section --- */
.profit-section {
  border-top: 1px solid var(--color-divider);
  padding-top: 33px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profit-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.profit-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--color-text-dark);
  background: transparent;
  border: none;
  padding: 0;
  line-height: 1;
}

.profit-toggle {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-dark);
  text-decoration: underline;
  cursor: pointer;
}

.profit-eye-icon {
  color: var(--color-text-dark);
  flex-shrink: 0;
}

.profit-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.profit-cards.is-hidden {
  display: none;
}

.profit-card {
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 18px 21px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.profit-avatar-wrapper {
  position: relative;
  width: 67px;
  height: 67px;
}

.profit-avatar-bg {
  position: absolute;
  inset: 0;
  border-radius: 100px;
}

.profit-avatar-img {
  position: absolute;
  inset: 0;
  width: 67px;
  height: 67px;
  border-radius: 100px;
  object-fit: cover;
}

.profit-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-dark);
  line-height: 20px;
  text-align: center;
}

.profit-percent {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 20px;
  text-align: center;
  white-space: nowrap;
}

.profit-amount {
  font-size: 24px;
  font-weight: 400;
  color: var(--color-text-dark);
  line-height: 24px;
  text-align: center;
}

/* ============================================
   Page Content Switching
   ============================================ */
.page-content {
  display: none;
}

.page-content.active {
  display: block;
}

/* ============================================
   Pedidos Page
   ============================================ */

.pedidos-main-inner {
  max-width: 1210px;
  gap: 16px;
}

.pedidos-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: var(--color-white);
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.1);
  overflow-x: auto;
}

.pedidos-filter-btn {
  height: 41px;
  padding: 0 16px;
  border-radius: 50px;
  background: #f8f8f8;
  color: #717182;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  transition: filter 0.15s, background-color 0.15s, color 0.15s;
}

.pedidos-filter-btn.active {
  background: var(--color-accent);
  color: var(--color-text-primary);
}

.pedidos-filter-btn:hover:not(.active) {
  filter: brightness(0.98);
}

.pedidos-table-card {
  background: var(--color-white);
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.1);
  overflow: visible;
}

.pedidos-search-row {
  padding: 16px;
  border-bottom: 1px solid #e5e5e5;
}

.pedidos-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  padding: 0 12px;
  color: #9ca3af;
}

.pedidos-search:focus-within {
  border-color: #d4d4d8;
  color: #717182;
}

.pedidos-search-input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  color: var(--color-text-primary);
  font-size: 15px;
  font-weight: 400;
}

.pedidos-search-input::placeholder {
  color: #9ca3af;
}

.pedidos-table-wrap {
  overflow-x: auto;
}

.pedidos-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.pedidos-table th {
  background: #fafafa;
  border-bottom: 1px solid #e5e5e5;
  color: var(--color-text-primary);
  font-size: 14px;
  font-weight: 600;
  line-height: 21px;
  text-align: left;
  padding: 16px 24px;
  white-space: nowrap;
}

.pedidos-table td {
  border-bottom: 1px solid #e5e5e5;
  color: var(--color-text-primary);
  font-size: 15px;
  font-weight: 400;
  line-height: 22.5px;
  padding: 24px;
  white-space: nowrap;
  vertical-align: middle;
}

.pedidos-table tbody tr:last-child td {
  border-bottom: none;
}

.pedidos-order-id {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.pedidos-muted {
  color: var(--color-text-secondary);
}

.pedidos-delivery {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 21px;
}

.pedidos-delivery svg {
  flex-shrink: 0;
}

.pedidos-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 500;
  line-height: 19.5px;
}

.pedidos-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.pedidos-status-dropdown {
  position: relative;
  display: inline-flex;
}

.pedidos-status-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
}

.pedidos-status-chevron {
  color: var(--color-text-secondary);
  transition: transform 0.15s ease;
}

.pedidos-status-dropdown.open .pedidos-status-chevron {
  transform: rotate(180deg);
}

.pedidos-status-menu {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 40;
  min-width: 170px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: var(--color-white);
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.12);
  padding: 6px;
  flex-direction: column;
  gap: 4px;
}

.pedidos-status-dropdown.open .pedidos-status-menu {
  display: flex;
}

.pedidos-status-option {
  width: 100%;
  border-radius: 8px;
  padding: 4px;
  display: flex;
  justify-content: flex-start;
}

.pedidos-status-option .pedidos-status {
  width: 100%;
  justify-content: flex-start;
}

.pedidos-status-option:hover,
.pedidos-status-option.active {
  background: rgba(0, 0, 0, 0.04);
}

.pedidos-status--completado {
  background: #dcfce7;
  color: #166534;
}

.pedidos-status--completado .pedidos-status-dot {
  background: #22c55e;
}

.pedidos-status--proceso {
  background: #dbeafe;
  color: #1d4ed8;
}

.pedidos-status--proceso .pedidos-status-dot {
  background: #3b82f6;
}

.pedidos-status--pendiente {
  background: #fef3c7;
  color: #92400e;
}

.pedidos-status--pendiente .pedidos-status-dot {
  background: #f59e0b;
}

.pedidos-status--cancelado {
  background: #fee2e2;
  color: #991b1b;
}

.pedidos-status--cancelado .pedidos-status-dot {
  background: #ef4444;
}

.pedidos-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pedidos-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  transition: filter 0.15s;
}

.pedidos-action-btn:hover {
  filter: brightness(0.98);
}

.pedidos-action-btn svg {
  flex-shrink: 0;
}

.pedidos-action-btn--view {
  background: #f8f8f8;
  color: #4a4a5e;
}

.pedidos-action-btn--download {
  background: var(--color-accent);
  color: var(--color-text-primary);
  min-width: 122px;
  justify-content: center;
}

.pedidos-empty {
  padding: 28px 24px;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 14px;
}

/* ============================================
   Settings / Configuracion Page
   ============================================ */

.settings-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-header .page-title {
  display: block;
}

.settings-subtitle {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 20px;
}

/* --- Settings Tabs --- */
.settings-tabs {
  display: flex;
  background: var(--color-white);
  border-radius: 16px;
  padding: 6px;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.1);
}

.settings-tab {
  flex: 1;
  height: 49px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

.settings-tab.active {
  background: var(--color-accent);
  color: var(--color-text-primary);
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.1);
}

.settings-tab:hover:not(.active) {
  background: rgba(0, 0, 0, 0.03);
}

.settings-tab svg {
  flex-shrink: 0;
}

/* --- Settings Card --- */
.settings-card {
  background: var(--color-white);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.settings-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.settings-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(250, 194, 78, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-text-primary);
}

.settings-card-title-group {
  display: flex;
  flex-direction: column;
}

.settings-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 24px;
}

.settings-card-desc {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 16px;
}

/* --- Sticker Type Toggle --- */
.sticker-type-toggle {
  display: flex;
  background: #f3f7fd;
  border-radius: 30px;
  padding: 6px;
}

.sticker-type-btn {
  flex: 1;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: #3e3e4c;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sticker-type-btn.active {
  background: rgba(250, 194, 78, 0.6);
  border: 1px solid var(--color-accent);
  color: #010101;
}

.sticker-type-btn:hover:not(.active) {
  background: rgba(0, 0, 0, 0.04);
}

/* --- Sizes Grid --- */
.sizes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}

.size-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.size-input-group {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 52px;
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 0 14px;
  width: 90px;
  flex-shrink: 0;
}

.size-input-group.size-input-wide {
  flex: 1;
  width: auto;
}

.size-cm-input,
.size-stickers-input {
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-primary);
  width: 100%;
  line-height: 22px;
}

.size-cm-input::-webkit-inner-spin-button,
.size-stickers-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.size-unit {
  font-size: 14px;
  color: #9494a1;
  white-space: nowrap;
  flex-shrink: 0;
}

.size-unit-sm {
  font-size: 13px;
  color: #9494a1;
  white-space: nowrap;
  flex-shrink: 0;
}

.size-equals {
  font-size: 16px;
  color: #9494a1;
  flex-shrink: 0;
}

.size-delete-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.15s;
  cursor: pointer;
}

.size-delete-btn:hover {
  opacity: 1;
}

/* --- Acabados & Envio Rows --- */
.acabados-list,
.envio-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.acabado-row,
.envio-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

.acabado-field,
.envio-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.acabado-field-cost,
.envio-field-cost {
  flex: 0 0 160px;
}

.acabado-label {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 16px;
}

.acabado-input {
  height: 52px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text-primary);
  background: var(--color-white);
  outline: none;
  width: 100%;
}

.acabado-input:focus {
  border-color: var(--color-accent);
}

.acabado-cost-input {
  display: flex;
  align-items: center;
  height: 52px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 0 14px;
  background: var(--color-white);
  gap: 4px;
}

.acabado-currency {
  font-size: 15px;
  color: #9494a1;
  flex-shrink: 0;
}

.acabado-price {
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-primary);
  width: 100%;
}

.acabado-price::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.acabado-delete-btn {
  width: 44px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.15s;
  cursor: pointer;
}

.acabado-delete-btn:hover {
  opacity: 1;
}

/* --- Settings Tab Content --- */
.settings-tab-content {
  display: none;
}

.settings-tab-content.active {
  display: contents;
}

/* --- Ganancias Tab Styles --- */
.ganancias-header-card {
  padding: 24px;
}

.ganancias-investors-card {
  padding: 24px;
  gap: 24px;
}

.ganancias-investors-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.ganancias-investor-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ganancias-investor-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ganancias-investor-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-text-primary);
}

.ganancias-investor-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 3px;
}

.ganancias-investor-name {
  font-size: 16px;
  font-weight: 600;
  color: rgba(10, 10, 10, 0.5);
  line-height: 22px;
  border-bottom: 2px solid transparent;
}

.ganancias-investor-label {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 16px;
}

.ganancias-investor-percent {
  display: flex;
  align-items: baseline;
  gap: 2px;
  flex-shrink: 0;
}

.ganancias-percent-value {
  font-size: 36px;
  font-weight: 600;
  line-height: 40px;
  font-family: 'Uncut Sans', sans-serif;
}

.ganancias-percent-symbol {
  font-size: 20px;
  font-weight: 400;
  line-height: 30px;
}

.ganancias-investor-delete {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.15s;
  cursor: pointer;
}

.ganancias-investor-delete:hover {
  opacity: 1;
}

/* Slider Area */
.ganancias-slider-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Custom Range Slider */
.ganancias-range-slider {
  width: 100%;
  height: 10px;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 9999px;
  outline: none;
  cursor: pointer;
  background: linear-gradient(to right,
      var(--slider-color) 0%,
      var(--slider-color) 50%,
      #fef9ed 50%,
      #fef9ed 100%);
}

.ganancias-range-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--slider-color);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.ganancias-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.ganancias-range-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--slider-color);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

/* Percentage Input Box */
.ganancias-input-box {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  width: 200px;
  padding: 0 16px;
  background: var(--color-white);
  border: 2px solid #b8860b;
  border-radius: 12px;
}

.ganancias-percent-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Uncut Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  width: 100%;
}

.ganancias-percent-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ganancias-percent-input::-moz-inner-spin-button {
  -moz-appearance: none;
  margin: 0;
}

.ganancias-input-symbol {
  font-family: 'Uncut Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  flex-shrink: 0;
}

/* Divider between investors */
.ganancias-investor-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin-top: 0;
}

/* Total Distribution Card */
.ganancias-total-card {
  background: linear-gradient(to bottom, #dcfce7, #bbf7d0);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ganancias-total-card.warning {
  background: linear-gradient(to bottom, #fef3cd, #fde68a);
}

.ganancias-total-card.error {
  background: linear-gradient(to bottom, #fee2e2, #fecaca);
}

.ganancias-total-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ganancias-total-label {
  font-family: 'Uncut Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #14532d;
  line-height: 18px;
}

.ganancias-total-value-wrapper {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.ganancias-total-number {
  font-family: 'Uncut Sans', sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: #14532d;
  line-height: 32px;
}

.ganancias-total-percent {
  font-size: 18px;
  font-weight: 400;
  color: #14532d;
  line-height: 27px;
}

.ganancias-total-status {
  font-size: 12px;
  font-weight: 400;
  color: #15803d;
  line-height: 14px;
}

.ganancias-total-card.warning .ganancias-total-label,
.ganancias-total-card.warning .ganancias-total-number,
.ganancias-total-card.warning .ganancias-total-percent {
  color: #92400e;
}

.ganancias-total-card.warning .ganancias-total-status {
  color: #b45309;
}

.ganancias-total-card.error .ganancias-total-label,
.ganancias-total-card.error .ganancias-total-number,
.ganancias-total-card.error .ganancias-total-percent {
  color: #991b1b;
}

.ganancias-total-card.error .ganancias-total-status {
  color: #dc2626;
}

/* ============================================
   Costos Config Tab Styles
   ============================================ */

/* --- Costos Card --- */
.costos-card {
  background: var(--color-white);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --- Card Header --- */
.costos-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.costos-card__header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.costos-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.costos-card__icon--gold {
  background: rgba(250, 194, 78, 0.15);
  color: #b8860b;
}

.costos-card__icon--grey {
  background: rgba(113, 113, 130, 0.1);
  color: #717182;
}

.costos-card__title-group {
  display: flex;
  flex-direction: column;
}

.costos-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 24px;
}

.costos-card__subtitle {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 16px;
}

/* --- Total Display --- */
.costos-card__total {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

.costos-card__total-label {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 14px;
  text-align: right;
}

.costos-card__total--gold .costos-card__total-value {
  font-size: 20px;
  font-weight: 600;
  color: #b8860b;
  line-height: 24px;
  text-align: right;
  font-family: 'Uncut Sans', sans-serif;
}

.costos-card__total--grey .costos-card__total-value {
  font-size: 20px;
  font-weight: 600;
  color: #4a4a5e;
  line-height: 24px;
  text-align: right;
  font-family: 'Uncut Sans', sans-serif;
}

/* --- Items Container --- */
.costos-card__items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* --- Cost Item (single entry card) --- */
.costos-item {
  border-radius: 14px;
  padding: 19px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid transparent;
}

.costos-item--gold {
  background: #fef9ed;
  border-color: rgba(250, 194, 78, 0.2);
}

.costos-item--grey {
  background: #f8f8f8;
  border-color: rgba(113, 113, 130, 0.15);
}

/* --- Field Layout --- */
.costos-item__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.costos-item__field--grow {
  flex: 1;
}

.costos-item__field-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

/* --- Labels --- */
.costos-item__label {
  font-size: 13px;
  font-weight: 500;
  line-height: 14px;
  font-family: 'Uncut Sans', sans-serif;
}

.costos-item__label--gold {
  color: #6b5416;
}

.costos-item__label--grey {
  color: #4a4a5e;
}

/* --- Input Wrap --- */
.costos-item__input-wrap {
  background: var(--color-white);
  border-radius: 12px;
  height: 50px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.costos-item__input-wrap--money {
  gap: 8px;
}

/* --- Text Input --- */
.costos-item__text-input {
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Uncut Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: rgba(10, 10, 10, 0.5);
  width: 100%;
  line-height: normal;
}

.costos-item__text-input:focus {
  color: var(--color-text-primary);
}

/* --- Currency Symbol --- */
.costos-item__currency {
  font-family: 'Uncut Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-secondary);
  flex-shrink: 0;
  line-height: 24px;
}

/* --- Number Input --- */
.costos-item__number-input {
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Uncut Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: rgba(10, 10, 10, 0.5);
  width: 100%;
  line-height: normal;
}

.costos-item__number-input:focus {
  color: var(--color-text-primary);
}

.costos-item__number-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.costos-item__number-input::-moz-inner-spin-button {
  -moz-appearance: none;
  margin: 0;
}

/* --- Delete Button --- */
.costos-item__delete {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.15s;
  cursor: pointer;
}

.costos-item__delete:hover {
  opacity: 1;
}

/* --- Add Cost Button --- */
.costos-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  width: 100%;
  border-radius: 12px;
  font-family: 'Uncut Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.costos-add-btn--gold {
  background: #fef9ed;
  color: #b8860b;
  border-color: rgba(250, 194, 78, 0.4);
}

.costos-add-btn--gold:hover {
  background: #fdf0d5;
}

.costos-add-btn--grey {
  background: #f8f8f8;
  color: #4a4a5e;
  border-color: rgba(113, 113, 130, 0.3);
}

.costos-add-btn--grey:hover {
  background: #efefef;
}

/* --- Add Button (generic, kept for backward compat) --- */
.settings-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  width: 100%;
  background: #f3f7fd;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background 0.15s;
}

.settings-add-btn:hover {
  background: #e8eef5;
}

/* --- Settings Footer --- */
.settings-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding-top: 8px;
}

.settings-cancel-btn {
  height: 44px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s;
}

.settings-cancel-btn:hover {
  background: rgba(0, 0, 0, 0.04);
}

.settings-save-btn {
  height: 44px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
  background: var(--color-accent);
  cursor: pointer;
  transition: filter 0.15s;
  box-shadow: var(--shadow-btn);
}

.settings-save-btn:hover {
  filter: brightness(0.95);
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet: <= 1024px */
@media (max-width: 1024px) {
  .calculator-layout {
    grid-template-columns: 1fr;
  }

  .order-card {
    padding: 24px;
  }
}

/* Mobile: <= 768px */
@media (max-width: 768px) {
  .app-layout {
    flex-direction: column;
  }

  .mobile-header {
    display: flex;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .main-inner {
    padding: 16px;
    gap: 16px;
  }

  .pedidos-filters {
    padding: 10px;
    gap: 6px;
  }

  .pedidos-filter-btn {
    height: 36px;
    font-size: 13px;
    padding: 0 12px;
  }

  .pedidos-search-row {
    padding: 12px;
  }

  .pedidos-search {
    height: 44px;
  }

  .pedidos-search-input {
    font-size: 14px;
  }

  .pedidos-table {
    min-width: 820px;
  }

  .pedidos-table th,
  .pedidos-table td {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-title {
    display: none;
  }

  .calculator-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .calculator-layout > * {
    min-width: 0;
  }

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

  .costs-row {
    display: none;
  }

  .shipping-buttons {
    max-width: 100%;
  }

  /* Order card mobile adjustments */
  .order-card {
    padding: 24px;
    box-shadow: var(--shadow-order);
    gap: 16px;
  }

  .order-number {
    font-size: 22px;
  }

  .articles-header {
    display: none;
  }

  .article-row {
    flex-wrap: wrap;
    height: auto;
    gap: 4px;
  }

  .article-desc {
    width: 100%;
    white-space: normal;
  }

  .article-qty {
    width: auto;
  }

  .action-buttons {
    flex-direction: column;
    gap: 14px;
  }

  .btn-primary,
  .btn-secondary {
    flex: none;
    width: 100%;
    height: 50px;
    min-height: 50px;
    font-size: 15px;
    font-weight: 500;
    line-height: 22.5px;
    border-radius: var(--radius-pill);
  }

  .btn-primary {
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.06);
  }

  .btn-secondary {
    border: 1.1px solid rgba(0, 0, 0, 0.15);
  }

  .profit-cards {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    overflow-x: auto;
  }

  .profit-avatar-wrapper {
    width: 56px;
    height: 56px;
  }

  .profit-avatar-img {
    width: 56px;
    height: 56px;
  }

  .profit-amount {
    font-size: 20px;
  }

  .grand-total-value {
    font-size: 36px;
  }

  /* Settings page mobile */
  .settings-header .page-title {
    display: block;
    font-size: 20px;
  }

  .settings-tabs {
    border-radius: 12px;
  }

  .settings-tab {
    height: 42px;
    font-size: 13px;
    gap: 6px;
    border-radius: 8px;
  }

  .settings-tab svg {
    width: 16px;
    height: 16px;
  }

  .settings-card {
    padding: 18px;
    gap: 16px;
  }

  .sizes-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .size-input-group {
    height: 46px;
    width: 76px;
    padding: 0 12px;
  }

  .size-input-group.size-input-wide {
    width: auto;
  }

  .size-cm-input,
  .size-stickers-input {
    font-size: 15px;
  }

  .acabado-row,
  .envio-row {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .acabado-field-cost,
  .envio-field-cost {
    flex: 0 0 130px;
  }

  .acabado-input,
  .acabado-cost-input {
    height: 46px;
  }

  .settings-footer {
    flex-direction: column-reverse;
    gap: 10px;
  }

  .settings-cancel-btn,
  .settings-save-btn {
    width: 100%;
    height: 48px;
  }
}

/* Small mobile: <= 393px */
@media (max-width: 393px) {
  .main-inner {
    padding: 16px;
  }

  .config-card {
    padding: 21px;
  }

  .cost-card {
    padding: 21px;
  }

  .order-card {
    padding: 24px;
  }
}
