:root {
  --bg: #0d1113;
  --surface: #ffffff;
  --surface-soft: #f6f8f8;
  --text: #0b1114;
  --muted: #657178;
  --border: #d7dee1;
  --green: #009d4f;
  --red: #ed1b2f;
  --blue: #8bc4ea;
  --light-green: #a9d99a;
  --shadow: 0 8px 24px rgba(15, 25, 30, .08);
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body { font-family: Arial, Helvetica, sans-serif; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.hidden { display: none !important; }

.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  min-height: 90px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--surface);
  border-top: 4px solid var(--green);
  border-bottom: 4px solid var(--red);
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.header-left, .header-right { display: flex; align-items: center; gap: 16px; }
.brand img { width: 105px; height: auto; display: block; }
.header-title { border-left: 1px solid var(--border); padding-left: 16px; }
.header-title span, .header-title strong { display: block; }
.header-title span { font-size: 10px; color: var(--green); font-weight: 800; letter-spacing: .09em; }
.header-title strong { margin-top: 3px; font-size: 14px; }

.system-clock, .logged-user {
  min-width: 152px;
  padding: 10px 14px;
  background: #eef8f3;
  border-radius: 10px;
  text-align: right;
}
.system-clock small, .system-clock span, .logged-user small, .logged-user span { display: block; }
.system-clock small, .logged-user small { font-size: 9px; letter-spacing: .05em; color: #4f5c61; }
.system-clock strong { display: block; font-size: 15px; margin: 3px 0; }
.system-clock span, .logged-user span { font-size: 10px; color: var(--green); font-weight: 700; }
.logged-user strong { display: block; font-size: 12px; margin: 4px 0 2px; }
.logout-button {
  border: 0; border-radius: 9px; padding: 12px 17px; background: var(--red); color: #fff; font-weight: 800; cursor: pointer;
}
.icon-button { border: 1px solid var(--border); background: #fff; border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.mobile-only { display: none; }

.sidebar {
  position: fixed;
  top: 90px;
  bottom: 0;
  left: 0;
  width: 260px;
  background: #14191b;
  color: #e8edef;
  padding: 22px 14px;
  overflow-y: auto;
  z-index: 20;
}
.sidebar-heading { font-size: 10px; color: #8c999d; letter-spacing: .12em; padding: 0 12px 12px; }
.nav-list { display: grid; gap: 6px; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 12px 12px; border-radius: 9px; color: #d7dfe1; font-size: 13px; }
.nav-item:hover, .nav-item.active { background: #1e272a; color: #fff; }
.nav-item.active { border-left: 3px solid var(--green); padding-left: 9px; }
.nav-icon { width: 20px; text-align: center; font-weight: 800; color: #73d6a2; }
.sidebar-footer { margin-top: 20px; padding: 0 8px; }
.standard-card { border: 1px solid #2b373a; border-radius: 10px; padding: 12px; background: #101517; }
.standard-card small, .standard-card span, .standard-card strong { display: block; }
.standard-card small { color: #879296; font-size: 9px; letter-spacing: .08em; }
.standard-card strong { margin: 5px 0; font-size: 12px; }
.standard-card span { color: #77d49f; font-size: 10px; }

.app-main { margin-left: 260px; padding: 118px 28px 36px; background: #0d1113; min-height: calc(100vh - 90px); }
.page-hero {
  background: var(--surface); border-radius: var(--radius); padding: 28px 30px; display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; border-left: 5px solid var(--green); box-shadow: var(--shadow);
}
.page-kicker { font-size: 10px; font-weight: 800; letter-spacing: .09em; color: var(--green); }
.page-hero h1 { margin: 6px 0 5px; font-size: 34px; }
.page-hero p { margin: 0; color: var(--muted); font-size: 14px; }
.hero-date { text-align: right; min-width: 215px; padding: 11px 14px; background: #f3f6f6; border-radius: 10px; }
.hero-date small, .hero-date strong, .hero-date span { display: block; }
.hero-date small { font-size: 9px; color: #657178; }
.hero-date strong { margin: 4px 0; font-size: 14px; }
.hero-date span { color: var(--green); font-size: 10px; font-weight: 700; }

.company-strip { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.company-card { background: var(--surface); border-radius: 12px; padding: 15px 17px; border-top: 4px solid; box-shadow: var(--shadow); }
.company-card span, .company-card strong, .company-card small { display: block; }
.company-card span { font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.company-card strong { margin: 5px 0 3px; font-size: 13px; }
.company-card small { font-size: 10px; color: var(--muted); }
.company-929 { border-top-color: var(--red); }
.company-rith { border-top-color: var(--blue); }
.company-64 { border-top-color: var(--light-green); }
.company-929 span { color: var(--red); }
.company-rith span { color: #4b8eb9; }
.company-64 span { color: #5e9950; }

.summary-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.summary-card { background: var(--surface); border-radius: 12px; padding: 17px; border-top: 4px solid; box-shadow: var(--shadow); }
.summary-card small, .summary-card strong, .summary-card span { display: block; }
.summary-card small { color: var(--muted); font-size: 9px; letter-spacing: .04em; }
.summary-card strong { font-size: 25px; margin: 7px 0 3px; }
.summary-card span { color: var(--muted); font-size: 10px; }
.accent-red { border-top-color: var(--red); }
.accent-green { border-top-color: var(--green); }
.accent-blue { border-top-color: #74b8df; }
.accent-purple { border-top-color: #6d65d8; }

.dashboard-section { margin-top: 16px; background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.section-heading span:first-child { display: block; color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.section-heading h2 { margin: 4px 0 0; font-size: 22px; }
.section-note { color: var(--muted); font-size: 10px; text-align: right; max-width: 440px; }
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.module-card { display: grid; grid-template-columns: 42px 1fr 18px; gap: 11px; align-items: center; border: 1px solid var(--border); background: var(--surface-soft); border-radius: 10px; padding: 12px; transition: .15s ease; }
.module-card:hover { transform: translateY(-1px); border-color: #88c8a8; box-shadow: 0 5px 12px rgba(0,0,0,.05); }
.module-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: #e7f6ed; color: var(--green); font-weight: 800; }
.module-card strong, .module-card span { display: block; }
.module-card strong { font-size: 12px; }
.module-card span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.module-card b { color: var(--green); text-align: right; }
.document-standard { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.document-standard > div { border: 1px solid var(--border); background: var(--surface-soft); border-radius: 9px; padding: 13px; }
.document-standard strong, .document-standard span { display: block; }
.document-standard strong { font-size: 12px; }
.document-standard span { color: var(--muted); font-size: 10px; margin-top: 5px; line-height: 1.3; }
.app-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 18px 4px 0; color: #8b969b; font-size: 10px; }

.backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 15; }

@media (max-width: 1100px) {
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .document-standard { grid-template-columns: repeat(2, 1fr); }
  .system-clock { display: none; }
}

@media (max-width: 820px) {
  .app-header { padding: 0 14px; }
  .mobile-only { display: inline-block; }
  .header-title { display: none; }
  .logged-user { min-width: auto; }
  .logged-user strong { max-width: 130px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sidebar { top: 90px; transform: translateX(-100%); transition: transform .2s ease; box-shadow: 8px 0 20px rgba(0,0,0,.2); }
  .sidebar.open { transform: translateX(0); }
  .app-main { margin-left: 0; padding: 92px 16px 16px; min-height: calc(100vh - 76px); }
  .page-hero { align-items: flex-start; flex-direction: column; }
  .hero-date { text-align: left; width: 100%; }
  .company-strip, .module-grid { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
  .brand img { width: 82px; }
  .logout-button { padding: 10px 11px; font-size: 11px; }
  .page-hero h1 { font-size: 28px; }
  .summary-grid, .document-standard { grid-template-columns: 1fr; }
  .dashboard-section { padding: 18px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .section-note { text-align: left; }
}

/* =========================================================
   SHARED APP HEADER - MOBILE STANDARD
   Same header structure for Dashboard, Employees and Sales.
   ========================================================= */
@media (max-width: 820px) {
  .app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    min-height: 76px;
    padding: 0 8px;
    gap: 6px;
  }

  .header-left,
  .header-right {
    gap: 6px;
    min-width: 0;
  }

  .header-left {
    flex: 0 1 auto;
  }

  .header-right {
    flex: 1 1 auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

  .icon-button {
    width: 48px;
    height: 42px;
    flex: 0 0 48px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    font-size: 18px;
  }

  .brand {
    flex: 0 0 auto;
  }

  .brand img {
    width: 88px;
    max-width: 88px;
  }

  .system-clock {
    display: none;
  }

  .logged-user {
    min-width: 0;
    width: 132px;
    max-width: 132px;
    padding: 7px 8px;
    flex: 0 1 132px;
    overflow: hidden;
    text-align: center;
  }

  .logged-user small {
    font-size: 8px;
    white-space: nowrap;
  }

  .logged-user strong {
    max-width: 100%;
    margin: 3px 0 1px;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .logged-user span {
    font-size: 9px;
  }

  .logged-user em {
    font-size: 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .logout-button {
    min-width: 70px;
    width: 70px;
    flex: 0 0 70px;
    padding: 10px 8px;
    font-size: 11px;
    line-height: 1.1;
  }
}

@media (max-width: 380px) {
  .app-header {
    padding-left: 6px;
    padding-right: 6px;
  }

  .header-left,
  .header-right {
    gap: 4px;
  }

  .icon-button {
    width: 44px;
    flex-basis: 44px;
  }

  .brand img {
    width: 80px;
    max-width: 80px;
  }

  .logged-user {
    width: 118px;
    max-width: 118px;
    flex-basis: 118px;
    padding-left: 6px;
    padding-right: 6px;
  }

  .logout-button {
    width: 66px;
    min-width: 66px;
    flex-basis: 66px;
    padding-left: 6px;
    padding-right: 6px;
  }
}

/* =========================================================
   HEADER USER ROLE - SMALLER DISPLAY
   ========================================================= */

.logged-user em {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.2;
  font-style: italic;
  font-weight: 400;
  color: #222222;
}
/* =========================================================
   MASTER GREEN MENU BUTTONS
   Shared by Dashboard, Employees and Sales.
   ========================================================= */
.nav-item {
  background: var(--green);
  color: #fff;
  border: 1px solid rgba(255,255,255,.10);
  font-weight: 700;
  transition: background .15s ease, transform .15s ease, border-color .15s ease;
}
.nav-item:hover {
  background: #008a46;
  color: #fff;
  transform: translateX(1px);
  border-color: rgba(255,255,255,.18);
}
.nav-item.active {
  background: #007a3d;
  color: #fff;
  border-left: 4px solid #a9f3c7;
  padding-left: 8px;
  box-shadow: 0 4px 12px rgba(0,157,79,.22);
}
.nav-icon { color: #d9ffe9; }
.icon-button {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  font-weight: 800;
}
.icon-button:hover { background: #008a46; border-color: #008a46; }

@media (max-width: 820px) {
  .sidebar.open,
  .sidebar.mobile-open { transform: translateX(0); }
}


/* --------------------------------------------------------------------------
   MASTER APP SHELL - single UI standard for every application module
   -------------------------------------------------------------------------- */
.app-header { min-height: 90px; }
.nav-item {
  background: var(--green);
  color: #fff;
  border: 1px solid rgba(255,255,255,.10);
  font-weight: 700;
  transition: background .15s ease, transform .15s ease, border-color .15s ease;
}
.nav-item:hover { background: #008a46; color: #fff; transform: translateX(1px); border-color: rgba(255,255,255,.18); }
.nav-item.active { background: #007a3d; color:#fff; border-left: 4px solid #a9f3c7; padding-left: 8px; box-shadow: 0 4px 12px rgba(0,157,79,.22); }
.nav-icon { color:#d9ffe9; }
.sidebar-date-card { margin-top: 8px; }

@media (max-width: 820px) {
  .app-header { min-height: 76px; padding: 0 8px; gap: 6px; }
  .header-left, .header-right { gap: 6px; min-width: 0; }
  .header-left { flex: 0 1 auto; }
  .header-right { flex: 1 1 auto; justify-content: flex-end; flex-wrap: nowrap; }
  .icon-button { width: 48px; height: 42px; flex: 0 0 48px; display:inline-grid; place-items:center; padding:0; font-size:18px; background:var(--green); border-color:var(--green); color:#fff; }
  .icon-button:hover { background:#008a46; border-color:#008a46; }
  .brand { flex: 0 0 auto; }
  .brand img { width:88px; max-width:88px; }
  .system-clock { display:none; }
  .sidebar { top: 76px; height: calc(100vh - 76px); }
  .logged-user { min-width:0; width:132px; max-width:132px; padding:7px 8px; flex:0 1 132px; overflow:hidden; text-align:center; }
  .logged-user small { font-size:8px; white-space:nowrap; }
  .logged-user strong { max-width:100%; margin:3px 0 1px; font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .logged-user span { font-size:9px; }
  .logged-user em { display:block; font-size:9px; line-height:1.2; font-style:italic; font-weight:400; color:#222; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .logout-button { min-width:70px; width:70px; flex:0 0 70px; padding:10px 8px; font-size:11px; line-height:1.1; }
}
@media (max-width: 380px) {
  .app-header { padding-left:6px; padding-right:6px; }
  .header-left, .header-right { gap:4px; }
  .icon-button { width:44px; flex-basis:44px; }
  .brand img { width:80px; max-width:80px; }
  .logged-user { width:118px; max-width:118px; flex-basis:118px; padding-left:6px; padding-right:6px; }
  .logout-button { width:66px; min-width:66px; flex-basis:66px; padding-left:6px; padding-right:6px; }
}


/* FINANCE / MONTHLY EARNINGS */
.finance-toolbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 18px}
.finance-toolbar label{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:800;color:#52615b;text-transform:uppercase;letter-spacing:.04em}
.finance-toolbar input{min-height:42px;border:1px solid #cfd8dc;border-radius:8px;padding:10px 12px;background:#fff;color:#17201c;box-sizing:border-box}
.finance-breakdown{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.finance-breakdown>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px;border:1px solid #e2e7e4;border-radius:10px;background:#fbfcfb}
.finance-breakdown .finance-total{grid-column:1/-1;background:#eefaf3;border-color:#9bc8af}
.finance-section-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.finance-message{margin:10px 0;padding:10px 12px;border-radius:8px;background:#eef5f1;color:#40524a;font-size:12px;font-weight:700}
.finance-message[data-kind="error"]{background:#fff0f1;color:#a01822}.finance-message[data-kind="success"]{background:#eefaf3;color:#08743d}
.finance-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.finance-voucher{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;padding:12px;border:1px solid #e2e7e4;border-radius:10px;background:#fff;margin-bottom:8px}
.finance-voucher>div{display:flex;flex-direction:column;gap:3px}.finance-voucher span,.finance-voucher small{font-size:10px;color:#6c7772}.finance-voucher b{font-size:14px}.finance-voucher small{text-align:right}
@media(max-width:820px){.finance-toolbar{grid-template-columns:1fr}.finance-section-grid{grid-template-columns:1fr}.finance-breakdown{grid-template-columns:1fr}.finance-voucher{grid-template-columns:1fr auto}.finance-voucher small{grid-column:1/-1;text-align:left}}

.finance-inline-btn{display:inline-flex;align-items:center;justify-content:center;min-height:28px;margin-left:8px;padding:0 9px;border:1px solid #00a651;border-radius:6px;background:#eefaf3;color:#00783e;font-size:10px;font-weight:800;cursor:pointer}.finance-inline-btn:hover{background:#dff5e8}.finance-inline-btn:disabled{opacity:.55;cursor:not-allowed}

.access-denied-banner{margin-top:16px;padding:13px 16px;border:1px solid #f2b5ba;border-left:4px solid var(--red);border-radius:10px;background:#fff4f5;color:#8f1720;font-weight:700;font-size:12px;}


/* DASHBOARD STAFF PROFILE */
.dashboard-profile,
.dashboard-notifications {
  margin-top: 16px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.profile-topline,
.notification-heading {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}
.profile-topline h2,
.notification-heading h2 { margin:5px 0 5px; font-size:22px; }
.profile-topline p,
.notification-heading p { margin:0; color:var(--muted); font-size:13px; }
.profile-status,
.notification-count {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:58px;
  min-height:30px;
  padding:0 10px;
  border-radius:999px;
  background:#e9f8ef;
  border:1px solid #9ed8b4;
  color:#08743d;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
}
.profile-identity {
  display:flex;
  align-items:center;
  gap:20px;
  margin-top:20px;
  padding-bottom:20px;
  border-bottom:1px solid #e3e8e5;
}
.profile-photo-wrap { flex:0 0 150px; }
.profile-photo {
  display:block;
  width:150px;
  height:180px;
  object-fit:cover;
  border:3px solid var(--green);
  border-radius:12px;
  background:#f3f6f4;
}
.profile-code { font-size:15px; color:#00a651; font-weight:900; }
.profile-blue { color:#1685d3; margin-top:5px; }
.profile-heading h3 { margin:12px 0 5px; font-size:24px; }
.profile-position { color:#313a36; font-size:14px; }
.profile-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  margin-top:12px;
}
.profile-field {
  display:grid;
  grid-template-columns:180px minmax(0,1fr);
  gap:16px;
  padding:11px 8px;
  border-bottom:1px solid #e7ebe9;
  font-size:12px;
  min-height:20px;
  box-sizing:border-box;
}
.profile-field > span { color:#4f5d57; }
.profile-field > strong { color:#1d2823; overflow-wrap:anywhere; }
.profile-field-wide { grid-column:1 / -1; }
.notification-list { margin-top:16px; display:grid; gap:10px; }
.notification-item {
  display:grid;
  grid-template-columns:40px minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  padding:14px;
  border:1px solid #dfe7e2;
  border-left:4px solid #00a651;
  border-radius:10px;
  background:#fbfcfb;
}
.notification-item.priority-high { border-left-color:#ef1b2d; }
.notification-item.priority-medium { border-left-color:#d9a500; }
.notification-icon {
  width:34px; height:34px; display:grid; place-items:center;
  border-radius:9px; background:#e9f8ef; color:#008d48; font-weight:900;
}
.notification-body { display:flex; flex-direction:column; gap:3px; min-width:0; }
.notification-body strong { font-size:13px; }
.notification-body span { color:#53615b; font-size:12px; overflow-wrap:anywhere; }
.notification-body small { color:#7b8782; font-size:10px; }
.notification-action {
  display:inline-flex; align-items:center; justify-content:center;
  min-height:32px; padding:0 12px; border-radius:8px;
  background:var(--green); color:#fff; text-decoration:none; font-size:11px; font-weight:800;
}
.notification-empty {
  display:flex; flex-direction:column; gap:4px; align-items:center; justify-content:center;
  min-height:84px; padding:12px; border:1px dashed #cfd9d3; border-radius:10px;
  background:#fbfcfb; color:#6d7873; text-align:center; font-size:12px;
}
.notification-empty strong { color:#2b3932; }
.notification-error { background:#fff4f5; border-color:#edb7bb; color:#9a1a23; }
@media (max-width:820px) {
  .dashboard-profile,.dashboard-notifications { padding:18px; }
  .profile-topline,.notification-heading { flex-direction:column; }
  .profile-identity { align-items:flex-start; }
  .profile-photo-wrap { flex-basis:112px; }
  .profile-photo { width:112px; height:140px; }
  .profile-heading h3 { font-size:20px; }
  .profile-grid { grid-template-columns:1fr; }
  .profile-field { grid-template-columns:140px minmax(0,1fr); }
  .profile-field-wide { grid-column:auto; }
  .notification-item { grid-template-columns:34px minmax(0,1fr); }
  .notification-action { grid-column:2; justify-self:start; }
}
@media (max-width:460px) {
  .profile-identity { flex-direction:column; }
  .profile-photo-wrap { flex-basis:auto; }
  .profile-field { grid-template-columns:1fr; gap:4px; }
}


/* DASHBOARD EMPLOYEE DIRECTORY */
.dashboard-staff-directory{padding:18px;margin-top:16px}
.dashboard-directory-heading{align-items:flex-end}
.dashboard-directory-heading h2{margin:4px 0;font-size:22px}
.dashboard-directory-heading p{margin:0;color:var(--muted);font-size:12px}
.directory-heading-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.directory-count{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 12px;border-radius:8px;background:#eefaf3;border:1px solid #a9d9bb;color:#08743d;font-weight:900;font-size:11px}
.dashboard-staff-search{width:min(360px,100%);min-height:36px;border:1px solid #cfd8d3;border-radius:8px;padding:0 12px;box-sizing:border-box;background:#fff;color:#142019}
.dashboard-staff-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}
.dashboard-staff-card{display:grid;grid-template-columns:104px minmax(0,1fr);gap:12px;padding:11px;border:1px solid #d9e2dc;border-top:3px solid #00a651;border-radius:10px;background:#fff;box-sizing:border-box;min-width:0}
.dashboard-staff-photo-button{border:0;background:transparent;padding:0;cursor:pointer;align-self:start}
.dashboard-staff-photo{display:block;width:104px;height:132px;object-fit:cover;border:2px solid #00a651;border-radius:10px;background:#f3f6f4}
.dashboard-staff-content{min-width:0}
.dashboard-staff-code{color:#00a651;font-size:12px;font-weight:900}
.dashboard-staff-id{color:#1685d3;font-size:12px;font-weight:900;margin-top:2px}
.dashboard-staff-content h3{margin:7px 0 2px;font-size:17px;line-height:1.15}
.dashboard-staff-position{font-size:11px;color:#4a5751;margin-bottom:7px}
.dashboard-staff-line{display:grid;grid-template-columns:62px minmax(0,1fr);gap:8px;font-size:9px;padding:2px 0}
.dashboard-staff-line span{color:#6e7974}
.dashboard-staff-line strong{overflow-wrap:anywhere}
.dashboard-staff-status{display:inline-flex;margin-top:6px;padding:4px 8px;border-radius:999px;font-size:9px;font-weight:900;background:#edf8f1;color:#08743d;border:1px solid #9ed4b1}
.dashboard-staff-status.inactive{background:#fff2f3;color:#9e1620;border-color:#e3b4b8}
.dashboard-staff-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px}
.dashboard-staff-actions button{min-height:28px;padding:0 9px;border-radius:7px;font-size:10px}
.company-card{min-height:118px;display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;box-sizing:border-box}
.company-staff-count{display:block;margin-top:auto;padding-top:8px;font-size:11px;color:#08743d}
.dashboard-modal-backdrop{position:fixed;inset:0;z-index:3000;background:rgba(0,0,0,.55);display:grid;place-items:center;padding:18px;box-sizing:border-box}
.dashboard-modal{width:min(960px,100%);max-height:calc(100vh - 36px);overflow:auto;background:#fff;border-radius:14px;padding:18px;box-sizing:border-box;box-shadow:0 20px 60px rgba(0,0,0,.3);position:relative}
.dashboard-modal-close{position:absolute;right:12px;top:10px;width:36px;height:36px;border:0;border-radius:50%;background:#ef1b2d;color:#fff;font-size:22px;cursor:pointer}
.dashboard-modal-head{display:flex;gap:16px;align-items:center;padding-right:42px;padding-bottom:14px;border-bottom:1px solid #e1e7e3}
.dashboard-modal-head img{width:96px;height:120px;object-fit:cover;border:2px solid #00a651;border-radius:10px}
.dashboard-modal-head h2{margin:4px 0;font-size:24px}
.dashboard-modal-head strong{display:block;color:#00a651;font-size:12px}.dashboard-modal-head span:last-child{display:block;font-size:11px;color:#4a5751;margin-top:2px}
.dashboard-profile-modal-grid{display:grid;grid-template-columns:1fr 1fr;margin-top:12px}
.dashboard-profile-modal-grid>div{display:grid;grid-template-columns:150px minmax(0,1fr);gap:10px;padding:8px 6px;border-bottom:1px solid #e7ebe9;font-size:11px}.dashboard-profile-modal-grid span{color:#58655f}.dashboard-profile-modal-grid strong{overflow-wrap:anywhere}
@media(max-width:1050px){.dashboard-staff-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.dashboard-directory-heading{align-items:flex-start}.directory-heading-meta{width:100%;justify-content:flex-start}.dashboard-staff-search{width:100%}.dashboard-staff-grid{grid-template-columns:1fr}.dashboard-staff-card{grid-template-columns:88px minmax(0,1fr)}.dashboard-staff-photo{width:88px;height:112px}.dashboard-profile-modal-grid{grid-template-columns:1fr}.dashboard-profile-modal-grid>div{grid-template-columns:130px minmax(0,1fr)}}
@media(max-width:460px){.dashboard-staff-card{grid-template-columns:1fr}.dashboard-staff-photo-button{justify-self:start}.dashboard-staff-photo{width:82px;height:104px}.company-card{min-height:112px}}

.audit-toolbar{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;margin:0 0 18px}.audit-toolbar label{display:flex;flex-direction:column;gap:6px;font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.audit-toolbar input{min-width:220px;padding:10px 12px;border:1px solid #d5d9df;border-radius:10px;background:#fff}.audit-table-wrap{overflow:auto;border:1px solid #e1e5ea;border-radius:14px;background:#fff}.audit-table{width:100%;border-collapse:collapse;min-width:1180px}.audit-table th,.audit-table td{padding:11px 12px;border-bottom:1px solid #edf0f3;text-align:left;vertical-align:top;font-size:.86rem}.audit-table th{position:sticky;top:0;background:#f7f8fa;z-index:1;font-weight:800}.audit-table tbody tr:last-child td{border-bottom:0}
.finance-sales-block{margin:0 0 14px}
.finance-sales-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:0 0 8px;font-size:13px}
.finance-sales-heading span{font-size:11px;color:#667085;font-weight:700}
.finance-inline-actions,.finance-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.finance-inline-btn{border:1px solid #ccd2dc;background:#fff;border-radius:9px;padding:8px 11px;cursor:pointer;font-weight:700}
.finance-inline-btn.danger{color:#a32626}

/* Sales module navigation groups - Phase 7 */
.nav-group-heading{padding:14px 14px 6px;font-size:10px;font-weight:900;letter-spacing:.12em;color:#7b8790;text-transform:uppercase}

/* 2026-10 final UI standard: status is text only, never pill/badge. */
.status,
.status-badge,
.staff-status-badge,
.dashboard-staff-status,
.summary-main-status,
.payment-status {
  border-radius: 0 !important;
}
.staff-status-badge,
.dashboard-staff-status {
  display: inline !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-weight: 900 !important;
}
.staff-status-badge.status-active,
.staff-status-badge.active,
.dashboard-staff-status { color: #087a3e !important; }
.staff-status-badge.status-inactive { color: #b42318 !important; }

/* ============================================================
   929 AUTOCARE - STANDARD UI 2026-10-09
   Mobile-first, BM UI, semantic action colours, text-only status.
   ============================================================ */

/* Action buttons */
.btn-primary,.btn-save,.app-primary-button,.admin-btn-green,.admin-row-button.edit,
.dms-btn-green,.ps-btn.green,.report-primary-button,
button[data-approve],button[data-generate],button[data-save],button[data-edit],button[data-paid],
.finance-inline-btn[data-vpay],.finance-inline-btn[data-vprint] {
  background:#0b8f43 !important;color:#fff !important;border:1px solid #0b8f43 !important;
}
.btn-dark,.btn-black,.ps-btn.black,.admin-btn-black,.dms-btn-black,
button[data-pdf],button[data-save-pdf] {
  background:#111 !important;color:#fff !important;border:1px solid #111 !important;
}
.btn-danger,.btn-cancel,.btn-delete-large,.app-btn-danger,.admin-btn-red,.admin-row-button.danger,
.dms-btn-red,.ps-btn.red,.dms-remove-item,
button[data-delete],button[data-cancel],button[data-close],button[data-close-modal] {
  background:#c6281d !important;color:#fff !important;border:1px solid #c6281d !important;
}
.btn-neutral,.btn-search,.btn-preview,.secondary-button,.app-secondary-button,.admin-btn-neutral,
.admin-row-button.view,.dms-btn-neutral-green,.report-refresh-button,
.finance-inline-btn:not(.danger),button[data-view],button[data-search],button[data-refresh] {
  background:#fff !important;color:#087a3e !important;border:1px solid #b9c9bf !important;
}
.btn-monthly-report {
  background:#111 !important;color:#d7192c !important;border:1px solid #111 !important;
}

/* X / close is a normal red-white button, never circular/pill. */
.app-modal-close,.dashboard-modal-close,.admin-close,.approval-close,.modal-close,.dms-icon-close,
button[aria-label="Tutup"],button[aria-label="Tutup modal"] {
  background:#c6281d !important;color:#fff !important;border:1px solid #c6281d !important;
  border-radius:7px !important;width:38px !important;height:38px !important;min-width:38px !important;
  min-height:38px !important;padding:0 !important;display:grid !important;place-items:center !important;
  font-weight:900 !important;line-height:1 !important;
}

/* STATUS: bold coloured text only. No badge/pill/background/border. */
.status,.status-badge,.staff-status-badge,.profile-status,.dashboard-staff-status,.dms-status,.ps-record-status,
[class*="status-"][class*="badge"] {
  background:transparent !important;border:0 !important;border-radius:0 !important;padding:0 !important;
  box-shadow:none !important;font-weight:900 !important;
}
.status.NEW,.status.SUBMITTED,.status-new,.status-submitted,.dms-status.blue {color:#1559a6 !important;}
.status.PROGRESS-PAYMENT,.status.BOLEH-DIJANA,.status-progress-payment,.status-boleh-dijana,.dms-status.yellow {color:#a16207 !important;}
.status.COMPLETED,.status.PAYMENT-COMPLETED,.status.ACTIVE,.status.PAID,
.status-completed,.status-payment-completed,.status-active,.staff-status-badge.active,.dms-status.green {color:#087a3e !important;}
.status.INACTIVE,.status.UNPAID,.status-inactive,.dms-status.red {color:#b42318 !important;}

/* Mobile-first safety */
img{max-width:100%;height:auto;}
.table-scroll,.dms-table-wrap,.app-table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;}
.actions,.modal-actions,.filter-actions,.dms-actions,.dms-form-actions{flex-wrap:wrap;}
@media(max-width:600px){
  .actions>button,.modal-actions>button,.filter-actions>button,.dms-form-actions>button{min-height:44px;}
  .modal,.dms-modal,.app-modal{padding:8px !important;}
  .modal-card,.dms-modal-panel,.app-modal-panel{width:100% !important;max-width:100% !important;max-height:94vh !important;}
  .signatures{grid-template-columns:1fr !important;gap:24px !important;}
}

/* Self-service profile photo */
.profile-photo-change{display:block;width:100%;margin-top:9px;border:1px solid #0b8f43;border-radius:8px;padding:10px 12px;background:#0b8f43;color:#fff;font-weight:700;cursor:pointer;min-height:44px}
/* Employee photo update is an execute action: green + white. */
button[data-photo-staff]{background:#0b8f43 !important;color:#fff !important;border:1px solid #0b8f43 !important}
/* Employee delete is destructive: red + white. */
.staff-delete-profile-button{background:#c6281d !important;color:#fff !important;border:1px solid #c6281d !important}
.profile-photo-change:disabled{opacity:.55;cursor:wait}
.profile-photo-help{display:block;margin-top:6px;font-size:11px;line-height:1.35;color:#667085;text-align:center}


/* Self-service profile edit - mobile first */
.profile-edit-button,.profile-save-button{display:block;width:100%;margin-top:9px;border:1px solid #0b8f43;border-radius:8px;padding:10px 12px;background:#0b8f43;color:#fff;font-weight:700;cursor:pointer;min-height:44px}
.profile-edit-modal[hidden]{display:none}.profile-edit-modal{position:fixed;inset:0;z-index:10000;background:rgba(0,0,0,.58);display:flex;align-items:flex-start;justify-content:center;padding:14px;overflow:auto}
.profile-edit-dialog{width:min(100%,720px);margin:auto;background:#fff;border:1px solid #111;border-radius:10px;overflow:hidden}
.profile-edit-header{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#000;color:#fff;padding:14px 16px}.profile-edit-header h2{margin:0;color:#fff;font-size:18px;font-weight:800}.profile-close-button,.profile-cancel-button{border:1px solid #c40018;background:#c40018;color:#fff;border-radius:6px;min-height:42px;padding:9px 14px;font-weight:800;cursor:pointer}.profile-close-button{width:auto;min-width:44px}
.profile-edit-form{display:grid;grid-template-columns:1fr;gap:12px;padding:16px}.profile-edit-form label{display:flex;flex-direction:column;gap:6px;font-weight:700;color:#111}.profile-edit-form input,.profile-edit-form textarea{width:100%;box-sizing:border-box;border:1px solid #b8c0bc;border-radius:6px;padding:11px 12px;font:inherit;background:#fff;color:#111;min-height:44px}.profile-edit-actions{display:flex;flex-direction:column-reverse;gap:10px;margin-top:4px}.profile-edit-actions .profile-save-button{margin:0}.profile-edit-actions .profile-cancel-button{width:100%}
@media(min-width:700px){.profile-edit-form{grid-template-columns:1fr 1fr}.profile-edit-wide,.profile-edit-actions{grid-column:1/-1}.profile-edit-actions{flex-direction:row;justify-content:flex-end}.profile-edit-actions .profile-save-button,.profile-edit-actions .profile-cancel-button{width:auto;min-width:130px}}


/* 929 Employee lifecycle / statutory UI */
.form-section-title{grid-column:1/-1;background:#000;color:#fff;font-weight:700;padding:10px 12px;margin-top:8px;border-radius:0;}
.staff-resign-button{background:#d4a900;color:#fff;border:1px solid #d4a900;font-weight:700;padding:10px 14px;border-radius:4px;cursor:pointer;}
.staff-resign-button:hover{filter:brightness(.95)}
@media (max-width:640px){.staff-modal-actions{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}.staff-modal-actions button{width:100%!important;min-height:44px}.form-section-title{grid-column:1!important}.staff-form .form-grid{grid-template-columns:1fr!important}}
