/**
 * Ders Notu Module - Enterprise/Fintech Layout
 * ModÃ¼le Ã¶zel: font, renk, boyut - diÄŸer modÃ¼ller/header/footer/modal etkilenmez
 * calculator.css global kurallarÄ± :not([class*="module-ders-notu-"]) ile bu modÃ¼lÃ¼ hariÃ§ tutar
 */

/* Inter font PHP tarafÄ±ndan yÃ¼klenir - duplicate @import kaldÄ±rÄ±ldÄ± */

/* Ders Notu / Ã¶zel form: Typography & Design tokenâ€™larÄ± #awp-printwise-root Ã¼zerinde (ders-notu-hesaplama inline CSS) */
#awp-printwise-root .module-ders-notu {
  --dn-heading-font: var(--font-family-heading, var(--font-family-base, "Inter", -apple-system, BlinkMacSystemFont, sans-serif));
  /* GÃ¶rsel referans: gÃ¼Ã§lÃ¼ ana baÅŸlÄ±k + daha kÃ¼Ã§Ã¼k, gri alt baÅŸlÄ±k */
  --dn-heading-size: var(--font-size-display);
  --dn-heading-weight: 900;
  --dn-heading-color: #0f172a;
  --dn-intro-size: 0.9375rem;
  --dn-intro-color: #64748b;
  --dn-form-label-font: var(--font-family-base, var(--font-family, "Inter", -apple-system, BlinkMacSystemFont, sans-serif));
  --dn-form-label-size: var(--font-size-sm, 0.8125rem);
  --dn-form-label-weight: 700;
  --dn-form-label-color: #374151;
  --dn-form-desc-size: var(--font-size-xs, 0.6875rem);
  --dn-form-desc-weight: 600;
  --dn-form-desc-color: #6b7280;
}

/* Main container - ana sayfa geniÅŸliÄŸi 1500px (admin panelden deÄŸiÅŸtirilebilir) */
#awp-printwise-root main.module-ders-notu-active {
  max-width: 1500px !important;
}

/* Module wrapper - 2 sÃ¼tun: sol = form elemanlarÄ± (iÃ§inde Ã¼rÃ¼n gÃ¶rseli + alanlar), saÄŸ = fiyat paneli */
.module-ders-notu {
  font-family: var(--font-family-base, var(--font-family, inherit));
  display: grid;
  grid-template-columns: 1fr minmax(320px, 400px);
  grid-template-areas: "left_col summary";
  gap: 24px;
  align-items: start;
  position: relative;
}

/* Sol sÃ¼tun - 3 satÄ±r: Ã¼st (baÅŸlÄ±k+butonlar) | orta (gÃ¶rsel|form) | alt (dosya|aÃ§Ä±klama) */
.module-ders-notu-left-col {
  grid-area: left_col;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "top"
    "form_row"
    "bottom";
  gap: 20px;
  align-items: start;
}

/* 1. Ãœst: BaÅŸlÄ±k + ana butonlar (Ã¼rÃ¼n gÃ¶rselinin Ã¼zerinde, tam geniÅŸlik) */
.module-ders-notu-top {
  grid-area: top;
  min-width: 0;
}

/* 2. Orta: ÃœrÃ¼n gÃ¶rseli (kart 350px) | Form alanlarÄ± */
.module-ders-notu-form-row {
  grid-area: form_row;
  min-width: 0;
  display: grid;
  grid-template-columns: 350px 1fr;
  grid-template-areas: "image form";
  gap: 20px;
  align-items: start;
}

/* ÃœrÃ¼n gÃ¶rseli - galeri kartÄ± 350px, boy iÃ§eriÄŸe gÃ¶re (kesilme yok) */
.module-ders-notu-form-row .module-ders-notu-image {
  grid-area: image;
  width: 350px;
  min-width: 350px;
  max-width: 350px;
  height: auto;
  min-height: min-content;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
}
.module-ders-notu-form-row .module-ders-notu-image .awp-product-gallery {
  overflow: visible;
}

.module-ders-notu-image-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.module-ders-notu-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 425px;
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
}

/* Eski slider yapÄ±sÄ± (JS galeri kullanÄ±yorsa bu slideâ€™lar kullanÄ±lmÄ±yor; yine de fallback) */
.dn-product-image-slider {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 425px;
}

.dn-product-image-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dn-product-image-slide.active {
  opacity: 1;
  z-index: 1;
}

.dn-product-image-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Form alanlarÄ± - orta satÄ±rda saÄŸda (format, sayfa, kopya, renk, ciltleme) */
.module-ders-notu-fields {
  grid-area: form;
  min-width: 0;
}

/* Kitap baskısındaki gibi form sonu birim fiyat çubuğu (tasarım kontrolü üstü) */
#dn-subtype-panel-core .dn-core-price-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 0;
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
}

#dn-subtype-panel-core .dn-core-price-label {
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
}

#dn-subtype-panel-core .dn-core-price-value {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

/* Form geneli - harf aralÄ±ÄŸÄ± normal */
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-left-col,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-fields {
  letter-spacing: normal;
}

/* Form baÅŸlÄ±klarÄ± (etiketler) - eÅŸit font boyutu ve kalÄ±nlÄ±k, Inter */
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-left-col label,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-fields label,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) :is(#page-quantity-container, #skt-page-quantity-container) > div > label,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #copy-quantity-container label {
  font-family: var(--dn-form-label-font) !important;
  font-size: var(--dn-form-label-size) !important;
  font-weight: var(--dn-form-label-weight) !important;
  letter-spacing: normal;
}

/* Form alt baÅŸlÄ±klarÄ± (aÃ§Ä±klama metinleri) - eÅŸit font boyutu ve kalÄ±nlÄ±k, Inter */
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-fields p,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) :is(#page-quantity-container, #skt-page-quantity-container) > div > p,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #copy-quantity-container p,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) :is(#label-paper-size-desc, #skt-label-paper-size-desc),
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) :is(#label-pages-desc, #skt-label-pages-desc),
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) :is(#label-quantity-desc, #skt-label-quantity-desc),
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) :is(#label-binding-desc, #skt-label-binding-desc),
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) :is(#price-comparison-description, #skt-price-comparison-description),
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #label-copy-quantity-desc,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-bottom p {
  font-family: var(--dn-form-label-font) !important;
  font-size: var(--dn-form-desc-size) !important;
  font-weight: var(--dn-form-desc-weight) !important;
  color: var(--dn-form-desc-color) !important;
  letter-spacing: normal;
}

/* TÃ¼m form elemanlarÄ± - font kalÄ±nlÄ±ÄŸÄ± artÄ±rÄ±ldÄ± (input, select, textarea) */
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-left-col input[type="number"],
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-left-col input[type="text"],
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-left-col select,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-left-col textarea,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-instructions,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-fields .modern-select,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-fields input {
  font-weight: 500 !important;
}

/* Sayfa sayÄ±sÄ± + Kopya sayÄ±sÄ± - etiketler aynÄ± hizada, biri yukarÄ±da biri aÅŸaÄŸÄ±da olmasÄ±n */
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) :is(#page-quantity-container, #skt-page-quantity-container) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}

:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) :is(#page-quantity-container, #skt-page-quantity-container) > div {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) :is(#page-quantity-container, #skt-page-quantity-container) > div > label {
  flex-shrink: 0;
  line-height: 1.25;
  min-height: 1.25rem;
}

:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) :is(#page-quantity-container, #skt-page-quantity-container) > div > p {
  flex-shrink: 0;
  min-height: 2rem;
  line-height: 1.3;
  margin: 0 0 8px 0;
}

/* 3. Alt: Dosya yÃ¼kleme | AÃ§Ä±klama - grid, yÃ¼kseklikler eÅŸit (simetrik) */
.module-ders-notu-bottom {
  grid-area: bottom;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.module-ders-notu-bottom > div {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.module-ders-notu-bottom .module-ders-notu-upload-zone {
  flex: 1;
  min-height: var(--awp-bottom-field-h, 96px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.module-ders-notu-bottom .module-ders-notu-instructions {
  flex: 1;
  min-height: var(--awp-bottom-field-h, 96px);
  box-sizing: border-box;
}

/* Right column â€” gÃ¶rseldeki koyu lacivert panel + buton paleti (admin CSS deÄŸiÅŸkenleriyle ezilebilir) */
.module-ders-notu-summary {
  --awp-summary-panel-bg: #0b122b;
  --awp-summary-panel-total-bg: linear-gradient(180deg, #111b36 0%, #0b122b 100%);
  --awp-summary-panel-btn-primary-bg: linear-gradient(180deg, #3b82f6 0%, #2563eb 52%, #1d4ed8 100%);
  --awp-summary-panel-btn-primary-color: #ffffff;
  --awp-summary-panel-btn-secondary-bg: #1e293b;
  --awp-summary-panel-btn-secondary-color: #f1f5f9;
  --awp-summary-scrollbar-track: rgba(11, 18, 43, 0.95);
  --awp-summary-scrollbar-thumb: rgba(99, 102, 241, 0.45);
  --awp-summary-scrollbar-thumb-hover: rgba(129, 140, 248, 0.55);
  --awp-summary-scrollbar-thumb-active: rgba(165, 180, 252, 0.65);
}

.module-ders-notu-badge {
  display: none;
}

/* GÃ¶rsel 2: Ana baÅŸlÄ±k - Ders Notu ve Kitap Ã‡oÄŸaltma / BaskÄ± (modÃ¼le Ã¶zel) */
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-heading {
  font-family: var(--dn-heading-font);
  font-size: var(--dn-heading-size) !important;
  font-weight: var(--dn-heading-weight) !important;
  color: var(--dn-heading-color) !important;
  letter-spacing: -0.025em;
  margin: 0 0 0.25rem 0;
  line-height: 1.3;
}

/* GÃ¶rsel 2: AÃ§Ä±klama paragrafÄ± (modÃ¼le Ã¶zel) */
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-intro {
  font-family: var(--dn-heading-font);
  font-size: var(--dn-intro-size) !important;
  font-weight: 400 !important;
  color: var(--dn-intro-color) !important;
  line-height: 1.5;
  margin: 0 0 16px 0;
  /* Metin tek satÄ±r da olsa 2 satÄ±r yer kaplasÄ±n (layout sabit kalsÄ±n) */
  /*min-height: calc(1.5em * 2);*/
}

/* Section labels (BELGE KAYNAÄI, Ã–ZEL TALIMATLAR) - form baÅŸlÄ±k sistemiyle uyumlu, harf aralÄ±ÄŸÄ± normal */
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-section-label {
  font-family: var(--dn-form-label-font) !important;
  font-size: var(--dn-form-label-size) !important;
  font-weight: var(--dn-form-label-weight) !important;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--dn-form-label-color);
  margin-bottom: 8px;
}

/* Right panel header base now shared in calculator.css */

.module-ders-notu-summary-icon {
  flex-shrink: 0;
}

.module-ders-notu-summary-icon svg {
  display: block;
}

/* ANLIK FÄ°YAT - Instant price icon */
.module-ders-notu-realtime-icon {
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}
.module-ders-notu-realtime-icon svg {
  filter: drop-shadow(0 2px 8px rgba(249, 115, 22, 0.45));
  transition: filter 0.3s ease;
}
.module-ders-notu-realtime-icon:hover svg {
  filter: drop-shadow(0 4px 14px rgba(251, 146, 60, 0.55));
}

.module-ders-notu-summary-title {
  font-family: var(--awp-summary-panel-title-font-family, var(--font-family-heading, var(--font-family-base, "Inter", -apple-system, BlinkMacSystemFont, sans-serif))) !important;
  font-size: var(--awp-summary-panel-title-font-size, var(--font-size-lg, 18px)) !important;
  font-weight: var(--awp-summary-panel-title-font-weight, 900) !important;
  font-stretch: var(--awp-summary-panel-title-font-stretch, normal) !important;
  letter-spacing: -0.02em;
  color: var(--awp-summary-panel-title-color, #f1f5f9);
  margin: 0 0 4px 0;
  text-transform: uppercase;
}

.module-ders-notu-summary-subtitle {
  font-family: var(--awp-summary-panel-subtitle-font-family, var(--font-family-base, inherit));
  font-size: var(--awp-summary-panel-subtitle-font-size, var(--font-size-xs, 10px));
  font-weight: var(--awp-summary-panel-subtitle-font-weight, 500);
  letter-spacing: 0.06em;
  color: var(--awp-summary-panel-subtitle-color, #94a3b8);
  margin: 0;
}

/* Cost breakdown rows */
.module-ders-notu-cost-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.module-ders-notu-cost-row:last-of-type {
  border-bottom: none;
}

.module-ders-notu-cost-label-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
  max-width: calc(100% - 6.75rem);
}

.module-ders-notu-cost-sublabel {
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.module-ders-notu-cost-label {
  font-family: var(--awp-summary-panel-cost-font-family, var(--font-family-base, inherit));
  font-size: var(--awp-summary-panel-cost-font-size, var(--font-size-xs, 11px));
  font-weight: var(--awp-summary-panel-cost-font-weight, 600);
  font-stretch: var(--awp-summary-panel-cost-font-stretch, normal);
  letter-spacing: 0.05em;
  color: var(--awp-summary-panel-cost-label-color, rgba(255, 255, 255, 0.7));
  text-transform: uppercase;
}

/* Discount block - badge above strikethrough price, then KazancÄ±nÄ±z */
.module-ders-notu-discount-block {
  padding: 8px 0 0;
}

.module-ders-notu-discount-badge-row {
  margin-bottom: 6px;
}

.module-ders-notu-summary-badge {
  font-size: 11px !important;
  padding: 5px 12px !important;
}

.module-ders-notu-cost-row-old-price .module-ders-notu-old-price {
  text-decoration: line-through;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.module-ders-notu-cost-row-discount .module-ders-notu-cost-value-savings {
  color: #34d399;
}

.module-ders-notu-summary .awp-quote-list-total-row {
  border-top-color: rgba(255, 255, 255, 0.1);
}
.module-ders-notu-summary .awp-quote-list-total-label {
  color: var(--awp-summary-panel-cost-label-color, rgba(255, 255, 255, 0.7));
}
.module-ders-notu-summary .awp-quote-list-total-value {
  color: var(--awp-summary-panel-cost-value-color, #fff);
}

.module-ders-notu-cost-value {
  font-family: var(--awp-summary-panel-cost-font-family, var(--font-family-base, inherit));
  font-size: var(--awp-summary-panel-cost-font-size, var(--font-size-sm, 12px));
  font-weight: var(--awp-summary-panel-cost-font-weight, 600);
  font-stretch: var(--awp-summary-panel-cost-font-stretch, normal);
  color: var(--awp-summary-panel-cost-value-color, #fff);
}

/* Total - prominent (Image 4: gradient, larger font, currency spacing) */
.module-ders-notu-total {
  margin-top: 16px;
  padding: 16px;
  border-radius: 6px;
  background: var(--awp-summary-panel-total-bg, linear-gradient(180deg, rgb(28 47 95) 0%, rgb(20 27 56) 100%));
}

.module-ders-notu-total-label {
  font-family: var(--font-family-heading, var(--font-family-base, inherit));
  font-size: var(--font-size-xs, 10px);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--awp-summary-panel-total-label-color, #94a3b8);
  margin-bottom: 6px;
}

.module-ders-notu-total-value {
  font-family: var(--font-family-heading, var(--font-family-base, inherit));
  font-size: 45px;
  font-weight: 900;
  color: var(--awp-summary-panel-total-value-color, #fff);
}

.module-ders-notu-currency-gap {
  margin: 0 4px;
}

.currency-unit-sm {
  font-family: var(--font-family-base, inherit);
  font-size: var(--font-size-sm, 14px) !important;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

/* Professional advice box (Image 6: purple accent, italic text) - scroll sadece bu alanda */
.module-ders-notu-advice {
  margin-top: 16px;
  padding: 14px;
  background: var(--awp-summary-panel-advice-bg, #1f1b38);
  border-radius: 6px;
  border: 1px solid rgba(167, 158, 243, 0.15);
  max-height: 160px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  /* Modern scrollbar - zemin rengine uyumlu */
  scrollbar-width: thin;
  scrollbar-color: rgba(167, 158, 243, 0.5) rgba(31, 27, 56, 0.8);
}

/* WebKit: modern ince scrollbar (Chrome, Safari, Edge) */
.module-ders-notu-advice::-webkit-scrollbar {
  width: 6px;
}

.module-ders-notu-advice::-webkit-scrollbar-track {
  background: rgba(31, 27, 56, 0.6);
  border-radius: 3px;
  margin: 4px 0;
}

.module-ders-notu-advice::-webkit-scrollbar-thumb {
  background: rgba(167, 158, 243, 0.45);
  border-radius: 3px;
}

.module-ders-notu-advice::-webkit-scrollbar-thumb:hover {
  background: rgba(167, 158, 243, 0.7);
}

.module-ders-notu-advice::-webkit-scrollbar-thumb:active {
  background: rgba(167, 158, 243, 0.85);
}

.module-ders-notu-advice-bullet {
  color: var(--awp-summary-panel-advice-title-color, #a79ef3);
  margin-right: 4px;
}

.module-ders-notu-advice-title {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--awp-summary-panel-advice-title-color, #a79ef3);
  margin-bottom: 8px;
}

.module-ders-notu-advice-text {
  font-size: 11px;
  font-weight: 400;
  font-style: italic;
  color: var(--awp-summary-panel-advice-text-color, #e0e0e0);
  line-height: 1.6;
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}

/* Action buttons - Modern Banking App Style */
.module-ders-notu-actions {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.module-ders-notu-btn-primary {
  width: 100%;
  padding: 12px 16px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--awp-summary-panel-btn-primary-color, #0f172a);
  background: var(--awp-summary-panel-btn-primary-bg, linear-gradient(135deg, #ffffff 0%, #f8fafc 100%));
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
}

.module-ders-notu-btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.4),
    rgba(248, 250, 252, 0.4)
  );
  opacity: 0;
  transition: opacity 0.15s ease;
}

.module-ders-notu-btn-primary:hover {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  transform: translateY(-2px);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.15),
    0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.module-ders-notu-btn-primary:hover::before {
  opacity: 1;
}

.module-ders-notu-btn-primary:active {
  transform: translateY(0);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Ders Notu saÄŸ panel â€” gÃ¶rseldeki mavi birincil / koyu ikincil (CSS deÄŸiÅŸkenleri .module-ders-notu-summary Ã¼zerinde) */
.module-ders-notu-summary .module-ders-notu-btn-primary {
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 8px;
  color: var(--awp-summary-panel-btn-primary-color, #ffffff);
  background: var(
    --awp-summary-panel-btn-primary-bg,
    linear-gradient(180deg, #3b82f6 0%, #2563eb 52%, #1d4ed8 100%)
  );
  box-shadow:
    0 2px 8px rgba(37, 99, 235, 0.45),
    0 1px 2px rgba(15, 23, 42, 0.2);
}

.module-ders-notu-summary .module-ders-notu-btn-primary::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
  opacity: 0.85;
}

.module-ders-notu-summary .module-ders-notu-btn-primary:hover {
  filter: brightness(1.07);
  background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 55%, #2563eb 100%);
  box-shadow:
    0 6px 20px rgba(37, 99, 235, 0.5),
    0 2px 6px rgba(15, 23, 42, 0.25);
}

.module-ders-notu-summary .module-ders-notu-btn-primary:hover::before {
  opacity: 1;
}

.module-ders-notu-summary .module-ders-notu-btn-primary:active {
  filter: brightness(0.96);
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.35);
}

.module-ders-notu-btn-primary svg {
  order: 2;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  transition: transform 0.15s ease;
}

.module-ders-notu-btn-primary:hover svg {
  transform: translateX(2px);
}

.module-ders-notu-btn-secondary {
  width: 100%;
  padding: 10px 16px;
  min-height: 40px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--awp-summary-panel-btn-secondary-color, rgba(255, 255, 255, 0.85));
  background: var(--awp-summary-panel-btn-secondary-bg, rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.module-ders-notu-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.module-ders-notu-summary .module-ders-notu-btn-secondary {
  min-height: 44px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 8px;
  color: var(--awp-summary-panel-btn-secondary-color, #f1f5f9);
  background: var(--awp-summary-panel-btn-secondary-bg, #1e293b);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.module-ders-notu-summary .module-ders-notu-btn-secondary:hover {
  background: #334155;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.module-ders-notu-btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* Teklif'e Ekle + Teklif Listesi: yan yana 2 sÃ¼tun, ikon Ã¼stte / metin altta */
.awp-quote-actions-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

/* Ä°kon en Ã¼stte, altÄ±nda buton ismi (Toplu Teklif GÃ¶nder / Teklif Listesi) */
.awp-quote-btn-stack {
  flex-direction: column !important;
  gap: 6px !important;
  min-height: 56px !important;
  padding: 10px 12px !important;
  justify-content: center !important;
  align-items: center !important;
}

.awp-quote-btn-stack .awp-quote-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.awp-quote-btn-stack .awp-quote-btn-icon svg {
  width: 22px !important;
  height: 22px !important;
}

.awp-quote-btn-stack .awp-quote-btn-label {
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  text-align: center !important;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.awp-quote-actions-pair .awp-btn-add-to-quote,
.awp-quote-actions-pair .awp-btn-saved-calc {
  min-height: 56px;
  white-space: normal;
  line-height: 1.3;
  text-align: center;
  word-break: break-word;
}

/* Teklif Listesi: Ã¼rÃ¼n sayÄ±sÄ± rozeti saÄŸ Ã¼st kÃ¶ÅŸede */
.awp-quote-actions-pair .awp-btn-saved-calc.awp-quote-btn-stack {
  position: relative;
  padding-right: 28px !important; /* Rozet iÃ§in yer */
}
.awp-quote-actions-pair .awp-btn-saved-calc .awp-saved-count-badge {
  position: absolute !important;
  top: 6px !important;
  right: 6px !important;
  margin: 0 !important;
  flex-shrink: 0;
}

.awp-quote-actions-pair .awp-btn-add-to-quote span,
.awp-quote-actions-pair .awp-btn-saved-calc > span:not(.awp-saved-count-badge) {
  white-space: normal;
  text-align: center;
  min-width: 0;
}

/* Teklif'e Ekle - saÄŸ panelde listeye kaydet (tertiary) */
.module-ders-notu-btn-tertiary,
.awp-btn-add-to-quote {
  width: 100%;
  padding: 10px 16px;
  min-height: 40px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(100, 116, 139, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.module-ders-notu-btn-tertiary:hover,
.awp-btn-add-to-quote:hover {
  background: rgba(100, 116, 139, 0.6);
  border-color: rgba(148, 163, 184, 0.5);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

/* GÃ¶rsel referans â€” yalnÄ±zca Ders Notu sekmesi saÄŸ panel */
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-summary .module-ders-notu-btn-tertiary,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-summary .awp-btn-add-to-quote {
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  background: #2d3748;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
}
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-summary .module-ders-notu-btn-tertiary:hover,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-summary .awp-btn-add-to-quote:hover {
  background: #374151;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
}
.module-ders-notu-btn-tertiary svg,
.awp-btn-add-to-quote svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

/* Kaydedilen Hesaplamalar - Teklif'e Ekle altÄ±nda, saÄŸ panelde */
.module-ders-notu-actions .awp-btn-saved-calc.module-ders-notu-btn-saved {
  width: 100%;
  padding: 10px 16px;
  min-height: 40px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(59, 130, 246, 0.25);
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.module-ders-notu-actions .awp-btn-saved-calc.module-ders-notu-btn-saved:hover {
  background: rgba(59, 130, 246, 0.4);
  border-color: rgba(96, 165, 250, 0.5);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-summary .module-ders-notu-actions .awp-btn-saved-calc.module-ders-notu-btn-saved {
  font-weight: 600;
  background: #2d3748;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
}
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-summary .module-ders-notu-actions .awp-btn-saved-calc.module-ders-notu-btn-saved:hover {
  background: #374151;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
}
.module-ders-notu-actions .awp-btn-saved-calc .awp-saved-count-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 11px;
}

/* ÃœrÃ¼n genel bakÄ±ÅŸ â€” saÄŸ panelde gÃ¶rseldeki yeÅŸil vurgu + koyu kutu */
.module-ders-notu-summary .module-product-overview-header {
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(17, 27, 54, 0.96);
  border-radius: 8px;
  border: 1px solid rgba(52, 211, 153, 0.28);
}

.module-ders-notu-summary .module-product-overview-label {
  color: #4ade80;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

/* Discount bubble in summary panel */
.module-ders-notu-summary .discount-bubble-wrapper {
  margin-top: 12px;
}

.module-ders-notu-summary .discount-bubble {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.4);
}

/* Ã–deme yÃ¶ntemleri bilgisi - KapÄ±da Ã¶deme & Havale ikonlu */
.module-ders-notu-payment-methods {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 10px;
  font-weight: 500;
  color: rgb(100 116 139);
}
.module-ders-notu-payment-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.module-ders-notu-payment-item svg {
  flex-shrink: 0;
  opacity: 0.9;
}

/* Trust element */
.module-ders-notu-trust {
  margin-top: 12px;
  font-size: 10px;
  font-weight: 500;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* File upload section - document source */
.module-ders-notu-upload-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 6px;
  padding: 8px 12px;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.module-ders-notu-upload-zone:hover {
  border-color: #6366f1;
  background: #f8fafc;
}

/* Dosya yÃ¼kle metni â€” Typography & Design temel punto */
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-upload-zone #dn-upload-text,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-upload-zone .module-ders-notu-upload-text,
#awp-printwise-root.awp-form-engine-page .module-ders-notu-upload-zone .module-ders-notu-upload-text {
  font-family: var(--font-family-base, inherit);
  font-size: var(--font-size-base, 16px) !important;
  font-weight: 500 !important;
}

/* Dosya listesi - uzun isimler 2 satÄ±ra bÃ¶lÃ¼nÃ¼r (sÄ±ra: box-orient Ã¶nce, sonra line-clamp) */
.dn-file-name-wrap,
.dn-uploaded-files-list .text-gray-700 {
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Special instructions textarea */
.module-ders-notu-instructions {
  width: 100%;
  min-height: var(--awp-bottom-field-h, 96px);
  padding: 10px 12px;
  font-family: var(--font-family-base, inherit);
  font-size: var(--font-size-sm, 13px);
  border: 1px solid #95b8e6;
  border-radius: 6px;
  resize: vertical;
}

/* Hide duplicated elements - original results card hidden when using summary */
.module-ders-notu
  .ders-notu-hesaplama-sonuclari.module-ders-notu-inline-results {
  display: none;
}

/* Responsive - mobilde: Ã¼st, orta (gÃ¶rsel Ã¼st / alanlar alt), alt (dosya | aÃ§Ä±klama), sonra fiyat paneli */
@media (max-width: 900px) {
  #awp-printwise-root main.module-ders-notu-active,
  :is(#tab-content-ders-notu, #tab-content-sert-kapak-tez),
  .module-ders-notu {
    overflow-x: hidden;
    max-width: 100%;
  }
  .module-ders-notu-left-col,
  .module-ders-notu-form-row,
  .module-ders-notu-fields,
  .module-ders-notu-bottom {
    min-width: 0;
  }
  .module-ders-notu {
    grid-template-columns: 1fr;
    grid-template-areas:
      "left_col"
      "summary";
  }

  .module-ders-notu-form-row {
    grid-template-columns: 1fr;
    grid-template-areas:
      "image"
      "form";
    align-items: start; /* Tumble ÅŸeridi kesilmesin; sÃ¼tun iÃ§eriÄŸe gÃ¶re yÃ¼kseklik alsÄ±n */
  }

  .module-ders-notu-bottom {
    grid-template-columns: 1fr;
  }

  .module-ders-notu-summary {
    position: static !important;
    min-width: unset;
    max-width: none;
    width: 100%;
    max-height: none;
    overflow-y: visible;
    padding: 16px;
  }
  .module-ders-notu-summary-header {
    margin-bottom: 12px;
  }
  .module-ders-notu-cost-row {
    padding: 8px 0;
  }
  .module-ders-notu-total {
    margin-top: 12px;
    padding: 12px;
  }
  .module-ders-notu-total-value {
    font-size: 38px;
  }
  .module-ders-notu-advice {
    margin-top: 12px;
    padding: 10px;
  }

  /* GÃ¶rsel: ortak bileÅŸen (min 430px, aspect-ratio 1/1) */
  .module-ders-notu-form-row .module-ders-notu-image,
  .module-ders-notu-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    margin: 0 auto;
  }
  .module-ders-notu-image-placeholder {
    min-height: 430px;
  }
  .dn-product-image-slider {
    min-height: 430px;
  }
  /* Mobilde gÃ¶rsel alanÄ± yatay (geniÅŸ); dikey gÃ¶rseller tam gÃ¶rÃ¼nsÃ¼n, ortadan kesilmesin */
  .dn-product-image-slide img {
    object-fit: contain;
    object-position: center center;
  }
  .module-ders-notu-form-row .module-ders-notu-image .dn-product-image-slider,
  .module-ders-notu-image .dn-product-image-slider {
    background: #f1f5f9;
  }
  /* Dikey scroll azalt: tablet/mobilde boÅŸluklarÄ± sÄ±kÄ±laÅŸtÄ±r */
  .module-ders-notu {
    gap: 16px;
  }
  .module-ders-notu-left-col {
    gap: 14px;
  }
  .module-ders-notu-form-row {
    gap: 24px;
  }
}

/* PaylaÅŸ / site butonlarÄ± (SipariÅŸi Tamamla, PDF) en Ã¼stte gÃ¶rÃ¼nsÃ¼n */
#awp-printwise-root main.module-ders-notu-active {
  display: flex;
  flex-direction: column;
}
#awp-printwise-root
  main.module-ders-notu-active
  .awp-shared-action-buttons {
  order: -1;
  margin-bottom: 12px;
}

@media (max-width: 640px) {
  #awp-printwise-root main.module-ders-notu-active {
    max-width: 100% !important;
  }
  /* Mobilde yatay scroll kaldÄ±r - hesaplama modÃ¼lÃ¼ tam sÄ±ÄŸsÄ±n */
  #awp-printwise-root main.module-ders-notu-active,
  :is(#tab-content-ders-notu, #tab-content-sert-kapak-tez),
  .module-ders-notu {
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
  }
  .module-ders-notu-left-col,
  .module-ders-notu-form-row,
  .module-ders-notu-fields,
  .module-ders-notu-bottom,
  .module-ders-notu-summary {
    min-width: 0;
    max-width: 100%;
  }
  /* Dikey scroll azalt: mobilde daha kompakt */
  .module-ders-notu {
    gap: 12px;
  }
  .module-ders-notu-left-col {
    gap: 10px;
  }
  .module-ders-notu-form-row {
    gap: 24px;
    align-items: start;
  }
  /* Mobilde Ã¼rÃ¼n gÃ¶rseli: geniÅŸlik ekran kadar, kare oran */
  /* GÃ¶rsel alanÄ±: ortak bileÅŸen (calculator.css) boyutlarÄ± kullanÄ±r; min 430px mobil */
  .module-ders-notu-form-row .module-ders-notu-image,
  .module-ders-notu-image {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    overflow: visible;
  }
  .module-ders-notu-image-placeholder {
    min-height: 430px;
  }
  .dn-product-image-slider {
    min-height: 430px;
  }
  /* Ortak galeri bileÅŸeni: taÅŸma/Ã¼st Ã¼ste binme yok */
  .module-ders-notu-image .awp-product-gallery,
  #dn-product-image-wrap .awp-product-gallery,
  #rulo-product-image-wrap .awp-product-gallery,
  #yeni_urun-product-image-wrap .awp-product-gallery,
  #lbt_urun-product-image-wrap .awp-product-gallery,
  #dijital-product-image-wrap .awp-product-gallery,
  #katalog-product-image-wrap .awp-product-gallery {
    position: relative;
    z-index: 1;
    overflow: visible;
  }
  .module-ders-notu-image .awp-product-gallery-thumbs,
  #dn-product-image-wrap .awp-product-gallery-thumbs,
  #rulo-product-image-wrap .awp-product-gallery-thumbs,
  #yeni_urun-product-image-wrap .awp-product-gallery-thumbs,
  #lbt_urun-product-image-wrap .awp-product-gallery-thumbs,
  #dijital-product-image-wrap .awp-product-gallery-thumbs,
  #katalog-product-image-wrap .awp-product-gallery-thumbs {
    position: relative;
    z-index: 1;
  }
  .module-ders-notu-bottom {
    gap: 10px;
  }
  /* Fiyat alanÄ±nda dikey scroll olmasÄ±n: panel iÃ§i scroll kapat, kompakt yap */
  .module-ders-notu-summary {
    max-height: none;
    overflow-y: visible;
    padding: 14px;
  }
  .module-ders-notu-summary-header {
    margin-bottom: 10px;
  }
  .module-ders-notu-summary-title {
    font-size: 18px !important;
    font-weight: 900 !important;
  }
  .module-ders-notu-cost-row {
    padding: 6px 0;
  }
  .module-ders-notu-total {
    margin-top: 10px;
    padding: 10px;
  }
  .module-ders-notu-total-value {
    font-size: 32px;
  }
  .module-ders-notu-advice {
    margin-top: 10px;
    padding: 8px;
  }
  .module-ders-notu-actions {
    margin-top: 12px;
    gap: 8px;
  }
}

/* =========================================================
   Unified Premium Tabs (Ders Notu Formu)
   Dijital BaskÄ± ile aynÄ±: yÃ¼kseklik, font, mobil yan yana. border-radius 6px, dÃ¼z renkler.
   ========================================================= */
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .dn-copy-type-tabs {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 6px !important;
  padding: 0 !important;
  margin: 0 0 12px 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Alt tip alan panelleri — form-row grid'inde image | fields; görsel ortak kalır */
#tab-content-ders-notu .module-ders-notu-form-row > .dn-subtype-panel[hidden],
#tab-content-ders-notu .module-ders-notu-form-row > .dn-subtype-panel:not(.active) {
  display: none !important;
}
#tab-content-ders-notu .module-ders-notu-form-row > .dn-subtype-panel.active {
  display: block !important;
  grid-area: form;
  min-width: 0;
}

/* Yatay: ikon sol, etiket yanÄ±nda. Dijital ile birebir aynÄ±: renk paleti, hover, active, ikon */
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .dn-copy-type-tab {
  min-width: 0;
  min-height: 48px !important;
  padding: 6px 8px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0) !important;
  background: #ff8267 !important;
  color: #f8fafc !important;
  text-align: left;
  box-shadow: 0 10px 24px rgba(2, 8, 23, 0.28) !important;
  transform: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

/* İkon: Dijital Baskı ile aynı kompakt ölçü */
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .dn-copy-type-tab .dn-copy-type-tab-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  opacity: 1;
}

:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .dn-copy-type-tab .dn-copy-type-tab-icon .dn-copy-type-tab-icon-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

/* Font ve metin: Dijital Baskı ile aynı */
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .dn-copy-type-tab .dn-copy-type-tab-text {
  flex: 1;
  min-width: 0;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-family-base, var(--font-family, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif));
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: #f8fafc;
  text-transform: uppercase;
}

/* Hover â€“ Dijital ile aynÄ± */
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .dn-copy-type-tab:hover {
  background: #f57117 !important;
  box-shadow: 0 12px 28px rgba(2, 8, 23, 0.32) !important;
}

/* SeÃ§ili (active tab) â€“ Dijital ile aynÄ± renk paleti */
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .dn-copy-type-tab.active {
  background: #d82626 !important;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.25) !important;
}

:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .dn-copy-type-tab.active .dn-copy-type-tab-icon {
  background: none !important;
  border: none !important;
}

/* Focus â€“ klavye eriÅŸimi */
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .dn-copy-type-tab:focus-visible {
  outline: none !important;
  box-shadow:
    0 0 0 2px rgba(249, 115, 22, 0.5),
    0 12px 28px rgba(2, 8, 23, 0.32) !important;
}

:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .dn-copy-type-tab.active:focus-visible {
  box-shadow:
    0 0 0 2px rgba(249, 115, 22, 0.5),
    0 0 0 4px rgba(216, 38, 38, 0.2) !important;
}

/* TÄ±klama anÄ± (:active) â€“ Dijital ile aynÄ± basÄ±lma efekti */
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .dn-copy-type-tab:active {
  transform: scale(0.98);
  box-shadow: 0 4px 12px rgba(2, 8, 23, 0.2) !important;
}

/* Mobil: hamburger menü (calculator.css); masaüstü sekmeler gizlenir */

/* ============================================
   DERS NOTU MODÜLÜ - BİRLEŞTİRİLMİŞ STILLER
   (calculator.css'den taşınan modüle özel stiller)
   Diğer modüller için örnek: module-rulo-enterprise.css, vb.
   ============================================ */

/* Ana butonlar altÄ±ndaki aÃ§Ä±klama metni - Modern Banking App Style */
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) :is(#calc-description, #skt-calc-description) {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  color: #475569;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  top: 8px;
}

@media (max-width: 640px) {
  :is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) :is(#calc-description, #skt-calc-description) {
    font-size: 10px;
    padding: 10px 12px;
  }
}

/* Copy type tab stilleri yalnÄ±zca yukarÄ±daki Unified Premium Tabs bloÄŸunda (Dijital BaskÄ± ile uyumlu). Tekrarlayan blok kaldÄ±rÄ±ldÄ±. */

@media (max-width: 640px) {
  /* Format & renk seÃ§imleri mobilde tam geniÅŸlik */
  :is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .dn-format-buttons {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  :is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .dn-format-btn:not(.awp-color-btn):not(.awp-format-size-btn) {
    min-height: 40px;
    padding: 10px 12px;
  }

  /* A4/A3 format butonları mobilde — taşma korunur */
  :is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .dn-format-buttons .awp-format-size-btn .awp-color-btn-icon,
  :is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .dn-format-buttons .awp-format-size-btn .dn-format-btn-icon {
    width: 72px;
    height: 72px;
    margin-top: -26px;
  }

  :is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .dn-format-btn.awp-format-size-btn {
    min-height: 72px;
    padding: 0 12px 10px;
  }

  /* Sayfa / kopya sayÄ±sÄ± mobilde tek sÃ¼tun */
  :is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) :is(#page-quantity-container, #skt-page-quantity-container) {
    grid-template-columns: 1fr;
  }

  :is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .ders-notu-baski-rengi-card .grid.grid-cols-2 {
    grid-template-columns: 1fr !important;
  }
}

:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap:not(.is-skt-format-color):not(.is-inline-format-color-4) .dn-color-block {
  margin-top: 0.75rem;
}

/* Ders Notu / Belge — Format + Renk tek satır (4 buton) */
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap.is-inline-format-color-4 #dn-format-split-labels,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap.is-inline-format-color-4 #dn-color-split-labels {
  display: none;
}
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap.is-inline-format-color-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: end;
  overflow: visible;
  /* padding-top: 36px; */
}
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap.is-inline-format-color-4 #dn-skt-format-color-header,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap.is-inline-format-color-4 #dn-belge-format-color-header,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap.is-inline-format-color-4 #dn-ders-notu-format-color-header {
  grid-column: 1 / -1;
  position: relative;
  z-index: 5;
  margin-bottom: 12px !important;
  background: #fff;
}
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap.is-inline-format-color-4 .dn-format-block,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap.is-inline-format-color-4 .dn-color-block,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap.is-inline-format-color-4 #dn-format-buttons-wrap,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap.is-inline-format-color-4 #dn-color-buttons-wrap {
  display: contents;
}
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap.is-inline-format-color-4 #paper-size-btn-a4,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap.is-inline-format-color-4 #paper-size-btn-a3,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap.is-inline-format-color-4 #dn-color-buttons-wrap .awp-color-btn {
  width: 100%;
  min-height: 76px !important;
  height: auto;
  margin: 40px 0 0 !important;
  padding: 0 6px 10px !important;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  overflow: visible !important;
  position: relative;
  z-index: 1;
}
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap.is-inline-format-color-4 #paper-size-btn-a4 .awp-color-btn-icon,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap.is-inline-format-color-4 #paper-size-btn-a4 .dn-format-btn-icon,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap.is-inline-format-color-4 #paper-size-btn-a3 .awp-color-btn-icon,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap.is-inline-format-color-4 #paper-size-btn-a3 .dn-format-btn-icon,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap.is-inline-format-color-4 #dn-color-buttons-wrap .awp-color-btn-icon {
  width: 104px !important;
  height: 104px !important;
  flex-shrink: 0;
  margin-top: -36px !important;
  margin-bottom: -2px;
  position: relative;
  z-index: 2;
  pointer-events: none;
}
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap.is-inline-format-color-4 #paper-size-btn-a4 .awp-color-btn-icon img,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap.is-inline-format-color-4 #paper-size-btn-a3 .awp-color-btn-icon img,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap.is-inline-format-color-4 #dn-color-buttons-wrap .awp-color-btn-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.12);
  transform-origin: center bottom;
  filter: drop-shadow(0 3px 8px rgba(15, 23, 42, 0.16));
}
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap.is-inline-format-color-4 #paper-size-btn-a4 .awp-color-btn-label,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap.is-inline-format-color-4 #paper-size-btn-a3 .awp-color-btn-label,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap.is-inline-format-color-4 #dn-color-buttons-wrap .awp-color-btn-label {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}
@media (max-width: 480px) {
  :is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap.is-inline-format-color-4 {
    gap: 12px;
    /* padding-top: 22px; */
  }
  :is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap.is-inline-format-color-4 #paper-size-btn-a4,
  :is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap.is-inline-format-color-4 #paper-size-btn-a3,
  :is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap.is-inline-format-color-4 #dn-color-buttons-wrap .awp-color-btn {
    min-height: 68px !important;
    margin-top: 32px !important;
    padding: 0 4px 8px !important;
  }
  :is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap.is-inline-format-color-4 #paper-size-btn-a4 .awp-color-btn-icon,
  :is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap.is-inline-format-color-4 #paper-size-btn-a4 .dn-format-btn-icon,
  :is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap.is-inline-format-color-4 #paper-size-btn-a3 .awp-color-btn-icon,
  :is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap.is-inline-format-color-4 #paper-size-btn-a3 .dn-format-btn-icon,
  :is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap.is-inline-format-color-4 #dn-color-buttons-wrap .awp-color-btn-icon {
    width: 88px !important;
    height: 88px !important;
    margin-top: -32px !important;
  }
}

/* SKT / Belge ikinci satır — sayfa + kopya veya sayfa + ciltleme */
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-secondary-row {
  align-items: start;
}
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-secondary-col-b > div:empty {
  display: none;
}

/* DN / SKT / alt sekmeler — renk seçici gap & padding (SKT ile aynı) */
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .awp-color-selector-buttons {
  gap: 20px !important;
  padding-top: 0 !important;
  overflow: visible;
  align-items: end;
}
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .dn-format-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  overflow: visible;
  /* padding-top: 28px; */
  align-items: end;
}

/* Sert Kapak Tez — Format başlığı + A4 yan yana */
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap.is-skt-format-color #dn-format-split-labels,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap.is-skt-format-color #dn-color-split-labels {
  display: none;
}
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap.is-skt-format-color #dn-color-block {
  display: none !important;
}
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap.is-skt-format-color {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, 140px);
  gap: 12px 16px;
  align-items: end;
  overflow: visible;
}
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap.is-skt-format-color #dn-skt-format-color-header {
  display: flex !important;
  align-items: center;
  margin-bottom: 0 !important;
  min-height: 76px;
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 3;
}
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap.is-skt-format-color .dn-format-block {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: flex-end;
  justify-content: stretch;
  margin: 0;
  min-height: 76px;
  /* İkon üstte taşsın ama blok sınırında kalsın */
  padding-top: 0;
  overflow: visible;
}
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap.is-skt-format-color #dn-format-buttons-wrap {
  display: flex;
  width: 100%;
  height: auto;
  min-height: 76px;
  padding-top: 0 !important;
  gap: 0;
  margin: 0;
  overflow: visible;
}
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap.is-skt-format-color #paper-size-btn-a3 {
  display: none !important;
}
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap.is-skt-format-color #paper-size-btn-a4 {
  width: 100%;
  min-height: 76px !important;
  height: 76px;
  margin: 0;
  padding: 4px 4px 8px !important;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap.is-skt-format-color #paper-size-btn-a4 .awp-color-btn-icon,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap.is-skt-format-color #paper-size-btn-a4 .dn-format-btn-icon {
  position: absolute !important;
  left: 50%;
  top: 2px;
  bottom: 22px;
  width: 92% !important;
  height: auto !important;
  max-width: none;
  margin: 0 !important;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
}
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap.is-skt-format-color #paper-size-btn-a4 .awp-color-btn-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.2);
  transform-origin: center center;
  filter: drop-shadow(0 2px 6px rgba(15, 23, 42, 0.14));
}
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap.is-skt-format-color #paper-size-btn-a4 .awp-color-btn-label {
  position: relative;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

/* Sert Kapak Tez — İç baskı | Kapak baskı */
.dn-skt-print-cover-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  align-items: start;
  margin-top: 16px;
}
.dn-skt-inner-print-col,
.dn-skt-cover-print-col {
  min-width: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
}
.dn-skt-inner-color-slot,
.dn-skt-cover-print-col > #dn-skt-cover-buttons-wrap {
  margin-top: 0;
}
/* Etiketler ikonların üstünde kalsın */
.dn-skt-print-cover-row > div > .awp-info-block {
  position: relative;
  z-index: 4;
  margin-bottom: 12px !important;
  padding: 0 !important;
  align-items: center !important;
  background: transparent;
}
.dn-skt-print-cover-row .awp-info-title,
.dn-skt-print-cover-row .awp-info-desc {
  position: relative;
  z-index: 4;
}
.dn-skt-print-cover-row .rulo-tooltip-wrap,
.dn-skt-print-cover-row .rulo-tooltip-btn {
  margin: 0 !important;
  flex-shrink: 0;
}
/* İkon taşması alt başlıkların üzerine binmesin — butonları aşağı kaydır */
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .dn-skt-inner-color-slot #dn-color-buttons-wrap,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .dn-skt-inner-color-slot .awp-color-selector-buttons,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-skt-cover-buttons-wrap.awp-color-selector-buttons,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-skt-cover-buttons-wrap {
  padding-top: 52px !important;
  margin-top: 8px;
  overflow: visible;
}
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .dn-skt-inner-color-slot .awp-color-btn,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .dn-skt-inner-color-slot .awp-print-type-option,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-skt-cover-buttons-wrap .awp-cover-print-option {
  width: 100%;
  height: 80px !important;
  min-height: 80px !important;
  max-height: 80px !important;
  padding: 0 6px 8px !important;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  overflow: visible !important;
  position: relative;
  z-index: 1;
}
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .dn-skt-inner-color-slot .awp-color-btn-icon,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-skt-cover-buttons-wrap .awp-color-btn-icon {
  width: 88px !important;
  height: 88px !important;
  margin-top: -36px !important;
  margin-bottom: -2px;
  flex-shrink: 0;
  pointer-events: none;
  position: relative;
  z-index: 2;
}
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .dn-skt-inner-color-slot .awp-color-btn-icon img,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-skt-cover-buttons-wrap .awp-color-btn-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.08);
  transform-origin: center bottom;
  filter: drop-shadow(0 3px 8px rgba(15, 23, 42, 0.16));
}
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .dn-skt-inner-color-slot .awp-color-btn-label,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-skt-cover-buttons-wrap .awp-color-btn-label {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  position: relative;
  z-index: 1;
  min-height: 2.3em;
  max-height: 2.3em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  width: 100%;
}
#dn-skt-cover-buttons-wrap .awp-cover-print-option.selected {
  border-color: #3b82f6;
}

.dn-skt-binding-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.45;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.dn-skt-binding-note strong {
  color: #0f172a;
  font-weight: 700;
}

@media (max-width: 640px) {
  :is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap.is-skt-format-color {
    grid-template-columns: minmax(0, 1fr) minmax(96px, 120px);
    gap: 10px 12px;
  }
  .dn-skt-print-cover-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  :is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap.is-skt-format-color #paper-size-btn-a4 {
    min-height: 68px !important;
    height: 68px;
    padding: 2px 2px 6px !important;
  }
  :is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap.is-skt-format-color #paper-size-btn-a4 .awp-color-btn-icon,
  :is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-format-color-wrap.is-skt-format-color #paper-size-btn-a4 .dn-format-btn-icon {
    width: 94% !important;
    top: 1px;
    bottom: 18px;
    margin: 0 !important;
    transform: translateX(-50%);
  }
  :is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .dn-skt-inner-color-slot .awp-color-btn,
  :is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-skt-cover-buttons-wrap .awp-cover-print-option {
    height: 72px !important;
    min-height: 72px !important;
    max-height: 72px !important;
    padding: 0 4px 8px !important;
  }
  :is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .dn-skt-inner-color-slot #dn-color-buttons-wrap,
  :is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-skt-cover-buttons-wrap {
    padding-top: 44px !important;
    margin-top: 6px;
  }
  :is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .dn-skt-inner-color-slot .awp-color-btn-icon,
  :is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #dn-skt-cover-buttons-wrap .awp-color-btn-icon {
    width: 72px !important;
    height: 72px !important;
    margin-top: -28px !important;
  }
}

/* Format/Ebat (A4/A3) — renk butonları gibi taşan görsel */
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .dn-format-btn.awp-format-size-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 0 14px 12px;
  min-height: 88px;
  cursor: pointer;
  overflow: visible !important;
  position: relative;
  z-index: 1;
}

/* A4/A3 ikon — kutudan taşıyan boyut */
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .dn-format-buttons .awp-format-size-btn .awp-color-btn-icon,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .dn-format-buttons .awp-format-size-btn .dn-format-btn-icon {
  width: 104px;
  height: 104px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -36px;
  margin-bottom: -2px;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .dn-format-buttons .awp-format-size-btn .awp-color-btn-icon img,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .dn-format-buttons .awp-format-size-btn .dn-format-btn-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.12);
  transform-origin: center bottom;
  filter: drop-shadow(0 4px 10px rgba(15, 23, 42, 0.16));
}

/* Eski compact A4/A3 â€“ awp-format-size-btn olmayanlar (varsa) */
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .dn-format-btn:not(.awp-color-btn):not(.awp-format-size-btn) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

/* Input/select/textarea - ciltleme tÃ¼rÃ¼ (dn-format-btn) ile aynÄ± hover ve aktif/focus */
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-left-col input[type="number"],
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-left-col input[type="text"],
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-left-col select,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-left-col textarea,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-fields input[type="number"],
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-fields input[type="text"],
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-fields select,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-fields .modern-select,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-instructions {
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-left-col input[type="number"]:hover,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-left-col input[type="text"]:hover,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-left-col select:hover,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-left-col textarea:hover,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-fields input[type="number"]:hover,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-fields input[type="text"]:hover,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-fields select:hover,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-fields .modern-select:hover,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-instructions:hover {
  color: #141b38 !important;
}
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-left-col input[type="number"]:focus,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-left-col input[type="text"]:focus,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-left-col select:focus,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-left-col textarea:focus,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-fields input[type="number"]:focus,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-fields input[type="text"]:focus,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-fields select:focus,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-fields .modern-select:focus,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-instructions:focus {
  color: #141b38 !important;
  border-color: #0056dd !important;
  font-weight: 500 !important;
  box-shadow:
    0 15px 35px -5px rgba(107, 114, 128, 0.5),
    0 10px 20px -5px rgba(0, 0, 0, 0.3) !important;
  outline: none;
}
/* Placeholder rengi hover/focus'ta okunabilir kalsÄ±n */
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-left-col input::placeholder,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-left-col textarea::placeholder,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-fields input::placeholder,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-instructions::placeholder {
  color: rgba(255, 255, 255, 0.7);
}
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-left-col input:hover::placeholder,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-left-col input:focus::placeholder,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-left-col textarea:hover::placeholder,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-left-col textarea:focus::placeholder,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-fields input:hover::placeholder,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-fields input:focus::placeholder,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-instructions:hover::placeholder,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .module-ders-notu-instructions:focus::placeholder {
  color: rgba(255, 255, 255, 0.85);
}

/* Format/Renk buton ikonlarÄ± */
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .dn-format-btn-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .dn-format-btn:hover .dn-format-btn-icon,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .dn-format-btn.active .dn-format-btn-icon,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez)
  .dn-format-btn.awp-print-type-option.selected
  .dn-format-btn-icon {
  opacity: 1;
}
/* A3 disabled (Ders Notu): tooltip ile neden kapalÄ± olduÄŸu anlaÅŸÄ±lÄ±r */
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .dn-format-btn.dn-format-btn-disabled-hint[disabled] {
  cursor: help;
  opacity: 0.75;
}

/* Renk SeÃ§imi - Dijital BaskÄ± ile birebir aynÄ±: renk, hover, active, gÃ¶lge yok */
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .awp-color-selector-buttons .awp-color-btn.dn-format-btn.awp-print-type-option:not(.selected),
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .awp-color-selector-buttons .awp-color-btn.ders-notu-print-option:not(.selected) {
  background: #f8fafc !important;
  border: 2px solid #e2e8f0 !important;
  color: #334155 !important;
  box-shadow: none !important;
}
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .awp-color-selector-buttons .awp-color-btn.dn-format-btn.awp-print-type-option:hover:not(.selected),
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .awp-color-selector-buttons .awp-color-btn.ders-notu-print-option:hover:not(.selected) {
  border-color: #94a3b8 !important;
  background: #f1f5f9 !important;
  box-shadow: none !important;
}
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .awp-color-selector-buttons .awp-color-btn.dn-format-btn.awp-print-type-option.selected[data-print-type="bw"],
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .awp-color-selector-buttons .awp-color-btn.ders-notu-print-option.selected[data-print-type="bw"],
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .awp-color-selector-buttons .awp-color-btn.dn-format-btn.awp-print-type-option.selected[data-print-type="colored"],
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .awp-color-selector-buttons .awp-color-btn.ders-notu-print-option.selected[data-print-type="colored"] {
  border-color: #4f46e5 !important;
  background: #4f46e5 !important;
  color: #fff !important;
  box-shadow: none !important;
}
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .awp-color-selector-buttons .awp-color-btn.dn-format-btn.awp-print-type-option.selected[data-print-type="bw"]:hover,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .awp-color-selector-buttons .awp-color-btn.ders-notu-print-option.selected[data-print-type="bw"]:hover,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .awp-color-selector-buttons .awp-color-btn.dn-format-btn.awp-print-type-option.selected[data-print-type="colored"]:hover,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .awp-color-selector-buttons .awp-color-btn.ders-notu-print-option.selected[data-print-type="colored"]:hover {
  background: #6366f1 !important;
  border-color: #6366f1 !important;
  box-shadow: none !important;
}

/* Renk SeÃ§imi - BirleÅŸik davranÄ±ÅŸ awp-form-states.css .awp-color-btn iÃ§inde */

/* ModÃ¼l header rengi */
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .ders-notu-module-header {
  background: #10b981 !important;
}

/* Eski baskÄ± rengi kartÄ± stilleri - artÄ±k kullanÄ±lmÄ±yor (renk A4/A3 gibi yerleÅŸti) */
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .ders-notu-baski-rengi-header {
  background: linear-gradient(
    90deg,
    #4c1d95 0%,
    #6d28d9 50%,
    #8b5cf6 100%
  ) !important;
  border: none;
}
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez)
  .ders-notu-baski-rengi-card
  .ders-notu-print-option.awp-print-type-option,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .ders-notu-baski-rengi-card .awp-print-type-option.ring-4,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez)
  .ders-notu-baski-rengi-card
  .awp-print-type-option.ring-blue-500,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez)
  .ders-notu-baski-rengi-card
  .awp-print-type-option.ring-gray-500 {
  position: relative;
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  transform: none;
}
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez)
  .ders-notu-baski-rengi-card
  .ders-notu-print-option.awp-print-type-option.selected
  .ders-notu-print-check,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .ders-notu-print-check {
  display: none;
}

/* Hesaplama SonuÃ§larÄ± */
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez)
  .ders-notu-hesaplama-sonuclari
  .ders-notu-hesaplama-header {
  margin-bottom: 0;
}

:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .final-total-ders-notu-gradient {
  background: linear-gradient(
    90deg,
    #3b82f6 0%,
    #6366f1 50%,
    #8b5cf6 100%
  ) !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) .final-total-ders-notu-gradient:hover {
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.4);
}

/* Form indirim rozeti kaldÄ±rÄ±ldÄ± - sadece hesaplama alanÄ±ndaki (summary) gÃ¶rÃ¼nÃ¼r */

/* KaldÄ±rÄ±ldÄ±: #ders-notu-discount-badge (form badge) - sadece summary'de indirim rozeti */
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #ders-notu-discount-badge-unused::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.4) 0%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
  pointer-events: none;
}

:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #ders-notu-discount-badge:hover::after {
  width: 200px;
  height: 200px;
}

:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #ders-notu-discount-badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #ders-notu-discount-badge:hover::before {
  left: 100%;
}

:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #ders-notu-discount-badge:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow:
    0 12px 40px rgba(139, 92, 246, 0.5),
    0 6px 20px rgba(99, 102, 241, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #ders-notu-discount-badge .ders-notu-discount-sparkle,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #ders-notu-discount-badge .dijital-discount-sparkle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  position: relative;
  z-index: 2;
}

:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #ders-notu-discount-badge .ders-notu-sparkle-icon,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #ders-notu-discount-badge .dijital-sparkle-icon {
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.95);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
  animation: dersNotuSparkleRotate 3s linear infinite;
}

:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #ders-notu-discount-badge .ders-notu-discount-text,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #ders-notu-discount-badge .dijital-discount-text {
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.5px;
  white-space: nowrap;
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #ders-notu-discount-badge .ders-notu-discount-label,
:is(#tab-content-ders-notu, #tab-content-sert-kapak-tez) #ders-notu-discount-badge .dijital-discount-label {
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.9;
  position: relative;
  z-index: 2;
  white-space: nowrap;
}

@keyframes dersNotuDiscountPulse {
  0% {
    opacity: 0;
    transform: scale(0.6) translateY(-15px) rotate(-5deg);
  }
  50% {
    transform: scale(1.15) translateY(0) rotate(2deg);
  }
  70% {
    transform: scale(0.95) translateY(0) rotate(-1deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0) rotate(0deg);
  }
}

@keyframes dersNotuSparkleRotate {
  0% {
    transform: rotate(0deg) scale(1);
    opacity: 1;
  }
  25% {
    transform: rotate(90deg) scale(1.1);
    opacity: 0.8;
  }
  50% {
    transform: rotate(180deg) scale(1);
    opacity: 1;
  }
  75% {
    transform: rotate(270deg) scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: rotate(360deg) scale(1);
    opacity: 1;
  }
}

@keyframes dersNotuDiscountGlow {
  0%,
  100% {
    box-shadow:
      0 8px 32px rgba(139, 92, 246, 0.4),
      0 4px 16px rgba(99, 102, 241, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.4),
      inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  }
  50% {
    box-shadow:
      0 8px 32px rgba(139, 92, 246, 0.6),
      0 4px 16px rgba(99, 102, 241, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.5),
      inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  }
}

/* Devam butonu ve aÃ§Ä±lan modal kaldÄ±rÄ±ldÄ± */
#mobile-sticky-action-btn,
#mobile-action-btn,
#mobile-customer-modal {
  display: none !important;
}

/* Mimarlık Proje — baskı boyutu + adet + renk; etiketler üstte, kontroller altta hizalı */
#dn-subtype-panel-mpb .dnmpb-print-options-row {
  --dnmpb-control-height: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.68fr) minmax(0, 1.35fr);
  gap: 8px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible;
  padding-top: 36px;
}
#dn-subtype-panel-mpb .dnmpb-print-options-row.is-mpb-custom-size {
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
}
#dn-subtype-panel-mpb .dnmpb-print-options-row > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: visible;
  height: 100%;
}
/* Başlık + açıklama + tooltip: üç sütunda aynı yükseklik / aynı hiza */
#dn-subtype-panel-mpb .dnmpb-print-options-row .awp-info-block {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex: 0 0 auto;
  width: 100%;
  margin-bottom: 8px !important;
  padding: 0 !important;
  min-height: 4.25rem;
  box-sizing: border-box;
}
#dn-subtype-panel-mpb .dnmpb-print-options-row .awp-info-block .rulo-tooltip-wrap {
  flex-shrink: 0;
  margin-top: 2px;
}
#dn-subtype-panel-mpb .dnmpb-print-options-row .awp-info-text-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}
#dn-subtype-panel-mpb .dnmpb-print-options-row .awp-info-title {
  display: block;
  min-height: 1.3em;
  line-height: 1.3;
  margin: 0;
}
#dn-subtype-panel-mpb .dnmpb-print-options-row .dnmpb-field-desc {
  flex: 0 0 auto;
  min-height: 2.7em;
  line-height: 1.35;
  margin: 4px 0 0 0;
}
#dn-subtype-panel-mpb .dnmpb-format-btns,
#dn-subtype-panel-mpb .dnmpb-quantity-input,
#dn-subtype-panel-mpb .dnmpb-color-btns {
  margin-top: auto;
  align-self: stretch;
  height: var(--dnmpb-control-height) !important;
  min-height: var(--dnmpb-control-height) !important;
  max-height: var(--dnmpb-control-height) !important;
  box-sizing: border-box;
}
#dn-subtype-panel-mpb .dnmpb-format-btns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  min-width: 0;
  overflow: visible;
  padding-top: 0 !important;
}
#dn-subtype-panel-mpb .dnmpb-format-btns .dnmpb-format-btn,
#dn-subtype-panel-mpb .dnmpb-format-btns .dn-format-btn.awp-format-size-btn {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  width: 100%;
  height: var(--dnmpb-control-height) !important;
  min-height: var(--dnmpb-control-height) !important;
  max-height: var(--dnmpb-control-height) !important;
  margin: 0;
  padding: 0 4px !important;
  gap: 0 !important;
  box-sizing: border-box;
  cursor: pointer;
  overflow: hidden !important;
}
#dn-subtype-panel-mpb .dnmpb-format-btns .dnmpb-format-letter {
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
}
#dn-subtype-panel-mpb .dnmpb-quantity-col {
  min-width: 0;
}
#dn-subtype-panel-mpb .dnmpb-quantity-input,
#dn-subtype-panel-mpb input.dnmpb-quantity-input[type="number"] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: var(--dnmpb-control-height) !important;
  min-height: var(--dnmpb-control-height) !important;
  max-height: var(--dnmpb-control-height) !important;
  padding: 0 8px !important;
  line-height: 1 !important;
  text-align: center;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums;
  border-width: 2px;
  border-radius: 6px;
  box-sizing: border-box;
}
#dn-subtype-panel-mpb .dnmpb-color-btns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  min-width: 0;
  overflow: visible !important;
  padding-top: 0 !important;
  align-items: end;
}
#dn-subtype-panel-mpb .dnmpb-color-btns .awp-color-btn,
#dn-subtype-panel-mpb .dnmpb-color-btns .dn-format-btn.awp-print-type-option {
  min-width: 0 !important;
  width: 100%;
  height: var(--dnmpb-control-height) !important;
  min-height: var(--dnmpb-control-height) !important;
  max-height: var(--dnmpb-control-height) !important;
  margin: 0;
  padding: 0 6px 8px !important;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  overflow: visible !important;
  position: relative;
  z-index: 1;
}
#dn-subtype-panel-mpb .dnmpb-color-btns .awp-color-btn-icon {
  width: 104px !important;
  height: 104px !important;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -40px !important;
  margin-bottom: -4px !important;
  position: relative;
  z-index: 2;
  pointer-events: none;
}
#dn-subtype-panel-mpb .dnmpb-color-btns .awp-color-btn-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.1);
  transform-origin: center bottom;
  filter: drop-shadow(0 4px 10px rgba(15, 23, 42, 0.16));
}
#dn-subtype-panel-mpb .dnmpb-color-btns .awp-color-btn-label {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.05;
  text-align: center;
  word-break: break-word;
  position: relative;
  z-index: 1;
}
@media (max-width: 639px) {
  #dn-subtype-panel-mpb .dnmpb-print-options-row {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }
  #dn-subtype-panel-mpb .dnmpb-print-options-row.is-mpb-custom-size {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  }
  #dn-subtype-panel-mpb .dnmpb-field-desc {
    display: none;
    min-height: 0;
  }
  #dn-subtype-panel-mpb .dnmpb-format-btns,
  #dn-subtype-panel-mpb .dnmpb-quantity-input,
  #dn-subtype-panel-mpb .dnmpb-color-btns {
    margin-top: 0;
  }
  #dn-subtype-panel-mpb .dnmpb-color-btns .awp-color-btn-icon {
    width: 88px !important;
    height: 88px !important;
    margin-top: -32px !important;
  }
}

/* Mimarlık Proje — özel ölçü: genişlik/yükseklik + toggle tek satır */
#dn-subtype-panel-mpb #dnmpb-extra-options-section {
  margin-top: 4px;
}
#dn-subtype-panel-mpb .rulo-extra-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 640px) {
  #dn-subtype-panel-mpb .rulo-extra-options-grid {
    grid-template-columns: 1fr;
  }
}

#dn-subtype-panel-mpb .dnmpb-custom-size-row {
  --dnmpb-custom-ctrl-h: 48px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}
#dn-subtype-panel-mpb .dnmpb-custom-dims {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  flex: 1;
  min-width: 0;
}
#dn-subtype-panel-mpb .dnmpb-custom-size-row.is-active .dnmpb-custom-dims {
  display: grid;
}
#dn-subtype-panel-mpb .dnmpb-custom-dim-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
#dn-subtype-panel-mpb .dnmpb-custom-dim-input,
#dn-subtype-panel-mpb input.dnmpb-custom-dim-input[type="number"] {
  width: 100%;
  box-sizing: border-box;
  height: var(--dnmpb-custom-ctrl-h) !important;
  min-height: var(--dnmpb-custom-ctrl-h) !important;
  max-height: var(--dnmpb-custom-ctrl-h) !important;
  padding: 0 10px !important;
  line-height: 1 !important;
  text-align: center;
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums;
  border-width: 2px;
  border-radius: 6px;
}
#dn-subtype-panel-mpb .dnmpb-custom-toggle-card {
  flex: 1 1 auto;
  min-width: 0;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
#dn-subtype-panel-mpb .dnmpb-custom-toggle-card .dnmpb-custom-size-tooltip {
  flex-shrink: 0;
}
#dn-subtype-panel-mpb .dnmpb-custom-toggle-card .awp-custom-size-info {
  flex: 1 1 auto;
  min-width: 0;
}
#dn-subtype-panel-mpb .dnmpb-custom-size-row.is-active .dnmpb-custom-toggle-card {
  flex: 0 0 auto;
  width: auto;
  max-width: 42%;
  margin-top: 0;
  height: var(--dnmpb-custom-ctrl-h);
  min-height: var(--dnmpb-custom-ctrl-h);
  max-height: var(--dnmpb-custom-ctrl-h);
  padding: 0 12px;
  gap: 8px;
  align-self: flex-end;
  align-items: center;
  box-sizing: border-box;
}
#dn-subtype-panel-mpb .dnmpb-custom-size-row.is-active .awp-custom-size-desc {
  display: none;
}
#dn-subtype-panel-mpb .dnmpb-custom-size-row.is-active .awp-custom-size-title {
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}
#dn-subtype-panel-mpb .dnmpb-custom-size-row.is-active .awp-custom-size-info {
  min-width: 0;
}
@media (max-width: 479px) {
  #dn-subtype-panel-mpb .dnmpb-custom-size-row.is-active {
    flex-wrap: wrap;
    align-items: stretch;
  }
  #dn-subtype-panel-mpb .dnmpb-custom-size-row.is-active .dnmpb-custom-dims {
    flex: 1 1 100%;
    order: 1;
  }
  #dn-subtype-panel-mpb .dnmpb-custom-size-row.is-active .dnmpb-custom-toggle-card {
    flex: 1 1 100%;
    order: 2;
    max-width: none;
    justify-content: space-between;
  }
}
