:root {
  --bg-top: #f6f2ea;
  --bg-bottom: #f2efe6;
  --ink-strong: #112431;
  --ink: #2d4251;
  --line: #d7d8d3;
  --brand: #d65a31;
  --brand-dark: #b74622;
  --panel: rgba(255, 255, 255, 0.86);
  --shadow: 0 18px 42px rgba(17, 36, 49, 0.1);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

body:not(.auth-ready) .background-shapes,
body:not(.auth-ready) .app,
body:not(.auth-ready) .edit-overlay {
  visibility: hidden;
}

html.pre-authenticated body:not(.auth-ready) .auth-overlay {
  opacity: 0;
  pointer-events: none;
}

body.modal-open {
  overflow: hidden;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  background:
    linear-gradient(rgba(18, 30, 40, 0.62), rgba(18, 30, 40, 0.62)),
    url("https://www.mallorca-services.es/wp-content/uploads/Abbacino-Corner-El-Corte-Ingles.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: grid;
  place-items: center;
  padding: 14px;
}

.auth-overlay:not(.hidden)~.background-shapes,
.auth-overlay:not(.hidden)~.app,
.auth-overlay:not(.hidden)~.edit-overlay,
.auth-overlay:not(.hidden)~.camera-overlay {
  display: none;
}

.auth-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 16px;
  border: 1px solid #cdd1c7;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.23);
  padding: 16px;
}

.auth-card h2 {
  margin: 0 0 4px;
}

.auth-card p {
  margin: 0 0 12px;
}

.remember-row {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.9rem;
  margin: 8px 0 12px;
}

.auth-error {
  margin-top: 9px;
  color: #8e1e10;
  font-weight: 700;
  font-size: 0.86rem;
}

.auth-lock {
  margin-top: 8px;
  margin-bottom: 0;
  color: #714100;
  font-weight: 700;
  font-size: 0.86rem;
}

.background-shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.background-shapes span {
  position: absolute;
  border-radius: 999px;
  filter: blur(0.5px);
  opacity: 0.38;
}

.background-shapes span:nth-child(1) {
  width: 420px;
  height: 420px;
  background: #f9c784;
  top: -130px;
  right: -70px;
}

.background-shapes span:nth-child(2) {
  width: 300px;
  height: 300px;
  background: #f8b195;
  bottom: 12%;
  left: -120px;
}

.background-shapes span:nth-child(3) {
  width: 260px;
  height: 260px;
  background: #9ad1d4;
  top: 40%;
  right: 8%;
}

.app {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 22px 34px;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3.2vw, 2.45rem);
  color: var(--ink-strong);
}

.subtitle {
  margin: 6px 0 0;
  max-width: 62ch;
}

.hero-stats {
  display: flex;
  gap: 12px;
}

.hero-side {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.brand-logo-card {
  width: 172px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  box-shadow: var(--shadow);
}

.brand-logo-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-stats article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  min-width: 120px;
  padding: 10px 14px;
  box-shadow: var(--shadow);
}

.hero-stats strong {
  display: block;
  font-size: 1.45rem;
  color: var(--ink-strong);
}

.hero-stats span {
  font-size: 0.88rem;
}

.toolbar,
.import-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
}

.tools-panel {
  margin-bottom: 12px;
}

.tools-panel .import-row {
  margin-bottom: 0;
  border: none;
  border-top: 1px solid #e3e2da;
  border-radius: 0;
  box-shadow: none;
}

.manual-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  align-items: flex-end;
}

.manual-panel {
  margin-bottom: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.manual-panel summary {
  cursor: pointer;
  font-weight: 700;
  padding: 12px 14px;
  list-style: none;
}

.manual-panel summary::-webkit-details-marker {
  display: none;
}

.manual-panel summary::after {
  content: " +";
  float: right;
}

.manual-panel[open] summary::after {
  content: " -";
}

.camera-trigger {
  align-self: flex-end;
  min-height: 42px;
}

.type-chips-scroll {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding: 4px 0 16px;
  margin-bottom: 4px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.type-chips-scroll::-webkit-scrollbar {
  display: none;
}

.type-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #2b4a60;
  border: 1px solid rgba(201, 211, 215, 0.5);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.type-chip:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.type-chip.active {
  background: #285c7f;
  border-color: #285c7f;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(40, 92, 127, 0.2);
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-container input {
  padding-right: 50px !important;
  width: 100%;
  height: 48px;
  font-size: 1.05rem;
  border-radius: 12px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.scan-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  bottom: 50%;
  margin-top: -18px;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: white;
  box-shadow: 0 2px 6px rgba(214, 90, 49, 0.3);
}

.scan-btn:hover {
  transform: scale(1.05);
  background: var(--brand-dark);
}

.type-chip.active {
  background: #285c7f;
  border-color: #285c7f;
  color: #fff;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 170px;
}

.sort-field {
  flex: 1 1 180px;
}

.sort-field select {
  height: 48px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 12px;
}

.field.compact {
  min-width: 145px;
}

.field.grow {
  flex: 1 1 300px;
}

.field span {
  font-size: 0.78rem;
  font-weight: 600;
}

.toolbar-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  min-height: 44px;
  padding: 0 14px;
}

body.clean-reference-mode .hero .subtitle,
body.clean-reference-mode .manual-panel,
body.clean-reference-mode .import-row,
body.clean-reference-mode .type-chips,
body.clean-reference-mode .toolbar .field:not(.grow) {
  display: none;
}

body.clean-reference-mode .toolbar {
  justify-content: space-between;
  align-items: flex-end;
}

body.clean-reference-mode .toolbar .field.grow {
  flex: 1 1 420px;
}

input,
select,
textarea,
button {
  font: inherit;
}

input[type="text"],
input[type="search"],
input[type="date"],
select,
textarea {
  border: 1px solid #c5c6bf;
  background: #fff;
  color: var(--ink-strong);
  border-radius: 10px;
  padding: 9px 10px;
}

textarea {
  resize: vertical;
  min-height: 72px;
}

button {
  border: none;
  border-radius: 11px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  padding: 11px 14px;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.12s ease;
}

button:hover {
  transform: translateY(-1px);
  background: var(--brand-dark);
}

button:active {
  transform: translateY(0);
}

button.secondary {
  background: #285c7f;
}

button.secondary:hover {
  background: #1f4a66;
}

button.ghost {
  background: #ece9df;
  color: #274053;
}

button.ghost:hover {
  background: #ded9ca;
}

.small-btn {
  padding: 8px 11px;
  font-size: 0.82rem;
}

.file-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  border-radius: 11px;
  border: 1px dashed #9ea39b;
  background: #faf9f5;
  color: #31495a;
  padding: 10px 12px;
  font-weight: 600;
  cursor: pointer;
}

.file-btn input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.mini-file-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  border: 1px dashed #b4b8ae;
  background: #f8f7f2;
  color: #375263;
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.mini-file-btn input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.status {
  margin-bottom: 12px;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid #5a7f8f;
  background: #d9edf2;
  color: #1f4a66;
  font-weight: 600;
}

.status.error {
  border-color: #ab2e1d;
  background: #fbe1dc;
  color: #7a1a0f;
}

.hidden {
  display: none !important;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.9fr);
  gap: 14px;
}

.mobile-switcher {
  display: none;
  margin-bottom: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  gap: 8px;
}

.mobile-switcher button {
  flex: 1;
  background: #ece8dc;
  color: #2f4a5a;
}

.mobile-switcher button.active {
  background: #285c7f;
  color: #fff;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

h2 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--ink-strong);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(188px, 1fr));
  gap: 11px;
}

.catalog-grid.clean-view {
  grid-template-columns: 1fr;
  gap: 8px;
}

.card {
  background: #fff;
  border: 1px solid #d4d6cf;
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 220px;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-head .card-ref {
  flex: 1;
}

.card-edit-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  padding: 0;
  background: #ece8dc;
  color: #2d4758;
  font-size: 1.1rem;
  line-height: 1;
}

.card-edit-btn:hover {
  background: #ded9ca;
}

.card-thumb {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: linear-gradient(135deg, #f1f0ea, #e8e7e2);
  border: 1px solid #dfdacc;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #6e6a57;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  image-orientation: from-image;
  padding: 0;
  display: block;
}

.photo-tools {
  display: flex;
  gap: 7px;
}

.photo-tools .mini-file-btn {
  flex: 1;
}

.mini-camera-btn {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 0.78rem;
  border-radius: 9px;
}

.catalog-grid.clean-view .card {
  gap: 7px;
}

.catalog-grid.clean-view .card-thumb {
  display: none;
}

.catalog-grid.clean-view .card-tags,
.catalog-grid.clean-view .source-meta,
.catalog-grid.clean-view .mini-file-btn {
  display: none;
}

.clean-ref-row {
  background: #fff;
  border: 1px solid #d4d6cf;
  border-radius: 12px;
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 228px);
  gap: 10px;
  align-items: center;
}

.clean-ref-main {
  min-width: 0;
}

.clean-ref-main .card-ref {
  margin: 0;
}

.clean-ref-main .card-price {
  margin-top: 5px;
}

.clean-ref-row .qty-controls {
  margin-top: 0;
}

.card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.tag.type {
  background: #dbe9ef;
  color: #1f4a66;
}

.tag.subtype {
  background: #efe7dc;
  color: #5a4531;
}

.card-ref {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-strong);
  word-break: break-all;
}

.card-name {
  margin: 0;
  color: #3d5667;
  line-height: 1.35;
  font-size: 0.9rem;
  min-height: 2.4em;
}

.card-price {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #233f51;
}

.meta {
  margin: 0;
  font-size: 0.75rem;
  color: #6b7379;
}

.meta-stock {
  color: #204b65;
  font-weight: 700;
}

.meta-note {
  color: #4d4f46;
  font-style: italic;
}

.qty-controls {
  display: grid;
  grid-template-columns: 54px minmax(70px, 1fr) 54px;
  gap: 6px;
  align-items: center;
  margin-top: auto;
}

.qty-btn {
  border-radius: 9px;
  padding: 10px 0;
  font-size: 1.28rem;
  line-height: 1;
}

.qty-input {
  text-align: center;
  font-weight: 700;
  border-radius: 9px;
  min-width: 0;
  width: 100%;
  font-size: 1.25rem;
  padding: 10px 8px;
}

.empty-card,
.empty-order {
  border: 1px dashed #a7aa9f;
  border-radius: 12px;
  padding: 14px;
  background: #f8f7f2;
  color: #556673;
}

.order-panel {
  position: sticky;
  top: 12px;
  align-self: start;
}

.order-list {
  margin-top: 10px;
  max-height: 52vh;
  overflow: auto;
  border: 1px solid #d6d5cd;
  border-radius: 12px;
  background: #fff;
}

.label-maker {
  margin-top: 10px;
  margin-bottom: 2px;
  border: 1px solid #d7d8d1;
  border-radius: 12px;
  background: #fbfaf7;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.label-maker h3,
.order-history-section h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #1f3a4b;
}

.order-history-section {
  margin-top: 10px;
  margin-bottom: 2px;
  border: 1px solid #d7d8d1;
  border-radius: 12px;
  background: #fdfcf9;
  padding: 14px;
  display: grid;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.sticker-sheets {
  display: grid;
  gap: 8px;
}

.sticker-sheet {
  border: 1px solid #e1dfd5;
  border-radius: 10px;
  background: #fff;
  padding: 8px;
  display: grid;
  gap: 8px;
}

.sticker-sheet h4 {
  margin: 0;
  font-size: 0.92rem;
  color: #2a4759;
}

.sticker-sheet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.sticker-field {
  min-width: 0;
}

.label-maker-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.order-table {
  width: 100%;
  border-collapse: collapse;
}

.order-table th,
.order-table td {
  padding: 8px 8px;
  border-bottom: 1px solid #ecebe4;
  text-align: left;
  font-size: 0.86rem;
}

.order-table th {
  position: sticky;
  top: 0;
  background: #f5f4ee;
  z-index: 1;
}

.order-table .qty-cell input {
  width: 74px;
  text-align: center;
  padding: 6px 8px;
}

.remove-btn {
  background: #eee5d7;
  color: #4d4f46;
  padding: 6px 8px;
  font-size: 0.78rem;
}

.remove-btn:hover {
  background: #e3d6bf;
}

.order-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.quick-backup {
  margin-top: 10px;
  border: 1px solid #d7d8d1;
  border-radius: 12px;
  background: #fbfaf7;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.quick-backup h3 {
  margin: 0;
  font-size: 1rem;
  color: #1f3a4b;
}

.quick-backup .meta {
  margin: 0;
  font-size: 0.8rem;
}

.quick-backup-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.edit-overlay {
  position: fixed;
  inset: 0;
  z-index: 18;
  background: rgba(21, 34, 45, 0.55);
  display: grid;
  place-items: center;
  padding: 14px;
}

.edit-overlay.hidden {
  display: none !important;
}

.edit-card {
  width: min(540px, 100%);
  max-height: calc(100vh - 28px);
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #ccd1c7;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.25);
  padding: 14px;
}

.edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.camera-overlay {
  position: fixed;
  inset: 0;
  z-index: 22;
  background: rgba(16, 27, 36, 0.85);
  display: grid;
  place-items: center;
  padding: 14px;
}

.camera-overlay.hidden {
  display: none !important;
}

.camera-card,
.scanner-card,
.history-card,
.cropper-card {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 14px;
  border: 1px solid #cad0c6;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  padding: 14px;
}

.cropper-container-wrapper {
  width: 100%;
  max-height: 50vh;
  margin: 10px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f7f9fa;
  border-radius: 8px;
  overflow: hidden;
}

.cropper-container-wrapper img {
  display: block;
  max-width: 100%;
}

.mt-3 {
  margin-top: 15px;
}

.full-btn {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
}

.scanner-reader {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #c8d0d3;
  background: #111f29;
  min-height: 250px;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  max-height: 50vh;
  overflow-y: auto;
  padding-right: 5px;
}

.history-item {
  background: #fdfdfa;
  border: 1px solid #e1e4dc;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.history-item-title {
  font-weight: 700;
  color: #1a3240;
  margin: 0;
}

.history-item-date {
  font-size: 0.8rem;
  color: #6b7379;
}

.empty-msg {
  color: #79858c;
  font-style: italic;
  font-size: 0.95rem;
  text-align: center;
  padding: 20px 0;
}

.camera-help {
  margin: 0 0 9px;
  color: #425a6b;
  font-size: 0.88rem;
}

.camera-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #c8d0d3;
  background: #111f29;
}

.camera-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.camera-guide {
  position: absolute;
  inset: 8%;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 16px;
  box-shadow: 0 0 0 999px rgba(17, 24, 30, 0.3) inset;
  pointer-events: none;
}

.camera-status {
  margin: 10px 0 0;
  color: #24475d;
  font-size: 0.85rem;
  font-weight: 600;
}

.camera-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.scroll-top-btn {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 11;
  width: 50px;
  height: 50px;
  border-radius: 999px;
  padding: 0;
  font-size: 1.35rem;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(17, 36, 49, 0.28);
}

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

  .order-panel {
    position: static;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-side {
    width: 100%;
    justify-items: stretch;
  }

  .hero-stats {
    width: 100%;
    flex-wrap: wrap;
  }

  .brand-logo-card {
    width: min(220px, 100%);
  }

  .mobile-switcher {
    display: flex;
    position: sticky;
    top: 8px;
    z-index: 4;
  }

  .mobile-hidden {
    display: none;
  }

  .scroll-top-btn {
    right: 12px;
    bottom: 12px;
    width: 54px;
    height: 54px;
  }

  .sticker-sheet-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .app {
    padding: 14px 12px 20px;
  }

  .toolbar,
  .import-row,
  .panel {
    padding: 10px;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card {
    min-height: 0;
  }

  .qty-controls {
    grid-template-columns: 48px minmax(64px, 1fr) 48px;
  }

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

  .qty-btn,
  .card-edit-btn {
    min-height: 42px;
  }

  .edit-card {
    padding: 12px;
  }

  .edit-actions button {
    width: 100%;
  }

  .manual-row .field,
  .manual-row .file-btn,
  .manual-row button {
    width: 100%;
  }

  .toolbar-action {
    width: 100%;
    justify-content: center;
  }

  .label-maker-actions button {
    width: 100%;
  }

  .quick-backup-actions button,
  .quick-backup-actions .file-btn {
    width: 100%;
  }

  .photo-tools {
    flex-direction: column;
  }

  .mini-camera-btn,
  .photo-tools .mini-file-btn {
    width: 100%;
  }

  .camera-actions {
    flex-direction: column;
  }

  .camera-actions button,
  .camera-trigger {
    width: 100%;
  }
}