/* FFA Chat employee portal: Bình Định JSC identity with a familiar desktop messenger layout. */
.tl-employee-page {
  --tl-blue: #C1121C;
  --tl-line: #E6E1DD;
  --tl-soft: #fff8df;
  --tl-ink: #16120F;
  min-width: 360px;
  min-height: 100vh;
  background: #f3f5f8;
  color: var(--tl-ink);
}

.tl-employee-page .tl-guest-header {
  position: sticky;
  z-index: 30;
  top: 0;
  box-sizing: border-box;
  height: 68px;
  padding: 0 26px;
  gap: 18px;
  background: linear-gradient(105deg, #A8111A, #b31922 65%, #9a1720);
  box-shadow: 0 3px 14px #5b111c26;
}

.tl-employee-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  color: #fff;
  text-decoration: none;
}

.tl-employee-brand img {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  box-sizing: border-box;
  border: 1px solid #ffffff70;
  border-radius: 11px;
  background: #fff;
  object-fit: contain;
  padding: 3px;
}

.tl-employee-brand-copy { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.tl-employee-brand-copy strong { font-size: 17px; letter-spacing: .1px; line-height: 1.1; }
.tl-employee-brand-copy small { color: #ffdfad; font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.tl-employee-header-status { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: #fff1d8; font-size: 12px; }
.tl-employee-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #f6d36f; box-shadow: 0 0 0 4px #ffffff1d; }
.tl-employee-page .tl-install-app { border-color: #ffffff82; background: #fff8e2; color: #85131b; }

.tl-employee-layout {
  display: grid;
  width: min(1260px, calc(100% - 48px));
  min-height: calc(100vh - 68px);
  box-sizing: border-box;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  align-items: center;
  gap: clamp(32px, 6vw, 84px);
  margin: 0 auto;
  padding: 36px 0;
}

.tl-employee-hero { max-width: 620px; padding: 16px 0 22px; }
.tl-employee-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #C1121C; font-size: 11px; font-weight: 800; letter-spacing: 1.6px; }
.tl-employee-eyebrow::before { width: 25px; height: 2px; background: #e2b342; content: ""; }
.tl-employee-hero h1 { margin: 21px 0 15px; color: #16120F; font-size: clamp(34px, 4vw, 54px); font-weight: 760; letter-spacing: -1.7px; line-height: 1.08; }
.tl-employee-hero > p { max-width: 520px; margin: 0; color: #6B625C; font-size: 16px; line-height: 1.75; }
.tl-employee-benefits { display: grid; gap: 18px; margin-top: 34px; }
.tl-employee-benefits > div { display: flex; align-items: center; gap: 14px; }
.tl-employee-benefit-icon { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border: 1px solid #ead8a4; border-radius: 13px; background: #fff9e8; color: #C1121C; font-size: 12px; font-weight: 800; }
.tl-employee-benefits strong,.tl-employee-benefits small { display: block; }
.tl-employee-benefits strong { color: #303944; font-size: 14px; }
.tl-employee-benefits small { margin-top: 4px; color: #7a8490; font-size: 12px; }
.tl-employee-hero-foot { display: block; margin-top: 36px; color: #8a929b; font-size: 11px; }
.tl-employee-hero-foot span { margin-right: 6px; color: #bf9a39; font-size: 10px; }

.tl-employee-page .tl-employee-root { width: 100%; min-width: 0; max-width: none; margin: 0; padding: 0; }
.tl-employee-page .tl-login { width: 100%; max-width: none; box-sizing: border-box; margin: 0; padding: clamp(26px, 3vw, 40px); border: 1px solid #e7e9ed; border-radius: 20px; box-shadow: 0 18px 54px #16120F14; }
.tl-login-kicker { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; color: #8c1720; font-size: 10px; font-weight: 800; letter-spacing: 1.15px; }
.tl-login-kicker-mark { display: inline-grid; width: 28px; height: 28px; place-items: center; border-radius: 9px; background: #C1121C; color: #fff; font-size: 10px; letter-spacing: 0; }
.tl-employee-page .tl-login h2 { margin: 0 0 8px; color: #16120F; font-size: 25px; letter-spacing: -.35px; }
.tl-login .tl-login-subtitle { margin: 0 0 24px; color: #7A716A; font-size: 13px; }
.tl-employee-page .tl-login form { display: grid; gap: 15px; }
.tl-employee-page .tl-login label { margin: 0; color: #414b57; font-size: 12px; font-weight: 650; }
.tl-employee-page .tl-login label span { margin-bottom: 7px; }
.tl-employee-page .tl-login input { display: block; width: 100%; min-height: 48px; box-sizing: border-box; border: 1px solid #d9dee5; border-radius: 10px; padding: 0 13px; background: #fffefa; color: #202a35; font: 14px system-ui,-apple-system,"Segoe UI",sans-serif; transition: border-color .15s, box-shadow .15s, background .15s; }
.tl-employee-page .tl-login input:focus { outline: 0; border-color: #C1121C; background: #fff; box-shadow: 0 0 0 3px #C1121C18; }
.tl-employee-page .tl-login input::placeholder { color: #a0a8b1; }
.tl-employee-page .tl-login form .tl-btn { min-height: 48px; margin-top: 3px; border: 0; border-radius: 10px; background: linear-gradient(100deg, #a5131d, #c3222a); box-shadow: 0 6px 14px #a5131d24; font-size: 14px; }
.tl-employee-page .tl-login form .tl-btn:hover { background: #A8111A; }
.tl-employee-page .tl-login .tl-link-btn { margin-top: 14px; color: #C1121C; font-size: 12px; }
.tl-login-security { display: flex; align-items: flex-start; gap: 8px; margin: 20px 0 0 !important; padding: 11px 12px; border: 1px solid #eee6cf; border-radius: 10px; background: #fffaf0; color: #73705f !important; font-size: 11px !important; }
.tl-login-security span { display: grid; width: 17px; height: 17px; flex: 0 0 17px; place-items: center; border-radius: 50%; background: #f0e2b7; color: #8a6c16; font-size: 11px; font-weight: 800; }
.tl-employee-page .tl-login .tl-login-guest-link { margin: 15px 0 0; font-size: 11px; }
.tl-employee-page .tl-login .tl-login-guest-link a { color: #C1121C; font-weight: 650; }

/* After sign-in, use the same three-pane conversation model as the mobile client,
   with more room for the chat, shared files, members and assigned work on PC. */
.tl-employee-authenticated .tl-employee-layout { display: block; width: calc(100% - 40px); max-width: 1880px; min-height: 0; margin: 16px auto; padding: 0; }
.tl-employee-authenticated .tl-employee-hero { display: none; }
.tl-employee-authenticated .tl-employee-root { width: 100%; }
.tl-employee-authenticated .tl-app { display: flex; height: calc(100vh - 100px); min-height: 620px; flex-direction: column; border-color: #e0e4e9; border-radius: 15px; box-shadow: 0 8px 26px #16120F0d; }
.tl-employee-authenticated .tl-top { flex: 0 0 54px; background: #fff; }
.tl-employee-authenticated .tl-grid { height: auto; min-height: 0; max-height: none; flex: 1 1 auto; grid-template-columns: minmax(245px, 300px) minmax(420px, 1fr) minmax(230px, 300px); }
.tl-employee-authenticated .tl-side { background: #FCFBFA; }
.tl-employee-authenticated .tl-side-tools { padding: 13px; }
.tl-employee-authenticated .tl-search { padding: 11px 13px; }
.tl-employee-authenticated .tl-channel { padding-top: 14px; padding-bottom: 14px; }
.tl-employee-authenticated .tl-channel.active { border-left-color: #C1121C; background: #fff8e4; }
.tl-employee-authenticated .tl-conv-head { min-height: 62px; box-sizing: border-box; border-bottom-color: #eceef1; }
.tl-employee-authenticated .tl-feed { background: linear-gradient(180deg, #fbfcfd, #f6f7f9); }
.tl-employee-authenticated .tl-msg.mine .tl-bubble { border-color: #f0dfa2; background: #fff6d8; }
.tl-employee-authenticated .tl-context { background: #fcfcfd; }
.tl-employee-authenticated .tl-compose { border-top-color: #e7e9ed; }
.tl-employee-authenticated .tl-compose .tl-text-wrap:focus-within { border-color: #C1121C; box-shadow: 0 0 0 2px #C1121C18; }
.tl-employee-authenticated .tl-btn-primary { border-color: #C1121C; background: #C1121C; color: #fff; }
.tl-employee-authenticated .tl-btn-primary:hover { background: #A8111A; }
.tl-employee-authenticated .tl-top-actions .tl-btn { min-height: 34px; border-radius: 9px; }
.tl-employee-authenticated #tlWho { color: #687380; }

/* Desktop calling is a first-class action in direct employee conversations. */
.tl-employee-authenticated .tl-call-action:not([hidden]) { display: inline-flex; min-width: 98px; min-height: 38px; align-items: center; justify-content: center; gap: 7px; border: 1px solid #ecd99e; border-radius: 10px; background: #fff8df; color: #8d161e; font-size: 0; }
.tl-employee-authenticated #tlVoiceCall::before { content: "☎"; font-size: 17px; }
.tl-employee-authenticated #tlVoiceCall::after { content: "Thoại"; font-size: 12px; }
.tl-employee-authenticated #tlVideoCall::before { content: "▣"; font-size: 15px; }
.tl-employee-authenticated #tlVideoCall::after { content: "Video"; font-size: 12px; }
.tl-employee-authenticated .tl-call-action:hover { border-color: #cba93e; background: #fff1c3; }
.tl-employee-authenticated .tl-call-action[disabled] { opacity: .55; }

/* Keep attachment, download, conversation and call controls visible and consistent. */
.tl-employee-authenticated .tl-attach-wrap { position: relative; }
.tl-employee-authenticated .tl-attach-menu,
.tl-employee-authenticated .tl-group-admin-menu,
.tl-employee-authenticated .tl-sticker-menu { border-color: #E6E1DD; border-radius: 12px; box-shadow: 0 14px 38px #16120F20; }
.tl-employee-authenticated .tl-context h3 { color: #363f49; }
.tl-employee-authenticated .tl-context section { border-bottom-color: #e9ebef; }
.tl-employee-authenticated .tl-context a { color: #C1121C; }
.tl-employee-authenticated .tl-file-inline { overflow: hidden; border: 1px solid #e6e9ed; border-radius: 12px; background: #fff; }
.tl-employee-authenticated .tl-file-message { border-radius: 10px; }
.tl-employee-authenticated .tl-file-inline-actions .tl-btn { min-width: 38px; min-height: 34px; border-radius: 9px; }
.tl-employee-authenticated .tl-file-inline-actions [data-download-file] { border-color: #ead99f; background: #fff8df; color: #8d161e; font-size: 16px; }
.tl-employee-authenticated .tl-file-inline-actions [data-download-file]:hover { background: #fff0c2; }
.tl-employee-authenticated .tl-file-viewer>header { border-bottom-color: #eadfc9; }
.tl-employee-authenticated .tl-file-viewer-actions button:hover { background: #fff5d7; color: #C1121C; }

@media (max-width: 1200px) {
  .tl-employee-authenticated .tl-grid { grid-template-columns: minmax(220px, 270px) minmax(0, 1fr); }
  .tl-employee-authenticated .tl-context { display: none; }
}

@media (max-width: 900px) {
  .tl-employee-layout { width: min(650px, calc(100% - 32px)); grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 24px 0; }
  .tl-employee-hero { padding: 4px 0 10px; }
  .tl-employee-hero h1 { margin: 13px 0 9px; font-size: clamp(29px, 5vw, 40px); }
  .tl-employee-hero > p { font-size: 14px; }
  .tl-employee-benefits { display: none; }
  .tl-employee-hero-foot { margin-top: 13px; }
  .tl-employee-authenticated .tl-employee-layout { width: calc(100% - 24px); margin: 12px auto; }
  .tl-employee-authenticated .tl-app { height: calc(100vh - 92px); min-height: 580px; }
  .tl-employee-authenticated .tl-grid { grid-template-columns: minmax(210px, 250px) minmax(0, 1fr); }
}

@media (max-width: 700px) {
  .tl-employee-page .tl-guest-header { min-height: 58px; height: auto; padding: 8px 12px; }
  .tl-employee-brand img { width: 36px; height: 36px; flex-basis: 36px; }
  .tl-employee-brand-copy strong { font-size: 15px; }
  .tl-employee-brand-copy small { font-size: 8px; letter-spacing: .65px; }
  .tl-employee-header-status { display: none; }
  .tl-employee-page .tl-install-app { margin-left: auto; padding: 7px 9px; font-size: 11px; }
  .tl-employee-layout { width: calc(100% - 24px); min-height: calc(100dvh - 58px); gap: 8px; padding: 17px 0 22px; }
  .tl-employee-hero { padding: 0; }
  .tl-employee-eyebrow { font-size: 9px; }
  .tl-employee-hero h1 { margin: 10px 0 7px; font-size: 28px; letter-spacing: -.8px; }
  .tl-employee-hero > p { font-size: 12px; line-height: 1.5; }
  .tl-employee-hero-foot { display: none; }
  .tl-employee-page .tl-login { padding: 23px 20px; border-radius: 16px; }
  .tl-employee-page .tl-login h2 { font-size: 22px; }
  .tl-employee-authenticated .tl-employee-layout { width: 100%; margin: 0; }
  .tl-employee-authenticated .tl-app { height: calc(100dvh - 58px); min-height: 0; border: 0; border-radius: 0; }
  .tl-employee-authenticated .tl-grid { grid-template-columns: minmax(0, 1fr); }
  .tl-employee-authenticated .tl-call-action:not([hidden]) { min-width: 38px; width: 38px; padding: 5px; }
  .tl-employee-authenticated #tlVoiceCall::after,
  .tl-employee-authenticated #tlVideoCall::after { content: none; }
}

@media (prefers-reduced-motion: reduce) {
  .tl-employee-page *, .tl-employee-page *::before, .tl-employee-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
