/* DONEX CRM | Identity polish · transparent source-derived brand assets · 2026-11-22 */
/* Important: assets preserve original letter geometry; no filled navy tiles. */
.dnx-brand-visual,.dnx-guest-brand,.dnx-landing-brand{
  background:transparent!important;
  border-radius:0;
  box-shadow:none!important;
  overflow:visible;
}
.dnx-brand-visual img,.dnx-guest-brand img,.dnx-landing-brand img{
  display:block;max-width:100%;object-fit:contain;object-position:center;
}
/* Full-size sidebar: natural, transparent wordmark, no background frame. */
.sidebar .logo.dnx-app-brand{
  display:flex;align-items:center;justify-content:center;
  min-height:93px;padding:10px 12px 8px;gap:0;
  overflow:hidden;border-bottom:1px solid rgba(255,255,255,.09);
  text-decoration:none;
}
.sidebar .logo.dnx-app-brand .dnx-brand-identity{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  flex:0 1 auto;min-width:0;width:100%;max-width:100%;
}
.sidebar .logo.dnx-app-brand .dnx-brand-visual{
  display:flex;justify-content:center;align-items:center;
  width:174px;height:65px;max-width:100%;
}
.sidebar .logo.dnx-app-brand .dnx-brand-visual img{
  width:100%;height:100%;object-fit:contain;
}
.sidebar .logo.dnx-app-brand .dnx-brand-identity small{
  display:block;color:#bed0e2;text-align:center;
  font-size:11px;line-height:1.35;font-weight:500;
  max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.sidebar .logo.dnx-app-brand .dnx-brand-mark{
  display:none;background:transparent!important;border:0!important;
  box-shadow:none!important;overflow:visible;border-radius:0;
}
.sidebar .logo.dnx-app-brand .dnx-brand-mark img{
  width:100%;height:100%;object-fit:contain;
}
.sidebar{container-type:inline-size}
@container (max-width:130px){
  .sidebar .logo.dnx-app-brand{min-height:74px;padding:13px 4px}
  .sidebar .logo.dnx-app-brand .dnx-brand-identity{display:none}
  .sidebar .logo.dnx-app-brand .dnx-brand-mark{
    display:flex;align-items:center;justify-content:center;width:42px;height:42px;
  }
}
/* Arabic navigation hierarchy: a measured size bump without weight or padding inflation. */
html[lang="ar"] .sidebar .nav-main-link,
html[lang="ar"] .sidebar .nav-module > summary{font-size:14px;line-height:1.55}
html[lang="ar"] .sidebar .nav-sub a{font-size:13px;line-height:1.55}
html[lang="ar"] .sidebar .side-caption,
html[lang="ar"] .sidebar .nav-group-divider{font-size:11.5px}
/* Guest auth: use the same locally installed Arabic font as DONEX workspace. */
@font-face{
  font-family:"DNX-DroidKufi";
  src:url("../fonts/donex/DroidKufi-Regular.ttf") format("truetype");
  font-style:normal;font-weight:400;font-display:swap;
}
@font-face{
  font-family:"DNX-DroidKufi";
  src:url("../fonts/donex/DroidKufi-Bold.ttf") format("truetype");
  font-style:normal;font-weight:700 900;font-display:swap;
}
html[lang="ar"] .auth-page,
html[lang="ar"] .auth-page input,
html[lang="ar"] .auth-page button,
html[lang="ar"] .auth-page label,
html[lang="ar"] .auth-page a{
  font-family:"DNX-DroidKufi","Droid Arabic Kufi",Tahoma,sans-serif;
}
.auth-page{min-height:100dvh;overflow:visible;padding-block:24px}
.auth-page .auth-box{
  max-height:none!important;overflow:visible!important;
  width:min(450px,100%);padding:29px 32px;
}
.auth-box .dnx-guest-head{
  display:flex;align-items:center;justify-content:space-between;
  gap:12px;margin-bottom:18px;
}
.auth-box .dnx-guest-brand{
  display:inline-flex;align-items:center;justify-content:flex-start;gap:12px;
  flex:1 1 auto;width:auto;height:auto;max-width:none;min-width:0;
  color:#112a49;text-decoration:none;
}
.auth-box .dnx-guest-brand-symbol{
  width:57px;height:57px;flex:none;border-radius:14px;
  display:grid;place-items:center;
  background:#ebfaff;border:1px solid #d8f1f9;
}
.auth-box .dnx-guest-brand-symbol img{
  display:block;width:47px;height:47px;object-fit:contain;
}
.auth-box .dnx-guest-brand-label{
  display:flex;flex-direction:column;align-items:flex-start;justify-content:center;
  gap:0;line-height:1.06;white-space:nowrap;letter-spacing:.02em;
  font-family:Calibri,Arial,sans-serif;
}
.auth-box .dnx-guest-brand-label strong{
  color:#0a2341;font-family:inherit;font-size:25px;font-weight:800;
}
.auth-box .dnx-guest-brand-label small{
  margin-top:4px;color:#17758d;font-family:inherit;
  font-size:15px;font-weight:700;letter-spacing:.18em;
}
.auth-box .dnx-guest-lang.btn{
  flex:none;width:auto!important;min-height:auto;
  padding:8px 11px;font-size:12px;white-space:nowrap;
}
html[lang="ar"] .auth-box h1{font-size:23px;line-height:1.55;letter-spacing:0}
html[lang="ar"] .auth-box p{font-size:12px;line-height:1.8}
html[lang="ar"] .auth-box form label{font-size:12px;line-height:1.7}
.auth-box .dnx-auth-brand-foot{
  margin-top:21px;padding-top:13px;border-top:1px solid #e7edf5;
  color:#8494a8;font-size:11px;text-align:center;direction:ltr;
}
/* Public landing: original source-derived transparent wordmark. */
.landing .dnx-landing-brand{display:flex;align-items:center;width:180px;height:76px;flex:none}
.landing .dnx-landing-brand img{width:100%;height:100%;object-fit:contain}
@media(max-width:540px){
  .auth-page{padding:14px}
  .auth-page .auth-box{padding:24px 20px}
  .auth-box .dnx-guest-head{gap:9px;margin-bottom:13px}
  .auth-box .dnx-guest-brand{gap:8px}
  .auth-box .dnx-guest-brand-symbol{width:46px;height:46px;border-radius:12px}
  .auth-box .dnx-guest-brand-symbol img{width:39px;height:39px}
  .auth-box .dnx-guest-brand-label strong{font-size:21px}
  .auth-box .dnx-guest-brand-label small{font-size:13px}
  .landing .dnx-landing-brand{width:146px;height:63px}
}

/* DONEX CRM · Login-only polish. Keep sidebar, landing, and icons unchanged. */
.auth-box .dnx-guest-head{
  direction:rtl;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:21px;
}
.auth-box .dnx-guest-brand{
  direction:rtl;
  display:flex;
  flex:0 1 auto;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
  min-width:0;
  margin:0;
  background:none!important;
}
.auth-box .dnx-guest-brand-symbol{
  display:flex;
  flex:0 0 70px;
  width:70px;
  height:70px;
  padding:4px;
  border:1px solid #dbe5ef;
  background:#f5f8fc;
  border-radius:13px;
  box-shadow:0 1px 3px rgba(9,31,58,.04);
  overflow:hidden;
}
.auth-box .dnx-guest-brand-symbol img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  border-radius:9px;
}
.auth-box .dnx-guest-brand-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  gap:5px;
  min-width:0;
  text-align:start;
  direction:ltr;
}
.auth-box .dnx-guest-brand-title{
  color:#102b4c;
  font:700 22px/1.15 Calibri,"Segoe UI",Arial,sans-serif;
  letter-spacing:.015em;
  white-space:nowrap;
}
.auth-box .dnx-guest-brand-description{
  color:#75869b;
  font-size:11.5px;
  font-weight:400;
  line-height:1.5;
  letter-spacing:0;
  white-space:nowrap;
  direction:rtl;
}
html[lang="en"] .auth-box .dnx-guest-brand-description{
  direction:ltr;
  font-family:Calibri,"Segoe UI",Arial,sans-serif;
  font-size:12.5px;
}
.auth-box .dnx-guest-lang.btn{
  flex:0 0 auto;
  align-self:center;
  margin-inline-start:auto;
  white-space:nowrap;
  font-size:12px;
  border-radius:8px;
}
@media(max-width:470px){
  .auth-box .dnx-guest-head{gap:8px;margin-bottom:16px}
  .auth-box .dnx-guest-brand{gap:9px}
  .auth-box .dnx-guest-brand-symbol{width:54px;height:54px;flex-basis:54px;padding:3px;border-radius:11px}
  .auth-box .dnx-guest-brand-symbol img{border-radius:7px}
  .auth-box .dnx-guest-brand-title{font-size:18px}
  .auth-box .dnx-guest-brand-description{font-size:10px}
  html[lang="en"] .auth-box .dnx-guest-brand-description{font-size:11px}
  .auth-box .dnx-guest-lang.btn{padding:7px 9px;font-size:11px}
}
@media(max-width:360px){
  .auth-box .dnx-guest-brand-title{font-size:16px}
  .auth-box .dnx-guest-brand-description{font-size:9px}
  .auth-box .dnx-guest-brand{gap:7px}
}
