.accma-container h2{font-weight:700}
.accma-container .card{border-radius:14px;overflow:hidden}
.accma-container .card-header{border-top-left-radius:14px;border-top-right-radius:14px}
.accma-container .accordion-button{font-weight:600}
.accma-gradient{background: linear-gradient(90deg, #6f42c1, #0d6efd, #20c997)!important}
.accma-login-wrapper{
  /* Full-bleed section that spans the entire viewport */
  min-height: 100vh;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: linear-gradient(135deg,#0d6efd22,#20c99722);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 40px;
  padding-bottom: 40px;
}
.accma-login-card{max-width:480px;border-radius:16px}
.accma-login-brand{background:linear-gradient(90deg,#0d6efd,#20c997);color:#fff;border-bottom-left-radius:16px;border-bottom-right-radius:16px}

/* ADMIN FULL WIDTH FIXES */
.accma-monitor-wrap{max-width: none !important; width: 100% !important}
.accma-monitor-wrap .accma-hero{background:linear-gradient(90deg,#6f42c1,#0d6efd,#20c997)}
.accma-table td .badge{text-transform:capitalize}

/* v3.4.3 — nuclear option for full-width admin monitor */
body.wp-admin #wpcontent .wrap.accma-monitor-wrap,
body.wp-admin #wpbody-content .wrap.accma-monitor-wrap{
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 0 20px 0 !important;
}
body.wp-admin #wpcontent{max-width:100% !important;}
.accma-monitor-wrap .accma-hero,
.accma-monitor-wrap .card{display:block !important;width:100% !important;max-width:100% !important;}
.accma-monitor-wrap .card .table-responsive,
.accma-monitor-wrap .card .widefat{width:100% !important;}
.accma-monitor-wrap .metabox-holder, 
.accma-monitor-wrap .columns-2, 
.accma-monitor-wrap .columns-3{float:none !important;width:100% !important;}


/* v3.4.4 — full-line blocks + specific margins */
body.wp-admin #wpcontent .wrap.accma-monitor-wrap,
body.wp-admin #wpbody-content .wrap.accma-monitor-wrap{
  box-sizing: border-box;
  max-width: none !important;
  width: calc(100% - 10mm) !important; /* account for right margin */
  margin-top: 10mm !important;
  margin-right: 10mm !important;
  margin-left: 0 !important;
  padding: 0 !important;
}
/* Ensure hero + cards + table each take full line */
.accma-monitor-wrap .accma-hero,
.accma-monitor-wrap .card,
.accma-monitor-wrap .card .table-responsive,
.accma-monitor-wrap .card .widefat{
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
}


/* v3.4.5 — remove empty top space when shortcode is used on a page */
.accma-shortcode-wrap{margin-top:0 !important;}
.entry-content > .accma-shortcode-wrap:first-child{margin-top:0 !important;}
.entry-content > .accma-shortcode-wrap .accma-container{margin-top:0 !important;}
/* Common theme paddings to neutralize (safe, scoped) */
.site-main > .accma-shortcode-wrap:first-child,
#primary .accma-shortcode-wrap:first-child,
#content .accma-shortcode-wrap:first-child{
  padding-top:0 !important;
}
/* If you also hide the page title, keep the gap tight */
.entry-title:empty + .accma-shortcode-wrap{margin-top:0 !important;}


/* Modal tweaks */
#accmaModal .modal-header{ background: linear-gradient(90deg,#6f42c1,#0d6efd,#20c997); color:#fff }
#accmaModal .btn-primary{ background:#0d6efd; border-color:#0d6efd }


/* v3.4.7 — Flexible admin table columns */
.accma-monitor-wrap .accma-table{
  width: 100% !important;
  table-layout: fixed !important; /* distribute width across columns */
}
.accma-monitor-wrap .accma-table th,
.accma-monitor-wrap .accma-table td{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* ID */
.accma-monitor-wrap .accma-table th:nth-child(1),
.accma-monitor-wrap .accma-table td:nth-child(1){ width: 72px; }
/* User */
.accma-monitor-wrap .accma-table th:nth-child(2),
.accma-monitor-wrap .accma-table td:nth-child(2){ width: 140px; }
/* Type */
.accma-monitor-wrap .accma-table th:nth-child(3),
.accma-monitor-wrap .accma-table td:nth-child(3){ width: 90px; }
/* Client */
.accma-monitor-wrap .accma-table th:nth-child(4),
.accma-monitor-wrap .accma-table td:nth-child(4){ width: 16%; }
/* Service */
.accma-monitor-wrap .accma-table th:nth-child(5),
.accma-monitor-wrap .accma-table td:nth-child(5){ width: 12%; }
/* Detail — gets the most space */
.accma-monitor-wrap .accma-table th:nth-child(6),
.accma-monitor-wrap .accma-table td:nth-child(6){ width: 26%; }
/* Start */
.accma-monitor-wrap .accma-table th:nth-child(7),
.accma-monitor-wrap .accma-table td:nth-child(7){ width: 14%; }
/* End */
.accma-monitor-wrap .accma-table th:nth-child(8),
.accma-monitor-wrap .accma-table td:nth-child(8){ width: 14%; }
/* Device */
.accma-monitor-wrap .accma-table th:nth-child(9),
.accma-monitor-wrap .accma-table td:nth-child(9){ width: 8%; }


/* v3.4.8 — Front-end layout: 10mm side margins, 25mm top gap, flexible tables */
.accma-shortcode-wrap{
  box-sizing:border-box;
  width: calc(100% - 20mm) !important; /* 10mm left + 10mm right */
  margin: 25mm 10mm 0 10mm !important; /* top 25mm, sides 10mm */
  padding: 0 !important;
}
/* Make inner Bootstrap container full width inside our margins */
.accma-shortcode-wrap .container.accma-container{
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
/* Ensure all cards/accordions/tables expand fluidly */
.accma-container .card,
.accma-container .accordion,
.accma-container .table-responsive,
.accma-container table{
  width: 100% !important;
}
/* Keep controls nicely spaced on small screens */
@media (max-width: 991px){
  .accma-container .row.g-3 > [class*="col-"]{ margin-bottom: .75rem; }
}


/* v3.4.9 — Full-bleed shortcode section using viewport width with 10mm margins */
.accma-shortcode-wrap{
  /* break out of theme content width */
  max-width: none !important;
  width: calc(100vw - 20mm) !important;   /* viewport width minus side margins */
  margin-left: calc(50% - 50vw + 10mm) !important;
  margin-right: calc(50% - 50vw + 10mm) !important;
  margin-top: 25mm !important;
}
/* inner container should never clamp width */
.accma-shortcode-wrap .container.accma-container{
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
/* make cards/filters/entries fully fluid */
.accma-container .card,
.accma-container .accordion,
.accma-container .table-responsive,
.accma-container table{
  width: 100% !important;
}


/* v3.6.0 — Performance table tweaks */
.accma-monitor-wrap .accma-table{ table-layout: auto !important; width: 100% !important; }
.accma-monitor-wrap .accma-table th, .accma-monitor-wrap .accma-table td{ white-space: nowrap; }
.accma-monitor-wrap .accma-table th.has-text-right, .accma-monitor-wrap .accma-table td.has-text-right{ text-align: right; }


/* v3.7.0 – Performance page UX */
.accma-usercard{ transition: transform .08s ease, box-shadow .08s ease; border-radius: 12px; }
.accma-usercard:hover{ transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.07); }
.accma-perf-table{ width:100%!important; table-layout:auto!important; }
.accma-perf-table th,.accma-perf-table td{ white-space:nowrap; }
@media (max-width: 992px){
  .accma-perf-table th:nth-child(2),
  .accma-perf-table td:nth-child(2){ width: 30%; }
}

/* v3.7.1 – Admin footer behavior on our pages */
/* Default: hide footer to prevent mid‑page overlays */
body.toplevel_page_accma-monitor #wpfooter,
body.accma-monitor_page_accma-shift-times #wpfooter,
body.accma-monitor_page_accma-master-data #wpfooter{
  display: none !important;
}
/* Performance page: make footer sticky at the bottom instead of hiding it */
body.accma-monitor_page_accma-performance #wpfooter{
  display: block !important;
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: #f0f0f1;
  box-shadow: 0 -1px 2px rgba(0,0,0,.06);
}
/* Ensure content cannot run under sticky footer */
body.accma-monitor_page_accma-performance #wpcontent{
  padding-bottom: 56px !important;
}
/* Also guard against footer/notice blocks injected inside content wrappers */
.accma-monitor-wrap .wrap > .update-nag,
.accma-monitor-wrap .wrap > .notice,
.accma-monitor-wrap .wrap > .thankyou,
.accma-monitor-wrap .wrap > .about-text{
  display:none !important;
}

/* Monitor filter row fixes */
.accma-monitor-wrap .card .row.g-2.align-items-end > [class^=col-] { margin-bottom: .25rem; }
@media (min-width: 768px){.accma-monitor-wrap .card .row.g-2.align-items-end{align-items:end}.accma-monitor-wrap .card .row.g-2.align-items-end .col-md-2,.accma-monitor-wrap .card .row.g-2.align-items-end .col-md-3{display:flex;flex-direction:column}.accma-monitor-wrap .card .row.g-2.align-items-end .col-md-2 .form-control,.accma-monitor-wrap .card .row.g-2.align-items-end .col-md-3 .form-control,.accma-monitor-wrap .card .row.g-2.align-items-end .col-md-2 select,.accma-monitor-wrap .card .row.g-2.align-items-end .col-md-3 select{width:100%}}
/* Performance page filters: ensure controls fill width and button spacing */
body.accma-monitor_page_accma-performance .accma-performance-filters .form-select,
body.accma-monitor_page_accma-performance .accma-performance-filters .form-control{width:100%}
body.accma-monitor_page_accma-performance .accma-performance-filters .d-flex.gap-2{gap:8px}
