* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #1f2933;
  background: #f4f6f8;
}
.topbar {
  height: 76px;
  background: linear-gradient(90deg, #111820, #17212b);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
}
.brand { display: flex; align-items: center; gap: 18px; }
.dha-logo {
  color: #e31b2f;
  font-size: 54px;
  font-weight: 900;
  letter-spacing: -4px;
  line-height: 1;
}
.dha-logo.small { font-size: 48px; }
.app-title { font-size: 22px; font-weight: 700; }
.app-sub { color: #aeb7c2; font-size: 12px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
button {
  border: 1px solid #d8dee6;
  background: white;
  padding: 8px 12px;
  border-radius: 7px;
  cursor: pointer;
}
button:hover { background: #f0f2f5; }
.main {
  display: grid;
  grid-template-columns: 310px 1fr;
  height: calc(100vh - 76px);
}
.sidebar {
  background: #17212b;
  color: #dbe3ec;
  padding: 18px 12px;
  overflow: auto;
}
.side-head {
  font-size: 12px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 12px;
}
.tree-actions { display: flex; gap: 8px; margin-bottom: 14px; }
.tree-actions button { flex: 1; }
.tree-desk {
  margin: 12px 0 6px;
  color: white;
  font-weight: bold;
}
.tree-folder, .tree-article {
  padding: 6px 8px;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tree-folder:hover, .tree-article:hover { background: #243443; }
.tree-folder.active, .tree-article.active { background: #b51f2d; color: white; }
.tree-article {
  color: #cbd5df;
  font-size: 13px;
}
.editor-wrap {
  padding: 18px;
  overflow: auto;
}
.toolbar, .formatbar {
  background: white;
  border: 1px solid #dce2e8;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.save-status {
  margin-left: auto;
  color: #607080;
  font-size: 13px;
}
.article-meta {
  background: white;
  border: 1px solid #dce2e8;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
}
label {
  display: block;
  font-size: 11px;
  color: #6b7785;
  font-weight: bold;
  margin: 10px 0 6px;
}
input, textarea, select {
  width: 100%;
  border: 1px solid #d5dce3;
  border-radius: 7px;
  padding: 10px;
  font-size: 14px;
}
textarea { min-height: 64px; resize: vertical; }
.readonly {
  border: 1px solid #e1e6eb;
  background: #f8fafc;
  padding: 10px;
  border-radius: 7px;
  color: #44515f;
}
.editor {
  background: white;
  border: 1px solid #dce2e8;
  border-radius: 8px;
  min-height: 430px;
  padding: 22px;
  font-size: 17px;
  line-height: 1.65;
  outline: none;
}
.footer-stats {
  display: flex;
  justify-content: space-between;
  color: #657383;
  font-size: 13px;
  padding: 10px 4px;
}
.hidden { display: none !important; }
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-box {
  width: 900px;
  max-height: 90vh;
  overflow: auto;
  background: white;
  border-radius: 12px;
  padding: 18px;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.admin-row {
  padding: 8px;
  border-bottom: 1px solid #e4e8ee;
  font-size: 13px;
}
.desk-checks label {
  display: block;
  font-weight: normal;
  font-size: 13px;
}
.login-body {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, #111820, #202b36);
}
.login-card {
  width: 380px;
  background: white;
  padding: 34px;
  border-radius: 16px;
  box-shadow: 0 20px 80px rgba(0,0,0,.25);
}
.login-title { font-size: 24px; font-weight: 800; margin-top: 8px; }
.login-sub { color: #667380; margin-bottom: 20px; }
.login-card input { margin-bottom: 10px; }
.login-card button {
  width: 100%;
  background: #c82032;
  color: white;
  border: none;
  font-weight: bold;
}
.login-error {
  margin-top: 12px;
  color: #c82032;
  font-size: 13px;
}

.spell-error {
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-color: #d71920;
  text-decoration-thickness: 2px;
  background: rgba(215, 25, 32, 0.06);
  cursor: help;
}

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

#btnNewFolder {
  display: none !important;
}

.tree-desk {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #223140;
  border-left: 4px solid #b51f2d;
  padding: 10px 9px;
  margin-top: 12px;
  margin-bottom: 5px;
  border-radius: 7px;
  cursor: pointer;
  color: #ffffff;
  font-size: 14px;
}

.tree-desk:hover {
  background: #2b3c4d;
}

.tree-desk.active {
  background: #b51f2d;
  color: #ffffff;
}

.tree-article {
  margin-left: 10px;
  margin-bottom: 3px;
  padding: 7px 9px;
  border-radius: 6px;
  color: #dbe3ec;
  cursor: pointer;
  font-size: 13px;
}

.tree-article:hover {
  background: #243443;
}

.tree-article.active {
  background: #ffffff;
  color: #111820;
  font-weight: bold;
}

.tree-empty {
  margin-left: 16px;
  padding: 5px 8px 9px;
  color: #8290a0;
  font-size: 12px;
}

.spell-error {
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-color: #d71920;
  text-decoration-thickness: 2px;
  background: rgba(215, 25, 32, 0.06);
  cursor: help;
}


.dha-logo-img {
  display: block;
  object-fit: contain;
}

.top-logo {
  height: 44px;
  width: auto;
}

.login-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #111820;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 12px;
}

.login-logo {
  height: 44px;
  width: auto;
}

.spell-error {
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-color: #d71920;
  text-decoration-thickness: 2px;
  background: rgba(215, 25, 32, 0.06);
  cursor: help;
}

.spell-error {
  text-decoration-line: underline !important;
  text-decoration-style: wavy !important;
  text-decoration-color: #d71920 !important;
  text-decoration-thickness: 2px !important;
  background: rgba(215, 25, 32, 0.08) !important;
  cursor: help;
}

.remember-row {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin: 4px 0 14px !important;
  font-size: 13px !important;
  color: #334155 !important;
  font-weight: normal !important;
}

.remember-row input {
  width: auto !important;
  margin: 0;
}

.login-note {
  margin-top: 12px;
  color: #667380;
  font-size: 12px;
  line-height: 1.4;
}

.chat-panel {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 360px;
  height: 430px;
  background: #ffffff;
  border: 1px solid #d8dee6;
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 50;
}

.chat-panel.minimized {
  height: 48px;
}

.chat-panel.minimized .chat-tabs,
.chat-panel.minimized .chat-messages,
.chat-panel.minimized .chat-send {
  display: none;
}

.chat-head {
  background: #111820;
  color: white;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-head span {
  display: block;
  color: #aeb7c2;
  font-size: 11px;
  margin-top: 2px;
}

.chat-head button {
  width: 30px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
}

.chat-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 8px;
  background: #f3f5f7;
}

.chat-tabs button {
  padding: 7px;
}

.chat-tabs button.active {
  background: #b51f2d;
  color: white;
  border-color: #b51f2d;
}

.chat-messages {
  flex: 1;
  padding: 10px;
  overflow: auto;
  background: #f8fafc;
}

.chat-msg {
  background: white;
  border: 1px solid #e1e6eb;
  border-radius: 9px;
  padding: 8px;
  margin-bottom: 8px;
}

.chat-msg.mine {
  border-left: 4px solid #b51f2d;
}

.chat-meta {
  font-size: 11px;
  color: #6b7785;
  margin-bottom: 4px;
}

.chat-text {
  font-size: 13px;
  color: #1f2933;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-send {
  display: grid;
  grid-template-columns: 1fr 78px;
  gap: 6px;
  padding: 8px;
  border-top: 1px solid #e1e6eb;
  background: white;
}

.chat-send input {
  height: 38px;
}

.chat-send button {
  background: #b51f2d;
  color: white;
  border-color: #b51f2d;
}

/* === DHA CHAT LEFT TOGGLE === */

.chat-launcher {
  position: fixed;
  left: 18px;
  bottom: 18px;
  width: 124px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #b51f2d;
  color: #ffffff;
  font-weight: bold;
  box-shadow: 0 12px 32px rgba(0,0,0,.28);
  z-index: 90;
  cursor: pointer;
}

.chat-launcher:hover {
  background: #d71920;
}

.chat-panel {
  left: 18px !important;
  right: auto !important;
  bottom: 68px !important;
  width: 300px !important;
  height: 430px !important;
  display: none !important;
  z-index: 89 !important;
}

.chat-panel.open {
  display: flex !important;
}

.chat-panel.minimized {
  height: 48px !important;
}

.chat-panel.minimized.open {
  display: flex !important;
}

/* Sol bardaki ağaç chat butonunun altında kalmasın */
.sidebar {
  padding-bottom: 72px !important;
}

/* === DHA CHAT LEFT TOGGLE END === */

/* === DHA ARTICLE STATUS BADGE === */

.tree-article {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
}

.article-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-badge {
  flex: 0 0 auto;
  font-size: 10px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 999px;
  font-weight: bold;
  background: #64748b;
  color: #ffffff;
}

.status-badge.draft {
  background: #64748b;
}

.status-badge.editing {
  background: #2563eb;
}

.status-badge.review {
  background: #d97706;
}

.status-badge.approved {
  background: #15803d;
}

.status-badge.ready {
  background: #16a34a;
}

.status-badge.archive {
  background: #475569;
}

/* === DHA ARTICLE STATUS BADGE END === */


/* === DHA SEARCH / TAG / TRASH === */

.news-search-box {
  background: #101820;
  border: 1px solid #2b3c4d;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 12px;
}

.news-search-box input,
.news-search-box select {
  height: 34px;
  font-size: 12px;
  padding: 7px;
  margin-bottom: 7px;
}

.search-filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.search-button-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}

.search-button-row button {
  padding: 7px 5px;
  font-size: 12px;
}

.search-results {
  margin-top: 10px;
  border-top: 1px solid #2b3c4d;
  padding-top: 8px;
}

.search-result-item {
  padding: 8px;
  border-radius: 7px;
  cursor: pointer;
  color: #dbe3ec;
  font-size: 12px;
  border: 1px solid transparent;
}

.search-result-item:hover {
  background: #243443;
  border-color: #3b4d5e;
}

.search-result-title {
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-meta {
  color: #93a4b5;
  font-size: 11px;
  margin-top: 3px;
}

.danger-btn {
  background: #991b1b !important;
  color: #ffffff !important;
  border-color: #991b1b !important;
}

.label-badge {
  flex: 0 0 auto;
  font-size: 10px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 999px;
  font-weight: bold;
  color: #ffffff;
  margin-left: 4px;
}

.label-badge.normal {
  display: none;
}

.label-badge.flash {
  background: #dc2626;
}

.label-badge.acil {
  background: #ea580c;
}

.label-badge.ambargo {
  background: #7c3aed;
}

.label-badge.duzeltme {
  background: #0284c7;
}

.article-badges {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.trash-box {
  width: 760px;
}

.trash-list {
  margin-top: 14px;
}

.trash-row {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #e4e8ee;
}

.trash-title {
  font-weight: bold;
}

.trash-meta {
  color: #667380;
  font-size: 12px;
  margin-top: 4px;
}

.trash-row button {
  background: #15803d;
  color: white;
  border-color: #15803d;
}

/* === DHA SEARCH / TAG / TRASH END === */



/* === DHA UNSAVED + TREE DELETE === */

.tree-article {
  position: relative;
}

.tree-delete-btn {
  flex: 0 0 auto;
  border: 0 !important;
  background: #7f1d1d !important;
  color: #ffffff !important;
  border-radius: 6px !important;
  padding: 3px 6px !important;
  font-size: 10px !important;
  line-height: 1 !important;
  margin-left: 5px !important;
  cursor: pointer;
  opacity: .78;
}

.tree-delete-btn:hover {
  opacity: 1;
  background: #dc2626 !important;
}

.article-badges {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

/* === DHA UNSAVED + TREE DELETE END === */

/* === DHA PRINT BUTTON === */

#btnPrintArticle {
  background: #111820;
  color: #ffffff;
  border-color: #111820;
}

#btnPrintArticle:hover {
  background: #263442;
}

/* === DHA PRINT BUTTON END === */

/* === DHA PRINT BUTTON === */

#btnPrintArticle {
  background: #111820;
  color: #ffffff;
  border-color: #111820;
}

#btnPrintArticle:hover {
  background: #263442;
}

/* === DHA PRINT BUTTON END === */


/* === DHA ADMIN USERS PANEL === */

.admin-users-box {
  width: 1050px;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  margin: 14px 0;
  border-bottom: 1px solid #e4e8ee;
  padding-bottom: 10px;
}

.admin-tabs button.active {
  background: #b51f2d;
  color: #fff;
  border-color: #b51f2d;
}

.admin-pane {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 22px;
}

.admin-form-card {
  background: #f8fafc;
  border: 1px solid #e4e8ee;
  border-radius: 10px;
  padding: 14px;
}

.admin-form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.admin-user-card {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 10px;
  align-items: center;
  border: 1px solid #e4e8ee;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
}

.admin-user-title {
  font-weight: bold;
}

.admin-user-meta {
  color: #667380;
  font-size: 12px;
  margin-top: 4px;
}

.admin-user-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.admin-user-actions button {
  font-size: 12px;
  padding: 7px;
}

.admin-active-row {
  margin-top: 8px !important;
}

.desk-checks {
  max-height: 170px;
  overflow: auto;
  background: #fff;
  border: 1px solid #e4e8ee;
  border-radius: 8px;
  padding: 8px;
}

.desk-checks label {
  margin: 0 0 6px !important;
}

/* === DHA ADMIN USERS PANEL END === */

/* === DHA ADMIN USER GENERATOR === */

.admin-password-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0 10px;
}

.admin-password-tools button {
  font-size: 12px;
  padding: 8px;
}

.generated-credential-box {
  margin-top: 14px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 10px;
  padding: 12px;
  font-size: 13px;
}

.generated-credential-box.hidden {
  display: none !important;
}

.generated-credential-title {
  font-weight: bold;
  margin-bottom: 8px;
  color: #9a3412;
}

.generated-credential-text {
  background: #ffffff;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 10px;
  white-space: pre-wrap;
  font-family: monospace;
  color: #111827;
  margin-bottom: 8px;
}

.generated-credential-box button {
  background: #9a3412;
  color: #ffffff;
  border-color: #9a3412;
}

.admin-help-text {
  font-size: 11px;
  color: #667380;
  margin-top: -3px;
  margin-bottom: 8px;
}

/* === DHA ADMIN USER GENERATOR END === */

/* === DHA ADMIN V2 === */

.dha-admin-v2-box {
  width: 1080px;
  max-height: 92vh;
}

.dha-admin-v2-tabs {
  display: flex;
  gap: 8px;
  margin: 14px 0;
  border-bottom: 1px solid #e4e8ee;
  padding-bottom: 10px;
}

.dha-admin-v2-tabs button.active {
  background: #b51f2d;
  color: white;
  border-color: #b51f2d;
}

.dha-admin-v2-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 22px;
}

.dha-admin-v2-card {
  background: #f8fafc;
  border: 1px solid #e4e8ee;
  border-radius: 10px;
  padding: 14px;
}

.dha-admin-v2-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0 12px;
}

.dha-admin-v2-user {
  display: grid;
  grid-template-columns: 1fr 155px;
  gap: 10px;
  align-items: center;
  border: 1px solid #e4e8ee;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
}

.dha-admin-v2-user-title {
  font-weight: bold;
}

.dha-admin-v2-user-meta {
  color: #667380;
  font-size: 12px;
  margin-top: 4px;
}

.dha-admin-v2-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.dha-admin-v2-actions button {
  font-size: 12px;
  padding: 7px;
}

/* === DHA ADMIN V2 END === */

/* === DHA LIVE EDIT BADGE === */

.live-user-badge {
  flex: 0 0 auto;
  font-size: 10px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 999px;
  font-weight: bold;
  color: #ffffff;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-user-badge.free {
  background: #16a34a;
}

.live-user-badge.editing {
  background: #dc2626;
}

.status-badge.editing {
  display: none !important;
}

/* === DHA LIVE EDIT BADGE END === */

/* === DHA ACTIVITY LOCK COLORS === */

.live-user-badge {
  flex: 0 0 auto;
  font-size: 10px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 999px;
  font-weight: bold;
  color: #ffffff;
  max-width: 128px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-user-badge.free {
  background: #16a34a !important;
}

.live-user-badge.idle {
  background: #d97706 !important;
}

.live-user-badge.editing {
  background: #dc2626 !important;
}

.status-badge.editing {
  display: none !important;
}

/* === DHA ACTIVITY LOCK COLORS END === */

/* === DHA TITLE TOOLTIP === */

.article-title {
  cursor: help;
}

.tree-article {
  cursor: pointer;
}

/* === DHA TITLE TOOLTIP END === */

/* === DHA REALTIME EDIT STATUS === */

.live-user-badge.free {
  background: #16a34a !important;
}

.live-user-badge.idle {
  background: #d97706 !important;
}

.live-user-badge.editing {
  background: #dc2626 !important;
}

/* === DHA REALTIME EDIT STATUS END === */

/* === DHA FINAL LOGO + COPYRIGHT FOOTER === */

.login-logo-wrap {
  display: flex !important;
  justify-content: center;
  align-items: center;
  background: transparent !important;
  padding: 0 !important;
  margin-bottom: 16px !important;
}

.login-logo {
  height: 58px !important;
  max-width: 230px !important;
  object-fit: contain !important;
}

.dha-page-footer {
  position: fixed;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  line-height: 1;
  transition: all .15s ease;
}

.dha-page-footer img {
  height: 18px;
  width: auto;
  object-fit: contain;
  opacity: .82;
}

.dha-page-footer:hover {
  color: #ffffff;
  text-decoration: underline;
}

.dha-page-footer:hover img {
  opacity: 1;
}

.login-footer-link {
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
}

.app-footer-link {
  right: 18px;
  bottom: 10px;
  color: rgba(17,24,32,.62);
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(216,222,230,.9);
  border-radius: 999px;
  padding: 6px 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.app-footer-link:hover {
  color: #111820;
  background: #ffffff;
}

.app-footer-link img {
  height: 16px;
}

/* Alt footer metin alanını kapatmasın */
.editor-wrap {
  padding-bottom: 38px !important;
}

/* === DHA FINAL LOGO + COPYRIGHT FOOTER END === */

/* === DHA CHAT DESK SELECT === */

.chat-desk-select-wrap {
  padding: 8px;
  background: #ffffff;
  border-bottom: 1px solid #e1e6eb;
}

.chat-desk-select-label {
  display: block;
  font-size: 11px;
  font-weight: bold;
  color: #667380;
  margin-bottom: 5px;
}

#chatDeskSelect {
  width: 100%;
  height: 34px;
  font-size: 13px;
  padding: 6px 8px;
}

.chat-desk-select-wrap.disabled {
  opacity: .55;
}

/* === DHA CHAT DESK SELECT END === */

/* === DHA CHAT SOUND NOTIFICATION === */

.chat-sound-btn {
  width: 30px;
  height: 28px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 6px !important;
  margin-right: 6px;
  background: #ffffff !important;
  color: #111820 !important;
  font-size: 14px !important;
}

.chat-head {
  gap: 6px;
}

.chat-head > div:first-child {
  flex: 1;
}

.chat-launcher.has-unread {
  animation: dhaChatPulse 1s infinite;
}

@keyframes dhaChatPulse {
  0% { box-shadow: 0 0 0 0 rgba(181,31,45,.65); }
  70% { box-shadow: 0 0 0 12px rgba(181,31,45,0); }
  100% { box-shadow: 0 0 0 0 rgba(181,31,45,0); }
}

/* === DHA CHAT SOUND NOTIFICATION END === */

/* === DHA CHAT CROSS DESK === */

.dha-toast {
  position: fixed;
  left: 18px;
  bottom: 118px;
  z-index: 180;
  background: #111820;
  color: #ffffff;
  border-left: 4px solid #16a34a;
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 13px;
  box-shadow: 0 12px 32px rgba(0,0,0,.26);
  max-width: 320px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: all .18s ease;
}

.dha-toast.show {
  opacity: 1;
  transform: translateY(0);
}

#chatDeskSelect option[data-allowed="false"] {
  color: #6b7280;
}

/* === DHA CHAT CROSS DESK END === */




/* === DHA QUICK LINKS === */

.topbar {
  gap: 14px;
  overflow: visible !important;
}

.brand {
  flex: 0 0 auto;
}

.top-actions {
  flex: 0 0 auto;
}

.quick-links {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 150px;
  overflow: visible !important;
}

.quick-links-toggle {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.20);
  background: rgba(255,255,255,.10);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.quick-links-toggle:hover {
  background: #b51f2d;
  border-color: #b51f2d;
}

.quick-links-menu {
  position: absolute;
  top: 42px;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, calc(100vw - 40px));
  background: #ffffff;
  color: #111820;
  border: 1px solid #d8dee6;
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0,0,0,.28);
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 8px;
  z-index: 300;
}

.quick-links-menu.hidden {
  display: none !important;
}

.quick-links-menu a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #f5f7fa;
  color: #111820;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid #e3e8ef;
}

.quick-links-menu a:hover {
  background: #b51f2d;
  border-color: #b51f2d;
  color: #ffffff;
}

@media (max-width: 1200px) {
  .quick-links-toggle {
    padding: 0 10px;
    font-size: 11px;
  }

  .app-sub {
    display: none;
  }

  .top-actions {
    gap: 6px;
  }

  .top-actions button {
    padding: 7px 9px;
    font-size: 12px;
  }
}

@media (max-width: 850px) {
  .topbar {
    padding: 0 10px;
    gap: 8px;
  }

  .app-title {
    font-size: 16px;
  }

  .top-logo {
    height: 34px;
  }

  .quick-links-toggle {
    font-size: 0;
    width: 42px;
    padding: 0;
  }

  .quick-links-toggle::before {
    content: "🔗";
    font-size: 17px;
  }

  .quick-links-menu {
    left: auto;
    right: -90px;
    transform: none;
    grid-template-columns: 1fr;
    width: min(320px, calc(100vw - 20px));
  }

  #meText {
    display: none;
  }
}

/* === DHA QUICK LINKS END === */

/* === DHA STRICT LOCK POPUP === */

.dha-lock-popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.42);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dha-lock-popup {
  width: 420px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 22px 80px rgba(0,0,0,.35);
  border-top: 5px solid #dc2626;
  padding: 20px;
  color: #111820;
}

.dha-lock-popup h3 {
  margin: 0 0 10px;
  color: #991b1b;
}

.dha-lock-popup p {
  margin: 0 0 14px;
  line-height: 1.45;
}

.dha-lock-popup .locked-user {
  font-weight: 900;
  color: #dc2626;
}

.dha-lock-popup button {
  width: 100%;
  background: #111820;
  color: #ffffff;
  border-color: #111820;
}

/* === DHA STRICT LOCK POPUP END === */




/* === DHA FONT SIZE FINAL WORKING === */

#btnTextBig {
  background: #b51f2d !important;
  color: #ffffff !important;
  border-color: #b51f2d !important;
  font-weight: bold !important;
  user-select: none;
}

#btnTextSmall {
  background: #334155 !important;
  color: #ffffff !important;
  border-color: #334155 !important;
  user-select: none;
}

#body span[data-dha-font-size] {
  line-height: inherit;
}

/* === DHA FONT SIZE FINAL WORKING END === */

/* DHA FONT GLOBAL HARDFIX */
#btnTextBig {
  background: #b51f2d !important;
  color: #fff !important;
  border-color: #b51f2d !important;
  font-weight: bold !important;
}
#btnTextSmall {
  background: #334155 !important;
  color: #fff !important;
  border-color: #334155 !important;
}
#body span[data-dha-font-size] {
  line-height: inherit;
}

/* DHA CASE BUTTONS FINAL */
#btnTextBig {
  background: #b51f2d !important;
  color: #fff !important;
  border-color: #b51f2d !important;
  font-weight: bold !important;
}

#btnTextSmall {
  background: #334155 !important;
  color: #fff !important;
  border-color: #334155 !important;
}

/* DHA CASE MOUSEDOWN FINAL */
#btnTextBig {
  background: #b51f2d !important;
  color: #fff !important;
  border-color: #b51f2d !important;
  font-weight: bold !important;
}
#btnTextSmall {
  background: #334155 !important;
  color: #fff !important;
  border-color: #334155 !important;
}

/* DHA CASE FINAL REBUILD */
#btnTextBig {
  background: #b51f2d !important;
  color: #fff !important;
  border-color: #b51f2d !important;
  font-weight: bold !important;
}
#btnTextSmall {
  background: #334155 !important;
  color: #fff !important;
  border-color: #334155 !important;
}
