/* ============================================================
   Page-specific — dashboard + attendance screens
   ============================================================ */

/* ============ DASHBOARD ============ */
/* The live dashboard is a THREE-column grid whose FIRST ROW is split 50/50:
   Inspiration and Updates & Highlights take half the width each, then
   Approvals · Events · Gallery and Upcoming Holidays · Team Attendance ·
   Leave Summary sit in three equal columns beneath.
   A six-column base is what lets both live in one grid: body blocks span 2
   (= a third), the two `.half` blocks span 3 (= a half). */
.dash{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:20px 22px;padding-top:8px}
.dash > *{grid-column:span 2}
.dash > .half{grid-column:span 3}
/* The two top blocks are a matched pair on the live app — their cards bottom out
   on the same line. Grid already gives the wrappers equal height; this lets the
   shorter card fill it instead of leaving a ragged edge. */
.dash > .half{display:flex;flex-direction:column}
.dash > .half > .card{flex:1}
@media (max-width:1180px){
  /* two columns — and the top pair stays 50/50 */
  .dash > *,
  .dash > .half{grid-column:span 3}
}
@media (max-width:820px){
  .dash > *,
  .dash > .half{grid-column:span 6}
}

.blk-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;min-height:32px}
.blk-title{font-size:15px;font-weight:500}
.pill-count{background:#4096FF;color:#fff;border-radius:3px;font-size:11px;padding:0 5px;margin-left:2px}

.quote{display:flex;gap:16px;padding:18px 18px 6px}
.quote img{width:52px;height:52px;flex:0 0 52px}
.quote p{font-size:14px;line-height:1.5;padding-top:14px}
.likebar{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:10px 18px 12px}
.likebar img{width:22px;height:22px;border-radius:50%}
.like-btn{display:grid;justify-items:center;gap:1px;color:var(--text-3);font-size:9px;padding:2px 4px;border-radius:var(--radius)}
.like-btn:hover{background:var(--hover);color:var(--blue)}
.like-btn svg{width:18px;height:18px}

.empty{display:grid;place-items:center;gap:10px;padding:22px 12px 26px;text-align:center}
.empty img{width:auto}
.empty a{font-size:14px}

.appr-list{max-height:322px;overflow-y:auto;padding:4px 10px 4px 12px}
.appr-row{
  display:flex;align-items:center;gap:12px;height:44px;margin:6px 4px;border:1px solid var(--border);
  border-radius:var(--radius);background:#fff;padding-left:12px;overflow:hidden;width:calc(100% - 8px);
  text-align:left;transition:border-color .15s,box-shadow .15s;
}
.appr-row:hover{border-color:#BAE0FF;box-shadow:0 1px 5px rgba(0,0,0,.06)}
.appr-row .ico{color:var(--text-3);display:flex}
.appr-row .ico svg{width:17px;height:17px}
.appr-row .nm{font-size:14px}
.appr-row .ct{margin-left:auto;width:44px;align-self:stretch;display:grid;place-items:center;font-size:13px}
.appr-row .ct.bump{animation:bump .6s ease}
@keyframes bump{0%,100%{transform:none}30%{transform:scale(1.35)}}

.ev{max-height:322px;overflow-y:auto}
.ev-row{display:flex;gap:12px;padding:12px 14px;border-bottom:1px solid var(--border)}
.ev-row:last-child{border-bottom:0}
.ev-row .av{width:46px;height:46px;border-radius:50%;flex:0 0 46px}
.ev-row .who b{font-size:14px;font-weight:500;display:block}
.ev-row .who small{color:var(--text-3);font-size:12px}
.ev-row .when{margin-left:auto;font-size:12px;color:var(--text-3);white-space:nowrap;padding-left:10px}
.ev-msg{
  display:inline-flex;align-items:center;gap:8px;background:#EAF4FF;color:var(--blue);
  border-radius:var(--radius);font-size:12px;padding:4px 10px;margin-top:8px;
}
.ev-foot{display:flex;align-items:flex-end;gap:10px}
.ev-likes{display:grid;justify-items:center;gap:1px;font-size:9px;color:var(--text-3);margin-left:auto}
.ev-likes .row1{display:flex;align-items:center;gap:4px;font-size:11px;color:var(--text-2)}
.ev-likes .stack{display:flex}
.ev-likes .stack span{
  width:16px;height:16px;border-radius:50%;display:grid;place-items:center;font-size:8px;
  border:1.5px solid #fff;margin-left:-4px;
}
.ev-likes svg{width:18px;height:18px}

.hol-row{display:flex;align-items:center;gap:14px;padding:10px 14px;border-bottom:1px solid var(--border)}
.hol-row:last-child{border-bottom:0}
.hol-date{width:46px;flex:0 0 46px;border-radius:var(--radius);text-align:center;padding:4px 0;line-height:1.15}
.hol-date small{display:block;font-size:11px;color:var(--text-2)}
.hol-date b{display:block;font-size:17px;font-weight:500}
.hol-row .dy{font-size:12px;color:var(--text-3);display:flex;align-items:center;gap:8px;margin-top:2px}
.tag-opt{background:var(--border);color:var(--text-2);font-size:11px;border-radius:var(--radius);padding:1px 6px}

.datefield{width:190px;margin:12px auto 0}
.donut-wrap{display:flex;align-items:center;justify-content:center;gap:26px;padding:8px 12px 20px;flex-wrap:wrap}
.legend{display:grid;gap:9px;font-size:13px}
.legend div{display:flex;align-items:center;gap:8px}
.legend i{width:14px;height:14px;border-radius:50%;flex:0 0 14px}
.rangebar{display:flex;align-items:center;justify-content:center;gap:14px;padding:12px 0 2px;font-size:14px}
.rangebar button{color:var(--text-3);width:22px;height:22px;border-radius:var(--radius)}
.rangebar button:hover{background:var(--hover);color:var(--blue)}

/* ============ MONTHLY ATTENDANCE ============ */
.ma-top{display:flex;align-items:center;gap:16px;padding:10px 16px 0;flex-wrap:wrap}
.view-tabs{display:flex}
.view-tab{width:60px;height:48px;display:grid;place-items:center;color:var(--text-2);border-bottom:2px solid transparent}
.view-tab:hover{color:var(--blue)}
.view-tab.on{color:var(--blue);border-bottom-color:var(--blue);background:linear-gradient(180deg,var(--blue-bg-2),#fff)}
.month-nav{display:flex;align-items:center;gap:10px;margin-left:26px;font-size:15px;white-space:nowrap}
.month-nav button{color:var(--text-2);width:24px;height:24px;border-radius:var(--radius)}
.month-nav button:hover{background:var(--hover);color:var(--blue)}
.ma-right{margin-left:auto;display:flex;align-items:center;gap:14px}
.ma-right .select{min-width:230px}

.cal{table-layout:fixed;margin-top:14px}
.cal th{
  background:#fff;text-transform:none;font-size:14px;font-weight:500;text-align:center;height:44px;
  padding:0;border:1px solid var(--border);color:var(--text);
}
.cal td{
  border:1px solid var(--border);height:114px;vertical-align:top;padding:8px 8px 6px;background:#fff;
  white-space:normal;position:relative;cursor:pointer;
}
.cal td:hover:not(.mute){background:#FCFDFF}
.cal td.mute{background:#EDEDED;cursor:default}
.cal td.sel{box-shadow:inset 0 0 0 2px var(--blue);z-index:1}
.cal td.sel .dnum{visibility:hidden}
.cal td.sel::before{
  content:attr(data-day);position:absolute;top:-11px;left:-11px;width:23px;height:23px;border-radius:50%;
  background:var(--blue);color:#fff;font-size:12px;display:grid;place-items:center;z-index:2;
}
.cal .dnum{font-size:14px;display:flex;align-items:center;gap:6px}
.cal .dnum .up{color:var(--green);font-size:12px}
.cal .cell-chip{display:block;text-align:center;font-size:11.2px;border-radius:2px;padding:3px 4px;margin-top:8px}
.cc-present{background:var(--present-bg);border:1px solid var(--present)}
.cc-absent{background:var(--absent-bg);border:1px solid var(--absent)}
.cc-off{background:var(--nonworking-bg);border:1px solid var(--nonworking)}
.cc-holiday{background:var(--holiday-bg);border:1px solid var(--holiday-bd);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cc-pending{background:var(--pending-corr-bg);border:1px dashed var(--blue)}
.cal .times{font-size:12px;color:var(--text-2);text-align:center;margin-top:8px}
.cal .times.corrected{color:var(--blue);font-weight:500}

.cal-legend{display:flex;align-items:center;gap:30px;padding:14px 16px;border-top:1px solid var(--border);flex-wrap:wrap}
.cal-legend.top{border-top:0;border-bottom:1px solid var(--border);gap:16px}
.lg{display:flex;align-items:center;font-size:12px}
.lg i{width:4px;height:20px;border-radius:2px 0 0 2px;flex:0 0 4px}
.lg span{padding:2px 10px;border-radius:0 2px 2px 0}
.lg-divider{width:1px;height:22px;background:var(--border-input)}

.rail{display:flex;flex-direction:column;gap:14px}
.statpills{
  display:flex;align-items:center;gap:5px;background:#fff;border:1px solid var(--border-2);
  border-radius:var(--radius);padding:7px 9px;flex-wrap:wrap;
}
.statpills .reset{width:22px;height:22px;border-radius:50%;background:#FFC9C9;color:#fff;display:grid;place-items:center;font-size:12px}
.statpills .divi{width:1px;height:16px;background:#E8E8E8}
.sp{
  min-width:28px;height:22px;border-radius:var(--radius);color:#fff;font-size:12px;font-weight:500;
  display:grid;place-items:center;padding:0 6px;position:relative;
}
.sp[data-tip]:hover::after{
  content:attr(data-tip);position:absolute;top:126%;left:50%;transform:translateX(-50%);
  background:#4A4A4A;color:#fff;font-size:11px;font-weight:400;padding:4px 8px;border-radius:var(--radius);
  white-space:nowrap;z-index:5;pointer-events:none;
}

.detail{padding:16px;position:relative}
.detail h4{text-align:center;font-size:17px;font-weight:500;margin-bottom:14px}
.dl{display:grid;grid-template-columns:1fr 1fr}
.dl .k{display:flex;align-items:center;gap:10px;color:var(--text-3);font-size:14px;padding:7px 0}
.dl .k i{width:3px;height:18px;border-radius:2px;flex:0 0 3px}
.dl .v{font-size:14px;padding:7px 0;display:flex;align-items:center;gap:6px}
.dl .v.corrected{color:var(--blue);font-weight:500}
.detail-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0 4px;position:relative}
.punch h5{text-align:center;font-size:15px;font-weight:500;padding:14px 0 2px;border-top:1px solid var(--border);margin-top:14px}
.punch th,.punch td{text-align:center;padding:8px;height:auto;white-space:nowrap}
.punch th{padding:10px 8px;padding-left:8px}
.punch td{padding-left:8px}

/* status timeline inside detail / request drawer */
.timeline{display:grid;gap:0;margin-top:6px}
.tl-step{display:flex;gap:12px;font-size:13px}
.tl-step .mark{display:grid;justify-items:center;flex:0 0 18px}
.tl-step .bead{width:12px;height:12px;border-radius:50%;background:#D9D9D9;margin-top:4px}
.tl-step .bar{width:2px;flex:1;background:var(--border);min-height:22px}
.tl-step:last-child .bar{display:none}
.tl-step.done .bead{background:var(--green)}
.tl-step.rej .bead{background:var(--red)}
.tl-step.cur .bead{background:var(--amber);box-shadow:0 0 0 4px rgba(250,173,20,.18)}
.tl-step .txt b{display:block;font-weight:500}
.tl-step .txt small{color:var(--text-3)}

/* ---- Dashboard, re-captured 21-Aug-2026 ---- */
/* the approval label is plain dark text in the real app, never a link */
a.appr-row .nm,a.appr-row:link .nm,a.appr-row:visited .nm,a.appr-row:hover .nm{
  color:var(--text);font-weight:400;text-decoration:none}
/* two overlapping avatars on the Inspiration like bar */
.av-stack{display:inline-flex}
.av-stack img{width:22px;height:22px;border-radius:50%;border:2px solid #fff}
.av-stack img+img{margin-left:-9px}
/* Updates & Highlights content row */
.hl-row{display:flex;gap:14px;padding:16px 18px}
.hl-ic{width:42px;height:42px;border-radius:50%;background:#FFF7DB;color:#D48806;
       display:grid;place-items:center;flex:0 0 auto}
.hl-row b{display:block;font-size:14.5px;margin-bottom:4px}
.hl-row p{margin:0;font-size:13px;color:var(--text-2);line-height:1.5;
          display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* rows whose phase has not shipped yet — dimmed, never hidden.
   (the modifier is `is-soon`; plain `.soon` is the coming-soon PAGE in modules.css) */
.appr-row.is-soon{opacity:.72}
.appr-row.is-soon .nm{color:var(--text-2)}
