/* Fine Dine Academy Elite V4 — bespoke white / navy / gold visual system */
:root{--navy:#10274b;--navy2:#203e68;--navy3:#314b75;--gold:#c99a38;--gold-soft:#fcf6e9;--ink:#172c50;--muted:#77869e;--line:#e8edf5;--paper:#f9fbff;--white:#fff;--green:#18a674;--blue:#3d82d8;--red:#d9576d;--amber:#c8952a;--shadow:0 7px 28px rgba(23,43,80,.035)}
body{background:#fafbfd;color:var(--ink);font-family:'DM Sans','Segoe UI',sans-serif}
.shell{background:#fafbfd}
.sidebar{background:white;color:#314766;width:249px;flex:0 0 249px;border-right:1px solid #e9edf4;box-shadow:4px 0 24px #14223d04}
.side-brand{padding:22px 22px 20px;height:88px;border-bottom:1px solid #eff2f6;gap:12px;background:#fff}
.side-mark{width:53px;height:53px;border-radius:50%;background:transparent;box-shadow:none;object-fit:contain;filter:drop-shadow(0 2px 4px rgba(105,79,25,.12))}
.side-brand strong{font-family:Georgia,'Times New Roman',serif;color:#18345d;letter-spacing:1.3px;font-weight:700;font-size:15px;line-height:1.05}
.side-brand small{font-size:8px;letter-spacing:1.2px;color:#c49b53;margin-top:8px;font-weight:800}
.side-nav{padding:20px 12px 25px}
.side-label{color:#a8b2c1;margin:9px 13px 12px;font-size:9px;letter-spacing:2.1px;font-weight:800}
.side-label.section-label{margin-top:25px!important}
.nav-item{position:relative;color:#53627d;font-size:12.5px;font-weight:700;border-radius:9px;padding:13px 13px;gap:12px;margin-bottom:3px;min-height:43px}
.nav-item:hover{background:#f8f5ee;color:#203e66}
.nav-item.active{background:#faf5e9;color:#17345d;box-shadow:none}
.nav-item.active:before{content:'';position:absolute;left:0;top:10px;bottom:10px;width:3px;background:#c79a44;border-radius:3px}
.nav-item.active .nav-ico{color:#ba8c39}
.nav-ico{width:19px;height:19px;color:#657996}
.nav-ico svg{width:18px;height:18px}
.nav-pill{background:#f4e4c3;color:#925e13;font-size:10px;padding:3px 7px}
.side-bottom{border-top:1px solid #ecf0f6;padding:15px 12px 17px}
.user-panel{background:#fff;border:1px solid #e8ecf3;box-shadow:0 5px 18px #1c31520a;border-radius:12px;padding:12px 9px}
.user-panel b{color:#1b3150}.user-panel small{color:#8594a9}
.avatar.dark{background:#f3e7cf;color:#a3772d}
.signout{color:#667991}.signout:hover{color:#c89a3b}
.side-version{margin:15px 7px 0;color:#a1aebe;font-size:9px;font-weight:700;letter-spacing:1px;display:flex;gap:7px;align-items:center}.gold-tick{width:6px;height:6px;border-radius:50%;background:#c9a358}
.workspace{width:calc(100% - 249px)}
.topbar{height:88px;background:#fff;border-bottom:1px solid #e9edf4;padding:0 32px}
.topbar-left{display:flex;align-items:center;gap:10px;min-width:150px}
.breadcrumb{font-size:9px;color:#9aabbe;letter-spacing:1.5px;font-weight:800}
.top-title{font-family:'Manrope',sans-serif;font-weight:800;color:#1b345a;font-size:17px}
.top-actions{gap:15px}
.top-search{background:#fcfdff;border-color:#e5e9f0;border-radius:9px;width:275px;height:41px}
.top-search input::placeholder{color:#a3adc0}
.live-state{font-size:10px;padding:8px 12px;background:#effbf5;border:1px solid #d7eee3;color:#33855d}
.top-profile{display:flex;align-items:center;gap:9px;padding-left:16px;border-left:1px solid #edf0f5}
.top-profile-icon{height:34px;width:34px;display:grid;place-items:center;border-radius:50%;background:#f9f1de;color:#8b6522;font-weight:900;font-size:12px;border:1px solid #f1e4ca}
.top-profile-copy{display:flex;flex-direction:column;min-width:54px;gap:3px}
.top-profile-copy b{font-size:11px;color:#1d3559;white-space:nowrap}
.top-profile-copy small{text-transform:capitalize;font-size:10px;color:#91a0b4}
.btn{border-radius:9px}.btn.primary{background:#162e55;border-color:#162e55;box-shadow:0 4px 9px #162e5514}.btn.primary:hover{background:#254671}
.main{padding:31px 34px 55px;max-width:1750px}
.app-foot{padding:0 35px 23px;color:#a8b2c2;font-size:10px;display:flex;gap:16px;justify-content:space-between}
.card,.stat{border:1px solid #e8edf3;box-shadow:0 6px 24px #243e6906;border-radius:13px;background:#fff}
.card{padding:23px 24px}
.card h3{font-family:Georgia,'Times New Roman',serif;color:#213658;font-size:17px;letter-spacing:-.1px;font-weight:700}
.card .sub{color:#96a3b5;font-size:10.5px}
.card-h{align-items:center;margin-bottom:22px}
.link{color:#385c96;display:inline-flex;align-items:center;gap:5px;font-size:11px}.link svg{width:13px}
.welcome-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:8px 0 26px}
.welcome-copy .eyebrow{font-size:10px;letter-spacing:2.5px;color:#8b9bb5}
.eyebrow-star{color:#d1ac66;padding-left:5px}
.welcome-copy h1{margin:10px 0 7px;font-family:Georgia,'Times New Roman',serif;font-weight:700;letter-spacing:-1.6px;font-size:clamp(29px,2.65vw,41px);color:#152f58}
.welcome-dot{color:#c99a45}.welcome-copy p{font-size:12px;color:#8492a8;margin:0}
.date-display{display:flex;align-items:center;gap:13px;border:1px solid #e8ecf3;border-radius:11px;background:white;padding:15px 18px;min-width:210px;box-shadow:0 4px 14px #1a345604}
.date-display svg{width:22px;height:22px;color:#193f73}.date-display strong{font-size:12px;display:block}.date-display small{font-size:9px;color:#a0aabd;display:block;margin-top:4px}
.stats.stats-five{grid-template-columns:repeat(5,minmax(0,1fr));gap:13px;margin-bottom:20px}
.stats-five .stat{padding:18px 20px;min-height:148px;position:relative;overflow:hidden}
.stats-five .stat:after{content:'';position:absolute;bottom:0;left:22px;right:22px;height:2px;border-radius:4px;background:transparent;transition:background .2s}
.stats-five .stat:hover:after{background:#d5ad65}
.stats-five .stat-top{align-items:flex-start;flex-direction:row-reverse;justify-content:space-between;gap:4px}
.stats-five .stat-label{font-size:11.5px;color:#64758f;font-weight:700;padding-top:5px}
.stats-five .stat-ico{width:35px;height:35px;border-radius:50%}
.stats-five .stat-ico svg{width:19px;height:19px}
.stats-five .stat-ico.gold{background:#fff4df;color:#bf8d2c}
.stats-five .stat-ico.green{background:#e9f9f1;color:#15a571}
.stats-five .stat-ico.purple{background:#f0edff;color:#8070db}
.stats-five .stat-ico.red{background:#fff0f2;color:#db6273}
.stats-five .stat strong{margin:17px 0 4px;font:800 clamp(21px,1.9vw,27px) 'Manrope',sans-serif;letter-spacing:-1px;white-space:nowrap;color:#182f55}
.stats-five .stat small{font-size:10px;color:#99a6ba}
.overview-columns{display:grid;grid-template-columns:minmax(0,1.73fr) minmax(320px,1fr);gap:17px;align-items:start}
.overview-main-col,.overview-side-col{min-width:0}
.overview-columns .card{margin-bottom:16px}
.panel-title-row{display:flex;align-items:center;gap:10px;margin-bottom:4px}
.panel-title-row h3{margin:0}
.section-icon{width:24px;height:24px;display:inline-grid;place-items:center;color:#325989}
.section-icon svg{width:19px;height:19px}
.section-icon.gold-symbol{color:#bc8c37}
.pipeline-flow{display:flex;align-items:stretch;gap:4px;overflow-x:auto;padding:3px 1px 4px;scrollbar-color:#dde4ef transparent;scrollbar-width:thin}
.pipeline-step{border:1px solid #edf0f5;border-top:2px solid var(--step-color,#77a7e1);min-width:97px;flex:1;padding:14px 6px 13px;border-radius:7px;background:var(--step-bg,#f0f7ff);display:flex;flex-direction:column;gap:6px;text-align:center;align-items:center;transition:transform .15s,box-shadow .15s}
.pipeline-step:hover{transform:translateY(-2px);box-shadow:0 6px 12px #29497515}
.pipeline-step strong{font:800 23px 'Manrope',sans-serif;color:#14345d;letter-spacing:-.8px}
.pipeline-step span{font-size:9.5px;color:#8899b0}
.step-top{font-size:10px;color:var(--step-color,#315e96);font-weight:800;white-space:nowrap}
.ps-0{--step-bg:#edf6ff;--step-color:#3a89dc}.ps-1{--step-bg:#fff9e9;--step-color:#b88428}.ps-2{--step-bg:#effbf4;--step-color:#29a26d}.ps-3{--step-bg:#fff2ec;--step-color:#c47c52}.ps-4{--step-bg:#f3f0ff;--step-color:#826ec6}.ps-5{--step-bg:#fff8ee;--step-color:#ca904e}.ps-6{--step-bg:#fdf8e8;--step-color:#c39a3f}
.pipeline-arrow{align-self:center;font-size:19px;color:#91a1b6;padding:0 1px}
.realtime-card{min-height:333px}.live-now{font-size:9px;color:#1da573;letter-spacing:1px;font-weight:900;display:flex;gap:7px;align-items:center}
.live-now i{width:6px;height:6px;border-radius:50%;background:#1ebd81;box-shadow:0 0 0 4px #e7f9ef}
.realtime-list{padding-left:3px}
.realtime-event{display:flex;align-items:flex-start;gap:10px;width:100%;border:0;background:white;text-align:left;padding:11px 1px;position:relative;border-bottom:1px solid #f0f2f5;cursor:pointer;color:#273b5c;min-width:0}
.realtime-event:hover{background:#fcfaf6}.realtime-event:last-child{border:0}
.event-line{position:absolute;width:2px;background:#e9edf3;top:29px;bottom:-11px;left:6px}.realtime-event:last-child .event-line{display:none}
.event-line i{position:absolute;top:-22px;left:-4px;width:10px;height:10px;border-radius:50%;background:#c69b49;border:2px solid #fff}
.event-avatar{width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;font-weight:800;font-size:10px;border-radius:50%;background:#e9f1fa;color:#507ba9;margin-left:11px}
.event-avatar.av-1{background:#f6ebd8;color:#ad843b}.event-avatar.av-2{background:#e9f6ef;color:#40956e}.event-avatar.av-3{background:#f4eaf4;color:#9d70a3}
.event-text{flex:1;min-width:0}.event-text b{font-size:11px;display:block;color:#243e63;margin-bottom:4px}.event-text small{font-size:10px;color:#677a94;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.event-text em{font-style:normal;color:#a1aebf;font-size:9px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:4px}.realtime-event time{font-size:9px;color:#a5b2c2;white-space:nowrap}
.recent-leads .table{min-width:730px}.dash-table th{background:#f8f9fc;color:#536783;text-transform:none;font-size:10px;white-space:nowrap}.dash-table td{font-size:10.5px;padding:12px 9px;color:#4b5d77}.dash-table td b{color:#20385c}.dash-table tbody tr:hover{background:#fafcff;cursor:pointer}
.lead-identity{display:flex;align-items:center;gap:9px;white-space:nowrap}.lead-identity .avatar{width:28px;height:28px;flex:0 0 28px;border-radius:50%;font-size:9px}.date-cell{white-space:nowrap}.date-cell small{display:block;margin-top:2px;color:#9aa8b7}
.priority-queue{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 16px}.priority-item{border:0;border-bottom:1px solid #f0f2f5;background:#fff;padding:12px 0;display:flex;align-items:center;gap:10px;text-align:left;min-width:0}.priority-item:hover{background:#fcfaf5}.priority-item .avatar{width:33px;height:33px;flex:0 0 33px;border-radius:50%}.priority-person{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}.priority-person b{font-size:11px;color:#263f61;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.priority-person small{font-size:9.5px;color:#9aa7b8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.priority-time{display:flex;flex-direction:column;align-items:end;gap:5px}.priority-time small{color:#7590be;font-size:9px}
.people-card,.payroll-card{min-height:208px}
.mini-metric{display:flex;align-items:center;justify-content:space-around;gap:15px}
.donut{width:112px;height:112px;border-radius:50%;display:grid;place-items:center;flex:none;background:conic-gradient(#31b78a calc(var(--pct)*1%),#e9eef5 0)}.donut>div{background:white;width:89px;height:89px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px}.donut b{font:800 18px Manrope,sans-serif;color:#1c355b}.donut small{font-size:9px;color:#91a0b4}
.metric-list{display:flex;flex-direction:column;gap:13px;min-width:125px;flex:1;max-width:200px}.metric-list>div{display:flex;justify-content:space-between;gap:12px;font-size:10px;color:#76869d}.metric-list strong{color:#243d5e}.dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:7px}.dot.green{background:#37b685}.dot.amber{background:#dfad43}.dot.rose{background:#e07a92}
.payroll-metric{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:5px 4px 12px}.payroll-number{display:flex;flex-direction:column;gap:4px}.payroll-number small{font-size:10px;color:#98a4b7}.payroll-number strong{font:800 27px Manrope,sans-serif;letter-spacing:-1px;color:#173457}.payroll-number span{font-size:10px;color:#9caabe}.payroll-icon{width:55px;height:55px;border-radius:50%;display:grid;place-items:center;background:#fff4e5;color:#c79540}.payroll-icon svg{width:25px;height:25px}
.summary-note{font-size:10px;color:#9ca7b7;border-top:1px solid #f0f2f5;padding-top:10px;line-height:1.5}
.team-mini-row{display:flex;gap:11px;align-items:center;padding:11px 0;border-bottom:1px solid #edf1f5}.team-mini-row:last-child{border:0}.team-mini-row .avatar{width:32px;height:32px;flex:0 0 32px;border-radius:50%}.team-mini-row>span:nth-child(2){flex:1;display:flex;flex-direction:column;gap:4px}.team-mini-row b{font-size:11px;color:#243e61}.team-mini-row small{font-size:9px;color:#9aa8b8}.team-mini-row>strong{font-size:12px;color:#1fa57a}.team-mini-row>strong small{display:block;text-align:right;font-weight:500}
/* Shared page refinements */
.head h1{font-family:Georgia,'Times New Roman',serif;font-weight:700;font-size:31px;letter-spacing:-.6px;color:#152f59}
.head p{font-size:12px;color:#8494ab}
.table th{background:#f7f9fc}.table td{color:#475e7c}
.team-card{border-color:#e8edf3;box-shadow:0 8px 19px #253e6706}
.auth{background:#fff}.auth-left{background:#f9fbfe;color:#1e395e;border-right:1px solid #e7edf5}.auth-left:before{border-color:#cfa95d22;box-shadow:0 0 0 65px #cca75f08,0 0 0 130px #cba96b05}.auth-left h1{font-family:Georgia,'Times New Roman',serif;letter-spacing:-1px;color:#193357}.auth-left h1 span{color:#b88936}.auth-left p{color:#8392a8}.auth-brand strong{color:#18375f;font-family:Georgia,'Times New Roman',serif}.auth-brand small{color:#bf9653}.auth-mark{background:transparent;box-shadow:none;width:72px;height:72px}.auth-bottom{color:#a7b3c5}.auth-card h2{font-family:Georgia,'Times New Roman',serif;letter-spacing:-.4px;color:#173659}
@media(max-width:1350px){.stats.stats-five{grid-template-columns:repeat(3,minmax(0,1fr))}.overview-columns{grid-template-columns:minmax(0,1.55fr) minmax(320px,1fr)}.top-search{width:210px}}
@media(max-width:1120px){.overview-columns{grid-template-columns:1fr}.overview-main-col,.overview-side-col{min-width:0}.stats.stats-five{grid-template-columns:repeat(3,1fr)}.overview-side-col{display:grid;grid-template-columns:1fr 1fr;gap:16px}.overview-side-col>.card{margin-bottom:0}.realtime-card{grid-column:1 / -1}.top-profile-copy{display:none}.top-profile{padding-left:8px}}
@media(max-width:850px){.sidebar{left:-260px;box-shadow:6px 0 30px #102a5012}.sidebar.open{left:0}.workspace{width:100%}.main{padding:22px 17px 48px}.topbar{height:71px;padding:0 18px}.welcome-row{gap:10px}.date-display{display:none}.stats.stats-five{grid-template-columns:repeat(3,1fr)}.top-profile{display:none}}
@media(max-width:620px){.welcome-copy h1{font-size:30px}.welcome-copy p{font-size:11px;line-height:1.5}.welcome-row{margin:4px 0 20px}.stats.stats-five{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.stats-five .stat{min-height:116px;padding:13px}.stats-five .stat .stat-ico{height:29px;width:29px}.stats-five .stat .stat-ico svg{width:17px}.stats-five .stat strong{font-size:22px;margin-top:12px}.stats-five .stat small{font-size:9px}.overview-side-col{grid-template-columns:1fr}.realtime-card{grid-column:1}.priority-queue{grid-template-columns:1fr}.card{padding:18px}.app-foot{padding:0 17px 20px;display:block;line-height:1.8}.app-foot span{display:block}.top-actions{gap:8px}.top-actions .btn{font-size:0;width:38px;height:38px;padding:0}.top-actions .btn span{display:none}.live-state{font-size:0}.live-state span:last-child{display:none}.top-title{font-size:15px}.breadcrumb{font-size:8px}.pipeline-step{min-width:90px}.mini-metric{justify-content:flex-start}.auth-left{min-height:220px}}
/* Keep long CRM tables independently scrollable on mobile, never widen the page. */
.table-scroll{overflow-x:auto;max-width:100%;display:block;scrollbar-width:thin;scrollbar-color:#d8e1ed transparent}
.recent-leads{min-width:0;overflow:hidden}
.pipeline-step{min-width:84px}
.overview-columns .overview-main-col,.overview-columns .overview-side-col{min-width:0}
@media(max-width:850px){.pipeline-step{min-width:90px}.table-scroll{-webkit-overflow-scrolling:touch}}
.velocity-card .activity-chart{height:164px;margin:0 0 6px}
.velocity-card .chart-axis{font-size:10px}
