/* ========== GLOBAL ========== */
html {
  min-height: 100%;
  background-color: #eef3f8;
}

body {
  background-color: #eef3f8;
  font-family: var(--font-base, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif);
  color: #27364a;
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

h3 {
  margin-bottom: 20px;
  color: #24334a;
  font-family: var(--font-heading, inherit);
  font-weight: 700;
}

.sa-subtabs {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(238, 243, 248, 0.94);
  border-bottom: 1px solid #dce5ef;
  padding: 10px clamp(14px, 3vw, 34px);
  backdrop-filter: blur(10px);
}

.sa-subtabs-inner {
  max-width: 1680px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.sa-subtabs-inner::-webkit-scrollbar {
  display: none;
}

.sa-subtab {
  min-height: 46px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #dce5ef;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #5f6f84;
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font-heading, inherit);
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(28, 48, 76, 0.06);
}

.sa-subtab:hover,
.sa-subtab:focus {
  color: #256fd9;
  border-color: #bcd1ee;
}

.sa-subtab.is-active {
  color: #fff;
  border-color: #256fd9;
  background: #256fd9;
}

.sa-guide-subtab {
  cursor: pointer;
}

.sa-guide-subtab i {
  color: #dc3545;
}

.sa-guide-subtab:hover i,
.sa-guide-subtab:focus i {
  color: #256fd9;
}

.app-workspace {
  max-width: 1680px;
  width: 100%;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  padding-bottom: 18px;
}

.upload-title {
  margin-bottom: 14px;
}

.upload-title-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.upload-title-wrap .upload-title {
  margin-bottom: 0;
}

.guide-icon-btn {
  width: 30px;
  min-width: 30px;
  height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 15px;
  color: #dc3545;
  border-color: #dc3545;
  background: #ffffff;
  box-shadow: none;
}

.guide-icon-btn:hover,
.guide-icon-btn:focus {
  color: #ffffff;
  border-color: #dc3545;
  background: #dc3545;
}

.user-guide-modal .guide-section {
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}

.user-guide-modal .guide-section:first-child {
  padding-top: 0;
}

.user-guide-modal .guide-section:last-of-type {
  border-bottom: 0;
}

.user-guide-modal h6 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1f4f82;
  font-weight: 700;
  margin-bottom: 8px;
}

.user-guide-modal ol {
  margin-bottom: 0;
  padding-left: 22px;
}

.upload-grid {
  --main-panel-height: clamp(560px, calc(100vh - 315px), 720px);
  flex: 1 1 auto;
  min-height: 0;
  align-items: stretch !important;
}

.upload-grid > [class*="col-"] {
  display: flex;
}

.tool-card,
.preview-card,
.side-tabs-card {
  width: 100%;
  height: 100%;
  min-height: var(--main-panel-height);
}

.tool-card {
  display: flex;
  flex-direction: column;
}

.preview-card {
  display: flex;
  flex-direction: column;
}

.tool-card .card-header,
.preview-card .card-header {
  padding: 10px 14px;
  font-weight: 700;
}

.compact-form {
  padding: 12px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.compact-form .form-label {
  font-size: 13px;
  margin-bottom: 4px;
}

.compact-form .form-control,
.compact-form .form-select {
  min-height: 40px;
  padding: 7px 10px;
}

#customDpiInput,
#customWidthCm,
#customHeightCm {
  margin-bottom: 4px;
}

.compact-form .form-text {
  margin-top: 2px;
}

.compact-help {
  min-height: 34px;
  font-size: 12px;
  line-height: 1.35;
}

.compact-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.compact-checks .form-check {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px 6px 30px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #f8fafc;
}

.preview-body {
  flex: 1;
  height: auto;
  min-height: 300px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========== FORM & INPUT ========== */
label {
  font-weight: 600;
  margin-bottom: 5px;
}

input[type="file"],
select.form-select,
input[type="number"],
input[type="date"] {
  margin-bottom: 10px;
}

button {
  min-width: 112px;
  transition: all 0.2s ease-in-out;
}

button:hover {
  filter: brightness(0.98);
}

/* ========== PREVIEW IMAGE ========== */
#previewImg,
#modalCropImage {
  border: 2px dashed #7d6c6c;
  padding: 6px;
  background-color: #fff;
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
  display: block;
  margin: 0 auto;
}

/* ========== RESULT PREVIEW TABLE ========== */
#preview img {
  border: 2px solid #28a745;
  padding: 4px;
  border-radius: 6px;
  margin-bottom: 8px;
  max-width: 50%;
}

#preview a {
  display: inline-block;
  margin-top: 6px;
}

/* ========== IMAGE CARD GRID ========== */
.card {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #dee2e6;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
}

.card img {
  width: 100%;
  height: auto;
}

.card-body {
  padding: 14px;
  font-size: 14px;
  text-align: center;
}

.card-body small,
.card-body div {
  color: #555;
}

/* ========== NAVBAR ========== */
.navbar-brand {
  font-weight: bold;
  font-size: 20px;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.navbar .nav-link.active {
  font-weight: bold;
  color: #ffc107 !important;
}
.custom-navbar {
  background: #1f4f82;
}
.custom-navbar .navbar-brand,
.custom-navbar .nav-link {
  color: #ffffff !important;
}

.custom-navbar .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.custom-navbar .nav-link .bi,
.custom-navbar .navbar-brand .bi {
  line-height: 1;
}

.custom-navbar .nav-link:hover {
  color: #eaff07 !important;
}

/* ========== MODAL ========== */
.modal .modal-body img {
  max-height: 450px;
  object-fit: contain;
}

/* ========== TABLE PREVIEW ========== */
.table th,
.table td {
  vertical-align: middle;
  text-align: center;
}

.table th {
  background-color: #e9f6ed;
}

/* ========== COMPACT RESIZE RESULTS ========== */
#preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

#preview.compact-list,
.compact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.resize-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid #d8e2ef;
  border-radius: 8px;
  background: #fff;
}

.resize-result-thumb {
  width: 56px !important;
  height: 72px !important;
  object-fit: cover;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  flex: 0 0 auto;
  max-width: 56px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.resize-result-meta {
  min-width: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #4b5563;
}

.resize-result-meta .fw-semibold {
  color: #1f2937;
}

.side-tabs-card {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
}

.compact-tabs {
  margin: 0;
  padding: 0 8px;
  background: #f8fafc;
}

.compact-tabs .nav-link {
  border-radius: 0;
  font-weight: 700;
  padding: 10px 12px;
}

.side-tabs-body {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding: 10px;
}

.empty-state {
  padding: 18px 10px;
  color: #6b7280;
  text-align: center;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
}

.history-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 32px 32px;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.history-thumb {
  width: 46px !important;
  height: 58px !important;
  object-fit: cover;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}

.history-meta {
  min-width: 0;
  font-size: 12px;
  line-height: 1.35;
  color: #4b5563;
  text-align: left;
}

.icon-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #1f4f82;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.icon-btn:hover {
  background: #eff6ff;
  color: #123a63;
}

.icon-btn.danger {
  color: #b42318;
}

.icon-btn.danger:hover {
  background: #fef3f2;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-left: auto;
}

.result-actions .icon-btn {
  margin-top: 0 !important;
}

.batch-workspace {
  max-width: 1680px;
  width: 100%;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  padding-bottom: 18px;
}

.batch-panel .card-body {
  text-align: left;
}

.batch-panel .form-label {
  font-size: 13px;
  margin-bottom: 5px;
}

.batch-panel .form-control,
.batch-panel .form-select {
  min-height: 40px;
}

.batch-quality-note {
  min-height: 22px;
  color: #667085;
  font-size: 13px;
  text-align: center;
}

.batch-progress-card .card-body {
  text-align: left;
}

.batch-progress-card .progress {
  height: 22px;
  background: #eef2f7;
}

.batch-result-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.batch-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
}

.batch-result-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

.batch-result-thumb {
  width: 64px !important;
  height: 82px !important;
  object-fit: cover;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
}

.batch-result-meta {
  min-width: 0;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.35;
}

.batch-result-meta .fw-semibold {
  color: #1f2937;
}

.batch-result-error {
  grid-template-columns: 42px minmax(0, 1fr);
  border-color: #fecaca;
  background: #fff7f7;
}

.batch-result-error-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #b42318;
  background: #fee4e2;
}

.library-workspace {
  max-width: 1680px;
  width: 100%;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  padding-bottom: 18px;
}

.library-filter-card {
  padding: 14px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.library-filter-card .form-label {
  font-size: 13px;
  margin-bottom: 5px;
}

.library-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #475569;
  font-size: 13px;
}

.library-summary span {
  padding: 6px 9px;
  border: 1px solid #dbe4ef;
  border-radius: 6px;
  background: #ffffff;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.library-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.library-card:hover {
  border-color: #b9c8dc;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
}

.library-thumb-link {
  display: block;
  background: #f8fafc;
}

.library-thumb {
  width: 100% !important;
  height: 168px !important;
  object-fit: cover;
  display: block;
}

.library-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  text-align: left;
}

.library-name {
  color: #263142;
  font-size: 13px;
  font-weight: 700;
}

.library-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  color: #475569;
  font-size: 12px;
  line-height: 1.35;
}

.library-meta span {
  padding: 3px 6px;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  background: #f8fafc;
}

.library-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: auto;
}

.library-actions .btn {
  min-width: 0;
  padding-left: 6px;
  padding-right: 6px;
  white-space: nowrap;
}

.library-empty {
  padding: 26px 14px;
  color: #667085;
  text-align: center;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
}

footer {
  flex-shrink: 0;
  margin-top: auto !important;
}

footer.pt-4 {
  padding-top: 22px !important;
}

/* ========== A4 PRINT LAYOUT ========== */
.print-workspace {
  max-width: 1680px;
  width: 100%;
  flex: 1 0 auto;
  padding-bottom: 18px;
}

.print-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.print-filter-card,
.print-panel {
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.print-filter-card {
  padding: 14px;
}

.print-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(190px, 1fr)) minmax(160px, 220px);
  gap: 12px;
  align-items: end;
}

.print-control .form-label,
.print-settings .form-label {
  margin-bottom: 5px;
  color: #334155;
  font-size: 13px;
}

.print-control .form-control,
.print-control .form-select,
.print-settings .form-control,
.print-settings .form-select {
  min-height: 40px;
  margin-bottom: 0;
}

.print-control-action .btn {
  width: 100%;
  min-height: 40px;
}

.print-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: 14px;
  align-items: start;
}

.print-panel {
  padding: 14px;
}

.print-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.print-panel-head h3 {
  margin: 0 0 4px;
  color: #24334a;
  font-size: 18px;
  line-height: 1.2;
}

.print-panel-head p {
  margin: 0;
  color: #667085;
  font-size: 13px;
}

.print-panel-head.compact {
  margin-bottom: 14px;
}

.print-settings {
  position: sticky;
  top: 82px;
}

.print-checks {
  display: grid;
  gap: 8px;
  margin: 4px 0 14px;
}

.print-checks .form-check {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 8px 34px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.print-action-grid {
  display: grid;
  gap: 8px;
}

.print-action-grid .btn {
  width: 100%;
  min-width: 0;
  min-height: 40px;
}

.print-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 10px;
  align-items: stretch;
}

.print-selection-grid .alert {
  grid-column: 1 / -1;
}

.print-image-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #ffffff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.print-image-card.is-selected {
  border-color: #3b82f6;
  background: #f8fbff;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.14);
}

.print-thumb-wrap {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}

.print-select-thumb {
  width: 78px !important;
  height: 98px !important;
  object-fit: cover;
  display: block;
  margin: 0 !important;
  border-radius: 6px;
}

.print-thumb-wrap .print-image-check {
  position: absolute;
  left: 5px;
  bottom: 5px;
  margin: 0;
  width: 18px;
  height: 18px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.25);
}

.print-card-body {
  min-width: 0;
  text-align: left;
}

.print-card-title {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.25;
  color: #263142;
  margin-bottom: 2px;
}

.print-card-meta {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 6px;
  white-space: normal;
}

.print-card-controls {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 6px;
  align-items: end;
}

.print-field {
  display: block;
  margin: 0;
  min-width: 0;
}

.print-field span {
  display: block;
  margin-bottom: 2px;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
}

.print-count-input {
  min-width: 0;
}

.print-type-select {
  width: 100%;
  min-width: 0;
  font-size: 12px;
  padding-right: 28px;
}

.pdf-preview-dialog {
  max-width: min(1180px, calc(100vw - 32px));
}

.pdf-preview-frame {
  width: 100%;
  height: min(78vh, 900px);
  border: 0;
  background: #f8fafc;
}

.print-summary {
  max-width: 1680px;
  width: calc(100% - 24px);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #334155;
}

.print-summary span {
  border: 1px solid #dbe4ef;
  border-radius: 6px;
  background: #ffffff;
  padding: 6px 8px;
}

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

.a4-sheet {
  width: 210mm;
  height: 297mm;
  padding: 10mm;
  background: white;
  margin: 0 auto 16px;
  display: block;
  page-break-after: always;
  break-after: page;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.12);
}

.a4-sheet.sheet-centered {
  text-align: initial;
}

.a4-sheet:last-child {
  page-break-after: auto;
  break-after: auto;
}

.photo-box {
  width: var(--photo-w, 30mm);
  height: var(--photo-h, 40mm);
  border: 0.25mm dashed rgba(0, 0, 0, 0.45);
  overflow: hidden;
  box-sizing: border-box;
  background: #fff;
}

.photo-grid {
  width: var(--sheet-grid-w, auto);
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(var(--sheet-cols, 1), var(--photo-w, 30mm));
  grid-auto-rows: var(--photo-h, 40mm);
  gap: var(--sheet-gap, 2mm);
  margin: 0 0 0 var(--sheet-grid-offset-x, 0);
  justify-content: start;
  align-content: start;
}

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

.no-border {
  border: none !important;
}

.exporting-pdf .print-area {
  display: block !important;
  width: 210mm !important;
  min-width: 210mm !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0;
}

.exporting-pdf .a4-sheet {
  width: 210mm !important;
  min-width: 210mm !important;
  height: 297mm !important;
  margin: 0 !important;
  box-shadow: none;
}

.exporting-pdf .photo-grid {
  margin-left: var(--sheet-grid-offset-x, 0) !important;
  margin-right: 0 !important;
}

/* ========== PRINT MODE ========== */
@media print {
  html, body {
    width: auto;
    height: auto;
    background: white;
    margin: 0;
    padding: 0;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .no-print {
    display: none !important;
  }

  nav,
  footer {
    display: none !important;
  }

  .print-area {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0;
  }

  .a4-sheet {
    width: 210mm;
    height: 297mm;
    display: block;
    page-break-after: always;
    break-after: page;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 10mm;
    box-shadow: none;
    overflow: hidden;
  }

  .photo-grid {
    width: var(--sheet-grid-w, auto);
    display: grid;
    grid-template-columns: repeat(var(--sheet-cols, 1), var(--photo-w, 30mm));
    grid-auto-rows: var(--photo-h, 40mm);
    gap: var(--sheet-gap, 2mm);
    margin: 0 0 0 var(--sheet-grid-offset-x, 0);
    justify-content: start;
    align-content: start;
  }

  .a4-sheet:last-child {
    page-break-after: auto;
    break-after: auto;
  }

  .photo-box,
  .photo-box img {
    page-break-inside: avoid;
    break-inside: avoid;
  }
}

/* ========== FORM CONTAINERS ========== */
.filter-box {
  border: 1px solid #dee2e6;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  background: #ffffff;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  #previewImg,
  #modalCropImage {
    max-height: 250px;
  }

  .card-body,
  .form-label,
  .form-check-label {
    text-align: center;
  }

  button,
  select,
  input[type="file"],
  input[type="number"],
  input[type="date"] {
    width: 100% !important;
  }

  .sa-subtab {
    width: auto !important;
  }

  .compact-checks {
    grid-template-columns: 1fr;
  }

  .side-tabs-card {
    position: static;
    min-height: auto;
  }

  .side-tabs-body {
    max-height: none;
  }

  .tool-card,
  .preview-card {
    min-height: auto;
  }

  .preview-body {
    height: auto;
  }

  .icon-btn {
    width: 32px !important;
    min-width: 32px;
  }

  .guide-icon-btn {
    width: 30px !important;
    min-width: 30px;
  }

  .resize-result-item {
    align-items: flex-start;
  }

  .batch-workspace {
    padding-left: 12px;
    padding-right: 12px;
  }

  .batch-panel .card-body,
  .batch-progress-card .card-body {
    text-align: left;
  }

  .batch-result-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .batch-result-grid {
    grid-template-columns: 1fr;
  }

  .batch-result-card {
    grid-template-columns: 58px minmax(0, 1fr) 32px;
  }

  .batch-result-thumb {
    width: 58px !important;
    height: 74px !important;
  }

  .library-actions {
    grid-template-columns: 1fr;
  }

  .library-thumb {
    height: 150px !important;
  }

  .print-workspace {
    padding-left: 12px;
    padding-right: 12px;
  }

  .print-filter-grid,
  .print-layout-grid {
    grid-template-columns: 1fr;
  }

  .print-settings {
    position: static;
  }

  .print-panel-head {
    flex-direction: column;
  }

  .print-panel-head .btn {
    width: 100% !important;
  }

  .print-selection-grid {
    grid-template-columns: 1fr;
  }

  .print-image-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .print-select-thumb {
    width: 66px !important;
    height: 84px !important;
  }
}
