/* ============ PANELS ============ */
  .panel{
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:var(--radius-md);
    box-shadow:var(--shadow-sm);
  }
  .panel-header{
    display:flex;align-items:center;justify-content:space-between;
    padding:16px 20px;
    border-bottom:1px solid var(--border);
  }
  .panel-header h3{font-size:14.5px;font-weight:700;}
  .panel-header .ph-sub{font-size:12px;color:var(--text-tertiary);margin-top:2px;}
  .panel-link{font-size:12.5px;font-weight:600;color:var(--accent);}
  .panel-link:hover{text-decoration:underline;}

  /* ============ TABLE ============ */
  .table-toolbar{
    display:flex;align-items:center;justify-content:space-between;
    padding:14px 20px;
    gap:12px;
    flex-wrap:wrap;
  }
  .filter-chips{display:flex;gap:6px;flex-wrap:wrap;}
  .chip{
    font-size:12px;font-weight:600;
    padding:6px 12px;border-radius:20px;
    border:1px solid var(--border-strong);
    color:var(--text-secondary);
    background:var(--surface);
  }
  .chip:hover{background:var(--bg);}
  .chip.active{background:var(--navy);color:#fff;border-color:var(--navy);}

  table{width:100%;border-collapse:collapse;}
  thead tr{border-top:1px solid var(--border);border-bottom:1px solid var(--border);}
  th{
    text-align:left;
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:0.05em;
    color:var(--text-tertiary);
    font-weight:700;
    padding:11px 20px;
    background:#FAFBFC;
    white-space:nowrap;
  }
  td{
    padding:14px 20px;
    border-bottom:1px solid var(--border);
    font-size:13.5px;
    vertical-align:middle;
  }
  tbody tr{cursor:pointer;transition:background 0.1s ease;}
  tbody tr:hover{background:#FAFBFD;}
  tbody tr:last-child td{border-bottom:none;}
  .proj-name{font-weight:700;color:var(--text);}
  .proj-loc{font-size:12px;color:var(--text-tertiary);margin-top:2px;}
  .cell-muted{color:var(--text-secondary);}
  .cell-strong{font-weight:700;font-variant-numeric:tabular-nums;}

  .status-badge{
    display:inline-flex;align-items:center;gap:6px;
    font-size:11.5px;font-weight:700;
    padding:5px 10px;border-radius:20px;
    white-space:nowrap;
  }
  .status-badge .dot{width:6px;height:6px;border-radius:50%;}

  .progress-mini{width:90px;height:6px;border-radius:4px;background:var(--border);overflow:hidden;}
  .progress-mini > div{height:100%;border-radius:4px;background:var(--accent);}

  .avatar-sm{
    width:26px;height:26px;border-radius:50%;
    background:linear-gradient(155deg,#4472DB,#1B3E8E);
    color:#fff;display:inline-flex;align-items:center;justify-content:center;
    font-size:10.5px;font-weight:700;
  }

  .chevron-cell{color:var(--text-tertiary);text-align:right;}

  /* ============ PROJECT DETAIL ============ */
  .detail-header{
    display:flex;justify-content:space-between;align-items:flex-start;
    margin-bottom:18px;flex-wrap:wrap;gap:14px;
  }
  .detail-title-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;}
  .detail-title-row h2{font-size:22px;font-weight:800;letter-spacing:-0.01em;}
  .detail-sub{color:var(--text-secondary);font-size:13px;margin-top:4px;}
  .detail-actions{display:flex;gap:8px;}

  .detail-meta-grid{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:0;
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:var(--radius-md);
    margin-bottom:20px;
    box-shadow:var(--shadow-sm);
  }
  .meta-item{
    padding:14px 18px;
    border-right:1px solid var(--border);
  }
  .meta-item:last-child{border-right:none;}
  .meta-label{font-size:11px;text-transform:uppercase;letter-spacing:0.05em;color:var(--text-tertiary);font-weight:700;}
  .meta-value{font-size:15px;font-weight:700;margin-top:5px;font-family:'Manrope',sans-serif;}
  .meta-value.small{font-size:13.5px;font-weight:600;}

  .tabs{
    display:flex;gap:2px;
    border-bottom:1px solid var(--border);
    margin-bottom:20px;
    overflow-x:auto;
    overflow-y:hidden;
    white-space:nowrap;
    scrollbar-width:thin;
  }
  .tabs::-webkit-scrollbar{height:4px;}
  .tabs::-webkit-scrollbar-thumb{background:var(--border-strong);border-radius:4px;}
  .tab-btn{
    padding:10px 4px;
    margin-right:22px;
    font-size:13.5px;font-weight:600;
    color:var(--text-tertiary);
    border-bottom:2px solid transparent;
    flex-shrink:0;
    background:none;
    border-top:none;border-left:none;border-right:none;
  }
  .tab-btn:hover{color:var(--text);}
  .tab-btn.active{color:var(--accent);border-bottom-color:var(--accent);}
  .tab-panel{display:none;}
  .tab-panel.active{display:block;}

  .overview-grid{display:grid;grid-template-columns:2fr 1fr;gap:16px;}
  .info-row{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--border);font-size:13px;}
  .info-row:last-child{border-bottom:none;}
  .info-row .k{color:var(--text-secondary);}
  .info-row .v{font-weight:600;}
  .desc-text{font-size:13.5px;color:var(--text-secondary);line-height:1.7;padding:16px 20px;}

  /* pipeline stepper on detail */
  .stepper{display:flex;align-items:center;padding:20px;}
  .step{flex:1;display:flex;flex-direction:column;align-items:center;position:relative;}
  .step-dot{
    width:26px;height:26px;border-radius:50%;
    display:flex;align-items:center;justify-content:center;
    font-size:11px;font-weight:800;color:#fff;
    border:3px solid var(--surface);
    box-shadow:0 0 0 1px var(--border-strong);
    z-index:2;
  }
  .step-line{
    position:absolute;top:13px;left:calc(-50% + 13px);width:calc(100% - 26px);height:2px;
    background:var(--border-strong); z-index:1;
  }
  .step:first-child .step-line{display:none;}
  .step-label{font-size:10.5px;font-weight:700;margin-top:8px;text-align:center;color:var(--text-tertiary);text-transform:uppercase;letter-spacing:0.03em;}
  .step.done .step-dot{background:var(--accent);box-shadow:0 0 0 1px var(--accent);}
  .step.done .step-line{background:var(--accent);}
  .step.current .step-dot{background:#fff;color:var(--accent);border-color:var(--accent-tint);box-shadow:0 0 0 2px var(--accent);}
  .step.current .step-label{color:var(--accent);}
  .step.done .step-label{color:var(--text);}

  /* ============ DUE DILIGENCE ============ */
  .dd-summary-bar{
    display:flex;align-items:center;gap:16px;
    padding:16px 20px;border-bottom:1px solid var(--border);
  }
  .dd-progress-track{flex:1;height:8px;border-radius:5px;background:var(--border);overflow:hidden;}
  .dd-progress-track > div{height:100%;background:var(--teal);border-radius:5px;}
  .dd-progress-label{font-size:12.5px;font-weight:700;color:var(--text-secondary);white-space:nowrap;}

  .dd-list{padding:6px 10px;}
  .dd-row{
    display:flex;align-items:center;gap:14px;
    padding:13px 12px;
    border-bottom:1px solid var(--border);
  }
  .dd-row:last-child{border-bottom:none;}
  .dd-check{
    width:20px;height:20px;border-radius:5px;
    border:2px solid var(--border-strong);
    display:flex;align-items:center;justify-content:center;
    flex-shrink:0;
  }
  .dd-check svg{width:12px;height:12px;color:#fff;display:none;}
  .dd-row.complete .dd-check{background:var(--green);border-color:var(--green);}
  .dd-row.complete .dd-check svg{display:block;}
  .dd-row.inprogress .dd-check{border-color:var(--amber);}
  .dd-main{flex:1;min-width:0;}
  .dd-name{font-size:13.5px;font-weight:600;}
  .dd-row.complete .dd-name{color:var(--text-secondary);text-decoration:line-through;text-decoration-color:var(--border-strong);}
  .dd-cat{font-size:11.5px;color:var(--text-tertiary);margin-top:2px;}
  .dd-meta{display:flex;align-items:center;gap:16px;flex-shrink:0;}
  .dd-assignee{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--text-secondary);}
  .dd-due{font-size:12px;color:var(--text-tertiary);width:78px;text-align:right;}
  .dd-status-pill{width:100px;}

  /* ============ TASK BOARD ============ */
  .board{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:14px;
    align-items:start;
  }
  .board-col{
    background:#F7F8FA;
    border:1px solid var(--border);
    border-radius:var(--radius-md);
    padding:12px;
    min-height:120px;
  }
  .board-col-header{
    display:flex;align-items:center;justify-content:space-between;
    padding:4px 6px 12px;
  }
  .board-col-title{
    font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:0.04em;
    display:flex;align-items:center;gap:8px;
  }
  .board-col-title .dot{width:8px;height:8px;border-radius:50%;}
  .board-count{
    font-size:11px;font-weight:700;color:var(--text-tertiary);
    background:var(--surface);border:1px solid var(--border);
    padding:1px 8px;border-radius:20px;
  }
  .task-card{
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:var(--radius-sm);
    padding:12px 12px 11px;
    margin-bottom:10px;
    box-shadow:var(--shadow-sm);
  }
  .task-card:hover{border-color:var(--border-strong);}
  .task-proj-tag{
    font-size:10px;font-weight:700;color:var(--accent);
    background:var(--accent-tint);
    display:inline-block;padding:2px 8px;border-radius:5px;
    margin-bottom:8px;
  }
  .task-title{font-size:13px;font-weight:600;line-height:1.4;margin-bottom:10px;}
  .task-footer{display:flex;align-items:center;justify-content:space-between;}
  .priority-tag{
    font-size:10.5px;font-weight:700;
    padding:2px 8px;border-radius:5px;
  }
  .priority-high{background:var(--red-tint);color:var(--red);}
  .priority-med{background:var(--amber-tint);color:var(--amber);}
  .priority-low{background:var(--teal-tint);color:var(--teal);}
  .task-due{font-size:11px;color:var(--text-tertiary);}

  /* ============ DOCUMENTS ============ */
  .doc-icon{
    width:34px;height:34px;border-radius:8px;
    display:flex;align-items:center;justify-content:center;
    flex-shrink:0;
  }
  .doc-icon svg{width:16px;height:16px;}
  .doc-name-cell{display:flex;align-items:center;gap:12px;}
  .doc-cat-pill{
    font-size:11px;font-weight:600;color:var(--text-secondary);
    background:var(--bg);border:1px solid var(--border);
    padding:3px 9px;border-radius:20px;
  }

  /* empty state */
  .empty-state{
    text-align:center;padding:50px 20px;color:var(--text-tertiary);
  }
  .empty-state svg{width:38px;height:38px;margin-bottom:12px;opacity:0.5;}
  .empty-state p{font-size:13.5px;}

  /* ============ DETAIL: SECTION NAV ============ */
  .section-nav-wrap{
    position:sticky;
    top:61px;
    z-index:9;
    background:var(--bg);
    padding:12px 0 16px;
  }
  .section-nav{
    display:flex;gap:4px;flex-wrap:wrap;
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:11px;
    padding:6px;
    box-shadow:var(--shadow-sm);
  }
  .section-nav-btn{
    display:flex;align-items:center;gap:7px;
    font-size:12px;font-weight:600;color:var(--text-secondary);
    padding:7px 12px;border-radius:7px;white-space:nowrap;
    border:1px solid transparent;
  }
  .section-nav-btn:hover{background:var(--bg);}
  .section-nav-btn.active{background:var(--navy);color:#fff;}
  .section-nav-btn .n{
    width:16px;height:16px;border-radius:50%;
    background:var(--border);color:var(--text-tertiary);
    font-size:9.5px;display:flex;align-items:center;justify-content:center;
    font-weight:800;flex-shrink:0;font-family:'Manrope',sans-serif;
  }
  .section-nav-btn.active .n{background:rgba(255,255,255,0.25);color:#fff;}

  .detail-sections{display:flex;flex-direction:column;gap:30px;}
  .detail-section{scroll-margin-top:128px;}
  .section-heading{display:flex;align-items:center;gap:10px;margin-bottom:12px;}
  .section-heading .section-num{
    width:25px;height:25px;border-radius:7px;
    background:var(--navy);color:#fff;
    font-size:11.5px;font-weight:800;
    display:flex;align-items:center;justify-content:center;
    font-family:'Manrope',sans-serif;flex-shrink:0;
  }
  .section-heading h3{font-size:15.5px;font-weight:800;}
  .section-heading .sh-sub{font-size:12px;color:var(--text-tertiary);font-weight:500;margin-left:2px;}

  /* stat tiles (acquisition highlights) */
  .stat-tiles{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:18px 20px 6px;}
  .stat-tile{background:var(--bg);border:1px solid var(--border);border-radius:10px;padding:14px 16px;}
  .stat-tile .stat-label{font-size:10.5px;text-transform:uppercase;letter-spacing:0.05em;color:var(--text-tertiary);font-weight:700;}
  .stat-tile .stat-value{font-family:'Manrope',sans-serif;font-size:19px;font-weight:800;margin-top:5px;}

  .tag-list{display:flex;flex-wrap:wrap;gap:8px;padding:14px 20px 20px;}
  .tag-pill{
    font-size:12px;font-weight:600;color:var(--text-secondary);
    background:var(--bg);border:1px solid var(--border);
    padding:5px 11px 5px 8px;border-radius:20px;display:flex;align-items:center;gap:6px;
  }
  .tag-pill svg{width:12px;height:12px;color:var(--accent);flex-shrink:0;}
  .tag-list-label{font-size:11px;text-transform:uppercase;letter-spacing:0.05em;color:var(--text-tertiary);font-weight:700;padding:4px 20px 0;}

  /* status rows (utilities / entitlements) */
  .status-row-list{padding:2px 4px;}
  .status-row{display:flex;align-items:flex-start;gap:14px;padding:15px 18px;border-bottom:1px solid var(--border);}
  .status-row:last-child{border-bottom:none;}
  .status-row-icon{
    width:34px;height:34px;border-radius:8px;
    background:var(--accent-tint);
    display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:1px;
  }
  .status-row-icon svg{width:16px;height:16px;color:var(--accent);}
  .status-row-main{flex:1;min-width:0;}
  .status-row-top{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;}
  .status-row-title{font-size:13.5px;font-weight:700;}
  .status-row-provider{font-size:12px;color:var(--text-tertiary);margin-top:2px;}
  .status-row-note{font-size:12.5px;color:var(--text-secondary);margin-top:7px;line-height:1.6;}

  /* milestones timeline */
  .milestone-list{padding:18px 20px 22px;}
  .milestone-item{display:flex;gap:14px;position:relative;padding-bottom:24px;}
  .milestone-item:last-child{padding-bottom:0;}
  .milestone-line{position:absolute;left:11px;top:24px;bottom:-2px;width:2px;background:var(--border-strong);}
  .milestone-item:last-child .milestone-line{display:none;}
  .milestone-dot{
    width:24px;height:24px;border-radius:50%;background:var(--surface);
    border:2px solid var(--border-strong);
    display:flex;align-items:center;justify-content:center;flex-shrink:0;z-index:1;
  }
  .milestone-dot svg{display:none;width:12px;height:12px;color:#fff;}
  .milestone-item.complete .milestone-dot{background:var(--green);border-color:var(--green);}
  .milestone-item.complete .milestone-dot svg{display:block;}
  .milestone-item.complete .milestone-line{background:var(--green);}
  .milestone-item.in-progress .milestone-dot{border-color:var(--accent);}
  .milestone-main{flex:1;display:flex;justify-content:space-between;align-items:flex-start;gap:10px;flex-wrap:wrap;padding-top:2px;}
  .milestone-name{font-size:13.5px;font-weight:700;}
  .milestone-target{font-size:12px;color:var(--text-tertiary);margin-top:3px;}

  /* risks */
  .risks-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
  .risk-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);padding:16px 18px;box-shadow:var(--shadow-sm);}
  .risk-card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:10px;}
  .risk-text{font-size:13px;font-weight:600;line-height:1.55;}
  .risk-mitigation{font-size:12.5px;color:var(--text-secondary);line-height:1.6;padding-top:11px;margin-top:11px;border-top:1px dashed var(--border);}
  .risk-mitigation b{color:var(--text);font-weight:700;}
  .severity-pill{font-size:10.5px;font-weight:800;padding:3px 9px;border-radius:20px;white-space:nowrap;text-transform:uppercase;letter-spacing:0.03em;}

  @media (max-width: 900px){
    .risks-grid{grid-template-columns:1fr;}
    .stat-tiles{grid-template-columns:1fr;}
  }

/* ============ NOTIFICATIONS DROPDOWN ============ */
.notif-wrap{position:relative;}
.notif-dot{
  position:absolute; top:6px; right:6px;
  width:8px;height:8px;border-radius:50%;
  background:var(--red, #C0392B);
  border:2px solid var(--surface);
}
.notif-dot.hidden{display:none;}
.notif-panel{
  position:absolute; top:calc(100% + 10px); right:0;
  width:340px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-md);
  z-index:60;
  display:none;
  overflow:hidden;
}
.notif-panel.open{display:block;}
.notif-panel-header{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 16px;border-bottom:1px solid var(--border);
}
.notif-panel-header h4{font-size:13.5px;font-weight:700;}
.notif-mark-read{background:none;border:none;font-size:12px;font-weight:600;color:var(--accent);}
.notif-mark-read:hover{text-decoration:underline;}
.notif-list{max-height:340px;overflow-y:auto;padding:6px;}
.notif-item{
  display:flex;gap:10px;padding:11px 10px;border-radius:8px;
}
.notif-item:hover{background:var(--bg);}
.notif-item .notif-icon-dot{width:8px;height:8px;border-radius:50%;margin-top:5px;flex-shrink:0;}
.notif-item .notif-text{font-size:12.5px;color:var(--text);line-height:1.5;}
.notif-item .notif-text b{font-weight:600;}
.notif-item .notif-time{font-size:11px;color:var(--text-tertiary);margin-top:2px;}
.notif-item.unread{background:var(--accent-tint, #EAF0FE);}
.notif-item.unread:hover{background:var(--accent-tint, #EAF0FE);}

/* ============ MODAL ============ */
.modal-overlay{
  display:none;
  position:fixed; inset:0;
  background:rgba(10,26,48,0.55);
  z-index:100;
  align-items:center;justify-content:center;
  padding:20px;
}
.modal-overlay.open{display:flex;}
.modal{
  background:var(--surface);
  border-radius:var(--radius-md);
  width:100%;max-width:560px;
  max-height:90vh;
  overflow-y:auto;
  box-shadow:var(--shadow-md);
}
.modal-header{
  display:flex;align-items:center;justify-content:space-between;
  padding:18px 22px;border-bottom:1px solid var(--border);
  position:sticky;top:0;background:var(--surface);z-index:1;
}
.modal-header h3{font-size:16px;font-weight:800;}
.modal-close{
  width:30px;height:30px;border-radius:7px;border:1px solid var(--border);
  background:var(--surface);display:flex;align-items:center;justify-content:center;
  color:var(--text-secondary);
}
.modal-close:hover{background:var(--bg);}
.modal-close svg{width:14px;height:14px;}
.modal-body{padding:20px 22px 22px;}
.modal-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:6px;}

/* ============ FORM FIELDS (project wizard) ============ */
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px;}
.form-row-3{grid-template-columns:1.6fr 1.6fr 0.8fr;}
.form-field{display:flex;flex-direction:column;gap:6px;}
.form-field.full{grid-column:1/-1;}
.form-field label{font-size:12.5px;font-weight:600;color:var(--text-secondary);}
.form-field input, .form-field select, .form-field textarea{
  border:1px solid var(--border-strong);border-radius:8px;
  padding:10px 12px;font-size:13.5px;font-family:inherit;color:var(--text);
  background:var(--surface);width:100%;
}
.form-field textarea{resize:vertical;min-height:80px;line-height:1.5;}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus{
  outline:2px solid var(--accent);outline-offset:1px;border-color:var(--accent);
}
.form-field input::placeholder, .form-field textarea::placeholder{color:var(--text-tertiary);}
@media (max-width: 560px){
  .form-row, .form-row-3{grid-template-columns:1fr;}
}

/* AXIA-044C: Calculator key — layers on top of .btn-secondary (kept,
   not duplicated: still provides background/border/border-radius from
   there). Adds only what .btn-secondary doesn't already do for a
   single-character key: perfect horizontal+vertical centering (flex,
   not manual padding/line-height), equal height, and one consistent
   font-size/weight across every key, including operators (previously
   inconsistent — operators were bolder than digits). */
.calc-key{
  justify-content:center;
  align-items:center;
  height:44px;
  font-size:15px;
  font-weight:600;
  line-height:1;
}
