/* --------------------------------------------------------------
   ORANGE HR ENROLMENT — GLOBAL CARD + TITLES
-------------------------------------------------------------- */

.orange-title {
  font-size: 24px;
  margin-bottom: 16px;
  font-weight: 700;
}

/* Generic white cards */
.orange-enrol-card,
.orange-hr-dashboard,
.orange-hr-table-card,
.orange-hr-detail-card,
.orange-admin-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  margin-bottom: 22px;
}

/* Section blocks inside forms */
.orange-section {
  border-top: 3px solid #f36b21;
  padding-top: 16px;
  margin-top: 24px;
}

.orange-section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* Form fields */
.orange-field {
  margin-bottom: 12px;
}

.orange-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 13px;
}

.orange-field input[type="text"],
.orange-field input[type="email"],
.orange-field input[type="date"],
.orange-field input[type="number"],
.orange-field input[type="file"],
.orange-field textarea,
.orange-field select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
  box-sizing: border-box;
  font-size: 13px;
}

/* File input */
.orange-field input[type="file"] {
  padding: 6px 10px;
  background: #fafafa;
  cursor: pointer;
}

.orange-field input[type="file"]::file-selector-button {
  padding: 6px 14px;
  margin-right: 10px;
  border-radius: 999px;
  border: 1px solid #f36b21;
  background: #f36b21;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}

/* File name display */
.orange-file-name {
  margin-top: 4px;
  font-size: 12px;
  color: #555;
  word-break: break-all;
}

/* Two-column layout */
.orange-two-cols {
  display: flex;
  gap: 12px;
}

.orange-two-cols .orange-field {
  flex: 1;
}

/* Checkbox grid */
.orange-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 6px 12px;
}

.orange-checkbox-grid label {
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 400;
  gap: 6px;
}

/* Required */
.orange-required {
  color: #e53935;
}

/* Buttons */
.orange-btn-primary,
.orange-btn-secondary {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.orange-btn-primary {
  background: #f36b21;
  color: #fff;
}

.orange-btn-primary:hover {
  background: #d95e1b;
}

.orange-btn-secondary {
  background: #fff;
  border: 1px solid #f36b21;
  color: #f36b21;
}

.orange-btn-secondary:hover {
  background: #fdf1e9;
}

.orange-form-footer {
  margin-top: 20px;
}

/* Success message */
.orange-success-message {
  padding: 10px 14px;
  background: #d4edda;
  color: #155724;
  border-radius: 6px;
  margin-bottom: 14px;
  font-size: 14px;
}

/* --------------------------------------------------------------
   HR DASHBOARD
-------------------------------------------------------------- */

.orange-hr-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.orange-stat-card {
  flex: 1;
  min-width: 150px;
  background: #f7f9ff;
  border-radius: 10px;
  padding: 14px 16px;
}

.orange-stat-label {
  font-size: 12px;
  color: #555;
}

.orange-stat-value {
  font-size: 20px;
  font-weight: 700;
}

.orange-stat-button {
  text-align: right;
}

.orange-stat-button a {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 6px;
    border: 1px solid #f36b21;
    color: #f36b21;
    background: #fff;
    margin-left: 8px;
    font-weight: 600;
}

/* HR Table */
.orange-hr-table {
  width: 100%;
  border-collapse: collapse;
}

.orange-hr-table th,
.orange-hr-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  text-align: left;
  font-size: 13px;
}

.orange-hr-table th {
  background: #f5f7ff;
  font-weight: 600;
}

/* Badges */
.orange-badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
}

.orange-badge-pending_hr {
  background: #fff3cd;
  color: #856404;
}

.orange-badge-approved_hr {
  background: #d4edda;
  color: #155724;
}

/* --------------------------------------------------------------
   DETAIL PANEL
-------------------------------------------------------------- */

.orange-hr-detail-overlay {
  background: rgba(0,0,0,0.35);
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 15px;
  z-index: 9999;
}

.orange-detail-close {
  float: right;
  margin-bottom: 12px;
  border: 1px solid #666;
  background: #eee;
  padding: 4px 10px;
  cursor: pointer;
  border-radius: 999px;
}

.orange-detail-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.orange-detail-grid > div {
  flex: 1;
  min-width: 260px;
}

/* --------------------------------------------------------------
   DEPENDANTS
-------------------------------------------------------------- */

.orange-dependant-block {
  background: #fafafa;
  padding: 20px 15px;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  margin-bottom: 20px;
}

.orange-dependant-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.orange-dependant-title {
  font-weight: 600;
  font-size: 16px;
}

.orange-remove-dependant {
  color: #d9534f;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
}

/* --------------------------------------------------------------
   HR LOGIN PAGE
-------------------------------------------------------------- */

.orange-login-wrapper {
  max-width: 720px;
  margin: 60px auto;
  padding: 20px 15px;
}

.orange-login-card {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.orange-login-header {
  margin-bottom: 22px;
}

.orange-login-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 4px;
}

.orange-login-subtitle {
  font-size: 14px;
  color: #555;
}

.orange-login-error {
  background: #fdeaea;
  border-left: 4px solid #e53935;
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.orange-login-button {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  font-size: 16px;
  margin-top: 10px;
}

.orange-login-footer {
  text-align: center;
  margin-top: 20px;
  color: #555;
}

/* --------------------------------------------------------------
   ADMIN STYLE
-------------------------------------------------------------- */

.orange-admin-wrap .orange-admin-subtitle {
  color: #666;
  margin-top: -4px;
}

.orange-admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 12px;
}

.orange-admin-kpi-card {
  background: #fff;
  padding: 14px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 10px;
}

.orange-kpi-icon {
  font-size: 22px;
}

.orange-kpi-label {
  font-size: 12px;
  color: #555;
}

.orange-kpi-value {
  font-size: 20px;
  font-weight: 700;
}

/* --------------------------------------------------------------
   MOBILE RESPONSIVE
-------------------------------------------------------------- */

@media (max-width: 768px) {

  .orange-two-cols {
    flex-direction: column;
  }

  .orange-hr-stats {
    flex-direction: column;
  }

  .orange-admin-kpi-grid {
    grid-template-columns: 1fr 1fr;
  }

  .orange-hr-table-card {
    overflow-x: auto;
  }

  .orange-hr-table {
    min-width: 650px;
  }

}

@media (max-width: 550px) {
  .orange-admin-kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* Greeting Box Styles */
.orange-hr-greeting {
    background: #FFF6EB;
    padding: 18px 22px;
    border-left: 6px solid #FF8A3D;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 17px;
    line-height: 1.5;
    color: #333;
    opacity: 0;
    transform: translateY(10px);
    animation: greetingFadeUp 0.8s ease-out forwards;
}

/* Greeting Fade + Slide Up Animation */
@keyframes greetingFadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Extra subtle glow animation */
.animated-greeting {
    animation: greetingFadeUp 0.8s ease-out forwards, softGlow 4s ease-in-out infinite;
}

@keyframes softGlow {
    0% { box-shadow: 0 0 0px rgba(255, 138, 61, 0.15); }
    50% { box-shadow: 0 4px 16px rgba(255, 138, 61, 0.25); }
    100% { box-shadow: 0 0 0px rgba(255, 138, 61, 0.15); }
}


/* -------------------------------------------------------------
   Corporate Documents Module (Phase 1.1)
------------------------------------------------------------- */
.orange-docs-upload-row{
    display:flex;
    gap:10px;
    align-items:center;
    flex-wrap:wrap;
}
.orange-docs-file{
    flex:1;
    min-width:240px;
}
.orange-alert{
    padding:10px 12px;
    border-radius:8px;
    margin:10px 0;
    font-weight:600;
}
.orange-alert.success{
    background:#e9f9ef;
    border:1px solid #bfe8cc;
    color:#176b34;
}
.orange-muted{
    color:#666;
    font-size:13px;
}
.orange-table-wrap{
    overflow:auto;
}
.orange-table{
    width:100%;
    border-collapse:collapse;
}
.orange-table th, .orange-table td{
    padding:10px 8px;
    border-bottom:1px solid #eee;
    text-align:left;
    vertical-align:top;
}
.orange-badge{
    display:inline-block;
    padding:3px 8px;
    border-radius:999px;
    font-size:12px;
    text-transform:capitalize;
}
.orange-badge.badge-success{
    background:#e9f9ef;
    color:#176b34;
    border:1px solid #bfe8cc;
}
.orange-badge.badge-warning{
    background:#fff6e6;
    color:#7a4b00;
    border:1px solid #f3d39b;
}
.orange-link{
    text-decoration:none;
    font-weight:600;
}
.orange-link.danger{
    color:#b42318;
}
.orange-sep{
    color:#999;
    margin:0 6px;
}


/* Corporate dashboard top bar */
.orange-dashboard-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}
.orange-dashboard-topbar .orange-title{
  margin-bottom:0;
}
.orange-logout-link{
  white-space:nowrap;
}



/* --------------------------------------------------------------
   ORANGE STAFF DASHBOARD (FRONTEND) — CLEAN UI
-------------------------------------------------------------- */

.orange-hr-wrapper{
  max-width:1200px;
  margin:28px auto;
  padding:0 16px;
}

.orange-hr-card{
  background:#ffffff;
  border-radius:16px;
  padding:24px;
  box-shadow:0 6px 18px rgba(0,0,0,0.06);
}

.orange-hr-card h2{
  margin:0;
  font-size:36px;
  line-height:1.15;
  font-weight:800;
}

.orange-hr-card h3{
  margin:18px 0 12px;
  font-size:18px;
  font-weight:800;
}

.orange-hr-card .orange-link{
  font-weight:700;
  text-decoration:none;
}

.orange-hr-card .orange-link:hover{
  text-decoration:underline;
}

.orange-hr-card .orange-btn-secondary{
  border-radius:999px;
  padding:8px 12px;
  font-size:14px;
  font-weight:700;
  background:#f5f5f5;
  border:1px solid #e7e7e7;
}

.orange-hr-card .orange-btn-secondary:hover{
  background:#eee;
}

.orange-hr-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  font-size:14px;
}

.orange-hr-table thead th{
  background:#fafafa;
  border-bottom:1px solid #eee;
  padding:10px 12px;
  font-weight:800;
  color:#111;
  white-space:nowrap;
}

.orange-hr-table tbody td{
  padding:10px 12px;
  border-bottom:1px solid #f0f0f0;
  vertical-align:top;
  color:#222;
  word-break:break-word;
}

.orange-hr-table tbody tr:hover td{
  background:#fcfcfc;
}

.orange-hr-table-wrap{
  border:1px solid #eee;
  border-radius:12px;
  overflow:auto;
  background:#fff;
}

.orange-badge{
  display:inline-block;
  padding:2px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  line-height:20px;
}

.orange-badge--unread{
  background:#fde2e2;
}

@media (max-width: 600px){
  .orange-hr-card{
    padding:16px;
  }
  .orange-hr-card h2{
    font-size:28px;
  }
}


/* --------------------------------------------------------------
   ORANGE STAFF DASHBOARD — PREMIUM UI
-------------------------------------------------------------- */
.orange-staff-dashboard-page .entry-title,
.orange-staff-dashboard-page .page-title,
.orange-staff-dashboard-page h1.entry-title {
  display: none !important;
}

.orange-staff-dashboard {
  max-width: 1180px;
  margin: 24px auto;
  padding: 0 14px;
}

.orange-staff-card {
  padding: 18px 18px 6px 18px;
}

.orange-staff-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.orange-staff-h {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.orange-staff-sub {
  margin-top: 4px;
  opacity: 0.75;
  font-size: 13px;
}

.orange-staff-logout {
  text-decoration: none;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.08);
}

.orange-staff-tabs {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding-bottom: 12px;
}

.orange-staff-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(0,0,0,0.08);
}

.orange-staff-tab.is-active {
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.orange-staff-panel {
  margin-top: 16px;
}

.orange-staff-panel h3,
.orange-staff-panel h2 {
  margin: 0 0 12px 0;
  font-size: 18px;
}

.orange-staff-table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
}

.orange-staff-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

.orange-staff-table th,
.orange-staff-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  vertical-align: top;
  font-size: 14px;
}

.orange-staff-table th {
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0.2px;
  opacity: 0.8;
}

.orange-staff-table tr:hover td {
  background: rgba(0,0,0,0.02);
}

.orange-staff-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(0,0,0,0.08);
}

.orange-staff-actions a {
  font-weight: 700;
  text-decoration: none;
}

.orange-staff-filename {
  word-break: break-word;
  max-width: 420px;
}

@media (max-width: 768px) {
  .orange-staff-h { font-size: 18px; }
  .orange-staff-card { padding: 14px; }
}



/* --------------------------------------------------------------
   OFFICER DASHBOARD REBUILD
-------------------------------------------------------------- */
.orange-card{
  background:#fff;
  border:1px solid #edf0f4;
  border-radius:18px;
  box-shadow:0 8px 24px rgba(15,23,42,0.06);
  padding:22px;
}
.orange-label{
  display:block;
  margin:0 0 8px;
  font-size:13px;
  font-weight:700;
  color:#344054;
}
.orange-input{
  width:100%;
  height:50px;
  padding:0 16px;
  border:1px solid #d9dee7;
  border-radius:12px;
  background:#fff;
  font-size:14px;
  box-sizing:border-box;
}
.orange-input:focus{
  outline:none;
  border-color:#f36b21;
  box-shadow:0 0 0 3px rgba(243,107,33,0.12);
}
.orange-officer-shell{
  max-width:1280px;
  margin:28px auto;
  padding:26px;
  border-radius:22px;
}
.orange-officer-topbar{
  margin-bottom:14px;
}
.orange-officer-subtitle{
  margin:6px 0 0;
}
.orange-officer-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:132px;
  padding:12px 18px;
  border-radius:999px;
  background:linear-gradient(135deg,#ff8a3d,#f36b21);
  color:#fff;
  font-weight:700;
}
.orange-officer-hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.orange-officer-hero__text{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.orange-officer-hero__text strong{
  font-size:20px;
}
.orange-officer-hero__meta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.orange-officer-hero__meta span,
.orange-officer-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:999px;
  background:#fff;
  border:1px solid #f2d2bf;
  color:#b45309;
  font-size:13px;
  font-weight:700;
}
.orange-officer-kpis{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  margin-bottom:16px;
}
.orange-officer-kpi{
  background:linear-gradient(180deg,#f8fbff 0%,#ffffff 100%);
  border:1px solid #e7edf5;
  border-radius:18px;
  padding:18px 18px 16px;
  box-shadow:0 6px 18px rgba(15,23,42,0.04);
}
.orange-officer-kpi__label{
  display:block;
  color:#667085;
  font-size:13px;
  margin-bottom:8px;
  font-weight:700;
}
.orange-officer-kpi__value{
  display:block;
  color:#101828;
  font-size:30px;
  line-height:1.1;
  font-weight:800;
}
.orange-officer-card{
  margin-top:16px;
}
.orange-officer-filters{
  display:grid;
  grid-template-columns:1.2fr 0.9fr 1fr auto;
  gap:14px;
  align-items:end;
}
.orange-officer-actions{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.orange-officer-sectionhead{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  flex-wrap:wrap;
  margin-bottom:18px;
}
.orange-officer-sectionhead h3{
  margin:0 0 6px;
  font-size:28px;
  line-height:1.15;
}
.orange-officer-sectionhead__actions{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.orange-officer-company-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.orange-officer-info-card{
  background:#f8fafc;
  border:1px solid #eaecf0;
  border-radius:16px;
  padding:16px;
  min-height:96px;
}
.orange-officer-info-card--wide{
  grid-column:span 2;
}
.orange-officer-info-card span{
  display:block;
  color:#667085;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.04em;
  font-weight:700;
  margin-bottom:8px;
}
.orange-officer-info-card strong,
.orange-officer-info-card strong a{
  color:#101828;
  font-size:15px;
  line-height:1.45;
  font-weight:700;
  word-break:break-word;
}
.orange-officer-table-wrap{
  border:1px solid #eceff3;
  border-radius:16px;
}
.orange-officer-table{
  min-width:980px;
}
.orange-officer-table thead th{
  background:#f8fafc;
  color:#475467;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.04em;
  font-weight:800;
  border-bottom:1px solid #eceff3;
}
.orange-officer-table tbody tr:hover{
  background:#fcfcfd;
}
.orange-officer-table td{
  padding:14px 10px;
  vertical-align:middle;
}
.orange-officer-principal-name{
  font-size:15px;
  color:#101828;
}
.orange-officer-row-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.orange-officer-row-actions .orange-link{
  color:#f36b21;
}
.orange-officer-empty{
  text-align:center;
  padding:28px 12px !important;
  color:#667085;
}
@media (max-width: 1100px){
  .orange-officer-kpis,
  .orange-officer-company-grid,
  .orange-officer-filters{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .orange-officer-actions{
    grid-column:1 / -1;
  }
}
@media (max-width: 782px){
  .orange-officer-shell{
    padding:18px;
  }
  .orange-officer-hero,
  .orange-officer-sectionhead,
  .orange-officer-topbar{
    flex-direction:column;
    align-items:flex-start;
  }
  .orange-officer-kpis,
  .orange-officer-company-grid,
  .orange-officer-filters{
    grid-template-columns:1fr;
  }
  .orange-officer-info-card--wide{
    grid-column:auto;
  }
  .orange-btn-primary,
  .orange-btn-secondary,
  .orange-officer-pill{
    width:100%;
    justify-content:center;
  }
}


/* ---- OFFICER UI REBUILD V2 ---- */
.orange-officer-app{
  max-width:1280px;
  margin:28px auto;
  padding:0 20px 40px;
  color:#101828;
}
.orange-officer-hero-card,
.orange-officer-panel{
  background:#fff;
  border:1px solid #ebeef4;
  border-radius:24px;
  box-shadow:0 12px 30px rgba(15,23,42,.06);
}
.orange-officer-hero-card{
  padding:28px;
  background:linear-gradient(180deg,#ffffff 0%,#fffaf6 100%);
  margin-bottom:18px;
}
.orange-officer-hero-main{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  margin-bottom:20px;
}
.orange-officer-titleblock h1{
  margin:0 0 8px;
  font-size:36px;
  line-height:1.05;
}
.orange-officer-titleblock p{
  margin:0;
  max-width:760px;
  color:#667085;
  font-size:15px;
}
.orange-officer-eyebrow{
  display:inline-flex;
  padding:7px 12px;
  border-radius:999px;
  background:#fff1e8;
  color:#c25112;
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
  margin-bottom:14px;
}
.orange-officer-head-actions{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.orange-officer-badge,
.orange-officer-ghostbtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 16px;
  border-radius:14px;
  text-decoration:none;
  font-weight:700;
}
.orange-officer-badge{
  background:linear-gradient(135deg,#ff8f46,#f36b21);
  color:#fff;
}
.orange-officer-ghostbtn{
  border:1px solid #f1c9b1;
  color:#b45309;
  background:#fff;
}
.orange-officer-greeting-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:18px 20px;
  border:1px solid #f3ddcd;
  border-radius:18px;
  background:linear-gradient(90deg,#fff4eb 0%,#fffdfb 100%);
}
.orange-officer-greeting-card strong{
  display:block;
  font-size:18px;
  margin-bottom:4px;
}
.orange-officer-greeting-card span{
  color:#667085;
}
.orange-officer-mini-stats{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.orange-officer-mini-stats span{
  display:inline-flex;
  gap:6px;
  align-items:center;
  padding:10px 14px;
  border-radius:999px;
  background:#fff;
  border:1px solid #f1d8c7;
  color:#7c2d12;
  font-weight:700;
}
.orange-officer-mini-stats em{
  font-style:normal;
  font-size:16px;
}
.orange-officer-kpi-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  margin-bottom:18px;
}
.orange-officer-kpi-card{
  background:#fff;
  border:1px solid #ebeef4;
  border-radius:22px;
  padding:22px;
  box-shadow:0 10px 24px rgba(15,23,42,.04);
}
.orange-officer-kpi-card--accent{
  background:linear-gradient(135deg,#fff4eb 0%,#ffffff 100%);
}
.orange-officer-kpi-label{
  display:block;
  color:#667085;
  font-size:13px;
  font-weight:800;
  margin-bottom:10px;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.orange-officer-kpi-value{
  display:block;
  font-size:34px;
  line-height:1;
  font-weight:800;
  color:#101828;
  margin-bottom:10px;
}
.orange-officer-kpi-value span{ color:#f36b21; }
.orange-officer-kpi-card small{
  color:#667085;
  font-size:13px;
}
.orange-officer-panel{
  padding:24px;
  margin-bottom:18px;
}
.orange-officer-panel-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:16px;
}
.orange-officer-panel-head h2{
  margin:0 0 6px;
  font-size:28px;
  line-height:1.1;
}
.orange-officer-panel-head p{
  margin:0;
  color:#667085;
}
.orange-officer-filter-grid{
  display:grid;
  grid-template-columns:1.15fr .9fr 1.1fr auto;
  gap:14px;
  align-items:end;
}
.orange-officer-field-block label{
  display:block;
  margin-bottom:8px;
  font-size:13px;
  font-weight:800;
  color:#344054;
}
.orange-officer-filter-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.orange-officer-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:50px;
  padding:0 18px;
  border-radius:14px;
  text-decoration:none;
  font-weight:800;
  border:1px solid transparent;
  cursor:pointer;
}
.orange-officer-btn--primary{
  background:linear-gradient(135deg,#ff8f46,#f36b21);
  color:#fff;
  box-shadow:0 10px 20px rgba(243,107,33,.22);
}
.orange-officer-btn--soft{
  background:#fff7f2;
  color:#c25112;
  border-color:#f3ceb6;
}
.orange-officer-split-grid{
  display:grid;
  grid-template-columns:minmax(0,2fr) minmax(320px,1fr);
  gap:18px;
}
.orange-officer-company-grid2{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.orange-officer-detail-card{
  background:#f8fafc;
  border:1px solid #eaecf0;
  border-radius:18px;
  padding:18px;
}
.orange-officer-detail-card--wide{ grid-column:span 2; }
.orange-officer-detail-card span{
  display:block;
  margin-bottom:8px;
  color:#667085;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.05em;
  font-weight:800;
}
.orange-officer-detail-card strong,
.orange-officer-detail-card a{
  color:#101828;
  font-size:15px;
  line-height:1.45;
  word-break:break-word;
}
.orange-officer-sidepanel-actions{
  display:grid;
  gap:12px;
  margin-bottom:16px;
}
.orange-officer-sidepanel-note{
  padding:16px;
  border-radius:16px;
  background:#fff7f2;
  border:1px solid #f5d4be;
}
.orange-officer-sidepanel-note strong{
  display:block;
  margin-bottom:6px;
}
.orange-officer-sidepanel-note span{
  color:#7a4b2a;
  line-height:1.5;
}
.orange-officer-result-pill{
  display:inline-flex;
  align-items:center;
  padding:10px 14px;
  border-radius:999px;
  background:#f8fafc;
  border:1px solid #eaecf0;
  font-weight:800;
  color:#344054;
}
.orange-officer-toolbar{
  display:flex;
  justify-content:flex-end;
  margin-bottom:14px;
}
.orange-officer-table-shell{
  overflow:auto;
  border:1px solid #eceff3;
  border-radius:18px;
}
.orange-officer-table2{
  width:100%;
  min-width:1100px;
  border-collapse:separate;
  border-spacing:0;
}
.orange-officer-table2 thead th{
  position:sticky;
  top:0;
  background:#f8fafc;
  color:#475467;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.05em;
  font-weight:800;
  padding:14px 14px;
  border-bottom:1px solid #eceff3;
}
.orange-officer-table2 td{
  padding:14px;
  border-bottom:1px solid #f0f2f5;
  vertical-align:middle;
  background:#fff;
}
.orange-officer-table2 tbody tr:hover td{ background:#fffcfa; }
.orange-col-check{ width:44px; }
.orange-officer-principal-cell strong{
  display:block;
  font-size:15px;
  color:#101828;
}
.orange-officer-principal-cell span{
  display:block;
  margin-top:3px;
  color:#667085;
  font-size:12px;
}
.orange-officer-actionchips{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.orange-officer-actionchips a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:0 10px;
  border-radius:10px;
  background:#fff7f2;
  border:1px solid #f3ceb6;
  color:#c25112;
  text-decoration:none;
  font-size:12px;
  font-weight:800;
}
.orange-officer-empty2{
  text-align:center;
  color:#667085;
  padding:32px 14px !important;
}
@media (max-width: 1100px){
  .orange-officer-kpi-grid,
  .orange-officer-filter-grid,
  .orange-officer-company-grid2,
  .orange-officer-split-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .orange-officer-filter-actions,
  .orange-officer-sidepanel{ grid-column:1 / -1; }
}
@media (max-width: 782px){
  .orange-officer-app{ padding:0 12px 28px; }
  .orange-officer-hero-card,
  .orange-officer-panel{ padding:18px; border-radius:18px; }
  .orange-officer-hero-main,
  .orange-officer-greeting-card,
  .orange-officer-panel-head{
    flex-direction:column;
    align-items:flex-start;
  }
  .orange-officer-kpi-grid,
  .orange-officer-filter-grid,
  .orange-officer-company-grid2,
  .orange-officer-split-grid{
    grid-template-columns:1fr;
  }
  .orange-officer-titleblock h1{ font-size:28px; }
  .orange-officer-detail-card--wide{ grid-column:auto; }
  .orange-officer-btn,
  .orange-officer-badge,
  .orange-officer-ghostbtn{ width:100%; }
}
.orange-officer-flash{
  margin:18px 0;
  padding:14px 16px;
  border-radius:14px;
  font-weight:700;
}
.orange-officer-flash--success{
  background:#ecfdf3;
  color:#166534;
  border:1px solid #bbf7d0;
}
.orange-officer-flash--error{
  background:#fef2f2;
  color:#991b1b;
  border:1px solid #fecaca;
}
.orange-officer-company-create-panel{ margin-top:22px; }
.orange-officer-create-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.orange-officer-field-block--full{ grid-column:1 / -1; }
.orange-officer-company-create-actions{
  margin-top:18px;
  display:flex;
  justify-content:flex-end;
}
@media (max-width: 782px){
  .orange-officer-create-grid{ grid-template-columns:1fr; }
  .orange-officer-field-block--full{ grid-column:auto; }
  .orange-officer-company-create-actions{ justify-content:stretch; }
}
.orange-officer-modal[hidden]{ display:none !important; }
.orange-officer-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:flex-start;
  justify-content:flex-end;
}
.orange-officer-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.45);
  backdrop-filter:blur(3px);
}
.orange-officer-modal__dialog{
  position:relative;
  width:min(760px,100%);
  height:100%;
  overflow:auto;
  margin-left:auto;
  background:#fff;
  box-shadow:-18px 0 40px rgba(15,23,42,.18);
  padding:24px;
  z-index:1;
}
.orange-officer-modal__header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  margin-bottom:18px;
}
.orange-officer-modal__header h2{
  margin:0 0 6px;
  font-size:30px;
  line-height:1.1;
}
.orange-officer-modal__header p{
  margin:0;
  color:#667085;
}
.orange-officer-modal__close{
  width:44px;
  height:44px;
  border-radius:12px;
  border:1px solid #e5e7eb;
  background:#fff;
  color:#344054;
  font-size:28px;
  line-height:1;
  cursor:pointer;
}
.orange-officer-company-create-actions{
  gap:12px;
}
body.orange-officer-modal-open{
  overflow:hidden;
}
@media (max-width:782px){
  .orange-officer-modal{
    align-items:flex-end;
  }
  .orange-officer-modal__dialog{
    width:100%;
    height:auto;
    max-height:92vh;
    border-radius:24px 24px 0 0;
    padding:18px;
  }
  .orange-officer-modal__header h2{
    font-size:24px;
  }
}


.orange-warning-message{background:#fff3cd;border:1px solid #ffe08a;color:#8a6d3b;padding:14px 16px;border-radius:10px;margin:0 0 18px;}
.orange-field-hint{display:block;margin-top:8px;color:#6b7280;font-size:12px;line-height:1.5;}

.orange-form-footer .orange-save-draft-btn,
.orange-form-footer .orange-clear-draft-btn {
    margin-right: 8px;
}
.orange-draft-status {
    display: inline-block;
    margin: 8px 12px 0 0;
    font-size: 13px;
    color: #475569;
    vertical-align: middle;
}

/* Feature 3: full details + dependant image/count previews */
.orange-hr-detail-card-wide{
  width:min(1180px,calc(100vw - 40px));
  max-height:88vh;
  overflow:auto;
}
.orange-detail-grid-3{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.orange-detail-section{
  background:#fff;
  border:1px solid #eef0f4;
  border-radius:14px;
  padding:14px;
}
.orange-detail-section h4{
  margin:0 0 10px;
}
.orange-detail-section p{
  margin:7px 0;
}
.orange-detail-upload-preview{
  margin-top:10px;
}
.orange-detail-health-grid,
.orange-detail-attestation{
  margin-top:16px;
}
.orange-dependant-photo{
  width:44px;
  height:44px;
  object-fit:cover;
  border-radius:999px;
  border:2px solid #fff;
  box-shadow:0 2px 8px rgba(15,23,42,.16);
  background:#f3f4f6;
}
.orange-dependant-photo-large{
  width:96px;
  height:96px;
}
.orange-dependant-photo-link{
  display:inline-flex;
  align-items:center;
}
.orange-dependant-profile-head{
  display:flex;
  align-items:center;
  gap:16px;
  background:#f8fafc;
  border:1px solid #eef2f7;
  border-radius:16px;
  padding:14px;
  margin:12px 0 16px;
}
.orange-dependant-profile-head h4{
  margin:0 0 6px;
}
.orange-dependant-profile-head p{
  margin:4px 0;
}
.orange-hr-dependant-summary{
  display:flex;
  align-items:center;
  gap:10px;
}
.orange-hr-dependant-summary > strong{
  min-width:28px;
  height:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:#fff7ed;
  color:#c2410c;
  font-size:13px;
}
.orange-hr-dependant-avatars{
  display:flex;
  align-items:center;
}
.orange-hr-dependant-avatars img,
.orange-hr-dependant-avatar-fallback,
.orange-hr-dependant-more{
  width:30px;
  height:30px;
  border-radius:999px;
  border:2px solid #fff;
  margin-left:-7px;
  box-shadow:0 1px 5px rgba(15,23,42,.12);
}
.orange-hr-dependant-avatars a:first-child img,
.orange-hr-dependant-avatar-fallback:first-child{
  margin-left:0;
}
.orange-hr-dependant-avatars img{
  object-fit:cover;
  background:#f1f5f9;
}
.orange-hr-dependant-avatar-fallback,
.orange-hr-dependant-more{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#e2e8f0;
  color:#334155;
  font-size:12px;
  font-weight:700;
}
.orange-hr-dependants-table td{
  vertical-align:middle;
}
@media (max-width:900px){
  .orange-detail-grid-3{
    grid-template-columns:1fr;
  }
  .orange-hr-detail-card-wide{
    width:calc(100vw - 20px);
  }
}


/* Feature 4: HR dashboard dependant count parity with enrolment officer dashboard */
.orange-stat-card-dependants strong{
  color:#c2410c;
}
.orange-hr-dependant-count-line{
  display:flex;
  align-items:baseline;
  gap:6px;
  margin-bottom:6px;
  color:#475569;
  font-size:12px;
  white-space:nowrap;
}
.orange-hr-dependant-count-line strong{
  font-size:16px;
  color:#0f172a;
}

/* Feature 6: HR dashboard search */
.orange-hr-search-filter {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.orange-hr-search-filter .orange-hr-search-input {
    min-width: 280px;
    flex: 1 1 320px;
}
.orange-hr-search-filter select {
    min-width: 190px;
}


/* Orange HR: consistent date picker display */
.orange-date-picker-wrap{position:relative;display:block;width:100%;}
.orange-date-picker-wrap .orange-date-picker-only{width:100%;padding-right:44px;cursor:pointer;background:#fff;}
.orange-hidden-native-date{position:absolute;right:12px;top:50%;width:28px;height:28px;opacity:.01;transform:translateY(-50%);border:0;padding:0;margin:0;cursor:pointer;}
.orange-hidden-native-date::-webkit-calendar-picker-indicator{cursor:pointer;}
@media (min-width:721px){.orange-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}.orange-edit-grid label{display:flex;flex-direction:column;gap:8px;}}

/* Orange HR: jQuery UI DOB picker, forced DD-MM-YYYY */
.orange-date-picker-wrap{position:relative;display:block;width:100%;}
.orange-date-picker-wrap:after{content:"📅";position:absolute;right:14px;top:50%;transform:translateY(-50%);font-size:16px;line-height:1;pointer-events:none;opacity:.65;}
.orange-date-picker-wrap .orange-date-picker-only{width:100%;padding-right:48px!important;cursor:pointer;background:#fff;}
#ui-datepicker-div.orange-hr-datepicker,.orange-hr-datepicker{z-index:999999!important;background:#fff;border:1px solid #d9dde3;border-radius:14px;box-shadow:0 18px 45px rgba(15,23,42,.18);padding:12px;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;}
.orange-hr-datepicker .ui-datepicker-header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 4px 10px;}
.orange-hr-datepicker .ui-datepicker-title{display:flex;gap:8px;align-items:center;justify-content:center;font-weight:700;color:#111827;}
.orange-hr-datepicker select{border:1px solid #d1d5db;border-radius:8px;padding:5px 8px;background:#fff;font-size:13px;}
.orange-hr-datepicker .ui-datepicker-prev,.orange-hr-datepicker .ui-datepicker-next{cursor:pointer;border:1px solid #e5e7eb;border-radius:9px;padding:5px 8px;color:#374151;text-decoration:none;}
.orange-hr-datepicker table{width:100%;border-collapse:collapse;font-size:13px;}
.orange-hr-datepicker th{padding:6px;color:#6b7280;font-weight:700;}
.orange-hr-datepicker td{padding:2px;text-align:center;}
.orange-hr-datepicker td a,.orange-hr-datepicker td span{display:block;min-width:30px;padding:7px 8px;border-radius:9px;text-decoration:none;color:#111827;}
.orange-hr-datepicker td a:hover{background:#f3f4f6;}
.orange-hr-datepicker .ui-datepicker-current-day a{background:#f97316;color:#fff;}
.orange-hr-datepicker .ui-state-disabled span{color:#cbd5e1;}

/* Edit upload previews */
.orange-edit-upload-section{
    margin:18px 0;
    padding:16px;
    border:1px solid rgba(15,23,42,.10);
    border-radius:16px;
    background:rgba(248,250,252,.72);
}
.orange-edit-current-file{
    margin:10px 0 14px;
}
.orange-edit-file-preview{
    width:96px;
    height:96px;
    object-fit:cover;
    border-radius:18px;
    border:1px solid rgba(15,23,42,.12);
    display:block;
}


.orange-error-message {
    margin: 12px 0 18px;
    padding: 14px 16px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
    border-radius: 12px;
    font-weight: 600;
}
