/* V30.13: A4 documents remain fully visible, without cropping. */
.notice-admin-toolbar,.notice-actions,.notice-row,.notice-page-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.notice-admin-toolbar{justify-content:space-between;margin:18px 0}.notice-row{padding:12px 0;border-bottom:1px solid #e8e0ef;justify-content:space-between}.notice-row-copy{flex:1;min-width:180px}.notice-row h3{font-size:16px;margin:0 0 4px}.notice-row small{color:#6a6374}.notice-editor{background:#faf7fd;padding:20px;border:1px solid #ded3e8;border-radius:12px;margin-top:16px}.notice-editor textarea{min-height:130px}.notice-editor input[type=date]{font:inherit;padding:10px;border:1px solid #cfc4dc;border-radius:8px;width:100%}.notice-editor details{margin:15px 0}.notice-editor summary{cursor:pointer;font-weight:600;color:#5c3a91}.notice-preview-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:14px;margin:12px 0}.notice-page{min-width:0;border:1px solid #ded3e8;border-radius:10px;background:white;padding:8px}.notice-page img{width:100%;aspect-ratio:210/297;object-fit:contain;background:#f4f1f7;display:block}.notice-page-tools{justify-content:center;margin-top:8px}.notice-page-tools button{padding:5px 8px}.notice-message{white-space:pre-line;color:#5c3a91;font-size:14px}.notice-message.error{color:#a22424}.notice-check{display:flex;align-items:center;gap:8px;margin:12px 0}.notice-check input{width:auto!important;margin:0!important}.notice-actions{margin-top:16px}.notice-doc-card{display:flex;flex-direction:column;overflow:hidden;text-align:left;background:#fff;border:1px solid #e3d9ed;border-radius:16px;padding:0;box-shadow:0 8px 25px #35215d09;color:inherit}.notice-cover{display:block;position:relative;background:#eee9f3;width:100%;padding:12px}.notice-cover img{width:100%;aspect-ratio:210/297;object-fit:contain;display:block;background:#fff}.notice-page-count{position:absolute;right:20px;bottom:20px;background:#35215de6;color:white;padding:4px 9px;border-radius:6px;font-size:12px}.notice-card-copy{padding:20px;display:flex;flex-direction:column;flex:1;gap:10px}.notice-card-copy h3{margin:0;overflow-wrap:anywhere;font-size:20px}.notice-card-copy p{margin:0;color:#6a6374;white-space:pre-line;overflow-wrap:anywhere}.notice-card-copy small{color:#786889}.notice-open{border:0;padding:10px 0;background:none;color:#5c3a91;text-align:left;cursor:pointer;font:inherit;font-weight:700;margin-top:auto}.notice-empty{grid-column:1/-1;color:#6a6374;padding:12px 0}.notice-dialog{width:min(940px,94vw);max-height:92dvh;border:0;border-radius:18px;padding:0;color:#2d2737}.notice-dialog::backdrop{background:#20152fcc}.notice-dialog-bar{position:sticky;top:0;display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 20px;background:#fff;border-bottom:1px solid #e8e0ef;z-index:1}.notice-dialog-bar button{border:1px solid #d8cde4;border-radius:8px;background:#faf7fd;padding:8px 13px;font:inherit;cursor:pointer;color:#5c3a91}.notice-detail{padding:24px}.notice-detail h2{margin:8px 0 16px;overflow-wrap:anywhere}.notice-full-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75;margin:0 0 24px}.notice-detail-page{margin:24px 0;background:#f2eef6;padding:10px;border-radius:8px}.notice-detail-page img{width:100%;height:auto;display:block;background:white}.notice-detail-page figcaption{display:flex;justify-content:space-between;gap:10px;padding:12px 2px 2px;font-size:14px}.notice-detail-page a{color:#5c3a91}.notice-fallback{padding:12px;border-left:3px solid #b690d2;background:#f7f1fc}.notice-admin-savebar{position:sticky;bottom:8px;background:white;box-shadow:0 0 20px #35215d18;border:1px solid #ded3e8;border-radius:10px;padding:12px;z-index:3}.notice-admin-savebar .actions{margin:0}
@media(max-width:600px){.notice-editor{padding:13px}.notice-row .notice-actions{width:100%;margin-top:4px}.notice-detail{padding:16px}.notice-card-copy{padding:16px}.notice-dialog{width:96vw}.notice-preview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Self-contained notice ticker; independent of the main theme animation. */
@keyframes ellNoticesTicker {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
@media (min-width: 921px) {
  #ellHotTicker .ticker-window { height:155px; overflow:hidden; }
  #ellHotTicker #ellHotList.ell-scroll {
    display:block; margin:0; padding:0; gap:0;
    animation:ellNoticesTicker var(--ell-notice-duration,21s) linear infinite !important;
    animation-play-state:running !important;
  }
  #ellHotTicker #ellHotList > .ell-hot-entry {
    display:block; width:100%; margin:0; box-sizing:border-box;
  }
  #ellHotTicker .ticker-window:hover #ellHotList.ell-scroll,
  #ellHotTicker #ellHotList.ell-scroll:has(:focus-visible) {
    animation-play-state:paused !important;
  }
}
@media (max-width: 920px) {
  #ellHotTicker #ellHotList.ell-scroll { animation:none !important; transform:none; }
  #ellHotTicker #ellHotList > .ell-notice-repeat { display:none; }
}
/* Desktop ticker remains enabled as requested, including reduced-motion mode. */
/* Điện thoại: thông báo trôi lên, khoảng cách gọn hơn */
@media (max-width: 920px) {

  #ellHotTicker .ticker-title {
    padding: 6px 12px;
    font-size: 11px;
    line-height: 1.3;
  }

  #ellHotTicker .ticker-window {
    height: 110px;
    max-height: 25vh;
    overflow: hidden;
  }

  #ellHotTicker #ellHotList.ell-scroll {
    display: block;
    margin: 0;
    padding: 0;
    gap: 0;
    animation: ellMobileNotices
      var(--ell-notice-duration, 21s)
      linear infinite !important;
    animation-play-state: running !important;
  }

  /* Hiện bản lặp để tin trôi nối tiếp liên tục */
  #ellHotTicker #ellHotList > .ell-hot-entry,
  #ellHotTicker #ellHotList > .ell-notice-repeat {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 5px 10px;
    min-height: 0;
    text-align: left;
    line-height: 1.25;
  }

  #ellHotTicker .ell-hot-entry small {
    display: block;
    margin: 0 0 1px;
    padding: 0;
    font-size: 11px;
    line-height: 1.2;
  }

  #ellHotTicker .ell-hot-entry strong {
    display: block;
    margin: 0;
    padding: 0;
    font-size: 13px;
    line-height: 1.25;
  }
}

@keyframes ellMobileNotices {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}