/* EVENTFLOW v4 — MAIN CSS */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --bg:#0c0b10;--surface:#15131e;--surface2:#1e1b2a;--surface3:#262236;--border:#2a2640;--border2:#352f50;
  --text:#edeaf5;--muted:#7a7590;--muted2:#5a5570;
  --gold:#e8b84b;--gold-light:#f5d78e;--green:#4ecb8a;--blue:#5ba4f5;--red:#f56b6b;--purple:#9b7fea;--orange:#f5813f;
  --radius:12px;--radius-lg:16px;--radius-sm:8px;--shadow:0 4px 24px rgba(0,0,0,.4);--shadow-lg:0 12px 48px rgba(0,0,0,.6);
}
[data-theme="light"]{
  --bg:#f5f3f8;--surface:#ffffff;--surface2:#f0edf5;--surface3:#e6e2ed;--border:#dad4e3;--border2:#bdb6cc;
  --text:#1c1729;--muted:#5d5870;--muted2:#8b8599;
  --gold:#b8881e;--gold-light:#d49f30;--green:#1f8a55;--blue:#2566b8;--red:#c93232;--purple:#5a3eb8;--orange:#c8581f;
  --shadow:0 4px 24px rgba(28,23,41,.08);--shadow-lg:0 12px 48px rgba(28,23,41,.15);
}
[data-theme="light"] ::-webkit-scrollbar-track{background:var(--surface2)}
[data-theme="light"] .modal-overlay{background:rgba(40,30,60,.4)}
.theme-toggle-btn{background:none;border:1px solid var(--border);color:var(--text);width:32px;height:32px;border-radius:50%;cursor:pointer;font-size:14px;display:flex;align-items:center;justify-content:center;padding:0;transition:all .15s}
.theme-toggle-btn:hover{border-color:var(--gold);background:var(--surface2)}
html,body{height:100%;font-family:'Segoe UI',system-ui,-apple-system,sans-serif;background:var(--bg);color:var(--text);overflow-x:hidden;line-height:1.5;font-size:15px}
input,select,textarea,button{font-family:inherit;font-size:inherit}
a{color:inherit;text-decoration:none}
::-webkit-scrollbar{width:5px;height:5px}::-webkit-scrollbar-track{background:var(--surface)}::-webkit-scrollbar-thumb{background:var(--border2);border-radius:99px}
@keyframes fadeUp{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
.fade-up{animation:fadeUp .3s ease}.fade-in{animation:fadeIn .25s ease}.hidden{display:none!important}

/* FORMS */
.form-group{margin-bottom:14px}
.form-group label{display:block;font-size:11px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;margin-bottom:5px}
input[type=text],input[type=email],input[type=tel],input[type=number],input[type=password],input[type=date],input[type=url],select,textarea{width:100%;padding:.65rem .85rem;background:var(--surface2);border:1.5px solid var(--border);border-radius:var(--radius-sm);color:var(--text);font-size:14px;outline:none;transition:border-color .2s,box-shadow .2s;-webkit-appearance:none;appearance:none;}
input:focus,select:focus,textarea:focus{border-color:var(--gold);box-shadow:0 0 0 3px rgba(232,184,75,.12)}
input::placeholder,textarea::placeholder{color:var(--muted2)}
select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a7590' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;padding-right:32px;cursor:pointer}
select option{background:var(--surface2);color:var(--text)}
textarea{resize:vertical;min-height:70px;font-family:inherit;line-height:1.5}
.form-row{display:flex;gap:12px;flex-wrap:wrap}
.form-group.half{flex:1 1 calc(50% - 6px);min-width:160px}
.form-section{margin-bottom:24px}
.sec-lbl{font-size:11px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.08em;padding-bottom:10px;margin-bottom:14px;border-bottom:1px solid var(--border)}
.form-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:24px;padding-top:20px;border-top:1px solid var(--border);flex-wrap:wrap}
.form-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:24px;max-width:740px}

/* BUTTONS */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:.65rem 1.4rem;border-radius:var(--radius-sm);font-weight:600;font-size:14px;cursor:pointer;border:none;transition:all .15s;white-space:nowrap;text-decoration:none}
.btn-primary{background:var(--gold);color:#1a1100}.btn-primary:hover{background:var(--gold-light);transform:translateY(-1px)}
.btn-secondary{background:var(--surface2);color:var(--text);border:1.5px solid var(--border)}.btn-secondary:hover{border-color:var(--gold);color:var(--gold)}
.btn-danger{background:rgba(245,107,107,.12);color:var(--red);border:1px solid rgba(245,107,107,.25)}.btn-danger:hover{background:rgba(245,107,107,.2)}
.btn-full{width:100%}
.btn-sm{display:inline-flex;align-items:center;gap:4px;padding:.38rem .9rem;font-size:12px;font-weight:600;border-radius:var(--radius-sm);cursor:pointer;border:1px solid var(--border);background:var(--surface2);color:var(--text);transition:all .15s;text-decoration:none;white-space:nowrap}
.btn-sm:hover{border-color:var(--gold);color:var(--gold)}
.btn-sm.btn-gold,.btn-gold{background:var(--gold);color:#1a1100;border-color:var(--gold)}.btn-sm.btn-gold:hover{background:var(--gold-light)}
.btn-sm.btn-green{background:rgba(78,203,138,.15);color:var(--green);border-color:rgba(78,203,138,.3)}
.btn-sm.btn-blue{background:rgba(91,164,245,.15);color:var(--blue);border-color:rgba(91,164,245,.3)}
.btn-sm.btn-red{background:rgba(245,107,107,.12);color:var(--red);border-color:rgba(245,107,107,.25)}
.btn-icon{background:none;border:none;color:var(--muted);cursor:pointer;font-size:16px;padding:4px;transition:color .15s}.btn-icon:hover{color:var(--text)}

/* BADGES */
.badge{display:inline-block;font-size:11px;padding:3px 10px;border-radius:99px;font-weight:600;white-space:nowrap}
.s-inquiry{color:var(--orange);background:rgba(245,129,63,.15);border:1px solid rgba(245,129,63,.25)}
.s-confirmed{color:var(--blue);background:rgba(91,164,245,.15);border:1px solid rgba(91,164,245,.25)}
.s-in-progress{color:var(--purple);background:rgba(155,127,234,.15);border:1px solid rgba(155,127,234,.25)}
.s-completed{color:var(--green);background:rgba(78,203,138,.15);border:1px solid rgba(78,203,138,.25)}
.s-cancelled{color:var(--red);background:rgba(245,107,107,.15);border:1px solid rgba(245,107,107,.25)}
.p-high{color:var(--orange);background:rgba(245,129,63,.12);border:1px solid rgba(245,129,63,.2)}
.p-urgent{color:var(--red);background:rgba(245,107,107,.12);border:1px solid rgba(245,107,107,.2)}

/* ALERT */
.alert{padding:10px 14px;border-radius:var(--radius-sm);font-size:13px;margin-bottom:12px}
.alert-error{background:rgba(245,107,107,.12);border:1px solid rgba(245,107,107,.3);color:var(--red)}

/* TOAST */
.toast{position:fixed;bottom:24px;right:24px;background:var(--surface);border:1px solid var(--gold);border-radius:var(--radius-sm);padding:12px 20px;font-size:14px;z-index:9999;box-shadow:var(--shadow-lg);max-width:340px;transition:opacity .3s;pointer-events:none}
.toast.show{opacity:1}.toast.toast-error{border-color:var(--red)}
.toast.hidden{opacity:0}
.empty{text-align:center;padding:3rem 1rem;color:var(--muted)}.empty-icon{font-size:40px;margin-bottom:12px}
.sec-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.sec-title{font-weight:700;font-size:16px}
.filter-bar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px;align-items:center}
.filter-bar select{flex:1;min-width:140px}

/* CARD ITEMS */
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg)}
.card-list{display:flex;flex-direction:column;gap:10px}
.card-item{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:14px 16px;display:flex;align-items:flex-start;gap:14px;flex-wrap:wrap}
.av{width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:16px;color:#fff;flex-shrink:0}
.av0{background:linear-gradient(135deg,#e8b84b,#f5813f)}.av1{background:linear-gradient(135deg,#5ba4f5,#9b7fea)}
.av2{background:linear-gradient(135deg,#4ecb8a,#5ba4f5)}.av3{background:linear-gradient(135deg,#f56b6b,#9b7fea)}
.av4{background:linear-gradient(135deg,#9b7fea,#e8b84b)}.av-sm{width:36px;height:36px;font-size:13px}
.ci-info{flex:1;min-width:0}.ci-name{font-weight:600;font-size:15px}.ci-sub{font-size:12px;color:var(--muted);margin-top:2px}
.card-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-left:auto}
.avail-badge{font-size:11px;padding:4px 12px;border-radius:99px;cursor:pointer;user-select:none;font-weight:600;transition:all .15s}
.av-available{color:var(--green);background:rgba(78,203,138,.15);border:1px solid rgba(78,203,138,.3)}
.av-busy{color:var(--red);background:rgba(245,107,107,.15);border:1px solid rgba(245,107,107,.3)}
.av-on-leave{color:var(--orange);background:rgba(245,129,63,.15);border:1px solid rgba(245,129,63,.3)}

/* EVENT CARDS */
.event-list{display:flex;flex-direction:column;gap:8px;margin-bottom:8px}
.event-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:14px 16px;cursor:pointer;display:flex;align-items:center;gap:12px;transition:border-color .15s,transform .15s;text-decoration:none;color:inherit}
.event-card:hover{border-color:var(--gold);transform:translateX(3px)}
.ev-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}
.dot-inquiry{background:var(--orange)}.dot-confirmed{background:var(--blue)}.dot-in-progress{background:var(--purple)}.dot-completed{background:var(--green)}.dot-cancelled{background:var(--red)}
.ev-info{flex:1;min-width:0}.ev-name{font-weight:600;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ev-meta{font-size:12px;color:var(--muted);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ev-right{text-align:right;flex-shrink:0}.ev-date{font-size:12px;color:var(--muted)}

/* STAT GRID */
.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px;margin-bottom:28px}
.stat-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:20px 16px;text-align:center;position:relative;overflow:hidden;cursor:pointer;transition:border-color .15s,transform .15s;text-decoration:none;color:inherit;display:block}
.stat-card:hover{transform:translateY(-2px)}
.stat-card::before{content:'';position:absolute;inset:0;opacity:.07}
.stat-card.gold::before{background:var(--gold)}.stat-card.blue::before{background:var(--blue)}
.stat-card.purple::before{background:var(--purple)}.stat-card.green::before{background:var(--green)}.stat-card.orange::before{background:var(--orange)}
.stat-num{font-size:36px;font-weight:800;line-height:1;position:relative}
.stat-card.gold .stat-num{color:var(--gold)}.stat-card.blue .stat-num{color:var(--blue)}
.stat-card.purple .stat-num{color:var(--purple)}.stat-card.green .stat-num{color:var(--green)}.stat-card.orange .stat-num{color:var(--orange)}
.stat-label{font-size:11px;color:var(--muted);margin-top:4px;text-transform:uppercase;letter-spacing:.06em;position:relative}

/* MODAL */
.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.75);display:flex;align-items:center;justify-content:center;z-index:1000;padding:16px;backdrop-filter:blur(2px)}
.modal-overlay.hidden{display:none}
.modal-box{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:24px;width:min(680px,96vw);max-height:92vh;overflow-y:auto;box-shadow:var(--shadow-lg)}
.modal-sm{width:min(480px,96vw)}
.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}
.modal-head h3{font-size:20px;font-weight:700}
.modal-close{background:none;border:none;color:var(--muted);cursor:pointer;font-size:18px;padding:4px}
.modal-close:hover{color:var(--text)}
.modal-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:16px;padding-top:16px;border-top:1px solid var(--border);flex-wrap:wrap}

/* PAYMENT TABLES */
.pay-history{background:var(--surface2);border-top:1px solid var(--border);padding:8px;overflow-x:auto}
.pay-table{width:100%;border-collapse:collapse;font-size:13px;min-width:520px}
.pay-table th{text-align:left;padding:6px 8px;font-size:11px;color:var(--muted);text-transform:uppercase;border-bottom:1px solid var(--border)}
.pay-table td{padding:6px 8px;border-bottom:1px solid var(--border);vertical-align:middle}
.pay-table tr:last-child td{border-bottom:none}
.pay-pill{font-size:11px;padding:2px 8px;border-radius:99px;font-weight:600}
.pay-paid{color:var(--green);background:rgba(78,203,138,.15);border:1px solid rgba(78,203,138,.3)}
.pay-pend{color:var(--orange);background:rgba(245,129,63,.15);border:1px solid rgba(245,129,63,.25)}
.pay-partial{color:var(--purple);background:rgba(155,127,234,.15);border:1px solid rgba(155,127,234,.25)}
.pay-advance{color:var(--blue);background:rgba(91,164,245,.15);border:1px solid rgba(91,164,245,.25)}

/* LANG TOGGLE */
.lang-toggle{display:flex;gap:4px;margin-bottom:12px}
.lang-btn{padding:5px 12px;border-radius:99px;border:1.5px solid var(--border);background:var(--surface2);color:var(--muted);font-size:13px;cursor:pointer;transition:all .15s;font-weight:600}
.lang-btn.active{border-color:var(--gold);background:rgba(232,184,75,.12);color:var(--gold)}

/* CHECKLIST */
.cl-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:20px}
.cl-head{display:flex;justify-content:space-between;margin-bottom:8px;align-items:center}
.cl-prog-wrap{height:6px;background:var(--border);border-radius:99px;margin-bottom:20px}
.cl-prog{height:100%;background:var(--green);border-radius:99px;transition:width .3s}
.cl-item{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--border);cursor:pointer;user-select:none}
.cl-item:last-child{border-bottom:none}.cl-item:hover .cl-box{border-color:var(--gold)}
.cl-box{width:22px;height:22px;border-radius:6px;border:2px solid var(--border);display:flex;align-items:center;justify-content:center;font-size:12px;color:#fff;flex-shrink:0;transition:all .15s}
.cl-box.done{background:var(--green);border-color:var(--green)}
.cl-label{font-size:14px;flex:1}.cl-label.done{text-decoration:line-through;color:var(--muted)}

/* SVC PILLS */
.svc-pill{padding:5px 12px;border-radius:99px;border:1.5px solid var(--border);background:var(--surface2);color:var(--muted);font-size:13px;cursor:pointer;user-select:none;transition:all .15s;display:inline-block;margin:3px}
.svc-pill.on{border-color:var(--gold);background:rgba(232,184,75,.12);color:var(--gold)}
.v-subtypes-pills{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px;padding:8px;background:var(--surface2);border-radius:var(--radius-sm);min-height:40px}
.v-services-pills{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}

/* CUSTOM SELECT */
.custom-select-wrap{display:flex;gap:6px;align-items:center}
.custom-select-wrap select{flex:1}
.add-option-btn{padding:0 10px;height:38px;background:var(--surface2);border:1.5px solid var(--border);border-radius:var(--radius-sm);color:var(--gold);cursor:pointer;font-size:18px;font-weight:700;transition:all .15s;flex-shrink:0;line-height:1}
.add-option-btn:hover{background:rgba(232,184,75,.12);border-color:var(--gold)}
.option-item{display:flex;align-items:center;justify-content:space-between;padding:6px 10px;background:var(--surface2);border-radius:var(--radius-sm);margin-bottom:4px;font-size:13px}
.option-item button{background:none;border:none;color:var(--red);cursor:pointer;font-size:14px;padding:2px}

/* MAP */
.map-search-wrap{position:relative;margin-bottom:8px}
.map-suggestions{position:absolute;top:100%;left:0;right:0;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);z-index:200;max-height:200px;overflow-y:auto;box-shadow:var(--shadow)}
.map-sug-item{padding:10px 14px;font-size:13px;cursor:pointer;border-bottom:1px solid var(--border);line-height:1.4;transition:background .1s}
.map-sug-item:hover{background:var(--surface2)}.map-sug-item:last-child{border-bottom:none}
.map-container{border-radius:var(--radius-sm);overflow:hidden;margin-bottom:8px;background:var(--surface2);border:1.5px solid var(--border)}
.map-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;height:200px}
.map-frame{width:100%;height:220px;display:block}
.map-coords-row{display:flex;gap:10px}

/* ACCORDION */
.svc-accordion{display:flex;flex-direction:column;gap:6px}
.svc-accord-item{background:var(--surface2);border:1.5px solid var(--border);border-radius:var(--radius-sm);overflow:hidden;transition:border-color .15s}
.svc-accord-item.open{border-color:var(--gold)}
.svc-accord-head{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;cursor:pointer;user-select:none;transition:background .15s}
.svc-accord-head:hover{background:var(--surface3)}
.svc-accord-left{display:flex;align-items:center;gap:10px}
.svc-accord-check{width:22px;height:22px;border-radius:6px;border:2px solid var(--border);flex-shrink:0;display:flex;align-items:center;justify-content:center;transition:all .15s;font-size:11px;font-weight:700}
.svc-accord-check.has-items{background:var(--gold);border-color:var(--gold);color:#1a1100}
.svc-accord-name{font-size:14px;font-weight:600}
.svc-accord-arrow{font-size:11px;color:var(--muted);flex-shrink:0}
.svc-manage-btn{opacity:0;transition:opacity .15s;font-size:14px;padding:2px 4px}
.svc-accord-head:hover .svc-manage-btn{opacity:1}
.svc-accord-body{padding:8px 14px 12px;border-top:1px solid var(--border);background:var(--surface)}
.svc-sub-row{display:flex;align-items:center;gap:10px;padding:7px 8px;border-radius:6px;margin-bottom:4px;transition:background .12s;cursor:pointer;flex-wrap:wrap}
.svc-sub-row:hover{background:var(--surface2)}.svc-sub-row.selected{background:rgba(232,184,75,.07);border:1px solid rgba(232,184,75,.2)}
.svc-check{width:18px;height:18px;accent-color:var(--gold);cursor:pointer;flex-shrink:0}
.svc-sub-name{flex:1;font-size:14px;cursor:pointer;user-select:none;min-width:100px}
.svc-extra-inputs{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.svc-feet-input{width:110px;padding:.3rem .5rem;font-size:12px;border-radius:6px;background:var(--surface2);border:1.5px solid var(--border);color:var(--text)}
.svc-sqft-input{width:76px;padding:.3rem .5rem;font-size:12px;border-radius:6px;background:var(--surface2);border:1.5px solid var(--border);color:var(--text)}
.svc-qty-input {width:76px;padding:.3rem .5rem;font-size:12px;border-radius:6px;background:var(--surface2);border:1.5px solid var(--border);color:var(--text)}
.svc-feet-input:focus,.svc-sqft-input:focus,.svc-qty-input:focus{border-color:var(--gold)}

/* EXPENSES TABLE */
.exp-table{width:100%;border-collapse:collapse;font-size:13px}
.exp-table th{text-align:left;padding:8px;font-size:11px;color:var(--muted);text-transform:uppercase;border-bottom:1px solid var(--border);white-space:nowrap}
.exp-table td{padding:8px;border-bottom:1px solid var(--border);vertical-align:middle}
.exp-table tr:hover td{background:var(--surface2)}

/* PHOTOS */
.photo-svc-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);margin-bottom:8px;overflow:hidden}
.photo-svc-head{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;cursor:pointer;user-select:none;transition:background .15s}
.photo-svc-head:hover{background:var(--surface2)}
.photo-svc-body{padding:14px 16px;border-top:1px solid var(--border)}
.photo-row{margin-bottom:14px}
.photo-subtypes{display:flex;flex-wrap:wrap;gap:12px}
.photo-slot{flex:0 0 auto}
.photo-slot-label{font-size:11px;color:var(--muted);margin-bottom:6px;font-weight:600}
.photo-thumb-wrap{position:relative;width:100px;height:80px}
.photo-thumb{width:100px;height:80px;object-fit:cover;border-radius:var(--radius-sm);border:1.5px solid var(--border)}
.photo-del-btn{position:absolute;top:-6px;right:-6px;width:20px;height:20px;border-radius:50%;background:var(--red);color:#fff;border:none;cursor:pointer;font-size:11px;display:flex;align-items:center;justify-content:center}
.photo-upload-btn{display:flex;align-items:center;justify-content:center;width:100px;height:80px;border:1.5px dashed var(--border);border-radius:var(--radius-sm);cursor:pointer;font-size:12px;color:var(--muted);transition:all .15s;flex-direction:column;gap:4px}
.photo-upload-btn:hover{border-color:var(--gold);color:var(--gold)}
.photo-upload-btn input{display:none}

/* DETAIL */
.detail-grid-2{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:16px}
.detail-col{display:flex;flex-direction:column;gap:16px}
.detail-box{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:18px 20px}
.detail-box-title{font-size:13px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;margin-bottom:14px;padding-bottom:10px;border-bottom:1px solid var(--border)}
.detail-row{display:flex;justify-content:space-between;align-items:baseline;padding:6px 0;border-bottom:1px solid var(--border);font-size:14px;gap:10px}
.detail-row:last-child{border-bottom:none}
.detail-row-label{color:var(--muted);flex-shrink:0}.detail-row-val{font-weight:500;text-align:right;word-break:break-word}
.svc-tag{font-size:12px;padding:3px 10px;background:rgba(232,184,75,.1);color:var(--gold);border-radius:99px;border:1px solid rgba(232,184,75,.22)}
.svc-tags{display:flex;flex-wrap:wrap;gap:6px}
.progress-bar-wrap{height:6px;background:var(--border);border-radius:99px;margin-top:8px}
.progress-bar{height:100%;border-radius:99px;transition:width .4s}
.activity-box{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:18px 20px;margin-top:16px}
.activity-title{font-size:13px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;margin-bottom:14px;padding-bottom:10px;border-bottom:1px solid var(--border)}
.audit-entry{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid var(--border);font-size:13px}
.audit-entry:last-child{border-bottom:none}
.audit-dot{width:8px;height:8px;border-radius:50%;background:var(--gold);flex-shrink:0;margin-top:4px}
.audit-content{flex:1}.audit-time{font-size:11px;color:var(--muted);margin-top:3px}
.audit-changes{margin-top:6px;display:flex;flex-direction:column;gap:3px}
.audit-change{font-size:12px;color:var(--muted);display:flex;gap:6px;align-items:baseline;flex-wrap:wrap}
.audit-change .field-name{color:var(--text);font-weight:600;white-space:nowrap}
.audit-change .old-val{color:var(--red);text-decoration:line-through;word-break:break-word}
.audit-change .new-val{color:var(--green);word-break:break-word}

/* TOGGLE */
.toggle-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--border);cursor:pointer;font-size:14px}
.toggle-row input[type=checkbox]{width:18px;height:18px;accent-color:var(--gold);cursor:pointer}

/* VENDOR SEND */
.sv-info-box{background:var(--surface2);border:1px solid var(--border);border-radius:var(--radius-sm);padding:10px 14px;margin-bottom:12px;font-size:13px;color:var(--muted);line-height:1.6}
.sv-info-box strong{color:var(--text)}
.sv-services-box{background:rgba(232,184,75,.06);border:1px solid rgba(232,184,75,.2);border-radius:var(--radius-sm);padding:12px 14px;margin-bottom:12px}

/* NOTIF */
.notif-panel{position:absolute;top:58px;right:16px;width:min(340px,94vw);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);z-index:200;overflow:hidden}
.notif-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--border)}
.notif-head button{background:none;border:none;color:var(--muted);cursor:pointer;font-size:16px}
.notif-list{max-height:360px;overflow-y:auto}
.notif-item{padding:12px 16px;border-bottom:1px solid var(--border);font-size:13px;display:flex;gap:10px;align-items:flex-start;cursor:pointer;transition:background .15s}
.notif-item:hover{background:var(--surface2)}.notif-item:last-child{border-bottom:none}
.notif-item.unread{background:rgba(232,184,75,.06)}
.notif-icon{font-size:18px;flex-shrink:0;margin-top:1px}
.notif-text{flex:1}.notif-time{font-size:11px;color:var(--muted);margin-top:3px}
.notif-empty{padding:2rem;text-align:center;color:var(--muted);font-size:13px}
.notif-btn{position:relative;cursor:pointer;font-size:20px;padding:4px;transition:transform .15s;user-select:none}
.notif-btn:hover{transform:scale(1.1)}
.notif-dot{position:absolute;top:2px;right:2px;width:8px;height:8px;background:var(--red);border-radius:50%;border:2px solid var(--surface)}

@media(max-width:768px){
  .form-row{flex-direction:column}.form-group.half{flex:1 1 100%;min-width:unset}
  .modal-actions,.form-actions{flex-direction:column-reverse}
  .modal-actions .btn,.form-actions .btn{width:100%;text-align:center}
  .filter-bar{flex-direction:column}.filter-bar select,.filter-bar input{width:100%}
  .stat-grid{grid-template-columns:1fr 1fr}.stat-num{font-size:28px}
  .detail-grid-2{grid-template-columns:1fr}
  .card-actions{margin-left:0;margin-top:8px;width:100%}
  .map-coords-row{flex-direction:column}
  .photo-subtypes{gap:8px}
}

/* ===== V5 ADDITIONS ===== */
/* FINANCE DASHBOARD */
.fin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px;margin-bottom:20px}
.fin-card{border-radius:var(--radius-lg);padding:18px 20px;position:relative;overflow:hidden}
.fin-label{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;margin-bottom:8px;opacity:.8}
.fin-val{font-size:26px;font-weight:800;line-height:1;margin-bottom:6px}
.fin-sub{font-size:11px;opacity:.75}
.fin-income{background:linear-gradient(135deg,rgba(78,203,138,.18),rgba(78,203,138,.08));border:1px solid rgba(78,203,138,.3);}
.fin-income .fin-val{color:var(--green)}
.fin-expense{background:linear-gradient(135deg,rgba(245,129,63,.18),rgba(245,129,63,.08));border:1px solid rgba(245,129,63,.3);}
.fin-expense .fin-val{color:var(--orange)}
.fin-profit{background:linear-gradient(135deg,rgba(232,184,75,.18),rgba(232,184,75,.08));border:1px solid rgba(232,184,75,.3);}
.fin-profit .fin-val{color:var(--gold)}
.fin-loss{background:linear-gradient(135deg,rgba(245,107,107,.18),rgba(245,107,107,.08));border:1px solid rgba(245,107,107,.3);}
.fin-loss .fin-val{color:var(--red)}

/* TYPE PILLS */
.type-pill{font-size:10px;padding:2px 8px;border-radius:99px;font-weight:700}
.type-expense{background:rgba(245,129,63,.15);color:var(--orange);border:1px solid rgba(245,129,63,.25)}
.type-vendor{background:rgba(91,164,245,.15);color:var(--blue);border:1px solid rgba(91,164,245,.25)}
.type-labour{background:rgba(155,127,234,.15);color:var(--purple);border:1px solid rgba(155,127,234,.25)}
.type-income{background:rgba(78,203,138,.15);color:var(--green);border:1px solid rgba(78,203,138,.3)}

/* DATE RANGE BAR */
.date-range-bar{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:14px 18px;margin-bottom:20px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.date-range-bar label{font-size:12px;color:var(--muted);white-space:nowrap}
.date-range-bar input[type=date]{flex:1;min-width:120px}
.preset-btns{display:flex;gap:4px;flex-wrap:wrap}
.preset-btn{padding:4px 10px;font-size:12px;border-radius:99px;border:1px solid var(--border);background:var(--surface2);color:var(--muted);cursor:pointer;transition:all .15s;font-weight:600}
.preset-btn:hover{border-color:var(--gold);color:var(--gold)}

/* CUSTOMER DETAIL PANEL */
.cust-detail-panel{background:var(--surface2);border-top:none;border:1px solid var(--border);border-top:none;border-radius:0 0 var(--radius) var(--radius);padding:16px;margin-bottom:8px;animation:fadeUp .2s ease}
.cust-detail-inner{max-width:100%}
.cust-detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:16px;margin-bottom:14px;font-size:13px}
.cust-card.active-cust{border-color:var(--gold);border-bottom-left-radius:0;border-bottom-right-radius:0}

/* INVOICE MODAL */
.inv-lines-table{width:100%;border-collapse:collapse;font-size:12px;margin-bottom:4px;min-width:580px}
.inv-lines-table td{padding:4px 5px;border-bottom:1px solid var(--border);vertical-align:middle}
.inv-lines-table tr:last-child td{border-bottom:none}
.inv-col-head th{text-align:left;padding:5px 6px;font-size:10px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;background:var(--surface2);border-bottom:2px solid var(--border)}
.inv-col-head th:not(:first-child):not(:nth-child(2)){text-align:right}
.inv-cell{background:transparent;border:none;border-bottom:1px solid transparent;color:var(--text);font-size:12px;padding:3px 4px;outline:none;width:100%}
.inv-cell:focus{border-bottom-color:var(--gold)}
.inv-cell-num{text-align:right;width:72px}
.inv-cell[type=number]::-webkit-inner-spin-button,.inv-cell[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.inv-cell[type=number]{-moz-appearance:textfield}
.inv-cell-wide{min-width:110px}
.inv-section{margin-bottom:14px;border:1px solid var(--border);border-radius:var(--radius-sm);padding:10px 10px 8px}
.inv-sec-head{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.inv-sec-letter{font-weight:800;color:var(--gold);font-size:14px;flex-shrink:0;width:24px}
.inv-sec-title-input{flex:1;background:transparent;border:1px solid var(--border);border-radius:4px;color:var(--text);padding:4px 8px;font-size:13px;font-weight:600}
.inv-sec-total{font-size:12px;color:var(--muted);white-space:nowrap;padding:4px 8px;background:var(--surface2);border-radius:4px}
.inv-total-row{display:flex;justify-content:space-between;padding:5px 0;font-size:13px;border-bottom:1px solid var(--border)}
.inv-total-row:last-child{font-size:15px;font-weight:700;border-bottom:none;color:var(--gold)}
.inv-totals-wrap{background:var(--surface2);border-radius:var(--radius-sm);padding:12px;margin-bottom:12px}

/* LOGO PREVIEW */
.logo-preview-wrap{margin-top:8px;display:flex;align-items:center;gap:10px}
.logo-preview{max-height:56px;max-width:180px;border-radius:6px;border:1px solid var(--border)}

/* EXPENSE CARDS (mobile) */
.exp-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:12px 14px;margin-bottom:8px}
.exp-card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;margin-bottom:6px}
.exp-card-name{font-weight:600;font-size:14px;flex:1;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.exp-card-amt{font-weight:800;font-size:15px;white-space:nowrap;flex-shrink:0}
.exp-card-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:4px}
.exp-card-date{font-size:12px;color:var(--muted)}
.exp-card-sub{font-size:11px;color:var(--muted);margin-bottom:4px}
.exp-card-foot{display:flex;justify-content:space-between;align-items:center;margin-top:6px;padding-top:6px;border-top:1px solid var(--border)}
.exp-card-method{font-size:11px;color:var(--muted2)}

@media(max-width:768px){
  .fin-grid{grid-template-columns:1fr}
  .date-range-bar{flex-direction:column;align-items:stretch}
  .cust-detail-grid{grid-template-columns:1fr}
  .fin-val{font-size:20px}
  .fin-sub{font-size:10px;line-height:1.5;word-break:break-word}
  .fin-card{padding:14px 16px}
  .sec-header{flex-wrap:wrap;gap:8px}
}
