/* =====================================================================
   ই-পেপার
   ===================================================================== */
.dn-ep { padding: 20px 0 36px; }
.dn-ep-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; padding: 16px 22px; margin-bottom: 18px; border-top: 5px solid #1D4ED8; }
.dn-ep-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.dn-ep-title h1 { margin: 0; font-size: 26px !important; color: var(--dr-ink); }
.dn-ep-badge { display: inline-flex; align-items: center; gap: 6px; background: #E6EEFD; color: #1D4ED8; border-radius: 999px; padding: 5px 14px; font-size: 15px; }
.dn-ep-sub { color: var(--dr-muted); font-size: 15px; }
.dn-ep-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dn-ep-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--dr-line); background: #fff; color: var(--dr-ink) !important; font-size: 15px; cursor: pointer; white-space: nowrap; }
.dn-ep-btn:hover { border-color: #1D4ED8; color: #1D4ED8 !important; }
.dn-ep-btn-red { background: var(--dr-red); border-color: var(--dr-red); color: #fff !important; }
.dn-ep-btn-red:hover { background: var(--dr-red-dark); color: #fff !important; border-color: var(--dr-red-dark); }
.dn-ep-btn-ghost { background: transparent; }
.dn-ep-date input { height: 40px; border: 1px solid var(--dr-line); border-radius: 10px; padding: 0 10px; font-size: 15px; color: var(--dr-ink); background: #fff; }

.dn-ep-layout { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 18px; align-items: start; }
.dn-ep-thumbs { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; padding: 2px; scrollbar-width: thin; }
.dn-ep-thumb { display: block; background: #fff; border-radius: 10px; padding: 6px; border: 2px solid transparent; color: var(--dr-text) !important; text-align: center; font-size: 13px; }
.dn-ep-thumb img { display: block; width: 100%; height: auto; border-radius: 6px; background: #EEE; }
.dn-ep-thumb span { display: block; margin-top: 4px; }
.dn-ep-thumb:hover { border-color: #C7D4F7; }
.dn-ep-thumb.is-cur { border-color: #1D4ED8; color: #1D4ED8 !important; }

.dn-ep-main { padding: 0; overflow: hidden; }
.dn-ep-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--dr-line); }
.dn-ep-pno { font-size: 15px; color: var(--dr-ink); }
.dn-ep-tbtns { display: flex; flex-wrap: wrap; gap: 6px; }
.dn-ep-ibtn { display: inline-flex; align-items: center; gap: 6px; min-width: 40px; height: 38px; justify-content: center; padding: 0 10px; border-radius: 9px; border: 1px solid var(--dr-line); background: #fff; color: var(--dr-ink) !important; font-size: 14px; cursor: pointer; }
.dn-ep-ibtn:hover { border-color: #1D4ED8; color: #1D4ED8 !important; }
.dn-ep-crop[aria-pressed="true"] { background: #1D4ED8; border-color: #1D4ED8; color: #fff !important; }
.dn-ep-hint { background: #FFF8E1; color: #6B4E00; font-size: 14px; padding: 8px 14px; border-bottom: 1px solid #F3E2A9; }
.dn-ep-stage { position: relative; overflow: auto; max-height: 82vh; background: #E9E7EE; padding: 12px; }
.dn-ep-canvas { position: relative; width: 100%; margin: 0 auto; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.12); user-select: none; -webkit-user-select: none; }
.dn-ep-img { display: block; width: 100%; height: auto; }
.is-zoomed .dn-ep-stage { cursor: grab; }
.is-zoomed .dn-ep-stage:active { cursor: grabbing; }
.dn-ep-area { position: absolute; display: block; border: 2px solid transparent; border-radius: 3px; transition: background .15s, border-color .15s; }
.dn-ep-area span { position: absolute; left: 0; bottom: 100%; max-width: 320px; background: #17141C; color: #fff; font-size: 13px; line-height: 1.4; padding: 4px 8px; border-radius: 6px; opacity: 0; pointer-events: none; transform: translateY(-2px); transition: opacity .15s; }
.dn-ep-area:hover { background: rgba(29, 78, 216, .12); border-color: rgba(29, 78, 216, .7); }
.dn-ep-area:hover span { opacity: 1; }
.is-cropping .dn-ep-canvas { cursor: crosshair; touch-action: none; }
.is-cropping .dn-ep-area { pointer-events: none; }
.dn-ep-sel { position: absolute; border: 2px dashed #D7191F; background: rgba(215, 25, 31, .12); box-shadow: 0 0 0 9999px rgba(0,0,0,.28); pointer-events: none; }
.dn-ep-cropbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 14px; border-top: 1px solid var(--dr-line); background: #FBFAFD; }
.dn-ep-cropbar img { max-height: 140px; max-width: 260px; border: 1px solid var(--dr-line); border-radius: 6px; background: #fff; }
.dn-ep-cropacts { display: flex; flex-wrap: wrap; gap: 8px; }
.dn-ep-pager { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--dr-line); }

.dn-ep-empty { text-align: center; padding: 50px 24px; }
.dn-ep-empty-ico { display: inline-flex; width: 76px; height: 76px; border-radius: 50%; align-items: center; justify-content: center; background: #E6EEFD; color: #1D4ED8; margin-bottom: 12px; }
.dn-ep-empty h1 { font-size: 28px !important; color: var(--dr-ink); }
.dn-ep-empty p { color: var(--dr-text); max-width: 560px; margin: 0 auto 18px; }

.dn-ep-month { padding: 18px 22px; margin-bottom: 16px; }
.dn-ep-month h2 { font-size: 21px !important; color: var(--dr-ink); margin-bottom: 12px; }
.dn-ep-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.dn-ep-days a { display: flex; flex-direction: column; align-items: center; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--dr-line); color: var(--dr-ink) !important; }
.dn-ep-days a strong { font-size: 24px; line-height: 1.2; }
.dn-ep-days a span { font-size: 13px; color: var(--dr-muted); }
.dn-ep-days a:hover { border-color: #1D4ED8; background: #F3F6FE; }

.dn-ep-clipbox { padding: 18px 22px; text-align: center; }
.dn-ep-cliphead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; text-align: left; }
.dn-ep-cliphead h1 { font-size: 20px !important; margin: 0; color: var(--dr-ink); }
.dn-ep-clipimg { max-width: 100%; height: auto; border: 1px solid var(--dr-line); }
.dn-ep-clipacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }

@media (max-width: 900px) {
	.dn-ep-layout { grid-template-columns: 1fr; }
	.dn-ep-thumbs { flex-direction: row; position: static; max-height: none; overflow-x: auto; overflow-y: hidden; order: 2; }
	.dn-ep-thumb { flex: 0 0 104px; }
}
@media (max-width: 767px) {
	.dn-ep { padding: 12px 0 26px; }
	.dn-ep-bar { padding: 14px; }
	.dn-ep-title h1 { font-size: 21px !important; }
	.dn-ep-nav { width: 100%; }
	.dn-ep-btn { height: 38px; padding: 0 11px; font-size: 14px; }
	.dn-ep-stage { padding: 6px; max-height: 75vh; }
	.dn-ep-crop span { display: none; }
}
.dr-toast { position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 10px); z-index: 4000; background: #111; color: #fff; padding: 10px 18px; border-radius: 3px; font-size: 14px; opacity: 0; transition: opacity .2s ease, transform .2s ease; }
.dr-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 767px) { .dr-toast { bottom: 84px; } }
