/* WMS Label Resizer — /wms/label-resizer.html only */

/* Full-screen workspace (sidebar stays; content fills remaining width/height) */
body.wms-lr-app {
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}
body.wms-lr-app #header-container {
  display: none !important;
}
body.wms-lr-app #main-content-area {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #f1f5f9;
}
body.wms-lr-app .wms-lr-page {
  flex: 1 1 auto;
  min-height: 0;
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0.65rem 0.85rem 0.85rem !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}
body.wms-lr-app .lr-layout {
  flex: 1 1 auto;
  min-height: 0;
  align-items: stretch;
  overflow: hidden;
}
body.wms-lr-app .lr-main {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
body.wms-lr-app .lr-card {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
body.wms-lr-app .lr-drop {
  flex: 1 1 auto;
  min-height: 280px;
}
body.wms-lr-app .lr-help {
  min-height: 0;
  overflow: auto;
}
body.wms-lr-app .lr-help-card {
  position: static;
  height: 100%;
}
@media (max-width: 768px) {
  body.wms-lr-app #main-content-area {
    margin-left: 0 !important;
  }
}
@media (max-width: 992px) {
  body.wms-lr-app .lr-layout {
    overflow: auto;
  }
}

.lr-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 1rem;
  align-items: start;
}
@media (max-width: 992px) {
  .lr-layout { grid-template-columns: 1fr; }
}
.lr-title { font-weight: 700; color: #0f172a; }
.lr-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.lr-tab {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 650;
  color: #334155;
  cursor: pointer;
}
.lr-tab:hover { background: #f8fafc; }
.lr-tab.active {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
  box-shadow: inset 0 0 0 1px #cbd5e1;
}
.lr-badge-new {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  background: #facc15;
  color: #713f12;
  font-size: 0.65rem;
  font-weight: 800;
  vertical-align: middle;
}
.lr-badge-beta {
  color: #dc2626;
  font-size: 0.7rem;
  font-weight: 700;
  margin-left: 0.15rem;
}
.lr-toast {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #16a34a;
  color: #fff;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 10px 30px rgba(22, 163, 74, 0.28);
}
.lr-toast[hidden] { display: none !important; }
.lr-toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.lr-toast-close {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.lr-toast.err { background: #dc2626; box-shadow: 0 10px 30px rgba(220, 38, 38, 0.28); }
.lr-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.1rem 1.2rem 1.35rem;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}
.lr-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.lr-size-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.78rem;
  font-weight: 650;
  color: #64748b;
}
.lr-size-wrap select { min-width: 140px; }
.lr-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.lr-drop {
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
  background: #fafafa;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.lr-drop:hover,
.lr-drop:focus,
.lr-drop.drag {
  border-color: #3b82f6;
  background: #eff6ff;
  outline: none;
}
.lr-drop-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  max-width: 28rem;
}
.lr-progress { margin-top: 1rem; }
.lr-platforms { margin-top: 1.25rem; }
.lr-platforms-title {
  text-align: center;
  color: #94a3b8;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}
.lr-platform-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
}
.lr-platform-grid span {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 650;
  color: #475569;
}
.lr-help-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  position: sticky;
  top: 1rem;
}
.lr-help-step {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
}
.lr-help-step + .lr-help-step {
  border-top: 1px solid #f1f5f9;
}
.lr-step-num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
