* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:'Segoe UI',-apple-system,BlinkMacSystemFont,sans-serif; background:#f7f7f7; color:#333; font-size:13px; }

/* === HEADER BAR === */
.header-bar { background:#fff; border-bottom:1px solid #e0e0e0; padding:6px 24px; display:flex; align-items:center; gap:8px; font-size:13px; }
.header-bar .brand { color:#d04a02; font-weight:700; font-size:15px; font-style:italic; margin-right:12px; }
.header-bar select { border:none; font-size:13px; color:#333; padding:4px 8px; cursor:pointer; background:transparent; font-weight:500; }
.header-bar .separator { color:#ccc; margin:0 4px; }
.header-bar .client-overview { margin-left:auto; color:#d04a02; font-size:12px; font-weight:500; cursor:pointer; }

/* === ACCENT === */
.accent-bar { height:3px; background:linear-gradient(90deg,#d04a02,#ff6b35,#d04a02); }

/* === NAV === */
.nav-bar { background:#fff; border-bottom:1px solid #e0e0e0; display:flex; padding:0 24px; position:relative; }
.nav-dropdown { position:relative; display:inline-flex; }
.nav-dropdown-menu { display:none; position:absolute; top:100%; left:0; background:#fff; border:1px solid #e0e0e0; box-shadow:0 4px 12px rgba(0,0,0,0.1); min-width:200px; z-index:100; border-radius:0 0 3px 3px; }
.nav-dropdown-menu.show { display:block; }
.nav-dropdown-menu a { display:block; padding:10px 16px; font-size:13px; color:#333; text-decoration:none; cursor:pointer; }
.nav-dropdown-menu a:hover { background:#f5f5f5; color:#d04a02; }
.nav-item { padding:11px 14px; font-size:13px; color:#333; cursor:pointer; border-bottom:2px solid transparent; text-decoration:none; font-weight:400; white-space:nowrap; }
.nav-item:hover { color:#d04a02; }
.nav-item.active { color:#d04a02; border-bottom-color:#d04a02; font-weight:500; }

/* === MAIN === */
.main { padding:0 24px 40px; }

/* === DELIVERABLES BANNER === */
.del-banner { background:#fff; border:1px solid #e8e8e8; margin-top:12px; }
.del-banner-header { padding:14px 20px 6px; font-size:14px; font-weight:600; display:flex; }
.del-banner-header .link { margin-left:auto; color:#d04a02; font-size:12px; cursor:pointer; font-weight:500; }
.del-banner-sub { padding:0 20px 8px; color:#666; font-size:12px; }
.progress-track { margin:0 20px 10px; height:5px; background:#e9ecef; border-radius:3px; display:flex; overflow:hidden; }
.progress-track .seg-firm { background:#0072c6; }
.progress-track .seg-client { background:#ffb81c; }
.progress-track .seg-done { background:#28a745; }
.del-badges { padding:4px 20px 14px; display:flex; gap:20px; font-size:12px; color:#555; }
.dot { width:8px; height:8px; border-radius:50%; display:inline-block; margin-right:5px; vertical-align:middle; }
.dot-firm { background:#0072c6; }
.dot-client { background:#ffb81c; }
.dot-done { background:#28a745; }
.del-badges .pct { margin-left:auto; color:#888; }

/* === GRID === */
.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:12px; }
.grid-3 { display:grid; grid-template-columns:1fr 1fr 1fr; gap:12px; margin-top:12px; }
.card { background:#fff; border:1px solid #e8e8e8; }
.card-title { padding:12px 16px; font-size:13px; font-weight:600; border-bottom:1px solid #f0f0f0; display:flex; }
.card-title .link { margin-left:auto; color:#d04a02; font-size:11px; cursor:pointer; font-weight:500; }
.card-body { padding:16px; }

/* === EMPTY STATE === */
.empty { text-align:center; padding:28px 16px; }
.empty .ico { font-size:44px; opacity:0.35; margin-bottom:8px; }
.empty h3 { font-size:14px; font-weight:600; color:#555; margin-bottom:4px; }
.empty p { font-size:11px; color:#999; margin-bottom:12px; }
.btn-view { display:inline-block; padding:6px 18px; background:#d04a02; color:#fff; border:none; border-radius:3px; font-size:12px; cursor:pointer; text-decoration:none; font-weight:500; }
.btn-view:hover { background:#b83e02; }

/* === DOC LIST === */
.doc-row { display:flex; align-items:flex-start; padding:7px 0; border-bottom:1px solid #f5f5f5; gap:8px; }
.doc-row .d-ico { color:#28a745; font-size:15px; flex-shrink:0; }
.doc-row .d-name { color:#0066cc; font-weight:500; font-size:12px; }
.doc-row .d-meta { font-size:10px; color:#999; }
.doc-row .d-ver { margin-left:auto; color:#999; font-size:10px; }

/* === TEAM === */
.team-tabs { display:flex; border-bottom:1px solid #e8e8e8; }
.team-tab { padding:8px 16px; font-size:12px; color:#d04a02; cursor:pointer; border-bottom:2px solid transparent; font-weight:500; }
.team-tab.active { border-bottom-color:#d04a02; }

/* === PAGE HEADER === */
.page-bar { display:flex; align-items:center; padding:14px 0 10px; }
.page-title { font-size:17px; font-weight:600; }
.page-actions { margin-left:auto; display:flex; gap:8px; }
.btn-orange { background:#d04a02; color:#fff; border:none; padding:7px 16px; border-radius:3px; font-size:12px; cursor:pointer; font-weight:600; }
.btn-orange:hover { background:#b83e02; }
.btn-gray { background:#fff; color:#555; border:1px solid #ccc; padding:5px 12px; border-radius:3px; font-size:11px; cursor:pointer; }

/* === STATUS CARDS (Tasks page) === */
.status-cards { display:flex; gap:0; }
.s-card { flex:1; border:1px solid #e0e0e0; padding:10px 16px; display:flex; align-items:center; justify-content:space-between; background:#fff; font-size:12px; cursor:pointer; }
.s-card .s-label { display:flex; align-items:center; gap:6px; color:#555; }
.s-card .s-count { font-size:22px; font-weight:600; color:#333; }
.s-card.active { border:2px solid #d04a02; background:#fff8f5; }

/* === TOOLBAR === */
.toolbar { display:flex; align-items:center; padding:6px 12px; background:#fafafa; border:1px solid #e8e8e8; border-top:none; gap:8px; font-size:11px; color:#888; }
.toolbar .t-right { margin-left:auto; display:flex; gap:6px; align-items:center; }
.toolbar input { border:1px solid #ddd; padding:4px 8px; border-radius:3px; font-size:11px; width:160px; }
.toolbar .t-btn { border:1px solid #ccc; background:#fff; padding:3px 10px; border-radius:3px; font-size:11px; cursor:pointer; font-weight:500; }

/* === TABLE === */
.tbl { width:100%; border-collapse:collapse; background:#fff; border:1px solid #e8e8e8; border-top:none; }
.tbl th { background:#fafafa; padding:9px 10px; text-align:left; font-weight:600; color:#555; font-size:11px; border-bottom:1px solid #e0e0e0; white-space:nowrap; }
.tbl td { padding:9px 10px; border-bottom:1px solid #f2f2f2; font-size:12px; }
.tbl tr:hover td { background:#fafafa; }

/* === TAGS === */
.tag { display:inline-block; padding:2px 8px; border-radius:3px; font-size:10px; font-weight:500; }
.tag-firm { background:#e3f2fd; color:#0072c6; }
.tag-client { background:#fff8e1; color:#f57f17; }
.tag-done { background:#e8f5e9; color:#2e7d32; }
.tag-ns { background:#f5f5f5; color:#666; }
.tag-draft { background:#f5f5f5; color:#888; }
.tag-final { background:#e8f5e9; color:#2e7d32; }

/* === CALENDAR === */
.cal-bar { display:flex; align-items:center; gap:8px; padding:14px 0 10px; }
.cal-btn { background:#fff; border:1px solid #ccc; padding:4px 10px; border-radius:3px; font-size:12px; cursor:pointer; }
.cal-month { font-size:14px; font-weight:500; }
.cal-right { margin-left:auto; display:flex; gap:8px; align-items:center; }
.cal-dd { background:#d04a02; color:#fff; border:none; padding:4px 12px; border-radius:3px; font-size:11px; font-weight:600; }
.cal-dc { background:#fff; border:1px solid #ccc; padding:4px 12px; border-radius:3px; font-size:11px; color:#555; }
.cal-grid { display:grid; grid-template-columns:repeat(7,1fr); background:#fff; border:1px solid #e8e8e8; }
.cal-dh { padding:8px; text-align:center; font-size:11px; font-weight:600; color:#555; background:#fafafa; border-bottom:1px solid #e8e8e8; }
.cal-cell { min-height:80px; padding:4px 6px; border-right:1px solid #f0f0f0; border-bottom:1px solid #f0f0f0; }
.cal-cell .c-num { font-size:12px; color:#888; }
.cal-cell .c-num.today { background:#d04a02; color:#fff; border-radius:50%; width:22px; height:22px; display:inline-flex; align-items:center; justify-content:center; }
.cal-cell .c-evt { font-size:9px; background:#fdecea; color:#d04a02; padding:1px 4px; border-radius:2px; margin-top:2px; display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; cursor:pointer; }
.cal-cell .c-evt.milestone { background:#e3f2fd; color:#0072c6; }

/* === HEALTH SCORE === */
.hs-val { font-size:32px; font-weight:700; text-align:center; }
.hs-bar { height:5px; border-radius:3px; margin:6px auto 14px; max-width:180px; }
.factor { display:flex; align-items:center; padding:3px 0; font-size:11px; }
.factor .f-lbl { width:140px; color:#666; }
.factor .f-bar { flex:1; height:4px; background:#e9ecef; border-radius:2px; margin:0 8px; overflow:hidden; }
.factor .f-bar .f-fill { height:100%; background:#28a745; border-radius:2px; }
.factor .f-val { width:36px; text-align:right; color:#333; font-weight:500; }

/* === GATE === */
.gate-block { background:#fdecea; border:1px solid #f5c6cb; padding:10px 16px; border-radius:3px; margin-bottom:10px; color:#721c24; font-size:12px; }
.gate-ok { background:#d4edda; border:1px solid #c3e6cb; padding:10px 16px; border-radius:3px; margin-bottom:10px; color:#155724; font-size:12px; }

/* === MISC === */
.help-btn { position:fixed; bottom:20px; left:20px; width:36px; height:36px; background:#d04a02; color:#fff; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:18px; font-weight:700; cursor:pointer; box-shadow:0 2px 8px rgba(0,0,0,0.2); }
.footer { padding:12px 24px; border-top:1px solid #e0e0e0; font-size:10px; color:#999; display:flex; justify-content:space-between; }
.footer a { color:#d04a02; text-decoration:none; margin:0 4px; }
select.inline { font-size:11px; border:1px solid #ddd; padding:2px 4px; border-radius:3px; }
textarea.comment-input { width:100%; border:1px solid #ddd; border-radius:3px; padding:8px; font-size:12px; resize:vertical; font-family:inherit; }
input.field { border:1px solid #ddd; padding:6px 8px; border-radius:3px; font-size:12px; width:100%; font-family:inherit; }
