@font-face{font-family:Workspace;src:url(/vendor/sans.ttf)}@font-face{font-family:Editorial;src:url(/vendor/serif.ttf)}:root{--green:#183d34;--ink:#232e29;--muted:#647169;--paper:#faf9f5;--line:#dedfd6;--gold:#b09a6e;--serif:Editorial,Georgia,serif;font:14px Workspace,Arial,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:weight}*{box-sizing:border-box}body{margin:0}[v-cloak]{display:none}button,input,select,textarea{font:inherit}button{color:inherit;border:1px solid var(--line);border-radius:6px;background:#fffefa;cursor:pointer;padding:8px 12px;transition:background .18s,box-shadow .18s,transform .18s}button:hover{background:#ecefe7}button:active{transform:translateY(1px)}button:disabled{cursor:default;opacity:.65}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #9f834a;outline-offset:2px}.ico{height:17px;width:17px;flex:none}.primary{background:var(--green);color:white;border:1px solid var(--green);display:inline-flex;gap:9px;align-items:center;justify-content:center;padding:12px 18px;font-weight:bold;box-shadow:0 2px 3px #12351d12}.primary:hover{background:#285345}.primary .ico{width:16px}.wide{width:100%;justify-content:space-between}.brand{display:block;width:100%;height:auto;filter:drop-shadow(.45px .45px 0 #fff8e8b3) drop-shadow(-.45px -.45px 0 #fff8e8b3)}small{font-size:11px}h1,h2,h3,h4,p{margin:0}h1,h2{font-family:var(--serif);font-weight:400;letter-spacing:-1.4px}h1{font-size:clamp(32px,3.1vw,52px);line-height:1.18}h2{font-size:25px}h3{font-size:15px}.loading{padding:10vw;font:48px var(--serif)}.cover{--cover-padding:clamp(32px,5vw,85px);background:#15382f;color:#f4efde;position:relative;overflow:hidden;min-height:600px;display:flex;flex-direction:column;justify-content:space-between;gap:24px;padding:var(--cover-padding)}.covertext small,.loginform>small,.heading small,.panel>small,.demobox>small,.modalhead small{font-size:10px;letter-spacing:1.8px;font-weight:bold;color:#816e4e}.covertext small{color:#d6c298}.cover h1{max-width:440px;font-size:clamp(44px,5vw,82px);line-height:1.1;margin-top:18px}.loginform h1{margin:14px 0;font-size:39px}.loginform>p,.heading p,.plan p{color:var(--muted);line-height:1.6}.loginform form{margin-top:28px}label{display:block;font-size:12px;font-weight:bold;margin-bottom:15px}label input,label textarea,label select{display:block;width:100%;margin-top:6px}input,textarea,select{color:var(--ink);background:#fffefa;border-radius:5px;border:1px solid #cfd3c9;padding:10px 12px;min-width:0}textarea{resize:vertical}label.check{display:flex;align-items:center;gap:8px}label.check input{width:auto;margin:0}.demobox{margin-top:28px;padding-top:20px;border-top:1px solid var(--line)}.demobox div{display:flex;gap:7px;margin-top:10px}.demobox button{font-size:12px;padding:9px 12px;border-color:#adc0af;background:#edf3ec;color:#173a31}.demobox button:hover{background:#dfebe0}.shell{display:grid;grid-template-columns:222px minmax(0,1fr);min-height:100dvh}aside{position:sticky;top:0;height:100dvh;display:flex;flex-direction:column;padding:31px 16px 17px;background:#173a31;color:#edf0e6;z-index:4}.space,.sidefoot{display:flex;align-items:center;gap:10px}.space{margin:35px 0 29px;border:1px solid #ffffff29;padding:13px 10px;border-radius:7px;background:#ffffff05}.space strong,.sidefoot strong{display:block;font-size:12px}.space small,.sidefoot small{display:block;font-size:10px;color:#b7c9bd;margin-top:3px}.monogram{padding:8px 6px;background:#d9c59f;color:#3c493a;border-radius:5px;min-width:32px;text-align:center}.navcaption{color:#b4c4b7;font-size:9px;letter-spacing:1.65px;padding:0 12px;font-weight:bold}nav,.sideProjects{display:grid;gap:4px;margin:10px 0 27px}aside button{border:0;background:transparent;color:#d6e1d7;text-align:left;display:flex;align-items:center;gap:12px;padding:11px 12px;font-size:13px}aside button:hover,aside button.current{background:#ffffff13;color:white}aside button.current{box-shadow:inset 2px 0 #d1b883}.sideProjects{border-top:1px solid #ffffff24;padding-top:22px;overflow:auto}.sideProjects small{margin-bottom:7px}.sideProjects button{font-size:12px;gap:10px}.dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#8f9b91;flex:none}.tone0{background:#ad8652}.tone1{background:#79909e}.tone2{background:#98916f}.tone3{background:#a67d83}.sidefoot{margin-top:auto;border-top:1px solid #ffffff24;padding:16px 1px 0}.sidefoot>div{flex:1}.logout{padding:5px}.avatar{display:inline-grid;place-items:center;min-width:29px;height:29px;border-radius:50%;font-size:10px;letter-spacing:.2px;background:#e1dfce;color:#454d38}.v1{background:#ead9cd;color:#70533d}.v2{background:#d9e4db;color:#37583f}.v3{background:#dfe2ec;color:#49516d}main{min-width:0}header{height:64px;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(22px,3vw,52px);border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}header div{display:flex;gap:12px;align-items:center}header em{color:#b1b5aa}header b{color:#34443a;font-weight:500}.today:first-letter{text-transform:uppercase}.content{padding:34px clamp(20px,3vw,52px) 48px;animation:enter .32s ease-out}.heading,.toolbar,.teamhead,.end,.detailactions{display:flex;align-items:center;justify-content:space-between;gap:14px}.heading{margin:0 0 25px}.heading h1{margin:8px 0 7px}.metrics{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--line);border-radius:9px;background:#fffefa;margin-bottom:26px}.metrics article{padding:18px 21px;position:relative}.metrics article+article:before{content:'';position:absolute;left:0;top:20%;height:60%;border-left:1px solid var(--line)}.metrics span{display:flex;align-items:center;gap:8px;color:#536257;font-size:12px}.metrics .ico{color:#837650;width:15px}.metrics strong,.plan>strong{display:block;font:33px var(--serif);margin-top:6px;line-height:1.2}.toolbar{flex-wrap:wrap;margin-bottom:17px}.switch{display:flex;border-radius:6px;background:#eeeee7;padding:3px}.switch button{border:0;padding:7px 10px;background:transparent;display:flex;align-items:center;gap:7px;font-size:12px}.switch .selected{background:white;box-shadow:0 1px 4px #26322422}.filters{display:flex;align-items:center;gap:7px}.filters select,.search{font-size:12px;padding:8px;background:#fffefa}.search{display:flex;align-items:center;gap:5px;border:1px solid #cfd3c9;border-radius:5px;margin:0}.search input{width:109px;padding:0;margin:0;border:0;font-weight:normal}.search .ico{height:15px}.kanban{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;align-items:start}.lane{padding:10px 9px 12px;background:#efefe9;border:1px solid #e1e3da;border-radius:8px;min-height:210px;transition:background .2s}.lane.over{background:#dbe5d8}.lane h3{display:flex;gap:7px;align-items:center;font-size:13px;margin:1px 2px 12px}.lane h3 b{font-size:10px;color:#526256;background:#e1e4d9;padding:2px 6px;border-radius:4px}.lane h3 button{margin-left:auto;font-size:18px;border:0;background:transparent;padding:0 4px}.ldoing h3 .dot{background:#b39350}.lreview h3 .dot{background:#8e83a2}.ldone h3 .dot{background:#547e65}.card{display:block;text-align:left;width:100%;background:#fffefa;border:1px solid #dcdfd5;box-shadow:0 2px 4px #2b352407;padding:14px;margin-bottom:9px;border-radius:7px}.card:last-child{margin-bottom:0}.card:hover{transform:translateY(-2px);background:white;box-shadow:0 5px 13px #26342412}.card h4{font-size:14px;line-height:1.48;margin:10px 0 12px;overflow-wrap:anywhere}.projectname,.card footer,.card footer span{display:flex;align-items:center;gap:6px}.projectname{color:#677065;font-size:10px}.projectname .dot{width:6px;height:6px}.priority{display:inline-block;padding:3px 7px;border-radius:4px;font-size:10px}.high{background:#f3e4dc;color:#8f5037}.normal{color:#806329;background:#f1ead7}.low{color:#45685a;background:#e5eee6}.card footer{justify-content:space-between;border-top:1px solid #eeeee7;margin-top:13px;padding-top:10px;font-size:10px;color:var(--muted)}.card footer .ico{width:13px;height:13px}.card footer .avatar{min-width:24px;height:24px;font-size:9px}.late{color:#9d513e}.panel,.plan{border:1px solid var(--line);border-radius:9px;background:#fffefa;padding:24px}.scroll{overflow:auto}.emptyLane{text-align:center;padding:24px 8px;color:#798176;font-size:12px}.reports,.planGrid,.formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.reports h2{margin:7px 0 19px}.progressrow,.workrow{display:flex;align-items:center;gap:10px;margin:15px 0;font-size:13px}.progressrow{flex-wrap:wrap}.progressrow span,.workrow>b:last-child{margin-left:auto}progress{width:100%;height:7px;border:0;appearance:none;border-radius:5px;overflow:hidden;background:#edece4}progress::-webkit-progress-bar{background:#edece4}progress::-webkit-progress-value{background:#72826a}progress::-moz-progress-bar{background:#72826a}.planGrid{grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}.plan{border-top:3px solid var(--gold)}.plan>.ico{width:25px;height:25px;color:#8d7751}.plan h2{margin:14px 0}.plan p{font-size:12px}.plan hr,hr{margin:20px 0;border:none;border-top:1px solid var(--line)}.teamhead{margin-bottom:18px}.teamhead span{font-size:12px;color:var(--muted)}table{width:100%;border-collapse:collapse;font-size:13px}td,th{text-align:left;padding:13px 9px;border-bottom:1px solid #e6e7e0}th{font-size:11px;color:var(--muted)}td button{font-size:12px;padding:6px 8px}.link{padding:0;border:0;text-align:left;font-weight:bold}.menuBtn,.scrim{display:none}dialog{width:min(480px,94vw);max-height:90dvh;overflow:auto;padding:0;color:var(--ink);border:1px solid var(--line);border-radius:11px;box-shadow:0 20px 80px #15251c35;background:var(--paper)}dialog[open]{animation:enter .2s ease-out}dialog::backdrop{background:#0b201b77;backdrop-filter:blur(3px)}.modalinner{padding:23px 27px}.modalhead{display:flex;align-items:center;justify-content:space-between}.modalhead button{border:0;background:transparent;font-size:24px;padding:0 4px}.modalinner h2{margin:5px 0 16px;overflow-wrap:anywhere}.modalinner h3{margin:12px 0}.formgrid{gap:0 12px}.end{justify-content:flex-end;margin-top:21px}.error{color:#973e2b;padding:10px 0;font-size:13px}.toast{position:fixed;bottom:20px;right:20px;background:var(--green);color:white;z-index:9;border-radius:6px;padding:13px 18px;box-shadow:0 3px 14px #0002}.desc,.comment p{white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 0;line-height:1.6}.facts{display:flex;justify-content:space-between;gap:8px;background:#efefe7;padding:13px;margin:15px 0}.facts span{font-size:10px;color:var(--muted)}.facts b{display:block;color:var(--ink);font-size:12px;margin-top:4px}.comment{border-bottom:1px solid var(--line);padding-top:8px;font-size:13px}.comment small{margin-left:8px;color:var(--muted)}.comment+form{margin-top:14px}.detailactions{justify-content:flex-start}.detailactions button{font-size:12px}.sidefoot strong,td strong{overflow-wrap:anywhere}@keyframes enter{from{opacity:.3;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@media(min-width:1600px){.content{max-width:1770px;margin:auto}.card{padding:20px}}@media(max-width:1150px){.shell{grid-template-columns:195px minmax(0,1fr)}.kanban{gap:8px}.card{padding:10px}.content{padding-inline:18px}.lane{padding-inline:6px}.lane h3{gap:4px;font-size:12px}}@media(max-width:900px){.shell{display:block}aside{position:fixed;width:230px;left:0;transform:translateX(-100%);transition:transform .25s}aside.opened{transform:none}.menuBtn{display:inline-grid;border:0;background:none;padding:5px}.scrim{position:fixed;inset:0;display:block;width:100%;height:100%;background:#11281f70;z-index:3;border:0;border-radius:0}.scrim:hover{background:#11281f70}}@media(max-width:680px){.cover{--cover-padding:22px;min-height:195px}.cover h1{font-size:31px;margin-top:7px}.loginform h1{font-size:31px}.heading{align-items:flex-start;flex-wrap:wrap}.heading .primary{font-size:12px;padding:9px 12px}.content{padding:23px 14px}.today{display:none}.metrics{grid-template-columns:1fr 1fr}.metrics article{padding:12px 15px}.metrics article:nth-child(3):before{display:none}.metrics article:nth-child(n+3){border-top:1px solid var(--line)}.metrics strong{font-size:26px}.filters{flex-wrap:wrap;width:100%}.kanban{grid-template-columns:repeat(4,minmax(235px,1fr));overflow:auto;padding-bottom:12px;scroll-snap-type:x proximity}.lane{scroll-snap-align:start;padding:10px}.reports{grid-template-columns:1fr}.panel,.plan{padding:16px}.card h4{font-size:15px}.toolbar{gap:10px}.modalinner{padding:18px}.facts{flex-wrap:wrap}.teamhead{flex-wrap:wrap}header{height:52px;padding:0 12px}.formgrid{grid-template-columns:1fr}.demobox div{flex-wrap:wrap}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.login {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 100dvh;
  isolation: isolate;
  overflow: clip;
}

.cover {
  grid-area: 1 / 1;
  isolation: isolate;
}

.sculpture {
  position: absolute;
  inset: 22% -15% 12% 17%;
  z-index: -1;
  pointer-events: none;
  transform: rotate(-17deg);
  opacity: .85;
}

.sculpture i {
  position: absolute;
  inset: calc(var(--i) * 2.1%) calc(var(--i) * 2.3%) calc(var(--i) * 1.1%);
  border: 1px solid #a59062;
  border-right-color: #365b4f;
  border-bottom: 0;
  border-radius: 52% 52% 0 0;
  box-shadow: -6px -3px 10px #09251c55;
}

.login-brand {
  align-self: flex-start;
  width: min(100%, clamp(200px, 26vw, 340px));
}

.loginform {
  grid-area: 1 / 2;
  z-index: 2;
  align-self: center;
  width: min(390px, 82%);
  margin: 40px auto;
}

.login-brand .letter-fill {
  fill: #f4e9d0;
}

.login-brand .letter-outline {
  fill: none;
  stroke: #cbb78e;
  stroke-width: 1.45;
  stroke-linejoin: round;
}

.login-brand .gold-ring {
  fill: none;
  stroke: url(#goldOrbitGrad);
  stroke-linecap: round;
}

.autofill-access .autofill-list {
  display: flex;
  gap: 7px;
  margin-top: 10px;
}

.autofill-access button {
  flex: 1 1 0;
  text-align: center;
  font-weight: 500;
  white-space: nowrap;
}

.autofill-access button.active {
  background: #dfebe0;
  border-color: #799e7f;
  box-shadow: 0 0 0 1px #799e7f;
  font-weight: 600;
}

@media (max-width: 680px) {
  .login {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
  }

  .login-brand { width: min(68vw, 285px); }
  .sculpture { inset: 6% -5% -11% 52%; }

  .loginform {
    grid-area: 2 / 1;
    margin: 30px auto;
  }
}

/* Modern Reports & Charts */
.chart-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform .2s ease, box-shadow .2s ease;
}

.chart-card:hover {
  box-shadow: 0 4px 14px rgba(24, 61, 52, 0.08);
}

.chart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.chart-header h2 {
  margin: 4px 0 0;
  font-size: 20px;
}

.badge-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: #edf0e8;
  color: #3b4e41;
  white-space: nowrap;
}

.badge-pill.tone-green {
  background: #dbeef0;
  color: #173e34;
}

.segmented-bar {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background: #edece4;
  gap: 2px;
}

.seg-item {
  height: 100%;
  transition: width 0.3s ease;
}

.v-chart-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-items: flex-end;
  min-height: 155px;
  padding-top: 10px;
}

.v-chart-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  gap: 6px;
}

.v-chart-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.v-chart-track {
  width: 100%;
  max-width: 44px;
  height: 95px;
  background: #edece4;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 2px;
}

.v-chart-bar {
  width: 100%;
  border-radius: 4px;
  transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 4px;
}

.v-chart-label {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.v-chart-pct {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink);
  background: #f0f0ea;
  padding: 1px 5px;
  border-radius: 3px;
}

.priority-chart-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 6px;
}

.donut-wrap {
  width: 115px;
  height: 115px;
  flex-shrink: 0;
}

.donut-chart {
  width: 100%;
  height: 100%;
}

.donut-chart circle {
  transition: stroke-dasharray 0.4s ease, stroke-dashoffset 0.4s ease;
}

.donut-total {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: bold;
  fill: var(--ink);
}

.donut-caption {
  font-size: 9px;
  letter-spacing: 0.5px;
  fill: var(--muted);
  text-transform: uppercase;
}

.priority-legend {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.p-legend-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.p-legend-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.p-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.p-legend-name {
  font-weight: 600;
}

.p-legend-nums {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.p-legend-nums em {
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
  font-size: 11px;
}

.h-bar-track {
  width: 100%;
  height: 6px;
  background: #edece4;
  border-radius: 3px;
  overflow: hidden;
}

.h-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.35s ease;
}

.h-bar-fill.tone-green {
  background: #37583f;
}

.project-charts-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-chart-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #fbfbf7;
  border: 1px solid #f0f0ea;
}

.p-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.p-chart-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
}

.late-badge {
  font-size: 10px;
  color: #9d513e;
  background: #faeae6;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.p-chart-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
}

.p-pct {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.p-multi-bar {
  display: flex;
  height: 7px;
  border-radius: 4px;
  overflow: hidden;
  background: #edece4;
  gap: 1px;
}

.p-bar-seg {
  height: 100%;
  transition: width 0.3s ease;
}

.p-bar-seg.s-done { background: #37583f; }
.p-bar-seg.s-review { background: #79909e; }
.p-bar-seg.s-doing { background: #ad8652; }
.p-bar-seg.s-todo { background: #c2c5bb; }

.team-workload-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.team-workload-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f1ea;
}

.team-workload-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.tw-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tw-user {
  display: flex;
  align-items: center;
  gap: 9px;
}

.tw-user strong {
  display: block;
  font-size: 13px;
}

.tw-user small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}

.tw-counts {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.late-tag {
  color: #9d513e;
  background: #f8ebe7;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.active-tag {
  color: #7d6536;
  background: #f7f1e5;
  padding: 2px 6px;
  border-radius: 4px;
}

.done-tag {
  color: #2b563b;
  background: #e7f1ea;
  padding: 2px 6px;
  border-radius: 4px;
}

.tw-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tw-pct {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  min-width: 30px;
  text-align: right;
}

.personal-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 6px 0;
}

.personal-kpi-box {
  background: #f8f8f2;
  border: 1px solid #eeede5;
  border-radius: 7px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.personal-kpi-box.alert-box {
  background: #fdf5f3;
  border-color: #f3d4cb;
}

.pkpi-title {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.pkpi-num {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  line-height: 1.2;
}

.pkpi-desc {
  font-size: 10px;
  color: var(--muted);
}

.personal-speed-gauge {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gauge-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

.gauge-head strong {
  color: #37583f;
  font-size: 12px;
}

.gauge-head small {
  color: var(--muted);
}

.metric-sub {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}

button.danger {
  color: #9d3e2b;
  border-color: #e2c0b8;
  background: #fdf5f3;
}
button.danger:hover {
  background: #f8ded7;
  border-color: #d89e92;
}
.primary.danger {
  background: #9d3e2b;
  border-color: #9d3e2b;
  color: white;
}
.primary.danger:hover {
  background: #7d2e1e;
  border-color: #7d2e1e;
}

/* Multi-assignee Picker */
.assignee-picker {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid #cfd3c9;
  border-radius: 6px;
  padding: 6px;
  background: #fffefa;
  margin-top: 6px;
}
.assignee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 5px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s;
  margin-bottom: 0 !important;
  font-weight: normal;
  font-size: 13px;
}
.assignee-item:hover {
  background: #f4f6f0;
}
.assignee-item.selected {
  background: #eef5ef;
  border-color: #bcdbc1;
}
.assignee-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--green);
}
.assignee-item .avatar {
  min-width: 26px;
  height: 26px;
  font-size: 10px;
}
.assignee-item span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
}
.assignee-item span small {
  color: var(--muted);
  font-size: 11px;
}
.required-star {
  color: #9d3e2b;
  font-weight: bold;
}
.error-inline {
  color: #9d3e2b;
  font-size: 11px;
  margin: 4px 0 0;
}

/* Toolbar Excel Button */
.excel-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  padding: 7px 11px;
  background: #f7faf7;
  border-color: #b7ceb9;
  color: #17422f;
  font-weight: 600;
}
.excel-btn:hover {
  background: #ebf3eb;
  border-color: #8dae92;
}
.excel-btn .ico {
  width: 15px;
  height: 15px;
  color: #1f5a3f;
}

/* Notes & Calendar System */
.today-banner {
  background: #f5f9f5;
  border: 1px solid #c8e0cc;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 22px;
  box-shadow: 0 2px 6px #12351d08;
}
.today-banner-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.today-banner-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--green);
  font-size: 14px;
}
.today-badge {
  background: #235d40;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}
.today-banner-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}
.today-item-chip {
  background: white;
  border: 1px solid #d7e4d8;
  border-radius: 6px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.today-item-chip strong {
  font-size: 13px;
  color: var(--ink);
}
.today-item-chip p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  white-space: pre-wrap;
}

/* Calendar & Date Notes Split View */
.notes-main-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  margin-bottom: 24px;
}
@media (max-width: 900px) {
  .notes-main-grid {
    grid-template-columns: 1fr;
  }
}

/* Calendar Card */
.calendar-card {
  padding: 20px;
}
.cal-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.cal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cal-month-title {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--ink);
  text-transform: capitalize;
}
.cal-nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cal-arrow-btn {
  padding: 6px 10px;
  font-weight: 700;
  font-size: 13px;
}
.cal-today-action {
  font-size: 11px;
  font-weight: 600;
  padding: 6px 10px;
  background: #f1f4ee;
  border-color: #cfd8ca;
  color: var(--green);
}
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.cal-day-cell {
  position: relative;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 6px 2px 4px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: #fffefa;
  cursor: pointer;
  transition: all .15s;
}
.cal-day-cell:hover {
  background: #f2f5ee;
  border-color: #d1ded0;
}
.cal-day-cell.other-month {
  opacity: .38;
  background: #fafaf7;
}
.cal-day-cell.today {
  border-color: #a4beaa;
  background: #f0f7f1;
}
.cal-day-cell.today .cal-day-num {
  color: var(--green);
  font-weight: 800;
}
.cal-day-cell.selected {
  background: var(--green) !important;
  color: white !important;
  border-color: var(--green) !important;
  box-shadow: 0 3px 8px #183d3433;
}
.cal-day-cell.selected .cal-day-num {
  color: white !important;
}
.cal-day-cell.selected .cal-note-dot {
  background: #e2c082 !important;
}
.cal-day-cell.selected .cal-note-pill {
  background: rgba(255,255,255,0.25) !important;
  color: white !important;
}
.cal-day-num {
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}
.cal-day-badges {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 3px;
}
.cal-note-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c28834;
}
.cal-note-pill {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 4px;
  background: #faecd5;
  color: #8b5714;
}

/* Date Specific Notes Section */
.date-notes-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
}
.date-notes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.date-notes-head h3 {
  font-size: 16px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 7px;
}
.tag-today {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  background: #e3f1e5;
  color: #21613c;
  font-weight: 700;
}
.date-notes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
  margin-bottom: 18px;
  padding-right: 4px;
}
.date-note-item {
  background: #fafaf7;
  border: 1px solid #e5e6dc;
  border-radius: 7px;
  padding: 12px 14px;
  position: relative;
  transition: border-color .15s;
}
.date-note-item:hover {
  border-color: #cfd3c4;
}
.date-note-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.date-note-item-head strong {
  font-size: 13px;
  color: var(--ink);
}
.btn-icon-del {
  padding: 3px 6px;
  font-size: 11px;
  border: 0;
  background: transparent;
  color: #a45341;
  opacity: .75;
  cursor: pointer;
  border-radius: 4px;
}
.btn-icon-del:hover {
  background: #fbeee9;
  opacity: 1;
}
.date-note-item-body {
  font-size: 12px;
  line-height: 1.5;
  color: #37433c;
  white-space: pre-wrap;
  word-break: break-word;
}
.date-note-item-footer {
  margin-top: 8px;
  font-size: 10px;
  color: var(--muted);
  display: flex;
  justify-content: flex-end;
}

/* Quick Add Form */
.quick-note-box {
  background: #f7f7f2;
  border: 1px solid #e1e3d7;
  border-radius: 7px;
  padding: 12px;
  margin-top: auto;
}
.quick-note-box h4 {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}
.quick-note-box input {
  padding: 7px 10px;
  font-size: 12px;
  margin-bottom: 6px;
}
.quick-note-box textarea {
  padding: 7px 10px;
  font-size: 12px;
  margin-bottom: 8px;
  resize: vertical;
}
.quick-note-box .primary {
  padding: 8px 14px;
  font-size: 12px;
  width: 100%;
}

/* Freeform Notes Section (Sərbəst Qeydlər) */
.freeform-section {
  padding: 24px;
}
.freeform-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.freeform-header h2 {
  font-size: 22px;
  margin-bottom: 4px;
}
.freeform-header p {
  font-size: 13px;
  color: var(--muted);
}
.freeform-composer {
  background: #f8f8f2;
  border: 1px solid #e4e6da;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
  box-shadow: 0 1px 4px #00000008;
}
.freeform-composer-grid {
  display: grid;
  grid-template-columns: 240px 1fr auto;
  gap: 10px;
  align-items: flex-start;
}
@media (max-width: 820px) {
  .freeform-composer-grid {
    grid-template-columns: 1fr;
  }
}
.free-notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}
.free-note-card {
  background: #fffefa;
  border: 1px solid #dedfd6;
  border-top: 3px solid var(--gold);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 6px #00000007;
  transition: transform .18s, box-shadow .18s;
  min-height: 130px;
}
.free-note-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px #00000010;
}
.free-note-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.free-note-head strong {
  font-size: 14px;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.free-note-body {
  font-size: 13px;
  line-height: 1.55;
  color: #313d36;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 12px;
  flex-grow: 1;
}
.free-note-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f0f0e8;
  padding-top: 8px;
  font-size: 11px;
  color: var(--muted);
}

/* Clickable Sidebar Profile */
.sidefoot-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  padding: 4px;
  color: inherit;
  text-align: left;
  flex: 1;
  border-radius: 6px;
  cursor: pointer;
  transition: background .18s;
}
.sidefoot-profile:hover {
  background: #ffffff14;
}
.sidefoot-profile .avatar {
  flex-shrink: 0;
}
.sidefoot-profile strong {
  display: block;
  font-size: 12px;
  color: white;
}
.sidefoot-profile small {
  display: block;
  font-size: 10px;
  color: #b7c9bd;
  margin-top: 2px;
}

/* Team Tab Switch */
.team-tab-switch {
  display: flex;
  gap: 4px;
  background: #eeeee7;
  padding: 3px;
  border-radius: 6px;
}
.team-tab-switch button {
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 5px;
  color: var(--muted);
}
.team-tab-switch button.selected {
  background: white;
  color: var(--ink);
  box-shadow: 0 1px 3px #00000015;
}
.teamhead-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.badge-dept {
  display: inline-block;
  padding: 2px 7px;
  background: #f1f4ee;
  border: 1px solid #d5decb;
  color: #2b563b;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

/* Groups / Departments View */
.groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  margin-top: 14px;
}
.group-card {
  background: #fffefa;
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  border-radius: 8px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 2px 5px #00000006;
}
.group-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.group-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.group-card-title .ico {
  color: var(--green);
  width: 19px;
  height: 19px;
}
.group-card-title h3 {
  font-size: 16px;
  color: var(--ink);
}
.group-card-actions button {
  font-size: 11px;
  padding: 5px 8px;
}
.group-card-lead {
  background: #f7f9f6;
  border: 1px solid #e1e7de;
  border-radius: 6px;
  padding: 10px 12px;
}
.group-card-lead small, .group-card-members small {
  font-size: 9px;
  letter-spacing: 1.2px;
  font-weight: 700;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}
.lead-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lead-info strong {
  display: block;
  font-size: 13px;
  color: var(--ink);
}
.lead-info small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin: 0;
  letter-spacing: normal;
  font-weight: normal;
}
.members-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.member-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f3ed;
  border: 1px solid #d9dfd4;
  padding: 3px 8px;
  border-radius: 14px;
  font-size: 11px;
  color: var(--ink);
}
.member-chip .avatar {
  min-width: 18px;
  height: 18px;
  font-size: 8px;
}
.member-chip.islead {
  background: #e4eee5;
  border-color: #bad3be;
  font-weight: 600;
}
.member-chip em {
  font-style: normal;
  color: #2b563b;
  font-size: 10px;
}

/* Task Target Switch */
.task-target-switch {
  display: flex;
  gap: 6px;
  background: #eeeee7;
  padding: 4px;
  border-radius: 6px;
  margin-bottom: 16px;
}
.task-target-switch button {
  flex: 1;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 5px;
  color: var(--muted);
}
.task-target-switch button.selected {
  background: white;
  color: var(--green);
  box-shadow: 0 1px 4px #00000015;
}
.group-task-hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f0f7f2;
  border: 1px solid #bedbc4;
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 14px;
  font-size: 12px;
  color: #1a422d;
}
.group-task-hint .ico {
  color: #23653f;
  margin-top: 2px;
}
.group-task-hint strong {
  display: block;
  font-size: 12px;
  margin-bottom: 2px;
}
.group-task-hint small {
  color: #3b5f4c;
  font-size: 11px;
}

/* Task Details & Delegation Box */
.task-dept-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eef5f0;
  border: 1px solid #bad3be;
  color: #17422f;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 11px;
  margin-bottom: 10px;
}
.delegate-box {
  background: #fbfbf8;
  border: 1px solid #e1e4d8;
  border-left: 3px solid var(--green);
  border-radius: 6px;
  padding: 14px;
  margin: 14px 0;
}
.delegate-box-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}
.delegate-box-head .ico {
  color: var(--green);
  width: 17px;
  height: 17px;
  margin-top: 2px;
}
.delegate-box-head strong {
  display: block;
  font-size: 13px;
  color: var(--ink);
}
.delegate-box-head small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

/* Overdue Task Highlight (Gecikən tapşırıqlar qırmızı rəngdə) */
.card.is-overdue {
  background: #fdf2f0 !important;
  border-color: #f1b3a6 !important;
  border-left: 5px solid #c93b2b !important;
  box-shadow: 0 2px 8px #a8322218 !important;
}
.card.is-overdue:hover {
  background: #faeae7 !important;
  border-color: #e28e7e !important;
  box-shadow: 0 5px 14px #a8322224 !important;
}
.card.is-overdue h4 {
  color: #792010 !important;
}
.card.is-overdue .projectname {
  color: #8c3224 !important;
}
.card.is-overdue footer span.late {
  color: #c93b2b !important;
  font-weight: bold;
}
.card-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.overdue-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 7px;
  border-radius: 4px;
  background: #f8d7da;
  color: #842029;
  border: 1px solid #f5c2c7;
}
.overdue-badge .ico {
  width: 12px;
  height: 12px;
}
.overdue-badge-inline {
  display: inline-block;
  margin-left: 6px;
  font-size: 10px;
  font-weight: bold;
  padding: 1px 6px;
  border-radius: 4px;
  background: #f8d7da;
  color: #842029;
  border: 1px solid #f5c2c7;
}
tr.row-overdue {
  background: #fdf4f2 !important;
}
tr.row-overdue td {
  color: #792010 !important;
}
tr.row-overdue .link {
  color: #a82717 !important;
  font-weight: bold;
}
tr.row-overdue td:first-child {
  border-left: 3px solid #c93b2b;
}

/* Note Sharing & Calendar Badges */
.note-share-toggle-row {
  margin: 10px 0 6px;
}
.btn-toggle-share {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  background: #fbfbf7;
  border: 1px dashed #ced2c4;
  border-radius: 6px;
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}
.btn-toggle-share:hover {
  background: #f1f3ea;
  border-color: var(--green);
}
.btn-toggle-share.active {
  background: #eef3ec;
  border-color: var(--green);
  border-style: solid;
}
.btn-toggle-share.has-selected {
  border-color: var(--green);
}
.btn-toggle-share-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-toggle-share-main .ico {
  width: 15px;
  height: 15px;
}
.share-count-tag {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 10px;
  font-weight: 500;
}
.share-toggle-caret {
  font-size: 11px;
  color: var(--muted);
}

/* Compact summary row when closed */
.share-summary-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  padding: 5px 9px;
  background: #f7f9f5;
  border: 1px solid #e1e7dc;
  border-radius: 6px;
  font-size: 11px;
}
.summary-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--green);
  font-weight: 600;
}
.summary-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  background: #e4ece3;
  border: 1px solid #c8d7c6;
  border-radius: 12px;
  color: #1a3827;
  font-weight: 500;
}
.summary-chip button {
  background: transparent;
  border: none;
  color: #556c5c;
  cursor: pointer;
  padding: 0;
  font-size: 13px;
  line-height: 1;
}
.summary-chip button:hover {
  color: #c93b2b;
}

/* Share Picker Panel (Opened container / window) */
.share-picker-panel {
  margin: 8px 0 12px;
  padding: 12px;
  background: #fafaf6;
  border: 1px solid #d6dbce;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.share-picker-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e7ebe0;
}
.share-picker-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 13px;
}
.share-picker-title .ico {
  width: 15px;
  height: 15px;
}
.btn-picker-close {
  background: transparent;
  border: none;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}
.btn-picker-close:hover {
  background: #e6eae0;
  color: #c93b2b;
}

/* Share controls grid: Qurum select & Search bar */
.share-controls-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
@media (max-width: 600px) {
  .share-controls-grid {
    grid-template-columns: 1fr;
  }
}
.share-ctrl-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.share-ctrl-field span {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.share-select-input {
  width: 100%;
  padding: 7px 10px;
  font-size: 12px;
  border: 1px solid #cfd5ca;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}
.share-search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.share-search-box .ico {
  position: absolute;
  left: 9px;
  width: 14px;
  height: 14px;
  color: var(--muted);
  pointer-events: none;
}
.share-search-box input {
  width: 100%;
  padding: 7px 28px 7px 30px;
  font-size: 12px;
  border: 1px solid #cfd5ca;
  border-radius: 6px;
  background: #fff;
}
.share-search-box input:focus {
  border-color: var(--green);
  outline: none;
}
.btn-clear-txt {
  position: absolute;
  right: 6px;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 2px 5px;
  font-size: 11px;
}
.btn-clear-txt:hover {
  color: var(--ink);
}

/* Selected users ribbon */
.share-selected-ribbon {
  margin-bottom: 10px;
  padding: 8px 10px;
  background: #eef4ed;
  border: 1px solid #c9d8c7;
  border-radius: 6px;
}
.share-selected-ribbon small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #2b5038;
  margin-bottom: 6px;
}
.share-selected-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.selected-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px 3px 6px;
  background: #ffffff;
  border: 1px solid #37583f;
  border-radius: 14px;
  font-size: 12px;
  color: #173a31;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.selected-pill .avatar {
  width: 18px;
  height: 18px;
  font-size: 9px;
}
.pill-x {
  background: transparent;
  border: none;
  color: #8b968f;
  font-size: 11px;
  cursor: pointer;
  padding: 0 2px;
}
.pill-x:hover {
  color: #c93b2b;
}
.btn-clear-link {
  background: transparent;
  border: none;
  font-size: 11px;
  color: #826649;
  text-decoration: underline;
  cursor: pointer;
  padding: 2px 4px;
}

/* Candidates list area */
.share-results-area {
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid #e1e5dc;
  border-radius: 6px;
  background: #fff;
}
.modal-scroll-area {
  max-height: 240px;
}
.share-candidates-list {
  display: flex;
  flex-direction: column;
}
.share-user-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-bottom: 1px solid #f0f2eb;
  cursor: pointer;
  transition: background .12s ease;
}
.share-user-check-item:last-child {
  border-bottom: none;
}
.share-user-check-item:hover {
  background: #f6f8f4;
}
.share-user-check-item.selected {
  background: #eef5ee;
}
.share-user-check-item input[type="checkbox"] {
  margin: 0;
  width: 15px;
  height: 15px;
  accent-color: var(--green);
}
.share-user-check-item .avatar {
  width: 26px;
  height: 26px;
  font-size: 11px;
  flex-shrink: 0;
}
.user-info-col {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.user-info-col strong {
  font-size: 12px;
  color: var(--ink);
}
.user-info-col small {
  font-size: 11px;
  color: var(--muted);
}
.share-empty-hint {
  padding: 18px 12px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.share-modal-lead {
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 12px;
}
.modal-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.date-note-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.date-note-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.badge-shared-author {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 7px;
  border-radius: 12px;
  background: #e5eee6;
  color: #2e533b;
  border: 1px solid #c4d7c7;
}
.badge-shared-author .ico {
  width: 12px;
  height: 12px;
}
.badge-shared-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 12px;
  background: #f1ead7;
  color: #795d24;
  border: 1px solid #dfd3b2;
}
.badge-shared-count .ico {
  width: 12px;
  height: 12px;
}
.date-note-item.is-shared-note {
  border-left: 3px solid #37583f;
  background: #fafbf8;
}
.btn-icon-share {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #cfd5ca;
  background: #fff;
  color: #33443a;
  cursor: pointer;
}
.btn-icon-share:hover {
  background: #edf3ec;
  border-color: #37583f;
  color: #173a31;
}
.shared-names-list {
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
  margin-left: auto;
}
.today-item-chip.is-shared-chip {
  border-left: 3px solid #37583f;
}
.today-note-author {
  display: block;
  font-size: 10px;
  color: var(--green);
  font-weight: bold;
  margin-bottom: 2px;
}
.share-modal-body p {
  margin: 0 0 14px;
  color: var(--ink);
  line-height: 1.5;
}

/* Organization Filter Bar & Tabs for Super Admin */
.org-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.org-filter-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.org-filter-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.org-filter-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s ease;
}
.org-filter-tabs button:hover {
  background: #f1f0e9;
  border-color: #cbd5e1;
}
.org-filter-tabs button.selected {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(18, 53, 36, 0.25);
}
.tab-count {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.08);
  color: inherit;
}
.org-filter-tabs button.selected .tab-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* Card & Table Organization Tags */
.card-top-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
}
.card-org-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  background: #eef3ef;
  color: #1a4f32;
  border-radius: 4px;
  border: 1px solid #d4e5d8;
  white-space: nowrap;
}
.card-org-tag .ico {
  width: 11px;
  height: 11px;
}
.badge-org {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  background: #f1f5f9;
  color: #334155;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

/* Leader Assignment Card in Modal */
.leader-assign-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fbf9f1;
  border: 1px solid #e5dcbe;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.leader-assign-card .avatar {
  width: 36px;
  height: 36px;
  font-size: 14px;
  flex-shrink: 0;
}
.leader-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.leader-badge {
  display: inline-block;
  align-self: flex-start;
  background: #806329;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 1px 6px;
  border-radius: 4px;
  margin-bottom: 2px;
}
.leader-email {
  color: var(--muted);
  font-size: 12px;
}
.leader-hint {
  margin-top: 6px;
  font-size: 11px;
  color: #635327;
  line-height: 1.4;
}

/* Sidebar Project Items & Editing */
.sideProjectItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 6px;
  margin-bottom: 2px;
  transition: background 0.15s ease;
}
.sideProjectItem:hover {
  background: rgba(0, 0, 0, 0.05);
}
.sideProjectItem.selected {
  background: rgba(20, 69, 43, 0.09);
}
.sideProjectBtn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  padding: 6px 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  border-radius: 6px;
}
.sideProjectBtn span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sideProjectEdit {
  opacity: 0;
  background: transparent;
  border: 0;
  padding: 3px 6px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  border-radius: 4px;
  transition: opacity 0.15s, color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.sideProjectItem:hover .sideProjectEdit,
.sideProjectItem.selected .sideProjectEdit {
  opacity: 1;
}
.sideProjectEdit:hover {
  color: var(--green);
  background: rgba(0, 0, 0, 0.06);
}
.sideProjectAdd {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 6px 8px;
  background: transparent;
  border: 1px dashed var(--border);
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}
.sideProjectAdd:hover {
  border-color: var(--green);
  color: var(--green);
  background: rgba(20, 69, 43, 0.04);
}

/* Toolbar Project Filter Inline Edit */
.project-filter-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-inline-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 9px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-inline-edit:hover {
  color: var(--green);
  border-color: var(--green);
  background: #f4f8f5;
}

/* Reports Project Edit Button */
.btn-edit-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  margin-left: 8px;
  vertical-align: middle;
  transition: all 0.15s ease;
}
.btn-edit-badge:hover {
  color: var(--green);
  border-color: var(--green);
  background: #f0f7f2;
}

.modal-sub-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  margin-bottom: 0;
}

/* Projects Page & Interactive Project Cards */
.projects-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.project-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 260px;
}
.project-search-wrap .ico {
  position: absolute;
  left: 10px;
  width: 15px;
  height: 15px;
  color: var(--muted);
  pointer-events: none;
}
.project-search-wrap input {
  width: 100%;
  padding: 8px 30px 8px 32px;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
}
.projects-count-badge {
  font-size: 13px;
  color: var(--muted);
}
.projects-count-badge strong {
  color: var(--ink);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 10px;
}
.project-card-item {
  background: var(--card, #fff);
  border: 1px solid var(--border, #d9ded5);
  border-radius: 10px;
  padding: 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all .18s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.project-card-item:hover {
  transform: translateY(-2px);
  border-color: var(--green, #37583f);
  box-shadow: 0 6px 16px rgba(0,0,0,0.07);
}
.project-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.project-card-title-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.project-card-title-group .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}
.project-card-name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink, #1f2d24);
  line-height: 1.3;
}
.project-card-org {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.project-card-org .ico {
  width: 12px;
  height: 12px;
}
.btn-project-edit-pill {
  background: #f4f6f1;
  border: 1px solid #d5dbcf;
  border-radius: 4px;
  font-size: 11px;
  padding: 3px 8px;
  color: #3b5042;
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
}
.btn-project-edit-pill:hover {
  background: #e2ede5;
  color: var(--green);
  border-color: var(--green);
}
.project-card-progress {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.progress-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.progress-labels strong {
  color: var(--ink);
  font-weight: 700;
}
.progress-track {
  width: 100%;
  height: 6px;
  background: #e8ece5;
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #37583f, #4a7755);
  border-radius: 3px;
  transition: width .3s ease;
}
.project-stats-boxes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  background: #f8faf6;
  border: 1px solid #e7ebe3;
  border-radius: 6px;
  padding: 8px 6px;
  text-align: center;
}
.pstat-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pstat-box small {
  font-size: 10px;
  color: var(--muted);
}
.pstat-box b {
  font-size: 13px;
  color: var(--ink);
}
.pstat-box.doing b { color: #ad8652; }
.pstat-box.review b { color: #5f7587; }
.pstat-box.done b { color: #2e533b; }
.pstat-box.late.is-late b { color: #c93b2b; }
.project-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid #f0f3ed;
  margin-top: auto;
}
.project-assignees {
  display: flex;
  align-items: center;
  gap: 4px;
}
.project-assignees .avatar {
  width: 24px;
  height: 24px;
  font-size: 10px;
}
.assignees-more {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  background: #edf1e9;
  border-radius: 10px;
  padding: 2px 6px;
}
.assignees-empty {
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
}
.btn-enter-card {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #eef4ed;
  border: 1px solid #c8d7c6;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  cursor: pointer;
  transition: all .15s ease;
}
.btn-enter-card:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.btn-enter-card .arrow {
  transition: transform .15s ease;
}
.btn-enter-card:hover .arrow {
  transform: translateX(3px);
}
.sideProjectsHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.sideProjectsViewAll {
  background: transparent;
  border: none;
  font-size: 10px;
  font-weight: 600;
  color: var(--green);
  cursor: pointer;
  padding: 1px 4px;
  border-radius: 3px;
}
.sideProjectsViewAll:hover, .sideProjectsViewAll.active {
  background: #e2ede5;
  text-decoration: underline;
}
.project-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  gap: 12px;
}
.project-empty-state .ico {
  width: 48px;
  height: 48px;
  color: var(--muted);
}

/* Card & Table Supervisor Badges */
.card-people-badges {
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-sup-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #eef2f6;
  border: 1px solid #c9d5e3;
  border-radius: 12px;
  padding: 1px 6px 1px 7px;
  font-size: 10px;
  color: #2b4c6f;
  font-weight: 500;
}
.card-sup-badge small {
  font-size: 9px;
  text-transform: uppercase;
  color: #557292;
  letter-spacing: 0.3px;
}
.card-sup-badge .avatar {
  width: 18px;
  height: 18px;
  min-width: 18px;
  font-size: 8px;
}
.badge-supervisor {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  background: #eef2f6;
  color: #244161;
  border: 1px solid #cbd7e6;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

/* Detail Modal Tabs Bar */
.detail-tabs-bar {
  display: flex;
  gap: 8px;
  margin: 16px 0 14px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 2px;
}
.detail-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  transition: all .15s ease;
}
.detail-tab-btn:hover {
  color: var(--ink);
  background: #f1f3ed;
}
.detail-tab-btn.active {
  color: var(--green);
  border-bottom-color: var(--green);
  background: #ebf2eb;
}
.detail-tab-btn .ico {
  width: 15px;
  height: 15px;
}

/* History Timeline Styles */
.history-view {
  margin-top: 10px;
}
.history-timeline {
  position: relative;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.history-timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 6px;
  width: 2px;
  background: var(--line);
}
.history-item {
  position: relative;
  display: flex;
  align-items: flex-start;
}
.history-bullet {
  position: absolute;
  left: -20px;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #c4d7c7;
  z-index: 1;
}
.history-bubble {
  flex: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.history-bubble.fallback {
  background: #fdfcf9;
}
.history-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}
.history-actor {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.history-actor .avatar {
  width: 22px;
  height: 22px;
  min-width: 22px;
  font-size: 9px;
}
.history-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.tag-created { background: #d7edd8; color: #1e5a26; }
.tag-reassigned { background: #ebdff7; color: #55277f; }
.tag-supervisor { background: #d9ecf8; color: #195279; }
.tag-delegated { background: #fcebd2; color: #874b09; }
.tag-status { background: #e0e6fb; color: #22378a; }
.tag-priority { background: #fbe0d8; color: #8c2e17; }
.tag-edited { background: #ecefe9; color: #3c4942; }
.tag-comment { background: #dcf2ee; color: #156154; }
.tag-default { background: #edece8; color: #595854; }

.history-time {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}
.history-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #2d3731;
  word-break: break-word;
}
.history-empty {
  padding: 8px 0;
}

/* Comments View Styling */
.comments-view {
  margin-top: 10px;
}
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 14px;
}
.comment-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.comment-head .avatar {
  width: 22px;
  height: 22px;
  min-width: 22px;
  font-size: 9px;
}
.comment-head strong {
  font-size: 12px;
}
.comment-head small {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}
.comment-form {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.comment-form textarea {
  width: 100%;
  margin-top: 6px;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.created-me-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  background: #e3f2fd;
  color: #1565c0;
  border: 1px solid #bbdefb;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
}
