:root{--csp-navy:#0b1f33;--csp-blue:#176b9a;--csp-gold:#e0ae39;--csp-bg:#f4f7fb;--csp-text:#172133;--csp-muted:#64748b;--csp-line:#e2e8f0}
body.page-id-0{}
body:has(.csp-app){background:var(--csp-bg)}
body:has(.csp-app) .site-header,body:has(.csp-app) .site-footer{display:none}
.csp-app{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--csp-text);max-width:1400px;margin:0 auto;min-height:100vh}
.csp-header{background:var(--csp-navy);color:var(--csp-on-brand,#fff);padding:22px 30px;display:flex;align-items:center;justify-content:space-between;border-radius:0 0 22px 22px}
.csp-header span{font-size:12px;text-transform:uppercase;letter-spacing:.16em;color:var(--csp-on-brand,#fff);opacity:.72}
.csp-header h1{color:var(--csp-on-brand,#fff);font-size:24px;margin:3px 0 0}
.csp-header a{color:var(--csp-on-brand,#fff);text-decoration:none;border:1px solid currentColor;padding:8px 14px;border-radius:10px;opacity:.9}
.csp-nav{display:flex;gap:6px;overflow:auto;padding:14px 18px;background:#fff;margin:18px 18px 0;border-radius:15px;box-shadow:0 6px 22px #2135470d}
.csp-nav a{white-space:nowrap;color:var(--csp-muted);text-decoration:none;font-weight:700;padding:10px 15px;border-radius:10px}
.csp-nav a.active{background:#fce4ec;color:var(--csp-blue)}
.csp-main{padding:22px 18px 50px}
.csp-title{display:flex;align-items:end;justify-content:space-between;margin:6px 0 20px}
.csp-title p{color:var(--csp-muted);margin:0;text-transform:uppercase;font-size:12px;font-weight:800;letter-spacing:.12em}
.csp-title h2{font-size:30px;margin:2px 0 0}
.csp-title button,.csp-primary{background:var(--csp-blue);border:0;color:var(--csp-on-brand,#fff);border-radius:11px;font-weight:800;padding:12px 17px;cursor:pointer}
.csp-actions,.csp-report-actions{display:flex;align-items:center;gap:8px}
.csp-secondary{display:inline-flex;align-items:center;background:#fff!important;color:var(--csp-navy)!important;border:1px solid #cbd5e1!important;border-radius:10px!important;font-weight:800;text-decoration:none;padding:10px 13px!important;cursor:pointer;font-size:13px;white-space:nowrap}
.csp-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:20px}
.csp-metrics article,.csp-card{background:#fff;border:1px solid var(--csp-line);border-radius:16px;padding:20px;box-shadow:0 7px 25px #2135470a}
.csp-metrics span{display:block;color:var(--csp-muted);font-weight:700;margin-bottom:9px}
.csp-metrics strong{font-size:25px;color:var(--csp-navy)}
.csp-movement-filter{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:0 0 16px;padding:14px;border:1px solid var(--csp-line);border-radius:14px;background:#fff}.csp-movement-filter label{color:var(--csp-muted);font-size:12px;font-weight:800}.csp-movement-filter input{display:block;margin-top:5px;min-height:40px;padding:8px 10px;border:1px solid #cbd5e1;border-radius:9px;background:#fff}.csp-movement-filter button{min-height:40px;padding:9px 15px;border:0;border-radius:9px;background:var(--csp-navy);color:#fff;font-weight:800}.csp-movement-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:20px}.csp-movement-metrics article{padding:18px;border:1px solid var(--csp-line);border-radius:16px;background:#fff;box-shadow:0 7px 25px #2135470a}.csp-movement-metrics span,.csp-movement-metrics small{display:block;color:var(--csp-muted);font-weight:750}.csp-movement-metrics strong{display:block;margin:7px 0 4px;font-size:28px}.csp-movement-metrics .gain strong,.csp-gain-value{color:#18864b}.csp-movement-metrics .loss strong,.csp-loss-value{color:#b42318}.csp-movement-card .csp-card-heading{gap:14px;flex-wrap:wrap}.csp-movement-card .csp-card-heading small,.csp-movement-card td small{display:block;margin-top:4px;color:var(--csp-muted)}.csp-movement-search{min-width:260px;padding:10px 12px;border:1px solid #cbd5e1;border-radius:10px}.csp-small-button{padding:7px 10px!important;font-size:11px!important;white-space:nowrap}.csp-row-actions form{margin:0}.csp-customer-state.pending{background:#fff6df;color:#8a5b00}
.csp-card h3{margin-top:0}
.csp-table{overflow-x:auto}
.csp-table table{width:100%;border-collapse:collapse;min-width:670px}
.csp-table th,.csp-table td{padding:13px 10px;text-align:left;border-bottom:1px solid var(--csp-line);font-size:14px}
.csp-table th{color:var(--csp-muted);font-size:12px;text-transform:uppercase}
.csp-status{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:#fff6df;color:#8a5b00;font-size:12px;font-weight:800}
.csp-status.pending{background:#fff6df;color:#8a5b00}
.csp-status.confirmed{background:#fce4ec;color:#125276}
.csp-status.completed{background:#e9f9ef;color:#1c7842}
.csp-status.cancelled{background:#feecec;color:#a52b2b}
.csp-status-legend{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}
.csp-status-form{margin:0;min-width:122px}
.csp-status-select{width:100%;min-height:36px;padding:6px 27px 6px 10px;border:0;border-radius:999px;font-size:12px;font-weight:800;cursor:pointer}
.csp-status-select.pending{background:#fff6df;color:#8a5b00}.csp-status-select.confirmed{background:#fce4ec;color:#125276}.csp-status-select.completed{background:#e9f9ef;color:#1c7842}.csp-status-select.cancelled{background:#feecec;color:#a52b2b}
.csp-delete{color:#b42318;text-decoration:none;font-size:12px}
.csp-alert{background:#e9f9ef;color:#17683a;padding:12px 15px;border-radius:10px;margin-bottom:15px}
.csp-switcher{display:flex;align-items:center;gap:10px;margin:16px 18px 0;font-size:13px}
.csp-switcher select{min-height:38px;border:1px solid var(--csp-line);border-radius:9px;background:#fff;padding:5px 30px 5px 10px}
.csp-modal{border:0;border-radius:18px;padding:0;max-width:570px;width:calc(100% - 28px);box-shadow:0 25px 80px #0004}
.csp-modal::backdrop{background:#08131fbb}
.csp-form{padding:27px}
.csp-form h3{font-size:23px;margin:0 0 19px}
.csp-form label{display:block;font-size:13px;font-weight:800;margin:13px 0;color:#344054}
.csp-form input,.csp-form select,.csp-form textarea{display:block;width:100%;box-sizing:border-box;margin-top:6px;border:1px solid #cbd5e1;border-radius:9px;padding:10px;background:#fff}
.csp-form textarea{min-height:75px}
.csp-form label>small{display:block;margin-top:6px;color:#64748b;font-size:11px;font-weight:650;line-height:1.4}
.csp-customer-search{border-color:#c4b5fd!important;background:#faf7ff!important}
.csp-quick-search-field{position:relative}.csp-quick-results{position:absolute;z-index:80;top:74px;left:0;right:0;overflow:auto;max-height:300px;padding:6px;border:1px solid #e7b3cb;border-radius:13px;background:#fff;box-shadow:0 16px 38px rgba(58,17,38,.22)}.csp-quick-results[hidden]{display:none!important}.csp-quick-result{display:block;width:100%;margin:0;padding:11px 12px;border:0;border-bottom:1px solid #f4dce7;border-radius:8px;background:#fff;color:#25384c;font-size:14px;font-weight:750;text-align:left;cursor:pointer}.csp-quick-result:last-of-type{border-bottom:0}.csp-quick-result:active,.csp-quick-result:hover{background:#fff0f6;color:#b31350}.csp-quick-results>small{display:block;padding:10px;color:#64748b;font-weight:700}.csp-calendar-detail-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:18px;padding-top:16px;border-top:1px solid var(--csp-line)}.csp-calendar-detail-actions .csp-delete{padding:11px 15px;border-radius:10px;background:#fff0f0;color:#b42318;font-weight:900;text-decoration:none}
.csp-one-time-fields{margin:12px 0;padding:14px;border:1px solid #ddd6fe;border-radius:12px;background:#faf7ff}
.csp-one-time-fields[hidden]{display:none}.csp-one-time-fields .csp-form-row label{margin-top:0}.csp-one-time-fields>p{margin:4px 0 0;color:#125276;font-size:12px;font-weight:750}
.csp-one-time-badge{display:block;width:max-content;margin-top:6px;padding:4px 7px;border-radius:999px;background:#fce4ec;color:#125276;font-size:10px;font-weight:900;white-space:nowrap}
.csp-form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.csp-close{position:absolute;right:16px;top:13px;border:0;background:none;font-size:29px;color:#64748b}
.csp-login{max-width:430px;margin:70px auto;padding:30px;background:#fff;border-radius:18px;box-shadow:0 18px 50px #0002}
.csp-login input{width:100%;box-sizing:border-box;padding:10px}
.csp-login .button{background:var(--csp-blue);color:#fff;border:0;padding:11px 18px;border-radius:9px}
@media(max-width:760px){.csp-header{padding:18px}
.csp-header h1{font-size:19px}
.csp-metrics{grid-template-columns:1fr 1fr}
.csp-title{align-items:center;gap:12px;flex-wrap:wrap}
.csp-title h2{font-size:25px}
.csp-title button{font-size:12px;padding:10px}
.csp-actions{flex-wrap:wrap}
.csp-form-row{grid-template-columns:1fr}
.csp-movement-metrics{grid-template-columns:1fr}.csp-movement-search{min-width:100%;width:100%}
}
@media(max-width:420px){.csp-metrics{grid-template-columns:1fr}
.csp-nav{margin-left:10px;margin-right:10px}
.csp-main{padding-left:10px;padding-right:10px}
.csp-secondary{font-size:12px;padding:8px!important}
}
@media print{body{background:#fff!important}
.csp-header,.csp-nav,.csp-switcher,.csp-actions,.csp-report-actions,.csp-alert,.csp-delete{display:none!important}
.csp-app{max-width:none}
.csp-main{padding:0}
.csp-title{display:block;margin:0 0 16px}
.csp-card,.csp-metrics article{box-shadow:none;border-color:#aaa;break-inside:avoid}
.csp-table{overflow:visible}
.csp-table table{min-width:0}
.csp-table th,.csp-table td{font-size:10px;padding:7px 5px}
.csp-metrics{grid-template-columns:repeat(4,1fr)}
@page{size:auto;margin:14mm}
}

.csp-date-filter{display:flex;align-items:end;gap:10px;flex-wrap:wrap;background:#fff;border:1px solid var(--csp-line);padding:14px;border-radius:14px;margin:-6px 0 18px}
.csp-date-filter label{font-size:12px;font-weight:800;color:var(--csp-muted)}
.csp-date-filter input,.csp-date-filter select{display:block;margin-top:5px;border:1px solid #cbd5e1;border-radius:8px;padding:8px;background:#fff;min-height:38px}
.csp-date-filter button{background:var(--csp-navy);color:#fff;border:0;border-radius:9px;padding:11px 15px;font-weight:800}
@media(max-width:520px){.csp-date-filter label{width:calc(50% - 5px)}
.csp-date-filter label:first-child{width:100%}
.csp-date-filter input,.csp-date-filter select{width:100%;box-sizing:border-box}
}
@media print{.csp-date-filter{border:0;padding:0;margin:0 0 14px}
.csp-date-filter select,.csp-date-filter input,.csp-date-filter button{display:none}
.csp-date-filter label{font-size:10px}
}

.csp-frequency{display:inline-block;padding:5px 9px;border-radius:999px;background:#eef4ff;color:#315c9c;font-size:12px;font-weight:800}
.csp-customer-team-group td{background:var(--customer-team-color);color:var(--customer-team-text);font-size:13px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}
.csp-customer-team-badge,.csp-customer-price{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:var(--customer-team-color);color:var(--customer-team-text);font-weight:900;white-space:nowrap}
.csp-customer-price{min-width:72px;justify-content:center}
.csp-customer-search-card{display:grid;grid-template-columns:minmax(150px,220px) minmax(260px,1fr) auto;align-items:center;gap:14px;margin:0 0 16px;padding:16px 18px;border:1px solid #f3c4d8;border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(136,14,79,.08)}
.csp-customer-search-card label{font-weight:900;color:#880e4f}
.csp-customer-search-card input{width:100%;min-height:46px;margin:0;border:2px solid #e9b2cb;border-radius:12px;background:#fff;padding:10px 14px;font-size:15px;color:#1f2937;outline:none}
.csp-customer-search-card input:focus{border-color:#176b9a;box-shadow:0 0 0 3px rgba(23,107,154,.13)}
.csp-customer-search-card small{font-weight:800;color:#6b7280;white-space:nowrap}
.csp-customer-row[hidden],.csp-customer-team-group[hidden],.csp-customer-search-empty[hidden]{display:none!important}
.csp-customer-search-empty td{text-align:center;padding:28px;color:#6b7280;font-weight:800}
@media(max-width:760px){.csp-customer-search-card{grid-template-columns:1fr;gap:8px}.csp-customer-search-card small{white-space:normal}}
.csp-edit{border:0;background:#fce4ec;color:#125276;border-radius:7px;padding:6px 8px;font-size:12px;font-weight:800;cursor:pointer}
.csp-appointment-time{display:block}.csp-edit-time{display:block;margin-top:7px;white-space:nowrap}.csp-quick-edit-modal .csp-edit-appointment-name{margin:-5px 0 18px;padding:10px 12px;border-radius:10px;background:#eef4fa;color:#40536a;font-size:13px;font-weight:800}
@media(max-width:620px){.csp-quick-edit-modal .csp-form-row{grid-template-columns:1fr}.csp-quick-edit-modal .csp-primary{width:100%}}

.csp-monthly-total{display:flex;align-items:center;gap:14px;flex-wrap:wrap;background:linear-gradient(135deg,#0b1f33,#123b61);color:#fff;border-radius:16px;padding:19px 22px;margin:0 0 18px}
.csp-monthly-total span{font-weight:800}
.csp-monthly-total strong{font-size:27px;margin-left:auto;color:#fff}
.csp-monthly-total small{width:100%;color:#c8d8e8}
.csp-monthly-value{color:#18864b}
@media(max-width:520px){.csp-monthly-total strong{width:100%;margin-left:0}
}

.csp-crm-page #masthead,.csp-crm-page #colophon,.csp-crm-page .site-header,.csp-crm-page .site-footer,.csp-crm-page .entry-header,.csp-crm-page .page-title,.csp-crm-page .post-navigation{display:none!important}
.csp-crm-page,.csp-crm-page #page,.csp-crm-page .site,.csp-crm-page .site-main,.csp-crm-page .content-area,.csp-crm-page .content-container,.csp-crm-page .site-container,.csp-crm-page .content-wrap,.csp-crm-page .entry-content-wrap,.csp-crm-page .entry-content{margin:0!important;padding:0!important;max-width:none!important;width:100%!important;background:transparent!important;box-shadow:none!important}
.csp-crm-page{background:#f3f7fb!important}
.csp-login-page{min-height:100vh;min-height:100svh;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(420px,.95fr);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.csp-login-brand{position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;padding:54px 64px;color:#fff;background:linear-gradient(145deg,#071827 0%,#0b2b49 56%,#134b78 100%)}
.csp-login-brand:before,.csp-login-brand:after{content:"";position:absolute;border-radius:50%;border:1px solid #ffffff15}
.csp-login-brand:before{width:470px;height:470px;right:-190px;top:-170px}
.csp-login-brand:after{width:330px;height:330px;left:-160px;bottom:-150px}
.csp-brand-logo{position:relative;z-index:1;display:flex;align-items:center;gap:13px}
.csp-brand-logo span{display:grid;place-items:center;width:45px;height:45px;border-radius:13px;background:linear-gradient(135deg,#e4bc5b,#c38b18);color:#071827;font-weight:900;letter-spacing:-.05em}
.csp-brand-logo strong{color:#fff;font-size:18px;letter-spacing:.02em}
.csp-brand-copy{position:relative;z-index:1;max-width:590px;margin:50px 0}
.csp-eyebrow{display:inline-block;color:#9bcfff;font-size:11px;font-weight:900;letter-spacing:.18em;margin-bottom:18px}
.csp-brand-copy h1{color:#fff;font-size:clamp(38px,4.3vw,64px);line-height:1.05;letter-spacing:-.045em;margin:0 0 24px}
.csp-brand-copy p{max-width:535px;color:#cfdeeb;font-size:18px;line-height:1.65;margin:0 0 27px}
.csp-brand-copy ul{list-style:none;margin:0;padding:0;display:grid;gap:13px;color:#fff1f5}
.csp-brand-copy li{display:flex;align-items:center;gap:11px;font-weight:650}
.csp-brand-copy li span{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#ffffff15;color:#efc75f;font-size:13px}
.csp-login-brand>small{position:relative;z-index:1;color:#91aac0;letter-spacing:.08em}
.csp-login-panel{display:grid;place-items:center;padding:46px;background:linear-gradient(150deg,#f8fbfd,#eaf1f7)}
.csp-login-card{width:100%;max-width:455px;background:#fff;border:1px solid #e2e8f0;border-radius:24px;padding:42px;box-shadow:0 24px 70px #0b1f3317}
.csp-secure{display:inline-flex;color:#125276;background:#fce4ec;border-radius:999px;padding:7px 11px;font-size:10px;font-weight:900;letter-spacing:.14em}
.csp-login-card h2{color:#0b1f33;font-size:36px;line-height:1.1;letter-spacing:-.03em;margin:19px 0 8px}
.csp-login-card>p{color:#64748b;font-size:15px;margin:0 0 28px}
.csp-login-error{margin:0 0 20px;padding:13px 15px;border:1px solid #fecaca;border-radius:11px;background:#fff1f2;color:#9f1239;font-size:14px;font-weight:750;line-height:1.45}
.csp-customer-state{display:block;width:max-content;margin-top:7px;padding:4px 8px;border-radius:999px;font-size:10px;font-weight:900;line-height:1.2;white-space:nowrap}
.csp-customer-state.active{background:#dcfce7;color:#166534}.csp-customer-state.inactive{background:#f1f5f9;color:#64748b}
.csp-customer-inactive{opacity:.68;background:#f8fafc}.csp-customer-inactive .csp-monthly-value{color:#64748b}
.csp-login-card #loginform{margin:0}
.csp-login-card #loginform p{margin:0 0 18px}
.csp-login-card #loginform label{display:block;color:#344054;font-size:13px;font-weight:800}
.csp-login-card #loginform .input{display:block;width:100%;height:52px;box-sizing:border-box;margin-top:7px;padding:10px 13px;border:1px solid #cbd5e1;border-radius:11px;background:#fbfdff;color:#172133;font-size:16px;outline:none;transition:.2s}
.csp-login-card #loginform .input:focus{border-color:#176b9a;box-shadow:0 0 0 4px #176b9a19;background:#fff}
.csp-login-card .login-remember label{display:flex!important;align-items:center;gap:9px;font-weight:650!important}
.csp-login-card .login-remember input{width:19px;height:19px;margin:0;accent-color:#176b9a}
.csp-login-card .login-submit{margin-top:24px!important}
.csp-login-card #wp-submit{width:100%;min-height:52px;border:0;border-radius:11px;background:linear-gradient(135deg,#176b9a,#125276);color:#fff;font-size:15px;font-weight:900;cursor:pointer;box-shadow:0 9px 24px #176b9a2c}
.csp-forgot{display:block;text-align:center;color:#125276;font-size:13px;font-weight:750;text-decoration:none;margin-top:19px}
.csp-login-help{border-top:1px solid #e8edf3;margin-top:26px;padding-top:22px;text-align:center;color:#7b8a9d;font-size:12px}
@media(max-width:800px){.csp-login-page{display:block}
.csp-login-brand{min-height:330px;padding:30px 24px 86px}
.csp-brand-copy{margin:45px 0 0}
.csp-brand-copy h1{font-size:35px}
.csp-brand-copy p{font-size:15px;line-height:1.5;margin-bottom:0}
.csp-brand-copy ul,.csp-login-brand>small{display:none}
.csp-login-panel{display:block;padding:0 17px 42px;margin-top:-57px;position:relative;z-index:2;background:transparent}
.csp-login-card{box-sizing:border-box;max-width:520px;margin:0 auto;padding:29px 24px;border-radius:21px}
.csp-login-card h2{font-size:30px}
.csp-login-card>p{margin-bottom:23px}
}
@media(max-width:380px){.csp-login-brand{min-height:305px}
.csp-brand-copy{margin-top:34px}
.csp-brand-copy h1{font-size:30px}
.csp-login-card{padding:25px 20px}
}

.csp-header-actions{display:flex;align-items:center;gap:8px}
.csp-profile-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:18px;align-items:start}
.csp-profile-summary{background:linear-gradient(145deg,#0b1f33,#164e7c);color:#fff;border-radius:17px;padding:29px 22px;text-align:center}
.csp-profile-avatar{display:grid;place-items:center;width:82px;height:82px;margin:0 auto 16px;border-radius:50%;background:linear-gradient(135deg,#e4bc5b,#c38b18);color:#0b1f33;font-size:34px;font-weight:900}
.csp-profile-summary h3{color:#fff;font-size:20px;margin:0 0 6px}
.csp-profile-summary p{color:#c5d6e5;font-size:13px;overflow-wrap:anywhere;margin:0 0 16px}
.csp-profile-summary span{display:inline-block;background:#ffffff16;border:1px solid #ffffff24;border-radius:999px;padding:6px 10px;font-size:11px}
.csp-profile-form{padding:25px}
.csp-profile-section{padding-bottom:24px;margin-bottom:24px;border-bottom:1px solid #e2e8f0}
.csp-profile-section h3{font-size:20px;margin:0 0 5px;color:#0b1f33}
.csp-profile-section>p{font-size:13px;color:#64748b;margin:0 0 18px}
.csp-profile-form label{display:block;color:#344054;font-size:13px;font-weight:800;margin:13px 0}
.csp-profile-form input{display:block;width:100%;box-sizing:border-box;margin-top:6px;border:1px solid #cbd5e1;border-radius:9px;padding:11px;background:#fff;font-size:15px}
.csp-profile-form input:focus{outline:none;border-color:#176b9a;box-shadow:0 0 0 3px #176b9a18}
.csp-business-logo-preview{display:flex;align-items:center;justify-content:center;width:160px;min-height:90px;margin:10px 0;padding:12px;border:1px solid #dbe4ee;border-radius:12px;background:#f8fafc}
.csp-business-logo-preview img{display:block;max-width:100%;max-height:90px;width:auto;height:auto;object-fit:contain}
.csp-profile-form .csp-logo-remove{display:flex;align-items:center;gap:9px;margin-top:-3px;color:#9f2f2f}
.csp-profile-form .csp-logo-remove input{width:18px;height:18px;margin:0;flex:0 0 auto}
@media(max-width:720px){.csp-header{align-items:flex-start;gap:15px}
.csp-header-actions{flex-direction:column;align-items:stretch}
.csp-header-actions a{text-align:center;padding:6px 10px;font-size:12px}
.csp-profile-layout{grid-template-columns:1fr}
.csp-profile-summary{padding:22px}
.csp-profile-avatar{width:65px;height:65px;font-size:27px}
.csp-profile-form{padding:20px}
}

.csp-header-actions a{display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:112px;min-height:44px}
.csp-nav{scrollbar-width:none}
.csp-nav::-webkit-scrollbar{display:none}
@media(max-width:620px){.csp-date-filter{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:end;gap:13px 12px;padding:18px}
.csp-date-filter label,.csp-date-filter label:first-child{width:auto;min-width:0;margin:0}
.csp-date-filter input,.csp-date-filter select,.csp-date-filter button{display:block;width:100%;max-width:100%;min-width:0;height:50px;min-height:50px;box-sizing:border-box;margin:5px 0 0;padding:8px 10px}
.csp-date-filter button{margin:0}
.csp-header-actions a{width:112px;height:46px;min-height:46px}
}
@media(max-width:365px){.csp-date-filter{grid-template-columns:minmax(0,1fr)}
.csp-header{display:block}
.csp-header-actions{margin-top:15px;flex-direction:row}
.csp-header-actions a{width:auto;flex:1}
}

/* Ajuste móvil 0.11: cuatro controles idénticos sin ancho intrínseco de Safari. */
@media(max-width:620px){
  .csp-date-filter{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:86px;align-items:stretch;gap:12px;padding:18px}
  .csp-date-filter>label,.csp-date-filter>button{width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
  .csp-date-filter>label{display:flex;flex-direction:column;overflow:hidden}
  .csp-date-filter input[type="date"],.csp-date-filter select{flex:1 1 auto;inline-size:100%!important;min-inline-size:0!important;max-inline-size:100%!important;height:54px!important;min-height:54px!important;margin-top:5px!important;box-sizing:border-box!important;font-size:16px}
  .csp-date-filter>button{align-self:end;height:54px!important;min-height:54px!important;margin:0!important}
  .csp-header-actions a{width:auto;min-width:82px;height:38px;min-height:38px;padding:6px 11px;font-size:12px}
}
@media(max-width:365px){.csp-date-filter{grid-template-columns:1fr;grid-auto-rows:86px}}

/* Ajuste móvil 0.12: jerarquía compacta y controles reorganizados. */
@media(max-width:620px){
  .csp-header{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:14px;padding:20px;border-radius:0 0 24px 24px}
  .csp-header-actions{flex-direction:row;align-items:center;justify-content:flex-start;gap:8px}
  .csp-header-actions a{width:auto;min-width:0;height:36px;min-height:36px;padding:6px 13px;font-size:12px;border-radius:999px}
  .csp-date-filter{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"period period" "from to" "apply apply";grid-auto-rows:auto;align-items:end;gap:14px 10px;padding:17px;border-radius:16px}
  .csp-date-filter>label:nth-of-type(1){grid-area:period}
  .csp-date-filter>label:nth-of-type(2){grid-area:from}
  .csp-date-filter>label:nth-of-type(3){grid-area:to}
  .csp-date-filter>button{grid-area:apply}
  .csp-date-filter>label{display:block;overflow:hidden;font-size:11px;letter-spacing:.02em}
  .csp-date-filter input[type="date"],.csp-date-filter select{display:block;inline-size:100%!important;min-inline-size:0!important;max-inline-size:100%!important;width:100%!important;height:46px!important;min-height:46px!important;margin-top:6px!important;padding:7px 10px!important;border-radius:10px;font-size:14px;background:#f9fbfd}
  .csp-date-filter>button{width:100%!important;height:46px!important;min-height:46px!important;margin:0!important;border-radius:10px;font-size:13px;box-shadow:0 8px 18px #0b1f3320}
  .csp-profile-form label small{display:block;margin-top:6px;color:#7b8a9d;font-size:11px;font-weight:500}
}
@media(max-width:365px){
  .csp-date-filter{grid-template-columns:1fr;grid-template-areas:"period" "from" "to" "apply"}
}

/* Ajuste móvil 0.13: fechas completas y cabecera restaurada. */
@media(max-width:620px){
  .csp-header{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;gap:15px;padding:18px;border-radius:0 0 22px 22px}
  .csp-header-actions{flex-direction:column;align-items:stretch;justify-content:flex-start;gap:8px}
  .csp-header-actions a{width:112px;min-width:112px;height:46px;min-height:46px;padding:6px 10px;font-size:12px;border-radius:10px}
  .csp-date-filter{grid-template-columns:minmax(0,1fr);grid-template-areas:"period" "from" "to" "apply";gap:13px;padding:17px}
  .csp-date-filter>label{display:block;width:100%!important;overflow:visible}
  .csp-date-filter input[type="date"],.csp-date-filter select{inline-size:100%!important;width:100%!important;min-inline-size:0!important;max-inline-size:100%!important;height:46px!important;min-height:46px!important;box-sizing:border-box!important}
  .csp-date-filter>button{width:100%!important;height:46px!important;min-height:46px!important}
}

/* Ajuste móvil 0.14: borde de fecha independiente del control nativo de iOS. */
.csp-date-box{display:block;width:100%;box-sizing:border-box;margin-top:6px;border:1px solid #cbd5e1;border-radius:10px;background:#f9fbfd;overflow:hidden}
.csp-date-box input[type="date"]{display:block;width:100%;max-width:100%;box-sizing:border-box;margin:0;border:0;background:transparent}
@media(max-width:620px){
  .csp-header-actions a{width:88px;min-width:88px;height:38px;min-height:38px;padding:5px 9px;font-size:11px}
  .csp-date-box{height:46px;min-height:46px}
  .csp-date-box input[type="date"]{width:0!important;min-width:100%!important;max-width:100%!important;height:44px!important;min-height:44px!important;margin:0!important;padding:7px 10px!important;border:0!important;border-radius:0!important;background:transparent!important;font-size:14px}
}

.csp-share-pdf:disabled{opacity:.65;cursor:wait}
@media(max-width:520px){.csp-report-actions{flex-wrap:wrap}.csp-report-actions .csp-secondary{justify-content:center;min-height:40px}}

.csp-payment-address[readonly]{color:#475569;background:#f3f6f9;cursor:default}
.csp-payment-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 18px}.csp-payment-summary article{padding:18px;border:1px solid var(--csp-line);border-radius:15px;background:#fff;box-shadow:0 8px 22px #1018280a}.csp-payment-summary span,.csp-payment-summary strong{display:block}.csp-payment-summary span{color:#64748b;font-size:12px;font-weight:800}.csp-payment-summary strong{margin-top:7px;color:#125276;font-size:25px}.csp-weekly-payments{margin-bottom:18px}.csp-weekly-payments>h3,.csp-table>h3{margin:0;padding:20px 20px 5px}.csp-weekly-payments td small{display:block;margin-top:5px;color:#64748b}.csp-payment-state{display:inline-flex;padding:7px 10px;border-radius:999px;font-size:11px;font-weight:900;white-space:nowrap}.csp-payment-state.pending{background:#fff7ed;color:#c2410c}.csp-payment-state.partial{background:#fef3c7;color:#92400e}.csp-payment-state.paid{background:#dcfce7;color:#166534}.csp-register-service-payment{min-height:36px;padding:8px 11px!important;border-radius:9px!important;font-size:12px!important;white-space:nowrap}.csp-paid-check{display:grid;width:32px;height:32px;place-items:center;border-radius:50%;background:#dcfce7;color:#15803d;font-weight:900}
.csp-payment-service-client{margin:0 0 13px;padding:10px 12px;border-radius:10px;background:#fce4ec;color:#125276;font-size:13px;font-weight:850}
@media(max-width:760px){.csp-payment-summary{grid-template-columns:1fr 1fr}.csp-weekly-payments>h3,.csp-table>h3{padding:17px 15px 4px;font-size:17px}}
@media(max-width:520px){
  .csp-report-actions{display:flex;flex-wrap:nowrap;align-items:center;gap:8px}
  .csp-report-actions .csp-secondary{display:flex!important;align-items:center;justify-content:center;width:118px!important;min-width:118px!important;height:42px!important;min-height:42px!important;margin:0!important;padding:0 9px!important;box-sizing:border-box!important;line-height:1!important;font-size:12px!important;border-radius:10px!important}
}

.csp-preferred-day{display:inline-flex;align-items:center;gap:5px;padding:5px 9px;border-radius:999px;background:#fff6df;color:#8a5b00;font-size:12px;font-weight:800;white-space:nowrap}
.csp-preferred-day:before{content:"";width:7px;height:7px;border-radius:50%;background:#e0ae39}
.csp-preferred-day.day-monday{background:#fce4ec;color:#125276}.csp-preferred-day.day-monday:before{background:#176b9a}
.csp-preferred-day.day-tuesday{background:#e6f8f5;color:#08796b}.csp-preferred-day.day-tuesday:before{background:#14a38f}
.csp-preferred-day.day-wednesday{background:#f1eaff;color:#6941c6}.csp-preferred-day.day-wednesday:before{background:#8b5cf6}
.csp-preferred-day.day-thursday{background:#fff0e5;color:#a44b12}.csp-preferred-day.day-thursday:before{background:#f27a24}
.csp-preferred-day.day-friday{background:#e9f9ef;color:#187743}.csp-preferred-day.day-friday:before{background:#25a55f}
.csp-preferred-day.day-saturday{background:#fdebf4;color:#a53870}.csp-preferred-day.day-saturday:before{background:#db5b98}
.csp-preferred-day.day-sunday{background:#feecec;color:#a52b2b}.csp-preferred-day.day-sunday:before{background:#d94848}
.csp-preferred-day.day-flexible{background:#eef1f5;color:#526173}.csp-preferred-day.day-flexible:before{background:#7b8a9d}
.csp-preferred-day.day-undefined{background:#fff6df;color:#8a5b00}.csp-preferred-day.day-undefined:before{background:#e0ae39}
.csp-day-group td{padding:10px 12px!important;background:#f4f7fb;color:#40536a;font-size:12px!important;font-weight:900;letter-spacing:.1em;text-transform:uppercase;border-bottom:1px solid var(--csp-line)}
.csp-day-group.day-monday td{border-left:5px solid #176b9a}.csp-day-group.day-tuesday td{border-left:5px solid #14a38f}.csp-day-group.day-wednesday td{border-left:5px solid #8b5cf6}.csp-day-group.day-thursday td{border-left:5px solid #f27a24}.csp-day-group.day-friday td{border-left:5px solid #25a55f}.csp-day-group.day-saturday td{border-left:5px solid #db5b98}.csp-day-group.day-sunday td{border-left:5px solid #d94848}.csp-day-group.day-flexible td{border-left:5px solid #7b8a9d}.csp-day-group.day-undefined td{border-left:5px solid #e0ae39}
.csp-appointment-address[readonly]{color:#475569;background:#f3f6f9;cursor:default}
.csp-calendar-card{padding:18px}
.csp-calendar-toolbar{display:flex;align-items:center;justify-content:center;gap:18px;margin-bottom:16px}
.csp-calendar-toolbar h3{min-width:190px;margin:0;text-align:center;color:var(--csp-navy);font-size:22px;text-transform:capitalize}
.csp-calendar-toolbar a{display:grid;place-items:center;width:40px;height:40px;border:1px solid var(--csp-line);border-radius:11px;background:#fff;color:var(--csp-navy);text-decoration:none;font-size:27px;font-weight:700}
.csp-calendar-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--csp-line);border-radius:14px}
.csp-calendar{display:grid;grid-template-columns:repeat(7,minmax(118px,1fr));min-width:826px;background:var(--csp-line);gap:1px}
.csp-calendar-weekday{padding:10px;background:#eef4fa;color:var(--csp-muted);text-align:center;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.csp-calendar-day{min-height:132px;padding:9px;background:#fff}
.csp-calendar-day.is-empty{background:#f7f9fc}
.csp-calendar-day.is-today{box-shadow:inset 0 0 0 2px var(--csp-blue)}
.csp-calendar-date{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px}
.csp-calendar-date strong{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;color:var(--csp-navy);font-size:13px}
.csp-calendar-day.is-today .csp-calendar-date strong{background:var(--csp-blue);color:#fff}
.csp-calendar-date button{display:grid;place-items:center;width:25px;height:25px;padding:0;border:1px solid var(--csp-line);border-radius:7px;background:#f8fbfe;color:var(--csp-blue);font-size:17px;cursor:pointer}
.csp-calendar-event{display:block;width:100%;margin-top:5px;padding:7px;border:0;border-left:3px solid var(--csp-blue);border-radius:7px;background:#fce4ec;color:#24415e;font-family:inherit;font-size:10px;line-height:1.25;text-align:left;cursor:pointer}
.csp-calendar-event time,.csp-calendar-event strong,.csp-calendar-event span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.csp-calendar-event strong{font-size:11px;margin:2px 0}
.csp-calendar-event .csp-calendar-address{color:#183b5b;font-size:10px;font-weight:900}
.csp-calendar-event em{display:block;overflow:hidden;margin-top:3px;color:#6b7c8f;font-size:9px;font-style:normal;text-overflow:ellipsis;white-space:nowrap}
.csp-calendar-event small{display:block;margin-top:4px;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.csp-calendar-team-group{margin-top:5px;border:1px solid #dbe3ec;border-left:4px solid var(--calendar-team-color,#176b9a);border-radius:8px;background:#fff;overflow:hidden}.csp-calendar-team-group summary{display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px 6px;min-height:32px;padding:6px 7px;background:#f8fafc;color:#25384c;font-size:10px;font-weight:900;line-height:1.15;list-style:none;cursor:pointer}.csp-calendar-team-group summary::-webkit-details-marker{display:none}.csp-calendar-team-group summary::after{content:'+';grid-column:2;grid-row:1/3;color:#125276;font-size:15px}.csp-calendar-team-group[open] summary::after{content:'−'}.csp-calendar-team-group summary span{grid-column:1;white-space:nowrap}.csp-calendar-team-group summary small{grid-column:1;color:#64748b;font-size:8px;font-weight:800}.csp-calendar-team-events{padding:0 4px 5px}.csp-calendar-team-events .csp-calendar-event{margin-top:4px}
.csp-calendar-event.pending{border-left-color:#e0ae39;background:#fff6df}
.csp-calendar-event.confirmed{border-left-color:#176b9a;background:#fce4ec}
.csp-calendar-event.completed{border-left-color:#25a55f;background:#e9f9ef}
.csp-calendar-event.cancelled{border-left-color:#d94848;background:#feecec}
@media(max-width:620px){.csp-calendar-card{padding:12px}.csp-calendar-toolbar h3{min-width:155px;font-size:18px}.csp-calendar{grid-template-columns:repeat(7,104px);min-width:728px}.csp-calendar-day{min-height:118px}}
.csp-appointment-details{max-width:640px}.csp-details-body{padding:26px}.csp-appointment-details h3{margin:4px 45px 5px 0;color:var(--csp-navy);font-size:28px}.csp-details-address{margin:0 0 14px;color:#284b6b;font-size:16px;font-weight:850;line-height:1.45}.csp-details-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}.csp-details-actions a,.csp-details-photo{padding:9px 13px;border:0;border-radius:9px;background:var(--csp-blue);color:#fff;font-size:12px;font-weight:900;text-decoration:none;cursor:pointer}.csp-details-photo{background:var(--csp-navy)}.csp-details-section{margin-top:14px;padding:17px;border:1px solid var(--csp-line);border-radius:14px;background:#f9fbfd}.csp-details-section h4{margin:0 0 13px;color:var(--csp-navy);font-size:16px}.csp-details-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.csp-details-grid div{min-width:0}.csp-details-grid span,.csp-details-notes>span{display:block;margin-bottom:4px;color:#738297;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}.csp-details-grid strong{display:block;overflow-wrap:anywhere;color:#25384c;font-size:13px}.csp-details-notes{margin-top:14px;padding-top:13px;border-top:1px solid var(--csp-line)}.csp-details-notes p{margin:0;color:#40536a;font-size:13px;line-height:1.5;white-space:pre-wrap}
@media(max-width:620px){.csp-details-body{padding:21px}.csp-appointment-details h3{font-size:24px}.csp-details-grid{grid-template-columns:1fr 1fr}.csp-details-section{padding:14px}}

/* Portal privado del equipo */
.csp-team-hero{display:flex;align-items:center;gap:18px;padding:24px;margin-bottom:16px;border-radius:18px;background:linear-gradient(135deg,#0b1f33,#123c60);color:#fff;box-shadow:0 14px 35px #0b1f3326}
.csp-team-hero img,.csp-team-monogram{width:70px;height:70px;border-radius:16px;object-fit:contain;background:#fff;padding:8px;box-sizing:border-box}
.csp-team-monogram{display:grid;place-items:center;color:var(--csp-blue);font-size:25px;font-weight:900}
.csp-team-hero span{color:#9bc5e9;font-size:11px;font-weight:900;letter-spacing:.15em}.csp-team-hero h3{margin:4px 0;color:#fff;font-size:25px}.csp-team-hero p{margin:0;color:#d9e8f5}
.csp-clock-card{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 18px;padding:20px 24px;border:1px solid var(--csp-line);border-radius:17px;background:#fff;box-shadow:0 7px 25px #2135470a}
.csp-clock-card h3{margin:3px 0;font-size:21px;color:var(--csp-navy)}.csp-clock-card p{margin:3px 0;color:var(--csp-muted)}.csp-clock-card form{margin:0}
.csp-clock-card form{display:flex;align-items:flex-end;gap:10px}.csp-clock-card .csp-work-team-field{display:block;min-width:190px;color:#344054;font-size:12px;font-weight:850}.csp-clock-card .csp-work-team-field select{display:block;width:100%;min-height:40px;margin-top:5px;padding:7px 30px 7px 10px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#172133;font-weight:750}
.csp-clock-card button{min-width:110px;padding:11px 18px;border:0;border-radius:11px;color:#fff;font-size:15px;font-weight:900;line-height:1.15;white-space:nowrap;cursor:pointer}.clock-in{background:#198754}.clock-out{background:#c93b3b}
.csp-team-tabs{display:flex;gap:6px;margin-bottom:18px;padding:7px;overflow-x:auto;border:1px solid var(--csp-line);border-radius:15px;background:#fff;box-shadow:0 7px 25px #2135470a}
.csp-team-tabs button{flex:1;min-width:max-content;padding:11px 17px;border:0;border-radius:10px;background:transparent;color:var(--csp-muted);font-weight:900;cursor:pointer}.csp-team-tabs button.active{background:#fce4ec;color:var(--csp-blue)}
.csp-team-panel{display:none}.csp-team-panel.active{display:block}
.csp-role-card{display:flex;align-items:center;gap:20px;margin-bottom:14px;padding:24px;border-radius:18px;background:linear-gradient(135deg,#176b9a,#125276);color:#fff}.csp-role-card.leader{background:linear-gradient(135deg,#0b1f33,#1f527c)}
.csp-role-number{font-size:42px;font-weight:900;opacity:.3}.csp-role-card h3{margin:2px 0 8px;color:#fff;font-size:29px}.csp-role-card .csp-eyebrow{color:#cfe6fb}.csp-pay-pill{display:inline-flex;padding:6px 11px;border-radius:999px;background:#ffffff24;font-size:13px;font-weight:900}
.csp-team-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}.csp-team-grid .csp-card{margin:0}.csp-team-grid h4,.csp-responsibilities h4{margin:0 0 9px;color:var(--csp-navy);font-size:17px}.csp-team-grid p{margin:0;color:#526173;line-height:1.6}
.csp-responsibilities ol{display:grid;grid-template-columns:1fr 1fr;gap:10px 28px;margin:0;padding-left:23px}.csp-responsibilities li{padding-left:4px;color:#334155;line-height:1.5}.csp-responsibilities li::marker{color:var(--csp-blue);font-weight:900}
.csp-team-principles{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.csp-team-principles span{padding:7px 11px;border-radius:999px;background:#fce4ec;color:#125276;font-size:12px;font-weight:900}
.csp-checklist-card{padding:24px;border:1px solid var(--csp-line);border-radius:18px;background:#fff;box-shadow:0 7px 25px #2135470a}.csp-checklist-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.csp-checklist-heading h3{margin:3px 0;font-size:27px}.csp-checklist-heading>span{padding:7px 10px;border-radius:999px;background:#fce4ec;color:#125276;font-size:12px;font-weight:900}
.csp-service-picker{display:block;margin-bottom:16px;color:#344054;font-size:13px;font-weight:900}.csp-service-picker select{display:block;width:100%;box-sizing:border-box;margin-top:6px;padding:11px;border:1px solid #cbd5e1;border-radius:10px;background:#fff}
.csp-check-items{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px}.csp-check-items label{cursor:pointer}.csp-check-items input{position:absolute;opacity:0}.csp-check-items span{display:flex;align-items:center;gap:10px;min-height:54px;padding:10px 12px;border:1px solid var(--csp-line);border-radius:12px;background:#f8fafc;color:#334155;line-height:1.35}.csp-check-items b{display:grid;place-items:center;flex:0 0 30px;height:30px;border-radius:9px;background:#fce4ec;color:var(--csp-blue);font-size:11px}.csp-check-items input:checked+span{border-color:#48a875;background:#edf9f1;color:#17683a}.csp-check-items input:checked+span b{background:#198754;color:#fff}.csp-checklist-card>small{display:block;margin-top:10px;color:var(--csp-muted)}
.csp-team-history{margin-top:15px}.csp-team-history-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:12px}.csp-team-history-heading h3{margin:0}.csp-team-history-heading small{display:block;margin-top:4px;color:var(--csp-muted);font-weight:700}.csp-open-shift{display:inline-block;padding:5px 8px;border-radius:999px;background:#fff6df;color:#8a5b00;font-size:11px;font-weight:900}.csp-review-done{color:#198754;font-weight:900}.csp-time-note{min-width:170px;max-width:260px;white-space:normal;line-height:1.4}.csp-time-admin-actions{display:flex;align-items:center;gap:7px}.csp-time-admin-actions form{margin:0}.csp-delete-button{padding:8px 10px;border:1px solid #fecaca;border-radius:8px;background:#fff5f5;color:#b42318;font-size:12px;font-weight:900;white-space:nowrap;cursor:pointer}.csp-delete-button:hover{background:#fee2e2}.csp-time-entry-modal .csp-edit-time-employee{margin:-4px 0 16px;color:#64748b;font-weight:800}
.csp-team-hours-summary{margin-bottom:16px;border:1px solid #f3c4d8;background:linear-gradient(135deg,#fff,#fff7fb)}
.csp-team-hours-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:14px}
.csp-team-hours-heading h3{margin:2px 0 0}.csp-team-hours-heading small{color:#6b7280;font-weight:700}
.csp-hours-total{display:inline-flex;padding:7px 12px;border-radius:999px;background:#176b9a;color:#fff;font-size:15px;white-space:nowrap}
@media(max-width:760px){.csp-team-hours-heading{align-items:flex-start;flex-direction:column;gap:6px}}
.csp-team-settings{margin-top:18px}.csp-team-settings summary{cursor:pointer;color:var(--csp-navy);font-weight:900}.csp-team-editor{padding:18px 0 0}.csp-team-editor textarea{min-height:95px}.csp-team-editor .csp-large-textarea{min-height:210px}.csp-employee-access{margin-top:22px;padding-top:20px;border-top:1px solid var(--csp-line)}.csp-employee-access .csp-form-row{grid-template-columns:1fr 1fr auto;align-items:end}.csp-employee-access ul{margin:16px 0 0;padding:0;list-style:none}.csp-employee-access li{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px solid var(--csp-line)}.csp-employee-access li span{display:block;margin-top:3px;color:var(--csp-muted)}.csp-employee-access li form{margin:0}.csp-employee-identity{min-width:0}
@media(max-width:620px){.csp-team-title{align-items:end}.csp-team-hero{padding:18px}.csp-team-hero img,.csp-team-monogram{width:58px;height:58px}.csp-team-hero h3{font-size:20px}.csp-clock-card{padding:17px}.csp-clock-card h3{font-size:18px}.csp-clock-card button{width:auto;min-width:0;padding:10px 15px;border-radius:10px;font-size:14px}.csp-team-tabs button{padding:10px 13px}.csp-role-card{padding:19px}.csp-role-card h3{font-size:25px}.csp-role-number{font-size:34px}.csp-team-grid,.csp-check-items{grid-template-columns:1fr}.csp-responsibilities ol{grid-template-columns:1fr}.csp-checklist-card{padding:18px}.csp-employee-access .csp-form-row{grid-template-columns:1fr}.csp-employee-access .csp-primary{width:100%}.csp-employee-access li{align-items:flex-start;flex-direction:column}.csp-time-admin-actions{align-items:stretch;flex-direction:column}}
@media(max-width:620px){.csp-clock-card{align-items:stretch;flex-direction:column}.csp-clock-card form{display:grid;grid-template-columns:minmax(0,1fr) auto;width:100%}.csp-clock-card .csp-work-team-field{min-width:0}.csp-clock-card button{align-self:end;height:40px}}

/* Portal del equipo 0.21: color por compañía, privacidad y agenda móvil. */
.csp-team-module{--csp-team-color:#176b9a}
.csp-team-module .csp-team-hero{background:linear-gradient(135deg,var(--csp-team-color),#0b1f33)}
.csp-team-module .csp-team-monogram,.csp-team-module .csp-role-number,.csp-team-module .csp-responsibilities li::marker{color:var(--csp-team-color)}
.csp-team-module .csp-team-tabs button.active{background:color-mix(in srgb,var(--csp-team-color) 12%,white);color:var(--csp-team-color)}
.csp-team-module .csp-role-card{background:linear-gradient(135deg,var(--csp-team-color),#0b1f33)}
.csp-team-module .csp-primary{background:var(--csp-team-color)}
.csp-team-brand-fields{display:grid;grid-template-columns:1fr 220px;gap:16px;align-items:end}
.csp-color-picker{height:48px!important;padding:5px!important;cursor:pointer}
.csp-private-settings{margin:20px 0;padding:18px;border:1px solid #f0d8a1;border-radius:14px;background:#fffaf0}
.csp-private-settings h4{margin:0 0 12px;color:#7b5100;font-size:15px}
.csp-team-schedule-card{padding:22px}
.csp-team-schedule-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}
.csp-team-schedule-heading h3{margin:3px 0 0;color:var(--csp-navy);font-size:25px}
.csp-team-schedule-heading>span{padding:7px 10px;border-radius:999px;background:#eef3f8;color:#526173;font-size:11px;font-weight:900;white-space:nowrap}
.csp-team-schedule{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.csp-team-service{display:grid;grid-template-columns:62px minmax(0,1fr);gap:15px;overflow:hidden;padding:15px;border:1px solid var(--csp-line);border-left:4px solid #e0ae39;border-radius:14px;background:#fff}
.csp-team-service.status-confirmed{border-left-color:var(--csp-team-color)}
.csp-team-service.status-completed{border-left-color:#25a55f}
.csp-team-service.status-cancelled{border-left-color:#d94848;opacity:.72}
.csp-team-service-date{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:70px;border-radius:12px;background:color-mix(in srgb,var(--csp-team-color) 9%,white);color:var(--csp-navy);text-transform:capitalize}
.csp-team-service-date small,.csp-team-service-date span{font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}.csp-team-service-date strong{font-size:25px;line-height:1}
.csp-team-service-info{min-width:0}.csp-team-service-info>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.csp-team-service-info time{color:var(--csp-team-color);font-size:12px;font-weight:900}
.csp-team-service-info h4{margin:6px 0 4px;overflow:hidden;color:var(--csp-navy);font-size:17px;text-overflow:ellipsis;white-space:nowrap}
.csp-team-service-info p{margin:2px 0;color:#64748b;font-size:12px;line-height:1.4}.csp-team-address{font-weight:650}.csp-team-service-type{color:#3f5369!important}
.csp-team-day-note{margin:11px 0 8px;padding:10px 12px;border-left:4px solid var(--csp-team-color);border-radius:9px;background:#fff2f7}.csp-team-day-note strong{display:block;margin-bottom:3px;color:#a5144b;font-size:11px;text-transform:uppercase;letter-spacing:.04em}.csp-team-day-note p{margin:0!important;color:#452638!important;font-size:13px!important;font-weight:700;white-space:pre-wrap}.csp-schedule-note-indicator{display:block;margin-top:4px;color:#125276;font-size:10px;font-weight:900}
.csp-team-status{padding:4px 7px;border-radius:999px;background:#fff6df;color:#8a5b00;font-size:9px;font-weight:900;text-transform:uppercase}.csp-team-status.confirmed{background:#fce4ec;color:#125276}.csp-team-status.completed{background:#e9f9ef;color:#187743}.csp-team-status.cancelled{background:#feecec;color:#a52b2b}
.csp-empty-schedule{grid-column:1/-1;margin:0;padding:22px;border:1px dashed var(--csp-line);border-radius:12px;color:var(--csp-muted);text-align:center}
@media(max-width:720px){.csp-team-brand-fields,.csp-team-schedule{grid-template-columns:1fr}.csp-team-schedule-card{padding:16px}.csp-team-service{grid-template-columns:55px minmax(0,1fr);padding:13px;gap:12px}.csp-team-service-date{min-height:66px}.csp-team-tabs button{flex:0 0 auto}}

/* Estimados 0.24 */
.csp-estimate-pricing{display:grid;grid-template-columns:280px minmax(0,1fr);gap:22px;align-items:center;margin-bottom:18px;padding:24px;border-radius:18px;background:linear-gradient(135deg,var(--csp-navy),var(--csp-blue));color:#fff;box-shadow:0 14px 34px #0b1f3320}
.csp-estimate-pricing span,.csp-estimate-pricing small{display:block;color:#bcd3e7}.csp-estimate-pricing strong{display:block;margin:4px 0;color:#fff;font-size:28px}.csp-estimate-pricing p{margin:0;padding-left:22px;border-left:1px solid #ffffff2e;color:#dce9f4;line-height:1.65}.csp-estimate-pricing p strong{display:inline;font-size:inherit;color:#fff}
.csp-service-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:18px}
.csp-service-guide{padding:22px;border:1px solid var(--csp-line);border-radius:17px;background:#fff;box-shadow:0 7px 25px #2135470a}.csp-service-guide>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.csp-service-guide>div span{padding:6px 9px;border-radius:999px;background:#fce4ec;color:#125276;font-size:11px;font-weight:900}.csp-service-guide>div strong{color:#18864b;font-size:13px}.csp-service-guide h3{margin:17px 0 7px;color:var(--csp-navy);font-size:21px}.csp-service-guide p{margin:0 0 13px;color:#64748b;line-height:1.55}.csp-service-guide ul{margin:0;padding-left:19px;color:#334155}.csp-service-guide li{margin:7px 0;line-height:1.4}.csp-service-guide li::marker{color:var(--csp-blue)}
.csp-card-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:15px}.csp-card-heading h3{margin:2px 0;font-size:25px}.csp-card-heading .csp-eyebrow{margin:0}.csp-card-heading>span{padding:6px 10px;border-radius:999px;background:#fff6df;color:#8a5b00;font-size:11px;font-weight:900}
.csp-addon-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:var(--csp-line);border:1px solid var(--csp-line);border-radius:13px;overflow:hidden}.csp-addon-grid>div{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px;background:#fff}.csp-addon-grid span{color:#334155}.csp-addon-grid strong{flex:0 0 auto;color:#125276;font-size:13px}.csp-estimate-note{margin:14px 0 0;color:#64748b;font-size:12px}
.csp-estimate-modal{max-width:720px;max-height:92vh}.csp-estimate-modal .csp-form{max-height:92vh;overflow-y:auto;box-sizing:border-box}.csp-addon-picker{margin:18px 0;padding:15px;border:1px solid var(--csp-line);border-radius:13px}.csp-addon-picker legend{padding:0 7px;color:var(--csp-navy);font-size:15px;font-weight:900}.csp-addon-picker>label{display:grid;grid-template-columns:auto minmax(0,1fr) 125px;align-items:center;gap:11px;margin:0;padding:10px 2px;border-bottom:1px solid var(--csp-line)}.csp-addon-picker>label:last-child{border-bottom:0}.csp-addon-picker input[type=checkbox]{width:20px;height:20px;margin:0;accent-color:var(--csp-blue)}.csp-addon-picker span strong,.csp-addon-picker span small{display:block}.csp-addon-picker span small{margin-top:3px;color:#64748b;font-weight:600}.csp-addon-picker input[type=number]{margin:0}
.csp-estimate-list{margin-top:18px}.csp-estimate-list td>small{display:block;max-width:230px;margin-top:4px;color:#64748b}.csp-estimate-status{display:inline-flex;padding:5px 9px;border:0;border-radius:999px;background:#eef1f5;color:#526173;font-size:11px;font-weight:900}.csp-estimate-status.status-sent{background:#fce4ec;color:#125276}.csp-estimate-status.status-approved{background:#e9f9ef;color:#187743}.csp-estimate-status.status-declined{background:#feecec;color:#a52b2b}.csp-estimate-status-form{margin:0;min-width:112px}.csp-estimate-status-form select{width:100%;min-height:34px;cursor:pointer;padding-right:25px}.csp-estimate-row-actions{display:flex;align-items:center;gap:6px;white-space:nowrap}
@media(max-width:720px){.csp-estimate-pricing{grid-template-columns:1fr;padding:19px}.csp-estimate-pricing p{padding:16px 0 0;border-left:0;border-top:1px solid #ffffff2e}.csp-service-grid,.csp-addon-grid{grid-template-columns:1fr}.csp-service-guide{padding:18px}.csp-addon-picker>label{grid-template-columns:auto minmax(0,1fr)}.csp-addon-picker input[type=number]{grid-column:2}.csp-estimate-modal .csp-form-row{grid-template-columns:1fr}.csp-estimate-row-actions{flex-wrap:wrap}}

/* Contacto, mapas, recordatorios y fotografías 0.25 */
.csp-row-actions,.csp-contact-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.csp-action-icon{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:30px;height:30px;box-sizing:border-box;padding:0 7px;border:1px solid #d7e1eb;border-radius:8px;background:#f8fbfe;color:#125276!important;font-size:10px;font-weight:900;text-decoration:none!important}.csp-action-icon:hover{border-color:#8fc2ee;background:#fce4ec}.csp-action-icon span{font-size:10px}.csp-photo-button{white-space:nowrap}
.csp-reminders{margin:14px 18px 0;padding:15px 17px;border:1px solid #cfe2f5;border-radius:15px;background:linear-gradient(135deg,#fff7fa,#fff1f5);box-shadow:0 7px 25px #2135470a}.csp-reminder-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.csp-reminder-heading>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.csp-reminder-heading strong{color:var(--csp-navy)}.csp-reminder-heading small{color:#64748b}.csp-reminder-bell{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#176b9a;color:#fff;font-size:8px;box-shadow:0 0 0 5px #176b9a15}.csp-enable-alerts{padding:8px 11px;border:1px solid #b8d2e9;border-radius:9px;background:#fff;color:#125276;font-size:11px;font-weight:900;cursor:pointer;white-space:nowrap}.csp-reminder-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:12px}.csp-reminder-list article{min-width:0;padding:11px;border:1px solid #dbe8f3;border-radius:11px;background:#fff}.csp-reminder-list time,.csp-reminder-list strong,.csp-reminder-list>article>span{display:block}.csp-reminder-list time{color:#176b9a;font-size:10px;font-weight:900;text-transform:uppercase}.csp-reminder-list strong{overflow:hidden;margin:4px 0;color:#0b1f33;text-overflow:ellipsis;white-space:nowrap}.csp-reminder-list>article>span{overflow:hidden;margin-bottom:8px;color:#64748b;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.csp-photo-modal{max-width:700px;max-height:92vh}.csp-photo-modal-body{max-height:92vh;overflow-y:auto;box-sizing:border-box;padding:27px}.csp-photo-modal h3{margin:2px 45px 4px 0;color:var(--csp-navy);font-size:25px}.csp-photo-address{margin:0 0 18px;color:#64748b}.csp-photo-upload{display:grid;grid-template-columns:120px minmax(0,1fr) auto;align-items:end;gap:10px;padding:15px;border:1px solid var(--csp-line);border-radius:13px;background:#f8fafc}.csp-photo-upload label{color:#344054;font-size:12px;font-weight:900}.csp-photo-upload select{display:block;width:100%;height:44px;margin-top:5px;padding:8px;border:1px solid #cbd5e1;border-radius:9px;background:#fff}.csp-camera-field input{position:absolute;width:1px;height:1px;opacity:0}.csp-camera-field span{display:flex;align-items:center;justify-content:center;height:44px;margin-top:5px;padding:0 12px;border:1px dashed #8fb5d7;border-radius:9px;background:#fff;color:#125276;cursor:pointer}.csp-photo-upload .csp-primary{height:44px}.csp-photo-upload>small{grid-column:1/-1;color:#64748b}.csp-photo-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-top:16px}.csp-photo-gallery figure{overflow:hidden;margin:0;border:1px solid var(--csp-line);border-radius:12px;background:#fff}.csp-photo-gallery img{display:block;width:100%;height:145px;object-fit:cover}.csp-photo-gallery figcaption{display:flex;justify-content:space-between;gap:7px;padding:9px}.csp-photo-gallery figcaption strong{color:#125276;font-size:11px}.csp-photo-gallery figcaption span{color:#64748b;font-size:9px;text-align:right}.csp-no-photos{grid-column:1/-1;margin:0;padding:25px;border:1px dashed var(--csp-line);border-radius:11px;color:#64748b;text-align:center}.csp-team-service-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:10px}.csp-team-service-actions .csp-contact-actions{display:flex}.csp-team-service-actions .csp-action-icon{height:28px}.csp-team-service-actions .csp-photo-button{height:30px}
@media(max-width:900px){.csp-reminder-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.csp-reminders{margin:12px 10px 0;padding:14px}.csp-reminder-heading{align-items:flex-start}.csp-reminder-heading>div{display:grid;grid-template-columns:auto 1fr}.csp-reminder-heading small{grid-column:2}.csp-reminder-list{grid-template-columns:1fr 1fr}.csp-photo-modal-body{padding:21px}.csp-photo-upload{grid-template-columns:1fr}.csp-photo-upload .csp-primary{width:100%}.csp-photo-upload>small{grid-column:auto}.csp-photo-gallery{grid-template-columns:1fr 1fr}.csp-photo-gallery img{height:125px}.csp-row-actions{min-width:150px}}
@media(max-width:390px){.csp-reminder-list,.csp-photo-gallery{grid-template-columns:1fr}.csp-enable-alerts{font-size:10px;padding:7px}.csp-photo-gallery img{height:190px}}
@media print{.csp-reminders,.csp-contact-actions,.csp-photo-button{display:none!important}}

/* Marca exclusiva de Cleaning Solution Pro */
:root{--csp-blue:#176b9a}
.csp-login-brand{background:linear-gradient(145deg,#5c1238 0%,#880e4f 56%,#176b9a 100%)}
.csp-brand-logo span{background:linear-gradient(135deg,#fce4ec,#f48fb1);color:#6a0d3b}
.csp-eyebrow{color:#e9d5ff}
.csp-brand-copy p,.csp-brand-copy ul{color:#fce4ec}
.csp-brand-copy li span{color:#f5d0fe}
.csp-login-brand>small{color:#f8bbd0}
.csp-login-panel{background:linear-gradient(150deg,#fdfaff,#fce4ec)}
.csp-secure,.csp-nav a.active,.csp-edit,.csp-team-tabs button.active,.csp-team-principles span,.csp-checklist-heading>span,.csp-check-items b,.csp-service-guide>div span,.csp-estimate-status.status-sent{background:#fce4ec;color:#125276}
.csp-login-card #loginform .input:focus,.csp-profile-form input:focus{border-color:#176b9a;box-shadow:0 0 0 4px #176b9a20}
.csp-login-card .login-remember input{accent-color:#176b9a}
.csp-login-card #wp-submit{background:linear-gradient(135deg,#176b9a,#125276);box-shadow:0 9px 24px #176b9a38}
.csp-forgot,.csp-action-icon,.csp-addon-grid strong,.csp-photo-upload .csp-camera-field span,.csp-photo-gallery figcaption strong{color:#125276!important}
.csp-action-icon:hover{border-color:#c4b5fd;background:#f5f3ff}
.csp-role-card{background:linear-gradient(135deg,#176b9a,#125276)}
.csp-team-module{--csp-team-color:#176b9a}
.csp-reminders{border-color:#ddd6fe;background:linear-gradient(135deg,#faf5ff,#f5f3ff)}
.csp-reminder-bell{background:#176b9a;box-shadow:0 0 0 5px #176b9a20}
.csp-enable-alerts,.csp-reminder-list time{color:#125276}
.csp-team-badge{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;font-size:10px;font-weight:900;white-space:nowrap}
.csp-team-badge.team-1{background:#CC4125;color:#fff}
.csp-team-badge.team-2{background:#4A86E8;color:#fff}
.csp-team-badge.team-3{background:#6AA84F;color:#fff}
.csp-team-badge.team-4{background:#FF9900;color:#111827}.csp-team-badge.team-5{background:#A4C2F4;color:#111827}.csp-team-badge.team-6{background:#FF00FF;color:#fff}
.csp-team-badge.team-7{background:#FFD966;color:#111827}.csp-team-badge.team-8{background:#F8B2EB;color:#111827}.csp-team-badge.team-9{background:#EA4335;color:#fff}
.csp-team-badge.team-10{background:#f5f3ff;color:#7c3aed}.csp-team-badge.team-11{background:#fdf4ff;color:#a21caf}.csp-team-badge.team-12{background:#f1f5f9;color:#475569}
.csp-calendar-event.team-1{border-left-color:#CC4125}
.csp-calendar-event.team-2{border-left-color:#4A86E8}
.csp-calendar-event.team-3{border-left-color:#6AA84F}
.csp-calendar-event.team-4{border-left-color:#FF9900}.csp-calendar-event.team-5{border-left-color:#A4C2F4}.csp-calendar-event.team-6{border-left-color:#FF00FF}
.csp-calendar-event.team-7{border-left-color:#FFD966}.csp-calendar-event.team-8{border-left-color:#F8B2EB}.csp-calendar-event.team-9{border-left-color:#EA4335}
.csp-calendar-event.team-10{border-left-color:#7c3aed}.csp-calendar-event.team-11{border-left-color:#c026d3}.csp-calendar-event.team-12{border-left-color:#64748b}
.csp-team-filter{display:flex;justify-content:flex-end;margin:-4px 0 16px}.csp-team-filter label{display:flex;align-items:center;gap:9px;color:#526173;font-size:12px;font-weight:900}.csp-team-filter select{min-width:175px;height:42px;padding:7px 34px 7px 11px;border:1px solid #ddd6fe;border-radius:10px;background:#fff;color:#880e4f;font-weight:800}
@media(max-width:620px){.csp-team-filter{justify-content:stretch}.csp-team-filter label,.csp-team-filter select{width:100%}.csp-team-filter label{display:grid}}

/* Controles compactos 1.0.3: evita que el tema agrande botones en móvil. */
.csp-modal .csp-close{display:grid!important;place-items:center!important;width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;margin:0!important;padding:0!important;border:1px solid #e2e8f0!important;border-radius:50%!important;background:#fff!important;color:#64748b!important;font-family:Arial,sans-serif!important;font-size:25px!important;font-weight:400!important;line-height:1!important;box-shadow:0 5px 14px #0b1f3318!important;cursor:pointer}
.csp-modal .csp-primary{width:auto!important;min-width:0!important;min-height:40px!important;margin-top:4px;padding:10px 16px!important;border-radius:10px!important;font-size:14px!important;line-height:1.15!important;white-space:nowrap}
.csp-clock-card button{width:auto!important;min-width:88px!important;min-height:40px!important;padding:10px 15px!important;font-size:14px!important;line-height:1!important;white-space:nowrap!important}
@media(max-width:620px){
  .csp-modal .csp-form{padding:22px 20px}
  .csp-modal .csp-close{right:12px!important;top:12px!important;width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;font-size:23px!important}
  .csp-modal .csp-form h3{padding-right:42px;font-size:22px}
  .csp-modal .csp-primary{min-height:38px!important;padding:9px 15px!important;font-size:13px!important}
  .csp-clock-card button{min-width:82px!important;min-height:38px!important;padding:9px 13px!important;font-size:13px!important}
}

/* Paleta Cleaning Solution Pro: los paneles usan degradados azul. */
:root{--csp-navy:#6a0d3b;--csp-blue:#176b9a}
.csp-header{background:linear-gradient(135deg,#880e4f 0%,#176b9a 58%,#f06292 100%)}
.csp-profile-summary,.csp-monthly-total{background:linear-gradient(145deg,#6a0d3b 0%,#125276 58%,#ec407a 100%)}
.csp-team-hero,.csp-team-module .csp-team-hero,.csp-role-card,.csp-role-card.leader,.csp-team-module .csp-role-card{background:linear-gradient(135deg,#880e4f 0%,#176b9a 60%,#f06292 100%)}
.csp-estimate-pricing{background:linear-gradient(135deg,#6a0d3b 0%,#125276 52%,#f06292 100%)}
.csp-title button,.csp-primary,.csp-date-filter button{background:linear-gradient(135deg,#176b9a,#ec407a)!important;box-shadow:0 8px 18px #176b9a28}
.csp-secondary{border-color:#c4b5fd!important;color:#125276!important}
.csp-title button.csp-share-pdf{background:linear-gradient(135deg,#176b9a,#ec407a)!important;border-color:transparent!important;color:#fff!important}
@media(max-width:760px){
  .csp-title>.csp-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%}
  .csp-title>.csp-actions>.csp-report-actions{display:contents}
  .csp-title>.csp-actions>.csp-report-actions>.csp-secondary,
  .csp-title>.csp-actions>button{display:flex!important;align-items:center;justify-content:center;width:100%!important;min-width:0!important;height:44px!important;min-height:44px!important;margin:0!important;padding:0 6px!important;box-sizing:border-box!important;font-size:12px!important;line-height:1!important;white-space:nowrap}
}
.csp-status.confirmed,.csp-status-select.confirmed,.csp-calendar-event.confirmed{border-color:#176b9a;background:#fce4ec;color:#125276}
.csp-calendar-day.is-today{box-shadow:inset 0 0 0 2px #176b9a}.csp-calendar-day.is-today .csp-calendar-date strong{background:linear-gradient(135deg,#176b9a,#f06292)}
.csp-profile-avatar{background:linear-gradient(135deg,#e9d5ff,#f48fb1);color:#6a0d3b}

/* Diferencia visual por día en ambas agendas. */
.csp-schedule-date{min-width:70px;border-radius:9px;font-weight:900;text-align:center}
.csp-schedule-date span{display:block;font-size:11px;letter-spacing:.08em}.csp-schedule-date strong{display:block;margin-top:3px;font-size:14px;white-space:nowrap}
.csp-schedule-row.csp-new-day td{border-top-width:4px}
.csp-team-service.day-monday{border-left-color:#e91e63}.csp-team-service.day-monday .csp-team-service-date,.csp-schedule-row.day-monday .csp-schedule-date{background:#fce4ec;color:#125276}.csp-schedule-row.csp-new-day.day-monday td{border-top-color:#f8bbd0}
.csp-team-service.day-tuesday{border-left-color:#059669}.csp-team-service.day-tuesday .csp-team-service-date,.csp-schedule-row.day-tuesday .csp-schedule-date{background:#ecfdf5;color:#047857}.csp-schedule-row.csp-new-day.day-tuesday td{border-top-color:#a7f3d0}
.csp-team-service.day-wednesday{border-left-color:#176b9a}.csp-team-service.day-wednesday .csp-team-service-date,.csp-schedule-row.day-wednesday .csp-schedule-date{background:#fce4ec;color:#125276}.csp-schedule-row.csp-new-day.day-wednesday td{border-top-color:#f8bbd0}
.csp-team-service.day-thursday{border-left-color:#ea580c}.csp-team-service.day-thursday .csp-team-service-date,.csp-schedule-row.day-thursday .csp-schedule-date{background:#fff7ed;color:#c2410c}.csp-schedule-row.csp-new-day.day-thursday td{border-top-color:#fed7aa}
.csp-team-service.day-friday{border-left-color:#e11d48}.csp-team-service.day-friday .csp-team-service-date,.csp-schedule-row.day-friday .csp-schedule-date{background:#fff1f2;color:#be123c}.csp-schedule-row.csp-new-day.day-friday td{border-top-color:#fecdd3}
.csp-team-service.day-saturday{border-left-color:#0891b2}.csp-team-service.day-saturday .csp-team-service-date,.csp-schedule-row.day-saturday .csp-schedule-date{background:#ecfeff;color:#0e7490}.csp-schedule-row.csp-new-day.day-saturday td{border-top-color:#a5f3fc}
.csp-team-service.day-sunday{border-left-color:#dc2626}.csp-team-service.day-sunday .csp-team-service-date,.csp-schedule-row.day-sunday .csp-schedule-date{background:#fef2f2;color:#b91c1c}.csp-schedule-row.csp-new-day.day-sunday td{border-top-color:#fecaca}
.csp-payment-service-price[hidden]{display:none!important}
.csp-payment-service-price{padding:12px;border:1px solid #ddd6fe;border-radius:12px;background:#faf7ff}
.csp-payment-service-price small{display:block;margin-top:6px;color:#64748b;font-weight:500;line-height:1.35}
.csp-financial-filter{background:#fff;border:1px solid var(--csp-line);border-radius:18px;padding:20px;margin:0 0 18px;box-shadow:0 8px 24px #1018280a}.csp-financial-filter label{display:grid;gap:7px;color:#64748b;font-weight:800}.csp-financial-filter select,.csp-financial-filter input{width:100%;min-height:50px;border:1px solid #cbd5e1;border-radius:12px;background:#fff;padding:10px 14px;font:inherit}.csp-financial-filter button{width:100%;margin-top:14px}.csp-financial-period{color:#64748b;font-weight:700;margin:0 0 14px}.csp-financial-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:18px}.csp-financial-summary article{background:#fff;border:1px solid var(--csp-line);border-radius:18px;padding:21px;box-shadow:0 8px 24px #1018280a}.csp-financial-summary span,.csp-financial-summary strong{display:block}.csp-financial-summary span{color:#64748b;font-weight:700;margin-bottom:12px}.csp-financial-summary strong{font-size:25px;color:#3b1b73}.csp-financial-summary .collected strong,.csp-financial-summary .profit strong{color:#059669}.csp-financial-summary .expenses strong{color:#dc2626}.csp-financial-tables{display:grid;grid-template-columns:1fr 1.25fr;gap:18px}.csp-financial-tables .csp-card{overflow:auto}
@media(max-width:900px){.csp-financial-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.csp-financial-tables{grid-template-columns:1fr}}
@media(max-width:520px){.csp-financial-summary{grid-template-columns:1fr}.csp-financial-summary article{padding:22px}.csp-financial-summary strong{font-size:31px}.csp-financial-filter{padding:16px}}

/* Reportes 0.30.1: controles y tablas sin recortes en teléfonos. */
.csp-financial-filter,
.csp-financial-filter *{box-sizing:border-box}
.csp-financial-filter .csp-form-row{min-width:0}
.csp-financial-filter .csp-form-row label{min-width:0}
.csp-financial-filter select,
.csp-financial-filter input[type="date"]{display:block;min-width:0!important;max-width:100%!important;color:#172033;text-align:left}
.csp-financial-filter button{display:flex!important;align-items:center;justify-content:center;min-height:50px!important;padding:11px 16px!important;border:0!important;border-radius:12px!important;background:linear-gradient(135deg,#176b9a,#ec407a)!important;color:#fff!important;font-size:15px!important;font-weight:850!important;line-height:1.15!important;box-shadow:0 8px 18px #176b9a28!important;cursor:pointer}
.csp-financial-tables .csp-card{min-width:0;max-width:100%;overflow:hidden}
.csp-financial-tables table{width:100%;min-width:0;table-layout:fixed}
.csp-financial-tables th,.csp-financial-tables td{overflow-wrap:anywhere}
.csp-financial-tables section:first-child th:first-child,.csp-financial-tables section:first-child td:first-child{width:64%}
.csp-financial-tables section:first-child th:last-child,.csp-financial-tables section:first-child td:last-child{width:36%;text-align:right;white-space:nowrap}
@media(max-width:620px){
  .csp-financial-filter{width:100%;max-width:100%;overflow:hidden;padding:17px}
  .csp-financial-filter .csp-form-row{display:grid;grid-template-columns:minmax(0,1fr);gap:13px;width:100%}
  .csp-financial-filter select,.csp-financial-filter input[type="date"]{width:100%!important;height:50px!important;min-height:50px!important;margin:0!important;padding:10px 13px!important;border-radius:11px!important;background-color:#fff!important;font-size:16px!important;line-height:1.2!important}
  .csp-financial-filter button{width:100%!important;height:50px!important;margin-top:15px!important}
  .csp-financial-period{font-size:14px;line-height:1.45}
  .csp-financial-summary article{min-height:142px;display:flex;flex-direction:column;justify-content:center}
  .csp-financial-tables{width:100%;min-width:0}
  .csp-financial-tables .csp-card{width:100%;padding:0}
  .csp-financial-tables .csp-card>h3{padding:20px 16px 8px;font-size:20px;line-height:1.25}
  .csp-financial-tables table{font-size:12px}
  .csp-financial-tables th,.csp-financial-tables td{padding:12px 8px;font-size:11px;line-height:1.3}
  .csp-financial-tables th{font-size:9px;letter-spacing:0}
  .csp-financial-tables section:last-child th:first-child,.csp-financial-tables section:last-child td:first-child{width:19%}
  .csp-financial-tables section:last-child th:not(:first-child),.csp-financial-tables section:last-child td:not(:first-child){width:27%;text-align:right;white-space:nowrap}
}

/* Reportes 0.30.4: mismas proporciones visuales del Dashboard. */
@media(max-width:520px){
  .csp-financial-filter{padding:14px;border-radius:14px}
  .csp-financial-filter label{gap:5px;font-size:12px}
  .csp-financial-filter .csp-form-row{gap:10px}
  .csp-financial-filter select,.csp-financial-filter input[type="date"]{height:42px!important;min-height:42px!important;padding:8px 10px!important;border-radius:8px!important;font-size:14px!important}
  .csp-financial-filter button{height:42px!important;min-height:42px!important;margin-top:12px!important;padding:9px 14px!important;border-radius:9px!important;font-size:13px!important}
  .csp-financial-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:20px}
  .csp-financial-summary article{display:block;min-height:0;padding:20px;border-radius:16px}
  .csp-financial-summary article:last-child{grid-column:1/-1;min-height:0}
  .csp-financial-summary span{margin-bottom:9px;font-size:inherit;line-height:normal}
  .csp-financial-summary strong{font-size:25px;line-height:normal;white-space:normal}
}

/* Fechas de Reportes contenidas correctamente en Safari móvil. */
.csp-financial-date-box{display:block;width:100%;min-width:0;max-width:100%;overflow:hidden;border:1px solid #cbd5e1;border-radius:8px;background:#fff;box-sizing:border-box}
.csp-financial-date-box input[type="date"]{display:block;width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;box-sizing:border-box!important}
@media(max-width:620px){
  .csp-financial-date-box{width:100%;max-width:100%;height:42px}
  .csp-financial-date-box input[type="date"]{width:0!important;min-width:100%!important;max-width:100%!important;height:40px!important;min-height:40px!important;padding:8px 10px!important}
}

/* Página pública de pagos. Todo queda aislado para no cambiar el CRM privado. */
body.csp-payment-page{margin:0;background:#f7f4ff;color:#241b35;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}
.csp-payment-page *{box-sizing:border-box}
.csp-public-payment{min-height:100vh;background:linear-gradient(180deg,#f2ebff 0,#fbfaff 42%,#fff 100%)}
.csp-payment-hero{padding:22px 24px 70px;background:linear-gradient(135deg,#880e4f 0%,#176b9a 55%,#f06292 100%);color:#fff;border-radius:0 0 48px 48px;box-shadow:0 20px 50px #12527633}
.csp-payment-hero-inner{max-width:900px;margin:0 auto;text-align:center;position:relative}
.csp-payment-logo{display:block;width:116px;height:116px;margin:18px auto 16px;border-radius:50%;object-fit:cover;background:#fff;border:5px solid #ffffffcc;box-shadow:0 15px 35px #7a184866}
.csp-payment-kicker{margin:0 0 9px!important;color:#f8bbd0;font-size:12px;font-weight:850;letter-spacing:.18em}
.csp-payment-hero h1{margin:0;font-size:38px;line-height:1.12;letter-spacing:-.02em;color:#fff}
.csp-payment-subtitle{max-width:570px;margin:13px auto 0!important;color:#fce4ec;font-size:17px;line-height:1.55}
.csp-payment-main{width:min(900px,calc(100% - 32px));margin:-36px auto 0;position:relative;padding-bottom:46px}
.csp-payment-intro,.csp-payment-method,.csp-payment-note{background:#fff;border:1px solid #e8ddfa;border-radius:22px;box-shadow:0 12px 34px #6a0d3b12}
.csp-payment-intro{padding:28px;text-align:center;margin-bottom:18px}
.csp-payment-intro .csp-payment-kicker{color:#176b9a}
.csp-payment-intro h2,.csp-payment-method h2{margin:0 0 9px;color:#7a1848;font-size:25px;line-height:1.2}
.csp-payment-intro>p:last-child{max-width:610px;margin:0 auto;color:#6b6477;line-height:1.6}
.csp-payment-method{padding:28px}
.csp-payment-method p{margin:0 0 14px;color:#655d72;line-height:1.6}
.csp-payment-zelle{display:grid;grid-template-columns:minmax(0,1fr) 300px;align-items:center;gap:30px;margin-bottom:18px;border:2px solid #c4b5fd;background:linear-gradient(135deg,#fff 0%,#faf5ff 100%)}
.csp-payment-icon{display:flex;align-items:center;justify-content:center;width:48px;height:48px;margin-bottom:18px;border-radius:14px;background:linear-gradient(135deg,#125276,#f06292);color:#fff;font-size:23px;font-weight:900;box-shadow:0 8px 18px #176b9a35}
.csp-payment-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.csp-payment-label{display:inline-block;margin:0 0 8px!important;color:#176b9a!important;font-size:11px;font-weight:900;letter-spacing:.14em}
.csp-payment-phone{display:inline-flex;align-items:center;gap:8px;padding:11px 14px;border-radius:11px;background:#fce4ec;color:#125276;text-decoration:none;font-weight:850;font-size:17px}
.csp-payment-phone svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.csp-payment-qr-wrap{padding:13px;background:#fff;border:1px solid #ddd6fe;border-radius:18px;text-align:center}
.csp-payment-qr-wrap img{display:block;width:100%;height:auto;border-radius:11px}
.csp-payment-qr-wrap strong{display:block;margin:9px 0 2px;color:#125276;font-size:13px}
.csp-payment-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.csp-payment-grid .csp-payment-method{display:flex;flex-direction:column;align-items:flex-start}
.csp-payment-grid .csp-payment-method p:last-of-type{margin-bottom:0}
.csp-payment-button{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;margin-top:auto;padding:12px 18px;border-radius:12px;background:linear-gradient(135deg,#125276,#ec407a);color:#fff!important;text-decoration:none;font-weight:850;box-shadow:0 9px 20px #176b9a32}
.csp-payment-payee{display:block;margin:-4px 0 13px;padding:10px 12px;border-radius:10px;background:#f5f3ff;color:#125276}
.csp-payment-note{display:flex;align-items:flex-start;gap:14px;margin-top:18px;padding:20px 22px;background:#f5f3ff}
.csp-payment-note>svg{flex:0 0 30px;width:30px;height:30px;fill:none;stroke:#176b9a;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.csp-payment-note strong{color:#3b1b73}.csp-payment-note p{margin:4px 0 0;color:#655d72;line-height:1.5}.csp-payment-note a{color:#125276;font-weight:800}
.csp-payment-footer{display:flex;align-items:center;justify-content:center;gap:14px;padding:26px 20px;background:#7a1848;color:#fce7f3;text-align:left}
.csp-payment-footer img{width:50px;height:50px;border-radius:50%;object-fit:cover}.csp-payment-footer p{margin:0;line-height:1.5;font-size:13px}
@media(max-width:720px){
  .csp-payment-hero{padding:20px 18px 58px;border-radius:0 0 34px 34px}.csp-payment-logo{width:96px;height:96px;margin:5px auto 14px}.csp-payment-hero h1{font-size:30px}.csp-payment-subtitle{font-size:15px}.csp-payment-main{width:min(100% - 24px,560px);margin-top:-28px}.csp-payment-intro,.csp-payment-method{padding:21px;border-radius:18px}.csp-payment-zelle{grid-template-columns:1fr;gap:18px}.csp-payment-qr-wrap{width:min(100%,290px);margin:0 auto}.csp-payment-grid{grid-template-columns:1fr}.csp-payment-grid .csp-payment-method{min-height:0}.csp-payment-footer{flex-wrap:wrap}
}
.csp-billing-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:0 0 28px}.csp-billing-metrics article{background:#fff;border:1px solid #dce5ef;border-radius:22px;padding:24px;box-shadow:0 12px 30px rgba(15,23,42,.05)}.csp-billing-metrics span{display:block;color:#64748b;font-weight:700;margin-bottom:10px}.csp-billing-metrics strong{display:block;color:#125276;font-size:clamp(25px,4vw,38px);line-height:1.1}.csp-billing-list .csp-card-heading{align-items:center;gap:18px;margin-bottom:16px}.csp-billing-search{width:min(100%,330px);border:1px solid #cbd5e1;border-radius:14px;padding:12px 15px;font:inherit;background:#f8fafc}.csp-billing-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.csp-billing-actions .csp-secondary{min-height:38px;padding:8px 12px;white-space:nowrap}.csp-billing-list td small{display:block;color:#64748b;margin-top:5px}.csp-invoice-status{border:0;border-radius:999px;padding:8px 10px;font-weight:800;background:#fce4ec;color:#125276}.csp-invoice-status.status-paid{background:#dcfce7;color:#166534}.csp-invoice-status.status-overdue{background:#ffedd5;color:#c2410c}.csp-invoice-status.status-cancelled{background:#fee2e2;color:#b91c1c}.csp-invoice-status.status-sent{background:#fce4ec;color:#125276}.csp-billing-modal{width:min(760px,calc(100% - 24px))}
@media(max-width:760px){.csp-billing-metrics{grid-template-columns:1fr 1fr;gap:12px}.csp-billing-metrics article{padding:18px;border-radius:18px}.csp-billing-metrics strong{font-size:25px}.csp-billing-metrics article:last-child{grid-column:1/-1}.csp-billing-list .csp-card-heading{align-items:stretch;flex-direction:column}.csp-billing-search{width:100%}.csp-billing-actions{min-width:230px}.csp-billing-modal .csp-form-row{grid-template-columns:1fr}}
.csp-document-actions{display:grid!important;grid-template-columns:82px 82px;gap:8px!important;min-width:172px!important;align-items:center!important}.csp-document-actions .csp-secondary{display:flex!important;align-items:center!important;justify-content:center!important;width:82px!important;min-width:82px!important;max-width:82px!important;height:38px!important;min-height:38px!important;max-height:38px!important;block-size:38px!important;min-block-size:38px!important;max-block-size:38px!important;margin:0!important;padding:0 8px!important;box-sizing:border-box!important;border-radius:9px!important;font-size:12px!important;line-height:1!important;overflow:hidden!important;-webkit-appearance:none!important;appearance:none!important}.csp-document-actions .csp-delete{display:flex;align-items:center;height:38px;margin:0;padding:0 8px;font-size:12px;white-space:nowrap}
.csp-photo-limit{display:flex;flex-direction:column;gap:4px;margin-bottom:16px;padding:14px 16px;border:1px solid #ddd6fe;border-radius:12px;background:#faf7ff;color:#880e4f}.csp-photo-limit strong{font-size:13px}.csp-photo-limit span{color:#64748b;font-size:12px;line-height:1.45}

/* Reporte por equipos y captura manual de horas. */
.csp-team-report{margin-top:24px}.csp-team-report-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:0 0 14px}.csp-team-report-heading h3{margin:2px 0 0;font-size:23px;color:#172133}.csp-team-report-heading .csp-eyebrow{margin:0;color:#125276}.csp-team-report-heading small{max-width:570px;color:#64748b;font-weight:750;line-height:1.5;text-align:right}.csp-team-report>.csp-card{margin-bottom:18px}.csp-team-report-table{min-width:1120px!important}.csp-team-report-table td,.csp-team-report-table th{white-space:nowrap}.csp-team-profit{color:#18864b;font-weight:900}.csp-team-report-total td{background:#fff0f6;color:#880e4f;font-weight:900;border-top:2px solid #e7b3cb}.csp-employee-hours-report>h3{padding:20px 20px 4px}.csp-manual-time-form{display:block;margin:0 0 18px;padding:22px}.csp-manual-time-form>label{display:block;margin:13px 0;color:#344054;font-size:13px;font-weight:800}.csp-manual-time-form input,.csp-manual-time-form select,.csp-manual-time-form textarea{display:block;width:100%;box-sizing:border-box;margin-top:6px;padding:10px;border:1px solid #cbd5e1;border-radius:9px;background:#fff}.csp-manual-time-form textarea{min-height:65px}.csp-manual-time-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.csp-manual-time-grid label{color:#344054;font-size:13px;font-weight:800}.csp-manual-time-form .csp-primary{margin-top:5px}.csp-manual-time-form>.csp-team-hours-heading{margin-bottom:10px}
.csp-team-complete-form{display:inline-flex;margin:0}.csp-team-complete-form button{border:0;border-radius:999px;background:#dcfce7;color:#166534;padding:8px 12px;font-size:11px;font-weight:900;text-transform:uppercase;white-space:nowrap;cursor:pointer}.csp-team-complete-form button:hover{background:#bbf7d0}.csp-team-service-info>div:first-child{flex-wrap:wrap;gap:8px}
.csp-assigned-team{display:inline-flex;align-items:center;gap:8px;width:max-content;margin-top:12px;padding:8px 11px;border:1px solid #ffffff45;border-radius:999px;background:#ffffff18;color:#fff}.csp-assigned-team span{font-size:11px;font-weight:750;text-transform:uppercase;letter-spacing:.06em}.csp-assigned-team strong{font-size:13px;color:#fff}
.csp-hours-filter{display:grid;grid-template-columns:minmax(150px,1fr) minmax(170px,1fr) auto;align-items:end;gap:12px;margin:0 0 18px;padding:18px}.csp-hours-filter label{color:#344054;font-size:13px;font-weight:850}.csp-hours-filter select,.csp-hours-filter input{display:block;width:100%;height:44px;box-sizing:border-box;margin-top:6px;padding:8px 11px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;font-size:15px}.csp-hours-filter button{height:44px;border:0;border-radius:9px;background:#176b9a;color:#fff;padding:9px 18px;font-weight:900;cursor:pointer}.csp-hours-filter p{grid-column:1/-1;margin:0;padding:9px 12px;border-radius:9px;background:#fff0f6;color:#880e4f;font-size:13px;font-weight:850}
.csp-employee-week-filter{display:block}.csp-week-choice{display:grid;grid-template-columns:1fr 1fr;gap:10px}.csp-week-choice button{width:100%;height:52px;padding:8px 10px;background:#fff;color:#125276;border:2px solid #f3bbd2;font-size:16px;line-height:1.15;white-space:nowrap}.csp-week-choice button.active{background:#176b9a;color:#fff;border-color:#176b9a;box-shadow:0 8px 18px rgba(23,107,154,.2)}.csp-employee-week-filter p{margin-top:12px;text-align:center}
@media(max-width:620px){.csp-hours-filter{grid-template-columns:1fr 1fr}.csp-hours-filter button{grid-column:1/-1;width:100%}.csp-employee-week-filter{display:block}.csp-week-choice{grid-template-columns:1fr 1fr}.csp-week-choice button{grid-column:auto}}
@media(max-width:420px){.csp-hours-filter{grid-template-columns:1fr}.csp-hours-filter button,.csp-hours-filter p{grid-column:1}.csp-week-choice button{grid-column:auto;font-size:15px}}
@media(max-width:760px){.csp-team-report-heading{display:block}.csp-team-report-heading small{display:block;margin-top:8px;text-align:left}.csp-manual-time-grid{grid-template-columns:1fr 1fr}.csp-manual-time-form{padding:17px}}
@media(max-width:420px){.csp-manual-time-grid{grid-template-columns:1fr}}
