/* ==========================================================
   BIZPRO CRM — UI/UX polish layer (loads after style.css)
   ========================================================== */
:root { --focus: 0 0 0 3px rgba(128,208,199,.45); }
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
::selection { background: rgba(128,208,199,.45); }

/* Top bar: sticky, glassy */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.topbar h1 { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 38vw; }

/* Sidebar */
.sidebar { overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; }
.nav-label { margin-top: 14px; letter-spacing: .09em; }
.nav-link { border-radius: 8px; margin: 1px 10px; transition: background .15s var(--ease), transform .15s var(--ease); }
.nav-link:hover { background: rgba(255,255,255,.1); transform: translateX(2px); }
.nav-link.active { background: rgba(128,208,199,.22); box-shadow: inset 3px 0 0 var(--secondary); font-weight: 700; }

/* Cards */
.card { border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); transition: box-shadow .2s var(--ease); }
.card:hover { box-shadow: 0 2px 4px rgba(19,84,122,.07), 0 10px 30px rgba(19,84,122,.09); }
.card-header { padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.card-header h3 { font-size: 15px; }

/* Buttons */
.btn { border-radius: 9px; font-weight: 600; transition: transform .12s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease); cursor: pointer; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(19,84,122,.18); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: none; box-shadow: var(--focus); }
.btn-primary { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); color: #fff; border: none; }
.btn[disabled], .btn.is-loading { opacity: .65; pointer-events: none; }

/* Forms */
input, select, textarea { border: 1px solid #cdd9df; border-radius: 9px; transition: border-color .15s, box-shadow .15s; background: #fff; }
input:hover, select:hover, textarea:hover { border-color: #a9bcc6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary-light); box-shadow: var(--focus); }
label { font-size: 12px; font-weight: 700; color: #3a5161; letter-spacing: .01em; }
.form-row { margin-bottom: 12px; }
details > summary { list-style: none; } details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: '▸'; display: inline-block; margin-right: 6px; transition: transform .15s; }
details[open] > summary::before { transform: rotate(90deg); }

/* Tables */
table { border-collapse: separate; border-spacing: 0; width: 100%; }
thead th { position: sticky; top: 0; background: #F2F6F8; z-index: 2; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); border-bottom: 1px solid var(--border); }
tbody tr { transition: background .12s; }
tbody tr:hover { background: #F7FBFC; }
tbody td { border-bottom: 1px solid #EEF3F5; vertical-align: top; }

/* Pills / alerts / empty */
.pill { border-radius: 100px; padding: 3px 10px; font-size: 11px; font-weight: 700; display: inline-block; }
.alert { border-radius: 10px; }
.empty-state { text-align: center; padding: 34px 10px; color: var(--text-muted); }
.stat-card, .radar-tile { border-radius: 14px; }

/* Dashboard renewal radar + quick actions */
.radar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 14px; }
.radar-tile { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); color: var(--text); transition: transform .15s var(--ease), box-shadow .15s; }
.radar-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--text); }
.radar-tile span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.radar-tile b { font-family: 'Montserrat', sans-serif; font-size: 26px; color: var(--primary-dark); }
.radar-tile.red { border-top: 3px solid var(--danger); } .radar-tile.red b { color: var(--danger); }
.radar-tile.amber { border-top: 3px solid var(--warning); }
.quick-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.quick-actions a { background: #fff; border: 1px solid var(--border); border-radius: 100px; padding: 7px 14px; font-size: 12.5px; font-weight: 600; color: var(--primary); box-shadow: var(--shadow); transition: all .15s var(--ease); }
.quick-actions a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

/* Topbar renewal button */
.rr-btn { background: #FDECEA; color: var(--danger); border: 1px solid #f3c4c0; border-radius: 100px; padding: 5px 12px; font-size: 12px; font-weight: 700; cursor: pointer; animation: rr-pulse 2.4s ease-in-out infinite; }
.rr-btn b { background: var(--danger); color: #fff; border-radius: 100px; padding: 1px 7px; margin-left: 4px; }
@keyframes rr-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(214,90,90,.35); } 50% { box-shadow: 0 0 0 7px rgba(214,90,90,0); } }

/* Renewal popup */
.rr-overlay { position: fixed; inset: 0; background: rgba(13,40,60,.55); backdrop-filter: blur(3px); z-index: 1000; align-items: center; justify-content: center; padding: 16px; animation: rr-fade .2s ease; }
@keyframes rr-fade { from { opacity: 0; } to { opacity: 1; } }
.rr-box { background: #fff; width: 100%; max-width: 620px; max-height: 88vh; border-radius: 16px; display: flex; flex-direction: column; box-shadow: 0 24px 70px rgba(0,0,0,.35); animation: rr-pop .28s var(--ease); overflow: hidden; }
@keyframes rr-pop { from { transform: translateY(18px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.rr-head { display: flex; justify-content: space-between; gap: 12px; padding: 18px 22px; background: linear-gradient(120deg, var(--primary-dark), var(--primary)); color: #fff; }
.rr-head h3 { color: #fff; font-size: 17px; margin: 0; } .rr-sub { font-size: 12px; color: #CFE6EE; margin-top: 3px; }
.rr-x { background: rgba(255,255,255,.15); border: none; color: #fff; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 14px; flex-shrink: 0; }
.rr-body { padding: 8px 22px 12px; overflow-y: auto; }
.rr-sec { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; margin: 14px 0 6px; color: var(--primary-dark); } .rr-sec span { color: var(--text-muted); font-weight: 600; }
.rr-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 6px; color: var(--text); transition: all .15s var(--ease); }
.rr-item:hover { border-color: var(--primary-light); background: #F5FAFB; transform: translateX(3px); color: var(--text); }
.rr-meta { font-size: 11.5px; color: var(--text-muted); }
.rr-tag { font-size: 11px; font-weight: 700; border-radius: 100px; padding: 3px 10px; white-space: nowrap; background: #FFF4E0; color: #9a6a00; } .rr-tag.danger { background: #FDECEA; color: var(--danger); }
.rr-more { font-size: 12px; color: var(--text-muted); padding: 2px 4px; }
.rr-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--border); background: #F8FBFC; }

/* Responsive */
@media (max-width: 900px) {
  .topbar form[action="search.php"] { display: none; }
  .topbar h1 { max-width: 48vw; font-size: 15px; }
  .radar { grid-template-columns: repeat(2, 1fr); }
  table { font-size: 12.5px; }
  .rr-btn { padding: 4px 9px; }
  .sidebar { box-shadow: 0 0 40px rgba(0,0,0,.35); }
}
@media (max-width: 520px) { .radar { grid-template-columns: 1fr 1fr; } .rr-foot { flex-direction: column; } .rr-foot .btn { width: 100%; text-align: center; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media print { .sidebar, .topbar, .rr-overlay, .quick-actions { display: none !important; } }

/* Permission editor */
.perm-editor { background: #F6F9FA; border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.perm-presets { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; font-size: 12px; color: var(--text-muted); }
.perm-chip { background: #E6F4F2; border: 1px solid #bfe3de; color: var(--primary-dark); border-radius: 100px; padding: 4px 11px; font-size: 11.5px; font-weight: 700; cursor: pointer; }
.perm-chip:hover { background: var(--secondary); }
.perm-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.perm-group { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.perm-gh { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--primary); margin-bottom: 6px; }
.perm-group label { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; padding: 3px 0; cursor: pointer; }
.perm-group input { width: auto; }
.perm-note { font-size: 11.5px; color: var(--text-muted); margin: 10px 0 0; }

/* Performance */
.pf-hero { background: linear-gradient(120deg, var(--primary-dark), var(--primary)); border: none; color: #fff; }
.pf-eyebrow { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: #CFE6EE; font-weight: 700; }
.pf-row { margin-bottom: 14px; }
.pf-lab { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; margin-bottom: 5px; flex-wrap: wrap; } .pf-lab span { font-weight: 600; } .pf-lab b { color: var(--primary-dark); }
.pf-track { position: relative; height: 12px; background: #E8EFF2; border-radius: 100px; overflow: hidden; }
.pf-fill { height: 100%; border-radius: 100px; transition: width .8s var(--ease); }
.pf-pace { position: absolute; top: -2px; bottom: -2px; width: 2px; background: #16232C; opacity: .55; }
.pf-coach { background: #F2F8F9; border-left: 3px solid var(--secondary-dark); padding: 9px 12px; border-radius: 8px; font-size: 13px; margin: 14px 0 10px; }
.pf-mini { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-muted); } .pf-mini b { color: var(--text); margin-left: 3px; }
.pf-team { font-size: 12.5px; background: #F6F9FA; border-radius: 8px; padding: 8px 12px; margin-bottom: 12px; }
.pf-widget { display: block; color: inherit; } .pf-widget:hover { color: inherit; }

/* ==========================================================
   v23 THEME — clean corporate layer (Primary #13547a · Secondary #80d0c7)
   ========================================================== */
:root { --bg: #F3F7F9; --border: #DFE8ED; --text: #14222B; --text-muted: #62788A; --radius: 14px; --shadow: 0 1px 2px rgba(15,60,90,.05), 0 1px 8px rgba(15,60,90,.04); }
body { background: var(--bg); font-size: 14px; }
h1, h2, h3, h4, .pf-lab span, .stat-card .value, .radar-tile b { font-family: 'Montserrat', sans-serif; }
.ic { flex-shrink: 0; vertical-align: -3px; }

/* Sidebar */
.sidebar { background: linear-gradient(185deg, #0c3f5d 0%, #13547a 60%, #176590 100%); width: 252px; border-right: none; }
.sidebar-brand { padding: 22px 22px 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
.sidebar-brand .sub { font-family: 'Montserrat', sans-serif; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--secondary); margin-top: 6px; font-weight: 600; }
.nav-label { font-family: 'Montserrat', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); padding: 0 22px; margin: 18px 0 6px; }
.nav-link { display: flex; align-items: center; gap: 11px; padding: 9px 14px; margin: 1px 12px; font-size: 13px; font-weight: 500; color: rgba(255,255,255,.82); border-radius: 9px; transform: none; }
.nav-link .ic { opacity: .75; }
.nav-link:hover { background: rgba(255,255,255,.08); color: #fff; transform: none; }
.nav-link:hover .ic { opacity: 1; }
.nav-link.active { background: rgba(128,208,199,.16); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--secondary); }
.nav-link.active .ic { color: var(--secondary); opacity: 1; }
.role-badge { background: rgba(128,208,199,.18); color: var(--secondary); border: 1px solid rgba(128,208,199,.35); border-radius: 100px; font-size: 10.5px; font-weight: 700; padding: 3px 10px; letter-spacing: .04em; }
.sidebar-footer { border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; color: rgba(255,255,255,.7); }

/* Top bar */
.topbar { height: 62px; padding: 0 28px; background: #fff; backdrop-filter: none; box-shadow: 0 1px 0 var(--border); }
.topbar h1 { font-size: 17px; font-weight: 700; color: var(--primary-dark); letter-spacing: -.005em; }
.topbar input[type=text] { background: #F3F7F9; border: 1px solid transparent; border-radius: 10px; }
.topbar input[type=text]:focus { background: #fff; border-color: var(--secondary-dark); }
.topbar-right { gap: 6px; }
.icon-btn, .topbar-right button[title="Team Chat"], .user-menu-wrap > button:first-child { color: var(--text-muted); }
.icon-btn { background: none; border: none; width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s; }
.icon-btn:hover, .user-menu-wrap > button:first-child:hover { background: #EEF4F7; color: var(--primary); }
.user-menu-wrap > button:first-child { padding: 6px !important; border-radius: 10px; }
.avatar { background: var(--primary); color: #fff; font-family: 'Montserrat', sans-serif; font-weight: 700; }
.mobile-toggle { color: var(--primary); }
.content { padding: 26px 28px 40px; max-width: 1480px; }

/* Cards & headings */
.card { border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; margin-bottom: 18px; }
.card:hover { box-shadow: var(--shadow); }
.card-header { border-bottom: 1px solid #EDF2F5; padding-bottom: 12px; margin-bottom: 16px; }
.card-header h3 { font-size: 15px; font-weight: 700; color: var(--primary-dark); }

/* Stat tiles */
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.stat-card::before { background: var(--secondary); width: 4px; }
.stat-card .label { font-family: 'Montserrat', sans-serif; font-size: 10.5px; letter-spacing: .09em; }
.stat-card .value { font-size: 28px; color: var(--primary); }
.stat-card .value.gold { color: var(--primary-light); }

/* Buttons */
.btn { font-family: 'Montserrat', sans-serif; font-size: 12.5px; font-weight: 600; letter-spacing: .01em; padding: 9px 18px; border-radius: 10px; }
.btn-sm { padding: 6px 13px; font-size: 11.5px; }
.btn-primary { background: var(--primary); color: #fff; border: 1px solid var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; box-shadow: 0 6px 16px rgba(19,84,122,.25); }
.btn-outline { background: #fff; color: var(--primary); border: 1px solid #BFD3DE; }
.btn-outline:hover { background: #EEF6F8; border-color: var(--primary); color: var(--primary-dark); box-shadow: none; }

/* Tables */
thead th { background: #F5F9FB; color: #4D6677; font-family: 'Montserrat', sans-serif; font-size: 10.5px; padding: 11px 14px; }
tbody td { padding: 13px 14px; border-bottom: 1px solid #EDF2F5; }
tbody tr:hover { background: #F7FBFC; }
tbody tr:last-child td { border-bottom: none; }

/* Pills */
.pill { font-family: 'Montserrat', sans-serif; font-size: 10.5px; letter-spacing: .02em; padding: 4px 11px; }

/* Rank badge (leaderboard) */
.rank { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #EEF3F6; color: var(--text-muted); font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 12.5px; }
.rank.r1 { background: var(--primary); color: #fff; } .rank.r2 { background: var(--secondary); color: var(--primary-dark); } .rank.r3 { background: #D6EDEA; color: var(--primary-dark); }

/* Renewals button + popup in brand colours */
.rr-btn { display: inline-flex; align-items: center; gap: 6px; animation: none; box-shadow: 0 0 0 0 rgba(214,90,90,.4); }
.rr-btn .ic { vertical-align: 0; }
.rr-head { background: linear-gradient(120deg, #0c3f5d, #13547a); }
.rr-sec { font-family: 'Montserrat', sans-serif; }
.rr-sec.danger { color: var(--danger); } .rr-sec.warn { color: #B97A00; }
.rr-sec.danger::before, .rr-sec.warn::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: currentColor; }

/* Quick actions & radar */
.quick-actions a { font-family: 'Montserrat', sans-serif; font-size: 12px; border-radius: 10px; }
.radar-tile { border-radius: var(--radius); }
.radar-tile.red { border-top-color: var(--danger); }
.pf-hero { background: linear-gradient(120deg, #0c3f5d, #13547a 70%, #1b6c97); }

/* Login */
.lg-shell { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: #fff; }
.lg-brand { position: relative; overflow: hidden; background: linear-gradient(160deg, #0c3f5d 0%, #13547a 55%, #1b7ba6 100%); color: #fff; padding: 56px 64px; display: flex; flex-direction: column; justify-content: space-between; }
.lg-brand::after { content: ''; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(128,208,199,.45), rgba(128,208,199,0) 68%); }
.lg-brand h2 { color: #fff; font-size: 32px; line-height: 1.2; font-weight: 700; max-width: 440px; }
.lg-brand p { color: #CFE6EE; max-width: 420px; font-size: 14.5px; }
.lg-points { list-style: none; padding: 0; margin: 28px 0 0; position: relative; z-index: 1; }
.lg-points li { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; font-size: 14px; color: #E6F3F6; }
.lg-points li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--secondary); flex-shrink: 0; }
.lg-form-side { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--bg); }
.lg-card { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 36px 34px; box-shadow: 0 18px 50px rgba(15,60,90,.1); }
.lg-card h1 { font-size: 22px; margin-bottom: 4px; }
.lg-sub { color: var(--text-muted); font-size: 13px; margin-bottom: 24px; }
.lg-foot { text-align: center; margin-top: 18px; font-size: 12.5px; }
@media (max-width: 900px) { .lg-shell { grid-template-columns: 1fr; } .lg-brand { display: none; } .content { padding: 18px 16px 32px; } .topbar { padding: 0 16px; } }

/* HR onboarding */
.hr-cat { font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); margin: 18px 0 8px; }
.hr-doc { display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; background: #fff; flex-wrap: wrap; }
.hr-doc-main { flex: 1 1 320px; } .hr-doc-act { flex: 0 0 auto; display: flex; align-items: center; }
.hr-doc-title { font-weight: 600; font-size: 13.5px; }
.hr-req { font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--danger); margin-left: 6px; }
.hr-hint { font-size: 11.5px; color: var(--text-muted); }
.hr-file { margin-top: 8px; font-size: 13px; }
.hr-remark { background: #FDECEA; color: #B23B3B; border-radius: 8px; padding: 6px 10px; font-size: 12px; margin-top: 6px; }
.hr-up { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .hr-up input[type=file] { font-size: 12px; max-width: 220px; padding: 6px; }
.hr-ack { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; font-size: 13px; font-weight: 400; cursor: pointer; }
.hr-ack input { width: auto; margin-top: 4px; }
.hr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px 24px; font-size: 13.5px; }
.hr-grid span { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2px; }
.hr-review { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.hr-link-del { background: none; border: none; color: var(--danger); font-size: 11.5px; cursor: pointer; padding: 0; }

/* ===== v25 Training module ===== */
.rr-btn.tr-btn, a.rr-btn[href="training.php"] { background: #E6F4F2; color: var(--primary-dark); border-color: #b9e0db; animation: none; }
a.rr-btn[href="training.php"] b { background: var(--primary); }
.rr-tag.ok { background: #DDF3E4; color: #1f7a4d; }
.tr-bar { height: 8px; background: #E3EDF2; border-radius: 100px; overflow: hidden; margin: 6px 0; min-width: 120px; }
.tr-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--secondary)); border-radius: 100px; }
.tr-bar.light { background: rgba(255,255,255,.25); }
.tr-bar.light i { background: var(--secondary); }
.tr-q { padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; background: #fff; }
.tr-q.ok { border-left: 4px solid #2e9e66; } .tr-q.bad { border-left: 4px solid var(--danger); } .tr-q.off { opacity: .55; }
.tr-opt { display: block; padding: 7px 10px; margin-top: 6px; border-radius: 8px; background: #F4F8FA; font-size: 13.5px; }
.tr-opt.pick { cursor: pointer; } .tr-opt.pick:hover { background: #E6F4F2; }
.tr-opt.right { background: #DDF3E4; color: #1f7a4d; font-weight: 600; } .tr-opt.wrong { background: #FDECEA; color: var(--danger); }

/* ===== v26 Running projects ===== */
.pj-company { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 14px; overflow: hidden; background: #fff; }
.pj-chead { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; background: #F1F8F9; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.pj-row { padding: 10px 14px; border-bottom: 1px solid var(--border); display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.pj-row:last-child { border-bottom: 0; }
.pj-row.due { border-left: 4px solid var(--danger); background: #FFFAF9; }
.pj-main { flex: 1 1 260px; min-width: 220px; }
.pj-upd { display: flex; gap: 6px; align-items: center; margin: 0; flex: 2 1 420px; }
.pj-upd input[name=note] { flex: 1; min-width: 160px; }
.pj-upd select, .pj-upd input[type=date] { width: auto; }
@media (max-width: 760px) { .pj-upd { flex-wrap: wrap; } .pj-upd input, .pj-upd select { width: 100%; } }

/* ===== v27 Multiple firms ===== */
.firm-badge { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; padding: 2px 8px; border-radius: 100px; background: #E6F0F8; color: var(--primary); vertical-align: middle; }
.quote-chip { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 6px; background: #FFF4E0; color: #9a6a00; text-decoration: none; margin-left: 4px; }
a.quote-chip:hover { background: #ffe9c2; color: #7a5200; }

/* ===== v29 CRM Guide ===== */
.gd-list { margin: 4px 0 0; padding-left: 22px; } .gd-list li { margin: 7px 0; line-height: 1.55; font-size: 14px; }
