/* Aakilarose Task Manager — scoped styles */
#tm-root{
  --green:#0e3f2f;--green-2:#13513c;--gold:#c9a227;--gold-soft:#e7c65a;
  --paper:#f5f3ec;--card:#fff;--ink:#1c241f;--muted:#6b756e;--line:#e4e0d6;
  --ok:#1f8a4c;--warn:#c9831f;--plan:#5b6b9a;--danger:#b3261e;--info:#0A66C2;
  font-family:'Montserrat',system-ui,-apple-system,sans-serif;color:var(--ink);
  background:radial-gradient(1100px 460px at 92% -10%, rgba(201,162,39,.10), transparent 60%),var(--paper);
  border-radius:18px;overflow:hidden;display:block;
}
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');
#tm-root *{box-sizing:border-box}
#tm-root button{font-family:inherit;cursor:pointer}
#tm-root a{color:inherit}
#tm-root input,#tm-root select,#tm-root textarea{font-family:inherit}
#tm-root .hidden{display:none!important}

#tm-root .tm-topbar{background:linear-gradient(120deg,var(--green),var(--green-2));color:#fff;border-bottom:3px solid var(--gold)}
#tm-root .tin{padding:13px 18px;display:flex;align-items:center;gap:14px;flex-wrap:wrap}
#tm-root .mark{width:40px;height:40px;border-radius:11px;background:radial-gradient(circle at 30% 25%,var(--gold-soft),var(--gold));color:var(--green);display:grid;place-items:center;font-weight:800;font-size:17px;box-shadow:0 4px 14px rgba(0,0,0,.25)}
#tm-root .brand h1{font-size:16px;margin:0;font-weight:800;color:#fff}
#tm-root .brand p{margin:1px 0 0;font-size:11px;color:rgba(255,255,255,.7)}
#tm-root .spacer{flex:1}
#tm-root .uchip{display:flex;align-items:center;gap:9px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);padding:6px 8px 6px 12px;border-radius:999px;font-size:13px;font-weight:600;color:#fff}
#tm-root .uchip .av{width:26px;height:26px;border-radius:50%;background:var(--gold);color:var(--green);display:grid;place-items:center;font-weight:800;font-size:12px}
#tm-root .uchip .role{font-size:10.5px;color:var(--gold-soft);font-weight:700}
#tm-root .btn-out{background:rgba(255,255,255,.14);color:#fff;border:1px solid rgba(255,255,255,.25);padding:7px 12px;border-radius:9px;font-weight:700;font-size:12px}
#tm-root .btn-out:hover{background:rgba(255,255,255,.25)}

#tm-root .shell{display:flex;gap:18px;padding:18px}
#tm-root .nav{flex:0 0 210px}
#tm-root .nav .box{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:8px;position:sticky;top:14px}
#tm-root .nav button{width:100%;text-align:left;background:none;border:none;padding:11px 13px;border-radius:11px;font-weight:600;font-size:13.5px;color:var(--ink);display:flex;align-items:center;gap:10px;margin-bottom:2px}
#tm-root .nav button .ic{width:18px;text-align:center;opacity:.8}
#tm-root .nav button:hover{background:#f3eee2}
#tm-root .nav button.on{background:var(--green);color:#fff}
#tm-root .main{flex:1;min-width:0}
@media(max-width:880px){#tm-root .shell{flex-direction:column}#tm-root .nav{flex:auto}#tm-root .nav .box{position:static;display:flex;gap:6px;overflow-x:auto}#tm-root .nav button{white-space:nowrap;margin:0}}

#tm-root h2.view{font-size:20px;margin:2px 0 4px;color:var(--green);font-weight:800}
#tm-root .sub{color:var(--muted);font-size:13px;margin:0 0 16px}
#tm-root .row{display:flex;gap:14px;flex-wrap:wrap}
#tm-root .card{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:16px}
#tm-root .grid-stats{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
#tm-root .stat{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:14px;border-top:4px solid var(--green)}
#tm-root .stat .v{font-size:25px;font-weight:800;color:var(--green);line-height:1}
#tm-root .stat .l{font-size:11px;color:var(--muted);margin-top:5px;font-weight:600;text-transform:uppercase;letter-spacing:.4px}
#tm-root .stat.g{border-top-color:var(--gold)}#tm-root .stat.g .v{color:#9a7c10}
#tm-root .stat.r{border-top-color:var(--danger)}#tm-root .stat.r .v{color:var(--danger)}
#tm-root .stat.b{border-top-color:var(--info)}#tm-root .stat.b .v{color:var(--info)}

#tm-root label.fl{font-size:11px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.5px;display:block;margin-bottom:5px}
#tm-root .inp,#tm-root select.inp,#tm-root textarea.inp{width:100%;border:1.5px solid var(--line);border-radius:10px;padding:10px 12px;font-size:14px;background:#fff;color:var(--ink)}
#tm-root textarea.inp{min-height:64px;resize:vertical;line-height:1.5}
#tm-root .inp:focus,#tm-root select.inp:focus,#tm-root textarea.inp:focus{outline:none;border-color:var(--gold);box-shadow:0 0 0 3px rgba(201,162,39,.18)}
#tm-root .ff{margin-bottom:13px}
#tm-root .two{display:grid;grid-template-columns:1fr 1fr;gap:13px}
@media(max-width:640px){#tm-root .two{grid-template-columns:1fr}}

#tm-root .btn{background:var(--green);color:#fff;border:none;padding:11px 18px;border-radius:11px;font-weight:700;font-size:13.5px}
#tm-root .btn:hover{background:var(--green-2)}#tm-root .btn:disabled{opacity:.5;cursor:not-allowed}
#tm-root .btn-g{background:var(--gold);color:var(--green);border:none;padding:11px 18px;border-radius:11px;font-weight:700;font-size:13.5px}
#tm-root .btn-g:hover{background:var(--gold-soft)}
#tm-root .btn-sm{padding:7px 12px;font-size:12px;border-radius:9px}
#tm-root .btn-ghost{background:#fff;border:1.5px solid var(--line);color:var(--green);padding:9px 13px;border-radius:10px;font-weight:700;font-size:12.5px}
#tm-root .btn-ghost:hover{border-color:var(--gold)}
#tm-root .btn-red{background:#fff;border:1.5px solid var(--danger);color:var(--danger)}
#tm-root .btn-red:hover{background:var(--danger);color:#fff}

#tm-root table{width:100%;border-collapse:collapse;font-size:12.8px}
#tm-root .tw{background:var(--card);border:1px solid var(--line);border-radius:14px;overflow:auto}
#tm-root thead th{background:var(--green);color:#fff;text-align:left;padding:10px 11px;font-size:11px;text-transform:uppercase;letter-spacing:.4px;white-space:nowrap}
#tm-root tbody td{padding:10px 11px;border-top:1px solid var(--line);vertical-align:top}
#tm-root tbody tr:hover{background:#faf8f2}
#tm-root .pdot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:6px;vertical-align:middle}
#tm-root .tag{font-size:10.5px;font-weight:700;border-radius:999px;padding:2px 9px;display:inline-block;white-space:nowrap}
#tm-root .t-Assigned{background:rgba(91,107,154,.16);color:var(--plan)}
#tm-root .t-InProgress{background:rgba(201,131,31,.18);color:var(--warn)}
#tm-root .t-Completed{background:rgba(31,138,76,.16);color:var(--ok)}
#tm-root .t-Review{background:rgba(10,102,194,.14);color:var(--info)}
#tm-root .pri-High{color:var(--danger);font-weight:700}#tm-root .pri-Medium{color:var(--warn);font-weight:700}#tm-root .pri-Low{color:var(--muted)}
#tm-root .live{font-variant-numeric:tabular-nums;font-weight:700}

#tm-root .pills{display:flex;gap:7px;flex-wrap:wrap}
#tm-root .pill{border:1.5px solid var(--line);background:#fff;border-radius:999px;padding:7px 13px;font-size:12.5px;font-weight:600;color:var(--muted)}
#tm-root .pill[aria-pressed=true]{background:var(--green);border-color:var(--green);color:#fff}

#tm-root .chip{display:inline-block;background:#eee;border-radius:7px;padding:2px 8px;font-size:11px;font-weight:600;margin:2px 4px 2px 0}
#tm-root .empty{text-align:center;color:var(--muted);padding:28px;border:1.5px dashed var(--line);border-radius:14px;font-size:13.5px;background:rgba(255,255,255,.5)}
#tm-root .seo-box{background:#f7f4ea;border:1px dashed var(--line);border-radius:10px;padding:10px 12px;font-size:11.5px;margin-top:6px;color:var(--muted)}
#tm-root .seo-box b{color:var(--green)}

#tm-root .tm-toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%) translateY(20px);background:var(--green);color:#fff;padding:12px 20px;border-radius:12px;font-size:13.5px;font-weight:600;box-shadow:0 10px 30px rgba(0,0,0,.25);opacity:0;pointer-events:none;transition:.25s;z-index:99999;border:1px solid var(--gold)}
#tm-root .tm-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
#tm-root .loading{display:flex;align-items:center;justify-content:center;gap:10px;color:var(--muted);padding:26px;font-size:13.5px}
#tm-root .spin{width:18px;height:18px;border:3px solid var(--line);border-top-color:var(--gold);border-radius:50%;animation:tmsp .7s linear infinite}
@keyframes tmsp{to{transform:rotate(360deg)}}

#tm-root .mbg{position:fixed;inset:0;background:rgba(14,63,47,.45);backdrop-filter:blur(2px);display:none;place-items:center;z-index:99998;padding:16px;overflow:auto}
#tm-root .mbg.show{display:grid}
#tm-root .modal{background:#fff;border-radius:18px;padding:22px;max-width:560px;width:100%;border-top:5px solid var(--gold);max-height:92vh;overflow:auto}
#tm-root .modal h3{margin:0 0 14px;color:var(--green)}
#tm-root .modal .mfoot{display:flex;gap:8px;justify-content:flex-end;margin-top:16px;flex-wrap:wrap}

#tm-root .login{max-width:380px;margin:6vh auto 6vh;text-align:center}
#tm-root .login .card{padding:28px 24px}
#tm-root .login .mark{margin:0 auto 14px;width:54px;height:54px;border-radius:15px;font-size:22px}
#tm-root .login h2{margin:0 0 4px;color:var(--green);font-size:22px}
#tm-root .login p{margin:0 0 20px;color:var(--muted);font-size:13px}
#tm-root .login .ff{text-align:left}
#tm-root .login .btn{width:100%;margin-top:6px;justify-content:center;display:flex}
#tm-root .hint{font-size:11.5px;color:#9aa;margin-top:14px}
#tm-root .err{color:var(--danger);font-size:12.5px;min-height:16px;margin-top:4px}

#tm-root .chart-card{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:16px}
#tm-root .chart-card h4{margin:0 0 12px;font-size:13px;color:var(--green);text-transform:uppercase;letter-spacing:.5px}
#tm-root .legend{display:flex;gap:12px;flex-wrap:wrap;font-size:11.5px;color:var(--muted);margin-top:8px}
#tm-root .legend span{display:flex;align-items:center;gap:5px}#tm-root .legend i{width:11px;height:11px;border-radius:3px}

#tm-root :focus-visible{outline:3px solid var(--gold);outline-offset:2px}
@media(prefers-reduced-motion:reduce){#tm-root *{animation:none!important;transition:none!important}}

/* WordPress native login form (logged-out state) */
#tm-root .login form p{margin:0 0 12px;text-align:left}
#tm-root .login label{font-size:11px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.5px;display:block;margin-bottom:5px}
#tm-root .login input[type=text],#tm-root .login input[type=password]{width:100%;border:1.5px solid var(--line);border-radius:10px;padding:10px 12px;font-size:14px;background:#fff;color:var(--ink)}
#tm-root .login input[type=text]:focus,#tm-root .login input[type=password]:focus{outline:none;border-color:var(--gold);box-shadow:0 0 0 3px rgba(201,162,39,.18)}
#tm-root .login .login-remember{font-weight:500;text-transform:none;letter-spacing:0;color:var(--ink)}
#tm-root .login #wp-submit,#tm-root .login input[type=submit]{width:100%;background:var(--green);color:#fff;border:none;padding:12px 18px;border-radius:11px;font-weight:700;font-size:14px;cursor:pointer;margin-top:4px}
#tm-root .login #wp-submit:hover{background:var(--green-2)}

/* Employees grid + section headings + day groups */
#tm-root .section-line{font-size:12px;font-weight:800;color:var(--green);text-transform:uppercase;letter-spacing:1px;margin:18px 0 4px;display:flex;align-items:center;gap:10px}
#tm-root .section-line:before{content:"";width:18px;height:2px;background:var(--gold);display:inline-block}
#tm-root .staff-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px;margin-top:8px}
#tm-root .staff-card{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:18px 14px 14px;text-align:center;transition:transform .15s ease, box-shadow .15s ease, border-color .15s;cursor:pointer}
#tm-root .staff-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(14,63,47,.12);border-color:var(--gold)}
#tm-root .staff-card .avatar{width:56px;height:56px;border-radius:50%;margin:0 auto 12px;display:grid;place-items:center;font-weight:800;font-size:20px;color:#fff;background:linear-gradient(135deg,var(--green),var(--green-2));box-shadow:0 0 0 3px #fff,0 0 0 5px var(--gold)}
#tm-root .staff-card .nm{font-weight:700;font-size:15px}
#tm-root .staff-card .role{font-size:11px;color:var(--muted);margin-top:2px}
#tm-root .day-head{display:flex;align-items:center;gap:8px}

/* Notification bell */
#tm-root .tm-bellwrap{position:relative;display:flex;align-items:center}
#tm-root .tm-bell{position:relative;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);color:#fff;width:38px;height:38px;border-radius:50%;font-size:17px;display:grid;place-items:center;line-height:1}
#tm-root .tm-bell:hover{background:rgba(255,255,255,.25)}
#tm-root .tm-bell.ring{animation:tmring .5s ease 2}
@keyframes tmring{0%,100%{transform:rotate(0)}20%{transform:rotate(16deg)}40%{transform:rotate(-14deg)}60%{transform:rotate(10deg)}80%{transform:rotate(-6deg)}}
#tm-root .bell-badge{position:absolute;top:-4px;right:-4px;min-width:18px;height:18px;padding:0 4px;border-radius:999px;background:var(--danger);color:#fff;font-size:11px;font-weight:800;display:inline-grid;place-items:center;border:2px solid var(--green)}
#tm-root .bell-panel{position:absolute;top:46px;right:0;width:320px;max-width:86vw;max-height:60vh;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 14px 40px rgba(0,0,0,.22);z-index:99997;padding:8px}
#tm-root .bell-panel h5{margin:6px 8px 8px;color:var(--green);font-size:12px;text-transform:uppercase;letter-spacing:.5px}
#tm-root .bell-item{display:block;width:100%;text-align:left;background:#faf8f2;border:1px solid var(--line);border-radius:10px;padding:9px 11px;margin-bottom:6px;cursor:pointer;font-size:13px;color:var(--ink)}
#tm-root .bell-item:hover{border-color:var(--gold);background:#fff}
#tm-root .bell-item .bi-sub{font-size:11px;color:var(--muted);margin-top:2px}
#tm-root .bell-empty{padding:18px;text-align:center;color:var(--muted);font-size:13px}

/* Rejected status + history timeline */
#tm-root .t-Rejected{background:rgba(179,38,30,.16);color:var(--danger)}
#tm-root .tm-timeline{border-left:2px solid var(--line);margin-left:6px;padding-left:14px}
#tm-root .tl-item{position:relative;padding:6px 0;font-size:12.5px}
#tm-root .tl-dot{position:absolute;left:-21px;top:10px;width:9px;height:9px;border-radius:50%;background:var(--gold);box-shadow:0 0 0 2px #fff}
#tm-root .tl-note{font-style:italic;color:var(--danger);margin:2px 0}
#tm-root .tl-time{font-size:11px;color:var(--muted)}

/* compact inline select + small status flag */
#tm-root .inp-sm{height:34px;padding:5px 8px;font-size:12.5px;max-width:140px;display:inline-block;width:auto;vertical-align:middle}
#tm-root .tag.bsm{font-size:10px;padding:2px 7px;vertical-align:middle;margin-left:4px}
#tm-root td .st-sel{margin-right:6px}

/* Comments */
#tm-root .cmt-list{display:flex;flex-direction:column;gap:8px;max-height:240px;overflow:auto}
#tm-root .cmt{background:#f6f8f5;border:1px solid var(--line);border-left:3px solid var(--green);border-radius:8px;padding:8px 10px;font-size:13px}
#tm-root .cmt-h{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:3px}
#tm-root .cmt-h span{font-size:10.5px;color:var(--muted)}

/* checkbox grids + clickable stat cards */
#tm-root .fullw{width:100%}
#tm-root .chk-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px;margin-top:4px}
#tm-root .chk{display:flex;align-items:center;gap:7px;background:#f6f8f5;border:1px solid var(--line);border-radius:8px;padding:7px 10px;font-size:12.5px;cursor:pointer}
#tm-root .chk input{width:15px;height:15px;accent-color:var(--green);margin:0}
#tm-root .chk:hover{border-color:var(--gold)}
#tm-root .stat.clk{cursor:pointer;transition:transform .12s ease, box-shadow .12s ease}
#tm-root .stat.clk:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(14,63,47,.12)}

/* premium: muted, attachments, calendar */
#tm-root .muted{color:var(--muted)}
#tm-root .att{display:flex;align-items:center;gap:8px;background:#f6f8f5;border:1px solid var(--line);border-radius:8px;padding:6px 10px;margin-bottom:5px;font-size:13px}
#tm-root .att a{font-weight:600;color:var(--green);text-decoration:none}
#tm-root .att-x{margin-left:auto;background:none;border:none;color:var(--danger);cursor:pointer;font-weight:700}
#tm-root .cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
#tm-root .cal-grid.head{margin-bottom:6px}
#tm-root .cal-h{font-size:11px;font-weight:700;color:var(--muted);text-align:center;text-transform:uppercase}
#tm-root .cal-cell{background:var(--card);border:1px solid var(--line);border-radius:8px;min-height:84px;padding:5px}
#tm-root .cal-cell.empty{background:transparent;border:none}
#tm-root .cal-cell.today{border-color:var(--gold);box-shadow:0 0 0 1px var(--gold)}
#tm-root .cal-d{font-size:11px;font-weight:700;color:var(--muted);margin-bottom:3px}
#tm-root .cal-task{font-size:10.5px;padding:2px 5px;border-radius:5px;margin-bottom:3px;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#tm-root .cal-task.c-done{background:#e1f3e8;color:#1f8a4c}
#tm-root .cal-task.c-over{background:#fbe3e1;color:#b3261e}
#tm-root .cal-task.c-norm{background:#eef0f6;color:#41507e}

/* bigger bell + persistent pulse */
#tm-root .tm-bell{width:46px;height:46px;font-size:23px;background:rgba(255,255,255,.18)}
#tm-root .bell-badge{min-width:21px;height:21px;font-size:12px;top:-5px;right:-5px;border-width:2px}
#tm-root .tm-bell.has{animation:tmpulse 1.7s ease-in-out infinite}
@keyframes tmpulse{0%,100%{box-shadow:0 0 0 0 rgba(201,162,39,.55)}50%{box-shadow:0 0 0 9px rgba(201,162,39,0)}}

/* calendar day counts */
#tm-root .cal-cell.hasitems{cursor:pointer;background:#fbfcfb}
#tm-root .cal-cell.hasitems:hover{border-color:var(--gold);box-shadow:0 4px 12px rgba(14,63,47,.1)}
#tm-root .cal-counts{display:flex;flex-direction:column;gap:3px;margin-top:3px}
#tm-root .cc{font-size:10.5px;font-weight:700;padding:2px 5px;border-radius:5px;white-space:nowrap}
#tm-root .cc-r{background:#eef0f6;color:#41507e}
#tm-root .cc-c{background:#e1f3e8;color:#1f8a4c}
#tm-root .cc-p{background:#fbe9d8;color:#c9831f}

/* status colors: pending=red, in progress=yellow, completed=green */
#tm-root .tag.t-Pending,#tm-root .tag.t-Assigned{background:rgba(179,38,30,.14);color:#b3261e}
#tm-root .tag.t-InProgress{background:rgba(201,131,31,.20);color:#a9700f}
#tm-root .tag.t-Completed{background:rgba(31,138,76,.18);color:#1f8a4c}
#tm-root .tag.t-Changes{background:rgba(201,131,31,.20);color:#a9700f}

/* employee card name stays visible + turns green on hover */
#tm-root .staff-card .nm{color:var(--ink);transition:color .12s ease}
#tm-root .staff-card:hover .nm{color:var(--green)}
#tm-root .staff-card:hover .role{color:var(--green-2)}

/* avatars */
#tm-root .av-img{width:100%;height:100%;object-fit:cover;border-radius:50%}
#tm-root .uchip-av{width:30px;height:30px;border-radius:50%;object-fit:cover;border:2px solid var(--gold);margin-right:7px;vertical-align:middle}

/* start/deadline date strip in task modal */
#tm-root .date-strip{display:flex;gap:10px;margin-top:10px;flex-wrap:wrap}
#tm-root .ds-item{flex:1;min-width:150px;background:#f6f8f5;border:1px solid var(--line);border-radius:11px;padding:9px 13px;display:flex;flex-direction:column;gap:2px}
#tm-root .ds-l{font-size:10.5px;color:var(--muted);font-weight:700;text-transform:uppercase;letter-spacing:.4px}
#tm-root .ds-v{font-size:13.5px;font-weight:700;color:var(--ink)}
#tm-root .ds-over{background:#fbe3e1;border-color:#eecfcb}
#tm-root .ds-over .ds-v{color:#b3261e}

/* threaded comment replies */
#tm-root .cmt-reply{margin-left:22px;margin-top:6px;border-left:2px solid var(--gold);padding-left:10px;background:#fbfaf5}
#tm-root .cmt-replybtn{background:none;border:none;color:var(--green);font-size:11px;font-weight:700;cursor:pointer;padding:2px 0;margin-top:2px}
#tm-root .cmt-replybtn:hover{text-decoration:underline}
#tm-root .reply-ind{font-size:12px;background:#f6f8f5;border:1px solid var(--line);border-radius:8px;padding:6px 10px;margin-top:8px}
#tm-root .reply-ind a{color:var(--danger);font-weight:700}

/* soft divider inside cards */
#tm-root .hr-soft{height:1px;background:var(--line);margin:14px 0}

/* wider, clearer notification panel */
#tm-root .bell-panel{width:440px;max-width:94vw}
#tm-root .bell-item{font-size:13.5px;line-height:1.5;padding:11px 13px}
#tm-root .bell-item b{white-space:normal;word-break:break-word}
#tm-root .bell-item .bi-sub{font-size:11.5px;margin-top:4px}
