:root{font-family:Tahoma,Arial,sans-serif;color:#172943;background:#f5f8fc;--navy:#132b4b;--blue:#2163ab;--teal:#0d9b9b}*{box-sizing:border-box}body{margin:0}a{color:#145fa9;text-decoration:none}button,.button{background:var(--blue);color:#fff;border:0;border-radius:10px;padding:12px 19px;cursor:pointer;font:inherit;display:inline-block}button:hover,.button:hover{background:#174f90;color:#fff}.app{display:flex;min-height:100vh}.sidebar{width:255px;background:var(--navy);color:#fff;padding:25px 15px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;flex-shrink:0}.brand{font-size:35px;font-weight:900;letter-spacing:3px;text-align:center;border-bottom:1px solid #456079;padding:14px 0 25px}.brand small{display:block;font:10px Arial;letter-spacing:2px;color:#9eb7d0}.menu{display:grid;gap:5px;margin-top:24px}.menu a{color:#c5d7ec;padding:12px 15px;border-radius:9px}.menu a:hover,.menu a.active{background:#254967;color:#fff}.sidefoot{margin-top:auto;border-top:1px solid #405974;padding:20px 12px;display:grid;gap:8px}.sidefoot small{color:#b3c9df}.sidefoot a{color:#a0e0ec}.content{flex:1;min-width:0;padding:25px 32px;max-width:1800px}.top{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}.top small{color:#8b9ab0}.top h1{margin:5px 0;font-size:26px}.pill{background:#e9f6f5;color:#137f7d;padding:8px 13px;border-radius:30px;font-size:12px}.panel{background:#fff;padding:24px;border-radius:16px;box-shadow:0 3px 22px #1b4b8210;margin-bottom:20px;border:1px solid #e8eef5}.panel h2{margin:0 0 20px;font-size:19px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}.stat{background:white;border-radius:16px;padding:24px;border:1px solid #e5edf5;box-shadow:0 5px 20px #1b4b8210}.stat small{color:#8091a6;display:block}.stat strong{display:block;font-size:34px;margin-top:10px;color:var(--navy)}.tablewrap{overflow-x:auto}table{border-collapse:collapse;width:100%;min-width:620px}th,td{text-align:right;padding:13px 12px;border-bottom:1px solid #eef2f7;font-size:14px}th{color:#64758f;background:#f8fafc}tr:hover td{background:#f9fbff}.sectionhead{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:15px}.sectionhead p{color:#718098}.filters,.inlineform{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.formgrid .full{grid-column:1/-1}label{display:grid;gap:8px;font-size:13px;color:#60728d}input,select,textarea{font:inherit;border:1px solid #d8e2ec;border-radius:9px;padding:11px 12px;min-width:0;width:100%;background:#fff;color:#263c5b}textarea{min-height:90px;resize:vertical}input:focus,textarea:focus,select:focus{outline:2px solid #b9d5f1}.formgrid button{width:max-content}.notice{background:#e8f7ef;color:#206546;border-radius:10px;padding:14px;margin:0 0 18px}.error{background:#fff0ee;color:#a52e23;border-radius:10px;padding:14px;margin:0 0 18px}.two{display:grid;grid-template-columns:1fr 1fr;gap:20px}.line{padding:14px;border-bottom:1px solid #edf1f6}.timeline{border-right:2px solid #c9d8e8;padding-right:15px}.timelineitem{margin:15px 0;padding:10px}.timelineitem small,.taskcard small{display:block;color:#8897a9;font-size:12px;margin:7px 0}.taskboard{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.taskcol{background:#f3f7fb;border-radius:13px;padding:14px;min-height:200px}.taskcol h3{font-size:15px}.taskcard{background:#fff;padding:14px;border:1px solid #e4eaf3;border-radius:10px;margin-bottom:12px}.taskcard p{font-size:13px}.taskcard textarea{min-height:55px}.taskcard button{padding:7px 10px}.checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:20px 0}.checks label{display:flex;align-items:center;gap:10px}.checks input{width:auto}.muted{color:#778ba3}.tesla{font:900 33px Arial;color:var(--navy);letter-spacing:2px}.tesla span{font:13px Arial;letter-spacing:0;color:#708baa}.auth{min-height:100vh;display:grid;place-items:center;padding:20px;background:linear-gradient(145deg,#102845,#195b84)}.auth .panel{width:min(440px,100%);padding:40px}.auth .logo{text-align:center;font:900 42px Arial;color:#173a63;margin-bottom:26px}.logo small{display:block;font:11px Arial;letter-spacing:2px}.auth p{color:#8090a5}.auth form{display:grid;gap:17px}.menu-toggle{display:none}@media(max-width:950px){.stats{grid-template-columns:repeat(2,1fr)}.sidebar{width:220px}.content{padding:20px}.taskboard{grid-template-columns:1fr}}@media(max-width:700px){.sidebar{position:fixed;right:-260px;z-index:20;transition:right .2s}.show-sidebar .sidebar{right:0}.menu-toggle{display:block}.top{gap:15px}.formgrid,.two,.checks{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.content{padding:15px}.panel{padding:16px}.filters>*{width:100%}.top h1{font-size:21px}}

/* ELBATT brand system — yellow / ink black / white */
:root{--navy:#111111;--blue:#f9c921;--teal:#f9c921;color:#171717;background:#faf8f1}
body{background:#faf8f1;color:#171717}
a{color:#9f7600}
button,.button{background:#ffcf28;color:#141414;font-weight:700;border:1px solid #e9b810}
button:hover,.button:hover{background:#edbc14;color:#111}
.sidebar{background:#0e0e0e;color:#fff;border-left:4px solid #ffcf28}
.elbatt-brand{padding:7px 0 20px;letter-spacing:0;border-bottom:1px solid #444}
.elbatt-brand img{width:125px;height:125px;object-fit:contain;border-radius:16px;display:block;margin:auto;background:#ffcd29}
.elbatt-brand small{display:block;color:#ffcf28;margin-top:12px;letter-spacing:2px;font:700 11px Arial}
.menu a{color:#e8e8e8}
.menu a:hover,.menu a.active{background:#ffce28;color:#171717;font-weight:bold}
.sidefoot{border-color:#383838}.sidefoot small{color:#bbb}.sidefoot a{color:#ffce28}
.content{background:#faf9f5}
.top small{color:#736d59}.top h1{color:#171717}
.pill{background:#fff2bd;color:#493600;border:1px solid #efd779}
.panel,.stat{border-color:#ede7d5;box-shadow:0 3px 18px #3326000c}
.stat{border-top:4px solid #ffce28}.stat strong{color:#181818}.stat small{color:#766f61}
th{background:#151515;color:#fff;border-bottom-color:#2c2c2c}
td{border-color:#f1ecd9}tr:hover td{background:#fff8d9}
input:focus,select:focus,textarea:focus{outline:2px solid #efc11f}
input,select,textarea{border-color:#dcd5be;color:#181818}
.taskcol{background:#fff6d7}.taskcard{border-color:#eee1af}
.notice{background:#fff3c0;color:#574200}.timeline{border-color:#f8ce35}
.tesla,.tesla span{color:#191919}
.auth{background:linear-gradient(135deg,#111 0%,#27231a 65%,#614e16 100%)}
.auth .panel{border-top:6px solid #ffcf28}
.auth .logo{margin-bottom:16px}
.auth .elbatt-logo img{display:block;max-width:170px;width:100%;height:auto;margin:auto;border-radius:14px}
@media(max-width:700px){.elbatt-brand img{width:100px;height:100px}}


.password-field{position:relative;width:100%}
.password-field input{width:100%;padding-inline-end:76px!important}
.password-toggle{position:absolute;inset-inline-end:9px;top:50%;transform:translateY(-50%);width:auto!important;min-height:34px;border:1px solid #c8c8c8;background:#fff!important;color:#111!important;border-radius:8px;padding:4px 10px!important;font-size:13px;cursor:pointer}
.password-toggle:focus-visible{outline:2px solid #111;outline-offset:2px}


.lead-actions-cell{min-width:300px;text-align:center;white-space:nowrap}
.lead-actions{display:flex;justify-content:center;align-items:center;gap:8px;direction:rtl}
.lead-action-btn{display:inline-flex!important;align-items:center;justify-content:center;min-height:36px;padding:6px 12px;border:1px solid #e2d8bf;border-radius:9px;text-decoration:none!important;font-size:13px;font-weight:700;white-space:nowrap;color:#181818!important;background:#fff}
.lead-details{background:#ffcf28!important;border-color:#ffcf28}
.lead-whatsapp{background:#f2faf4!important;border-color:#a5d7b1;color:#176436!important}
.lead-action-menu{position:relative;display:inline-block}
.lead-action-menu summary{display:flex;align-items:center;justify-content:center;list-style:none;width:36px;height:36px;border:1px solid #d9d9d9;border-radius:9px;background:white;cursor:pointer;font-size:21px;font-weight:bold;line-height:1}
.lead-action-menu summary::-webkit-details-marker{display:none}
.lead-action-dropdown{position:absolute;z-index:20;left:0;top:40px;min-width:110px;padding:6px;border:1px solid #ddd;border-radius:10px;background:#fff;box-shadow:0 10px 25px #0002;white-space:normal}
.lead-action-dropdown a,.lead-action-dropdown button{display:block!important;box-sizing:border-box;width:100%!important;margin:0!important;padding:8px!important;background:white!important;color:#161616!important;border:0!important;text-align:right!important;text-decoration:none!important;font-size:13px!important;cursor:pointer}
.lead-action-dropdown button{color:#b42318!important}
.lead-action-dropdown form{margin:0!important}
@media(max-width:700px){.lead-actions-cell{min-width:255px}.lead-actions{gap:5px}.lead-action-btn{padding:6px 8px;font-size:12px}}

/* Lead list: keep all actions visible without nested scrollbars */
.leads-panel .tablewrap{overflow:visible!important}
.leads-table{width:100%;min-width:0!important;table-layout:fixed}
.leads-table th,.leads-table td{vertical-align:middle;overflow-wrap:anywhere;padding:11px 7px;font-size:13px}
.leads-table th:nth-child(1){width:17%}
.leads-table th:nth-child(2){width:9%}
.leads-table th:nth-child(3){width:12%}
.leads-table th:nth-child(4){width:14%}
.leads-table th:nth-child(5){width:8%}
.leads-table th:nth-child(6){width:9%}
.leads-table th:nth-child(7){width:10%}
.leads-table th:nth-child(8){width:21%}
.leads-table .lead-actions-cell{min-width:0!important;white-space:normal;text-align:center}
.leads-table .lead-actions{gap:4px;justify-content:center;flex-wrap:wrap}
.leads-table .lead-action-btn{min-height:32px;font-size:12px;padding:5px 7px}
.leads-table .lead-action-menu summary{width:31px;height:32px;font-size:18px}
.leads-table .lead-action-dropdown{top:auto!important;bottom:38px!important;left:0;right:auto}
@media(max-width:1050px){
 .leads-table{display:block}
 .leads-table tbody{display:block}
 .leads-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid #e6e1d3;border-radius:12px;margin:10px 0;padding:8px;background:#fff}
 .leads-table tr:first-child{display:none}
 .leads-table td{display:block;min-width:0;border:0;padding:7px 10px}
 .leads-table td:first-child{font-weight:700;grid-column:1/-1}
 .leads-table td:last-child{grid-column:1/-1}
 .leads-table .lead-actions{justify-content:flex-start}
 .leads-table .lead-action-dropdown{bottom:auto!important;top:35px!important}
}
@media(max-width:580px){.leads-table tr{grid-template-columns:1fr}}
