:root{
  --mcrmpd-accent:#b9b0a3;
  --mcrmpd-text:#f5f1ea;
  --mcrmpd-muted:#a8a29a;
  --mcrmpd-surface:#050505;
  --mcrmpd-border:rgba(255,255,255,.12);
  --mcrmpd-card:rgba(0,0,0,.74);
}
*{box-sizing:border-box}
.mcrmpd-app{position:relative;z-index:25;min-height:100vh;background:#111;color:var(--mcrmpd-text);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;overflow:hidden}
.mcrmpd-app::before{content:"";position:fixed;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.76),rgba(0,0,0,.86));background-size:cover;background-position:center;opacity:1;pointer-events:none;z-index:-2}
.mcrmpd-app::after{content:"";position:fixed;inset:0;background:radial-gradient(circle at 70% 18%,rgba(255,255,255,.05),transparent 26%),rgba(0,0,0,.25);pointer-events:none;z-index:-1}
.mcrmpd-topbar{height:66px;background:#050505;border-bottom:1px solid var(--mcrmpd-border);display:flex;align-items:center;justify-content:space-between;padding:0 18px;position:sticky;top:0;z-index:50}
.mcrmpd-breadcrumb{display:flex;align-items:center;gap:14px;font-size:14px;color:#d8d1c8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mcrmpd-breadcrumb a{color:#d8d1c8;text-decoration:none}.mcrmpd-breadcrumb a:hover{color:#fff}.mcrmpd-breadcrumb strong{color:#fff}.mcrmpd-status-wrap{display:flex;gap:14px;align-items:center}.mcrmpd-avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--mcrmpd-accent);color:#111;font-weight:900}.mcrmpd-status-form{height:40px;display:flex;align-items:center;gap:8px;border:1px solid var(--mcrmpd-border);border-radius:8px;padding:0 10px;background:rgba(0,0,0,.45)}.mcrmpd-status-form select{background:#050505;color:#fff;border:0;outline:0;font-weight:700}.mcrmpd-metrics-strip{height:39px;border-bottom:1px solid var(--mcrmpd-border);background:#050505;display:flex;gap:20px;align-items:center;padding:0 22px;color:#d8d1c8;font-size:13px}.mcrmpd-metrics-strip span{display:flex;align-items:center;gap:8px}.mcrmpd-metrics-strip i{color:#a78bfa}
.mcrmpd-layout{display:grid;grid-template-columns:286px 1fr;min-height:calc(100vh - 105px)}.mcrmpd-project-nav{background:#050505;border-right:1px solid var(--mcrmpd-border);padding:24px 14px;position:sticky;top:105px;height:calc(100vh - 105px);overflow:auto}.mcrmpd-logo{display:block;max-width:178px;max-height:95px;object-fit:contain;margin:0 auto 28px}.mcrmpd-back{display:flex;align-items:center;gap:8px;padding:14px 10px;color:#cfc8be;text-decoration:none;border-bottom:1px solid var(--mcrmpd-border);margin:0 -14px 12px}.mcrmpd-back:hover{color:#fff}.mcrmpd-nav-list{display:flex;flex-direction:column;gap:5px}.mcrmpd-nav-list a{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:8px;color:#d7d2ca;text-decoration:none;font-weight:800;font-size:14px}.mcrmpd-nav-list a:hover{background:rgba(255,255,255,.06);color:#fff}.mcrmpd-nav-list a.is-active{background:var(--mcrmpd-accent);color:#111}.mcrmpd-nav-list .dashicons{font-size:20px;width:20px;height:20px}.mcrmpd-content{padding:32px clamp(22px,6vw,90px) 120px;max-width:1360px;width:100%}.mcrmpd-page-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:26px}.mcrmpd-page-head h1{font-size:32px;line-height:1.1;margin:0 0 6px;color:#cfc8be;font-weight:900}.mcrmpd-page-head p{margin:0;color:#8f8a84}.mcrmpd-page-actions,.mcrmpd-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.mcrmpd-inline-form{display:inline}.mcrmpd-icon-btn{display:inline-grid;place-items:center;width:43px;height:43px;border-radius:10px;border:1px solid var(--mcrmpd-border);background:rgba(0,0,0,.42);color:#ddd;text-decoration:none;cursor:pointer}.mcrmpd-icon-btn:hover{border-color:var(--mcrmpd-accent);color:#fff}.mcrmpd-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--mcrmpd-border);border-radius:8px;background:rgba(255,255,255,.05);color:#fff;font-weight:900;padding:11px 16px;line-height:1;cursor:pointer;text-decoration:none}.mcrmpd-btn:hover{border-color:var(--mcrmpd-accent);background:rgba(255,255,255,.08)}.mcrmpd-btn-primary{background:var(--mcrmpd-accent);color:#111;border-color:var(--mcrmpd-accent)}.mcrmpd-btn-ghost{background:rgba(0,0,0,.45)}.mcrmpd-danger{border-color:rgba(255,77,77,.35);color:#ff8080}.mcrmpd-danger:hover{background:rgba(255,77,77,.08);border-color:#ff7070}.mcrmpd-notice{border:1px solid rgba(59,222,128,.35);background:rgba(59,222,128,.1);color:#bfffd3;border-radius:10px;padding:12px 14px;margin-bottom:18px;font-weight:800}.mcrmpd-summary-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin-bottom:20px}.mcrmpd-summary-cards.is-compact{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:0}.mcrmpd-metric-card{background:var(--mcrmpd-card);border:1px solid var(--mcrmpd-border);border-radius:12px;padding:22px;min-height:132px;display:flex;flex-direction:column;gap:8px;box-shadow:0 16px 36px rgba(0,0,0,.26)}.mcrmpd-metric-card>span{width:42px;height:42px;border-radius:10px;display:grid;place-items:center}.mcrmpd-metric-card small{font-weight:900;color:#fff}.mcrmpd-metric-card strong{font-size:25px;color:#fff;line-height:1.15}.mcrmpd-subtitle{text-transform:uppercase;font-size:14px;letter-spacing:.05em;color:#bdb6ad;margin:22px 0 12px}.mcrmpd-pvp-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:24px}.mcrmpd-small-box{background:rgba(0,0,0,.72);border:1px solid var(--mcrmpd-border);border-radius:10px;padding:16px 18px}.mcrmpd-small-box small{display:block;color:#9d978f;margin-bottom:7px;font-weight:800}.mcrmpd-small-box strong{font-size:22px;color:#fff}.mcrmpd-panel{background:var(--mcrmpd-card);border:1px solid var(--mcrmpd-border);border-radius:14px;margin:18px 0;padding:0;overflow:hidden;box-shadow:0 16px 42px rgba(0,0,0,.24)}.mcrmpd-panel:hover{border-color:rgba(255,255,255,.19)}.mcrmpd-panel[style*="--panel-accent"]{border-color:color-mix(in srgb,var(--panel-accent) 55%,transparent)}.mcrmpd-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:22px 24px;border-bottom:1px solid var(--mcrmpd-border)}.mcrmpd-panel-head h2{margin:0 0 7px;color:#fff;font-size:20px}.mcrmpd-panel-head h2 .dashicons{margin-right:8px}.mcrmpd-panel-head p{margin:0;color:#8f8a84}.mcrmpd-summary-layout{display:grid;grid-template-columns:1fr 380px;gap:30px;padding:24px}.mcrmpd-cost-list{display:flex;flex-direction:column;gap:10px}.mcrmpd-cost-line{display:grid;grid-template-columns:1fr auto;align-items:center;gap:14px;color:#f7f4ef;text-decoration:none;border-bottom:1px dotted rgba(255,255,255,.17);padding:9px 0}.mcrmpd-cost-line strong{display:flex;gap:10px;align-items:center}.mcrmpd-cost-line i{width:12px;height:12px;border-radius:50%;display:inline-block}.mcrmpd-donut{width:300px;height:300px;border-radius:50%;margin:auto;position:relative;display:grid;place-items:center;box-shadow:inset 0 0 0 36px rgba(0,0,0,.92),0 0 0 1px rgba(255,255,255,.4)}.mcrmpd-donut span{text-align:center;color:#ccc;font-size:13px}.mcrmpd-donut strong{font-size:22px;color:#fff}.mcrmpd-grid{display:grid;gap:16px;padding:24px}.mcrmpd-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.mcrmpd-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.mcrmpd-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.mcrmpd-field{display:flex;flex-direction:column;gap:8px;color:#ddd;font-weight:800;font-size:14px}.mcrmpd-input-wrap{display:flex;align-items:center;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);border-radius:8px;overflow:hidden}.mcrmpd-input-wrap:focus-within{border-color:var(--mcrmpd-accent);box-shadow:0 0 0 2px rgba(185,176,163,.1)}.mcrmpd-input-wrap input{width:100%;height:48px;background:transparent;border:0;color:#fff;padding:0 14px;font-weight:900;outline:0}.mcrmpd-input-wrap em{font-style:normal;color:#8f8a84;padding:0 13px;white-space:nowrap}.mcrmpd-plants{padding:20px 24px;display:flex;flex-direction:column;gap:18px}.mcrmpd-repeat-card{border:1px solid var(--mcrmpd-border);border-radius:12px;background:rgba(0,0,0,.34);overflow:hidden}.mcrmpd-repeat-head{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid var(--mcrmpd-border)}.mcrmpd-repeat-head h3{margin:0;color:#fff}.mcrmpd-repeat-card .mcrmpd-grid{padding:18px}.mcrmpd-repeater{padding:18px 24px;display:flex;flex-direction:column;gap:14px}.mcrmpd-row{display:grid;grid-template-columns:minmax(210px,1.5fr) 170px 130px 200px 44px;gap:12px;align-items:end;border:1px solid rgba(255,255,255,.12);border-radius:10px;padding:14px;background:rgba(0,0,0,.24)}.mcrmpd-delete-row{width:40px;height:40px;border-radius:50%;border:1px solid rgba(255,80,80,.4);background:rgba(255,80,80,.1);color:#ff6b6b;display:grid;place-items:center;cursor:pointer;align-self:end}.mcrmpd-delete-row:hover{background:rgba(255,80,80,.18);border-color:#ff6b6b}.mcrmpd-total-line{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-top:1px solid color-mix(in srgb,var(--panel-accent,#fff) 50%,transparent);text-transform:uppercase;color:#cfc8be}.mcrmpd-total-line strong{font-size:22px;color:#fff}.mcrmpd-totals-row{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:18px;padding:20px 24px}.mcrmpd-totals-row div{display:flex;flex-direction:column;gap:6px}.mcrmpd-totals-row small{color:#bbb}.mcrmpd-totals-row strong{font-size:19px;color:#fff}.mcrmpd-price-categories{display:flex;flex-direction:column;gap:18px}.mcrmpd-price-title{display:grid;grid-template-columns:26px minmax(240px,1fr) minmax(240px,1fr);gap:14px;align-items:end;width:100%}.mcrmpd-price-title>.dashicons{align-self:center;color:#d6d0c8}.mcrmpd-price-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:22px 24px}.mcrmpd-price-item{display:grid;grid-template-columns:1.1fr .7fr .55fr 40px;gap:12px;align-items:end}.mcrmpd-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:14px;padding:22px 24px}.mcrmpd-photo{position:relative;margin:0;border-radius:10px;overflow:hidden;border:1px solid var(--mcrmpd-border);height:130px;background:#111}.mcrmpd-photo img{width:100%;height:100%;object-fit:cover;display:block}.mcrmpd-photo .mcrmpd-delete-row{position:absolute;right:8px;top:8px}.mcrmpd-help{padding:0 24px 22px;margin:0;color:#8f8a84}.mcrmpd-sticky-save{position:fixed;right:28px;bottom:24px;display:flex;gap:10px;z-index:60;background:rgba(0,0,0,.65);border:1px solid rgba(255,255,255,.14);backdrop-filter:blur(10px);padding:10px;border-radius:12px}.mcrmpd-picker{min-height:70vh;background:#080808;color:#fff;padding:40px}.mcrmpd-picker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px;margin-top:20px}.mcrmpd-picker-grid a{padding:20px;border:1px solid var(--mcrmpd-border);border-radius:12px;color:#fff;text-decoration:none;background:rgba(255,255,255,.04);display:flex;flex-direction:column;gap:8px}.mcrmpd-picker-grid span{color:#bbb}.mcrmpd-form h3{padding:0 24px;margin:20px 0 0;color:#fff}.mcrmpd-form .mcrmpd-panel>h3+.mcrmpd-grid{padding-top:12px}
@media (max-width:1180px){.mcrmpd-layout{grid-template-columns:236px 1fr}.mcrmpd-summary-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.mcrmpd-pvp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mcrmpd-summary-layout{grid-template-columns:1fr}.mcrmpd-price-grid{grid-template-columns:1fr}.mcrmpd-totals-row{grid-template-columns:repeat(3,minmax(0,1fr))}.mcrmpd-row{grid-template-columns:1fr 1fr}.mcrmpd-delete-row{align-self:center}.mcrmpd-grid.three,.mcrmpd-grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:780px){.mcrmpd-topbar{height:auto;min-height:66px;align-items:flex-start;padding:14px;gap:12px;flex-direction:column}.mcrmpd-metrics-strip{height:auto;flex-wrap:wrap;padding:12px 14px}.mcrmpd-layout{display:block}.mcrmpd-project-nav{position:relative;top:auto;height:auto;border-right:0;border-bottom:1px solid var(--mcrmpd-border)}.mcrmpd-logo{max-width:130px;margin-bottom:18px}.mcrmpd-content{padding:24px 14px 120px}.mcrmpd-summary-cards,.mcrmpd-pvp-grid,.mcrmpd-grid.two,.mcrmpd-grid.three,.mcrmpd-grid.four{grid-template-columns:1fr}.mcrmpd-panel-head,.mcrmpd-page-head{flex-direction:column}.mcrmpd-price-title,.mcrmpd-price-item,.mcrmpd-row{grid-template-columns:1fr}.mcrmpd-totals-row{grid-template-columns:1fr 1fr}.mcrmpd-sticky-save{left:12px;right:12px;bottom:12px}.mcrmpd-sticky-save .mcrmpd-btn{flex:1}.mcrmpd-breadcrumb{flex-wrap:wrap}.mcrmpd-donut{width:240px;height:240px}}


/* === Fix visual 1.0.1: evita que el dashboard se corte dentro de temas/constructores === */
html body .mcrmpd-app{
  width:100vw;
  max-width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  overflow-x:hidden;
}
html body .mcrmpd-topbar,
html body .mcrmpd-metrics-strip{
  width:100%;
  max-width:100vw;
}
html body .mcrmpd-layout{
  width:100%;
  max-width:100vw;
  min-width:0;
  grid-template-columns:minmax(250px,286px) minmax(0,1fr);
  overflow:hidden;
}
html body .mcrmpd-project-nav,
html body .mcrmpd-content,
html body .mcrmpd-panel,
html body .mcrmpd-repeat-card,
html body .mcrmpd-grid,
html body .mcrmpd-repeater,
html body .mcrmpd-row,
html body .mcrmpd-field,
html body .mcrmpd-input-wrap,
html body .mcrmpd-price-item{
  min-width:0;
  max-width:100%;
}
html body .mcrmpd-content{
  width:100%;
  max-width:none;
  padding-left:clamp(18px,4vw,76px);
  padding-right:clamp(18px,4vw,76px);
  overflow-x:hidden;
}
html body .mcrmpd-panel-head{
  flex-wrap:wrap;
}
html body .mcrmpd-actions{
  max-width:100%;
  justify-content:flex-end;
}
html body .mcrmpd-input-wrap input,
html body .mcrmpd-input-wrap select,
html body .mcrmpd-input-wrap textarea{
  min-width:0;
  max-width:100%;
}
html body .mcrmpd-row{
  grid-template-columns:minmax(130px,1.6fr) minmax(100px,.8fr) minmax(80px,.55fr) minmax(115px,1fr) 40px;
  gap:10px;
}
html body .mcrmpd-price-item{
  grid-template-columns:minmax(150px,1.1fr) minmax(105px,.7fr) minmax(80px,.55fr) 40px;
}
html body .mcrmpd-summary-layout{
  grid-template-columns:minmax(0,1fr) minmax(320px,420px);
}
html body .mcrmpd-donut{
  max-width:100%;
  aspect-ratio:1/1;
}
html body .mcrmpd-totals-row{
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
}
html body .mcrmpd-summary-cards,
html body .mcrmpd-summary-cards.is-compact{
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
}
html body .mcrmpd-pvp-grid{
  grid-template-columns:repeat(auto-fit,minmax(175px,1fr));
}
@media (max-width:1280px){
  html body .mcrmpd-layout{grid-template-columns:minmax(220px,260px) minmax(0,1fr)}
  html body .mcrmpd-content{padding-left:24px;padding-right:24px}
  html body .mcrmpd-summary-layout{grid-template-columns:1fr}
  html body .mcrmpd-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  html body .mcrmpd-price-item{grid-template-columns:repeat(2,minmax(0,1fr))}
  html body .mcrmpd-delete-row{align-self:center}
}
@media (max-width:980px){
  html body .mcrmpd-layout{grid-template-columns:minmax(200px,235px) minmax(0,1fr)}
  html body .mcrmpd-grid.two,
  html body .mcrmpd-grid.three,
  html body .mcrmpd-grid.four,
  html body .mcrmpd-row,
  html body .mcrmpd-price-item{grid-template-columns:1fr}
  html body .mcrmpd-panel-head{gap:12px}
}
@media (max-width:780px){
  html body .mcrmpd-app{width:100%;max-width:100%;margin-left:0;margin-right:0}
  html body .mcrmpd-layout{display:block;max-width:100%;overflow:visible}
  html body .mcrmpd-content{padding-left:14px;padding-right:14px;overflow-x:hidden}
  html body .mcrmpd-project-nav{position:relative;height:auto;top:auto}
  html body .mcrmpd-price-title{grid-template-columns:1fr}
}

/* === Fix visual 1.0.2: vista standalone limpia, sin encabezado del tema === */
html:has(body.mcrmpd-standalone-page){
  margin-top:0!important;
  background:#050505!important;
}
body.mcrmpd-standalone-page{
  margin:0!important;
  padding:0!important;
  background:#050505!important;
  overflow-x:hidden!important;
}
body.mcrmpd-standalone-page #wpadminbar,
body.mcrmpd-dashboard-active #wpadminbar{
  display:none!important;
}
body.mcrmpd-standalone-page .mcrmpd-app{
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  min-height:100vh!important;
  isolation:isolate;
}
body.mcrmpd-standalone-page .mcrmpd-topbar{
  height:64px;
  min-height:64px;
  background:rgba(0,0,0,.94);
  border-bottom:1px solid rgba(255,255,255,.10);
  box-shadow:0 10px 30px rgba(0,0,0,.28);
  backdrop-filter:blur(12px);
}
body.mcrmpd-standalone-page .mcrmpd-breadcrumb{
  gap:12px;
  font-weight:800;
}
body.mcrmpd-standalone-page .mcrmpd-breadcrumb a,
body.mcrmpd-standalone-page .mcrmpd-breadcrumb span{
  color:#aaa39a;
}
body.mcrmpd-standalone-page .mcrmpd-breadcrumb strong{
  color:#fff;
}
body.mcrmpd-standalone-page .mcrmpd-status-wrap{
  gap:12px;
}
body.mcrmpd-standalone-page .mcrmpd-status-select{
  min-width:150px;
  background:rgba(255,255,255,.035);
  border-color:rgba(255,255,255,.14);
  border-radius:9px;
}
body.mcrmpd-standalone-page .mcrmpd-avatar{
  width:38px;
  height:38px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:var(--mcrmpd-accent,#b9b0a3);
  color:#090909;
  font-weight:900;
}
body.mcrmpd-standalone-page .mcrmpd-metrics-strip{
  height:42px;
  background:#050505;
  border-bottom:1px solid rgba(255,255,255,.10);
  padding:0 22px;
}
body.mcrmpd-standalone-page .mcrmpd-layout{
  min-height:calc(100vh - 106px);
}
body.mcrmpd-standalone-page .mcrmpd-project-nav{
  top:106px;
  height:calc(100vh - 106px);
}
body.mcrmpd-standalone-page .mcrmpd-content{
  padding-top:44px;
}
@media (max-width:780px){
  body.mcrmpd-standalone-page .mcrmpd-topbar{
    height:auto;
    min-height:64px;
  }
  body.mcrmpd-standalone-page .mcrmpd-project-nav{
    top:auto;
    height:auto;
  }
}
body.mcrmpd-standalone-page .mcrmpd-status-form{
  min-width:150px;
  height:42px;
  background:rgba(255,255,255,.035);
  border-color:rgba(255,255,255,.14);
  border-radius:9px;
}
body.mcrmpd-standalone-page .mcrmpd-status-form select{
  width:100%;
  background:transparent;
}
