/* ATAD One – Chat */

.one-pane-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.one-pane-title-row h2 { margin: 0; }
.one-pane-title-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
}
.one-pane-title-row .one-icon-btn[hidden],
.one-noti-menu-wrap[hidden] { display: none !important; }
.one-icon-btn-users-plus {
  position: relative;
}
.one-icon-btn-users-plus .one-users-plus-mark {
  position: absolute;
  right: 4px;
  bottom: 4px;
  stroke-width: 2.75;
  background: #f0f3f8;
  border-radius: 99px;
}

.one-pane-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}
.one-pane-tabs[hidden] { display: none !important; }
.one-pane-tab {
  flex: 1;
  border: 0;
  background: #f0f3f8;
  color: #5c6f8a;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
}
.one-pane-tab.is-active {
  background: #e8f0fc;
  color: #1a5fcc;
}
.one-pane-tab:hover:not(.is-active) { background: #e6ebf3; }

.one-row-pin {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: #1a5fcc;
  margin-top: 2px;
}
.one-row-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  align-self: center;
}
.one-row-more-btn {
  border: 0;
  background: transparent;
  color: #8aa0b8;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
}
.one-row:hover .one-row-more-btn,
.one-row.is-menu-open .one-row-more-btn,
.one-row-more-btn.is-on { opacity: 1; }
.one-row-more-btn:hover,
.one-row-more-btn.is-on {
  color: #1a5fcc;
  background: #e8f0fc;
}
.one-row-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 30;
  min-width: 190px;
  padding: 4px;
  background: #fff;
  border: 1px solid rgba(11,26,46,.1);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(11,26,46,.16);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.one-row-menu[hidden] { display: none !important; }
.one-row-menu button {
  border: 0;
  background: transparent;
  text-align: left;
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: #0b1a2e;
  cursor: pointer;
}
.one-row-menu button:hover { background: #f4f7fb; }
.one-row-menu button.is-danger { color: #c8341b; }
.one-row-menu button.is-danger:hover { background: #fde8e4; }

.one-contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid rgba(11,26,46,.05);
  background: transparent;
  font: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
  box-sizing: border-box;
}
.one-contact-row:hover { background: #f4f7fb; }
.one-contact-main { flex: 1; min-width: 0; }
.one-contact-avatar {
  width: 42px;
  height: 42px;
  font-size: 12px;
}
.one-contact-name,
.one-person-name {
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #0b1a2e;
}
.one-person-job,
.one-person-dept,
.one-contact-sub {
  font-size: 11px;
  font-weight: 400;
  color: #5c6f8a;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.one-person-dept {
  margin-top: 1px;
}
.one-contact-sub {
  margin-top: 1px;
}
.one-contact-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  align-items: center;
}
.one-contact-msg-btn {
  color: #1a5fcc;
  pointer-events: none;
}
.one-contact-row:hover .one-contact-msg-btn {
  background: #e8f0fc;
  color: #174ea8;
}
.one-mini-btn {
  border: 1px solid rgba(11,26,46,.12);
  background: #fff;
  color: #0c1e38;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  padding: 5px 8px;
  cursor: pointer;
  white-space: nowrap;
}
.one-mini-btn:hover { background: #f4f7fb; }
.one-mini-btn.is-primary {
  background: #1a5fcc;
  border-color: #1a5fcc;
  color: #fff;
}
.one-mini-btn.is-primary:hover { background: #174ea8; }
.one-mini-btn.is-ghost {
  background: transparent;
  color: #5c6f8a;
}
.one-mini-btn:disabled {
  opacity: .55;
  cursor: default;
}

#stage-chat {
  position: relative;
}
.one-chat-drop-hint {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  top: 52px;
  z-index: 20;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  border: 2px dashed rgba(26, 95, 204, 0.55);
  background: rgba(255, 255, 255, 0.92);
  color: #1a5fcc;
  font-size: 14px;
  font-weight: 650;
  pointer-events: none;
  box-shadow: 0 8px 28px rgba(11, 26, 46, 0.12);
}
#stage-chat.is-chat-dragover .one-chat-drop-hint {
  display: flex;
}

.one-chat-history-bar {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  pointer-events: none;
  max-width: calc(100% - 24px);
}
.one-chat-history-bar[hidden] {
  display: none !important;
}
.one-chat-history-more-btn {
  pointer-events: auto;
  border: 1px solid rgba(11, 26, 46, 0.1);
  background: #fff;
  color: #5c6f8a;
  font: inherit;
  font-size: 12.5px;
  font-weight: 400;
  cursor: pointer;
  padding: 7px 14px;
  border-radius: 999px;
  line-height: 1.35;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(11, 26, 46, 0.1);
}
.one-chat-history-more-btn:hover:not(:disabled) {
  color: #1a5fcc;
  border-color: rgba(26, 95, 204, 0.25);
}
.one-chat-history-more-btn:disabled {
  opacity: 0.65;
  cursor: default;
}

.one-chat-head-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.one-icon-btn {
  border: 0;
  background: #f0f3f8;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #0c1e38;
}
.one-icon-btn:hover { background: #e4eaf3; }
.one-icon-btn.is-on {
  background: #e8f0fc;
  color: #1a5fcc;
}

.one-bubble-wrap {
  position: relative;
  max-width: min(560px, 86%);
  width: fit-content;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-self: flex-start;
  align-items: flex-start;
  margin-right: auto;
  margin-left: 0;
  overflow: visible;
  z-index: 1;
}
.one-bubble-wrap:hover,
.one-bubble-wrap:focus-within,
.one-bubble-wrap.is-actions-open {
  z-index: 6;
}
.one-bubble-wrap.is-me {
  align-self: flex-end;
  align-items: flex-end;
  margin-left: auto;
  margin-right: 0;
}
.one-bubble-wrap.is-recalled .one-bubble-body {
  background: transparent !important;
  border-style: dashed !important;
  color: #8aa0b8 !important;
  font-style: italic;
}
.one-bubble-wrap.is-me.is-recalled .one-bubble-body {
  background: #eff6ff !important;
  border-color: rgba(26,95,204,.25) !important;
  color: #7a93b0 !important;
}

.one-bubble-main {
  position: relative;
  overflow: visible;
  max-width: 100%;
}
.one-bubble-body {
  background: #fff;
  border: 1px solid rgba(11,26,46,.08);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.45;
  position: relative;
  max-width: 100%;
  word-break: break-word;
}
.one-bubble-body.is-text { white-space: pre-wrap; }
.one-bubble-wrap.is-me .one-bubble-body {
  background: #dbeafe;
  color: #0b1a2e;
  border-color: #bfdbfe;
}
.one-bubble-reply {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  border: 0;
  border-left: 2px solid #1a5fcc;
  background: rgba(11,26,46,.04);
  border-radius: 4px;
  padding: 4px 8px;
  margin-bottom: 6px;
  font: inherit;
  font-size: 11px;
  color: #5c6f8a;
  cursor: pointer;
}
.one-bubble-reply:hover {
  background: rgba(26,95,204,.12);
  color: #0b1a2e;
}
.one-bubble-wrap.is-me .one-bubble-reply {
  background: rgba(26,95,204,.08);
  border-left-color: #1a5fcc;
  color: #5c6f8a;
}
.one-bubble-wrap.is-me .one-bubble-reply:hover {
  background: rgba(26,95,204,.16);
}
.one-bubble-reply strong {
  display: block;
  font-size: 10px;
  margin-bottom: 1px;
}
.one-bubble-wrap.is-jump-target .one-bubble-body {
  outline: 2px solid #1a5fcc;
  outline-offset: 2px;
  animation: one-jump-flash 1.4s ease;
}
@keyframes one-jump-flash {
  0% { box-shadow: 0 0 0 0 rgba(26,95,204,.45); }
  40% { box-shadow: 0 0 0 6px rgba(26,95,204,.18); }
  100% { box-shadow: 0 0 0 0 rgba(26,95,204,0); }
}

.one-msg-actions {
  position: absolute;
  top: 50%;
  /* Dính sát mép phải bubble + cầu hover (::before) để không mất khi rê chuột */
  left: 100%;
  right: auto;
  transform: translate(4px, -50%);
  display: none;
  align-items: center;
  gap: 2px;
  background: #fff;
  border: 1px solid rgba(11,26,46,.1);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(11,26,46,.14);
  padding: 2px;
  z-index: 8;
  white-space: nowrap;
  pointer-events: auto;
}
/* Cầu hit-area nối bubble ↔ toolbar (tránh khoảng trống làm mất :hover) */
.one-msg-actions::before {
  content: "";
  position: absolute;
  top: -8px;
  bottom: -8px;
  left: -14px;
  width: 14px;
}
/* Tin mình (phải): toolbar nằm bên trái bubble */
.one-bubble-wrap.is-me .one-msg-actions {
  left: auto;
  right: 100%;
  transform: translate(-4px, -50%);
}
.one-bubble-wrap.is-me .one-msg-actions::before {
  left: auto;
  right: -14px;
}
.one-bubble-wrap:hover .one-msg-actions,
.one-bubble-wrap:focus-within .one-msg-actions,
.one-bubble-wrap.is-actions-open .one-msg-actions { display: flex; }
.one-msg-actions button {
  border: 0;
  background: transparent;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #5c6f8a;
}
.one-msg-actions button:hover { background: #f4f7fb; color: #0c1e38; }
.one-msg-actions button.is-liked { color: #e11d48; }
.one-msg-more {
  position: relative;
  display: inline-flex;
}
.one-msg-more-btn.is-on {
  background: #f4f7fb;
  color: #0c1e38;
}
.one-msg-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 40;
  min-width: 160px;
  padding: 4px;
  background: #fff;
  border: 1px solid rgba(11, 26, 46, 0.1);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(11, 26, 46, 0.16);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.one-msg-menu[hidden] {
  display: none !important;
}
.one-msg-menu button {
  border: 0;
  background: transparent;
  text-align: left;
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  font: inherit;
  font-size: 10px;
  font-weight: 400;
  color: #0b1a2e;
  cursor: pointer;
}
.one-msg-menu button:hover {
  background: #f4f7fb;
}
.one-msg-menu button.is-danger {
  color: #c8341b;
}
.one-msg-menu button.is-danger:hover {
  background: #fde8e4;
}

.one-msg-like {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 700;
  color: #e11d48;
  background: #fff;
  border: 1px solid rgba(225,29,72,.2);
  border-radius: 99px;
  padding: 1px 6px 1px 4px;
}

.one-msg-photo {
  display: block;
  max-width: 260px;
  max-height: 220px;
  border-radius: 6px;
  cursor: zoom-in;
  object-fit: cover;
}
.one-msg-caption {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.4;
}

.one-msg-album {
  display: grid;
  grid-template-columns: repeat(2, 110px);
  gap: 4px;
  max-width: 228px;
}
.one-msg-album button {
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  height: 90px;
}
.one-msg-album img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.one-msg-album-more {
  position: absolute;
  inset: 0;
  background: rgba(11,26,46,.48);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.one-msg-link {
  display: flex;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  max-width: 320px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(11,26,46,.04);
  border: 1px solid rgba(11,26,46,.08);
}
.one-bubble-wrap.is-me .one-msg-link {
  background: rgba(255,255,255,.55);
  border-color: rgba(26,95,204,.18);
  color: #0b1a2e;
}
.one-msg-link-thumb {
  width: 84px;
  height: 84px;
  object-fit: cover;
  flex-shrink: 0;
  background: #d6deea;
}
.one-msg-link-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5c6f8a;
}
.one-msg-link-body {
  padding: 8px 10px 8px 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.one-msg-link-body strong {
  font-size: 12.5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.one-msg-link-desc {
  font-style: normal;
  font-size: 11px;
  opacity: .82;
  margin-top: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}
.one-msg-link-body span {
  font-size: 11px;
  opacity: .75;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.one-msg-file {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 220px;
  max-width: 320px;
  padding: 4px 2px;
}
.one-msg-file-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  letter-spacing: .02em;
}
.one-msg-file-icon.is-pdf { background: #c8341b; }
.one-msg-file-icon.is-xls,
.one-msg-file-icon.is-xlsx { background: #0e9a6e; }
.one-msg-file-icon.is-doc,
.one-msg-file-icon.is-docx { background: #1a5fcc; }
.one-msg-file-icon.is-zip { background: #7c3aed; }
.one-msg-file-icon.is-ppt,
.one-msg-file-icon.is-pptx { background: #d97706; }
.one-msg-file-icon.is-img { background: #0891b2; }
.one-msg-file-icon.is-audio { background: #7c3aed; }
.one-msg-file-icon.is-default { background: #5c6f8a; }
.one-msg-file-meta { min-width: 0; }
.one-msg-file-meta strong {
  display: block;
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.one-msg-file-meta span {
  font-size: 11px;
  opacity: .75;
}
.one-bubble-wrap.is-me .one-msg-file { color: #0b1a2e; }

.one-msg-audio {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 240px;
  max-width: 320px;
}
.one-msg-audio-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #7c3aed;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.one-msg-audio-main {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.one-msg-audio audio {
  width: 100%;
  height: 32px;
  max-width: 240px;
}
.one-msg-audio-title {
  font-size: 11px;
  opacity: .8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.one-bubble-wrap.is-me .one-msg-audio-title { color: #0b1a2e; opacity: .75; }
.one-composer-tool.is-recording {
  background: #fde8e4;
  color: #c8341b;
}
.one-composer-audio-preview audio {
  width: 100%;
  max-width: 220px;
  height: 28px;
  margin-top: 4px;
  display: block;
}

.one-chat-peer-inactive {
  flex-shrink: 0;
  text-align: center;
  padding: 10px 16px;
  font-size: 12.5px;
  font-weight: 500;
  color: #dc2626;
  background: #fef2f2;
  border-top: 1px solid rgba(220, 38, 38, 0.15);
}
.one-chat-peer-inactive[hidden] {
  display: none !important;
}
.one-composer-wrap.is-composer-locked {
  opacity: 0.72;
  pointer-events: none;
  user-select: none;
}

.one-composer-wrap {
  flex-shrink: 0;
  background: #fff;
  border-top: 1px solid rgba(11,26,46,.09);
  position: relative;
}
.one-reply-bar {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 0;
  font-size: 12px;
  color: #5c6f8a;
}
.one-reply-bar.is-on { display: flex; }
.one-reply-bar strong { color: #0c1e38; }
.one-reply-bar-text {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.one-composer-wrap .one-composer { border-top: 0; }

.one-mention-list {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 100%;
  margin-bottom: 4px;
  max-height: 220px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid rgba(11, 26, 46, 0.12);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(11, 26, 46, 0.14);
  z-index: 30;
  padding: 4px;
}
.one-mention-list[hidden] {
  display: none !important;
}
.one-mention-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: inherit;
}
.one-mention-option:hover,
.one-mention-option.is-active {
  background: #e8f0fc;
}
.one-mention-option .one-row-avatar {
  width: 32px;
  height: 32px;
  font-size: 10px;
}
.one-mention-option-main {
  min-width: 0;
  flex: 1;
}
.one-mention-option-name {
  font-size: 12.5px;
  font-weight: 500;
  color: #0b1a2e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.one-mention-option-sub {
  font-size: 11px;
  color: #5c6f8a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.one-bubble-body.is-text .one-mention {
  color: #1a5fcc;
  font-weight: 600;
  background: rgba(26, 95, 204, 0.1);
  border-radius: 4px;
  padding: 0 2px;
}

.one-composer-tools {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  width: 100%;
}
.one-composer-tool {
  border: 0;
  background: transparent;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #5c6f8a;
  padding: 0;
}
.one-composer-tool:hover,
.one-composer-tool.is-on {
  background: #e8f0fc;
  color: #1a5fcc;
}

.one-composer-panel {
  border-bottom: 1px solid rgba(11,26,46,.08);
  background: #f8fafc;
  padding: 10px 12px;
  max-height: 220px;
  overflow: auto;
}
.one-composer-panel[hidden] { display: none !important; }
.one-composer-panel-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #5c6f8a;
  margin-bottom: 8px;
}
.one-emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 4px;
}
.one-emoji-grid button {
  border: 0;
  background: transparent;
  border-radius: 6px;
  height: 34px;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}
.one-emoji-grid button:hover { background: #e8f0fc; }

.one-composer-contact-list {
  margin-top: 8px;
  max-height: 150px;
  overflow: auto;
}
.one-composer-contact-list .one-share-row {
  padding: 8px;
  border-radius: 8px;
}

.one-composer-attach {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 0;
}
.one-composer-attach[hidden] { display: none !important; }
.one-composer-attach-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  background: #f4f7fb;
  border: 1px solid rgba(11,26,46,.08);
  border-radius: 8px;
  padding: 8px 10px;
}
.one-composer-attach-preview img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.one-composer-attach-thumbs {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.one-composer-attach-thumbs img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 5px;
}
.one-composer-attach-meta {
  min-width: 0;
  flex: 1;
}
.one-composer-attach-meta strong {
  display: block;
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.one-composer-attach-meta span {
  font-size: 11px;
  color: #5c6f8a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
  line-height: 1.35;
}
.one-composer-link-preview {
  align-items: flex-start;
}
.one-composer-link-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: #d6deea;
}
.one-composer-link-thumb--empty,
.one-composer-link-thumb--loading {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5c6f8a;
}
.one-composer-link-thumb--loading {
  position: relative;
  overflow: hidden;
}
.one-composer-link-thumb--loading::after {
  content: "";
  width: 18px;
  height: 18px;
  border: 2px solid rgba(26,95,204,.2);
  border-top-color: #1a5fcc;
  border-radius: 50%;
  animation: one-link-spin .7s linear infinite;
}
@keyframes one-link-spin {
  to { transform: rotate(360deg); }
}

.one-msg-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  max-width: 300px;
  width: 100%;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(11,26,46,.08);
  background: rgba(11,26,46,.03);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
  box-sizing: border-box;
  transition: background .15s ease, border-color .15s ease;
}
.one-msg-contact:hover {
  background: rgba(26,95,204,.06);
  border-color: rgba(26,95,204,.18);
}
.one-msg-contact-avatar {
  width: 48px;
  height: 48px;
  font-size: 13px;
}
.one-msg-contact-meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.one-msg-contact-meta strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #0b1a2e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.one-msg-contact-job,
.one-msg-contact-dept,
.one-msg-contact-meta > span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #5c6f8a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.one-msg-contact-dept {
  margin-top: 1px;
}
.one-bubble-wrap.is-me .one-msg-contact {
  color: #0b1a2e;
  background: rgba(255,255,255,.65);
  border-color: rgba(26,95,204,.16);
}
.one-bubble-wrap.is-me .one-msg-contact:hover {
  background: rgba(255,255,255,.85);
}

.one-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(8,16,28,.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.one-lightbox[hidden] { display: none !important; }
.one-lightbox-toolbar {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 8px;
  z-index: 2;
}
.one-lightbox-close,
.one-lightbox-nav {
  border: 0;
  background: rgba(255,255,255,.12);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.one-lightbox-close:hover,
.one-lightbox-nav:hover { background: rgba(255,255,255,.22); }
.one-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}
.one-lightbox-nav.is-prev { left: 16px; }
.one-lightbox-nav.is-next { right: 16px; }
.one-lightbox-nav[hidden] { display: none !important; }
.one-lightbox-img {
  max-width: min(960px, 92vw);
  max-height: 82vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.one-lightbox-caption {
  margin-top: 12px;
  color: rgba(255,255,255,.85);
  font-size: 13px;
  text-align: center;
  max-width: 640px;
}
.one-lightbox-count {
  position: absolute;
  top: 22px;
  left: 20px;
  color: rgba(255,255,255,.8);
  font-size: 12px;
  font-weight: 600;
}

.one-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: #0c1e38;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(11,26,46,.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 140;
}
.one-toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.one-confirm {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.one-confirm[hidden] { display: none !important; }
.one-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8,16,28,.48);
}
.one-confirm-card {
  position: relative;
  z-index: 1;
  width: min(380px, 100%);
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(11,26,46,.08);
  box-shadow: 0 18px 48px rgba(11,26,46,.28);
  padding: 22px 20px 16px;
  text-align: center;
}
.one-confirm-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: #fde8e4;
  color: #c8341b;
  display: flex;
  align-items: center;
  justify-content: center;
}
.one-confirm-card h2 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #0b1a2e;
}
.one-confirm-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #5c6f8a;
}
.one-confirm-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.one-confirm-btn {
  flex: 1;
  border-radius: 8px;
  border: 1px solid rgba(11,26,46,.12);
  background: #fff;
  color: #0c1e38;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  padding: 10px 12px;
  cursor: pointer;
}
.one-confirm-btn:hover { background: #f4f7fb; }
.one-confirm-btn.is-danger {
  background: #c8341b;
  border-color: #c8341b;
  color: #fff;
}
.one-confirm-btn.is-danger:hover { background: #a82b16; }

.one-share-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.one-share-modal[hidden] { display: none !important; }
.one-share-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8,16,28,.45);
}
.one-share-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  max-height: min(560px, calc(100vh - 32px));
  background: #fff;
  border-radius: 10px;
  border: 1px solid rgba(11,26,46,.1);
  box-shadow: 0 18px 48px rgba(11,26,46,.28);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 12px;
  box-sizing: border-box;
}
.one-share-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(11,26,46,.08);
}
.one-share-head > div {
  flex: 1;
  min-width: 0;
}
.one-share-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}
.one-share-preview {
  margin: 12px 0 0;
  padding: 12px 14px;
  font-size: 13px;
  color: #0b1a2e;
  background: #f4f7fb;
  border: 1px solid rgba(11,26,46,.08);
  border-radius: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}
.one-share-search {
  margin: 14px 0 0;
  width: 100%;
  box-sizing: border-box;
}
.one-share-list {
  flex: 1;
  overflow: auto;
  min-height: 0;
  padding: 12px 0 0;
}
.one-share-list .one-pane-section {
  padding-left: 0;
  padding-right: 0;
}
.one-share-row {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  cursor: pointer;
  text-align: left;
  color: inherit;
  border-radius: 8px;
  box-sizing: border-box;
}
.one-share-row:hover { background: #f4f7fb; }
.one-share-row.one-person-row {
  align-items: flex-start;
}
.one-share-row.one-person-row .one-row-avatar {
  margin-top: 1px;
}
.one-share-row-main { min-width: 0; flex: 1; }
.one-share-row-name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.one-share-row-sub {
  font-size: 11px;
  color: #5c6f8a;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.one-share-row .one-person-job,
.one-share-row .one-person-dept {
  font-size: 11px;
  font-weight: 400;
  color: #5c6f8a;
}
.one-share-empty {
  padding: 18px 0;
  font-size: 12px;
  color: #5c6f8a;
  text-align: center;
}

.one-group-avatar-block {
  display: flex;
  justify-content: center;
  padding-top: 4px;
}
.one-group-create-avatar,
.one-group-create-avatar .one-row-avatar {
  width: 72px;
  height: 72px;
  font-size: 18px;
}
.one-group-label {
  display: block;
  margin: 12px 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #5c6f8a;
}
.one-group-label:first-of-type { margin-top: 4px; }
.one-group-check {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid rgba(11,26,46,.22);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.one-share-row.is-selected .one-group-check {
  background: #1a5fcc;
  border-color: #1a5fcc;
}
.one-share-row.is-selected { background: #e8f0fc; }
.one-group-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid rgba(11,26,46,.08);
}
.one-group-count {
  flex: 1;
  font-size: 12px;
  color: #5c6f8a;
  font-weight: 600;
}
.one-group-foot .one-mini-btn.is-primary:disabled {
  opacity: .45;
  cursor: default;
}

.one-bubble-shared {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: #5c6f8a;
  margin-bottom: 6px;
}
.one-bubble-wrap.is-me .one-bubble-shared {
  color: #5c6f8a;
}

.one-pane-section {
  padding: 10px 12px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #8aa0b8;
}

/* ── Notification menu ── */
.one-noti-menu-wrap { position: relative; }
.one-noti-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  width: 200px;
  background: #fff;
  border: 1px solid rgba(11,26,46,.1);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(11,26,46,.18);
  padding: 6px;
}
.one-noti-menu[hidden] { display: none !important; }
.one-noti-menu-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #8aa0b8;
  padding: 6px 8px 4px;
}
.one-noti-menu-rule {
  height: 1px;
  background: rgba(11,26,46,.08);
  margin: 4px 6px;
}
.one-noti-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  background: transparent;
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
  text-align: left;
  color: #0b1a2e;
  font-size: 12.5px;
  font-weight: 550;
}
.one-noti-menu button:hover { background: #f4f7fb; }
.one-noti-menu button.is-danger { color: #c8341b; }
.one-noti-menu button.is-danger:hover { background: #fde8e4; }
.one-noti-menu-check { opacity: 0; color: #1a5fcc; flex-shrink: 0; }
.one-noti-menu button.is-active .one-noti-menu-check { opacity: 1; }

/* ── Notification ── */
.one-noti-group {
  border-bottom: 1px solid rgba(11,26,46,.08);
}
.one-noti-group:last-child { border-bottom: 0; }
.one-noti-group-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px 8px 8px;
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom: 1px solid rgba(11,26,46,.06);
}
.one-noti-group-toggle {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  padding: 2px 0;
}
.one-noti-group-toggle:hover { opacity: .92; }
.one-noti-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  cursor: pointer;
}
.one-noti-check input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #1a5fcc;
  cursor: pointer;
}
.one-noti-item {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  padding-left: 8px;
  border-bottom: 1px solid rgba(11,26,46,.04);
}
.one-noti-item:last-child { border-bottom: 0; }
.one-noti-item.is-active { background: #e8f0fc; }
.one-noti-item-btn {
  flex: 1;
  min-width: 0;
  border-bottom: 0 !important;
  padding-left: 4px !important;
}
.one-noti-item .one-noti-check { margin-top: 12px; }
.one-noti-group-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.one-noti-group-title {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.one-noti-group-title strong {
  font-size: 12.5px;
  font-weight: 700;
}
.one-noti-group-count {
  font-size: 11px;
  font-weight: 700;
  color: #5c6f8a;
  white-space: nowrap;
}
.one-noti-group-chevron {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5c6f8a;
  flex-shrink: 0;
}
.one-noti-group-body { background: #fff; }
.one-noti-group .one-row {
  padding-left: 12px;
  padding-right: 12px;
}
.one-noti-pager {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 10px;
  border-top: 1px solid rgba(11,26,46,.05);
  background: #fafbfd;
}
.one-noti-page-btn {
  border: 1px solid rgba(11,26,46,.12);
  background: #fff;
  color: #0c1e38;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}
.one-noti-page-btn:hover:not(:disabled) { background: #e8f0fc; border-color: rgba(26,95,204,.35); }
.one-noti-page-btn:disabled {
  opacity: .4;
  cursor: default;
}
.one-noti-page-info {
  flex: 1;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #5c6f8a;
}
.one-noti-row-status {
  display: inline-block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #b45309;
}
.one-noti-row-status.is-ok { color: #0e9a6e; }
.one-noti-row-status.is-no { color: #c8341b; }

.one-noti-body {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
.one-noti-body.is-voucher {
  padding: 16px 18px 20px;
}

/* ── Notification · phiếu đề nghị thanh toán (2 cột) ── */
.one-pr-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 14px;
  align-items: start;
}
.one-pr-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.one-pr-main .one-noti-summary,
.one-pr-main .one-noti-detail { margin-bottom: 14px; }
.one-pr-main .one-noti-actions { margin-bottom: 0; }
.one-pr-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.one-pr-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
  font-size: 12.5px;
}
.one-pr-table th,
.one-pr-table td {
  padding: 9px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(11, 26, 46, 0.05);
  vertical-align: top;
}
.one-pr-table th {
  background: #f8fafc;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5c6f8a;
  white-space: nowrap;
}
.one-pr-table tbody tr:last-child td { border-bottom: 0; }
.one-pr-table td.is-num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.one-pr-empty {
  text-align: center !important;
  color: #8aa0b8;
  font-size: 12px;
  padding: 16px 14px !important;
}
.one-pr-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  position: sticky;
  top: 0;
}
.one-pr-box {
  background: #fff;
  border: 1px solid rgba(11, 26, 46, 0.09);
  border-radius: 8px;
  padding: 12px 14px 14px;
}
.one-pr-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.one-pr-box-head h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}
.one-pr-chip {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
  padding: 3px 8px;
  border-radius: 99px;
}
.one-pr-chip.is-pending { background: #fff4e5; color: #b45309; }
.one-pr-chip.is-ok { background: #e7f6ee; color: #0e9a6e; }
.one-pr-chip.is-no { background: #fde8e4; color: #c8341b; }
.one-pr-field label {
  display: block;
  font-size: 11px;
  font-weight: 650;
  color: #3d4f66;
  margin-bottom: 4px;
}
.one-pr-field .req { color: #c8341b; }
.one-pr-input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(11, 26, 46, 0.12);
  background: #f8fafc;
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
  font-size: 12.5px;
  color: #0b1a2e;
  box-sizing: border-box;
}
.one-pr-input:focus {
  outline: 2px solid rgba(26, 95, 204, 0.28);
  outline-offset: 0;
  background: #fff;
  border-color: rgba(26, 95, 204, 0.45);
}
.one-pr-textarea { min-height: 72px; resize: vertical; }
.one-pr-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 88px;
  min-height: 34px;
  padding: 7px 16px;
  border: 0;
  border-radius: 6px;
  background: #1a5fcc;
  color: #fff;
  font: inherit;
  font-size: 12.5px;
  font-weight: 650;
  cursor: pointer;
  align-self: start;
}
.one-pr-submit:hover { background: #154da6; }
.one-pr-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 2px;
  position: relative;
}
.one-pr-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: #d7dee8;
}
.one-pr-timeline-item {
  position: relative;
  padding: 0 0 14px 24px;
}
.one-pr-timeline-item:last-child { padding-bottom: 0; }
.one-pr-timeline-dot {
  position: absolute;
  left: 2px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #8aa0b8;
  z-index: 1;
}
.one-pr-timeline-item.is-code .one-pr-timeline-dot {
  border-color: #1a5fcc;
  background: #1a5fcc;
}
.one-pr-timeline-item.is-pending .one-pr-timeline-dot { border-color: #c9a227; }
.one-pr-timeline-item.is-approved .one-pr-timeline-dot,
.one-pr-timeline-item.is-created .one-pr-timeline-dot {
  border-color: #0e9a6e;
  background: #0e9a6e;
}
.one-pr-timeline-item.is-rejected .one-pr-timeline-dot {
  border-color: #c8341b;
  background: #c8341b;
}
.one-pr-timeline-code {
  display: inline-block;
  background: #1a5fcc;
  color: #fff;
  font-size: 11px;
  font-weight: 650;
  padding: 3px 8px;
  border-radius: 3px;
}
.one-pr-timeline-name {
  font-size: 12.5px;
  font-weight: 650;
  color: #0b1a2e;
  line-height: 1.35;
}
.one-pr-timeline-role { font-weight: 500; color: #5c6f8a; }
.one-pr-timeline-meta {
  font-size: 11px;
  color: #5c6f8a;
  margin-top: 4px;
}
.one-pr-attach-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.one-pr-attach-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(11, 26, 46, 0.08);
  background: #f8fafc;
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
  text-align: left;
  color: #0b1a2e;
  font: inherit;
}
.one-pr-attach-item:hover {
  background: #eef4fc;
  border-color: rgba(26, 95, 204, 0.28);
}
.one-pr-attach-icon {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
  letter-spacing: 0.02em;
  background: #5c6f8a;
}
.one-pr-attach-icon.is-pdf { background: #c8341b; }
.one-pr-attach-icon.is-xls,
.one-pr-attach-icon.is-xlsx { background: #0e9a6e; }
.one-pr-attach-icon.is-doc,
.one-pr-attach-icon.is-docx { background: #1a5fcc; }
.one-pr-attach-icon.is-img { background: #0891b2; }
.one-pr-attach-meta {
  min-width: 0;
  flex: 1;
}
.one-pr-attach-meta strong {
  display: block;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.one-pr-attach-meta span {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  color: #5c6f8a;
}
.one-pr-attach-item > i {
  flex-shrink: 0;
  color: #5c6f8a;
}
.one-pr-attach-empty {
  margin: 0;
  font-size: 12px;
  color: #8aa0b8;
}
.one-pr-comment-form {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}
.one-pr-comments { display: grid; gap: 8px; }
.one-pr-comment {
  background: #fff8d6;
  border: 1px solid #f0e2a0;
  border-radius: 3px;
  padding: 10px;
  font-size: 12px;
  line-height: 1.45;
  color: #3d4f66;
  word-break: break-word;
}
.one-pr-comment-time {
  display: block;
  margin-top: 6px;
  font-size: 10.5px;
  color: #8aa0b8;
}
.one-noti-summary {
  background: #fff;
  border: 1px solid rgba(11,26,46,.09);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.one-noti-summary-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #0b1a2e;
  font-weight: 400;
}
.one-noti-detail {
  background: #fff;
  border: 1px solid rgba(11,26,46,.09);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
}
.one-noti-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(11,26,46,.08);
  background: #f8fafc;
}
.one-noti-detail-head > div { min-width: 0; flex: 1; }
.one-noti-detail-head strong {
  display: block;
  font-size: 13px;
}
.one-noti-detail-code {
  display: inline-block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 600;
  color: #5c6f8a;
}
.one-noti-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  border: 1px solid rgba(26,95,204,.28);
  background: #fff;
  color: #1a5fcc;
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}
.one-noti-open-btn:hover {
  background: #e8f0fc;
  border-color: rgba(26,95,204,.45);
}
.one-noti-fields {
  margin: 0;
  padding: 4px 0;
}
.one-noti-fields > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  padding: 9px 16px;
  border-bottom: 1px solid rgba(11,26,46,.05);
}
.one-noti-fields > div:last-child { border-bottom: 0; }
.one-noti-fields dt {
  margin: 0;
  font-size: 12px;
  color: #5c6f8a;
  font-weight: 600;
}
.one-noti-fields dd {
  margin: 0;
  font-size: 13px;
  color: #0b1a2e;
  word-break: break-word;
}
.one-noti-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.one-noti-btn {
  border: 0;
  border-radius: 6px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.one-noti-btn.is-approve {
  background: #0e9a6e;
  color: #fff;
}
.one-noti-btn.is-approve:hover { background: #0b7f5a; }
.one-noti-btn.is-reject {
  background: #fff;
  color: #c8341b;
  border: 1px solid rgba(200,52,27,.35);
}
.one-noti-btn.is-reject:hover { background: #fde8e4; }

@media (max-width: 1100px) {
  .one-pr-layout {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
  }
}

@media (max-width: 900px) {
  .one-pr-layout { grid-template-columns: 1fr; }
  .one-pr-side { position: static; }
  .one-pr-main .one-noti-fields > div {
    grid-template-columns: 132px 1fr;
  }
}

@media (max-width: 700px) {
  .one-noti-fields > div {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 10px 14px;
  }
  .one-noti-actions { width: 100%; }
  .one-noti-btn { flex: 1; text-align: center; min-height: 36px; }
  .one-noti-menu {
    width: min(200px, calc(100vw - 48px));
  }
  .one-noti-check {
    width: 28px;
    height: 28px;
  }
  .one-noti-check input {
    width: 16px;
    height: 16px;
  }
  .one-noti-item .one-noti-check { margin-top: 10px; }
  .one-noti-body.is-voucher { padding: 12px; }
  .one-pr-layout { gap: 10px; }
  .one-pr-submit { min-height: 36px; }
}

@media (max-width: 480px) {
  .one-pr-box { padding: 12px; }
  .one-noti-detail-head { flex-wrap: wrap; }
}

/* ── Chat responsive ── */
@media (max-width: 900px) {
  .one-bubble-wrap { max-width: min(560px, 92%); }
  .one-msg-photo { max-width: min(260px, 70vw); }
  .one-msg-album { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: min(228px, 70vw); }
  .one-msg-album button { height: 84px; }
  .one-share-modal { padding: 12px; align-items: flex-end; }
  .one-share-card {
    width: 100%;
    max-height: min(88vh, calc(100dvh - 24px));
    border-radius: 12px 12px 8px 8px;
  }
  .one-lightbox { padding: 12px; }
  .one-lightbox-nav.is-prev { left: 8px; }
  .one-lightbox-nav.is-next { right: 8px; }
  .one-lightbox-img { max-height: 78vh; }
}

@media (max-width: 700px) {
  .one-chat-log { padding: 12px 10px; gap: 8px; }
  .one-composer-tool {
    width: 36px;
    height: 36px;
  }
  .one-composer-panel { max-height: min(240px, 38vh); }
  .one-emoji-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .one-emoji-grid button { height: 40px; font-size: 22px; }
  .one-composer-attach { padding: 8px 10px 0; }
  .one-group-foot {
    flex-wrap: wrap;
  }
  .one-group-count {
    flex: 1 0 100%;
    margin-bottom: 2px;
  }
  /* Touch: hiện action khi chạm tin (class is-actions-open), không hiện sẵn */
  .one-msg-actions {
    display: none;
  }
  .one-bubble-wrap.is-actions-open .one-msg-actions,
  .one-bubble-wrap:focus-within .one-msg-actions {
    display: flex;
  }
  .one-toast {
    left: 12px;
    right: 12px;
    bottom: max(16px, env(safe-area-inset-bottom));
    transform: translateY(20px);
    width: auto;
  }
  .one-toast.is-on { transform: translateY(0); }
}

@media (max-width: 480px) {
  .one-emoji-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .one-share-card { padding: 12px; }
  .one-msg-link,
  .one-msg-file,
  .one-msg-contact { max-width: 100%; min-width: 0; }
  .one-msg-link-thumb { width: 72px; height: 72px; }
  .one-lightbox-close,
  .one-lightbox-nav {
    width: 36px;
    height: 36px;
  }
}

@supports (padding: env(safe-area-inset-bottom)) {
  .one-composer-wrap {
    padding-bottom: env(safe-area-inset-bottom);
  }
}
