:root{--sp-blue:var(--sispro-primary,#2563eb);--sp-dark:#0f172a;--sp-muted:#64748b;--sp-border:#e5e7eb;--sp-bg:#f8fafc;--sp-card:#fff}html{margin-top:0!important}#wpadminbar{display:none!important}body.sispro-fullpage{margin:0!important;background:var(--sp-bg)!important;overflow-x:hidden}.sp-logo{display:flex;gap:12px;align-items:center;font-family:Inter,Arial,sans-serif}.sp-logo-img{width:46px;height:46px;object-fit:contain;display:block;border-radius:12px}.sp-mark{width:42px;height:42px;border-radius:12px;background:var(--sispro-primary,#174cff);color:#fff;display:grid;place-items:center;font-weight:900;font-size:22px;box-shadow:0 10px 24px color-mix(in srgb,var(--sispro-primary,#2563eb) 30%,transparent)}.sp-logo strong{display:block;font-size:23px;line-height:1;color:#111827}.sp-logo small{display:block;color:#6b7280;font-size:11px;letter-spacing:.8px;margin-top:5px}.sp-auth{min-height:100vh;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:36px 16px;background:radial-gradient(circle at 16% 25%,rgba(37,99,235,.13),transparent 80px),radial-gradient(circle at 84% 34%,rgba(37,99,235,.10),transparent 120px),linear-gradient(135deg,#f8fbff,#eef4ff)}.sp-auth-logo{margin-bottom:24px}.sp-auth-card{width:min(450px,94vw);box-sizing:border-box;background:#fff;padding:22px 24px;border-radius:16px;box-shadow:0 16px 40px rgba(15,23,42,.12);border:1px solid rgba(226,232,240,.8)}.sp-auth-card label{display:block;margin:14px 0 6px;color:#1f2937;font-size:14px;font-weight:500}.sp-auth-card input{width:100%;box-sizing:border-box;padding:12px 14px;border:1px solid #cfd6e0;border-radius:10px;font-size:15px;outline:none}.sp-auth-row{display:flex;justify-content:flex-end;align-items:center;gap:18px;margin-top:16px}.sp-auth-row a{color:#4b5563}.sp-auth-row button,.sp-card button{background:#111827;color:#fff;border:0;border-radius:10px;padding:11px 18px;font-weight:800;cursor:pointer;transition:.2s ease}.sp-auth-row button:hover,.sp-card button:hover{transform:translateY(-1px);box-shadow:0 10px 20px rgba(15,23,42,.15)}.sp-portal{display:flex;min-height:100vh;font-family:Inter,Arial,sans-serif;color:#111827;background:var(--sp-bg)}.sp-portal *{box-sizing:border-box}.sp-sidebar{width:280px;background:linear-gradient(180deg,#111827,#0b1220);color:#fff;padding:28px 24px;position:sticky;top:0;height:100vh;z-index:50;box-shadow:16px 0 40px rgba(15,23,42,.08);transition:transform .32s cubic-bezier(.2,.8,.2,1)}.sp-sidebar .sp-logo strong{color:#fff}.sp-sidebar .sp-logo small{color:#94a3b8}.sp-nav{margin-top:42px;display:grid;gap:10px}.sp-nav button{appearance:none;border:0;background:transparent;color:#e5e7eb;text-decoration:none;font-weight:800;padding:13px 14px;border-radius:15px;display:flex;align-items:center;gap:12px;transition:background .22s ease,color .22s ease,transform .22s ease,box-shadow .22s ease;cursor:pointer;text-align:left;font-size:15px}.sp-nav button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:0 0 18px}.sp-nav button svg rect,.sp-nav button svg path{vector-effect:non-scaling-stroke}.sp-nav button:hover,.sp-nav button.active{background:rgba(255,255,255,.12);color:#fff;transform:translateX(4px)}.sp-nav button.active{box-shadow:inset 3px 0 0 var(--sispro-primary,#2563eb)}.sp-close,.sp-mobile-toggle{display:none}.sp-overlay{display:none}.sp-main{flex:1;padding:0 28px 42px;background:var(--sp-bg);min-width:0}.sp-topbar{height:76px;background:rgba(255,255,255,.94);backdrop-filter:blur(10px);margin:0 -28px 24px;border-bottom:1px solid var(--sp-border);display:flex;justify-content:space-between;align-items:center;gap:10px;padding:0 28px;position:sticky;top:0;z-index:20}.sp-top-logo{display:none}.sp-top-user{display:flex;align-items:center;gap:10px}.sp-user{width:34px;height:34px;background:var(--sispro-primary,#2f6bea);color:#fff;border-radius:50%;display:grid;place-items:center;font-weight:900}.sp-panel{display:none;animation:spFade .22s ease}.sp-panel.active{display:block}@keyframes spFade{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.sp-hero{background:linear-gradient(135deg,var(--sispro-primary,#2f63e9),color-mix(in srgb,var(--sispro-primary,#2f63e9) 78%,#111827));color:#fff;border-radius:18px;padding:34px;display:flex;gap:22px;align-items:center;justify-content:space-between;margin:0 0 24px;box-shadow:0 20px 45px color-mix(in srgb,var(--sispro-primary,#2f63e9) 22%,transparent)}.sp-hero h1{font-size:30px;line-height:1.2;margin:0 0 10px;color:#fff}.sp-hero p{font-size:16px;max-width:780px;margin:0;line-height:1.6}.sp-white-btn{background:#fff;color:var(--sispro-primary,#245be8);text-decoration:none;padding:16px 24px;border:0;border-radius:14px;font-weight:900;white-space:nowrap;transition:.2s ease;display:flex;align-items:center;justify-content:center;gap:9px;cursor:pointer;font-size:16px}.sp-white-btn svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round}.sp-white-btn:hover{transform:translateY(-2px);box-shadow:0 14px 26px rgba(15,23,42,.16)}.sp-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-bottom:24px}.sp-stats div,.sp-card{background:var(--sp-card);border:1px solid var(--sp-border);border-radius:18px;padding:24px;box-shadow:0 10px 28px rgba(15,23,42,.04);transition:transform .22s ease,box-shadow .22s ease}.sp-stats div:hover,.sp-card:hover{transform:translateY(-2px);box-shadow:0 18px 38px rgba(15,23,42,.08)}.sp-stats small{display:block;color:#4b5563}.sp-stats b{font-size:30px}.sp-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:24px;margin-bottom:24px}.sp-card h3{margin:0 0 18px;font-size:20px;color:#111827}.sp-empty{text-align:center;padding:54px;color:#111827;font-weight:800}.sp-empty small,.sp-empty-text{color:#6b7280;font-weight:400;font-style:italic}.sp-progress{height:9px;background:#eef2f7;border-radius:20px;overflow:hidden;margin:12px 0}.sp-progress i{display:block;height:100%;background:var(--sispro-primary,#2563eb);border-radius:inherit;transition:width .5s ease}.sp-item{border-top:1px solid #edf0f5;padding:16px 0;min-height:70px}.sp-item span{float:right;background:#eef2ff;padding:5px 10px;border-radius:10px;color:#1e3a8a}.sp-table-wrap{width:100%;overflow-x:auto}.sp-card table{width:100%;border-collapse:collapse;min-width:620px}.sp-card th,.sp-card td{border-top:1px solid #edf0f5;padding:13px 12px;text-align:left;vertical-align:middle}.sp-card input,.sp-card textarea,.sp-card select{width:100%;padding:12px;border:1px solid #cfd6e0;border-radius:10px;margin:6px 0 12px;background:#fff}.sp-card input:focus,.sp-card textarea:focus,.sp-card select:focus,.sp-auth-card input:focus{outline:none;border-color:var(--sispro-primary,#2563eb);box-shadow:0 0 0 3px color-mix(in srgb,var(--sispro-primary,#2563eb) 14%,transparent)}.sp-card textarea{min-height:110px}.sp-alert{background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;border-radius:14px;padding:14px 18px;margin:18px 0;font-weight:600}.sp-mt{margin-top:24px}.sp-upload-form{display:flex;gap:8px;align-items:center}.sp-upload-form input[type=file]{margin:0;min-width:180px}.sp-upload-form button{white-space:nowrap}
@media(max-width:1100px){.sp-sidebar{width:250px}.sp-stats{gap:16px}.sp-layout{grid-template-columns:1fr}}
@media(max-width:768px){body.sispro-fullpage{background:#f8fafc!important}.sp-portal{display:block;padding-bottom:74px}.sp-sidebar{position:fixed;left:0;top:0;width:min(82vw,320px);height:100vh;transform:translateX(-105%);padding-top:34px}.sp-menu-open .sp-sidebar{transform:translateX(0)}.sp-overlay{display:block;position:fixed;inset:0;background:rgba(15,23,42,.48);opacity:0;visibility:hidden;z-index:40;transition:.25s ease}.sp-menu-open .sp-overlay{opacity:1;visibility:visible}.sp-mobile-toggle{display:grid;place-items:center;position:fixed;left:16px;bottom:15px;z-index:35;width:50px;height:50px;border:0;border-radius:18px;background:var(--sispro-primary,#2563eb);color:#fff;box-shadow:0 12px 26px rgba(15,23,42,.22)}.sp-mobile-toggle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}.sp-close{display:grid;place-items:center;position:absolute;right:16px;top:16px;width:34px;height:34px;border:0;border-radius:10px;background:rgba(255,255,255,.12);color:#fff;font-size:24px}.sp-nav{position:fixed;left:84px;right:16px;bottom:15px;z-index:36;margin:0;display:grid;grid-template-columns:repeat(4,1fr);gap:6px;background:rgba(255,255,255,.94);border:1px solid rgba(226,232,240,.9);box-shadow:0 12px 30px rgba(15,23,42,.16);border-radius:18px;padding:7px;backdrop-filter:blur(14px)}.sp-sidebar .sp-logo{margin-bottom:26px}.sp-nav button{display:grid;place-items:center;gap:3px;padding:8px 4px;border-radius:13px;color:#64748b;font-size:10px;line-height:1.1;background:transparent}.sp-nav button svg{width:18px;height:18px}.sp-nav button:hover,.sp-nav button.active{background:color-mix(in srgb,var(--sispro-primary,#2563eb) 12%,#fff);color:var(--sispro-primary,#2563eb);transform:none;box-shadow:none}.sp-main{padding:0 14px 26px}.sp-topbar{height:72px;margin:0 -14px 18px;padding:0 16px;position:relative}.sp-hero{display:block;padding:24px 22px;border-radius:18px}.sp-hero h1{font-size:25px}.sp-white-btn{width:100%;margin-top:20px}.sp-stats{grid-template-columns:1fr;gap:14px}.sp-stats div,.sp-card{padding:20px;border-radius:16px}.sp-card{margin-bottom:18px}.sp-layout{display:block}.sp-card table{min-width:560px}.sp-auth-card{padding:20px}.sp-auth-row{justify-content:space-between}.sp-logo strong{font-size:21px}.sp-upload-form{display:block}.sp-upload-form button{width:100%}}
@media(max-width:420px){.sp-hero h1{font-size:22px}.sp-hero p{font-size:14px}.sp-card h3{font-size:18px}.sp-card table{min-width:520px}.sp-auth-row{display:grid;gap:12px}.sp-auth-row button{width:100%}.sp-nav button span{font-size:9px}.sp-mobile-toggle{width:48px;height:48px}.sp-nav{left:78px}}

/* v1.2.5 Mobile marketplace-style bottom navigation */
.sp-bottom-nav{display:none}
@media(max-width:768px){
  html{margin-top:0!important;padding-top:0!important}#wpadminbar{display:none!important;height:0!important;visibility:hidden!important}body.admin-bar,body.sispro-fullpage{margin-top:0!important;padding-top:0!important}
  .sp-portal{display:block;padding-bottom:92px;background:#f8fafc;min-height:100vh}
  .sp-main{padding:0 14px 24px!important}
  .sp-topbar{height:76px;margin:0 -14px 18px!important;padding:0 16px!important;background:#fff!important;position:sticky;top:0;border-bottom:1px solid #eef2f7;box-shadow:0 2px 10px rgba(15,23,42,.03)}
  .sp-top-logo{display:flex;min-width:0}.sp-top-logo .sp-logo{gap:9px}.sp-top-logo .sp-logo-img{width:38px;height:38px;border-radius:11px}.sp-top-logo .sp-mark{width:38px;height:38px;border-radius:11px;font-size:19px}.sp-top-logo .sp-logo strong{font-size:18px;max-width:135px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sp-top-logo .sp-logo small{font-size:9px;max-width:135px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;letter-spacing:.4px}
  .sp-top-user b{font-size:16px;max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sp-user{width:38px;height:38px;font-size:16px}
  .sp-sidebar,.sp-overlay,.sp-mobile-toggle,.sp-close{display:none!important}
  .sp-bottom-nav{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;left:10px;right:10px;bottom:10px;z-index:9999;background:rgba(255,255,255,.96);border:1px solid rgba(226,232,240,.95);box-shadow:0 16px 36px rgba(15,23,42,.18);backdrop-filter:blur(16px);border-radius:24px;padding:8px 8px calc(8px + env(safe-area-inset-bottom));gap:2px}
  .sp-bottom-nav button{appearance:none;border:0;background:transparent;color:#64748b;border-radius:17px;min-width:0;height:56px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:10px;font-weight:800;line-height:1;transition:.2s ease;cursor:pointer;padding:0 2px;position:relative;z-index:1}
  .sp-bottom-nav button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:0 0 19px;pointer-events:none}
  .sp-bottom-nav button.active{background:color-mix(in srgb,var(--sispro-primary,#2563eb) 12%,#fff);color:var(--sispro-primary,#2563eb);transform:translateY(-3px)}
  .sp-bottom-nav button.active svg{stroke-width:2.5}
  .sp-hero{margin-top:8px;padding:25px 22px 24px!important;border-radius:22px!important;box-shadow:0 18px 35px color-mix(in srgb,var(--sispro-primary,#2563eb) 18%,transparent)}
  .sp-hero h1{font-size:24px!important;line-height:1.25}.sp-hero p{font-size:15px!important;line-height:1.65}.sp-white-btn{min-height:56px;border-radius:18px!important;font-size:15px!important}
  .sp-stats div,.sp-card{border-radius:21px!important;box-shadow:0 10px 28px rgba(15,23,42,.06)!important;border-color:#e9edf3!important}.sp-stats div{min-height:132px;display:flex;flex-direction:column;justify-content:center}.sp-stats b{font-size:36px}.sp-card h3{font-size:22px;margin-bottom:20px}.sp-item span{font-size:14px;border-radius:12px;padding:7px 12px}.sp-progress{height:8px}
}

/* SISPRO v1.3.0 ticket conversation */
.sp-ticket-thread{border:1px solid #edf0f5;border-radius:22px;padding:16px;margin:16px 0;background:#fff;box-shadow:0 8px 22px rgba(15,23,42,.04)}
.sp-ticket-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border-bottom:1px solid #eef2f7;padding-bottom:12px;margin-bottom:12px}
.sp-ticket-head b{display:block;font-size:17px;color:#0f172a}.sp-ticket-head small{display:block;color:#64748b;margin-top:4px}.sp-ticket-head span{background:#eef2ff;color:#1e40af;padding:8px 12px;border-radius:14px;font-weight:700;font-size:13px;white-space:nowrap}
.sp-chat-list{display:flex;flex-direction:column;gap:10px}.sp-chat-bubble{max-width:88%;border-radius:18px;padding:12px 14px}.sp-chat-bubble.client{align-self:flex-end;background:var(--sp-blue,#2563eb);color:#fff}.sp-chat-bubble.admin{align-self:flex-start;background:#f1f5f9;color:#0f172a}.sp-chat-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px;font-size:12px;opacity:.82}.sp-chat-bubble p{margin:0;line-height:1.55}.sp-reply-form{margin-top:14px;display:grid;gap:10px}.sp-reply-form textarea{min-height:88px!important}.sp-reply-form button{justify-self:start}
.sp-card textarea::placeholder,.sp-card input::placeholder{color:#94a3b8!important;opacity:1!important}.sp-card select{height:48px;color:#334155;background:#fff}
@media(max-width:768px){.sp-ticket-thread{padding:14px;border-radius:20px}.sp-ticket-head b{font-size:16px}.sp-chat-bubble{max-width:94%;font-size:14px}.sp-reply-form button{width:100%}}


/* SISPRO v1.3.1 - WhatsApp style client ticket conversation */
.sp-ticket-thread{background:#efeae2!important;border:0!important;overflow:hidden;padding:0!important;box-shadow:0 12px 30px rgba(15,23,42,.08)!important}
.sp-ticket-head{background:linear-gradient(135deg,var(--sispro-primary,#128c7e),#0b5f55);color:#fff;border-bottom:0!important;margin:0!important;padding:16px 18px!important;align-items:center!important}
.sp-ticket-head b{color:#fff!important}.sp-ticket-head small{color:rgba(255,255,255,.78)!important}.sp-ticket-head span{background:rgba(255,255,255,.18)!important;color:#fff!important;border:1px solid rgba(255,255,255,.22)}
.sp-chat-list{padding:16px;background:linear-gradient(180deg,#efeae2,#e9e1d8);gap:8px!important}
.sp-chat-bubble{box-shadow:0 1px 1px rgba(15,23,42,.12);border-radius:15px!important;padding:10px 12px!important;max-width:78%!important;word-break:break-word}
.sp-chat-bubble.client{background:#d9fdd3!important;color:#0f172a!important;align-self:flex-end!important;border-top-right-radius:4px!important}
.sp-chat-bubble.admin{background:#fff!important;color:#0f172a!important;align-self:flex-start!important;border-top-left-radius:4px!important}
.sp-chat-meta{color:#64748b!important;font-size:11px!important;margin-bottom:5px!important}.sp-chat-bubble.client .sp-chat-meta{color:#3f6212!important}
.sp-reply-form{margin:0!important;padding:10px 12px!important;background:#f0f2f5;display:grid!important;grid-template-columns:1fr 48px;gap:8px!important;align-items:end!important}
.sp-reply-form textarea{min-height:46px!important;height:46px!important;max-height:110px!important;margin:0!important;border:0!important;border-radius:23px!important;background:#fff!important;padding:13px 15px!important;box-shadow:0 1px 2px rgba(15,23,42,.08)!important;resize:vertical}
.sp-reply-form button{width:48px!important;height:48px!important;border-radius:50%!important;padding:0!important;color:transparent!important;position:relative;justify-self:auto!important;background:var(--sispro-primary,#128c7e)!important}
.sp-reply-form button:before{content:'➤';color:#fff;position:absolute;inset:0;display:grid;place-items:center;font-size:20px;transform:translateX(1px)}
@media(max-width:768px){.sp-chat-list{padding:13px}.sp-chat-bubble{max-width:86%!important;font-size:14px}.sp-reply-form{grid-template-columns:1fr 46px}.sp-reply-form button{width:46px!important;height:46px!important}}
.sp-live-toast{position:fixed;left:50%;bottom:96px;transform:translate(-50%,14px);z-index:999999;background:#111827;color:#fff;padding:13px 15px;border-radius:18px;box-shadow:0 18px 44px rgba(15,23,42,.28);max-width:calc(100vw - 36px);width:360px;opacity:0;transition:.25s ease;font-size:13px;line-height:1.45}.sp-live-toast.show{opacity:1;transform:translate(-50%,0)}.sp-live-toast b{display:block;margin-bottom:3px}.sp-live-toast small{color:#d1d5db}.sp-live-badge{position:absolute;top:9px;right:18px;min-width:17px;height:17px;border-radius:999px;background:#ef4444;color:#fff;align-items:center;justify-content:center;font-size:10px;font-weight:800;font-style:normal}.sp-bottom-nav button,.sp-nav button{position:relative}

/* SISPRO v1.3.3 - ticket attachment */
.sp-file-label{display:grid;gap:8px;margin:8px 0 12px;color:#475569;font-weight:700;font-size:13px}.sp-file-label input{height:auto!important;padding:12px!important;background:#f8fafc!important;border:1px dashed #cbd5e1!important;border-radius:14px!important}.sp-attachment{display:inline-flex;align-items:center;gap:6px;margin-top:8px;padding:8px 10px;border-radius:12px;background:rgba(15,23,42,.08);color:inherit!important;text-decoration:none!important;font-weight:800;font-size:13px;max-width:100%;word-break:break-word}.sp-chat-file{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:#fff;color:#64748b;font-size:20px;box-shadow:0 1px 2px rgba(15,23,42,.08);cursor:pointer}.sp-chat-file input{display:none!important}.sp-reply-form{grid-template-columns:1fr 46px 48px!important}.sp-reply-form button{grid-column:auto!important}.sp-chat-bubble.client .sp-attachment{background:rgba(18,140,126,.14)}.sp-chat-bubble.admin .sp-attachment{background:#eef2f7}
@media(max-width:768px){.sp-reply-form{grid-template-columns:1fr 44px 46px!important}.sp-chat-file{width:44px;height:44px}.sp-file-label input{font-size:12px}}

/* SISPRO v1.3.4 - client invoice pay popup */
.sp-pay-btn{background:var(--sispro-primary,#2563eb)!important;color:#fff!important;border:0!important;border-radius:12px!important;padding:10px 16px!important;font-weight:900!important;cursor:pointer;white-space:nowrap;box-shadow:0 8px 18px color-mix(in srgb,var(--sispro-primary,#2563eb) 18%,transparent)!important}.sp-pay-btn:hover{transform:translateY(-1px)}.sp-paid-note{display:inline-flex;align-items:center;gap:6px;background:#ecfdf5;color:#047857;border:1px solid #bbf7d0;border-radius:999px;padding:7px 11px;font-weight:800;font-size:12px;white-space:nowrap}.sp-pay-modal{position:fixed;inset:0;z-index:999999;display:none;align-items:center;justify-content:center;padding:18px}.sp-pay-modal.show{display:flex}.sp-pay-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.58);backdrop-filter:blur(4px)}.sp-pay-box{position:relative;width:min(520px,100%);max-height:88vh;overflow:auto;background:#fff;border-radius:24px;padding:24px;box-shadow:0 30px 80px rgba(15,23,42,.32);animation:spPayPop .2s ease}.sp-pay-close{position:absolute;right:16px;top:14px;width:36px;height:36px;border:0;border-radius:12px;background:#f1f5f9;color:#0f172a;font-size:24px;line-height:1;cursor:pointer}.sp-pay-box h3{margin:0 42px 18px 0;font-size:22px}.sp-pay-summary{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;margin-bottom:16px}.sp-pay-summary div{background:#f8fafc;border:1px solid #e5e7eb;border-radius:16px;padding:12px}.sp-pay-summary small{display:block;color:#64748b;font-size:12px;margin-bottom:5px}.sp-pay-summary b{font-size:14px;color:#0f172a;word-break:break-word}.sp-pay-box label{display:block;font-weight:900;color:#0f172a;margin:14px 0 8px}.sp-bank-info{white-space:pre-wrap;word-break:break-word;background:#0f172a;color:#fff;border-radius:18px;padding:16px;min-height:90px;font-family:inherit;font-weight:700;line-height:1.55;margin:0}.sp-pay-help{color:#64748b;font-size:13px;line-height:1.55;margin:14px 0 0}.sp-pay-ok{width:100%;margin-top:16px;background:var(--sispro-primary,#2563eb)!important;color:#fff!important;border:0!important;border-radius:16px!important;padding:14px 16px!important;font-weight:900!important;cursor:pointer}@keyframes spPayPop{from{opacity:0;transform:translateY(16px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:768px){.sp-pay-modal{align-items:flex-end;padding:0}.sp-pay-box{width:100%;max-height:86vh;border-radius:24px 24px 0 0;padding:22px 18px calc(22px + env(safe-area-inset-bottom))}.sp-pay-summary{grid-template-columns:1fr}.sp-pay-btn{width:100%;padding:12px 14px!important}.sp-card table{min-width:760px}.sp-upload-form input[type=file]{width:100%;min-width:0}}

/* SISPRO v1.3.5 - Payment UX Enhancement */
.sp-status-pill{display:inline-flex;align-items:center;padding:7px 11px;border-radius:999px;background:#f1f5f9;color:#334155;font-size:12px;font-weight:900;white-space:nowrap}.sp-status-unpaid{background:#fef2f2;color:#b91c1c}.sp-status-payment_pending,.sp-status-partial{background:#fffbeb;color:#b45309}.sp-status-paid,.sp-status-lunas,.sp-status-completed{background:#ecfdf5;color:#047857}.sp-proof-link{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:8px 12px;background:#eef2ff;color:#1d4ed8!important;text-decoration:none!important;font-weight:900;font-size:12px}.sp-pay-copy-grid{grid-template-columns:1fr 1fr 1fr!important}.sp-copy-card{position:relative;padding-right:54px!important}.sp-copy-btn{width:38px!important;height:38px!important;min-width:38px!important;border:0!important;border-radius:13px!important;background:#eef2ff!important;color:var(--sispro-primary,#2563eb)!important;font-size:20px!important;font-weight:900!important;display:grid!important;place-items:center!important;cursor:pointer!important;box-shadow:none!important;line-height:1!important;padding:0!important}.sp-copy-btn:hover{transform:translateY(-1px);background:color-mix(in srgb,var(--sispro-primary,#2563eb) 14%,#fff)!important}.sp-copy-card .sp-copy-btn{position:absolute;right:10px;top:50%;transform:translateY(-50%)}.sp-copy-card .sp-copy-btn:hover{transform:translateY(calc(-50% - 1px))}.sp-bank-card{position:relative;background:#0f172a;color:#fff;border-radius:20px;overflow:hidden;box-shadow:0 12px 30px rgba(15,23,42,.18)}.sp-bank-card .sp-bank-info{padding-right:62px!important;border-radius:0!important}.sp-bank-copy{position:absolute;right:14px;top:14px;background:rgba(255,255,255,.13)!important;color:#fff!important}.sp-pay-proof-form{margin-top:16px;padding:14px;border:1px solid #e5e7eb;background:#f8fafc;border-radius:18px}.sp-pay-proof-form label.sp-proof-upload{display:grid!important;gap:6px;margin:0 0 12px!important;color:#0f172a!important}.sp-pay-proof-form label small{color:#64748b;font-weight:600}.sp-pay-proof-form input[type=file]{width:100%;border:1px dashed #cbd5e1!important;background:#fff!important;border-radius:14px!important;padding:12px!important}.sp-pay-submit{width:100%;background:var(--sispro-primary,#2563eb)!important;color:#fff!important;border:0!important;border-radius:16px!important;padding:14px 16px!important;font-weight:900!important;cursor:pointer}.sp-pay-ok{background:#f1f5f9!important;color:#0f172a!important}.sp-copy-toast{position:sticky;bottom:8px;left:0;right:0;margin:10px auto 0;max-width:280px;text-align:center;background:#111827;color:#fff;border-radius:999px;padding:10px 14px;font-size:13px;font-weight:800;opacity:0;transform:translateY(8px);pointer-events:none;transition:.2s ease}.sp-copy-toast.show{opacity:1;transform:translateY(0)}
@media(max-width:768px){.sp-pay-copy-grid{grid-template-columns:1fr!important}.sp-copy-card{min-height:84px}.sp-copy-btn{width:42px!important;height:42px!important}.sp-bank-copy{right:12px;top:12px}.sp-pay-box h3{font-size:30px!important;line-height:1.2}.sp-pay-summary b{font-size:17px!important}.sp-bank-info{font-size:16px!important}.sp-pay-submit,.sp-pay-ok{min-height:56px;font-size:16px!important}.sp-pay-proof-form{padding:13px}.sp-status-pill,.sp-proof-link{font-size:13px}}

/* SISPRO v1.3.6 - split bank account settings */
.sp-bank-card-split{padding:18px!important;background:#0f172a!important;color:#fff!important;border-radius:20px!important;position:relative;overflow:hidden}
.sp-bank-card-split .sp-bank-name{font-size:13px;letter-spacing:.08em;text-transform:uppercase;opacity:.82;font-weight:900;margin-bottom:10px}
.sp-bank-number-row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:4px 0 8px}
.sp-bank-number-row b{font-size:24px;letter-spacing:.04em;line-height:1.2;word-break:break-all}
.sp-bank-account{font-size:14px;opacity:.9;font-weight:700}
.sp-bank-card-split .sp-bank-copy{position:static!important;background:rgba(255,255,255,.16)!important;color:#fff!important;flex:0 0 auto}
.sp-qris-card{margin-top:14px;padding:14px;border:1px solid #e5e7eb;border-radius:18px;background:#f8fafc;text-align:center}
.sp-qris-card label{margin:0 0 10px!important;text-align:left}
.sp-qris-card img{max-width:240px;width:100%;height:auto;border-radius:14px;background:#fff;border:1px solid #e5e7eb;padding:8px}
.sp-copy-all-btn{width:100%;margin-top:14px;background:#0f172a!important;color:#fff!important;border:0!important;border-radius:16px!important;padding:14px 16px!important;font-weight:900!important;cursor:pointer}
@media(max-width:768px){.sp-bank-number-row b{font-size:22px}.sp-copy-all-btn{min-height:54px;font-size:16px!important}.sp-qris-card img{max-width:210px}}

/* SISPRO v1.3.7 - Download Invoice button */
.sp-download-invoice{display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none!important;border-radius:12px;background:var(--sp-blue,#2563eb);color:#fff!important;font-weight:800;padding:10px 14px;border:0;box-shadow:0 10px 22px rgba(37,99,235,.18);cursor:pointer}.sp-download-invoice:before{content:"⬇";font-size:14px}.sp-pay-box .sp-download-invoice{width:100%;margin:10px 0 8px}.sp-table-wrap .sp-download-invoice{padding:8px 11px;border-radius:10px;font-size:12px;white-space:nowrap}

/* SISPRO v1.4.0 - Client Profile Dropdown & Account Settings */
.sp-profile-menu{position:relative;display:flex;align-items:center;justify-content:flex-end;margin-left:auto}.sp-profile-toggle{appearance:none;border:0;background:transparent;display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:999px;cursor:pointer;color:#111827;font:inherit;font-weight:900;transition:.2s ease}.sp-profile-toggle:hover,.sp-profile-menu.open .sp-profile-toggle{background:#f1f5f9}.sp-chevron{font-size:16px;color:#64748b;line-height:1}.sp-profile-dropdown{position:absolute;right:0;top:calc(100% + 10px);width:210px;background:#fff;border:1px solid #e5e7eb;border-radius:18px;box-shadow:0 18px 48px rgba(15,23,42,.16);padding:8px;opacity:0;visibility:hidden;transform:translateY(8px);transition:.2s ease;z-index:80}.sp-profile-menu.open .sp-profile-dropdown{opacity:1;visibility:visible;transform:translateY(0)}.sp-profile-dropdown:before{content:"";position:absolute;right:26px;top:-8px;width:16px;height:16px;background:#fff;border-left:1px solid #e5e7eb;border-top:1px solid #e5e7eb;transform:rotate(45deg)}.sp-profile-dropdown button,.sp-profile-dropdown a{position:relative;z-index:1;width:100%;appearance:none;border:0;background:transparent;color:#334155;text-decoration:none;display:flex;align-items:center;gap:10px;padding:12px 13px;border-radius:13px;font-size:15px;font-weight:800;cursor:pointer;text-align:left}.sp-profile-dropdown button:hover,.sp-profile-dropdown a:hover{background:#f8fafc;color:var(--sispro-primary,#2563eb)}.sp-profile-dropdown svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.sp-user-photo{overflow:hidden;background:#e0f2fe!important}.sp-user-photo img{width:100%;height:100%;object-fit:cover;display:block}.sp-profile-card{max-width:760px;margin:0 auto}.sp-profile-tabs{display:flex;align-items:center;gap:8px;border-bottom:1px solid #e5e7eb;margin:-4px -4px 24px;padding:0 4px;overflow-x:hidden;scrollbar-width:none}.sp-profile-tabs::-webkit-scrollbar{display:none}.sp-profile-tabs button{appearance:none;border:0;background:transparent;color:#64748b;display:flex;align-items:center;gap:9px;padding:14px 18px;border-radius:14px 14px 0 0;font-weight:900;white-space:nowrap;cursor:pointer;position:relative}.sp-profile-tabs button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.sp-profile-tabs button.active{color:var(--sispro-primary,#2563eb);background:#f8fafc}.sp-profile-tabs button.active:after{content:"";position:absolute;left:14px;right:14px;bottom:-1px;height:3px;border-radius:999px;background:var(--sispro-primary,#2563eb)}.sp-profile-tab-panel{display:none}.sp-profile-tab-panel.active{display:block;animation:spFade .22s ease}.sp-avatar-upload{display:grid!important;place-items:center;gap:12px;text-align:center;margin:4px 0 28px!important;color:#94a3b8!important;font-weight:600!important;cursor:pointer}.sp-avatar-upload input{display:none!important}.sp-profile-avatar{width:132px;height:132px;border-radius:50%;display:grid;place-items:center;background:var(--sispro-primary,#2563eb);color:#fff;font-size:54px;font-weight:900;border:8px solid #fff;box-shadow:0 18px 38px rgba(15,23,42,.14);overflow:hidden}.sp-profile-avatar img{width:100%;height:100%;object-fit:cover;display:block}.sp-form-grid{display:grid;gap:16px}.sp-form-grid label{display:grid;gap:8px;color:#334155;font-weight:800;font-size:15px}.sp-form-grid input{height:54px;font-size:16px;border-radius:14px!important;margin:0!important}.sp-primary-action{display:block;margin:24px auto 0;background:var(--sispro-primary,#2563eb)!important;color:#fff!important;border:0!important;border-radius:15px!important;min-width:250px;padding:15px 22px!important;font-size:16px!important;font-weight:900!important;box-shadow:0 12px 26px color-mix(in srgb,var(--sispro-primary,#2563eb) 24%,transparent)!important}.sp-primary-action:hover{transform:translateY(-1px)}
@media(max-width:768px){.sp-profile-toggle b{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sp-profile-dropdown{right:0;top:calc(100% + 8px);width:190px}.sp-profile-card{margin:0}.sp-profile-tabs{margin-left:-10px;margin-right:-10px;padding:0 10px;overflow-x:hidden;scrollbar-width:none}.sp-profile-tabs button{font-size:13px;padding:13px 12px}.sp-profile-avatar{width:116px;height:116px;font-size:46px}.sp-primary-action{width:100%;min-width:0}.sp-topbar{z-index:60}.sp-profile-menu{max-width:72vw}.sp-profile-toggle{gap:8px;padding:6px}.sp-profile-toggle .sp-user{width:38px;height:38px}}

/* SISPRO v1.4.1 - Avatar only profile menu */
.sp-profile-toggle.sp-avatar-only{padding:4px!important;width:46px;height:46px;justify-content:center;border-radius:999px;background:transparent!important}
.sp-profile-toggle.sp-avatar-only .sp-user{width:42px!important;height:42px!important;font-size:15px;box-shadow:0 8px 20px rgba(15,23,42,.10)}
.sp-profile-toggle.sp-avatar-only .sp-user-photo img{border-radius:50%}
.sp-profile-toggle.sp-avatar-only:hover,.sp-profile-menu.open .sp-profile-toggle.sp-avatar-only{background:#f1f5f9!important}
.sp-profile-toggle.sp-avatar-only b,.sp-profile-toggle.sp-avatar-only .sp-chevron{display:none!important}
.sp-profile-dropdown{width:220px}
@media(max-width:768px){.sp-profile-menu{max-width:none}.sp-profile-toggle.sp-avatar-only{width:44px;height:44px;padding:3px!important}.sp-profile-toggle.sp-avatar-only .sp-user{width:40px!important;height:40px!important}.sp-profile-dropdown{width:210px;right:0}}

/* SISPRO v1.6.0 OTP Login Security */
.sp-auth-alert{max-width:420px;margin:0 auto 14px;padding:12px 14px;border-radius:14px;font-size:14px;line-height:1.45}
.sp-auth-alert.success{background:#ecfdf5;color:#047857;border:1px solid #bbf7d0}
.sp-auth-alert.error{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca}
.sp-otp-card h3{margin:0 0 6px;font-size:22px}
.sp-muted{margin:0 0 16px;color:#6b7280;font-size:14px;line-height:1.45}
.sp-otp-input{text-align:center;letter-spacing:8px;font-size:24px;font-weight:800}
.sp-remember{display:flex!important;align-items:center;gap:8px;font-size:13px;color:#64748b;margin-top:8px}.sp-remember input{width:auto!important}


/* SISPRO v1.6.2 - Project Timeline */
.sp-timeline{margin-top:16px;padding:16px;border-radius:18px;background:#f8fafc;border:1px solid #e5e7eb;display:grid;gap:0}
.sp-timeline-step{position:relative;display:flex;align-items:center;gap:12px;padding:8px 0 8px 2px;color:#64748b;font-size:14px;font-weight:800}
.sp-timeline-step:not(:last-child):after{content:"";position:absolute;left:13px;top:34px;bottom:-10px;width:2px;background:#e2e8f0}
.sp-timeline-step i{position:relative;z-index:1;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-size:13px;background:#e2e8f0;color:#64748b;flex:0 0 26px}
.sp-timeline-step.done{color:#047857}.sp-timeline-step.done i{background:#10b981;color:#fff}.sp-timeline-step.done:after{background:#10b981}
.sp-timeline-step.current{color:#1d4ed8}.sp-timeline-step.current i{background:var(--sispro-primary,#2563eb);color:#fff;box-shadow:0 0 0 5px color-mix(in srgb,var(--sispro-primary,#2563eb) 14%,transparent)}
@media(max-width:768px){.sp-timeline{padding:14px;border-radius:16px}.sp-timeline-step{font-size:13px;gap:10px}.sp-timeline-step i{width:24px;height:24px;flex-basis:24px}.sp-timeline-step:not(:last-child):after{left:12px}}
