/* --- List/Grid view switch: reuse styles from Departments --- */
.view-switch .viewbtn{
  width:38px;height:38px;border:1px solid #dbe2ef;border-radius:10px;background:#fff;color:#1f2a44;cursor:pointer;
}
.view-switch .viewbtn.is-active{
  background:#3b82f6;color:#fff;border-color:#0C3DF4;box-shadow:0 0 0 3px rgba(12,61,244,.12);
}

/* --- Table view (like Departments) --- */
.hrjtek-table{ border-collapse:separate;border-spacing:0;background:#fff;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden; }
.hrjtek-table thead th{ background:#f8fafc;padding:10px 12px;font-weight:600;color:#334155;border-bottom:1px solid #e5e7eb; }
.hrjtek-table tbody td{ padding:12px;border-bottom:1px solid #f1f5f9;color:#1f2a44; }
.hrjtek-table tbody tr:last-child td{ border-bottom:none; }

/* --- Grid cards --- */
.annc-grid{ display:grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap:12px; }
.annc-card{ background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:14px; }
.annc-card .row-top{ display:flex;align-items:center;justify-content:space-between;margin-bottom:6px; }
.annc-title{ font-weight:600;margin-bottom:6px; }
.annc-excerpt{ color:#6b7280;margin-bottom:6px; }
.annc-meta-btm{ display:flex;gap:10px;flex-wrap:wrap;font-size:12px;color:#6b7280; }

/* --- Pager (departments look) --- */
.annc-footer{display:flex;align-items:center;justify-content:space-between;margin-top:10px;margin-bottom:15px}
.annc-results{color:#5f6b86;font-size:14px}
.annc-pagination{display:flex;align-items:center;gap:10px}
.pager-btn{
  display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 12px;border-radius:10px;
  border:1px solid #dbe2ef;background:#fff;color:#1f2a44;cursor:pointer;
}
.pager-btn:disabled{opacity:.5;cursor:not-allowed}
.pager-btn--prev::before,
.pager-btn--next::after{
  content:'';display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;
  border:1px solid #dbe2ef;background:#fff;color:#1f2a44;font-weight:700;font-size:14px;
}
.pager-btn--prev::before{ content:'‹'; }
.pager-btn--next::after{ content:'›'; }

.annc-pages{display:flex;gap:6px}
.annc-pagebtn{
  min-width:36px;height:36px;border:1px solid #dbe2ef;border-radius:10px;background:#fff;color:#2b3448;padding:0 10px;cursor:pointer;
}
.annc-pagebtn:hover{ background:#3b82f6;color:#fff;border-color:#0C3DF4; }
.annc-pagebtn.is-active{
  background:#3b82f6;color:#fff;border-color:#0C3DF4;box-shadow:0 0 0 3px rgba(12,61,244,.12);
}

/* --- Drawer layout: pin actions, side-by-side audience controls --- */
.hrjtek-drawer{ position:fixed; top:0; right:-420px; width:400px; height:100vh; background:#fff; box-shadow:-12px 0 30px rgba(0,0,0,.08); z-index:9998; display:flex; flex-direction:column; transition:right .25s ease; }
.hrjtek-drawer.open{ right:0; }
.hrjtek-drawer-backdrop{ position:fixed; inset:0; background:rgba(0,0,0,.25); z-index:9997; }

#hrjtek-annc-form.drawer-body{ flex:1 1 auto; min-height:0; overflow:auto; padding-bottom:0; }
#hrjtek-annc-form .drawer-actions{
  position:sticky; bottom:0; background:#fff; padding:10px 14px; margin-top:12px; border-top:1px solid #e5e7eb;
  display:flex; gap:10px; justify-content:flex-end;
}

.hrjtek-annc-grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; align-items:start; }
@media (max-width:860px){ .hrjtek-annc-grid{ grid-template-columns:1fr; } }

#hrjtek-annc-select{ width:100%; min-height:220px; max-height:240px; padding:6px; }
.hint{ color:#6b7280; font-size:12px; display:block; margin-top:6px; }
.hrjtek-chips{ display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.hrjtek-chip--pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px; border-radius:9999px; font-size:12px;
  background:#eef2ff; color:#374151; border:1px solid #e5e7eb;
  width:auto !important;           /* prevent 100% width take-over by theme */
  flex:0 0 auto;                   /* don’t grow */
  max-width:100%;                  /* allow wrapping to next row, not multi-line */
  white-space:nowrap;              /* single line inside the pill */
}
.hrjtek-chip--pill .pill-label{
  display:block;
  max-width: 240px;                /* tweak per your drawer width */
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.hrjtek-chip--pill .chip-x{
    border:0; background:transparent; cursor:pointer; line-height:1;
  width:18px; height:18px; display:grid; place-items:center; padding:0;
  color:#1f2a44;
 }
.hrjtek-chip--pill .chip-x:hover{ color:#0C3DF4; }
.hrjtek-chips{  display:flex; flex-wrap:wrap; gap:8px; align-items:center; }

/* Drawer title with icon */
body.hrjtek-portal #hrjtek-annc-drawer .drawer-head h4{
  display:flex; align-items:center; gap:8px;
}
body.hrjtek-portal #hrjtek-annc-drawer .drawer-head h4 .dashicons{
  color:#2563EB; font-size:18px; line-height:1;
}


/* --- Primary button style (match Departments) --- */
.hrjtek-panel .btn.primary{
  display:inline-flex;align-items:center;gap:.45rem;border:0;border-radius:10px;
  padding:.55rem .9rem;font-weight:600;font-size:14px;cursor:pointer;
  background:#e9eef5;color:#1b2b41;transition:transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  box-shadow:0 4px 10px rgba(11,99,206,.22);
}
.hrjtek-panel .btn.primary:hover,
.hrjtek-panel .btn.primary:focus{
  background:linear-gradient(90deg,#0b63ce 0%,#0a7dff 100%); color:#fff;
}

/* ---- Kill Astra’s yellow button styling inside the portal only ---- */
body.hrjtek-portal .hrjtek-panel button.btn,
body.hrjtek-portal .hrjtek-panel .btn,
body.hrjtek-portal .hrjtek-panel .btn.primary,
body.hrjtek-portal .view-switch .viewbtn,
body.hrjtek-portal .pager-btn,
body.hrjtek-portal .btn-icon {
  border: 1px solid #dbe2ef !important;
  background: #fff !important;
  color: #1f2a44 !important;
  padding: .55rem .9rem !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
}

/* Primary button (Add New Announcement) — same as Departments */
body.hrjtek-portal .hrjtek-panel .btn.primary {
  background: #e9eef5 !important;
  color: #1b2b41 !important;
  box-shadow: 0 4px 10px rgba(11,99,206,.22) !important;
}
body.hrjtek-portal .hrjtek-panel .btn.primary:hover,
body.hrjtek-portal .hrjtek-panel .btn.primary:focus {
  background: linear-gradient(90deg,#0b63ce 0%, #0a7dff 100%) !important;
  color: #fff !important;
  
}

/* Neutral buttons (Remove, pager, view-switch) — match Departments hover/active */
body.hrjtek-portal .hrjtek-panel .btn:hover,
body.hrjtek-portal .view-switch .viewbtn:hover,
body.hrjtek-portal .pager-btn:hover,
body.hrjtek-portal .annc-pagebtn:hover {
  background: #3b82f6 !important;
  color: #fff !important;
  border-color: #0C3DF4 !important;
}

body.hrjtek-portal .view-switch .viewbtn.is-active,
body.hrjtek-portal .annc-pagebtn.is-active {
  background:#3b82f6 !important;
  color:#fff !important;
  border-color:#0C3DF4 !important;
  box-shadow:0 0 0 3px rgba(12,61,244,.12) !important;
}

/* ----- Drawer (slide-in) ----- */
:root { --hrjtek-annc-drawer-w: 560px; } /* tweak width if you like */

body.hrjtek-portal #hrjtek-annc-drawer{
  position: fixed; top: 0; right: 0;
  width: var(--hrjtek-annc-drawer-w); height: 100vh;
  background: #fff; box-shadow: -12px 0 30px rgba(0,0,0,.08);
  z-index: 9998; display: flex; flex-direction: column;
  padding:20px;
  /* closed state */
  transform: translateX(100%);
  transition: transform .28s ease;
  will-change: transform;
}
body.hrjtek-portal #hrjtek-annc-drawer.open{ transform: translateX(0); }

body.hrjtek-portal #hrjtek-annc-backdrop{
  position: fixed; inset: 0; background: rgba(0,0,0,.25); z-index: 9997;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
body.hrjtek-portal #hrjtek-annc-drawer.open + #hrjtek-annc-backdrop{
  opacity: 1; pointer-events: auto;
}

/* Honor [hidden] no matter what */
#hrjtek-annc-drawer[hidden], #hrjtek-annc-backdrop[hidden]{ display: none !important; }

/* Admin bar offset */
.admin-bar body.hrjtek-portal #hrjtek-annc-drawer{ top:32px; height: calc(100vh - 32px); }
@media (max-width:782px){
  .admin-bar body.hrjtek-portal #hrjtek-annc-drawer{ top:46px; height: calc(100vh - 46px); }
}

/* Drawer header */
body.hrjtek-portal #hrjtek-annc-drawer .drawer-head{
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 14px 16px; background:#fff; border-bottom:1px solid #e5e7eb;
}
body.hrjtek-portal #hrjtek-annc-drawer .drawer-head h4{
  margin:0; font-size:16px; font-weight:600; color:#111827;
  min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

/* Close button (neutralize Astra + blue hover) */
body.hrjtek-portal #hrjtek-annc-close{
  background: transparent !important; border: 1px solid #dbe2ef !important; color:#2563EB !important;
  width:36px !important; height:36px !important; padding:0 !important; border-radius:10px !important;
  display:grid; place-items:center; line-height:1 !important; box-shadow:none !important; cursor:pointer;
}
body.hrjtek-portal #hrjtek-annc-close:hover{ background:#eaf2ff !important; border-color:#0C3DF4 !important; color:#0C3DF4 !important; }

/* Drawer body + sticky actions row */
#hrjtek-annc-form.drawer-body{ flex:1 1 auto; min-height:0; overflow:auto; padding-bottom:0; }
#hrjtek-annc-form .drawer-actions{
  position: sticky; bottom: 0; background: #fff; padding: 10px 14px; margin-top: 12px;
  border-top: 1px solid #e5e7eb; display: flex; gap: 10px; justify-content: flex-end;
}

/* Audience controls side-by-side */
.hrjtek-annc-grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; align-items:start; }
@media (max-width:860px){ .hrjtek-annc-grid{ grid-template-columns:1fr; } }
#hrjtek-annc-select{ width:100%; min-height:220px; max-height:240px; padding:6px; }
.hint{ color:#6b7280; font-size:12px; display:block; margin-top:6px; }
.hrjtek-chips{ display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.hrjtek-chip--pill{ display:inline-flex; align-items:center; gap:6px; padding:6px 10px; border-radius:9999px; font-size:12px; background:#eef2ff; color:#374151; border:1px solid #e5e7eb; }
.hrjtek-chip--pill .chip-x{ border:0; background:transparent; cursor:pointer; line-height:1; font-size:14px; transform:translateY(-1px); }

/* Stop Astra's yellow hover on portal pages */
body.hrjtek-portal button,
body.hrjtek-portal .button,
body.hrjtek-portal input[type="button"],
body.hrjtek-portal input[type="submit"]{
  background:#fff !important;
  color:#1f2a44 !important;
  border:1px solid #dbe2ef !important;
  border-radius:10px !important;
  /* padding:.55rem .9rem !important; */
  box-shadow:none !important;
}

/* Unified hover (same palette as Departments) */
body.hrjtek-portal button:hover,
body.hrjtek-portal button:focus,
body.hrjtek-portal .button:hover,
body.hrjtek-portal .button:focus,
body.hrjtek-portal input[type="button"]:hover,
body.hrjtek-portal input[type="button"]:focus,
body.hrjtek-portal input[type="submit"]:hover,
body.hrjtek-portal input[type="submit"]:focus{
  background: linear-gradient(90deg, #0b63ce 0%, #0a7dff 100%) !important;
  border-color:#0C3DF4 !important;
  color:#fff !important;
}

/* Keep your view-switch, pager, etc., consistent */
body.hrjtek-portal .view-switch .viewbtn:hover,
body.hrjtek-portal .pager-btn:hover,
body.hrjtek-portal .annc-pagebtn:hover{
  background: linear-gradient(90deg, #0b63ce 0%, #0a7dff 100%) !important;
  border-color:#0C3DF4 !important;
  color:#fff !important;
}
span#hrjtek-annc-select-label {
    color: #111827;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
}
select#hrjtek-annc-audience {
    color: #111827;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
}
.view-switch .viewbtn.is-active .dashicons {
    color: #fff;
}
span.dashicons.dashicons-grid-view:hover {
    color: #fff;
}


/* ===== Card list (list view only) ===== */
.annc-selectbar{
  display:flex; align-items:center; gap:8px; margin:4px 0 10px;
  color:#6b7280; font-size:14px;
}
.annc-list{ display:flex; flex-direction:column; gap:12px; }
.annc-item{
  display:grid; grid-template-columns: 136px 1fr auto; align-items:center; gap:18px;
  padding:16px 18px; border:1px solid #e5e7eb; border-radius:16px; background:#fff;
  box-shadow: 0 2px 6px rgba(15,23,42,.03);
}
@media (max-width:900px){
  .annc-item{ grid-template-columns: 120px 1fr; }
  .annc-item .annc-act{ grid-column: 2 / -1; justify-content:flex-end; }
}

/* Date box (left) */
.datebox{
  width:120px; height:120px; border-radius:22px;
  background: linear-gradient(135deg, #e7f0ff 0%, #cfe2ff 100%);
  display:flex; align-items:center; justify-content:center;
}
.datebox .dwrap{ line-height:1.04; font-weight:800; color: #0c3df4; }
/* .datebox .m{ font-size:20px; } */
.datebox .dy{ font-size:28px; }
.datebox .day{ font-size:28px; }
.datebox .yr{ font-weight:700; }

/* Middle content */
.annc-main{ min-width:0; }
.annc-mini{
  display:flex; align-items:center; gap:8px;
  color:#334155; font-weight:600; font-size:14px; margin-bottom:6px;
}
.annc-mini .dot{ width:8px; height:8px; border-radius:50%; background:#2563EB; display:inline-block; }
.annc-title{ margin:0 0 6px; font-size:22px; line-height:1.2; color:#0f172a; }
.annc-excerpt{ color:#6b7280; }

/* Right actions */
.annc-act{ display:flex; align-items:center; gap:10px; }
.annc-act .btn-icon{
  width:38px; height:38px; display:grid; place-items:center; border:1px solid #dbe2ef; border-radius:10px; background:#fff; color:#1f2a44;
}
.annc-act .btn-icon:hover{ background:#3b82f6; color:#fff; border-color:#0C3DF4; }

/* === Card hover animations (list & grid) ======================= */
:root{
  --card-scale: 1.012;                 /* tweak 1.008–1.02 */
  --card-ring:  0 0 0 3px rgba(12,61,244,.10);
  --card-shadow: 0 10px 24px rgba(15,23,42,.10);
}

/* base transitions */
.annc-item,
.annc-card{
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  will-change: transform;
}

/* 1) Recommended: lift + micro-zoom */
.annc-item:hover,
.annc-item:focus-within,
.annc-card:hover,
.annc-card:focus-within{
  transform: translateY(-2px) scale(var(--card-scale));
  box-shadow: var(--card-shadow), var(--card-ring);
  border-color: #0C3DF4; /* subtle brand ring */
}

/* Optional: press feedback when clicking */
.annc-item:active,
.annc-card:active{
  transform: translateY(0) scale(.996);
  box-shadow: 0 4px 12px rgba(15,23,42,.10);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce){
  .annc-item,
  .annc-card{
    transition: none;
  }
}


/* ================== Improved GRID card (job-card style) ================== */
.annc-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
}

/* Card shell */
.annc-card{
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(15,23,42,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  will-change: transform;
}
.annc-card:hover,
.annc-card:focus-within{
  transform: translateY(-2px) scale(1.012);
  box-shadow: 0 10px 24px rgba(15,23,42,.10), 0 0 0 3px rgba(12,61,244,.06);
  border-color: #0C3DF4;
}

/* Header: brand left, badge right */
.annc-head{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.brand{ display:flex; align-items:center; gap:12px; }
.brand-avatar{
  width:48px; height:48px; border-radius:14px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, #e9f1ff 0%, #d6e6ff 100%);
  color:#0f172a;
}
.brand-avatar .dashicons{ font-size:24px; line-height:1; }
.brand-text .brand-title{ font-weight:700; color:#0f172a; }
.brand-text .brand-sub{ font-size:13px; color:#6b7280; }

/* Audience badge (like "Verified Company" pill) */
.badge{
  display:inline-flex; align-items:center; gap:8px;
  border:1px solid #e5e7eb; background:#fff;
  color:#0f172a; font-weight:600; font-size:13px;
  padding:6px 12px; border-radius:999px;
  white-space:nowrap;
}

/* Divider */
.annc-sep{ height:1px; background:#eef2f7; margin:14px 0; }

/* Title */
.annc-card .annc-title{
  margin:0 0 10px; font-size:20px; line-height:1.25; color:#0f172a; font-weight:700;
}

/* Meta row (audience + posted by) */
.annc-meta-row{
  display:flex; flex-wrap:wrap; gap:18px; margin-bottom:10px;
  color:#1f2a44; font-weight:600; font-size:14px;
}
.annc-meta-row .meta-item{ display:inline-flex; align-items:center; gap:8px; }
.annc-meta-row .dashicons{ font-size:16px; line-height:1; color:#0f172a; }

/* Description */
.annc-card .annc-excerpt{ color:#606b85; margin:0 0 14px; }

/* Footer layout */
.annc-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;   /* date left, audience right */
  gap:12px;
  margin-top:auto;
}
.annc-foot .foot-left{ display:flex; align-items:center; gap:10px; }
.annc-foot .foot-right{ display:flex; align-items:center; }
.annc-foot .date{ font-size:16px; align-items:center; gap:8px; color:#0f172a; font-weight:700; }
.annc-foot .date .dashicons{ font-size:16px; }

/* Audience pill */
.badge{
  display:inline-flex; align-items:center;
  border:1px solid #e5e7eb; background:#fff; color:#0f172a;
  font-weight:600; font-size:13px; padding:6px 12px; border-radius:999px;
}

@media (max-width: 640px){
  /* stacks nicely on narrow screens */
  .annc-foot{ flex-wrap:wrap; gap:8px; }
  .annc-foot .foot-right{ margin-left:auto; }
}

/* Actions on the right */
.annc-foot .foot-actions{ display:inline-flex; align-items:center; gap:8px; }
.annc-foot .btn-icon{
  width:38px; height:38px; display:grid; place-items:center;
  border:1px solid #dbe2ef; border-radius:10px; background:#fff; color:#1f2a44;
}
.annc-foot .btn-icon:hover{
  background:#3b82f6; color:#fff; border-color:#0C3DF4;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .annc-card{ transition:none; }
}

/* Top-right actions inside the grid card header */
.annc-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.card-actions{ display:inline-flex; align-items:center; gap:8px; }
.card-actions .btn-icon{
  width:38px; height:38px; display:grid; place-items:center;
  border:1px solid #dbe2ef; border-radius:10px; background:#fff; color:#1f2a44;
}
.card-actions .btn-icon:hover{ background:#3b82f6; color:#fff; border-color:#0C3DF4; }

/* Footer left cluster: date + audience pill */
.annc-foot{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:auto; }
.annc-foot .foot-left{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.annc-foot .date{ display:inline-flex; align-items:center; gap:8px; color:#0f172a; font-weight:700; }
.annc-foot .date .dashicons{ font-size:16px; }

/* Pill (Audience) reused at bottom */
.badge{
  display:inline-flex; align-items:center;
  border:1px solid #e5e7eb; background:#fff; color:#0f172a;
  font-weight:600; font-size:13px; padding:6px 12px; border-radius:999px;
}
.annc-card .annc-excerpt {
   font-size: 16px;
   line-height: 24px;
}
/* Select bar (shared by list & grid) already exists; nothing else needed */

