:root {
  --ink: #231f20;
  --muted: #68727c;
  --line: #dcddde;
  --soft: #f3f6f8;
  --surface: #ffffff;
  --brand: #24588d;
  --brand-2: #3f75a8;
  --brand-soft: #eaf1f7;
  --success: #176b4d;
  --success-soft: #eaf6f0;
  --warning: #8a5b00;
  --warning-soft: #fff6dc;
  --danger: #a93232;
  --shadow: 0 18px 50px rgba(36, 88, 141, .10);
  --radius: 22px;
}
* { box-sizing: border-box; }
html { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: #fbfafb; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 80% 0%, #eaf2f8 0, transparent 34%), #fbfcfd; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.main-shell { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 42px 0 64px; }
.topbar { height: 74px; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); display:flex; align-items:center; justify-content:space-between; padding:0 max(28px, calc((100vw - 1180px)/2)); position:sticky; top:0; z-index:20; }
.topbar-brand { display:flex; align-items:center; gap:12px; }
.topbar-brand > span:last-child { display:flex; flex-direction:column; letter-spacing:.02em; }
.topbar-brand small { color:var(--muted); font-size:12px; margin-top:2px; }
.topbar-nav { display:flex; align-items:center; gap:22px; font-size:14px; font-weight:650; }
.topbar-nav a { padding:10px 2px; }
.topbar-nav .nav-logout { color:var(--muted); }
.brand-mark { width:56px; height:56px; border-radius:17px; display:grid; place-items:center; background:linear-gradient(145deg, var(--brand), #3f75a8); color:white; font-weight:800; font-size:24px; box-shadow:0 10px 24px rgba(36,88,141,.22); }
.brand-mark-small { width:38px; height:38px; border-radius:12px; font-size:18px; }
.eyebrow { color:var(--brand); letter-spacing:.14em; font-size:12px; font-weight:800; text-transform:uppercase; margin-bottom:10px; }
.eyebrow.light { color:#dceaf5; }
h1,h2,h3,p { margin-top:0; }
h1 { font-size:clamp(30px,4vw,48px); line-height:1.06; letter-spacing:-.035em; margin-bottom:14px; }
h2 { font-size:28px; letter-spacing:-.025em; }
h3 { font-size:20px; margin-bottom:8px; }
.muted { color:var(--muted); }
.btn { border:0; border-radius:13px; min-height:46px; padding:12px 19px; font-weight:750; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; transition:.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background:var(--brand); color:#fff; box-shadow:0 9px 24px rgba(36,88,141,.20); }
.btn-primary:hover { background:#1d4a75; }
.btn-secondary { background:var(--brand-soft); color:var(--brand); }
.btn-outline { background:white; color:var(--ink); border:1px solid var(--line); }
.btn-lg { min-height:54px; padding:14px 22px; }
.btn-block { width:100%; }
.landing-shell { min-height:calc(100vh - 170px); display:grid; place-items:center; }
.landing-card { width:min(880px,100%); background:rgba(255,255,255,.9); border:1px solid rgba(231,226,232,.9); box-shadow:var(--shadow); border-radius:30px; padding:64px; position:relative; overflow:hidden; }
.landing-card:after { content:""; position:absolute; width:320px; height:320px; border-radius:50%; background:#e9f1f7; right:-120px; top:-160px; z-index:-1; }
.landing-card p { color:var(--muted); max-width:700px; font-size:18px; line-height:1.65; }
.landing-actions { display:flex; gap:12px; margin-top:30px; flex-wrap:wrap; }
.test-note, .test-helper, .test-otp { margin-top:24px; border:1px dashed #abc3d8; background:#f4f8fb; border-radius:12px; padding:12px 14px; color:#365f83; font-size:14px; }
.auth-page { background:#f2f6f9; }
.auth-page .main-shell { width:min(1100px, calc(100% - 32px)); padding:5vh 0; }
.auth-shell { min-height:680px; display:grid; grid-template-columns:1.05fr .95fr; border-radius:30px; overflow:hidden; box-shadow:var(--shadow); background:white; }
.auth-brand-panel { padding:62px; background:linear-gradient(145deg,#173c61,#24588d 58%,#3f75a8); color:white; display:flex; flex-direction:column; justify-content:center; }
.auth-brand-panel h1 { max-width:430px; margin-top:28px; }
.auth-brand-panel p { color:#e3edf5; max-width:440px; line-height:1.65; font-size:17px; }
.auth-security-line { display:flex; gap:10px; align-items:center; margin-top:14px; color:#f0e8f0; }
.auth-security-line span { width:23px; height:23px; border-radius:50%; background:rgba(255,255,255,.13); display:grid; place-items:center; }
.auth-form-panel { padding:64px; display:flex; flex-direction:column; justify-content:center; }
.back-link { position:absolute; margin-top:-520px; color:var(--muted); font-size:14px; }
.form-stack { display:flex; flex-direction:column; gap:9px; margin-top:26px; }
.form-stack label { font-size:14px; font-weight:700; }
.input { width:100%; height:54px; border:1px solid #d9d2da; border-radius:13px; padding:0 15px; outline:none; background:white; }
.input:focus { border-color:#6c96bb; box-shadow:0 0 0 4px #eaf2f8; }
.otp-input { letter-spacing:.35em; font-size:24px; font-weight:800; text-align:center; }
.validation-summary, .field-error { color:var(--danger); font-size:13px; }
.page-header { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:28px; }
.page-header h1 { font-size:36px; }
.page-header p { margin-bottom:0; color:var(--muted); }
.history-link, .section-title-row a { color:var(--brand); font-weight:700; }
.notice-banner { border:1px solid #d7e4ee; background:linear-gradient(90deg,#eef5fa,#fff); border-radius:18px; padding:17px 20px; display:flex; align-items:center; gap:14px; margin-bottom:28px; }
.notice-icon { width:38px; height:38px; border-radius:12px; display:grid; place-items:center; background:var(--brand); color:white; font-weight:900; }
.notice-banner span { color:var(--muted); }
.section-title-row { display:flex; justify-content:space-between; align-items:center; margin:30px 0 14px; }
.section-title-row h2 { font-size:21px; margin:0; }
.section-title-row > span { color:var(--muted); font-size:13px; }
.assignment-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.assignment-card, .content-card { background:white; border:1px solid var(--line); border-radius:var(--radius); padding:24px; box-shadow:0 8px 26px rgba(39,27,42,.035); }
.priority-card { border-top:4px solid var(--brand); }
.card-topline { display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
.status-badge, .version-pill { display:inline-flex; align-items:center; min-height:28px; border-radius:99px; padding:5px 10px; font-size:12px; font-weight:800; }
.status-pending { background:var(--warning-soft); color:var(--warning); }
.status-viewed { background:#edf1fb; color:#365798; }
.status-acknowledged { background:var(--success-soft); color:var(--success); }
.version-pill { background:var(--soft); color:var(--muted); }
.meta-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; padding:16px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); margin:18px 0; }
.meta-grid span { display:block; color:var(--muted); font-size:12px; margin-bottom:4px; }
.change-box { background:#f4f7f9; border-radius:12px; padding:13px; margin-bottom:18px; color:#5f5761; font-size:14px; line-height:1.5; }
.history-mini-list { background:white; border:1px solid var(--line); border-radius:18px; overflow:hidden; }
.history-mini-row { display:grid; grid-template-columns:18px 1fr auto; gap:13px; align-items:center; padding:17px 20px; border-bottom:1px solid var(--line); }
.history-mini-row:last-child { border-bottom:0; }
.timeline-dot { width:10px; height:10px; border-radius:50%; background:#c7c0c9; }
.timeline-dot.success { background:var(--success); box-shadow:0 0 0 5px var(--success-soft); }
.history-mini-main { display:flex; flex-direction:column; gap:3px; }
.history-mini-main span, .history-mini-date { color:var(--muted); font-size:13px; }
.empty-state { text-align:center; padding:48px; }
.empty-icon { width:60px; height:60px; border-radius:50%; display:grid; place-items:center; margin:0 auto 18px; background:var(--success-soft); color:var(--success); font-size:28px; }
.document-shell { display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:22px; align-items:start; }
.document-card { background:white; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.document-toolbar { padding:18px 24px; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; align-items:center; gap:14px; }
.document-body { padding:34px 42px 44px; line-height:1.72; }
.document-body h2 { font-size:30px; }
.document-body h3 { margin-top:28px; font-size:18px; }
.document-body li { margin:8px 0; }
.document-lead { color:#554e57; font-size:17px; }
.document-change { background:#fff8e8; border-left:4px solid #d39a26; padding:13px 15px; border-radius:8px; margin:20px 0; color:#6c521c; }
.approval-panel { background:white; border:1px solid var(--line); border-radius:var(--radius); padding:22px; position:sticky; top:96px; }
.approval-panel h3 { margin-bottom:6px; }
.approval-check { display:flex; gap:10px; align-items:flex-start; margin:18px 0; font-size:14px; line-height:1.5; }
.approval-check input { margin-top:4px; accent-color:var(--brand); transform:scale(1.15); }
.approval-meta { display:flex; flex-direction:column; gap:10px; border-top:1px solid var(--line); margin-top:16px; padding-top:16px; }
.approval-meta div { display:flex; justify-content:space-between; gap:15px; font-size:13px; }
.approval-meta span { color:var(--muted); }
.success-card { text-align:center; padding:50px; }
.success-seal { width:76px; height:76px; border-radius:50%; margin:0 auto 20px; display:grid; place-items:center; background:var(--success-soft); color:var(--success); font-size:34px; font-weight:800; }
.table-card { background:white; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.table-wrap { overflow:auto; }
table { width:100%; border-collapse:collapse; min-width:780px; }
th,td { text-align:left; padding:15px 18px; border-bottom:1px solid var(--line); vertical-align:middle; }
th { font-size:12px; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); background:#faf8fa; }
td { font-size:14px; }
tbody tr:hover { background:#fdfbfd; }
.kpi-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:15px; margin:20px 0 30px; }
.kpi { background:white; border:1px solid var(--line); border-radius:18px; padding:20px; }
.kpi span { color:var(--muted); font-size:13px; }
.kpi strong { display:block; font-size:30px; margin-top:7px; letter-spacing:-.03em; }
.filter-row { display:flex; gap:10px; margin-bottom:16px; flex-wrap:wrap; }
.filter-row .input { max-width:280px; height:44px; }
.detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.info-card { background:white; border:1px solid var(--line); border-radius:18px; padding:22px; }
.info-pair { display:flex; justify-content:space-between; gap:16px; padding:10px 0; border-bottom:1px solid var(--line); font-size:14px; }
.info-pair:last-child { border-bottom:0; }
.info-pair span { color:var(--muted); }
@media (max-width: 900px) {
  .auth-shell { grid-template-columns:1fr; min-height:auto; }
  .auth-brand-panel { padding:38px; min-height:330px; }
  .auth-form-panel { padding:38px; }
  .back-link { position:static; margin:0 0 40px; }
  .document-shell { grid-template-columns:1fr; }
  .approval-panel { position:static; }
  .assignment-grid, .detail-grid { grid-template-columns:1fr; }
  .kpi-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 640px) {
  .main-shell { width:min(100% - 22px, 1180px); padding-top:26px; }
  .topbar { padding:0 14px; height:66px; }
  .topbar-brand small { display:none; }
  .topbar-nav { gap:12px; font-size:13px; }
  .landing-card { padding:34px 25px; border-radius:22px; }
  .auth-page .main-shell { width:min(100% - 20px,1100px); padding:10px 0; }
  .auth-shell { border-radius:20px; }
  .auth-brand-panel { min-height:260px; padding:30px 25px; }
  .auth-brand-panel h1 { font-size:34px; }
  .auth-form-panel { padding:32px 25px; }
  .page-header { align-items:flex-start; flex-direction:column; }
  .page-header h1 { font-size:31px; }
  .document-body { padding:25px 20px 34px; }
  .document-toolbar { padding:15px 18px; align-items:flex-start; flex-direction:column; }
  .history-mini-row { grid-template-columns:18px 1fr; }
  .history-mini-date { grid-column:2; }
  .kpi-grid { grid-template-columns:1fr 1fr; gap:10px; }
  .kpi { padding:16px; }
  .kpi strong { font-size:24px; }
}


/* Employee identity in authenticated header */
.topbar-actions { display:flex; align-items:center; gap:24px; }
.topbar-profile { display:flex; align-items:center; gap:10px; min-width:0; padding:6px 9px 6px 6px; border:1px solid transparent; border-radius:14px; transition:.15s ease; }
.topbar-profile:hover { background:#f4f8fb; border-color:var(--line); }
.profile-avatar { width:38px; height:38px; border-radius:50%; object-fit:cover; flex:0 0 38px; box-shadow:0 5px 14px rgba(36,88,141,.16); }
.profile-copy { display:flex; flex-direction:column; min-width:0; max-width:190px; line-height:1.2; }
.profile-copy strong { font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.profile-copy small { margin-top:3px; color:var(--muted); font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* Assignment detail */
.assignment-page-header { margin-bottom:18px; }
.document-context-card { background:white; border:1px solid var(--line); border-radius:18px; padding:16px 20px; margin-bottom:18px; display:grid; grid-template-columns:150px 175px 175px minmax(0,1fr); gap:18px; box-shadow:0 8px 26px rgba(39,27,42,.03); }
.document-context-card > div { display:flex; flex-direction:column; gap:5px; }
.document-context-card span { color:var(--muted); font-size:12px; }
.document-context-card strong { font-size:13px; line-height:1.45; }
.document-context-change { border-left:1px solid var(--line); padding-left:18px; }
.document-footer-note { display:flex; align-items:center; gap:12px; padding:16px 24px; background:#faf8fa; border-top:1px solid var(--line); font-size:13px; }
.document-footer-note span { color:var(--muted); }
.document-check-icon { width:30px; height:30px; border-radius:50%; background:var(--success-soft); color:var(--success)!important; display:grid; place-items:center; font-weight:900; flex:0 0 30px; }
.approval-check small { color:var(--muted); }
.hash-preview { margin-top:10px; padding:8px 10px; background:var(--soft); border-radius:9px; color:var(--muted); font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:11px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.approval-receipt { max-width:760px; margin:0 auto; }
.approval-receipt-meta { max-width:580px; margin:24px auto; }
.success-actions { display:flex; justify-content:center; gap:10px; flex-wrap:wrap; }

@media (max-width: 1000px) {
  .profile-copy { display:none; }
  .topbar-actions { gap:16px; }
  .document-context-card { grid-template-columns:repeat(3,1fr); }
  .document-context-change { grid-column:1 / -1; border-left:0; border-top:1px solid var(--line); padding:13px 0 0; }
}
@media (max-width: 640px) {
  .topbar-actions { gap:8px; }
  .topbar-profile { padding:3px; }
  .profile-avatar { width:34px; height:34px; flex-basis:34px; }
  .topbar-nav { gap:10px; }
  .topbar-nav a { font-size:12px; }
  .document-context-card { grid-template-columns:1fr 1fr; padding:15px; gap:13px; }
  .document-context-card > div:nth-child(3) { grid-column:1 / -1; }
  .document-context-change { grid-column:1 / -1; }
}

/* Alshaya Group corporate identity + dynamic organization context */
.corporate-logo-tile { width:104px; height:74px; padding:10px 13px; border-radius:16px; display:flex; align-items:center; justify-content:center; background:var(--brand); box-shadow:0 10px 24px rgba(36,88,141,.18); flex:0 0 auto; }
.corporate-logo-tile img { display:block; width:100%; height:100%; object-fit:contain; }
.corporate-logo-tile-small { width:62px; height:46px; padding:6px 8px; border-radius:12px; }
.topbar-brand-copy { display:flex; flex-direction:column; min-width:0; max-width:300px; }
.topbar-brand-copy strong { font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.topbar-brand-copy small { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.auth-corporate-logo { width:142px; height:100px; padding:8px 10px; margin-bottom:24px; display:flex; align-items:center; justify-content:center; border:1px solid rgba(255,255,255,.16); border-radius:18px; background:rgba(10,35,60,.18); }
.auth-corporate-logo img { width:100%; height:100%; object-fit:contain; }
.landing-brand-row { display:flex; align-items:center; gap:18px; margin-bottom:28px; }
.landing-brand-row .eyebrow { margin-bottom:4px; }
.landing-brand-caption { color:var(--muted); font-size:13px; }
.employee-company-context { margin-top:7px; color:var(--brand); font-size:13px; font-weight:700; }
.employee-company-context span { color:#9aa5ae; padding:0 5px; }

@media (max-width: 640px) {
  .corporate-logo-tile-small { width:50px; height:39px; }
  .topbar-brand-copy { max-width:155px; }
  .topbar-brand-copy strong { font-size:12px; }
  .topbar-brand-copy small { font-size:10px; }
  .auth-corporate-logo { width:116px; height:82px; margin-bottom:18px; }
  .landing-brand-row { align-items:flex-start; }
  .landing-brand-row .corporate-logo-tile { width:84px; height:60px; }
}

/* Patch 0.4 — brand-aware authenticated experience */
.authenticated-page {
  background:
    radial-gradient(circle at 88% -5%, var(--brand-soft) 0, transparent 34%),
    #fbfcfd;
}

.brand-aware-topbar {
  min-height:78px;
  height:auto;
  padding-top:8px;
  padding-bottom:8px;
  border-top:3px solid var(--brand);
}

.brand-logo-frame {
  min-width:64px;
  width:92px;
  height:52px;
  padding:6px 8px;
  border-radius:13px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  border:1px solid var(--line);
  overflow:hidden;
  flex:0 0 auto;
}
.brand-logo-frame img { width:100%; height:100%; object-fit:contain; display:block; }
.brand-logo-frame-colored { background:var(--brand); border-color:transparent; }
.brand-logo-alshaya { width:68px; }
.brand-logo-square { width:58px; height:58px; padding:4px; border-radius:50%; }
.brand-logo-wide { width:154px; height:50px; padding:7px 10px; }
.brand-logo-bbw { width:172px; }
.brand-wordmark { font-size:17px; line-height:1.05; font-weight:850; letter-spacing:-.03em; color:var(--brand-dark); text-align:center; white-space:nowrap; }

.brand-aware-topbar .topbar-brand { gap:14px; min-width:0; }
.brand-aware-topbar .topbar-brand-copy { max-width:310px; }
.brand-aware-topbar .topbar-brand-copy strong { font-size:13px; letter-spacing:.01em; }
.brand-aware-topbar .topbar-brand-copy small { font-size:11px; }
.brand-aware-topbar .topbar-profile:hover { background:var(--brand-soft); border-color:transparent; }
.brand-aware-topbar .profile-avatar { box-shadow:0 0 0 3px var(--brand-soft); }
.brand-aware-topbar .topbar-nav a:hover { color:var(--brand); }

.notice-banner {
  border-color:color-mix(in srgb, var(--brand) 18%, #ffffff);
  background:linear-gradient(90deg,var(--brand-soft),#fff 82%);
}
.status-viewed { background:var(--brand-soft); color:var(--brand-dark); }
.change-box { background:color-mix(in srgb, var(--brand-soft) 65%, #ffffff); }
.input:focus { border-color:var(--brand); box-shadow:0 0 0 4px var(--brand-soft); }
.approval-check input { accent-color:var(--brand); }

/* Standalone public landing — no duplicated top navigation */
.public-landing-page .main-shell { width:min(1180px, calc(100% - 36px)); padding:7vh 0; }
.landing-shell-standalone { min-height:86vh; }
.landing-card-refined { max-width:820px; padding:62px 66px; }
.landing-brand-row-refined { margin-bottom:34px; }
.landing-logo-tile { width:118px; height:82px; }

/* Refined pre-login identity */
.auth-shell-refined { min-height:700px; }
.auth-brand-panel-refined {
  padding:58px 62px;
  justify-content:center;
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,.09), transparent 30%),
    linear-gradient(150deg,#123A60 0%,#24588D 62%,#3F75A8 100%);
}
.auth-logo-lockup { display:flex; align-items:center; gap:16px; margin-bottom:38px; }
.auth-logo-lockup img { width:156px; height:auto; display:block; }
.auth-logo-lockup span { display:none; }
.auth-product-kicker { color:#DDEAF4; font-size:12px; font-weight:850; letter-spacing:.16em; margin-bottom:13px; }
.auth-brand-panel-refined h1 { max-width:510px; font-size:clamp(38px,4vw,54px); margin:0 0 18px; }
.auth-brand-panel-refined > p { max-width:510px; margin-bottom:26px; }
.auth-feature-list { display:flex; flex-direction:column; gap:5px; margin-top:8px; }
.auth-brand-panel-refined .auth-security-line { align-items:flex-start; margin-top:11px; }
.auth-brand-panel-refined .auth-security-line > span { margin-top:2px; flex:0 0 23px; }
.auth-brand-panel-refined .auth-security-line > div { display:flex; flex-direction:column; gap:3px; }
.auth-brand-panel-refined .auth-security-line strong { font-size:14px; }
.auth-brand-panel-refined .auth-security-line small { color:#DDEAF4; font-size:12px; line-height:1.4; }
.compact-feature-list { margin-top:2px; }

/* Authenticated employee page keeps brand in header; page content avoids repeating it. */
.employee-header { margin-bottom:24px; }
.employee-header p { font-size:15px; }
.assignment-card.priority-card { box-shadow:0 14px 32px color-mix(in srgb, var(--brand) 8%, transparent); }
.btn-primary { background:var(--brand); color:var(--brand-on); box-shadow:0 9px 24px color-mix(in srgb, var(--brand) 22%, transparent); }
.btn-primary:hover { background:var(--brand-dark); }
.btn-secondary { background:var(--brand-soft); color:var(--brand-dark); }
.eyebrow { color:var(--brand); }

@media (max-width: 1050px) {
  .brand-logo-wide { width:126px; }
  .brand-logo-bbw { width:138px; }
  .brand-aware-topbar .topbar-brand-copy { max-width:220px; }
}

@media (max-width: 760px) {
  .brand-aware-topbar { min-height:70px; }
  .brand-logo-frame { width:52px; height:44px; padding:5px; }
  .brand-logo-square { width:46px; height:46px; }
  .brand-logo-wide, .brand-logo-bbw { width:92px; height:42px; }
  .brand-aware-topbar .topbar-brand-copy { display:none; }
  .brand-aware-topbar .topbar-actions { margin-left:auto; }
  .landing-card-refined { padding:42px 30px; }
  .auth-logo-lockup { margin-bottom:24px; }
  .auth-logo-lockup img { width:132px; }
  .auth-brand-panel-refined h1 { font-size:34px; }
}

/* Patch 0.5 — refined public identity, unboxed brand logos and profile navigation */

/* Public entry: turn the brand identity into a masthead instead of a button-like tile. */
.landing-card-split {
  padding:0;
  overflow:hidden;
  max-width:860px;
  background:#fff;
}
.landing-card-split:after { display:none; }
.landing-brand-masthead {
  min-height:152px;
  padding:30px 52px;
  display:flex;
  align-items:center;
  gap:24px;
  color:#fff;
  background:
    radial-gradient(circle at 82% 12%, rgba(255,255,255,.12), transparent 31%),
    linear-gradient(120deg,#153B60 0%,#24588D 58%,#3B73A6 100%);
}
.landing-corporate-logo {
  width:132px;
  height:76px;
  object-fit:contain;
  display:block;
  flex:0 0 auto;
}
.landing-masthead-copy { display:flex; flex-direction:column; gap:5px; }
.landing-masthead-copy strong { font-size:13px; letter-spacing:.15em; }
.landing-masthead-copy span { color:#DCE8F2; font-size:13px; }
.landing-content-panel { padding:46px 54px 52px; }
.landing-content-panel h1 { max-width:720px; }
.landing-content-panel p { max-width:720px; }
.refined-actions { margin-top:26px; }
.landing-admin-btn { color:var(--brand-dark); border-color:#B9C9D7; background:#fff; }
.landing-admin-btn:hover { color:var(--brand); border-color:var(--brand); background:#F7FAFC; }

/* Pre-login / OTP: official white mark sits directly on the blue surface. */
.auth-logo-lockup-clean {
  margin-bottom:30px;
  min-height:70px;
}
.auth-logo-lockup-clean img {
  width:180px;
  height:92px;
  object-fit:contain;
  object-position:left center;
  filter:none;
}
.auth-brand-panel-refined {
  background:
    radial-gradient(circle at 17% 9%, rgba(255,255,255,.11), transparent 29%),
    radial-gradient(circle at 92% 86%, rgba(255,255,255,.05), transparent 28%),
    linear-gradient(148deg,#143B61 0%,#24588D 57%,#3974A8 100%);
}

/* Authenticated brand area: logos are identity, not controls. */
.brand-aware-topbar {
  min-height:76px;
  border-top:3px solid var(--brand);
  box-shadow:0 5px 22px rgba(24,37,49,.035);
}
.brand-logo-frame {
  width:auto;
  min-width:0;
  height:48px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  overflow:visible;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  flex:0 0 auto;
}
.brand-logo-frame img {
  display:block;
  width:auto;
  max-width:100%;
  height:100%;
  object-fit:contain;
  object-position:left center;
}
.brand-logo-frame-colored { background:transparent; border:0; }
.brand-logo-alshaya { width:108px; height:48px; }
.brand-logo-square { width:48px; height:48px; padding:0; border-radius:0; }
.brand-logo-wide { width:136px; height:38px; padding:0; }
.brand-logo-bbw { width:150px; height:36px; }
.brand-wordmark {
  color:var(--brand-dark);
  text-align:left;
  letter-spacing:-.025em;
  font-size:18px;
}
.brand-aware-topbar .topbar-brand { gap:16px; }
.brand-aware-topbar .topbar-brand-copy { max-width:300px; padding-left:1px; }
.brand-aware-topbar .topbar-brand-copy strong { font-size:13px; }
.brand-aware-topbar .topbar-brand-copy small { font-size:11px; }

/* Employee profile menu replaces three persistent navigation links. */
.profile-menu { position:relative; }
.profile-menu > summary { list-style:none; }
.profile-menu > summary::-webkit-details-marker { display:none; }
.profile-menu .topbar-profile {
  cursor:pointer;
  user-select:none;
  padding:6px 9px 6px 6px;
  border-radius:14px;
  border:1px solid transparent;
  display:flex;
  align-items:center;
  gap:10px;
  transition:background .15s ease,border-color .15s ease,box-shadow .15s ease;
}
.profile-menu .topbar-profile:hover,
.profile-menu[open] .topbar-profile {
  background:var(--brand-soft);
  border-color:color-mix(in srgb, var(--brand) 10%, transparent);
}
.profile-chevron {
  width:8px;
  height:8px;
  border-right:2px solid var(--muted);
  border-bottom:2px solid var(--muted);
  transform:rotate(45deg) translateY(-2px);
  margin:0 4px 0 2px;
  transition:transform .15s ease;
}
.profile-menu[open] .profile-chevron { transform:rotate(225deg) translate(-1px,-1px); }
.profile-dropdown {
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  width:250px;
  padding:9px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:0 20px 50px rgba(21,35,49,.16);
  z-index:80;
  animation:profileMenuIn .12s ease-out;
}
.profile-dropdown:before {
  content:"";
  position:absolute;
  right:26px;
  top:-6px;
  width:11px;
  height:11px;
  transform:rotate(45deg);
  background:#fff;
  border-left:1px solid var(--line);
  border-top:1px solid var(--line);
}
.profile-dropdown-identity {
  display:flex;
  flex-direction:column;
  padding:10px 11px 11px;
  margin-bottom:4px;
}
.profile-dropdown-identity strong { font-size:13px; }
.profile-dropdown-identity span { margin-top:3px; color:var(--muted); font-size:11px; }
.profile-dropdown a {
  min-height:42px;
  padding:10px 11px;
  border-radius:10px;
  display:flex;
  align-items:center;
  gap:10px;
  font-size:13px;
  font-weight:650;
  color:var(--ink);
}
.profile-dropdown a:hover { background:var(--brand-soft); color:var(--brand-dark); }
.profile-dropdown-divider { height:1px; margin:6px 7px; background:var(--line); }
.profile-dropdown .menu-logout { color:#7A4A4A; }
.profile-dropdown .menu-logout:hover { color:#8D2E2E; background:#FBF2F2; }
.menu-icon { width:20px; text-align:center; color:var(--brand); font-size:16px; line-height:1; }
.menu-logout .menu-icon { color:inherit; }
@keyframes profileMenuIn {
  from { opacity:0; transform:translateY(-4px) scale(.985); }
  to { opacity:1; transform:translateY(0) scale(1); }
}

/* Fewer duplicate links on the employee home page. */
.employee-header-clean { margin-bottom:24px; }
.employee-header-clean > div { max-width:720px; }

@media (max-width: 760px) {
  .landing-brand-masthead { min-height:126px; padding:25px 28px; gap:16px; }
  .landing-corporate-logo { width:105px; height:62px; }
  .landing-masthead-copy strong { font-size:11px; }
  .landing-masthead-copy span { font-size:11px; }
  .landing-content-panel { padding:36px 30px 40px; }
  .refined-actions { display:grid; grid-template-columns:1fr; }
  .refined-actions .btn { width:100%; }

  .auth-logo-lockup-clean img { width:150px; height:76px; }

  .brand-aware-topbar { padding-left:18px; padding-right:14px; }
  .brand-logo-alshaya { width:84px; height:42px; }
  .brand-logo-wide { width:104px; height:34px; }
  .brand-logo-bbw { width:112px; height:32px; }
  .brand-logo-square { width:42px; height:42px; }
  .brand-aware-topbar .topbar-brand-copy { display:none; }
  .profile-copy { display:none; }
  .profile-menu .topbar-profile { padding:4px; gap:5px; }
  .profile-chevron { margin-right:6px; }
  .profile-dropdown { width:min(250px, calc(100vw - 28px)); right:-2px; }
}

/* Patch 0.6 — demo login helpers + richer profile menu icons */
.demo-login-card {
  margin-top: 24px;
  padding: 18px 18px 8px;
  border: 1px solid #d9e3eb;
  background: linear-gradient(180deg, #f9fbfd 0%, #f4f8fb 100%);
  border-radius: 18px;
}
.demo-login-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.demo-login-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.demo-login-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  background: #fff;
  border: 1px solid #e2e8ee;
  border-radius: 14px;
}
.demo-login-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.demo-login-brand {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.demo-login-copy strong {
  font-size: 18px;
  letter-spacing: -.02em;
}
.demo-login-copy small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.demo-fill-btn {
  min-width: 82px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 11px;
  border: 1px solid #c6d5e1;
  background: #fff;
  color: var(--brand-dark);
  font-weight: 750;
  cursor: pointer;
  transition: .15s ease;
}
.demo-fill-btn:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
  transform: translateY(-1px);
}
.demo-fill-btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px var(--brand-soft);
  border-color: var(--brand);
}

.profile-dropdown a {
  gap: 12px;
}
.menu-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  font-size: 0;
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.menu-icon svg {
  width: 17px;
  height: 17px;
  display: block;
}
.menu-icon--home {
  background: color-mix(in srgb, var(--brand-soft) 72%, #ffffff);
  color: var(--brand-dark);
}
.menu-icon--history {
  background: color-mix(in srgb, var(--brand-soft) 46%, #ffffff);
  color: var(--brand);
}
.menu-icon--logout {
  background: #fbf2f2;
  color: #8d2e2e;
}
.profile-dropdown a:hover .menu-icon--home,
.profile-dropdown a:hover .menu-icon--history {
  background: rgba(255,255,255,.8);
}
.profile-dropdown .menu-logout:hover .menu-icon--logout {
  background: #fff;
}

@media (max-width: 900px) {
  .demo-login-card { margin-top: 20px; }
}

@media (max-width: 640px) {
  .demo-login-card {
    padding: 16px 14px 6px;
    border-radius: 16px;
  }
  .demo-login-item {
    align-items: flex-start;
    flex-direction: column;
  }
  .demo-fill-btn {
    width: 100%;
  }
}

/* Patch 0.7 — production-style login demo helpers + premium employee dashboard */

/* Login composition inspired by the approved visual direction. */
.auth-shell-demo-ready {
  min-height: 760px;
  grid-template-columns: 1.02fr .98fr;
}
.auth-brand-panel-premium {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.auth-brand-panel-premium::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 66%;
  height: 132%;
  top: -18%;
  right: -25%;
  transform: rotate(-27deg);
  border-radius: 44px;
  background: linear-gradient(180deg, rgba(21,76,135,.42), rgba(64,136,205,.08));
}
.auth-brand-panel-premium::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 88%;
  height: 42%;
  left: 27%;
  bottom: -24%;
  transform: rotate(11deg);
  border-radius: 50%;
  background: rgba(8,53,105,.20);
}
.auth-brand-panel-premium > * { position: relative; z-index: 1; }
.auth-brand-panel-premium .auth-logo-lockup-clean { margin-bottom: 28px; }
.auth-brand-panel-premium .auth-logo-lockup-clean img {
  width: 164px;
  height: 86px;
}
.auth-kicker-rule {
  display: block;
  width: 52px;
  height: 3px;
  border-radius: 99px;
  background: #74b5f1;
  margin: -4px 0 18px;
}
.auth-brand-panel-premium h1 {
  max-width: 520px;
  font-size: clamp(42px, 4.1vw, 58px);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.auth-brand-panel-premium > p {
  max-width: 500px;
  font-size: 16px;
  line-height: 1.58;
}
.auth-feature-list-premium { margin-top: 16px; gap: 8px; }
.auth-feature-list-premium .auth-security-line {
  margin-top: 7px;
  gap: 13px;
}
.auth-feature-list-premium .auth-check-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  margin-top: 0;
  background: rgba(101,176,239,.34);
  font-size: 18px;
}
.auth-feature-list-premium strong { font-size: 14px; }
.auth-feature-list-premium small { font-size: 11.5px; }

.auth-form-panel-premium {
  padding: 50px 62px;
  justify-content: center;
}
.auth-form-content {
  width: min(100%, 520px);
  margin: 0 auto;
}
.auth-form-content h2 {
  margin-bottom: 20px;
  font-size: 34px;
}
.auth-form-intro {
  max-width: 480px;
  font-size: 15px;
  line-height: 1.65;
}
.auth-login-form { margin-top: 30px; }
.input-with-icon { position: relative; }
.input-leading-icon {
  position: absolute;
  z-index: 1;
  left: 15px;
  top: 50%;
  width: 22px;
  height: 22px;
  color: #8091a5;
  transform: translateY(-50%);
  pointer-events: none;
}
.input-leading-icon svg,
.button-leading-icon svg { width: 100%; height: 100%; display: block; }
.input.input-with-leading {
  height: 58px;
  padding-left: 50px;
  border-color: #ccd7e1;
  border-radius: 14px;
  font-size: 16px;
}
.auth-submit-btn {
  min-height: 60px;
  margin-top: 5px;
  gap: 12px;
  border-radius: 14px;
  font-size: 15px;
}
.button-leading-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  flex: 0 0 22px;
}

.demo-login-card-premium {
  margin-top: 26px;
  padding: 16px;
  border-color: #cfdce7;
  border-radius: 16px;
  background: linear-gradient(180deg,#fbfdff 0%,#f5f9fc 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.demo-login-head-premium {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 1px 2px 12px;
}
.demo-login-head-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  color: var(--brand);
  background: #fff;
  border: 1px solid #cbd9e5;
}
.demo-login-head-icon svg { width: 22px; height: 22px; }
.demo-login-head-premium strong {
  display: block;
  color: var(--brand-dark);
  font-size: 15px;
}
.demo-login-head-premium p {
  margin-top: 3px;
  font-size: 11.5px;
  line-height: 1.35;
}
.demo-login-list-premium { gap: 7px; margin-top: 0; }
.demo-account-row {
  width: 100%;
  min-height: 52px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 86px 22px minmax(0,1fr);
  align-items: center;
  gap: 6px;
  border: 1px solid #dfe7ed;
  border-radius: 11px;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.demo-account-row:hover {
  border-color: color-mix(in srgb, var(--brand) 42%, #dfe7ed);
  background: #fff;
  box-shadow: 0 7px 20px rgba(36,88,141,.07);
  transform: translateY(-1px);
}
.demo-account-row:focus-visible {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.demo-account-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  background: #f3f6f9;
  border: 1px solid #dfe6ec;
  color: #233750;
  font-weight: 800;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.demo-account-separator { color: #72859a; text-align: center; }
.demo-account-context {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.demo-account-context strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #243750;
  font-size: 13px;
  font-weight: 700;
}
.demo-account-context small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--muted);
  font-size: 10.5px;
}

/* Authenticated header: brand identity is separated from location, profile is a clear account control. */
.brand-aware-topbar .topbar-brand-copy {
  border-left: 1px solid #e0e4e8;
  padding-left: 18px;
}
.profile-menu .topbar-profile {
  min-height: 52px;
  padding: 6px 10px 6px 7px;
  background: color-mix(in srgb, var(--brand-soft) 72%, #ffffff);
  border-color: color-mix(in srgb, var(--brand) 12%, #e7e3e6);
  border-radius: 16px;
}
.profile-menu .topbar-profile:hover,
.profile-menu[open] .topbar-profile {
  box-shadow: 0 8px 22px color-mix(in srgb, var(--brand) 8%, transparent);
}
.profile-dropdown {
  width: 278px;
  padding: 12px;
  border-radius: 17px;
}
.profile-dropdown-identity { padding: 10px 12px 13px; }
.profile-dropdown-identity strong { font-size: 14px; }
.profile-dropdown-identity span { font-size: 11.5px; }
.profile-dropdown a {
  min-height: 50px;
  padding: 8px 10px;
  gap: 13px;
  border-radius: 11px;
  font-size: 13.5px;
}
.menu-icon {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  border-radius: 11px;
  background: transparent;
}
.menu-icon svg { width: 24px; height: 24px; }
.menu-icon--home,
.menu-icon--history {
  color: var(--brand-dark);
  background: color-mix(in srgb, var(--brand-soft) 56%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--brand) 10%, transparent);
}
.menu-icon--history { color: var(--brand); }
.menu-icon--logout {
  color: #9a5155;
  background: #fbf2f3;
  border: 1px solid #f3dfe1;
}
.profile-dropdown a:hover .menu-icon--home,
.profile-dropdown a:hover .menu-icon--history {
  background: #fff;
  border-color: color-mix(in srgb, var(--brand) 20%, transparent);
}

/* Home screen — spacious approved visual direction, while preserving real model fields. */
.employee-header-premium {
  margin-top: 8px;
  margin-bottom: 30px;
}
.employee-header-premium h1 {
  max-width: 780px;
  font-size: clamp(34px,3.3vw,48px);
}
.employee-header-premium p { font-size: 16px; }
.notice-banner-premium {
  min-height: 90px;
  padding: 18px 26px;
  color: inherit;
  border-radius: 20px;
  background: linear-gradient(90deg, color-mix(in srgb,var(--brand-soft) 78%,#fff), #fff 84%);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.notice-banner-premium:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--brand) 28%, #ffffff);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--brand) 7%, transparent);
}
.notice-icon-premium {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border-radius: 50%;
  font-size: 22px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
}
.notice-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.notice-copy strong { font-size: 15px; }
.notice-copy span { font-size: 14px; }
.notice-chevron {
  width: 28px;
  height: 28px;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-dark);
  flex: 0 0 28px;
}
.notice-chevron svg { width: 23px; height: 23px; }
.assignment-grid-premium {
  grid-template-columns: minmax(0, 670px);
  align-items: start;
}
.assignment-card-premium {
  padding: 28px;
  border-radius: 22px;
  box-shadow: 0 16px 38px color-mix(in srgb,var(--brand) 7%,transparent);
}
.assignment-card-premium .card-topline { margin-bottom: 20px; }
.assignment-card-heading h3 { font-size: 23px; margin-bottom: 7px; }
.assignment-card-heading p { margin-bottom: 0; }
.task-meta-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 0;
  margin: 24px 0 20px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.task-meta-item {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-right: 1px solid var(--line);
}
.task-meta-item:first-child { padding-left: 0; }
.task-meta-item:last-child { padding-right: 0; border-right: 0; }
.task-meta-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--brand-dark);
  background: color-mix(in srgb, var(--brand-soft) 58%,#fff);
}
.task-meta-icon svg { width: 21px; height: 21px; }
.task-meta-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.task-meta-copy small {
  color: var(--muted);
  font-size: 10.5px;
  white-space: nowrap;
}
.task-meta-copy strong {
  font-size: 12.5px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.change-box-premium {
  margin-bottom: 18px;
  border: 1px solid color-mix(in srgb, var(--brand) 7%,transparent);
}
.task-review-button {
  min-height: 54px;
  gap: 10px;
  border-radius: 12px;
}
.task-review-button .button-leading-icon { width: 21px; height: 21px; }

@media (max-width: 1000px) {
  .auth-shell-demo-ready { min-height: auto; }
  .auth-form-panel-premium { padding: 44px; }
}

@media (max-width: 900px) {
  .auth-brand-panel-premium::before,
  .auth-brand-panel-premium::after { opacity: .65; }
  .auth-form-content { width: 100%; }
  .brand-aware-topbar .topbar-brand-copy { border-left: 0; padding-left: 0; }
}

@media (max-width: 700px) {
  .auth-brand-panel-premium h1 { font-size: 36px; }
  .auth-form-panel-premium { padding: 34px 26px; }
  .auth-form-content h2 { font-size: 29px; }
  .demo-account-row { grid-template-columns: 80px 18px minmax(0,1fr); }
  .task-meta-grid { grid-template-columns: 1fr; gap: 12px; }
  .task-meta-item,
  .task-meta-item:first-child,
  .task-meta-item:last-child {
    padding: 0;
    border-right: 0;
  }
  .assignment-grid-premium { grid-template-columns: 1fr; }
  .notice-banner-premium { padding: 16px; }
  .notice-chevron { display: none; }
}

@media (max-width: 440px) {
  .demo-account-row {
    grid-template-columns: 74px minmax(0,1fr);
  }
  .demo-account-separator { display: none; }
  .demo-account-context small { white-space: normal; }
}

/* Patch 0.8 — crisp feature checks + demo-only return navigation */
.auth-feature-list-premium .auth-check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  padding: 0;
  border-radius: 50%;
  background: rgba(101,176,239,.34);
  color: #fff;
  line-height: 1;
  font-size: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.auth-feature-list-premium .auth-check-icon svg {
  display: block;
  width: 19px;
  height: 19px;
  overflow: visible;
}

.auth-form-panel-premium { position: relative; }
.auth-demo-back-link {
  position: absolute;
  top: 38px;
  left: 62px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 2px;
  color: #637386;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: color .15s ease, transform .15s ease;
}
.auth-demo-back-link:hover {
  color: var(--brand);
  transform: translateX(-2px);
}
.auth-demo-back-link:focus-visible {
  outline: 0;
  color: var(--brand);
  box-shadow: 0 2px 0 var(--brand);
}
.auth-demo-back-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
}
.auth-demo-back-icon svg { width: 18px; height: 18px; display: block; }

@media (max-width: 1000px) {
  .auth-demo-back-link { top: 30px; left: 44px; }
}

@media (max-width: 900px) {
  .auth-form-panel-premium { display: block; }
  .auth-demo-back-link {
    position: static;
    margin: 0 0 34px;
  }
}

/* Patch 0.9 — unified Phosphor icon system
   All interface icons now use one local SVG family with fixed square geometry.
   This prevents font/rendering and mixed-viewBox deformation across browsers. */
.ph-icon {
  --ph-icon: none;
  display: inline-block;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask-image: var(--ph-icon);
  mask-image: var(--ph-icon);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  vertical-align: -0.125em;
}
.ph-icon-check { --ph-icon: url("../icons/phosphor/regular/check.svg"); }
.ph-icon-user { --ph-icon: url("../icons/phosphor/regular/user.svg"); }
.ph-icon-paper-plane-tilt { --ph-icon: url("../icons/phosphor/regular/paper-plane-tilt.svg"); }
.ph-icon-clipboard-text { --ph-icon: url("../icons/phosphor/regular/clipboard-text.svg"); }
.ph-icon-clock-counter-clockwise { --ph-icon: url("../icons/phosphor/regular/clock-counter-clockwise.svg"); }
.ph-icon-sign-out { --ph-icon: url("../icons/phosphor/regular/sign-out.svg"); }
.ph-icon-warning-circle { --ph-icon: url("../icons/phosphor/regular/warning-circle.svg"); }
.ph-icon-file-magnifying-glass { --ph-icon: url("../icons/phosphor/regular/file-magnifying-glass.svg"); }
.ph-icon-calendar-blank { --ph-icon: url("../icons/phosphor/regular/calendar-blank.svg"); }
.ph-icon-clock { --ph-icon: url("../icons/phosphor/regular/clock.svg"); }
.ph-icon-file-text { --ph-icon: url("../icons/phosphor/regular/file-text.svg"); }
.ph-icon-arrow-left { --ph-icon: url("../icons/phosphor/regular/arrow-left.svg"); }
.ph-icon-caret-right { --ph-icon: url("../icons/phosphor/regular/caret-right.svg"); }

/* Feature checks: explicitly override the older 23px flex basis that caused ovals. */
.auth-brand-panel-refined .auth-security-line > .auth-check-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  flex: 0 0 34px;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  margin-top: 0;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(101,176,239,.34);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.09);
}
.auth-brand-panel-refined .auth-security-line > .auth-check-icon .ph-icon {
  width: 18px;
  height: 18px;
  color: #fff;
}
.compact-panel .auth-security-line > .auth-check-icon {
  width: 31px;
  height: 31px;
  min-width: 31px;
  flex-basis: 31px;
}
.compact-panel .auth-security-line > .auth-check-icon .ph-icon {
  width: 16px;
  height: 16px;
}

/* Login/demo icons — fixed, square and optically aligned. */
.input-leading-icon.ph-icon {
  width: 22px;
  height: 22px;
}
.button-leading-icon.ph-icon {
  width: 22px;
  height: 22px;
  display: inline-block;
}
.demo-login-head-icon .ph-icon {
  width: 21px;
  height: 21px;
}
.auth-demo-back-icon .ph-icon {
  width: 18px;
  height: 18px;
}

/* Profile menu — one icon family, one optical box. */
.menu-icon .ph-icon {
  width: 23px;
  height: 23px;
  display: inline-block;
}
.menu-icon--home .ph-icon,
.menu-icon--history .ph-icon,
.menu-icon--logout .ph-icon {
  color: inherit;
}

/* Home page icon normalization. */
.notice-icon-premium .ph-icon {
  width: 26px;
  height: 26px;
  color: #fff;
}
.notice-chevron .ph-icon {
  width: 21px;
  height: 21px;
  color: var(--brand);
}
.task-meta-icon .ph-icon {
  width: 21px;
  height: 21px;
  color: inherit;
}
.task-review-button .ph-icon {
  width: 21px;
  height: 21px;
  color: currentColor;
}
.empty-icon .ph-icon {
  width: 27px;
  height: 27px;
  color: inherit;
}

/* Patch 1.0 — multilingual UI + Arabic RTL */
.language-menu { position: relative; z-index: 35; }
.language-menu > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid rgba(36,88,141,.14);
  border-radius: 12px;
  background: rgba(255,255,255,.92);
  color: #42566b;
  box-shadow: 0 8px 24px rgba(36,88,141,.06);
  font-size: 12px;
  font-weight: 700;
}
.language-menu > summary::-webkit-details-marker { display: none; }
.language-menu[open] > summary { border-color: color-mix(in srgb,var(--brand) 30%,#dfe7ee); }
.language-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 24px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 850;
  letter-spacing: .04em;
  direction: ltr;
}
.language-current { white-space: nowrap; }
.language-chevron {
  width: 7px;
  height: 7px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: .75;
  transition: transform .15s ease;
}
.language-menu[open] .language-chevron { transform: rotate(225deg) translate(-1px,-1px); }
.language-dropdown {
  position: absolute;
  inset-block-start: calc(100% + 8px);
  inset-inline-end: 0;
  width: 176px;
  padding: 7px;
  border: 1px solid #e0e6eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(30,48,68,.14);
}
.language-dropdown a {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 6px 9px;
  border-radius: 9px;
  color: #405268;
  font-size: 12px;
}
.language-dropdown a > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 25px;
  border-radius: 7px;
  background: #f2f6f9;
  font-size: 10.5px;
  font-weight: 850;
  direction: ltr;
}
.language-dropdown a:hover { background: #f5f8fa; }
.language-dropdown a.active { background: var(--brand-soft); color: var(--brand-dark); }
.language-dropdown a.active > span { background: #fff; color: var(--brand); }
.public-language-menu { position: fixed; inset-block-start: 18px; inset-inline-end: 22px; }
.admin-language-menu > summary { min-height: 34px; padding: 5px 8px; box-shadow: none; }
.admin-language-menu .language-dropdown { width: 165px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }

.profile-language-block { padding: 8px 10px 5px; }
.profile-language-label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.profile-language-options { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.profile-language-options a {
  min-height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e1e7eb;
  border-radius: 9px;
  background: #fff;
  color: #627184;
  font-size: 11px;
  font-weight: 850;
  direction: ltr;
}
.profile-language-options a:hover { background: #f6f8fa; }
.profile-language-options a.active { background: var(--brand-soft); border-color: color-mix(in srgb,var(--brand) 18%,#e1e7eb); color: var(--brand-dark); }
.directional-arrow { display: inline-block; }

/* Arabic: mirror layout/navigation, not identifiers or numeric evidence fields. */
html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .topbar,
html[dir="rtl"] .topbar-brand,
html[dir="rtl"] .topbar-actions,
html[dir="rtl"] .topbar-nav,
html[dir="rtl"] .page-header,
html[dir="rtl"] .section-title-row,
html[dir="rtl"] .notice-banner,
html[dir="rtl"] .document-toolbar,
html[dir="rtl"] .approval-check,
html[dir="rtl"] .auth-security-line,
html[dir="rtl"] .landing-actions { direction: rtl; }
html[dir="rtl"] th,
html[dir="rtl"] td { text-align: right; }
html[dir="rtl"] .brand-aware-topbar .topbar-actions { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .brand-aware-topbar .topbar-brand-copy {
  border-left: 0;
  padding-left: 0;
  border-right: 1px solid #e0e4e8;
  padding-right: 18px;
}
html[dir="rtl"] .profile-dropdown { right: auto; left: 0; }
html[dir="rtl"] .notice-chevron { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .task-meta-item { border-right: 0; border-left: 1px solid var(--line); }
html[dir="rtl"] .task-meta-item:first-child { padding-left: 14px; padding-right: 0; }
html[dir="rtl"] .task-meta-item:last-child { padding-right: 14px; padding-left: 0; border-left: 0; }
html[dir="rtl"] .document-change { border-left: 0; border-right: 4px solid #d39a26; }
html[dir="rtl"] .document-context-change { border-left: 0; padding-left: 0; border-right: 1px solid var(--line); padding-right: 18px; }
html[dir="rtl"] .auth-demo-back-link { left: auto; right: 62px; }
html[dir="rtl"] .auth-demo-back-link:hover { transform: translateX(2px); }
html[dir="rtl"] .directional-arrow,
html[dir="rtl"] .ph-icon-arrow-left,
html[dir="rtl"] .ph-icon-caret-right { transform: scaleX(-1); }
html[dir="rtl"] .demo-account-row { text-align: right; }
html[dir="rtl"] .demo-account-no,
html[dir="rtl"] .otp-input,
html[dir="rtl"] [dir="ltr"] { unicode-bidi: isolate; }
html[dir="rtl"] .filter-row { direction: rtl; }
html[dir="rtl"] .approval-meta div,
html[dir="rtl"] .info-pair { direction: rtl; }

@media (max-width: 900px) {
  .public-language-menu { inset-block-start: 10px; inset-inline-end: 12px; }
  html[dir="rtl"] .auth-demo-back-link { right: auto; }
  html[dir="rtl"] .brand-aware-topbar .topbar-brand-copy { border-right: 0; padding-right: 0; }
}

@media (max-width: 700px) {
  .language-current { display: none; }
  .public-language-menu > summary { padding: 6px 8px; }
  html[dir="rtl"] .task-meta-item,
  html[dir="rtl"] .task-meta-item:first-child,
  html[dir="rtl"] .task-meta-item:last-child { padding: 0; border-left: 0; }
}
.auth-shell { position: relative; }
.page-language-menu { position: absolute; inset-block-start: 18px; inset-inline-end: 18px; }
.landing-card .page-language-menu { inset-block-start: 18px; inset-inline-end: 18px; }
@media (max-width: 900px) {
  .page-language-menu { inset-block-start: 12px; inset-inline-end: 12px; }
}


/* Patch 1.0.1 — OTP language-switch continuity and safe navigation */
.otp-form-panel { justify-content:center; }
.otp-navigation {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px 18px;
  margin-bottom:28px;
}
.otp-nav-link {
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--brand-dark);
  font-size:13px;
  font-weight:750;
  text-decoration:none;
  line-height:1.2;
  transition:color .15s ease, transform .15s ease;
}
.otp-nav-link .ph-icon { width:18px; height:18px; flex:0 0 18px; }
.otp-nav-link:hover { color:var(--brand); transform:translateX(-2px); }
.otp-nav-link-secondary { color:var(--muted); font-weight:650; }
html[dir="rtl"] .otp-nav-link:hover { transform:translateX(2px); }
html[dir="rtl"] .otp-navigation { justify-content:flex-start; }


@media (max-width:640px) {
  .otp-navigation { margin-bottom:22px; gap:9px 14px; }
  .otp-nav-link { font-size:12px; }
}

/* Patch 1.0.2 — RTL mixed-content isolation and home alignment polish */
.business-value,
.technical-value {
  unicode-bidi: isolate;
  isolation: isolate;
}
.business-value { display: inline; }
.technical-value {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mixed-greeting {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .18em;
}
.mixed-data-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}
.mixed-data-separator {
  color: var(--muted);
  user-select: none;
}

.pending-section-title {
  justify-content: flex-start;
  gap: 12px;
}
.pending-section-title .record-count {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.notice-action-label {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 10px;
  color: var(--brand-dark) !important;
  background: color-mix(in srgb, var(--brand-soft) 72%, #fff);
  font-size: 12px !important;
  font-weight: 800;
  white-space: nowrap;
}
.notice-action-label .directional-arrow {
  color: currentColor;
  font-size: 16px;
  line-height: 1;
}

/* Business data coming from HR may remain Latin while the application shell is Arabic. */
html[dir="rtl"] bdi.business-value[dir="auto"],
html[dir="rtl"] bdi.technical-value[dir="ltr"] {
  unicode-bidi: isolate;
}
html[dir="rtl"] .mixed-greeting,
html[dir="rtl"] .mixed-data-line {
  direction: rtl;
  justify-content: flex-start;
}
html[dir="rtl"] .pending-section-title {
  justify-content: flex-start;
}
html[dir="rtl"] .history-mini-date,
html[dir="rtl"] .task-meta-copy strong,
html[dir="rtl"] .version-pill,
html[dir="rtl"] .hash-preview {
  direction: ltr;
  unicode-bidi: isolate;
}

@media (max-width: 700px) {
  .notice-action-label span:first-child { display: none; }
  .notice-action-label { width: 34px; height: 34px; padding: 0; justify-content: center; }
  .pending-section-title { gap: 8px; }
}

/* Patch 1.1.0 — HR monitoring center / read-only administration */
.admin-page-header { align-items:flex-end; }
.admin-header-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.admin-header-actions .btn { gap:8px; }
.admin-header-actions .ph-icon { width:18px; height:18px; }

.admin-topbar-nav { gap:8px; }
.admin-topbar-nav a {
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:38px;
  padding:8px 10px;
  border-radius:10px;
  color:#5f6e7e;
  font-size:12.5px;
  font-weight:750;
  white-space:nowrap;
}
.admin-topbar-nav a .ph-icon { width:17px; height:17px; }
.admin-topbar-nav a:hover { background:#f3f6f8; color:var(--brand); }
.admin-topbar-nav a.active { background:var(--brand-soft); color:var(--brand-dark); }
.admin-topbar-nav .nav-logout { margin-inline-start:4px; color:#7a6570; }

.admin-kpi-grid { grid-template-columns:repeat(5,minmax(0,1fr)); }
.admin-kpi-grid.four-cols { grid-template-columns:repeat(4,minmax(0,1fr)); }
.admin-kpi-grid.three-cols { grid-template-columns:repeat(3,minmax(0,1fr)); }
.admin-kpi-grid .kpi { position:relative; overflow:hidden; min-height:122px; }
.admin-kpi-grid .kpi:before { content:""; position:absolute; inset-block:0; inset-inline-start:0; width:4px; background:#dce4ea; }
.admin-kpi-grid .kpi.kpi-accent:before { background:var(--brand); }
.admin-kpi-grid .kpi.kpi-success:before { background:var(--success); }
.admin-kpi-grid .kpi.kpi-warning:before { background:#d39a26; }
.admin-kpi-grid .kpi.kpi-rate:before { background:#7058a3; }
.admin-kpi-grid .kpi small { display:block; margin-top:7px; color:#8793a0; font-size:11.5px; line-height:1.35; }

.admin-section-card {
  margin-top:20px;
  padding:22px;
  border:1px solid var(--line);
  border-radius:22px;
  background:rgba(255,255,255,.95);
  box-shadow:0 10px 30px rgba(35,57,75,.04);
}
.admin-section-title { margin:0 0 18px; }
.admin-section-title .eyebrow { margin-bottom:6px; }
.admin-section-title h2 { margin:0; font-size:22px; }

.brand-summary-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.brand-summary-card { padding:17px; border:1px solid #e4e8eb; border-radius:16px; background:linear-gradient(180deg,#fff,#fbfcfd); }
.brand-summary-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:14px; }
.brand-summary-head strong { font-size:14px; line-height:1.3; }
.brand-rate { flex:0 0 auto; padding:4px 8px; border-radius:99px; background:var(--brand-soft); color:var(--brand-dark); font-size:11px; font-weight:850; }
.brand-summary-metrics { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-bottom:12px; }
.brand-summary-metrics div { padding:8px 9px; border-radius:10px; background:#f6f8fa; }
.brand-summary-metrics span { display:block; color:var(--muted); font-size:10px; }
.brand-summary-metrics strong { display:block; margin-top:2px; font-size:16px; font-variant-numeric:tabular-nums; }
.progress-track { height:6px; overflow:hidden; border-radius:999px; background:#eef1f3; }
.progress-track span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--brand),var(--brand-dark)); }

.filter-panel {
  display:grid;
  grid-template-columns:repeat(4,minmax(150px,1fr));
  gap:11px;
  margin-bottom:18px;
  padding:16px;
  border:1px solid #e4e9ed;
  border-radius:16px;
  background:#f8fafb;
}
.filter-panel > div { min-width:0; }
.filter-panel label { display:block; margin:0 0 6px; color:#596879; font-size:11.5px; font-weight:750; }
.filter-panel .input { height:42px; padding-inline:12px; border-radius:10px; font-size:12.5px; }
.filter-search-wide { grid-column:span 2; }
.filter-actions { display:flex; align-items:flex-end; gap:8px; }
.filter-actions .btn { min-height:42px; padding:9px 15px; font-size:12.5px; }
.compact-filter-panel { grid-template-columns:minmax(280px,1fr) auto; }
.employee-filter-panel { grid-template-columns:repeat(4,minmax(150px,1fr)); }

.admin-table-card { border-radius:16px; box-shadow:none; }
.admin-data-table { min-width:1120px; }
.admin-data-table th { padding:12px 14px; background:#f7f9fa; font-size:10.5px; }
.admin-data-table td { padding:13px 14px; font-size:12.5px; }
.admin-data-table tbody tr:last-child td { border-bottom:0; }
.employee-cell { display:flex; flex-direction:column; gap:3px; }
.employee-cell strong { font-size:13.5px; }
.employee-cell span { color:var(--muted); font-size:11.5px; }
.employee-state { display:inline-flex; align-items:center; gap:4px; font-size:10.5px; font-weight:800; }
.employee-state:before { content:""; width:6px; height:6px; border-radius:50%; background:#9aa4ad; }
.employee-state.active { color:var(--success); }
.employee-state.active:before { background:var(--success); }
.employee-state.passive { color:#8b6d76; }
.employee-state.passive:before { background:#a98a94; }
.rate-pill { display:inline-flex; min-width:54px; justify-content:center; padding:5px 8px; border-radius:9px; background:#f0f5f8; color:#425b70; font-size:11px; font-weight:850; }
.icon-action-link { display:inline-flex; align-items:center; gap:6px; color:var(--brand); font-size:11.5px; font-weight:800; white-space:nowrap; }
.icon-action-link .ph-icon { width:17px; height:17px; }
.icon-action-link:hover { color:var(--brand-dark); }

.source-system-callout { display:flex; align-items:center; gap:13px; margin-bottom:16px; padding:14px 16px; border:1px solid #d8e6ef; border-radius:14px; background:#f1f7fb; color:#355976; }
.source-system-callout > .ph-icon { width:25px; height:25px; flex:0 0 25px; }
.source-system-callout div { display:flex; flex-direction:column; gap:3px; }
.source-system-callout strong { font-size:13px; }
.source-system-callout span { color:#677d90; font-size:11.5px; line-height:1.45; }

.employee-admin-summary { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:18px; padding:17px 20px; border:1px solid #e0e7ec; border-radius:18px; background:linear-gradient(90deg,#fff,#f8fbfd); }
.employee-admin-identity { display:flex; align-items:center; gap:13px; }
.employee-admin-avatar { width:46px; height:46px; border-radius:14px; display:grid; place-items:center; background:var(--brand-soft); color:var(--brand-dark); }
.employee-admin-avatar .ph-icon { width:24px; height:24px; }
.employee-admin-identity > div:last-child { display:flex; flex-direction:column; gap:3px; }
.employee-admin-identity strong { font-size:14px; }
.employee-admin-identity span, .employee-admin-identity small { color:var(--muted); font-size:11.5px; }
.employee-admin-status { display:flex; align-items:flex-end; flex-direction:column; gap:7px; color:var(--muted); font-size:11.5px; }
.employee-detail-grid { grid-template-columns:1.25fr .75fr; }
.approval-summary-card { display:flex; flex-direction:column; }
.approval-rate-large { display:flex; align-items:baseline; gap:9px; padding:4px 0 12px; border-bottom:1px solid var(--line); margin-bottom:4px; }
.approval-rate-large strong { color:var(--brand-dark); font-size:32px; letter-spacing:-.03em; }
.approval-rate-large span { color:var(--muted); font-size:12px; }
.evidence-link { color:#3e6b58; }

.evidence-hero { display:grid; grid-template-columns:auto 1fr auto; gap:16px; align-items:center; margin-bottom:18px; padding:22px; border:1px solid #dbe9e3; border-radius:20px; background:linear-gradient(115deg,#f8fcfa,#fff); }
.evidence-status-icon { width:50px; height:50px; border-radius:15px; display:grid; place-items:center; background:var(--success-soft); color:var(--success); }
.evidence-status-icon .ph-icon { width:26px; height:26px; }
.evidence-hero h2 { margin:7px 0 4px; font-size:22px; }
.evidence-hero p { margin:0; color:var(--muted); font-size:12.5px; }
.evidence-time { display:flex; align-items:flex-end; flex-direction:column; gap:4px; text-align:end; }
.evidence-time span { color:var(--muted); font-size:11px; }
.evidence-time strong { font-size:13px; }
.evidence-grid { grid-template-columns:1fr 1fr; }
.evidence-detail-card { margin-top:18px; }
.evidence-fields { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.evidence-field { padding:14px; border:1px solid #e5e9ec; border-radius:13px; background:#fbfcfd; }
.evidence-field-wide { grid-column:1 / -1; }
.evidence-field span { display:block; margin-bottom:7px; color:var(--muted); font-size:10.5px; font-weight:750; text-transform:uppercase; letter-spacing:.04em; }
.evidence-field strong, .evidence-field code { display:block; font-size:12.5px; line-height:1.5; }
.evidence-field code { overflow-wrap:anywhere; color:#3f5668; font-family:"Cascadia Mono",Consolas,monospace; }
.wrap-value { overflow-wrap:anywhere; }

html[dir="rtl"] .admin-topbar-nav { direction:rtl; }
html[dir="rtl"] .admin-kpi-grid .kpi:before { inset-inline-start:auto; inset-inline-end:0; }
html[dir="rtl"] .employee-admin-status, html[dir="rtl"] .evidence-time { align-items:flex-start; text-align:start; }

@media (max-width:1100px) {
  .admin-topbar-nav a span:last-child { display:none; }
  .admin-topbar-nav a { width:36px; justify-content:center; padding:8px; }
  .admin-kpi-grid { grid-template-columns:repeat(3,1fr); }
  .brand-summary-grid { grid-template-columns:repeat(2,1fr); }
  .filter-panel, .employee-filter-panel { grid-template-columns:repeat(3,minmax(150px,1fr)); }
}
@media (max-width:760px) {
  .admin-header-actions { width:100%; }
  .admin-header-actions .btn { flex:1; }
  .admin-kpi-grid, .admin-kpi-grid.four-cols, .admin-kpi-grid.three-cols { grid-template-columns:repeat(2,1fr); }
  .brand-summary-grid { grid-template-columns:1fr; }
  .filter-panel, .employee-filter-panel, .compact-filter-panel { grid-template-columns:1fr; }
  .filter-search-wide { grid-column:auto; }
  .filter-actions { align-items:stretch; }
  .filter-actions .btn { flex:1; }
  .employee-admin-summary { align-items:flex-start; flex-direction:column; }
  .employee-admin-status { align-items:flex-start; }
  .employee-detail-grid, .evidence-grid { grid-template-columns:1fr; }
  .evidence-hero { grid-template-columns:auto 1fr; }
  .evidence-time { grid-column:2; align-items:flex-start; text-align:start; }
  .evidence-fields { grid-template-columns:1fr; }
  .evidence-field-wide { grid-column:auto; }
}

/* ==========================================================
   Admin employee history + digital evidence receipt (1.1.1)
   ========================================================== */
.employee-history-page-header { margin-bottom:18px; }
.employee-admin-summary--premium { position:relative; overflow:hidden; }
.employee-admin-summary--premium:after { content:""; position:absolute; inset-inline-end:-42px; top:-70px; width:170px; height:170px; border-radius:50%; background:var(--brand-soft); opacity:.55; pointer-events:none; }

.employee-history-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:18px; }
.employee-history-kpi { position:relative; min-height:118px; overflow:hidden; padding:17px 18px; border:1px solid #e1e7eb; border-radius:17px; background:#fff; }
.employee-history-kpi:before { content:""; position:absolute; inset-block:0; inset-inline-start:0; width:4px; background:#cdd6de; }
.employee-history-kpi--rate:before { background:var(--brand); }
.employee-history-kpi--success:before { background:var(--success); }
.employee-history-kpi--warning:before { background:#d89a18; }
.employee-history-kpi > span { display:block; color:var(--muted); font-size:11px; }
.employee-history-kpi > strong { display:block; margin:7px 0 6px; font-size:27px; line-height:1; letter-spacing:-.025em; }
.employee-history-kpi > small { display:block; color:#84909a; font-size:10.5px; line-height:1.4; }

.employee-detail-grid--compact { grid-template-columns:1fr; }
.employee-context-card { padding:18px 20px; }
.info-card-title-row { display:flex; align-items:center; gap:11px; margin-bottom:14px; }
.info-card-title-row h3 { margin:1px 0 0; font-size:16px; }
.info-card-icon, .evidence-card-icon { width:38px; height:38px; border-radius:11px; display:grid; place-items:center; flex:0 0 38px; color:var(--brand-dark); background:var(--brand-soft); }
.info-card-icon .ph-icon, .evidence-card-icon .ph-icon { width:20px; height:20px; }
.eyebrow-compact { margin:0 0 2px; font-size:9.5px; letter-spacing:.12em; }
.employee-context-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; border:1px solid #e6eaed; border-radius:13px; overflow:hidden; }
.employee-context-grid > div { min-width:0; padding:12px 14px; background:#fbfcfd; border-inline-end:1px solid #e6eaed; border-bottom:1px solid #e6eaed; }
.employee-context-grid > div:nth-child(3n) { border-inline-end:0; }
.employee-context-grid > div:nth-last-child(-n+3) { border-bottom:0; }
.employee-context-grid span { display:block; margin-bottom:5px; color:var(--muted); font-size:10px; }
.employee-context-grid strong { display:block; font-size:12.5px; line-height:1.35; overflow-wrap:anywhere; }

.employee-history-section { padding:20px; }
.employee-history-title-row { align-items:flex-end; margin:0 0 18px; }
.employee-history-title-row h2 { margin-bottom:4px; }
.employee-history-title-row p { max-width:700px; margin:0; color:var(--muted); font-size:12.5px; line-height:1.5; }
.employee-history-empty { display:flex; align-items:center; justify-content:center; gap:10px; padding:34px; border:1px dashed #d9e0e5; border-radius:16px; color:var(--muted); background:#fafcfd; }
.employee-history-empty .ph-icon { width:24px; height:24px; }

.employee-version-timeline { position:relative; display:flex; flex-direction:column; gap:14px; }
.employee-version-entry { display:grid; grid-template-columns:28px minmax(0,1fr); gap:8px; position:relative; }
.employee-version-rail { position:relative; display:flex; justify-content:center; }
.employee-version-rail:after { content:""; position:absolute; top:28px; bottom:-22px; width:2px; background:#e2e7eb; }
.employee-version-entry:last-child .employee-version-rail:after { display:none; }
.employee-version-dot { position:relative; z-index:1; width:14px; height:14px; margin-top:18px; border-radius:50%; background:#c7d0d8; box-shadow:0 0 0 6px #f5f7f9; }
.employee-version-dot.done { background:var(--success); box-shadow:0 0 0 6px var(--success-soft); }
.employee-version-dot.viewed { background:#5872b2; box-shadow:0 0 0 6px #edf1fb; }
.employee-version-dot.pending { background:#d69b21; box-shadow:0 0 0 6px var(--warning-soft); }
.employee-version-card { padding:18px; border:1px solid #e0e5e9; border-radius:17px; background:linear-gradient(180deg,#fff,#fcfdfe); box-shadow:0 7px 22px rgba(24,47,69,.035); }
.employee-version-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.employee-version-heading-line { display:flex; align-items:center; gap:8px; margin-bottom:10px; }
.employee-version-card h3 { margin:0 0 4px; font-size:17px; }
.employee-version-card-head p { margin:0; color:var(--muted); font-size:12px; }
.employee-version-evidence { min-height:38px; padding:8px 11px; border-radius:10px; font-size:11.5px; flex:0 0 auto; }
.employee-version-evidence .ph-icon { width:17px; height:17px; margin-inline-end:5px; }
.employee-version-change { display:flex; gap:4px; margin-top:14px; padding:11px 12px; border-radius:11px; background:#f5f7f9; color:#59646f; font-size:11.5px; line-height:1.45; }
.employee-version-change > span { font-weight:800; color:#41505c; white-space:nowrap; }

.employee-approval-journey { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; margin-top:16px; border:1px solid #e5e9ec; border-radius:13px; overflow:hidden; }
.journey-stage { position:relative; display:grid; grid-template-columns:31px 1fr; gap:8px; align-items:center; min-width:0; padding:11px 12px; background:#fafbfc; border-inline-end:1px solid #e5e9ec; }
.journey-stage:last-child { border-inline-end:0; }
.journey-icon { width:30px; height:30px; border-radius:9px; display:grid; place-items:center; color:#87929c; background:#eef1f3; }
.journey-icon .ph-icon { width:16px; height:16px; }
.journey-stage.done .journey-icon { color:var(--success); background:var(--success-soft); }
.journey-stage.current .journey-icon { color:#9a6810; background:var(--warning-soft); }
.journey-stage > div { min-width:0; }
.journey-stage span:not(.journey-icon) { display:block; margin-bottom:3px; color:var(--muted); font-size:9.5px; }
.journey-stage strong { display:block; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:10.8px; font-variant-numeric:tabular-nums; }
.journey-stage.waiting strong { color:#9ba5ad; }

/* Digital approval receipt */
.admin-evidence-page .main-shell { width:min(1080px,calc(100% - 36px)); }
.evidence-page-header { margin-bottom:18px; }
.evidence-page-actions { display:flex; align-items:center; gap:8px; }
.evidence-page-actions .ph-icon { width:18px; height:18px; margin-inline-end:6px; }
.evidence-receipt { overflow:hidden; border:1px solid #dfe6e4; border-radius:22px; background:#fff; box-shadow:0 14px 34px rgba(26,65,52,.06); }
.evidence-receipt-header { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:22px 24px; border-bottom:1px solid #dfe9e5; background:linear-gradient(115deg,#f2faf6,#fff 65%); }
.evidence-receipt-brand { display:flex; align-items:center; gap:14px; min-width:0; }
.evidence-status-seal { width:52px; height:52px; border-radius:16px; display:grid; place-items:center; flex:0 0 52px; color:var(--success); background:var(--success-soft); box-shadow:inset 0 0 0 1px #d8eee4; }
.evidence-status-seal .ph-icon { width:27px; height:27px; }
.evidence-receipt-brand h2 { margin:1px 0 4px; font-size:21px; }
.evidence-receipt-brand p { max-width:650px; margin:0; color:var(--muted); font-size:11.5px; line-height:1.5; }
.evidence-receipt-time { display:flex; flex-direction:column; align-items:flex-end; gap:4px; flex:0 0 auto; text-align:end; }
.evidence-receipt-time > span:first-child { color:var(--muted); font-size:10px; }
.evidence-receipt-time > strong { font-size:12.5px; }
.evidence-receipt-time .status-badge { margin-top:3px; }
.evidence-receipt-subject { display:grid; grid-template-columns:1fr 1fr; gap:0; margin:20px 24px 0; overflow:hidden; border:1px solid #e4e9ec; border-radius:14px; background:#fbfcfd; }
.evidence-receipt-subject > div { min-width:0; padding:14px 16px; }
.evidence-receipt-subject > div + div { border-inline-start:1px solid #e4e9ec; }
.evidence-receipt-subject span:first-child { display:block; margin-bottom:5px; color:var(--muted); font-size:9.5px; text-transform:uppercase; letter-spacing:.05em; font-weight:800; }
.evidence-receipt-subject strong { display:block; margin-bottom:3px; font-size:14px; }
.evidence-receipt-subject small { color:var(--muted); font-size:10.8px; }
.evidence-receipt-subject .version-pill { display:inline-flex; margin:0; min-height:22px; padding:3px 7px; font-size:10px; }

.evidence-journey-section { margin:20px 24px 0; padding:17px 18px; border:1px solid #e3e8eb; border-radius:15px; background:#fbfcfd; }
.evidence-section-title { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin-bottom:13px; }
.evidence-section-title h3 { margin:1px 0 0; font-size:15px; }
.evidence-journey { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
.evidence-journey-step { position:relative; display:grid; grid-template-columns:38px 1fr; gap:10px; align-items:center; min-width:0; padding-inline-end:18px; }
.evidence-journey-step:not(:last-child):after { content:""; position:absolute; top:18px; inset-inline-start:39px; inset-inline-end:4px; height:2px; background:#dfe5e8; z-index:0; }
.evidence-journey-icon { position:relative; z-index:1; width:36px; height:36px; border-radius:50%; display:grid; place-items:center; color:#8d98a1; background:#eef1f3; box-shadow:0 0 0 5px #fbfcfd; }
.evidence-journey-icon .ph-icon { width:17px; height:17px; }
.evidence-journey-step.done .evidence-journey-icon { color:var(--success); background:var(--success-soft); }
.evidence-journey-step > div { position:relative; z-index:1; min-width:0; background:#fbfcfd; padding-inline:3px; }
.evidence-journey-step span:not(.evidence-journey-icon) { display:block; margin-bottom:3px; color:var(--muted); font-size:9.5px; }
.evidence-journey-step strong { display:block; font-size:11px; font-variant-numeric:tabular-nums; }

.evidence-receipt-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin:20px 24px 0; }
.evidence-receipt-card { min-width:0; padding:17px; border:1px solid #e2e7ea; border-radius:15px; background:#fff; }
.evidence-card-heading { display:flex; align-items:center; gap:10px; margin-bottom:13px; }
.evidence-card-heading h3 { margin:1px 0 0; font-size:15px; }
.evidence-info-list { border:1px solid #e8ecef; border-radius:12px; overflow:hidden; }
.evidence-info-list > div { display:grid; grid-template-columns:minmax(115px,.85fr) minmax(0,1.4fr); gap:10px; padding:9px 11px; border-bottom:1px solid #e8ecef; background:#fbfcfd; }
.evidence-info-list > div:last-child { border-bottom:0; }
.evidence-info-list span { color:var(--muted); font-size:10px; }
.evidence-info-list strong { min-width:0; text-align:end; font-size:10.8px; overflow-wrap:anywhere; }
.evidence-integrity { display:flex; align-items:flex-start; gap:9px; margin-top:12px; padding:11px; border-radius:11px; }
.evidence-integrity.verified { color:#285f4c; background:#edf8f2; border:1px solid #d8eee4; }
.evidence-integrity.review { color:#845b13; background:#fff9e9; border:1px solid #f1e4bc; }
.evidence-integrity-icon { width:28px; height:28px; border-radius:8px; display:grid; place-items:center; flex:0 0 28px; background:rgba(255,255,255,.65); }
.evidence-integrity-icon .ph-icon { width:16px; height:16px; }
.evidence-integrity strong { display:block; margin-bottom:2px; font-size:11px; }
.evidence-integrity span { display:block; font-size:9.8px; line-height:1.4; opacity:.82; }

.evidence-statement-card { margin:20px 24px 0; padding:18px 20px; border:1px solid #dae9e2; border-radius:15px; background:linear-gradient(110deg,#f4faf7,#fff); }
.evidence-statement-label { display:block; margin-bottom:9px; color:var(--success); font-size:9.5px; font-weight:850; text-transform:uppercase; letter-spacing:.07em; }
.evidence-statement-card blockquote { margin:0; padding:0; border:0; font-size:16px; line-height:1.55; font-weight:700; color:#29483c; }
.evidence-statement-meta { display:flex; align-items:center; gap:8px; margin-top:12px; color:var(--muted); font-size:10px; }
.evidence-statement-meta strong { color:#405148; font-size:10.5px; }

.evidence-technical-card { margin:20px 24px 24px; padding:17px 18px; border:1px solid #e2e7ea; border-radius:15px; background:#fbfcfd; }
.evidence-technical-grid { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.evidence-tech-field { min-width:0; padding:11px 12px; border:1px solid #e7ebee; border-radius:10px; background:#fff; }
.evidence-tech-field--wide { grid-column:1 / -1; }
.evidence-tech-field span { display:block; margin-bottom:5px; color:var(--muted); font-size:9px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
.evidence-tech-field code { display:block; min-width:0; overflow-wrap:anywhere; color:#3e5365; font-family:"Cascadia Mono",Consolas,monospace; font-size:9.8px; line-height:1.45; }

html[dir="rtl"] .evidence-receipt-time { align-items:flex-start; text-align:start; }
html[dir="rtl"] .evidence-info-list strong { text-align:start; }

@media (max-width:1000px) {
  .employee-history-kpis { grid-template-columns:repeat(2,1fr); }
  .employee-context-grid { grid-template-columns:repeat(2,1fr); }
  .employee-context-grid > div:nth-child(3n) { border-inline-end:1px solid #e6eaed; }
  .employee-context-grid > div:nth-child(2n) { border-inline-end:0; }
  .employee-context-grid > div:nth-last-child(-n+3) { border-bottom:1px solid #e6eaed; }
  .employee-context-grid > div:nth-last-child(-n+2) { border-bottom:0; }
  .employee-approval-journey { grid-template-columns:repeat(2,1fr); }
  .journey-stage:nth-child(2) { border-inline-end:0; }
  .journey-stage:nth-child(-n+2) { border-bottom:1px solid #e5e9ec; }
}
@media (max-width:760px) {
  .employee-version-card-head { flex-direction:column; }
  .employee-version-evidence { width:100%; }
  .evidence-page-actions { width:100%; }
  .evidence-page-actions .btn { flex:1; }
  .evidence-receipt-header { align-items:flex-start; flex-direction:column; }
  .evidence-receipt-time { align-items:flex-start; text-align:start; }
  .evidence-receipt-subject, .evidence-receipt-grid { grid-template-columns:1fr; }
  .evidence-receipt-subject > div + div { border-inline-start:0; border-top:1px solid #e4e9ec; }
  .evidence-journey { grid-template-columns:1fr; gap:12px; }
  .evidence-journey-step:not(:last-child):after { top:36px; bottom:-12px; inset-inline-start:17px; inset-inline-end:auto; width:2px; height:auto; }
  .evidence-technical-grid { grid-template-columns:1fr; }
  .evidence-tech-field--wide { grid-column:auto; }
}
@media (max-width:560px) {
  .employee-history-kpis, .employee-context-grid, .employee-approval-journey { grid-template-columns:1fr; }
  .employee-context-grid > div, .employee-context-grid > div:nth-child(2n), .employee-context-grid > div:nth-child(3n) { border-inline-end:0; border-bottom:1px solid #e6eaed; }
  .employee-context-grid > div:last-child { border-bottom:0; }
  .journey-stage, .journey-stage:nth-child(2) { border-inline-end:0; border-bottom:1px solid #e5e9ec; }
  .journey-stage:last-child { border-bottom:0; }
  .employee-version-entry { grid-template-columns:20px minmax(0,1fr); gap:5px; }
  .employee-version-card { padding:14px; }
  .employee-history-section { padding:15px; }
  .evidence-receipt-header, .evidence-receipt-subject, .evidence-journey-section, .evidence-receipt-grid, .evidence-statement-card, .evidence-technical-card { margin-inline:14px; }
  .evidence-receipt-header { margin:0; padding:18px 16px; }
  .evidence-receipt-brand { align-items:flex-start; }
  .evidence-info-list > div { grid-template-columns:1fr; gap:3px; }
  .evidence-info-list strong { text-align:start; }
}

@media print {
  @page { margin:14mm; }
  body.admin-evidence-page { background:#fff!important; }
  .admin-evidence-page .topbar, .admin-evidence-page .no-print { display:none!important; }
  .admin-evidence-page .main-shell { width:100%!important; max-width:none!important; padding:0!important; margin:0!important; }
  .admin-evidence-page .evidence-receipt { border:1px solid #cfd8d4; border-radius:0; box-shadow:none; break-inside:avoid; }
  .admin-evidence-page .evidence-receipt-header,
  .admin-evidence-page .evidence-receipt-subject,
  .admin-evidence-page .evidence-journey-section,
  .admin-evidence-page .evidence-receipt-grid,
  .admin-evidence-page .evidence-statement-card,
  .admin-evidence-page .evidence-technical-card { break-inside:avoid; }
  .admin-evidence-page .evidence-receipt-header { background:#f7faf8!important; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
  .admin-evidence-page .evidence-integrity,
  .admin-evidence-page .status-badge,
  .admin-evidence-page .evidence-status-seal { -webkit-print-color-adjust:exact; print-color-adjust:exact; }
}

/* --------------------------------------------------------------------------
   1.2.0 — HR Analytics + BilişimHR Integration Foundation
   -------------------------------------------------------------------------- */
.ph-icon-chart { --ph-icon: url("../icons/phosphor/regular/chart.svg"); }
.ph-icon-sync { --ph-icon: url("../icons/phosphor/regular/clock-counter-clockwise.svg"); }

.admin-kpi-grid.five-cols { grid-template-columns:repeat(5,minmax(0,1fr)); }
.admin-kpi-grid .kpi.kpi-danger:before { background:#bd5e62; }
.latest-assignment-badge { display:inline-flex; align-items:center; min-height:23px; padding:4px 8px; border-radius:999px; background:var(--brand-soft); color:var(--brand-dark); font-size:9.5px; font-weight:800; letter-spacing:.02em; }
.evidence-subject-meta { display:flex; align-items:center; flex-wrap:wrap; gap:7px; }
.print-only { display:none !important; }

/* Analytics */
.admin-analytics-page .main-shell { width:min(1180px,calc(100% - 36px)); }
.analytics-header { margin-bottom:18px; }
.analytics-kpis { margin-bottom:18px; }
.analytics-grid { display:grid; gap:16px; margin-bottom:16px; }
.analytics-grid--top { grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr); }
.analytics-grid--bottom { grid-template-columns:1fr 1fr; }
.analytics-card { padding:20px; border:1px solid #e2e8ec; border-radius:20px; background:#fff; box-shadow:0 10px 26px rgba(31,67,94,.045); }
.analytics-card-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:18px; }
.analytics-card-heading h2 { margin:4px 0 0; font-size:18px; line-height:1.25; }
.analytics-caption, .section-note { color:var(--muted); font-size:10.5px; }
.status-donut-layout { display:grid; grid-template-columns:176px 1fr; gap:24px; align-items:center; min-height:190px; }
.status-donut { width:168px; height:168px; border-radius:50%; display:grid; place-items:center; box-shadow:inset 0 0 0 1px rgba(0,0,0,.03); }
.status-donut-hole { width:108px; height:108px; border-radius:50%; display:flex; flex-direction:column; align-items:center; justify-content:center; background:#fff; box-shadow:0 0 0 1px #edf0f2; }
.status-donut-hole strong { font-size:25px; line-height:1; }
.status-donut-hole span { margin-top:7px; color:var(--muted); font-size:10.5px; }
.chart-legend { display:flex; flex-direction:column; gap:11px; }
.chart-legend > div { display:grid; grid-template-columns:12px 1fr auto; gap:9px; align-items:center; padding-bottom:9px; border-bottom:1px solid #eef1f3; font-size:11.5px; }
.chart-legend > div:last-child { border-bottom:0; }
.legend-dot { width:9px; height:9px; border-radius:50%; }
.legend-dot--approved { background:var(--success); }
.legend-dot--viewed { background:#5f84aa; }
.legend-dot--pending { background:#e1a72f; }
.chart-legend strong { font-size:14px; }
.funnel-chart { display:flex; flex-direction:column; gap:15px; padding-top:4px; }
.funnel-row { display:grid; grid-template-columns:150px 1fr; gap:14px; align-items:center; }
.funnel-label { display:flex; justify-content:space-between; gap:10px; align-items:baseline; font-size:11.5px; }
.funnel-label span { color:#4d5b68; font-weight:650; }
.funnel-label strong { font-size:16px; }
.funnel-track, .brand-bar-track, .jobmix-track { position:relative; height:12px; overflow:hidden; border-radius:999px; background:#edf1f4; }
.funnel-track > span, .brand-bar-track > span, .jobmix-track > span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--brand-dark),var(--brand)); }
.funnel-row:nth-child(2) .funnel-track > span { opacity:.76; }
.funnel-row--success .funnel-track > span { background:var(--success); }
.analytics-insight { display:flex; gap:9px; align-items:center; margin-top:18px; padding:11px 13px; border-radius:12px; background:#f5f8fa; color:#637382; font-size:10.8px; line-height:1.45; }
.analytics-insight .ph-icon { width:17px; height:17px; flex:0 0 17px; color:var(--brand); }
.brand-bar-chart, .jobmix-chart { display:flex; flex-direction:column; gap:14px; }
.brand-bar-row { display:grid; grid-template-columns:minmax(140px,1.1fr) minmax(150px,1.5fr) 48px; gap:12px; align-items:center; }
.brand-bar-label, .jobmix-label { min-width:0; }
.brand-bar-label strong, .jobmix-label strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11.5px; }
.brand-bar-label span, .jobmix-label span { display:block; margin-top:3px; color:var(--muted); font-size:9.8px; }
.brand-bar-track { height:9px; }
.brand-bar-track > span { background:var(--brand); }
.brand-bar-value { text-align:end; font-size:11px; font-weight:800; }
.jobmix-row { display:grid; grid-template-columns:minmax(170px,1.4fr) minmax(120px,1fr) 30px; gap:12px; align-items:center; }
.jobmix-track { height:10px; }
.jobmix-track > span { background:linear-gradient(90deg,#7f9db9,var(--brand)); }
.jobmix-value { text-align:end; font-size:13px; }
.analytics-attention-card { margin-top:0; }
.analytics-open-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.analytics-open-item { display:grid; grid-template-columns:54px 1fr auto; gap:12px; align-items:center; padding:13px; border:1px solid #e6eaed; border-radius:14px; background:#fbfcfd; }
.analytics-open-age { width:48px; height:48px; display:flex; flex-direction:column; align-items:center; justify-content:center; border-radius:12px; background:#fff5df; color:#916616; }
.analytics-open-age strong { font-size:17px; line-height:1; }
.analytics-open-age span { margin-top:3px; font-size:8.5px; font-weight:750; }
.analytics-open-copy { min-width:0; display:flex; flex-direction:column; gap:3px; }
.analytics-open-copy > strong { font-size:11.5px; }
.analytics-open-copy > span, .analytics-open-copy > small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); font-size:9.8px; }
.analytics-open-copy .version-pill { margin-inline-start:5px; }
.analytics-empty { display:flex; gap:10px; align-items:center; justify-content:center; min-height:110px; color:var(--muted); }
.analytics-empty .ph-icon { width:22px; height:22px; color:var(--success); }

/* Integration */
.admin-integration-page .main-shell { width:min(1180px,calc(100% - 36px)); }
.integration-header { margin-bottom:18px; }
.integration-hero { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:16px; padding:20px 22px; border:1px solid #dfe7e9; border-radius:20px; background:linear-gradient(105deg,#f4f8fb,#fff); }
.integration-hero.status-succeeded { border-color:#d5e9df; background:linear-gradient(105deg,#f1faf5,#fff); }
.integration-hero-status { display:flex; align-items:center; gap:14px; min-width:0; }
.integration-status-icon { width:48px; height:48px; display:grid; place-items:center; flex:0 0 48px; border-radius:14px; color:var(--success); background:var(--success-soft); }
.integration-status-icon .ph-icon { width:24px; height:24px; }
.integration-hero-status h2 { margin:2px 0 4px; font-size:21px; }
.integration-hero-status p { margin:0; color:var(--muted); font-size:11px; }
.integration-hero-time { display:flex; flex-direction:column; align-items:flex-end; gap:3px; text-align:end; }
.integration-hero-time > span:first-child, .integration-hero-time small { color:var(--muted); font-size:9.8px; }
.integration-hero-time strong { font-size:12.5px; }
.demo-data-badge { margin-top:4px; padding:4px 8px; border-radius:999px; background:#fff4d9; color:#866315; font-size:9px !important; font-weight:800; }
.integration-kpis { margin-bottom:16px; }
.integration-entity-section, .integration-contract-section, .integration-history-section { margin-bottom:16px; }
.integration-entity-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.integration-entity-card { padding:16px; border:1px solid #e3e8eb; border-radius:16px; background:#fbfcfd; }
.integration-entity-head { display:grid; grid-template-columns:36px 1fr 9px; gap:10px; align-items:center; margin-bottom:14px; }
.integration-entity-icon { width:36px; height:36px; display:grid; place-items:center; border-radius:10px; background:var(--brand-soft); color:var(--brand-dark); }
.integration-entity-head > div { min-width:0; }
.integration-entity-head strong { display:block; font-size:11.5px; }
.integration-entity-head code { display:block; margin-top:3px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#70808d; font-size:8.8px; }
.sync-ok-dot, .sync-error-dot { width:8px; height:8px; border-radius:50%; background:var(--success); }
.sync-error-dot { background:#ba555d; }
.integration-entity-metrics { display:grid; grid-template-columns:repeat(4,1fr); gap:7px; }
.integration-entity-metrics div { padding:8px; border-radius:10px; background:#fff; }
.integration-entity-metrics span { display:block; color:var(--muted); font-size:8.5px; }
.integration-entity-metrics strong { display:block; margin-top:2px; font-size:14px; }
.integration-contract-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.integration-contract-card { padding:15px; border:1px solid #e2e7ea; border-radius:15px; background:#fff; }
.integration-contract-top { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:10px; }
.integration-contract-top code { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--brand-dark); font-size:9px; font-weight:750; }
.contract-state { padding:4px 7px; border-radius:999px; font-size:8.5px; font-weight:800; }
.contract-state.ready { background:var(--success-soft); color:var(--success); }
.contract-state.waiting { background:#f2f4f6; color:#71808c; }
.integration-contract-card > strong { display:block; font-size:11.5px; }
.integration-contract-card p { margin:5px 0 0; color:var(--muted); font-size:9.8px; line-height:1.45; }
.integration-scope-note { display:flex; align-items:flex-start; gap:11px; margin-top:14px; padding:12px 14px; border-radius:13px; background:#eef5fa; color:#526d82; }
.integration-scope-note .ph-icon { width:18px; height:18px; flex:0 0 18px; color:var(--brand); }
.integration-scope-note strong { display:block; color:var(--brand-dark); font-size:10.5px; }
.integration-scope-note span:last-child { display:block; margin-top:3px; font-size:9.8px; line-height:1.5; }
.integration-history-table { min-width:900px; }
.sync-status-badge { display:inline-flex; align-items:center; padding:4px 8px; border-radius:999px; font-size:9px; font-weight:800; }
.sync-status-succeeded { background:var(--success-soft); color:var(--success); }
.sync-status-running, .sync-status-partial { background:#fff4d9; color:#866315; }
.sync-status-failed { background:#fbecee; color:#a34750; }
.table-demo-tag { display:inline-flex; margin-inline-start:6px; padding:2px 5px; border-radius:999px; background:#f3f5f7; color:#7c8790; font-size:7.8px; vertical-align:middle; }
.integration-empty-state { display:flex; align-items:center; gap:18px; min-height:170px; }
.integration-empty-icon { width:48px; height:48px; display:grid; place-items:center; border-radius:14px; background:var(--brand-soft); color:var(--brand); }
.integration-empty-state h2 { margin:4px 0 6px; }
.integration-empty-state p { margin:0; color:var(--muted); }

html[dir="rtl"] .brand-bar-value,
html[dir="rtl"] .jobmix-value { text-align:start; }
html[dir="rtl"] .integration-hero-time { align-items:flex-start; text-align:start; }

@media (max-width:1180px) {
  .admin-kpi-grid.five-cols { grid-template-columns:repeat(3,1fr); }
  .integration-entity-grid, .integration-contract-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width:900px) {
  .analytics-grid--top, .analytics-grid--bottom { grid-template-columns:1fr; }
  .analytics-open-grid { grid-template-columns:1fr; }
  .status-donut-layout { grid-template-columns:150px 1fr; }
  .status-donut { width:145px; height:145px; }
  .status-donut-hole { width:92px; height:92px; }
  .integration-entity-grid, .integration-contract-grid { grid-template-columns:1fr; }
}
@media (max-width:640px) {
  .admin-kpi-grid.five-cols { grid-template-columns:1fr 1fr; }
  .status-donut-layout { grid-template-columns:1fr; justify-items:center; }
  .chart-legend { width:100%; }
  .funnel-row { grid-template-columns:1fr; gap:6px; }
  .brand-bar-row { grid-template-columns:1fr 54px; }
  .brand-bar-track { grid-column:1 / -1; grid-row:2; }
  .jobmix-row { grid-template-columns:1fr 30px; }
  .jobmix-track { grid-column:1 / -1; grid-row:2; }
  .integration-hero { align-items:flex-start; flex-direction:column; }
  .integration-hero-time { align-items:flex-start; text-align:start; }
  .analytics-open-item { grid-template-columns:48px 1fr; }
  .analytics-open-item > .status-badge { grid-column:2; justify-self:start; }
}

@media print {
  .print-only { display:block !important; }
  .evidence-print-reference { padding:0 0 12px; margin-bottom:12px; border-bottom:1px solid #dfe5e8; font-size:10px; }
  .evidence-print-reference strong { display:block; margin-bottom:4px; }
  .evidence-print-reference span { color:#5f6f7b; }
}


/* --------------------------------------------------------------------------
   1.3.0 — HR Action & Reminder Center
   -------------------------------------------------------------------------- */
.admin-actions-page .main-shell { width:min(1240px,calc(100% - 36px)); }
.actions-header { margin-bottom:22px; }
.actions-kpis { margin-top:0; }
.actions-overview-grid { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(320px,.7fr); gap:16px; margin-bottom:18px; }
.action-aging-card, .reminder-demo-card { margin:0; }

.action-feedback {
  display:flex; align-items:center; gap:12px; margin:0 0 16px; padding:13px 16px;
  border:1px solid #b9dfcf; border-radius:14px; background:#f0faf5; color:#176b4d;
}
.action-feedback .ph-icon { width:22px; height:22px; flex:0 0 22px; }
.action-feedback > div { display:flex; flex-direction:column; gap:3px; }
.action-feedback--warning { border-color:#f0d796; background:#fff9e9; color:#8a5b00; }

.aging-chart { display:flex; flex-direction:column; gap:12px; padding-top:4px; }
.aging-row {
  display:grid; grid-template-columns:82px minmax(0,1fr) 42px; align-items:center; gap:12px;
  padding:6px 0; color:var(--ink);
}
.aging-row:hover .aging-label { color:var(--brand); }
.aging-label { font-size:12px; font-weight:800; }
.aging-track { height:12px; overflow:hidden; border-radius:999px; background:#edf1f4; }
.aging-track > span { display:block; min-width:3px; height:100%; border-radius:999px; background:#7fa4c6; }
.aging-row--attention .aging-track > span { background:#d8a43a; }
.aging-row--overdue .aging-track > span { background:#c97c43; }
.aging-row--critical .aging-track > span { background:#ba5c62; }
.aging-row > strong { text-align:end; font-size:13px; }

.reminder-demo-card {
  display:flex; align-items:flex-start; gap:16px; padding:24px;
  background:linear-gradient(145deg,#f7fafc,#fff);
}
.reminder-demo-card h2 { font-size:22px; margin-bottom:8px; }
.reminder-demo-card p { color:var(--muted); font-size:13px; line-height:1.55; }
.reminder-demo-icon {
  width:48px; height:48px; flex:0 0 48px; display:grid; place-items:center;
  border-radius:14px; background:var(--brand-soft); color:var(--brand);
}
.reminder-demo-icon .ph-icon { width:24px; height:24px; }
.reminder-type-list { display:flex; flex-wrap:wrap; gap:6px; margin-top:13px; }
.reminder-type-list span {
  display:inline-flex; padding:5px 8px; border-radius:999px;
  background:#fff; border:1px solid #e3e8ec; color:#526272; font-size:10px; font-weight:750;
}

.action-list-section { margin-bottom:18px; }
.actions-filter-panel { grid-template-columns:1.5fr repeat(5,minmax(135px,1fr)) auto; }
.action-bulk-form { margin:0; }
.bulk-action-bar {
  display:flex; justify-content:space-between; align-items:center; gap:12px;
  padding:10px 0 12px;
}
.bulk-select-all { display:inline-flex; align-items:center; gap:8px; color:var(--muted); font-size:12px; font-weight:700; }
.bulk-select-all input, .action-data-table .select-col input { width:17px; height:17px; accent-color:var(--brand); }
.bulk-action-bar .btn { gap:8px; min-height:40px; padding:9px 14px; font-size:12px; }
.bulk-action-bar .ph-icon { width:17px; height:17px; }

.action-data-table { min-width:1260px; }
.action-data-table .select-col { width:48px; text-align:center; padding-inline:10px; }
.action-data-table .employee-cell small { color:var(--muted); margin-top:2px; }
.age-days { font-size:14px; }
.sla-badge, .reminder-type-badge, .reminder-status {
  display:inline-flex; align-items:center; min-height:25px; padding:4px 8px;
  border-radius:999px; font-size:9.5px; font-weight:800; white-space:nowrap;
}
.sla-normal { background:#edf5fb; color:#3d6689; }
.sla-attention { background:#fff6dc; color:#8a5b00; }
.sla-overdue { background:#fff0e5; color:#a35a25; }
.sla-critical { background:#fbeaec; color:#a43d48; }
.reminder-type-badge { background:#f2f4f7; color:#566676; }
.reminder-status-queued { background:#eef4fa; color:#426b8d; }
.reminder-status-sent { background:var(--success-soft); color:var(--success); }
.reminder-status-delivered { background:#e7f5fb; color:#0a6b92; }
.reminder-status-read { background:var(--success-soft); color:var(--success); }
.reminder-status-failed { background:#fbeaec; color:#a43d48; }

.reminder-lifecycle {
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:.32rem;
    min-width:150px;
}
.reminder-lifecycle-time {
    color:var(--muted);
    font-size:.74rem;
    line-height:1.35;
    white-space:nowrap;
}
.reminder-lifecycle-time strong {
    color:var(--text-soft);
    font-weight:700;
}
.reminder-lifecycle-read strong {
    color:var(--success);
}
[dir="rtl"] .reminder-lifecycle {
    align-items:flex-end;
}

.action-row-buttons { min-width:156px; }
.action-row-buttons .icon-action-link { margin-block:2px; }
.action-reminder-button {
  appearance:none; border:0; background:transparent; cursor:pointer; font:inherit;
  color:var(--brand);
}
.action-reminder-button:hover { background:var(--brand-soft); }

.reminder-history-section { margin-top:18px; }
.reminder-history-table { min-width:980px; }
.action-empty { margin-top:10px; }

.analytics-open-item { grid-template-columns:54px 1fr auto 28px; }
.analytics-open-drill {
  width:28px; height:28px; display:grid; place-items:center; border-radius:9px;
  color:var(--brand); background:var(--brand-soft);
}
.analytics-open-drill:hover { background:var(--brand); color:white; }

html[dir="rtl"] .analytics-open-drill .directional-arrow,
html[dir="rtl"] .actions-header .directional-arrow { transform:scaleX(-1); }

@media (max-width: 1120px) {
  .actions-filter-panel { grid-template-columns:repeat(3,minmax(150px,1fr)); }
}
@media (max-width: 900px) {
  .actions-overview-grid { grid-template-columns:1fr; }
}
@media (max-width: 680px) {
  .actions-filter-panel { grid-template-columns:1fr; }
  .bulk-action-bar { align-items:stretch; flex-direction:column; }
  .bulk-action-bar .btn { width:100%; }
  .aging-row { grid-template-columns:72px minmax(0,1fr) 34px; gap:8px; }
}
