/* Approved Hamasat website-inspired identity for the live PHP interface. */
body.hm-modern {
  background: #faf9f7;
  color: #29282b;
}
.hm-modern .header {
  background: #fff;
  border: 0;
  border-bottom: 1px solid #e7e5e2;
  padding: 8px 24px;
}
.hm-modern .brand-header {
  max-width: 1280px;
  min-height: 62px;
}
.hm-modern .brand-header-logo { display: none; }
.hm-modern .brand-avatar {
  width: 43px;
  height: 43px;
  font-size: 0;
  background: url("hamasat-brand-mark.png") center / contain no-repeat;
}
.hm-modern .brand-greeting { font-size: 16px; font-weight: 700; color: #29282b; }
.hm-modern .brand-greeting small { font-size: 12px; font-weight: 400; color: #6f6d70; margin-top: 2px; }
.hm-modern .container { max-width: 1160px; }
.hm-modern .card { border-color: #e7e5e2; }
.hm-modern .btn, .hm-modern .success, .hm-modern .tab.active,
.hm-modern .employee-history-nav .tab.active { background: #e52d4f; color: #fff; }
.hm-modern .btn:hover, .hm-modern .success:hover { background: #c92343; }
.hm-modern .btn2, .hm-modern .tab { background: #f4f2ef; color: #29282b; }
.hm-modern .notice { background: #fff8ed; color: #7b5b3f; border-color: #f0dfbd; }
.hm-modern h2, .hm-modern h3 { color: #29282b; }
.hm-modern input:focus-visible, .hm-modern select:focus-visible,
.hm-modern textarea:focus-visible, .hm-modern button:focus-visible {
  outline: 2px solid #e52d4f;
  outline-offset: 2px;
}
.hm-modern .music-header-ribbon { height: 26px; background: #e52d4f; }
.hm-modern .music-header-ribbon span { display: none; }
.hm-modern .music-header-ribbon::after {
  content: "همسات　 •　 نظام تقارير المبيعات　 •　 مساحة الفريق";
  color: #fff;
  font-size: 11px;
  line-height: 26px;
  font-family: Tajawal, Arial, sans-serif;
}
body:has(#employeeReportView:not(.hidden)) .music-header-ribbon {
  display: none;
}
body:has(#employeeReportView:not(.hidden)) #notificationBar,
body:has(#adminView:not(.hidden)) #notificationBar {
  max-width: 1160px;
  min-height: 0;
  margin: 8px auto;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 12px;
  box-shadow: none;
}
body:has(#employeeReportView:not(.hidden)) #notificationBar .btn2,
body:has(#adminView:not(.hidden)) #notificationBar .btn2 {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
}
body:has(#homeView:not(.hidden)) .header,
body:has(#homeView:not(.hidden)) .music-header-ribbon,
body:has(#employeeLoginView:not(.hidden)) .header,
body:has(#employeeLoginView:not(.hidden)) .music-header-ribbon,
body:has(#adminLoginView:not(.hidden)) .header,
body:has(#adminLoginView:not(.hidden)) .music-header-ribbon,
body:has(#supervisorLoginView:not(.hidden)) .header,
body:has(#supervisorLoginView:not(.hidden)) .music-header-ribbon,
body:has(#adminView:not(.hidden)) .music-header-ribbon { display: none; }
body:has(#homeView:not(.hidden)) .container {
  max-width: none;
  min-height: 100vh;
  padding: 0;
}
body:has(#homeView:not(.hidden)) #homeView {
  display: grid;
  grid-template-columns: minmax(280px, 37%) minmax(0, 1fr);
  direction: ltr;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
#homeView > * { direction: rtl; }
#homeView .home-brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(28px, 5vw, 70px);
  background: #29282b;
  color: #fff;
}
#homeView .home-brand-lockup { display: flex; align-items: center; gap: 12px; }
#homeView .home-brand-lockup img { width: 52px; height: 60px; object-fit: contain; }
#homeView .home-brand-lockup strong { display: block; font-size: 22px; }
#homeView .home-brand-lockup small { display: block; color: #d8d6d4; }
#homeView .home-eyebrow { color: #ff7086; font-size: 13px; }
#homeView .home-brand-panel h1 {
  margin: 16px 0;
  font-size: clamp(28px, 3.2vw, 47px);
  line-height: 1.4;
}
#homeView .home-brand-panel h1 em { font-style: normal; color: #ff526d; }
#homeView .home-brand-panel p { color: #dfdcda; line-height: 1.9; }
#homeView .home-brand-note {
  padding: 18px;
  border: 1px solid #5b585b;
  border-radius: 12px;
  background: #353437;
  font-weight: 700;
}
#homeView .home-brand-note small { display: block; margin-top: 5px; color: #d8d6d4; font-weight: 400; }
#homeView .home-entry-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100%, 650px);
  margin: auto;
  padding: 30px clamp(20px, 5vw, 60px);
}
#homeView .home-entry-top { display: flex; align-items: center; gap: 10px; margin-bottom: 48px; }
#homeView .home-entry-top img { width: 32px; height: 38px; object-fit: contain; }
#homeView .home-entry-top span { font-weight: 700; }
#homeView .home-entry-top small { margin-inline-start: auto; color: #6f6d70; }
#homeView h2 { text-align: right; font-size: clamp(29px, 3vw, 38px); font-weight: 700; }
#homeView p.center { text-align: right; color: #6f6d70; }
#homeView .choice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 24px 0 12px; }
#homeView .choice {
  min-height: 65px;
  padding: 10px;
  border: 1px solid #e7e5e2;
  border-radius: 11px;
  background: #f4f2ef;
  color: #29282b;
  font-size: 15px;
}
#homeView .choice:hover, #homeView .choice:focus-visible {
  background: #fff0f1;
  border-color: #e52d4f;
  color: #e52d4f;
}
@media (max-width: 700px) {
  body:has(#homeView:not(.hidden)) #homeView { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  #homeView .home-brand-panel { gap: 10px; padding: 18px 22px; }
  #homeView .home-brand-panel > div:nth-child(2),
  #homeView .home-brand-note { display: none; }
  #homeView .home-entry-panel { padding: 24px 18px; }
  #homeView .home-entry-top { margin-bottom: 28px; }
  #homeView .choice-grid { grid-template-columns: 1fr; }
  #homeView .choice { min-height: 54px; }
  .hm-modern .brand-header { flex-wrap: nowrap; justify-content: space-between; }
  .hm-modern .brand-greeting { font-size: 14px; }
}