/* MADA business portal: T world-inspired neutral canvas and violet accents. */
@media screen{
:root{--navy:#242428;--ink:#25252a;--muted:#626f77;--line:#d8dfe3;--bg:#f5f5f7;--teal:#4320cc;--shadow:none}
html,body{background:#f5f5f7;color:#25252a;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font-family:inherit}button{transition:background .15s,border-color .15s,box-shadow .15s}button:focus-visible,a:focus-visible{outline:3px solid #6445e0;outline-offset:3px}
#app .topbar{height:76px;background:#fff;color:#1c282d;border-bottom:1px solid #cfd8dc;box-shadow:none;padding:0 28px;gap:48px}
#app .brand{font-size:20px;letter-spacing:-.7px;font-weight:800;gap:12px}#app .brand .mark{width:38px;height:38px}
#app .nav{align-self:stretch;align-items:stretch;gap:24px}
#app .nav button{height:auto;padding:0 4px;border:0;border-bottom:3px solid transparent;border-radius:0;background:none;color:#6c777e;font-size:15px;font-weight:700}
#app .nav button[aria-selected=true]{color:#242429;border-bottom-color:#4320cc;background:none}#app .nav button:hover{color:#4320cc}
#app .account{gap:10px}#app .account b{font-size:14px;font-weight:700}#app .account small{color:#69767d!important;font-size:12px;margin-top:3px}
#app .avatar{width:32px;height:32px;border-radius:6px;background:#4320cc;color:#fff;font-size:13px;box-shadow:none}
#app .logout{background:#fff;color:#425159;border:1px solid #cdd7dd;border-radius:5px;padding:8px 12px;font-size:13px}#app .logout:hover{background:#f0f4f5}
#app .shell{padding:26px 28px}#app .context-bar{margin-bottom:22px;gap:16px}#app #contextTitle{font-size:26px;letter-spacing:-1px;font-weight:800;color:#242429}
#app .context-tools{gap:10px}#app .view-select{height:40px;border-radius:5px;border-color:#c6d2d8;box-shadow:none;font-size:14px;color:#33464e;font-weight:650;min-width:245px}
#app .view-mode{background:#efebff;color:#5c46a0;border-radius:4px;font-size:12px;padding:6px 9px}
#app .today-board{gap:0;margin-bottom:18px;border:1px solid #cfd9de;border-radius:7px;overflow:hidden;background:#fff}
#app .today-card{position:relative;border:0;border-right:1px solid #dce3e7;border-radius:0;background:#fff;padding:18px 22px;box-shadow:none}
#app .today-card:last-child{border-right:0}#app .today-card:hover{background:#f4f1ff}#app .today-card.active{background:#4320cc;color:#fff;box-shadow:inset 0 -3px #8068ed}
#app .today-card small{font-size:14px;color:#3c515b;font-weight:700}#app .today-card strong{font-size:29px;font-weight:750;letter-spacing:-1px;font-variant-numeric:tabular-nums;margin-top:10px}
#app .today-card span{font-size:12px;color:#6b7e87;margin-left:8px}#app .today-card em{font-size:13px;color:#583bbb;font-weight:650;margin-top:18px}
#app .today-card.active small,#app .today-card.active span{color:#f0eeee}#app .today-card.active em{color:#eee8ff}
#app .stats{gap:0;border:1px solid #d3dde2;border-radius:7px;overflow:hidden;background:#fff;margin-bottom:22px}
#app .stat{border:0;border-right:1px solid #e2e8eb;border-radius:0;box-shadow:none;padding:20px 22px;background:#fff}
#app .stat:last-child{border-right:0}#app .stat:before{display:none}#app .stat small{font-size:14px;color:#60717a;font-weight:600;margin-bottom:13px}
#app .stat strong{font-size:30px;letter-spacing:-1px;font-weight:750;font-variant-numeric:tabular-nums;color:#242429}#app .stat span{font-size:13px;color:#7a8992}
#app .stat.balance{background:linear-gradient(115deg,#eeebfc,#f7f5ff)}#app .stat.balance strong{color:#4320cc}#app .stat.balance small{color:#5c46a0}
#app .workspace{gap:18px;grid-template-columns:minmax(720px,1fr) 390px}#app .panel{border-radius:8px;border:1px solid #ced9df;box-shadow:0 3px 10px #1c3a4705}
#app .toolbar{padding:16px;background:#fff;border-bottom:1px solid #d7e1e6;gap:8px;flex-wrap:wrap}
#app .toolbar input,#app .toolbar select{height:40px;border-radius:5px;border:1px solid #c9d5dc;color:#324b56;background:#fff;font-size:14px}
#app .search input{background:#f6f6f8;border-color:#d8e1e6}#app .search:before{color:#566f7b}
input:focus,select:focus,textarea:focus{outline:2px solid #7b63dd;outline-offset:1px}
.btn{height:40px;border-radius:5px;border:1px solid #c5d2d9;background:#fff;color:#34505c;font-size:14px;font-weight:700;padding:0 15px;box-shadow:none}
.btn:hover:not(:disabled){background:#edf2f4;border-color:#94aab5}.btn:active:not(:disabled){background:#e1e9ed}
.btn.primary{background:#4320cc;color:#fff;border:1px solid #3915bf;box-shadow:none}.btn.primary:hover:not(:disabled){background:#3416ad;border-color:#2e119e}
.btn:disabled{opacity:.5;cursor:not-allowed}
#app #newLead{padding-inline:18px}#app #exportClients{background:#4320cc;border-color:#3915bf;color:#fff;white-space:nowrap}#app #exportClients:hover{background:#3416ad}
#app #reset{background:#fff;border-color:#d8e0e4;color:#6a7b84;box-shadow:none}#app #accountSetup{font-size:13px;background:#fff}
#app .lead-table th{background:#f1f1f4;border-bottom:1px solid #c9d6dd;padding:14px 12px;font-size:13px;letter-spacing:-.15px;font-weight:700;color:#425f6c}
#app .lead-table td{padding:13px 12px;font-size:14px;border-bottom:1px solid #d7e0e7;color:var(--status-text);font-weight:500;font-variant-numeric:tabular-nums}
#app .lead-table tbody tr.row-wait,.badge.s-wait{--status-bg:#ffffff;--status-text:#263b4a;--status-outline:#b7c8d3;--badge-bg:#ffffff;--badge-text:#374151}
#app .lead-table tbody tr.row-prospect,.badge.s-prospect{--status-bg:#eaf3ff;--status-text:#263b4a;--status-outline:#b7c8d3;--badge-bg:#2f7ad9;--badge-text:#ffffff}
#app .lead-table tbody tr.row-longterm,.badge.s-longterm{--status-bg:#fce7f3;--status-text:#263b4a;--status-outline:#db2777;--badge-bg:#be185d;--badge-text:#ffffff}
#app .lead-table tbody tr.row-contract,.badge.s-contract{--status-bg:#eaf8ef;--status-text:#263b4a;--status-outline:#b7c8d3;--badge-bg:#249653;--badge-text:#ffffff}
#app .lead-table tbody tr.row-absent,.badge.s-absent{--status-bg:#f0f1f3;--status-text:#263b4a;--status-outline:#b7c8d3;--badge-bg:#737a84;--badge-text:#ffffff}
#app .lead-table tbody tr.row-as,.badge.s-as{--status-bg:#f3edff;--status-text:#263b4a;--status-outline:#b7c8d3;--badge-bg:#7651c9;--badge-text:#ffffff}
#app .lead-table tbody tr.row-done,.badge.s-done{--status-bg:#e8f7f4;--status-text:#263b4a;--status-outline:#b7c8d3;--badge-bg:#24877d;--badge-text:#ffffff}
#app .lead-table tbody tr.row-unavailable,.badge.s-unavailable{--status-bg:#fff0f0;--status-text:#263b4a;--status-outline:#b7c8d3;--badge-bg:#303746;--badge-text:#ffffff}
#app .lead-table tbody tr{background:var(--status-bg);filter:none;box-shadow:none;transition:box-shadow .15s}
#app .lead-table tbody tr.row-wait td{border-bottom-color:#e1e7eb}
#app .lead-table tbody tr:hover{filter:none;box-shadow:inset 4px 0 #8068ed}
#app .lead-table tbody tr.selected{filter:none;box-shadow:inset 5px 0 #8068ed,inset 0 0 0 2px var(--status-outline)}
#app .lead-table .badge.s-wait{border-color:#d1d5db}
#app .lead-table .name{color:var(--status-text);font-weight:750}
#app .lead-table .badge{background:var(--badge-bg);color:var(--badge-text);border:1px solid transparent;box-shadow:none;border-radius:4px;font-size:13px;font-weight:750;padding:5px 9px;min-width:72px;justify-content:center;line-height:1.35}
#app .detail-head{background:#4320cc;color:#fff;padding:22px;border-bottom:3px solid #4320cc}
#app .detail-title h2{font-size:23px;letter-spacing:-.7px;font-weight:750}#app .detail-title p{font-size:15px;color:#d2e0e5;margin-top:7px;letter-spacing:.3px}
#app .idtag{height:fit-content;background:#ffffff0a;border:1px solid #ffffff30;border-radius:4px;padding:5px 8px}
#app .detail-body{padding:21px}#app .section-title{font-size:14px;letter-spacing:-.2px;color:#294d5b;font-weight:750;margin-bottom:14px}
#app .field label{font-size:13px;color:#637985;font-weight:600}#app .field input,#app .field select{font-size:15px;border-radius:5px;border-color:#cbd8df;background:#fff}
#app .info-row{padding:12px 0;border-bottom-color:#e0e8ec}#app .info-row small{font-size:13px;color:#718590}#app .info-row strong{font-size:15px;font-weight:650;color:#263e49}
#app .divider{background:#dce5ea;margin:20px 0}#app #dMemo{border-radius:6px!important;border-color:#cbd9e0!important;background:#fbfcfd;font-size:15px!important;padding:13px!important}
#app .credential{border-radius:5px;border:1px solid #dce5ea;border-left:3px solid #8faab5;background:#f7f7f9;padding:13px}
#app #consultationMemoHistory .credential>div{font-size:14px!important;line-height:1.7!important}
#app .detail-actions{background:#f7f7f9;border-top-color:#d6e2e7;padding:16px;gap:8px}#app .detail-actions .btn{height:46px;border-radius:5px}
#app .detail-actions .sms-open{background:#fff;color:#245064;border:1px solid #698e9f;box-shadow:none}#app .detail-actions .sms-open:hover{background:#e8f0f4}
#app .calc-launch{border-radius:4px;background:#fff;color:#284f5d;border:1px solid #b7cdd6;padding:8px 10px;font-size:13px;box-shadow:none}
dialog,#consultationDetails,#customerSmsDialog{border-radius:9px;box-shadow:0 22px 70px #15323f33}dialog::backdrop{background:#172b3880;backdrop-filter:blur(3px)}
.modal-head,#consultationDetails .cd-head{background:#f7f7f9;border-bottom:1px solid #d4e0e7;padding:21px 24px}.modal-head h3,#consultationDetails h2{letter-spacing:-.5px;font-weight:750}
.modal-actions,.cd-footer{background:#f7f7f9;border-top:1px solid #d5e0e5}.close{border-radius:4px;background:#eaf0f3;color:#46606e;width:32px;height:32px;line-height:1}
.cd-field input,.cd-field select,.cd-field textarea,.cd-creditor input,.cd-creditor select{border-radius:5px;border-color:#c8d7df}.cd-options{border-radius:5px}
.cd-results{background:#f3f3f6}.cd-stat{border-radius:6px;border-color:#d1dfe6;box-shadow:none}.cd-stat.primary{background:#4320cc}.cd-stat strong{font-variant-numeric:tabular-nums}
.cd-lookup{border-radius:5px;background:#f4f1ff;border-color:#d5caf1}.cd-lookup a{color:#5a3fa1}.cd-warning,.cd-breakdown,.sms-info,#smsText,.sms-preview{border-radius:6px}
#app .crm-notice{max-width:1000px;border-radius:8px;border:1px solid #d2dde3;box-shadow:none;border-top:4px solid #4320cc;padding:34px 40px;color:#344f5c}
.login-page{background:#f4f4f6}.login-card{border-radius:10px;box-shadow:0 15px 55px #253f4f15;border:1px solid #d2dfe6;border-top:5px solid #4320cc;padding:40px}.login-card .field input{border-radius:5px}.login-btn{border-radius:5px;background:#4320cc;box-shadow:none}.login-card h1{color:#28282e}.login-foot{color:#7c8c95}
@media(max-width:1250px) and (min-width:769px){#app .stat:nth-child(3){border-right:0}#app .stat:nth-child(-n+3){border-bottom:1px solid #e2e8eb}}
@media(max-width:768px){
#app .topbar{height:auto;min-height:62px;padding:14px 16px 0;gap:12px;flex-wrap:wrap;box-shadow:0 2px 8px #24384408}#app .brand{font-size:17px}#app .brand .mark{width:30px;height:30px}#app .top-actions{margin-left:auto}
#app .nav{display:flex;order:3;width:100%;gap:26px;height:43px;align-self:auto}#app .nav button{font-size:14px;padding:0 4px}#app .account>div{display:none}
#app .shell{padding:18px 12px}#app #contextTitle{font-size:22px}#app .context-bar{gap:12px;margin-bottom:17px}#app .view-select{min-width:0}
#app .today-board{gap:0!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}#app .today-card{padding:14px!important;border-radius:0!important}#app .today-card:nth-child(2){border-right:0}#app .today-card:nth-child(-n+2){border-bottom:1px solid #dce3e7}
#app .today-card small{font-size:13px}#app .today-card strong{font-size:24px!important}#app .today-card em{font-size:12px;margin-top:13px}#app .today-card span{font-size:11px}
#app .stats{gap:0;grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:18px}#app .stat{padding:15px 17px;border-bottom:1px solid #e2e8eb}#app .stat:nth-child(even){border-right:0}#app .stat:nth-last-child(-n+2){border-bottom:0}#app .stat small{font-size:13px;margin-bottom:9px}#app .stat strong{font-size:25px}
#app .workspace{display:flex;gap:16px}#app .panel{border-radius:7px}#app .toolbar{padding:12px;gap:8px}#app .toolbar input,#app .toolbar select,#app .toolbar .btn{height:44px;font-size:14px}#app .toolbar .search{min-width:0}#app .search input{font-size:16px}
#app .lead-table th,#app .lead-table td{padding:12px 10px}#app .detail-head{padding:20px}#app .detail-body{padding:18px}#app .detail-actions .btn{height:48px}
#consultationDetails .cd-head{gap:8px;padding:16px!important}#consultationDetails h2{font-size:19px}.cd-head-actions{gap:6px}.cd-head-actions .btn{padding-inline:10px}
#app .crm-notice{padding:24px 20px}.login-card{padding:30px 24px}
}
@media(prefers-reduced-motion:reduce){button,#app .lead-table tbody tr{transition:none}}
}

/* MADA wordmark and category-specific 3D illustrations */
#app .brand .mark,.login-brand .mark{width:108px;height:36px;flex-shrink:0}
#app .stat{padding-right:84px;min-height:112px}
#app .stat .stat-icon{position:absolute;right:12px;top:50%;transform:translateY(-50%);width:64px;height:64px;object-fit:contain;pointer-events:none}
@media(min-width:981px) and (max-width:1250px){#app .stat{padding-left:14px;padding-right:61px}#app .stat .stat-icon{width:48px;height:48px;right:6px}}
@media(max-width:980px){#app .brand{gap:8px}#app .brand .mark{width:80px;height:29px}#app .stat{padding-right:71px;min-height:100px}#app .stat .stat-icon{width:56px;height:56px;right:10px}}
@media(max-width:380px){#app .brand{font-size:15px}#app .brand .mark{width:66px}#app .stat{padding-left:12px;padding-right:59px}#app .stat .stat-icon{width:46px;height:46px;right:6px}.login-brand{gap:9px}.login-brand .mark{width:82px}.login-brand strong{font-size:18px}}

/* Separate partner boxes; retain the existing partner filter behavior. */
@media screen {
#app .today-board{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin-bottom:20px;border:0;border-radius:0;overflow:visible;background:transparent}
#app .today-card,#app .today-card:last-child{display:grid;grid-template-columns:auto 1fr;align-items:baseline;gap:8px;min-width:0;min-height:132px;padding:18px;border:2px solid #cbd0da;border-radius:10px;background:#fff;box-shadow:0 2px 5px #24242908;text-align:left}
#app .today-card small{grid-column:1 / -1;min-width:0;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;font-size:16px;line-height:1.5;color:#25252a;font-weight:800}
#app .today-card strong{margin:0;font-size:28px;line-height:1.2}
#app .today-card span{margin:0;font-size:14px;color:#637080}
#app .today-card em{grid-column:1 / -1;float:none;margin:0;padding-top:10px;border-top:1px solid #e1e4eb;font-size:14px;color:#4d3b9f;line-height:1.4;font-weight:700}
#app .today-card:hover{border-color:#8b75dc;background:#f8f6ff}
#app .today-card.active{border-color:#4320cc;background:#eee9ff;color:#321697;box-shadow:inset 0 4px #4320cc,0 2px 6px #4320cc14}
#app .today-card.active small{color:#321697}
#app .today-card.active span{color:#53447a}
#app .today-card.active em{border-color:#cfc3f6;color:#321697}
#app .today-card:focus-visible{outline:3px solid #4320cc;outline-offset:3px}
@media(max-width:768px){
#app .today-board{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
#app .today-card,#app .today-card:nth-child(2),#app .today-card:nth-child(-n+2){padding:14px!important;border:2px solid #cbd0da;border-radius:9px!important;min-height:130px}
#app .today-card.active{border-color:#4320cc}
#app .today-card small{font-size:14px}
#app .today-card strong{font-size:25px!important}
#app .today-card span,#app .today-card em{font-size:14px}
}
@media(max-width:360px){#app .today-board{grid-template-columns:minmax(0,1fr)!important}}
}
