/* RWD Universal Landing Platform — Phase 2F Admin UX/UI Polish */
:root{
  --rwd-navy:#0b1730;
  --rwd-navy-2:#102346;
  --rwd-blue:#2563eb;
  --rwd-orange:#f97316;
  --rwd-bg:#f5f7fb;
  --rwd-card:#ffffff;
  --rwd-soft:#eef4ff;
  --rwd-line:#dde6f3;
  --rwd-text:#102033;
  --rwd-muted:#64748b;
  --rwd-radius:18px;
  --rwd-shadow:0 14px 40px rgba(15,23,42,.08);
  --rwd-shadow-soft:0 8px 24px rgba(15,23,42,.06);
}
body.rwd-admin-ui{background:radial-gradient(circle at top left,#eef5ff 0,#f7f9fd 38%,#f4f7fb 100%);color:var(--rwd-text)}
.rwd-admin-ui .top{background:linear-gradient(135deg,#071229,#102346 58%,#173b74);border-bottom:0;box-shadow:0 18px 45px rgba(15,23,42,.18)}
.rwd-admin-ui .top-inner{padding:24px 22px}
.rwd-admin-ui .brand h1{margin:0;color:#fff;letter-spacing:-.02em;font-size:26px}
.rwd-admin-ui .brand .muted{color:#bfdbfe;font-size:14px}
.rwd-admin-ui .logo{background:linear-gradient(135deg,#f97316,#fb923c);box-shadow:0 12px 28px rgba(249,115,22,.28)}
.rwd-admin-ui .top .btn{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.24);color:#fff;backdrop-filter:blur(8px)}
.rwd-admin-ui .top .btn:hover{background:rgba(255,255,255,.2)}
.rwd-admin-ui .wrap{margin-top:26px}
.rwd-admin-ui .tabs{background:#fff;border:1px solid var(--rwd-line);border-radius:20px;padding:8px;box-shadow:var(--rwd-shadow-soft);position:sticky;top:10px;z-index:10}
.rwd-admin-ui .tabs a{border:0;background:transparent;color:#475569;border-radius:14px;padding:11px 15px;transition:.16s ease;font-weight:800}
.rwd-admin-ui .tabs a:hover{background:#f1f5f9;color:var(--rwd-navy)}
.rwd-admin-ui .tabs a.active{background:linear-gradient(135deg,var(--rwd-navy),var(--rwd-blue));color:#fff;box-shadow:0 10px 20px rgba(37,99,235,.18)}
.rwd-admin-ui .card{border-color:rgba(221,230,243,.9);border-radius:var(--rwd-radius);box-shadow:var(--rwd-shadow-soft);padding:24px;background:rgba(255,255,255,.95)}
.rwd-admin-ui .card h2{margin-top:0;font-size:22px;letter-spacing:-.01em;color:var(--rwd-navy)}
.rwd-admin-ui .notice{border-radius:14px;box-shadow:var(--rwd-shadow-soft)}
.rwd-admin-ui .stat-grid{gap:16px}
.rwd-admin-ui .stat-card{border-radius:18px;border-color:var(--rwd-line);background:linear-gradient(180deg,#fff,#fbfdff);box-shadow:var(--rwd-shadow-soft);position:relative;overflow:hidden}
.rwd-admin-ui .stat-card:after{content:"";position:absolute;right:-28px;top:-28px;width:86px;height:86px;border-radius:999px;background:rgba(37,99,235,.08)}
.rwd-admin-ui .stat-card strong{font-size:34px;color:var(--rwd-navy)}
.rwd-admin-ui .stat-card span{color:var(--rwd-muted)}
.rwd-admin-ui table{overflow:hidden;border-radius:14px}
.rwd-admin-ui th{background:#f8fafc;color:#334155;font-size:13px;text-transform:none}
.rwd-admin-ui td,.rwd-admin-ui th{border-bottom-color:#edf2f7}
.rwd-admin-ui tr:hover td{background:#fbfdff}
.rwd-admin-ui input[type=text],.rwd-admin-ui input[type=url],.rwd-admin-ui input[type=date],.rwd-admin-ui input[type=time],.rwd-admin-ui input[type=number],.rwd-admin-ui select,.rwd-admin-ui textarea{border-radius:12px;border-color:#cfd9e8;background:#fff;box-shadow:0 1px 0 rgba(15,23,42,.02);transition:.15s ease}
.rwd-admin-ui input:focus,.rwd-admin-ui select:focus,.rwd-admin-ui textarea:focus{outline:3px solid rgba(37,99,235,.13);border-color:#60a5fa}
.rwd-admin-ui .btn{border-radius:12px;border-color:#d7e0ec;background:#fff;box-shadow:0 3px 10px rgba(15,23,42,.04);transition:.16s ease;align-items:center}
.rwd-admin-ui .btn:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(15,23,42,.08)}
.rwd-admin-ui .btn.primary{background:linear-gradient(135deg,#1d4ed8,#2563eb);border-color:#2563eb;color:#fff}
.rwd-admin-ui .btn.danger{background:#fff7f7}
.rwd-admin-ui .pill{border-radius:999px;padding:5px 10px;font-weight:800;letter-spacing:.01em}
.rwd-admin-ui .pill.green{background:#ecfdf5;color:#047857;border-color:#a7f3d0}
.rwd-admin-ui .pill.gray{background:#f8fafc;color:#475569;border-color:#dbe4ef}
.rwd-admin-ui .pill.red{background:#fff1f2;color:#be123c;border-color:#fecdd3}
.rwd-admin-ui .theme-toolbar{background:#f8fbff;border:1px solid var(--rwd-line);border-radius:18px;padding:16px;align-items:end}
.rwd-admin-ui .theme-toolbar label{font-weight:800;color:#334155;font-size:13px}
.rwd-admin-ui .theme-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.rwd-admin-ui .theme-card{border-radius:22px;border-color:var(--rwd-line);box-shadow:var(--rwd-shadow-soft);transition:.18s ease;overflow:hidden}
.rwd-admin-ui .theme-card:hover{transform:translateY(-3px);box-shadow:var(--rwd-shadow)}
.rwd-admin-ui .theme-card img,.rwd-admin-ui .theme-thumb-fallback{aspect-ratio:16/10;background:linear-gradient(135deg,#0b1730,#1d4ed8 58%,#f97316);font-size:18px;padding:18px;text-align:center}
.rwd-admin-ui .theme-card-body{padding:18px}
.rwd-admin-ui .theme-card h3{font-size:19px;color:var(--rwd-navy);letter-spacing:-.01em}
.rwd-admin-ui .theme-meta-row{gap:7px;margin:10px 0}
.rwd-admin-ui .theme-health{margin-top:10px}
.rwd-admin-ui .theme-path{background:#f8fafc;border-color:#e2e8f0;color:#64748b}
.rwd-admin-ui .theme-card-actions .btn{font-size:13px;padding:8px 11px}
.rwd-admin-ui .theme-edit{border-top-color:#e8eef7}
.rwd-admin-ui .theme-edit summary{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:10px 12px;list-style:none}
.rwd-admin-ui .theme-edit summary::-webkit-details-marker{display:none}
.rwd-admin-ui .theme-edit[open] summary{background:#eef6ff;border-color:#bfdbfe}
.rwd-admin-ui .theme-standard-list{gap:14px}
.rwd-admin-ui .theme-standard-item{border-radius:16px;background:linear-gradient(180deg,#fff,#f8fbff);box-shadow:0 6px 16px rgba(15,23,42,.04)}
.rwd-admin-ui .theme-empty{border-radius:18px;background:#fbfdff}
.rwd-admin-ui .thumb-preview{border-radius:14px;box-shadow:0 8px 22px rgba(15,23,42,.08)}
.rwd-admin-ui .footer{color:#94a3b8}
@media(max-width:1100px){.rwd-admin-ui .theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.rwd-admin-ui .tabs{position:static}.rwd-admin-ui .theme-grid{grid-template-columns:1fr}.rwd-admin-ui .top-inner{padding:18px}.rwd-admin-ui .brand h1{font-size:22px}}

/* Phase 2F.1 — Button/Form readability refinement */
.rwd-admin-ui .btn,
.rwd-admin-ui button.btn,
.rwd-admin-ui a.btn{
  display:inline-flex;
  justify-content:center;
  gap:7px;
  min-height:42px;
  padding:10px 16px;
  font-size:14px;
  font-weight:850;
  line-height:1.15;
  white-space:nowrap;
  cursor:pointer;
  text-decoration:none;
  user-select:none;
}
.rwd-admin-ui .btn.primary{
  min-height:44px;
  padding:11px 18px;
  box-shadow:0 10px 22px rgba(37,99,235,.18);
}
.rwd-admin-ui .btn.danger{
  color:#b91c1c;
  border-color:#fecaca;
  background:linear-gradient(180deg,#fffafa,#fff5f5);
}
.rwd-admin-ui .btn.danger:hover{
  background:#fee2e2;
  border-color:#fca5a5;
}
.rwd-admin-ui .actions,
.rwd-admin-ui .theme-card-actions,
.rwd-admin-ui .form-actions,
.rwd-admin-ui .quick-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
}
.rwd-admin-ui .actions form{display:inline-flex;margin:0}
.rwd-admin-ui td.actions{
  min-width:190px;
  vertical-align:top;
}
.rwd-admin-ui td.actions .btn{
  min-width:88px;
}
.rwd-admin-ui td.actions .btn.danger{
  min-width:88px;
}
.rwd-admin-ui .quick-row{margin-top:10px}
.rwd-admin-ui .quick-row .btn{
  min-width:76px;
  background:#f8fbff;
}
.rwd-admin-ui .form-grid{
  row-gap:14px;
  column-gap:20px;
}
.rwd-admin-ui .form-grid > label{
  padding-top:10px;
  color:#172033;
  font-weight:900;
}
.rwd-admin-ui .checkrow{
  display:flex;
  flex-wrap:wrap;
  gap:12px 18px;
  align-items:center;
  min-height:42px;
}
.rwd-admin-ui .checkrow label{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border:1px solid #dbe4ef;
  border-radius:999px;
  background:#fff;
  font-weight:800;
}
.rwd-admin-ui input[type=checkbox]{
  width:17px;
  height:17px;
  accent-color:#2563eb;
}
.rwd-admin-ui input[type=file]{
  width:100%;
  max-width:520px;
  padding:10px;
  border:1px dashed #c8d5e6;
  border-radius:14px;
  background:#f8fbff;
}
.rwd-admin-ui .date-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
}
.rwd-admin-ui .date-row input[type=date],
.rwd-admin-ui .date-row input[type=time]{
  max-width:210px;
}
.rwd-admin-ui table td,
.rwd-admin-ui table th{
  padding:14px 16px;
  vertical-align:top;
}
.rwd-admin-ui table th{
  font-size:14px;
  font-weight:900;
}
.rwd-admin-ui .theme-toolbar .field .btn{
  width:100%;
}
.rwd-admin-ui .theme-card-actions .btn{
  min-height:40px;
  font-size:14px;
  padding:9px 13px;
}
.rwd-admin-ui .pill{
  display:inline-flex;
  align-items:center;
  min-height:26px;
}
@media(max-width:820px){
  .rwd-admin-ui .form-grid{grid-template-columns:1fr!important}
  .rwd-admin-ui .form-grid > label{padding-top:0}
  .rwd-admin-ui .btn,.rwd-admin-ui a.btn,.rwd-admin-ui button.btn{width:100%}
  .rwd-admin-ui .actions,.rwd-admin-ui .form-actions,.rwd-admin-ui .quick-row{align-items:stretch}
}

/* Phase 2F.2 — Form/input usability polish */
.rwd-admin-ui .card{
  padding:28px;
}
.rwd-admin-ui .card h2{
  margin-bottom:18px;
}
.rwd-admin-ui .form-grid{
  grid-template-columns:240px minmax(0,1fr);
  gap:18px 22px;
  align-items:start;
}
.rwd-admin-ui .form-grid > label{
  padding-top:14px;
  font-size:15px;
  color:#172033;
}
.rwd-admin-ui .form-grid > div:not(.date-row):not(.checkrow):not(.form-actions){
  display:flex;
  flex-direction:column;
  gap:7px;
  max-width:760px;
}
.rwd-admin-ui .form-grid .muted{
  display:block;
  margin-top:2px;
  line-height:1.45;
  font-size:13px;
  color:#64748b;
}
.rwd-admin-ui input[type=text],
.rwd-admin-ui input[type=url],
.rwd-admin-ui input[type=date],
.rwd-admin-ui input[type=time],
.rwd-admin-ui input[type=number],
.rwd-admin-ui select,
.rwd-admin-ui textarea{
  min-height:48px;
  padding:12px 15px;
  border-radius:14px;
  border:1px solid #cbd8ea;
  font-size:15px;
  color:#0f172a;
  background:#fff;
  box-shadow:inset 0 1px 0 rgba(15,23,42,.03),0 1px 2px rgba(15,23,42,.02);
}
.rwd-admin-ui select{
  cursor:pointer;
}
.rwd-admin-ui input::placeholder,
.rwd-admin-ui textarea::placeholder{
  color:#94a3b8;
}
.rwd-admin-ui input:focus,
.rwd-admin-ui select:focus,
.rwd-admin-ui textarea:focus{
  outline:none;
  border-color:#2563eb;
  box-shadow:0 0 0 4px rgba(37,99,235,.12), inset 0 1px 0 rgba(15,23,42,.03);
}
.rwd-admin-ui input[readonly],
.rwd-admin-ui input:disabled,
.rwd-admin-ui select:disabled,
.rwd-admin-ui textarea:disabled{
  background:#f8fafc;
  color:#64748b;
  cursor:not-allowed;
}
.rwd-admin-ui .date-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px;
}
.rwd-admin-ui .date-row input[type=date],
.rwd-admin-ui .date-row input[type=time]{
  width:190px;
  max-width:190px;
}
.rwd-admin-ui .quick-row{
  gap:10px;
  margin-top:12px;
}
.rwd-admin-ui .quick-row .btn{
  min-width:92px;
  border-radius:14px;
  background:#f8fbff;
  color:#0f2b55;
}
.rwd-admin-ui .checkrow{
  gap:10px;
  min-height:48px;
}
.rwd-admin-ui .checkrow label{
  min-height:46px;
  padding:10px 14px;
  border-radius:16px;
  background:#f8fbff;
  border-color:#d5e0ee;
  color:#172033;
  cursor:pointer;
  transition:.15s ease;
}
.rwd-admin-ui .checkrow label:hover{
  border-color:#93c5fd;
  background:#eff6ff;
}
.rwd-admin-ui input[type=checkbox]{
  width:20px;
  height:20px;
  flex:0 0 20px;
  cursor:pointer;
}
.rwd-admin-ui .form-actions{
  margin-top:4px;
  display:flex;
  gap:12px;
}
.rwd-admin-ui .form-actions .btn.primary,
.rwd-admin-ui button.btn.primary{
  min-width:150px;
}
.rwd-admin-ui .btn,
.rwd-admin-ui button.btn,
.rwd-admin-ui a.btn{
  border-radius:14px;
  min-height:44px;
  padding:11px 17px;
  font-size:15px;
}
.rwd-admin-ui .btn:hover{
  transform:none;
}
.rwd-admin-ui table .btn,
.rwd-admin-ui .theme-card-actions .btn{
  min-height:40px;
  font-size:14px;
  padding:9px 13px;
}
.rwd-admin-ui .actions{
  gap:9px;
}
.rwd-admin-ui .pill{
  font-size:13px;
  padding:6px 10px;
}
.rwd-admin-ui .search-box,
.rwd-admin-ui .theme-toolbar{
  gap:12px;
}
.rwd-admin-ui .search-box input,
.rwd-admin-ui .theme-toolbar input,
.rwd-admin-ui .theme-toolbar select{
  min-height:46px;
}
@media(max-width:900px){
  .rwd-admin-ui .form-grid{grid-template-columns:1fr!important;gap:10px}
  .rwd-admin-ui .form-grid > label{padding-top:8px}
  .rwd-admin-ui .date-row input[type=date],
  .rwd-admin-ui .date-row input[type=time]{width:100%;max-width:none}
  .rwd-admin-ui .form-grid > div:not(.date-row):not(.checkrow):not(.form-actions){max-width:none}
}

/* Phase 2G.1 — Enterprise Dashboard UX */
.rwd-admin-ui .dashboard-hero{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(320px,.85fr);
  gap:22px;
  align-items:center;
  background:linear-gradient(135deg,#ffffff 0%,#f8fbff 52%,#eef6ff 100%);
  overflow:hidden;
  position:relative;
}
.rwd-admin-ui .dashboard-hero:after{
  content:"";
  position:absolute;
  right:-80px;
  top:-80px;
  width:230px;
  height:230px;
  border-radius:999px;
  background:rgba(37,99,235,.08);
  pointer-events:none;
}
.rwd-admin-ui .dashboard-hero-copy,
.rwd-admin-ui .dashboard-quick-actions{
  position:relative;
  z-index:1;
}
.rwd-admin-ui .eyebrow{
  display:inline-flex;
  align-items:center;
  width:max-content;
  padding:7px 11px;
  margin-bottom:10px;
  border:1px solid #bfdbfe;
  border-radius:999px;
  background:#eff6ff;
  color:#1d4ed8;
  font-size:12px;
  font-weight:900;
  letter-spacing:.02em;
}
.rwd-admin-ui .dashboard-hero h2{
  margin:0 0 8px;
  font-size:30px;
  color:var(--rwd-navy);
  letter-spacing:-.03em;
}
.rwd-admin-ui .dashboard-hero p{
  max-width:760px;
  font-size:15px;
  line-height:1.7;
}
.rwd-admin-ui .dashboard-quick-actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  padding:14px;
  border:1px solid rgba(191,219,254,.8);
  border-radius:20px;
  background:rgba(255,255,255,.74);
  box-shadow:0 10px 28px rgba(15,23,42,.06);
}
.rwd-admin-ui .dashboard-quick-actions .btn{
  min-height:46px;
  width:100%;
}
.rwd-admin-ui .dashboard-stat-grid{
  margin:0 0 18px;
}
.rwd-admin-ui .enterprise-stat{
  min-height:132px;
}
.rwd-admin-ui .enterprise-stat span{
  display:block;
  margin-bottom:7px;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.03em;
}
.rwd-admin-ui .enterprise-stat small{
  display:block;
  color:#64748b;
  font-weight:700;
  line-height:1.45;
}
.rwd-admin-ui .dashboard-grid{
  display:grid;
  gap:18px;
}
.rwd-admin-ui .dashboard-grid-main{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.rwd-admin-ui .dashboard-grid-secondary{
  grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);
}
.rwd-admin-ui .dashboard-panel{
  min-height:100%;
}
.rwd-admin-ui .panel-title-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  margin-bottom:14px;
}
.rwd-admin-ui .panel-title-row h2{
  margin:0 0 5px;
}
.rwd-admin-ui .event-mini-list{
  display:grid;
  gap:10px;
}
.rwd-admin-ui .event-mini-card{
  display:grid;
  gap:5px;
  padding:13px 14px;
  border:1px solid #e2e8f0;
  border-radius:16px;
  background:linear-gradient(180deg,#fff,#fbfdff);
  color:inherit;
  transition:.16s ease;
}
.rwd-admin-ui .event-mini-card:hover{
  transform:translateY(-1px);
  border-color:#bfdbfe;
  box-shadow:0 10px 22px rgba(15,23,42,.07);
}
.rwd-admin-ui .event-mini-card strong{
  color:#0f172a;
  font-size:15px;
}
.rwd-admin-ui .empty-state{
  padding:22px;
  border:1px dashed #cbd5e1;
  border-radius:16px;
  background:#f8fafc;
  color:#64748b;
  text-align:center;
  font-weight:800;
}
.rwd-admin-ui .pill.blue-soft{
  background:#eff6ff;
  color:#1d4ed8;
  border-color:#bfdbfe;
}
.rwd-admin-ui .theme-stat-wrap{
  display:grid;
  grid-template-columns:150px minmax(0,1fr);
  gap:14px;
  align-items:center;
  margin:8px 0 16px;
}
.rwd-admin-ui .theme-stat-number{
  display:grid;
  place-items:center;
  min-height:124px;
  border:1px solid #dbeafe;
  border-radius:18px;
  background:linear-gradient(135deg,#eff6ff,#fff);
  text-align:center;
}
.rwd-admin-ui .theme-stat-number strong{
  display:block;
  font-size:40px;
  line-height:1;
  color:#0f2b55;
}
.rwd-admin-ui .theme-stat-number span{
  color:#64748b;
  font-weight:850;
}
.rwd-admin-ui .theme-stat-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.rwd-admin-ui .category-bars{
  display:grid;
  gap:10px;
}
.rwd-admin-ui .category-bar{
  position:relative;
  overflow:hidden;
  border:1px solid #e2e8f0;
  border-radius:14px;
  background:#f8fafc;
}
.rwd-admin-ui .category-bar div{
  position:relative;
  z-index:1;
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:11px 12px;
}
.rwd-admin-ui .category-bar span{
  color:#64748b;
  font-weight:800;
}
.rwd-admin-ui .category-bar i{
  position:absolute;
  inset:0 auto 0 0;
  display:block;
  background:linear-gradient(90deg,rgba(37,99,235,.12),rgba(249,115,22,.10));
}
.rwd-admin-ui .backup-status-card{
  display:grid;
  gap:8px;
  padding:18px;
  border:1px solid #dbeafe;
  border-radius:18px;
  background:linear-gradient(135deg,#f8fbff,#fff);
}
.rwd-admin-ui .backup-status-card strong{
  font-size:22px;
  color:#0f2b55;
}
.rwd-admin-ui .site-group-summary{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-top:14px;
}
.rwd-admin-ui .site-group-summary span{
  padding:12px;
  border:1px solid #e2e8f0;
  border-radius:14px;
  background:#fff;
  text-align:center;
  color:#64748b;
  font-weight:850;
}
.rwd-admin-ui .site-group-summary b{
  display:block;
  color:#0f2b55;
  font-size:22px;
}
.rwd-admin-ui .api-check-card code{
  display:block;
  max-width:100%;
  overflow:auto;
  padding:13px 14px;
  border:1px solid #e2e8f0;
  border-radius:14px;
  background:#0f172a;
  color:#dbeafe;
}
@media(max-width:1100px){
  .rwd-admin-ui .dashboard-hero,
  .rwd-admin-ui .dashboard-grid-main,
  .rwd-admin-ui .dashboard-grid-secondary{
    grid-template-columns:1fr;
  }
}
@media(max-width:720px){
  .rwd-admin-ui .dashboard-quick-actions,
  .rwd-admin-ui .theme-stat-wrap,
  .rwd-admin-ui .site-group-summary{
    grid-template-columns:1fr;
  }
  .rwd-admin-ui .panel-title-row{
    flex-direction:column;
  }
  .rwd-admin-ui .panel-title-row .btn{
    width:100%;
  }
}

/* Phase 2G-2: Enterprise Event Form UX */
.rwd-admin-ui .enterprise-form-shell{
  display:grid;
  gap:18px;
}
.rwd-admin-ui .enterprise-form-hero{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
  padding:22px;
  border:1px solid #dbeafe;
  border-radius:22px;
  background:linear-gradient(135deg,#f8fbff,#ffffff 58%,#fff7ed);
  box-shadow:0 14px 32px rgba(15,23,42,.06);
}
.rwd-admin-ui .enterprise-form-hero h2{
  margin:5px 0 6px;
  color:#0f2b55;
  font-size:28px;
}
.rwd-admin-ui .enterprise-form-meta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.rwd-admin-ui .enterprise-form-meta span{
  min-width:104px;
  padding:12px 14px;
  border:1px solid #e2e8f0;
  border-radius:16px;
  background:#fff;
  color:#64748b;
  font-weight:850;
  text-align:center;
}
.rwd-admin-ui .enterprise-form-meta b{
  display:block;
  color:#0f2b55;
  font-size:20px;
}
.rwd-admin-ui .enterprise-event-form{
  display:grid;
  gap:16px;
}
.rwd-admin-ui .form-section-card{
  overflow:hidden;
  border:1px solid #e2e8f0;
  border-radius:20px;
  background:#fff;
  box-shadow:0 10px 26px rgba(15,23,42,.045);
}
.rwd-admin-ui .section-headline{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
  padding:18px 20px;
  border-bottom:1px solid #e2e8f0;
  background:linear-gradient(180deg,#f8fafc,#fff);
}
.rwd-admin-ui .section-headline h3{
  margin:0 0 5px;
  color:#0f2b55;
  font-size:18px;
}
.rwd-admin-ui .section-headline p{
  margin:0;
  color:#64748b;
  font-weight:650;
}
.rwd-admin-ui .section-basic .section-headline{border-left:5px solid #2563eb;}
.rwd-admin-ui .section-control .section-headline{border-left:5px solid #f97316;}
.rwd-admin-ui .section-lock .section-headline{border-left:5px solid #16a34a;}
.rwd-admin-ui .section-audience .section-headline{border-left:5px solid #64748b;}
.rwd-admin-ui .section-schedule .section-headline{border-left:5px solid #0ea5e9;}
.rwd-admin-ui .enterprise-form-grid{
  grid-template-columns:190px minmax(0,1fr);
  gap:14px 18px;
  padding:20px;
  margin:0;
}
.rwd-admin-ui .enterprise-form-grid > label{
  color:#334155;
  font-weight:900;
  padding-top:10px;
}
.rwd-admin-ui .enterprise-form-grid > label small{
  display:block;
  margin-top:3px;
  color:#94a3b8;
  font-weight:800;
}
.rwd-admin-ui .field-block{
  display:grid;
  gap:7px;
}
.rwd-admin-ui .help-text{
  margin:0;
  color:#64748b;
  font-size:13px;
  font-weight:650;
  line-height:1.55;
}
.rwd-admin-ui .help-text code{
  padding:2px 6px;
  border-radius:7px;
  background:#f1f5f9;
  color:#0f2b55;
}
.rwd-admin-ui .enterprise-checkrow{
  gap:10px;
}
.rwd-admin-ui .enterprise-checkrow label{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border:1px solid #e2e8f0;
  border-radius:13px;
  background:#f8fafc;
  font-weight:850;
}
.rwd-admin-ui .group-check-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.rwd-admin-ui .enterprise-form-actions{
  position:sticky;
  bottom:14px;
  z-index:5;
  display:flex;
  justify-content:flex-end;
  gap:10px;
  padding:14px;
  border:1px solid #dbeafe;
  border-radius:18px;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(10px);
  box-shadow:0 14px 32px rgba(15,23,42,.08);
}
.rwd-admin-ui .event-list-card{
  margin-top:18px;
}
.rwd-admin-ui .enterprise-table thead th{
  position:sticky;
  top:0;
  z-index:2;
  background:#f8fafc;
}
.rwd-admin-ui .enterprise-table tbody tr:hover{
  background:#f8fbff;
}
.rwd-admin-ui .action-group{
  min-width:210px;
}
.rwd-admin-ui .action-group form{
  display:inline-block;
  margin:0 0 6px 0;
}
@media(max-width:900px){
  .rwd-admin-ui .enterprise-form-hero,
  .rwd-admin-ui .section-headline{
    flex-direction:column;
  }
  .rwd-admin-ui .enterprise-form-meta{
    justify-content:flex-start;
  }
  .rwd-admin-ui .enterprise-form-grid{
    grid-template-columns:1fr;
  }
  .rwd-admin-ui .enterprise-form-grid > label{
    padding-top:0;
  }
  .rwd-admin-ui .group-check-grid{
    grid-template-columns:1fr;
  }
  .rwd-admin-ui .enterprise-form-actions{
    position:static;
    flex-direction:column;
  }
  .rwd-admin-ui .enterprise-form-actions .btn{
    width:100%;
  }
}


/* Phase 2G-2R Enterprise Form Rebuild */
.rwd-admin-ui .enterprise-form-shell{
  max-width:1100px;
}

.rwd-admin-ui .enterprise-event-form{
  display:flex;
  flex-direction:column;
  gap:20px;
}

.rwd-admin-ui .form-section-card{
  background:#fff;
  border:1px solid var(--rwd-line);
  border-radius:18px;
  padding:24px;
  box-shadow:var(--rwd-shadow-soft);
}

.rwd-admin-ui .section-headline{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  margin-bottom:18px;
}

.rwd-admin-ui .enterprise-form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px 24px;
}

.rwd-admin-ui .enterprise-form-grid > label{
  display:none;
}

.rwd-admin-ui .field-block{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.rwd-admin-ui .field-block input,
.rwd-admin-ui .field-block select,
.rwd-admin-ui .field-block textarea{
  width:100%;
}

.rwd-admin-ui .help-text{
  margin:0;
  font-size:12px;
  line-height:1.45;
  color:var(--rwd-muted);
}

.rwd-admin-ui .pill.blue-soft,
.rwd-admin-ui .section-headline .pill{
  align-self:flex-start;
}

@media (max-width:900px){
  .rwd-admin-ui .enterprise-form-grid{
    grid-template-columns:1fr;
  }
}

/* Phase 2G-2F Final: cache-busted Enterprise Event Form fix */
body.rwd-admin-ui .enterprise-form-shell{
  max-width:980px !important;
  margin:22px 0 0 !important;
}
body.rwd-admin-ui .enterprise-form-hero{
  max-width:980px !important;
  margin:0 0 18px !important;
}
body.rwd-admin-ui .enterprise-event-form{
  max-width:980px !important;
  display:flex !important;
  flex-direction:column !important;
  gap:18px !important;
}
body.rwd-admin-ui .form-section-card{
  padding:0 !important;
  overflow:hidden !important;
  background:#fff !important;
  border:1px solid #dbe5f2 !important;
  border-radius:22px !important;
  box-shadow:0 16px 36px rgba(15,23,42,.07) !important;
}
body.rwd-admin-ui .section-headline{
  display:flex !important;
  align-items:flex-start !important;
  justify-content:space-between !important;
  gap:16px !important;
  margin:0 !important;
  padding:18px 20px !important;
  border-bottom:1px solid #e6edf7 !important;
  background:linear-gradient(180deg,#ffffff,#f8fbff) !important;
}
body.rwd-admin-ui .section-headline h3{
  margin:0 0 6px !important;
  font-size:18px !important;
  color:#0f1f36 !important;
}
body.rwd-admin-ui .section-headline p{
  margin:0 !important;
  font-size:13px !important;
  line-height:1.5 !important;
  color:#64748b !important;
}
body.rwd-admin-ui .section-headline .pill{
  pointer-events:none !important;
  white-space:nowrap !important;
  font-size:12px !important;
  padding:7px 10px !important;
  border-radius:999px !important;
}
body.rwd-admin-ui .enterprise-form-grid{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:10px 18px !important;
  padding:20px !important;
  margin:0 !important;
}
body.rwd-admin-ui .enterprise-form-grid > label{
  display:block !important;
  padding:0 !important;
  margin:0 0 -4px !important;
  font-size:13px !important;
  font-weight:850 !important;
  color:#1f2f46 !important;
}
body.rwd-admin-ui .enterprise-form-grid > label small{
  display:inline !important;
  margin-left:5px !important;
  color:#64748b !important;
  font-size:12px !important;
  font-weight:800 !important;
}
body.rwd-admin-ui .enterprise-form-grid > .field-block{
  display:flex !important;
  flex-direction:column !important;
  gap:7px !important;
  margin-bottom:8px !important;
}
body.rwd-admin-ui .enterprise-form-grid > label,
body.rwd-admin-ui .enterprise-form-grid > .field-block{
  grid-column:auto !important;
}
body.rwd-admin-ui .compact-grid{
  grid-template-columns:1fr 1fr !important;
}
body.rwd-admin-ui .section-audience .enterprise-form-grid,
body.rwd-admin-ui .section-schedule .enterprise-form-grid{
  grid-template-columns:1fr !important;
}
body.rwd-admin-ui .field-block input,
body.rwd-admin-ui .field-block select,
body.rwd-admin-ui .field-block textarea{
  width:100% !important;
  min-height:42px !important;
  font-size:14px !important;
}
body.rwd-admin-ui .help-text{
  margin:0 !important;
  font-size:12px !important;
  line-height:1.45 !important;
  color:#64748b !important;
  font-weight:600 !important;
}
body.rwd-admin-ui .enterprise-checkrow label{
  font-size:14px !important;
  padding:10px 12px !important;
  border-radius:14px !important;
}
body.rwd-admin-ui .group-check-grid{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:10px !important;
}
body.rwd-admin-ui .date-row{
  display:grid !important;
  grid-template-columns:minmax(160px,1fr) minmax(130px,.7fr) auto !important;
  gap:10px !important;
  align-items:center !important;
}
body.rwd-admin-ui .quick-row{
  display:flex !important;
  gap:8px !important;
  flex-wrap:wrap !important;
}
body.rwd-admin-ui .enterprise-form-actions{
  max-width:980px !important;
}
@media(max-width:900px){
  body.rwd-admin-ui .enterprise-form-grid,
  body.rwd-admin-ui .compact-grid,
  body.rwd-admin-ui .group-check-grid{
    grid-template-columns:1fr !important;
  }
  body.rwd-admin-ui .date-row{
    grid-template-columns:1fr !important;
  }
  body.rwd-admin-ui .section-headline{
    flex-direction:column !important;
  }
}


/* Phase 2G-2G: Event Form width alignment refinement */
body.rwd-admin-ui{
  --event-form-width:1180px;
}
body.rwd-admin-ui .enterprise-form-shell,
body.rwd-admin-ui .enterprise-form-hero,
body.rwd-admin-ui .enterprise-event-form,
body.rwd-admin-ui .enterprise-form-actions{
  width:100% !important;
  max-width:var(--event-form-width) !important;
  box-sizing:border-box !important;
}
body.rwd-admin-ui .enterprise-form-hero,
body.rwd-admin-ui .form-section-card,
body.rwd-admin-ui .enterprise-form-actions{
  margin-left:0 !important;
  margin-right:0 !important;
}
body.rwd-admin-ui .enterprise-form-grid{
  grid-template-columns:240px minmax(0,1fr) !important;
  align-items:start !important;
}
body.rwd-admin-ui .compact-grid{
  grid-template-columns:240px minmax(0,1fr) !important;
}
body.rwd-admin-ui .section-audience .enterprise-form-grid,
body.rwd-admin-ui .section-schedule .enterprise-form-grid{
  grid-template-columns:240px minmax(0,1fr) !important;
}
body.rwd-admin-ui .enterprise-form-grid > label{
  padding-top:12px !important;
}
body.rwd-admin-ui .enterprise-form-grid > .field-block{
  min-width:0 !important;
}
body.rwd-admin-ui .field-block input,
body.rwd-admin-ui .field-block select,
body.rwd-admin-ui .field-block textarea{
  max-width:100% !important;
  box-sizing:border-box !important;
}
body.rwd-admin-ui .group-check-grid{
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
}
body.rwd-admin-ui .date-row{
  grid-template-columns:minmax(190px,260px) minmax(150px,220px) auto !important;
}
body.rwd-admin-ui .enterprise-form-actions{
  left:auto !important;
  right:auto !important;
}
@media(max-width:900px){
  body.rwd-admin-ui .enterprise-form-grid,
  body.rwd-admin-ui .compact-grid,
  body.rwd-admin-ui .section-audience .enterprise-form-grid,
  body.rwd-admin-ui .section-schedule .enterprise-form-grid{
    grid-template-columns:1fr !important;
  }
  body.rwd-admin-ui .enterprise-form-grid > label{
    padding-top:0 !important;
  }
  body.rwd-admin-ui .group-check-grid,
  body.rwd-admin-ui .date-row{
    grid-template-columns:1fr !important;
  }
}


/* Phase 2G-2H Final Align Polish */
body.rwd-admin-ui .rwd-tabs,
body.rwd-admin-ui .enterprise-form-shell,
body.rwd-admin-ui .enterprise-event-hero,
body.rwd-admin-ui .form-section-card,
body.rwd-admin-ui .form-actions-card,
body.rwd-admin-ui .events-list-card{
  width: min(100%, 1280px);
  max-width: 1280px;
  margin-left: 0;
  margin-right: auto;
}

body.rwd-admin-ui .enterprise-form-shell{
  display:flex;
  flex-direction:column;
  gap:22px;
}

body.rwd-admin-ui .enterprise-event-hero{
  box-sizing:border-box;
  padding:28px 30px;
}

body.rwd-admin-ui .form-section-card{
  box-sizing:border-box;
  overflow:hidden;
}

body.rwd-admin-ui .form-section-card .enterprise-form-grid{
  grid-template-columns: 230px minmax(360px, 720px);
  column-gap:34px;
  row-gap:24px;
  align-items:start;
  padding:24px 28px 28px;
}

body.rwd-admin-ui .form-section-card .section-headline{
  padding:22px 28px;
  margin:0;
}

body.rwd-admin-ui .field-block input,
body.rwd-admin-ui .field-block select,
body.rwd-admin-ui .field-block textarea{
  max-width:720px;
}

body.rwd-admin-ui .form-actions-card{
  box-sizing:border-box;
  padding:18px 28px;
  justify-content:flex-end;
}

body.rwd-admin-ui .events-list-card{
  box-sizing:border-box;
}

@media (max-width: 900px){
  body.rwd-admin-ui .rwd-tabs,
  body.rwd-admin-ui .enterprise-form-shell,
  body.rwd-admin-ui .enterprise-event-hero,
  body.rwd-admin-ui .form-section-card,
  body.rwd-admin-ui .form-actions-card,
  body.rwd-admin-ui .events-list-card{
    width:100%;
    max-width:100%;
  }

  body.rwd-admin-ui .form-section-card .enterprise-form-grid{
    grid-template-columns:1fr;
    padding:20px;
  }

  body.rwd-admin-ui .form-section-card .section-headline{
    padding:20px;
  }
}


/* Phase 2G-2I Layout Stabilize Fix */
body.rwd-admin-ui .rwd-tabs{
  width:min(100%, 1440px);
  max-width:1440px;
  margin-left:auto;
  margin-right:auto;
}

body.rwd-admin-ui .enterprise-form-shell,
body.rwd-admin-ui .enterprise-event-hero,
body.rwd-admin-ui .form-section-card,
body.rwd-admin-ui .form-actions-card{
  width:min(100%, 1200px);
  max-width:1200px;
  margin-left:0;
  margin-right:auto;
  box-sizing:border-box;
}

body.rwd-admin-ui .events-list-card{
  width:min(100%, 1440px);
  max-width:1440px;
  margin-left:0;
  margin-right:auto;
  box-sizing:border-box;
}

body.rwd-admin-ui .enterprise-event-hero{
  min-height:auto;
  padding:28px 30px;
}

body.rwd-admin-ui .form-section-card{
  position:relative;
  background:#fff;
  border:1px solid #dbe7f6;
  border-radius:22px;
  overflow:hidden;
}

body.rwd-admin-ui .form-section-card .section-headline{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:22px 28px;
  border-bottom:1px solid #e6eef8;
  background:linear-gradient(180deg,#ffffff,#fbfdff);
}

body.rwd-admin-ui .form-section-card .enterprise-form-grid{
  display:grid;
  grid-template-columns:230px minmax(0, 1fr);
  gap:22px 32px;
  padding:24px 28px 30px;
  align-items:center;
}

body.rwd-admin-ui .form-section-card .enterprise-form-grid > label{
  display:block !important;
  margin:0;
  min-width:0;
  font-size:14px;
  font-weight:800;
  line-height:1.35;
  color:#12233d;
}

body.rwd-admin-ui .form-section-card .enterprise-form-grid > label small,
body.rwd-admin-ui .form-section-card .enterprise-form-grid > label span{
  margin-left:6px;
  font-size:12px;
  color:#667895;
  font-weight:800;
}

body.rwd-admin-ui .field-block{
  width:100%;
  max-width:820px;
  min-width:0;
}

body.rwd-admin-ui .field-block input,
body.rwd-admin-ui .field-block select,
body.rwd-admin-ui .field-block textarea{
  width:100%;
  max-width:820px;
  box-sizing:border-box;
}

/* keep checkbox pills compact and prevent broken vertical text */
body.rwd-admin-ui .checkbox-pill,
body.rwd-admin-ui label.checkbox-pill,
body.rwd-admin-ui .field-block .checkbox-pill{
  display:inline-flex !important;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
  width:auto !important;
  min-width:0 !important;
  max-width:none !important;
  padding:12px 18px;
  white-space:nowrap;
  line-height:1.2;
}

body.rwd-admin-ui .checkbox-pill input[type="checkbox"],
body.rwd-admin-ui .field-block .checkbox-pill input[type="checkbox"]{
  width:24px !important;
  min-width:24px !important;
  height:24px !important;
  margin:0;
  flex:0 0 auto;
}

body.rwd-admin-ui .checkbox-pill span,
body.rwd-admin-ui .checkbox-pill strong{
  display:inline !important;
  white-space:nowrap;
}

/* save action should be normal flow, not overlapping content */
body.rwd-admin-ui .form-actions-card{
  position:static !important;
  bottom:auto !important;
  left:auto !important;
  right:auto !important;
  z-index:auto !important;
  display:flex;
  justify-content:flex-end;
  padding:18px 26px;
  margin-top:8px;
  background:#fff;
  border:1px solid #dbe7f6;
  border-radius:20px;
  box-shadow:0 18px 45px rgba(15,23,42,.06);
}

/* schedule row should not stretch strangely */
body.rwd-admin-ui .schedule-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px;
  max-width:820px;
}

body.rwd-admin-ui .schedule-row input[type="date"],
body.rwd-admin-ui .schedule-row input[type="time"]{
  max-width:260px;
}

body.rwd-admin-ui .quick-date-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:12px;
}

body.rwd-admin-ui .site-group-options{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  max-width:100%;
}

body.rwd-admin-ui .site-group-options .checkbox-pill{
  min-width:220px !important;
}

@media (max-width: 900px){
  body.rwd-admin-ui .enterprise-form-shell,
  body.rwd-admin-ui .enterprise-event-hero,
  body.rwd-admin-ui .form-section-card,
  body.rwd-admin-ui .form-actions-card,
  body.rwd-admin-ui .events-list-card{
    width:100%;
    max-width:100%;
  }

  body.rwd-admin-ui .form-section-card .enterprise-form-grid{
    grid-template-columns:1fr;
    gap:10px;
    padding:20px;
  }

  body.rwd-admin-ui .field-block,
  body.rwd-admin-ui .field-block input,
  body.rwd-admin-ui .field-block select,
  body.rwd-admin-ui .field-block textarea{
    max-width:100%;
  }

  body.rwd-admin-ui .checkbox-pill,
  body.rwd-admin-ui label.checkbox-pill,
  body.rwd-admin-ui .field-block .checkbox-pill{
    white-space:normal;
  }
}


/* Phase 2G-2J Lock Layout Fix
   Purpose: override previous conflicting form CSS with exact, high-specificity rules. */

html body.phase2g2j-lock-layout{
  --phase2g-form-width: 1200px;
  --phase2g-table-width: 1440px;
}

/* Main admin content alignment */
html body.phase2g2j-lock-layout .admin-main,
html body.phase2g2j-lock-layout main,
html body.phase2g2j-lock-layout .admin-content{
  box-sizing:border-box;
}

/* Event page major blocks */
html body.phase2g2j-lock-layout .enterprise-form-shell,
html body.phase2g2j-lock-layout .enterprise-event-hero,
html body.phase2g2j-lock-layout .form-section-card,
html body.phase2g2j-lock-layout .form-actions-card{
  width:var(--phase2g-form-width) !important;
  max-width:calc(100vw - 96px) !important;
  margin-left:0 !important;
  margin-right:auto !important;
  box-sizing:border-box !important;
}

/* Event list can be wider because it is a data table */
html body.phase2g2j-lock-layout .events-list-card{
  width:var(--phase2g-table-width) !important;
  max-width:calc(100vw - 96px) !important;
  margin-left:0 !important;
  margin-right:auto !important;
  box-sizing:border-box !important;
}

/* Cards */
html body.phase2g2j-lock-layout .form-section-card{
  display:block !important;
  position:relative !important;
  overflow:hidden !important;
  background:#fff !important;
  border:1px solid #dbe7f6 !important;
  border-radius:22px !important;
  box-shadow:0 18px 44px rgba(15,23,42,.06) !important;
}

html body.phase2g2j-lock-layout .section-headline{
  display:flex !important;
  align-items:flex-start !important;
  justify-content:space-between !important;
  gap:18px !important;
  margin:0 !important;
  padding:22px 28px !important;
  border-bottom:1px solid #e6eef8 !important;
  background:linear-gradient(180deg,#ffffff,#fbfdff) !important;
}

/* The real form grid: label column + field column */
html body.phase2g2j-lock-layout .enterprise-form-grid{
  display:grid !important;
  grid-template-columns:230px minmax(0, 820px) !important;
  gap:22px 32px !important;
  align-items:center !important;
  padding:24px 28px 30px !important;
  margin:0 !important;
  box-sizing:border-box !important;
}

html body.phase2g2j-lock-layout .enterprise-form-grid > label{
  display:block !important;
  visibility:visible !important;
  width:auto !important;
  min-width:0 !important;
  max-width:230px !important;
  margin:0 !important;
  padding:0 !important;
  font-size:14px !important;
  line-height:1.35 !important;
  font-weight:800 !important;
  color:#10233d !important;
  white-space:normal !important;
}

html body.phase2g2j-lock-layout .enterprise-form-grid > label small,
html body.phase2g2j-lock-layout .enterprise-form-grid > label span{
  display:inline !important;
  margin-left:6px !important;
  font-size:12px !important;
  font-weight:800 !important;
  color:#64748b !important;
}

html body.phase2g2j-lock-layout .field-block{
  display:flex !important;
  flex-direction:column !important;
  gap:7px !important;
  width:100% !important;
  max-width:820px !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  box-sizing:border-box !important;
}

html body.phase2g2j-lock-layout .field-block input:not([type="checkbox"]),
html body.phase2g2j-lock-layout .field-block select,
html body.phase2g2j-lock-layout .field-block textarea{
  width:100% !important;
  max-width:820px !important;
  min-width:0 !important;
  box-sizing:border-box !important;
}

html body.phase2g2j-lock-layout .help-text{
  margin:0 !important;
  padding:0 !important;
  font-size:12px !important;
  line-height:1.45 !important;
  font-weight:700 !important;
  color:#64748b !important;
}

/* Fix checkbox pills that were breaking into oversized vertical text */
html body.phase2g2j-lock-layout .checkbox-pill,
html body.phase2g2j-lock-layout label.checkbox-pill,
html body.phase2g2j-lock-layout .field-block label.checkbox-pill{
  display:inline-flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:12px !important;
  width:max-content !important;
  min-width:0 !important;
  max-width:100% !important;
  height:auto !important;
  min-height:0 !important;
  padding:12px 18px !important;
  white-space:nowrap !important;
  line-height:1.2 !important;
  writing-mode:horizontal-tb !important;
  text-orientation:mixed !important;
  box-sizing:border-box !important;
}

html body.phase2g2j-lock-layout .checkbox-pill input[type="checkbox"],
html body.phase2g2j-lock-layout label.checkbox-pill input[type="checkbox"],
html body.phase2g2j-lock-layout .field-block label.checkbox-pill input[type="checkbox"]{
  appearance:none;
  -webkit-appearance:none;
  display:block !important;
  flex:0 0 22px !important;
  width:22px !important;
  min-width:22px !important;
  max-width:22px !important;
  height:22px !important;
  min-height:22px !important;
  max-height:22px !important;
  margin:0 !important;
  padding:0 !important;
  border:2px solid #9aa6b2 !important;
  border-radius:8px !important;
  background:#fff !important;
  box-sizing:border-box !important;
}

html body.phase2g2j-lock-layout .checkbox-pill input[type="checkbox"]:checked{
  background:#2563eb !important;
  border-color:#2563eb !important;
}

html body.phase2g2j-lock-layout .checkbox-pill strong,
html body.phase2g2j-lock-layout .checkbox-pill span{
  display:inline !important;
  white-space:nowrap !important;
  width:auto !important;
  max-width:none !important;
  line-height:1.2 !important;
}

/* Site group row */
html body.phase2g2j-lock-layout .site-group-options{
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:wrap !important;
  gap:12px !important;
  width:100% !important;
  max-width:960px !important;
}

html body.phase2g2j-lock-layout .site-group-options .checkbox-pill{
  width:auto !important;
  min-width:220px !important;
}

/* Schedule inputs */
html body.phase2g2j-lock-layout .schedule-row{
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  gap:12px !important;
  width:100% !important;
  max-width:820px !important;
}

html body.phase2g2j-lock-layout .schedule-row input[type="date"],
html body.phase2g2j-lock-layout .schedule-row input[type="time"]{
  width:220px !important;
  max-width:220px !important;
  flex:0 0 220px !important;
}

html body.phase2g2j-lock-layout .quick-date-actions{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:10px !important;
  margin-top:12px !important;
}

/* Save bar must be in document flow and never sticky/overlay */
html body.phase2g2j-lock-layout .form-actions-card{
  position:relative !important;
  inset:auto !important;
  z-index:1 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  min-height:72px !important;
  margin-top:8px !important;
  padding:16px 28px !important;
  background:#fff !important;
  border:1px solid #dbe7f6 !important;
  border-radius:20px !important;
  box-shadow:0 18px 45px rgba(15,23,42,.06) !important;
}

/* Prevent hidden/blurred overlay from earlier rules */
html body.phase2g2j-lock-layout .form-actions-card::before,
html body.phase2g2j-lock-layout .form-actions-card::after{
  display:none !important;
  content:none !important;
}

@media (max-width:900px){
  html body.phase2g2j-lock-layout .enterprise-form-shell,
  html body.phase2g2j-lock-layout .enterprise-event-hero,
  html body.phase2g2j-lock-layout .form-section-card,
  html body.phase2g2j-lock-layout .form-actions-card,
  html body.phase2g2j-lock-layout .events-list-card{
    width:100% !important;
    max-width:100% !important;
  }

  html body.phase2g2j-lock-layout .enterprise-form-grid{
    grid-template-columns:1fr !important;
    gap:10px !important;
    padding:20px !important;
  }

  html body.phase2g2j-lock-layout .enterprise-form-grid > label{
    max-width:100% !important;
  }

  html body.phase2g2j-lock-layout .field-block,
  html body.phase2g2j-lock-layout .field-block input:not([type="checkbox"]),
  html body.phase2g2j-lock-layout .field-block select,
  html body.phase2g2j-lock-layout .field-block textarea{
    max-width:100% !important;
  }

  html body.phase2g2j-lock-layout .checkbox-pill{
    white-space:normal !important;
  }
}


/* Phase 2G-2K Exact Selector Fix
   Fix actual classes in index.php: enterprise-form-hero / enterprise-form-actions / enterprise-checkrow */

body.rwd-admin-ui .enterprise-form-shell{
  width:1200px !important;
  max-width:calc(100vw - 120px) !important;
  margin-left:0 !important;
  margin-right:auto !important;
  display:flex !important;
  flex-direction:column !important;
  gap:22px !important;
}

body.rwd-admin-ui .enterprise-form-hero,
body.rwd-admin-ui .enterprise-event-hero{
  width:1200px !important;
  max-width:calc(100vw - 120px) !important;
  margin-left:0 !important;
  margin-right:auto !important;
  box-sizing:border-box !important;
}

body.rwd-admin-ui .enterprise-event-form{
  display:flex !important;
  flex-direction:column !important;
  gap:22px !important;
  width:1200px !important;
  max-width:100% !important;
}

body.rwd-admin-ui .enterprise-event-form > .form-section-card{
  width:100% !important;
  max-width:100% !important;
  margin:0 !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
}

body.rwd-admin-ui .enterprise-event-form .section-headline{
  display:flex !important;
  align-items:flex-start !important;
  justify-content:space-between !important;
  gap:18px !important;
  margin:0 !important;
  padding:22px 28px !important;
  border-bottom:1px solid #e5edf8 !important;
}

body.rwd-admin-ui .enterprise-event-form .enterprise-form-grid{
  display:grid !important;
  grid-template-columns:230px minmax(0, 760px) !important;
  gap:22px 32px !important;
  align-items:center !important;
  padding:24px 28px 30px !important;
  margin:0 !important;
  box-sizing:border-box !important;
}

body.rwd-admin-ui .enterprise-event-form .enterprise-form-grid > label{
  display:block !important;
  width:230px !important;
  max-width:230px !important;
  margin:0 !important;
  padding:0 !important;
  white-space:normal !important;
  line-height:1.35 !important;
}

body.rwd-admin-ui .enterprise-event-form .field-block{
  width:760px !important;
  max-width:760px !important;
  min-width:0 !important;
  display:flex !important;
  flex-direction:column !important;
  gap:7px !important;
}

body.rwd-admin-ui .enterprise-event-form .field-block input:not([type="checkbox"]),
body.rwd-admin-ui .enterprise-event-form .field-block select,
body.rwd-admin-ui .enterprise-event-form .field-block textarea{
  width:760px !important;
  max-width:760px !important;
  box-sizing:border-box !important;
}

body.rwd-admin-ui .enterprise-form-actions,
body.rwd-admin-ui .form-actions-card{
  position:relative !important;
  inset:auto !important;
  z-index:1 !important;
  width:1200px !important;
  max-width:100% !important;
  min-height:72px !important;
  margin:0 !important;
  padding:16px 28px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  box-sizing:border-box !important;
  background:#fff !important;
  border:1px solid #dbe7f6 !important;
  border-radius:20px !important;
  box-shadow:0 18px 45px rgba(15,23,42,.06) !important;
}

body.rwd-admin-ui .enterprise-form-actions::before,
body.rwd-admin-ui .enterprise-form-actions::after,
body.rwd-admin-ui .form-actions-card::before,
body.rwd-admin-ui .form-actions-card::after{
  display:none !important;
  content:none !important;
}

/* Actual checkbox markup uses .enterprise-checkrow > label */
body.rwd-admin-ui .enterprise-checkrow{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:12px !important;
  width:760px !important;
  max-width:760px !important;
  align-items:center !important;
}

body.rwd-admin-ui .enterprise-checkrow > label{
  display:inline-flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:12px !important;
  width:auto !important;
  min-width:0 !important;
  max-width:100% !important;
  height:auto !important;
  padding:12px 18px !important;
  white-space:nowrap !important;
  line-height:1.2 !important;
  writing-mode:horizontal-tb !important;
  box-sizing:border-box !important;
}

body.rwd-admin-ui .enterprise-checkrow > label input[type="checkbox"]{
  display:block !important;
  flex:0 0 22px !important;
  width:22px !important;
  min-width:22px !important;
  max-width:22px !important;
  height:22px !important;
  min-height:22px !important;
  max-height:22px !important;
  margin:0 !important;
  padding:0 !important;
  box-sizing:border-box !important;
}

body.rwd-admin-ui .group-check-grid{
  display:grid !important;
  grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
  gap:12px !important;
  width:100% !important;
  max-width:900px !important;
}

body.rwd-admin-ui .group-check-grid > label{
  width:100% !important;
  justify-content:flex-start !important;
}

body.rwd-admin-ui .date-row{
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  gap:12px !important;
  width:760px !important;
  max-width:760px !important;
}

body.rwd-admin-ui .date-row input[type="date"],
body.rwd-admin-ui .date-row input[type="time"]{
  width:220px !important;
  max-width:220px !important;
  flex:0 0 220px !important;
}

body.rwd-admin-ui .quick-row{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:10px !important;
  margin-top:12px !important;
}

body.rwd-admin-ui .event-list-card{
  width:1440px !important;
  max-width:calc(100vw - 120px) !important;
  margin-left:0 !important;
  margin-right:auto !important;
  box-sizing:border-box !important;
}

@media (max-width:900px){
  body.rwd-admin-ui .enterprise-form-shell,
  body.rwd-admin-ui .enterprise-form-hero,
  body.rwd-admin-ui .enterprise-event-hero,
  body.rwd-admin-ui .enterprise-event-form,
  body.rwd-admin-ui .enterprise-form-actions,
  body.rwd-admin-ui .form-actions-card,
  body.rwd-admin-ui .event-list-card{
    width:100% !important;
    max-width:100% !important;
  }

  body.rwd-admin-ui .enterprise-event-form .enterprise-form-grid{
    grid-template-columns:1fr !important;
    padding:20px !important;
    gap:10px !important;
  }

  body.rwd-admin-ui .enterprise-event-form .enterprise-form-grid > label,
  body.rwd-admin-ui .enterprise-event-form .field-block,
  body.rwd-admin-ui .enterprise-event-form .field-block input:not([type="checkbox"]),
  body.rwd-admin-ui .enterprise-event-form .field-block select,
  body.rwd-admin-ui .enterprise-event-form .field-block textarea,
  body.rwd-admin-ui .enterprise-checkrow,
  body.rwd-admin-ui .date-row{
    width:100% !important;
    max-width:100% !important;
  }

  body.rwd-admin-ui .group-check-grid{
    grid-template-columns:1fr !important;
  }
}


/* Phase 2G-2L Unified Width System
   One page width: Hero = Form Cards = Save Bar = Event List */

body.rwd-admin-ui{
  --phase2g-page-width: 1400px;
  --phase2g-page-max: calc(100vw - 120px);
  --phase2g-label-width: 280px;
  --phase2g-field-width: 860px;
}

/* all major blocks use the same width */
body.rwd-admin-ui .enterprise-form-shell,
body.rwd-admin-ui .enterprise-form-hero,
body.rwd-admin-ui .enterprise-event-hero,
body.rwd-admin-ui .enterprise-event-form,
body.rwd-admin-ui .enterprise-event-form > .form-section-card,
body.rwd-admin-ui .enterprise-form-actions,
body.rwd-admin-ui .form-actions-card,
body.rwd-admin-ui .event-list-card,
body.rwd-admin-ui .events-list-card{
  width: var(--phase2g-page-width) !important;
  max-width: var(--phase2g-page-max) !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* make nested event form not add extra offset */
body.rwd-admin-ui .enterprise-event-form{
  display:flex !important;
  flex-direction:column !important;
  gap:22px !important;
}

/* hero alignment */
body.rwd-admin-ui .enterprise-form-hero,
body.rwd-admin-ui .enterprise-event-hero{
  padding:28px 30px !important;
}

/* section card alignment */
body.rwd-admin-ui .enterprise-event-form > .form-section-card{
  overflow:hidden !important;
  border-radius:22px !important;
}

/* header inside cards */
body.rwd-admin-ui .enterprise-event-form .section-headline{
  padding:22px 28px !important;
  margin:0 !important;
  box-sizing:border-box !important;
}

/* unified form grid */
body.rwd-admin-ui .enterprise-event-form .enterprise-form-grid{
  display:grid !important;
  grid-template-columns: var(--phase2g-label-width) minmax(0, var(--phase2g-field-width)) !important;
  gap:22px 36px !important;
  align-items:center !important;
  padding:24px 28px 30px !important;
  margin:0 !important;
  box-sizing:border-box !important;
}

body.rwd-admin-ui .enterprise-event-form .enterprise-form-grid > label{
  width:var(--phase2g-label-width) !important;
  max-width:var(--phase2g-label-width) !important;
  white-space:normal !important;
  box-sizing:border-box !important;
}

/* fields */
body.rwd-admin-ui .enterprise-event-form .field-block,
body.rwd-admin-ui .enterprise-event-form .field-block input:not([type="checkbox"]),
body.rwd-admin-ui .enterprise-event-form .field-block select,
body.rwd-admin-ui .enterprise-event-form .field-block textarea{
  width:var(--phase2g-field-width) !important;
  max-width:var(--phase2g-field-width) !important;
  box-sizing:border-box !important;
}

/* check rows match field column */
body.rwd-admin-ui .enterprise-checkrow,
body.rwd-admin-ui .date-row{
  width:var(--phase2g-field-width) !important;
  max-width:var(--phase2g-field-width) !important;
}

/* site group should fit nicely in same field area */
body.rwd-admin-ui .group-check-grid{
  width:var(--phase2g-field-width) !important;
  max-width:var(--phase2g-field-width) !important;
  grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
}

/* save bar alignment */
body.rwd-admin-ui .enterprise-form-actions,
body.rwd-admin-ui .form-actions-card{
  position:relative !important;
  inset:auto !important;
  min-height:74px !important;
  padding:16px 28px !important;
  display:flex !important;
  justify-content:flex-end !important;
  align-items:center !important;
}

/* table card uses same width now */
body.rwd-admin-ui .event-list-card,
body.rwd-admin-ui .events-list-card{
  padding-left:28px !important;
  padding-right:28px !important;
}

/* remove overlay pseudo if exists */
body.rwd-admin-ui .enterprise-form-actions::before,
body.rwd-admin-ui .enterprise-form-actions::after,
body.rwd-admin-ui .form-actions-card::before,
body.rwd-admin-ui .form-actions-card::after{
  display:none !important;
  content:none !important;
}

@media (max-width: 900px){
  body.rwd-admin-ui{
    --phase2g-page-max: 100%;
    --phase2g-label-width: 100%;
    --phase2g-field-width: 100%;
  }

  body.rwd-admin-ui .enterprise-form-shell,
  body.rwd-admin-ui .enterprise-form-hero,
  body.rwd-admin-ui .enterprise-event-hero,
  body.rwd-admin-ui .enterprise-event-form,
  body.rwd-admin-ui .enterprise-event-form > .form-section-card,
  body.rwd-admin-ui .enterprise-form-actions,
  body.rwd-admin-ui .form-actions-card,
  body.rwd-admin-ui .event-list-card,
  body.rwd-admin-ui .events-list-card{
    width:100% !important;
    max-width:100% !important;
  }

  body.rwd-admin-ui .enterprise-event-form .enterprise-form-grid{
    grid-template-columns:1fr !important;
    gap:10px !important;
    padding:20px !important;
  }

  body.rwd-admin-ui .group-check-grid{
    grid-template-columns:1fr !important;
  }
}


/* Phase 2G-2M Final 2-Point Align Fix */
body.rwd-admin-ui{
  --phase2g-page-width: 1480px;
  --phase2g-label-width: 240px;
  --phase2g-field-width: 920px;
}

/* Hero = Form = Event List */
body.rwd-admin-ui .enterprise-form-hero,
body.rwd-admin-ui .enterprise-event-hero,
body.rwd-admin-ui .enterprise-form-shell,
body.rwd-admin-ui .enterprise-event-form,
body.rwd-admin-ui .event-list-card,
body.rwd-admin-ui .events-list-card,
body.rwd-admin-ui .enterprise-form-actions,
body.rwd-admin-ui .form-actions-card{
  width: var(--phase2g-page-width) !important;
  max-width: calc(100vw - 80px) !important;
}

/* Bring fields closer to labels */
body.rwd-admin-ui .enterprise-event-form .enterprise-form-grid{
  grid-template-columns: var(--phase2g-label-width) minmax(0, var(--phase2g-field-width)) !important;
  gap: 18px 24px !important;
}

body.rwd-admin-ui .enterprise-event-form .enterprise-form-grid > label{
  width: var(--phase2g-label-width) !important;
  max-width: var(--phase2g-label-width) !important;
}

body.rwd-admin-ui .enterprise-event-form .field-block,
body.rwd-admin-ui .enterprise-event-form .field-block input:not([type="checkbox"]),
body.rwd-admin-ui .enterprise-event-form .field-block select,
body.rwd-admin-ui .enterprise-event-form .field-block textarea,
body.rwd-admin-ui .enterprise-checkrow,
body.rwd-admin-ui .date-row,
body.rwd-admin-ui .group-check-grid{
  width: var(--phase2g-field-width) !important;
  max-width: var(--phase2g-field-width) !important;
}


/* Phase 2G-2N Two Column Form Rebuild
   Fix direction: stop over-expanding page width, use compact two-column details. */

body.rwd-admin-ui{
  --phase2g-page-width: 1280px;
  --phase2g-page-max: calc(100vw - 96px);
  --phase2g-card-pad-x: 26px;
  --phase2g-field-width: 100%;
}

/* Main blocks align consistently */
body.rwd-admin-ui .enterprise-form-shell,
body.rwd-admin-ui .enterprise-form-hero,
body.rwd-admin-ui .enterprise-event-hero,
body.rwd-admin-ui .enterprise-event-form,
body.rwd-admin-ui .enterprise-event-form > .form-section-card,
body.rwd-admin-ui .enterprise-form-actions,
body.rwd-admin-ui .form-actions-card,
body.rwd-admin-ui .event-list-card,
body.rwd-admin-ui .events-list-card{
  width:var(--phase2g-page-width) !important;
  max-width:var(--phase2g-page-max) !important;
  margin-left:0 !important;
  margin-right:auto !important;
  box-sizing:border-box !important;
}

body.rwd-admin-ui .enterprise-form-shell{
  display:flex !important;
  flex-direction:column !important;
  gap:22px !important;
}

body.rwd-admin-ui .enterprise-form-hero,
body.rwd-admin-ui .enterprise-event-hero{
  padding:28px 30px !important;
  min-height:auto !important;
}

body.rwd-admin-ui .enterprise-event-form{
  display:flex !important;
  flex-direction:column !important;
  gap:22px !important;
}

body.rwd-admin-ui .enterprise-event-form > .form-section-card{
  overflow:hidden !important;
  border-radius:22px !important;
}

body.rwd-admin-ui .enterprise-event-form .section-headline{
  padding:22px var(--phase2g-card-pad-x) !important;
  margin:0 !important;
  border-bottom:1px solid #e5edf8 !important;
  box-sizing:border-box !important;
}

/* Key change: two-column field cards, not old label-left layout */
body.rwd-admin-ui .enterprise-event-form .enterprise-form-grid{
  display:grid !important;
  grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  gap:20px 22px !important;
  align-items:start !important;
  padding:24px var(--phase2g-card-pad-x) 30px !important;
  margin:0 !important;
  box-sizing:border-box !important;
}

/* Hide standalone left labels visually by turning them into compact field labels above controls */
body.rwd-admin-ui .enterprise-event-form .enterprise-form-grid > label{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  margin:0 0 -12px 0 !important;
  padding:0 !important;
  font-size:13px !important;
  line-height:1.35 !important;
  font-weight:800 !important;
  color:#0f213b !important;
  white-space:normal !important;
}

/* Pair label + next field by letting field block take same column width */
body.rwd-admin-ui .enterprise-event-form .field-block{
  display:flex !important;
  flex-direction:column !important;
  gap:7px !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  box-sizing:border-box !important;
}

body.rwd-admin-ui .enterprise-event-form .field-block input:not([type="checkbox"]),
body.rwd-admin-ui .enterprise-event-form .field-block select,
body.rwd-admin-ui .enterprise-event-form .field-block textarea{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  box-sizing:border-box !important;
}

/* Make special full-width rows span both columns */
body.rwd-admin-ui .enterprise-event-form .enterprise-form-grid > label:nth-last-child(2),
body.rwd-admin-ui .enterprise-event-form .enterprise-form-grid > label:nth-last-child(4){
  grid-column:auto !important;
}

body.rwd-admin-ui .enterprise-checkrow,
body.rwd-admin-ui .date-row,
body.rwd-admin-ui .group-check-grid{
  width:100% !important;
  max-width:100% !important;
}

/* Site groups: use 3 cards in row within the field column if available */
body.rwd-admin-ui .group-check-grid{
  display:grid !important;
  grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
  gap:12px !important;
}

/* checkbox rows */
body.rwd-admin-ui .enterprise-checkrow{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:12px !important;
  align-items:center !important;
}

body.rwd-admin-ui .enterprise-checkrow > label,
body.rwd-admin-ui .group-check-grid > label{
  display:inline-flex !important;
  flex-direction:row !important;
  align-items:center !important;
  gap:12px !important;
  width:auto !important;
  min-width:0 !important;
  max-width:100% !important;
  padding:12px 16px !important;
  white-space:nowrap !important;
  line-height:1.2 !important;
  box-sizing:border-box !important;
}

body.rwd-admin-ui .group-check-grid > label{
  width:100% !important;
}

/* schedule row compact */
body.rwd-admin-ui .date-row{
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  gap:12px !important;
}

body.rwd-admin-ui .date-row input[type="date"],
body.rwd-admin-ui .date-row input[type="time"]{
  width:210px !important;
  max-width:210px !important;
  flex:0 0 210px !important;
}

/* save bar normal flow and same width */
body.rwd-admin-ui .enterprise-form-actions,
body.rwd-admin-ui .form-actions-card{
  position:relative !important;
  inset:auto !important;
  z-index:1 !important;
  min-height:72px !important;
  padding:16px var(--phase2g-card-pad-x) !important;
  display:flex !important;
  justify-content:flex-end !important;
  align-items:center !important;
}

body.rwd-admin-ui .enterprise-form-actions::before,
body.rwd-admin-ui .enterprise-form-actions::after,
body.rwd-admin-ui .form-actions-card::before,
body.rwd-admin-ui .form-actions-card::after{
  display:none !important;
  content:none !important;
}

/* Event list not over-wide; same visual rail as form */
body.rwd-admin-ui .event-list-card,
body.rwd-admin-ui .events-list-card{
  padding-left:var(--phase2g-card-pad-x) !important;
  padding-right:var(--phase2g-card-pad-x) !important;
}

/* Tabs can remain wider but not huge empty tail */
body.rwd-admin-ui .rwd-tabs{
  max-width:var(--phase2g-page-max) !important;
}

@media (max-width: 1100px){
  body.rwd-admin-ui .enterprise-event-form .enterprise-form-grid{
    grid-template-columns:1fr !important;
  }
  body.rwd-admin-ui .group-check-grid{
    grid-template-columns:1fr !important;
  }
}

@media (max-width: 900px){
  body.rwd-admin-ui{
    --phase2g-page-width:100%;
    --phase2g-page-max:100%;
  }

  body.rwd-admin-ui .enterprise-form-shell,
  body.rwd-admin-ui .enterprise-form-hero,
  body.rwd-admin-ui .enterprise-event-hero,
  body.rwd-admin-ui .enterprise-event-form,
  body.rwd-admin-ui .enterprise-event-form > .form-section-card,
  body.rwd-admin-ui .enterprise-form-actions,
  body.rwd-admin-ui .form-actions-card,
  body.rwd-admin-ui .event-list-card,
  body.rwd-admin-ui .events-list-card{
    width:100% !important;
    max-width:100% !important;
  }
}


/* Phase 2G-2O Real Two-Column Pair Grid
   Actual structure is label + field-block pairs.
   This uses 4 columns: Label + Field | Label + Field. */

body.rwd-admin-ui{
  --phase2g-page-width: 1280px;
  --phase2g-page-max: calc(100vw - 96px);
  --phase2g-label-col: 140px;
  --phase2g-gap-x: 18px;
  --phase2g-gap-y: 20px;
}

/* Same visual rail for every block */
body.rwd-admin-ui .rwd-tabs,
body.rwd-admin-ui .enterprise-form-shell,
body.rwd-admin-ui .enterprise-form-hero,
body.rwd-admin-ui .enterprise-event-hero,
body.rwd-admin-ui .enterprise-event-form,
body.rwd-admin-ui .enterprise-event-form > .form-section-card,
body.rwd-admin-ui .enterprise-form-actions,
body.rwd-admin-ui .form-actions-card,
body.rwd-admin-ui .event-list-card,
body.rwd-admin-ui .events-list-card{
  width: var(--phase2g-page-width) !important;
  max-width: var(--phase2g-page-max) !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

body.rwd-admin-ui .enterprise-form-shell{
  display:flex !important;
  flex-direction:column !important;
  gap:22px !important;
}

body.rwd-admin-ui .enterprise-event-form{
  width:var(--phase2g-page-width) !important;
  max-width:var(--phase2g-page-max) !important;
  display:flex !important;
  flex-direction:column !important;
  gap:22px !important;
}

/* Hero: stop the right empty feeling */
body.rwd-admin-ui .enterprise-form-hero,
body.rwd-admin-ui .enterprise-event-hero{
  min-height:auto !important;
  padding:28px 30px !important;
}

body.rwd-admin-ui .enterprise-form-meta{
  margin-right:0 !important;
}

/* Cards */
body.rwd-admin-ui .enterprise-event-form > .form-section-card{
  width:var(--phase2g-page-width) !important;
  max-width:var(--phase2g-page-max) !important;
  overflow:hidden !important;
  border-radius:22px !important;
}

body.rwd-admin-ui .enterprise-event-form .section-headline{
  padding:22px 26px !important;
  margin:0 !important;
  border-bottom:1px solid #e5edf8 !important;
  box-sizing:border-box !important;
}

/* REAL 2-COLUMN DATA LAYOUT:
   label + field | label + field */
body.rwd-admin-ui .enterprise-event-form .enterprise-form-grid{
  display:grid !important;
  grid-template-columns:
    var(--phase2g-label-col) minmax(0, 1fr)
    var(--phase2g-label-col) minmax(0, 1fr) !important;
  gap: var(--phase2g-gap-y) var(--phase2g-gap-x) !important;
  align-items:center !important;
  padding:24px 26px 30px !important;
  margin:0 !important;
  box-sizing:border-box !important;
}

/* Labels are real columns now */
body.rwd-admin-ui .enterprise-event-form .enterprise-form-grid > label{
  display:block !important;
  width:auto !important;
  max-width:var(--phase2g-label-col) !important;
  margin:0 !important;
  padding:0 !important;
  font-size:13px !important;
  line-height:1.35 !important;
  font-weight:800 !important;
  color:#10233d !important;
  white-space:normal !important;
  box-sizing:border-box !important;
}

body.rwd-admin-ui .enterprise-event-form .enterprise-form-grid > label small{
  display:inline !important;
  margin-left:5px !important;
  font-size:12px !important;
  font-weight:800 !important;
  color:#64748b !important;
}

/* Fields fill their own column only */
body.rwd-admin-ui .enterprise-event-form .field-block{
  display:flex !important;
  flex-direction:column !important;
  gap:7px !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  box-sizing:border-box !important;
}

body.rwd-admin-ui .enterprise-event-form .field-block input:not([type="checkbox"]),
body.rwd-admin-ui .enterprise-event-form .field-block select,
body.rwd-admin-ui .enterprise-event-form .field-block textarea{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  box-sizing:border-box !important;
}

/* Make odd single last pair in Basic/Control not look broken */
body.rwd-admin-ui .section-basic .enterprise-form-grid > label:nth-of-type(3),
body.rwd-admin-ui .section-basic .enterprise-form-grid > label:nth-of-type(3) + .field-block,
body.rwd-admin-ui .section-control .enterprise-form-grid > label:nth-of-type(3),
body.rwd-admin-ui .section-control .enterprise-form-grid > label:nth-of-type(3) + .field-block{
  grid-column:auto !important;
}

/* Audience: use the whole content width because it is a checkbox group */
body.rwd-admin-ui .section-audience .enterprise-form-grid{
  grid-template-columns: var(--phase2g-label-col) minmax(0, 1fr) !important;
}

body.rwd-admin-ui .section-audience .enterprise-checkrow{
  width:100% !important;
  max-width:100% !important;
}

/* Checkbox rows */
body.rwd-admin-ui .enterprise-checkrow{
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  gap:12px !important;
  width:100% !important;
  max-width:100% !important;
}

body.rwd-admin-ui .enterprise-checkrow > label,
body.rwd-admin-ui .group-check-grid > label{
  display:inline-flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:12px !important;
  width:auto !important;
  min-width:0 !important;
  max-width:100% !important;
  padding:12px 16px !important;
  white-space:nowrap !important;
  line-height:1.2 !important;
  box-sizing:border-box !important;
}

body.rwd-admin-ui .enterprise-checkrow > label input[type="checkbox"],
body.rwd-admin-ui .group-check-grid > label input[type="checkbox"]{
  flex:0 0 22px !important;
  width:22px !important;
  height:22px !important;
  min-width:22px !important;
  min-height:22px !important;
  margin:0 !important;
}

/* Audience checkbox cards */
body.rwd-admin-ui .group-check-grid{
  display:grid !important;
  grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
  gap:12px !important;
  width:100% !important;
  max-width:100% !important;
}

body.rwd-admin-ui .group-check-grid > label{
  width:100% !important;
}

/* Schedule fields compact inside half column */
body.rwd-admin-ui .date-row{
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  gap:10px !important;
  width:100% !important;
  max-width:100% !important;
}

body.rwd-admin-ui .date-row input[type="date"],
body.rwd-admin-ui .date-row input[type="time"]{
  width:170px !important;
  max-width:170px !important;
  flex:0 0 170px !important;
}

body.rwd-admin-ui .quick-row{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:10px !important;
  margin-top:10px !important;
}

/* Save bar same width and normal flow */
body.rwd-admin-ui .enterprise-form-actions,
body.rwd-admin-ui .form-actions-card{
  position:relative !important;
  inset:auto !important;
  z-index:1 !important;
  min-height:72px !important;
  padding:16px 26px !important;
  display:flex !important;
  justify-content:flex-end !important;
  align-items:center !important;
  box-sizing:border-box !important;
}

body.rwd-admin-ui .enterprise-form-actions::before,
body.rwd-admin-ui .enterprise-form-actions::after,
body.rwd-admin-ui .form-actions-card::before,
body.rwd-admin-ui .form-actions-card::after{
  display:none !important;
  content:none !important;
}

/* Event list same rail */
body.rwd-admin-ui .event-list-card,
body.rwd-admin-ui .events-list-card{
  padding-left:26px !important;
  padding-right:26px !important;
}

/* On smaller screens, return to safe one-column label/field */
@media (max-width: 1100px){
  body.rwd-admin-ui .enterprise-event-form .enterprise-form-grid{
    grid-template-columns: 150px minmax(0, 1fr) !important;
  }

  body.rwd-admin-ui .section-audience .enterprise-form-grid{
    grid-template-columns:150px minmax(0,1fr) !important;
  }

  body.rwd-admin-ui .group-check-grid{
    grid-template-columns:1fr !important;
  }

  body.rwd-admin-ui .date-row input[type="date"],
  body.rwd-admin-ui .date-row input[type="time"]{
    width:210px !important;
    max-width:210px !important;
    flex:0 0 210px !important;
  }
}

@media (max-width: 900px){
  body.rwd-admin-ui{
    --phase2g-page-width:100%;
    --phase2g-page-max:100%;
  }

  body.rwd-admin-ui .rwd-tabs,
  body.rwd-admin-ui .enterprise-form-shell,
  body.rwd-admin-ui .enterprise-form-hero,
  body.rwd-admin-ui .enterprise-event-hero,
  body.rwd-admin-ui .enterprise-event-form,
  body.rwd-admin-ui .enterprise-event-form > .form-section-card,
  body.rwd-admin-ui .enterprise-form-actions,
  body.rwd-admin-ui .form-actions-card,
  body.rwd-admin-ui .event-list-card,
  body.rwd-admin-ui .events-list-card{
    width:100% !important;
    max-width:100% !important;
  }

  body.rwd-admin-ui .enterprise-event-form .enterprise-form-grid,
  body.rwd-admin-ui .section-audience .enterprise-form-grid{
    grid-template-columns:1fr !important;
    padding:20px !important;
  }

  body.rwd-admin-ui .enterprise-event-form .enterprise-form-grid > label{
    max-width:100% !important;
  }
}


/* Phase 2G-2P Section Two-Column Layout
   Correct target: section cards themselves are left/right, not only fields inside one long card. */

body.rwd-admin-ui{
  --phase2g-rail-width: 1280px;
  --phase2g-rail-max: calc(100vw - 96px);
  --phase2g-card-gap: 22px;
  --phase2g-inner-label: 150px;
}

/* One equal rail for nav/content/form/table */
body.rwd-admin-ui .rwd-tabs,
body.rwd-admin-ui .enterprise-form-shell,
body.rwd-admin-ui .enterprise-form-hero,
body.rwd-admin-ui .enterprise-event-hero,
body.rwd-admin-ui .enterprise-event-form,
body.rwd-admin-ui .event-list-card,
body.rwd-admin-ui .events-list-card{
  width: var(--phase2g-rail-width) !important;
  max-width: var(--phase2g-rail-max) !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* Hero same rail, not over-expanded */
body.rwd-admin-ui .enterprise-form-hero,
body.rwd-admin-ui .enterprise-event-hero{
  min-height: auto !important;
  padding: 28px 30px !important;
}

/* The actual form becomes a 2-column section grid */
body.rwd-admin-ui .enterprise-event-form{
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: var(--phase2g-card-gap) !important;
  align-items: start !important;
}

/* Section cards fill their grid column, not the whole rail */
body.rwd-admin-ui .enterprise-event-form > .form-section-card{
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  border-radius: 22px !important;
}

/* left/right section placement */
body.rwd-admin-ui .enterprise-event-form > .section-basic{ grid-column: 1 !important; }
body.rwd-admin-ui .enterprise-event-form > .section-control{ grid-column: 2 !important; }
body.rwd-admin-ui .enterprise-event-form > .section-lock{ grid-column: 1 !important; }
body.rwd-admin-ui .enterprise-event-form > .section-audience{ grid-column: 2 !important; }

/* Schedule and save use full row */
body.rwd-admin-ui .enterprise-event-form > .section-schedule,
body.rwd-admin-ui .enterprise-event-form > .enterprise-form-actions,
body.rwd-admin-ui .enterprise-event-form > .form-actions-card{
  grid-column: 1 / -1 !important;
}

/* Card header */
body.rwd-admin-ui .enterprise-event-form .section-headline{
  padding: 20px 24px !important;
  margin: 0 !important;
  border-bottom: 1px solid #e5edf8 !important;
  box-sizing: border-box !important;
}

/* Inside half-width cards: simple label + field layout */
body.rwd-admin-ui .enterprise-event-form .form-section-card:not(.section-schedule) .enterprise-form-grid{
  display: grid !important;
  grid-template-columns: var(--phase2g-inner-label) minmax(0, 1fr) !important;
  gap: 18px 18px !important;
  align-items: center !important;
  padding: 22px 24px 26px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* Schedule section can use two columns internally */
body.rwd-admin-ui .enterprise-event-form .section-schedule .enterprise-form-grid{
  display: grid !important;
  grid-template-columns: 150px minmax(0, 1fr) 150px minmax(0, 1fr) !important;
  gap: 18px 18px !important;
  align-items: center !important;
  padding: 22px 24px 26px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* Labels */
body.rwd-admin-ui .enterprise-event-form .enterprise-form-grid > label{
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
  color: #10233d !important;
  white-space: normal !important;
  box-sizing: border-box !important;
}

/* Fields */
body.rwd-admin-ui .enterprise-event-form .field-block{
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

body.rwd-admin-ui .enterprise-event-form .field-block input:not([type="checkbox"]),
body.rwd-admin-ui .enterprise-event-form .field-block select,
body.rwd-admin-ui .enterprise-event-form .field-block textarea{
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

/* Audience checkbox stack is better in half card */
body.rwd-admin-ui .section-audience .enterprise-form-grid{
  grid-template-columns: var(--phase2g-inner-label) minmax(0, 1fr) !important;
}

body.rwd-admin-ui .group-check-grid{
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Checkbox rows */
body.rwd-admin-ui .enterprise-checkrow{
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
}

body.rwd-admin-ui .enterprise-checkrow > label,
body.rwd-admin-ui .group-check-grid > label{
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding: 12px 16px !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
  box-sizing: border-box !important;
}

body.rwd-admin-ui .group-check-grid > label{
  width: 100% !important;
}

/* Schedule compact */
body.rwd-admin-ui .date-row{
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
}

body.rwd-admin-ui .date-row input[type="date"],
body.rwd-admin-ui .date-row input[type="time"]{
  width: 160px !important;
  max-width: 160px !important;
  flex: 0 0 160px !important;
}

body.rwd-admin-ui .quick-row{
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: 10px !important;
}

/* Save bar same rail */
body.rwd-admin-ui .enterprise-form-actions,
body.rwd-admin-ui .form-actions-card{
  width: 100% !important;
  max-width: 100% !important;
  position: relative !important;
  inset: auto !important;
  z-index: 1 !important;
  min-height: 72px !important;
  padding: 16px 24px !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  box-sizing: border-box !important;
}

/* Table same rail */
body.rwd-admin-ui .event-list-card,
body.rwd-admin-ui .events-list-card{
  padding-left: 26px !important;
  padding-right: 26px !important;
}

/* Kill older overlay effect */
body.rwd-admin-ui .enterprise-form-actions::before,
body.rwd-admin-ui .enterprise-form-actions::after,
body.rwd-admin-ui .form-actions-card::before,
body.rwd-admin-ui .form-actions-card::after{
  display: none !important;
  content: none !important;
}

@media (max-width: 1180px){
  body.rwd-admin-ui .enterprise-event-form{
    grid-template-columns: 1fr !important;
  }

  body.rwd-admin-ui .enterprise-event-form > .section-basic,
  body.rwd-admin-ui .enterprise-event-form > .section-control,
  body.rwd-admin-ui .enterprise-event-form > .section-lock,
  body.rwd-admin-ui .enterprise-event-form > .section-audience,
  body.rwd-admin-ui .enterprise-event-form > .section-schedule,
  body.rwd-admin-ui .enterprise-event-form > .enterprise-form-actions,
  body.rwd-admin-ui .enterprise-event-form > .form-actions-card{
    grid-column: 1 / -1 !important;
  }

  body.rwd-admin-ui .enterprise-event-form .section-schedule .enterprise-form-grid{
    grid-template-columns: var(--phase2g-inner-label) minmax(0, 1fr) !important;
  }

  body.rwd-admin-ui .date-row input[type="date"],
  body.rwd-admin-ui .date-row input[type="time"]{
    width: 210px !important;
    max-width: 210px !important;
    flex: 0 0 210px !important;
  }
}

@media (max-width: 900px){
  body.rwd-admin-ui{
    --phase2g-rail-width: 100%;
    --phase2g-rail-max: 100%;
  }

  body.rwd-admin-ui .rwd-tabs,
  body.rwd-admin-ui .enterprise-form-shell,
  body.rwd-admin-ui .enterprise-form-hero,
  body.rwd-admin-ui .enterprise-event-hero,
  body.rwd-admin-ui .enterprise-event-form,
  body.rwd-admin-ui .event-list-card,
  body.rwd-admin-ui .events-list-card{
    width: 100% !important;
    max-width: 100% !important;
  }

  body.rwd-admin-ui .enterprise-event-form .form-section-card:not(.section-schedule) .enterprise-form-grid,
  body.rwd-admin-ui .enterprise-event-form .section-schedule .enterprise-form-grid,
  body.rwd-admin-ui .section-audience .enterprise-form-grid{
    grid-template-columns: 1fr !important;
    padding: 20px !important;
  }
}


/* Phase 2G-2Q Rail Width Root Fix
   Real fix: control the parent .wrap rail, then every block uses 100%.
   This avoids 1280/1400/1480 mixed fixed widths from earlier patches. */

body.rwd-admin-ui{
  --phase2g-rail-width: 1280px;
  --phase2g-rail-padding: 0px;
  --phase2g-rail-mobile-padding: 18px;
}

/* ROOT RAIL: this is the actual parent causing right-side mismatch */
body.rwd-admin-ui main.wrap{
  width: min(1280px, calc(100vw - 96px)) !important;
  max-width: min(1280px, calc(100vw - 96px)) !important;
  margin: 24px auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

/* Every direct visual block follows the same parent width */
body.rwd-admin-ui .rwd-tabs,
body.rwd-admin-ui .tabs,
body.rwd-admin-ui .enterprise-form-shell,
body.rwd-admin-ui .enterprise-form-hero,
body.rwd-admin-ui .enterprise-event-hero,
body.rwd-admin-ui .enterprise-event-form,
body.rwd-admin-ui .enterprise-form-actions,
body.rwd-admin-ui .form-actions-card,
body.rwd-admin-ui .event-list-card,
body.rwd-admin-ui .events-list-card,
body.rwd-admin-ui .card.event-list-card{
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

/* Keep section cards in two-column section layout */
body.rwd-admin-ui .enterprise-event-form{
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 22px !important;
  align-items: start !important;
}

/* The section cards should fill their own column only */
body.rwd-admin-ui .enterprise-event-form > .form-section-card{
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* Section placement */
body.rwd-admin-ui .enterprise-event-form > .section-basic{ grid-column: 1 !important; }
body.rwd-admin-ui .enterprise-event-form > .section-control{ grid-column: 2 !important; }
body.rwd-admin-ui .enterprise-event-form > .section-lock{ grid-column: 1 !important; }
body.rwd-admin-ui .enterprise-event-form > .section-audience{ grid-column: 2 !important; }
body.rwd-admin-ui .enterprise-event-form > .section-schedule,
body.rwd-admin-ui .enterprise-event-form > .enterprise-form-actions,
body.rwd-admin-ui .enterprise-event-form > .form-actions-card{
  grid-column: 1 / -1 !important;
}

/* Internal card grid: compact label + field for half-width card */
body.rwd-admin-ui .enterprise-event-form .form-section-card:not(.section-schedule) .enterprise-form-grid{
  display: grid !important;
  grid-template-columns: 145px minmax(0, 1fr) !important;
  gap: 18px 16px !important;
  align-items: center !important;
  padding: 22px 24px 26px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* Schedule full-width card: two side-by-side rows */
body.rwd-admin-ui .enterprise-event-form .section-schedule .enterprise-form-grid{
  display: grid !important;
  grid-template-columns: 145px minmax(0, 1fr) 145px minmax(0, 1fr) !important;
  gap: 18px 18px !important;
  align-items: center !important;
  padding: 22px 24px 26px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* Labels and fields */
body.rwd-admin-ui .enterprise-event-form .enterprise-form-grid > label{
  width: auto !important;
  max-width: 145px !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: normal !important;
  box-sizing: border-box !important;
}

body.rwd-admin-ui .enterprise-event-form .field-block,
body.rwd-admin-ui .enterprise-event-form .field-block input:not([type="checkbox"]),
body.rwd-admin-ui .enterprise-event-form .field-block select,
body.rwd-admin-ui .enterprise-event-form .field-block textarea{
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

/* Checkbox groups */
body.rwd-admin-ui .enterprise-checkrow,
body.rwd-admin-ui .date-row,
body.rwd-admin-ui .group-check-grid{
  width: 100% !important;
  max-width: 100% !important;
}

body.rwd-admin-ui .group-check-grid{
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
}

body.rwd-admin-ui .group-check-grid > label{
  width: 100% !important;
}

/* Save bar follows same width and does not float/overlay */
body.rwd-admin-ui .enterprise-form-actions,
body.rwd-admin-ui .form-actions-card{
  position: relative !important;
  inset: auto !important;
  z-index: 1 !important;
  min-height: 72px !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
}

/* Hero and Event table padding stays inside same rail */
body.rwd-admin-ui .enterprise-form-hero,
body.rwd-admin-ui .enterprise-event-hero,
body.rwd-admin-ui .event-list-card,
body.rwd-admin-ui .events-list-card{
  box-sizing: border-box !important;
}

/* Remove pseudo overlay from earlier versions */
body.rwd-admin-ui .enterprise-form-actions::before,
body.rwd-admin-ui .enterprise-form-actions::after,
body.rwd-admin-ui .form-actions-card::before,
body.rwd-admin-ui .form-actions-card::after{
  display:none !important;
  content:none !important;
}

@media (max-width: 1180px){
  body.rwd-admin-ui main.wrap{
    width: calc(100vw - 40px) !important;
    max-width: calc(100vw - 40px) !important;
  }

  body.rwd-admin-ui .enterprise-event-form{
    grid-template-columns: 1fr !important;
  }

  body.rwd-admin-ui .enterprise-event-form > .section-basic,
  body.rwd-admin-ui .enterprise-event-form > .section-control,
  body.rwd-admin-ui .enterprise-event-form > .section-lock,
  body.rwd-admin-ui .enterprise-event-form > .section-audience,
  body.rwd-admin-ui .enterprise-event-form > .section-schedule,
  body.rwd-admin-ui .enterprise-event-form > .enterprise-form-actions,
  body.rwd-admin-ui .enterprise-event-form > .form-actions-card{
    grid-column: 1 / -1 !important;
  }

  body.rwd-admin-ui .enterprise-event-form .section-schedule .enterprise-form-grid{
    grid-template-columns: 145px minmax(0,1fr) !important;
  }
}

@media (max-width: 900px){
  body.rwd-admin-ui main.wrap{
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
  }

  body.rwd-admin-ui .enterprise-event-form .form-section-card:not(.section-schedule) .enterprise-form-grid,
  body.rwd-admin-ui .enterprise-event-form .section-schedule .enterprise-form-grid{
    grid-template-columns: 1fr !important;
    padding: 20px !important;
  }

  body.rwd-admin-ui .enterprise-event-form .enterprise-form-grid > label{
    max-width:100% !important;
  }
}


/* Phase 2G-2S Rail Only Fix
   Scope: fix outer page rail / left-right spacing only.
   No form layout changes. No field/grid changes. No logic changes. */

body.rwd-admin-ui{
  --rwd-page-rail: 1280px;
  --rwd-page-gutter: 32px;
}

/* The real outer rail. This fixes right-side mismatch caused by mixed max-width + padding. */
body.rwd-admin-ui main.wrap{
  width: min(var(--rwd-page-rail), calc(100vw - (var(--rwd-page-gutter) * 2))) !important;
  max-width: min(var(--rwd-page-rail), calc(100vw - (var(--rwd-page-gutter) * 2))) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

/* Every top-level block must fit exactly inside the same rail. */
body.rwd-admin-ui main.wrap > *,
body.rwd-admin-ui .rwd-tabs,
body.rwd-admin-ui .tabs,
body.rwd-admin-ui .enterprise-form-shell,
body.rwd-admin-ui .enterprise-form-hero,
body.rwd-admin-ui .enterprise-event-hero,
body.rwd-admin-ui .enterprise-event-form,
body.rwd-admin-ui .event-list-card,
body.rwd-admin-ui .events-list-card,
body.rwd-admin-ui .card.event-list-card{
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Prevent previous fixed-width patches from forcing blocks wider/narrower than the rail. */
body.rwd-admin-ui .rwd-tabs,
body.rwd-admin-ui .tabs,
body.rwd-admin-ui .enterprise-form-shell,
body.rwd-admin-ui .enterprise-form-hero,
body.rwd-admin-ui .enterprise-event-hero,
body.rwd-admin-ui .event-list-card,
body.rwd-admin-ui .events-list-card,
body.rwd-admin-ui .card.event-list-card{
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Keep form container within rail without changing the internal form layout. */
body.rwd-admin-ui .enterprise-event-form{
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Cards inside form should never exceed the rail/column given by existing layout. */
body.rwd-admin-ui .enterprise-event-form > .form-section-card,
body.rwd-admin-ui .enterprise-event-form > .enterprise-form-actions,
body.rwd-admin-ui .enterprise-event-form > .form-actions-card{
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Table card padding stays inside the rail. */
body.rwd-admin-ui .event-list-card,
body.rwd-admin-ui .events-list-card,
body.rwd-admin-ui .card.event-list-card{
  overflow-x: auto !important;
}

/* Mobile gutters */
@media (max-width: 900px){
  body.rwd-admin-ui{
    --rwd-page-gutter: 14px;
  }

  body.rwd-admin-ui main.wrap{
    width: calc(100vw - (var(--rwd-page-gutter) * 2)) !important;
    max-width: calc(100vw - (var(--rwd-page-gutter) * 2)) !important;
  }
}


/* Phase 2G-2T Right Edge Lock
   Fix only the mismatched right edge shown in screenshot.
   Do not change form logic or field behavior. */

body.rwd-admin-ui{
  --rwd-admin-rail: 1280px;
  --rwd-admin-gutter: 32px;
}

/* 1) Root rail centered and exact */
body.rwd-admin-ui main.wrap{
  width: min(var(--rwd-admin-rail), calc(100vw - (var(--rwd-admin-gutter) * 2))) !important;
  max-width: min(var(--rwd-admin-rail), calc(100vw - (var(--rwd-admin-gutter) * 2))) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

/* 2) Main page blocks must be full rail */
body.rwd-admin-ui main.wrap > .rwd-tabs,
body.rwd-admin-ui main.wrap > .tabs,
body.rwd-admin-ui main.wrap > .enterprise-form-shell,
body.rwd-admin-ui main.wrap > .event-list-card,
body.rwd-admin-ui main.wrap > .events-list-card,
body.rwd-admin-ui main.wrap > .card{
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

/* 3) Event form shell and hero full rail */
body.rwd-admin-ui .enterprise-form-shell,
body.rwd-admin-ui .enterprise-form-hero,
body.rwd-admin-ui .enterprise-event-hero,
body.rwd-admin-ui .enterprise-event-form{
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

/* 4) If the form uses two columns, force the whole grid to fill rail */
body.rwd-admin-ui .enterprise-event-form{
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 22px !important;
  align-items: start !important;
}

/* 5) Every section card fills its column exactly */
body.rwd-admin-ui .enterprise-event-form > .form-section-card,
body.rwd-admin-ui .enterprise-event-form > .enterprise-form-actions,
body.rwd-admin-ui .enterprise-event-form > .form-actions-card{
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* 6) Full-row sections must span the same right edge as the event list */
body.rwd-admin-ui .enterprise-event-form > .section-schedule,
body.rwd-admin-ui .enterprise-event-form > .enterprise-form-actions,
body.rwd-admin-ui .enterprise-event-form > .form-actions-card{
  grid-column: 1 / -1 !important;
}

/* 7) Event list/card right edge same as form rail */
body.rwd-admin-ui .event-list-card,
body.rwd-admin-ui .events-list-card,
body.rwd-admin-ui .card.event-list-card{
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

/* 8) Prevent inner content from expanding the card wider */
body.rwd-admin-ui .event-list-card *,
body.rwd-admin-ui .events-list-card *,
body.rwd-admin-ui .enterprise-event-form *{
  box-sizing: border-box;
}

/* 9) Table scroll inside, not outside the card */
body.rwd-admin-ui .event-list-card table,
body.rwd-admin-ui .events-list-card table{
  max-width: 100% !important;
}

@media (max-width: 1180px){
  body.rwd-admin-ui .enterprise-event-form{
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 900px){
  body.rwd-admin-ui{
    --rwd-admin-gutter: 14px;
  }

  body.rwd-admin-ui main.wrap{
    width: calc(100vw - (var(--rwd-admin-gutter) * 2)) !important;
    max-width: calc(100vw - (var(--rwd-admin-gutter) * 2)) !important;
  }
}


/* Phase 2G-2U Hero Edge Final Fix
   Scope: only fix the Add Event hero width/right edge to match the section grid below. */

/* Ensure shell is full rail */
body.rwd-admin-ui main.wrap > .enterprise-form-shell{
  width:100% !important;
  max-width:100% !important;
  margin-left:0 !important;
  margin-right:0 !important;
  box-sizing:border-box !important;
}

/* Hero must use the same right edge as the two-column section grid */
body.rwd-admin-ui .enterprise-form-shell > .enterprise-form-hero,
body.rwd-admin-ui .enterprise-form-shell > .enterprise-event-hero,
body.rwd-admin-ui .enterprise-form-hero,
body.rwd-admin-ui .enterprise-event-hero{
  display:flex !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  margin-left:0 !important;
  margin-right:0 !important;
  box-sizing:border-box !important;
}

/* Keep hero inner content balanced without shrinking the card itself */
body.rwd-admin-ui .enterprise-form-hero .hero-content,
body.rwd-admin-ui .enterprise-event-hero .hero-content,
body.rwd-admin-ui .enterprise-form-hero .hero-copy,
body.rwd-admin-ui .enterprise-event-hero .hero-copy{
  min-width:0 !important;
  flex:1 1 auto !important;
}

/* Stat boxes stay on the right, but do not define card width */
body.rwd-admin-ui .enterprise-form-meta,
body.rwd-admin-ui .enterprise-hero-meta,
body.rwd-admin-ui .hero-metrics{
  flex:0 0 auto !important;
  margin-left:auto !important;
}


/* Phase 2G-2V Event Card List
   Replace event table visual with readable card rows for <=20 events. */

body.rwd-admin-ui .event-list-card{
  padding:28px !important;
}

body.rwd-admin-ui .event-card-list{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin-top:22px;
}

body.rwd-admin-ui .event-card-row{
  display:grid;
  grid-template-columns:120px minmax(280px,1.65fr) 130px minmax(150px,.75fr) minmax(190px,.9fr) 132px;
  gap:18px;
  align-items:start;
  padding:20px 18px;
  border:1px solid #e5edf8;
  border-radius:20px;
  background:linear-gradient(180deg,#ffffff,#fbfdff);
  box-shadow:0 12px 30px rgba(15,23,42,.045);
}

body.rwd-admin-ui .event-card-row:hover{
  border-color:#c9dcf5;
  box-shadow:0 18px 44px rgba(15,23,42,.075);
  transform:translateY(-1px);
}

body.rwd-admin-ui .event-status-col{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  padding-top:4px;
}

body.rwd-admin-ui .status-dot{
  width:12px;
  height:12px;
  border-radius:999px;
  background:#94a3b8;
  box-shadow:0 0 0 5px rgba(148,163,184,.14);
  flex:0 0 auto;
}

body.rwd-admin-ui .status-dot.green,
body.rwd-admin-ui .status-dot.active,
body.rwd-admin-ui .status-dot.success{
  background:#10b981;
  box-shadow:0 0 0 5px rgba(16,185,129,.14);
}

body.rwd-admin-ui .status-dot.blue,
body.rwd-admin-ui .status-dot.info{
  background:#2563eb;
  box-shadow:0 0 0 5px rgba(37,99,235,.14);
}

body.rwd-admin-ui .status-dot.gray,
body.rwd-admin-ui .status-dot.muted{
  background:#94a3b8;
}

body.rwd-admin-ui .event-status-text{
  font-weight:900;
  color:#0f213b;
  line-height:1.2;
}

body.rwd-admin-ui .event-title-line{
  font-size:16px;
  line-height:1.45;
  font-weight:900;
  color:#0f213b;
}

body.rwd-admin-ui .event-key-line{
  margin-top:2px;
  color:#64748b;
  font-weight:800;
}

body.rwd-admin-ui .event-meta-line{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}

body.rwd-admin-ui .event-meta-line span{
  display:inline-flex;
  align-items:center;
  border:1px solid #dbe7f6;
  background:#f8fbff;
  color:#536780;
  border-radius:999px;
  padding:5px 9px;
  font-size:12px;
  font-weight:900;
}

body.rwd-admin-ui .event-mini-label{
  margin-bottom:7px;
  font-size:12px;
  color:#64748b;
  font-weight:900;
}

body.rwd-admin-ui .event-date-main{
  font-size:15px;
  line-height:1.3;
  font-weight:900;
  color:#10233d;
}

body.rwd-admin-ui .compact-pill{
  padding:5px 10px !important;
  font-size:12px !important;
  line-height:1.1 !important;
  margin:2px 4px 2px 0 !important;
}

body.rwd-admin-ui .event-pill-line{
  display:flex;
  flex-wrap:wrap;
  gap:4px;
}

body.rwd-admin-ui .event-schedule-line{
  color:#334155;
  font-weight:800;
  line-height:1.35;
}

body.rwd-admin-ui .event-arrow{
  color:#94a3b8;
  font-weight:900;
  line-height:1.2;
  margin:2px 0;
}

body.rwd-admin-ui .event-actions-col{
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:stretch;
}

body.rwd-admin-ui .event-actions-col form{
  margin:0;
}

body.rwd-admin-ui .event-actions-col .btn{
  width:100%;
  justify-content:center;
  min-height:40px;
}

body.rwd-admin-ui .event-empty{
  padding:28px;
  border:1px dashed #cbd5e1;
  border-radius:18px;
  text-align:center;
  background:#f8fafc;
}

@media (max-width:1180px){
  body.rwd-admin-ui .event-card-row{
    grid-template-columns:110px minmax(260px,1fr) minmax(180px,.8fr) 132px;
  }
  body.rwd-admin-ui .event-date-col,
  body.rwd-admin-ui .event-groups-col{
    grid-column:auto;
  }
}

@media (max-width:900px){
  body.rwd-admin-ui .event-list-card{
    padding:20px !important;
  }
  body.rwd-admin-ui .event-card-row{
    grid-template-columns:1fr;
    gap:14px;
  }
  body.rwd-admin-ui .event-actions-col{
    flex-direction:row;
    flex-wrap:wrap;
  }
  body.rwd-admin-ui .event-actions-col .btn{
    width:auto;
    min-width:110px;
  }
}


/* Phase 2G-3A Content Manager UX Polish
   Scope: Content tab visual polish only. No save/load logic changes. */

body.rwd-admin-ui main.wrap{
  width:min(1280px, calc(100vw - 64px)) !important;
  max-width:min(1280px, calc(100vw - 64px)) !important;
  margin-left:auto !important;
  margin-right:auto !important;
  padding-left:0 !important;
  padding-right:0 !important;
  box-sizing:border-box !important;
}

/* Keep cards on same page rail */
body.rwd-admin-ui main.wrap > .card,
body.rwd-admin-ui main.wrap > .rwd-tabs,
body.rwd-admin-ui main.wrap > .tabs{
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
}

/* Content manager cards */
body.rwd-admin-ui .card{
  border-radius:22px;
  border:1px solid #dbe7f6;
  box-shadow:0 18px 45px rgba(15,23,42,.055);
}

/* Step cards */
body.rwd-admin-ui .step-grid,
body.rwd-admin-ui .wizard-steps{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}

body.rwd-admin-ui .step-card,
body.rwd-admin-ui .wizard-step{
  border:1px solid #dbe7f6;
  background:linear-gradient(180deg,#ffffff,#fbfdff);
  border-radius:16px;
  padding:16px;
  min-height:82px;
}

/* Content selector area */
body.rwd-admin-ui .content-manager select,
body.rwd-admin-ui .content-manager input,
body.rwd-admin-ui .content-manager textarea,
body.rwd-admin-ui .content-form select,
body.rwd-admin-ui .content-form input,
body.rwd-admin-ui .content-form textarea,
body.rwd-admin-ui textarea,
body.rwd-admin-ui select,
body.rwd-admin-ui input[type="text"],
body.rwd-admin-ui input[type="date"],
body.rwd-admin-ui input[type="time"],
body.rwd-admin-ui input[type="number"]{
  border:1px solid #cfe0f5;
  border-radius:14px;
  background:#fff;
  min-height:44px;
  padding:11px 14px;
  font-size:15px;
  font-weight:700;
  color:#10233d;
  box-shadow:0 1px 0 rgba(15,23,42,.02);
}

body.rwd-admin-ui textarea{
  min-height:74px;
  line-height:1.5;
  resize:vertical;
}

body.rwd-admin-ui textarea:focus,
body.rwd-admin-ui select:focus,
body.rwd-admin-ui input:focus{
  outline:none;
  border-color:#7eb6ff;
  box-shadow:0 0 0 4px rgba(37,99,235,.10);
}

/* Make content editing form cleaner */
body.rwd-admin-ui .content-form,
body.rwd-admin-ui form.content-form{
  display:grid;
  grid-template-columns:220px minmax(0,760px);
  gap:18px 24px;
  align-items:start;
}

body.rwd-admin-ui .content-form label,
body.rwd-admin-ui form.content-form label{
  padding-top:12px;
  font-weight:900;
  color:#10233d;
}

body.rwd-admin-ui .content-form textarea,
body.rwd-admin-ui form.content-form textarea{
  width:100%;
  max-width:760px;
  box-sizing:border-box;
}

/* Form action row */
body.rwd-admin-ui .content-form .actions,
body.rwd-admin-ui form.content-form .actions,
body.rwd-admin-ui .form-actions{
  grid-column:2;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

/* Preview card */
body.rwd-admin-ui .preview-card,
body.rwd-admin-ui .live-preview{
  border:1px solid #dbe7f6;
  border-radius:20px;
  background:linear-gradient(180deg,#ffffff,#fbfdff);
  padding:24px;
  margin-top:22px;
  box-shadow:0 14px 35px rgba(15,23,42,.045);
}

/* Info notice */
body.rwd-admin-ui .notice,
body.rwd-admin-ui .info-box{
  border-radius:16px;
  border:1px solid #bfdbfe;
  background:#eff6ff;
  color:#17345f;
  padding:16px 18px;
  font-weight:800;
}

/* Buttons consistency */
body.rwd-admin-ui .btn,
body.rwd-admin-ui button{
  border-radius:14px;
  min-height:44px;
  padding:10px 18px;
  font-weight:900;
}

@media (max-width: 980px){
  body.rwd-admin-ui .step-grid,
  body.rwd-admin-ui .wizard-steps{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  body.rwd-admin-ui .content-form,
  body.rwd-admin-ui form.content-form{
    grid-template-columns:1fr;
  }

  body.rwd-admin-ui .content-form .actions,
  body.rwd-admin-ui form.content-form .actions,
  body.rwd-admin-ui .form-actions{
    grid-column:1;
  }
}

@media (max-width: 640px){
  body.rwd-admin-ui main.wrap{
    width:calc(100vw - 28px) !important;
    max-width:calc(100vw - 28px) !important;
  }

  body.rwd-admin-ui .step-grid,
  body.rwd-admin-ui .wizard-steps{
    grid-template-columns:1fr;
  }
}


/* Phase 2G-3B2 Safe Theme Create/Upload Polish
   Safe scope: only styles the card containing .theme-create-upload-heading.
   Does NOT affect Theme Library filter/search/cards. */

body.rwd-admin-ui .theme-create-upload-heading{
  margin-bottom:18px;
}

/* Only the two forms immediately after the heading get card styling */
body.rwd-admin-ui .theme-create-upload-heading ~ form{
  max-width:640px;
  border:1px solid #dbe7f6;
  border-radius:20px;
  background:linear-gradient(180deg,#ffffff,#fbfdff);
  padding:22px;
  margin:18px 0 0;
  box-shadow:0 12px 32px rgba(15,23,42,.045);
  box-sizing:border-box;
}

/* Remove only divider after the first form in this block */
body.rwd-admin-ui .theme-create-upload-heading ~ hr{
  max-width:640px;
  border:0;
  height:1px;
  margin:18px 0;
  background:#e5edf8;
}

/* Inputs inside this specific block only */
body.rwd-admin-ui .theme-create-upload-heading ~ form input[type="text"],
body.rwd-admin-ui .theme-create-upload-heading ~ form input[type="file"]{
  width:100% !important;
  max-width:100% !important;
  min-height:46px;
  border-radius:14px;
  box-sizing:border-box;
}

/* File input looks softer but remains native */
body.rwd-admin-ui .theme-create-upload-heading ~ form input[type="file"]{
  padding:12px;
  border:1px dashed #bcd2ee;
  background:#f8fbff;
}

/* Keep labels readable */
body.rwd-admin-ui .theme-create-upload-heading ~ form label,
body.rwd-admin-ui .theme-create-upload-heading ~ form .form-label{
  font-weight:900;
  color:#10233d;
}

/* Button spacing only in this block */
body.rwd-admin-ui .theme-create-upload-heading ~ form button,
body.rwd-admin-ui .theme-create-upload-heading ~ form .btn{
  margin-top:12px;
}

/* Desktop: two small cards side-by-side if markup allows them as sibling forms */
@media (min-width: 980px){
  body.rwd-admin-ui .theme-create-upload-heading ~ form{
    width:calc(50% - 12px);
    display:inline-block;
    vertical-align:top;
  }

  body.rwd-admin-ui .theme-create-upload-heading ~ form + hr{
    display:none;
  }

  body.rwd-admin-ui .theme-create-upload-heading ~ form + hr + form,
  body.rwd-admin-ui .theme-create-upload-heading ~ form + form{
    margin-left:20px;
  }
}

@media (max-width: 979px){
  body.rwd-admin-ui .theme-create-upload-heading ~ form{
    width:100%;
    max-width:100%;
  }
}


/* Phase 2G-3C Theme Create/Upload Equal Cards */
body.rwd-admin-ui .theme-create-upload-heading ~ form{
  min-height:240px !important;
  display:inline-flex !important;
  flex-direction:column !important;
  justify-content:space-between !important;
  padding:28px !important;
  box-sizing:border-box !important;
}

body.rwd-admin-ui .theme-create-upload-heading ~ form input[type="text"],
body.rwd-admin-ui .theme-create-upload-heading ~ form input[type="file"]{
  width:100% !important;
  max-width:100% !important;
  height:48px !important;
  min-height:48px !important;
  font-size:15px !important;
}

body.rwd-admin-ui .theme-create-upload-heading ~ form input[type="file"]{
  display:flex !important;
  align-items:center !important;
}

body.rwd-admin-ui .theme-create-upload-heading ~ form button,
body.rwd-admin-ui .theme-create-upload-heading ~ form .btn{
  align-self:center !important;
  margin-top:22px !important;
  min-width:240px !important;
}

@media (min-width:980px){
  body.rwd-admin-ui .theme-create-upload-heading ~ form{
    width:calc(50% - 14px) !important;
  }
}

@media (max-width:979px){
  body.rwd-admin-ui .theme-create-upload-heading ~ form{
    display:flex !important;
    width:100% !important;
  }
}


/* Phase 2G-3D Theme Create/Upload Input Align
   Scope: fix only the create/upload theme cards input alignment and width. */

body.rwd-admin-ui .theme-create-upload-heading ~ form{
  min-height:260px !important;
  padding:28px 30px !important;
  box-sizing:border-box !important;
}

/* Desktop: keep the two cards equal and aligned */
@media (min-width:980px){
  body.rwd-admin-ui .theme-create-upload-heading ~ form{
    width:calc(50% - 14px) !important;
    max-width:calc(50% - 14px) !important;
    display:inline-grid !important;
    grid-template-columns:150px minmax(0, 1fr) !important;
    grid-auto-rows:auto !important;
    gap:20px 22px !important;
    align-items:center !important;
    vertical-align:top !important;
  }

  body.rwd-admin-ui .theme-create-upload-heading ~ form + hr{
    display:none !important;
  }

  body.rwd-admin-ui .theme-create-upload-heading ~ form + hr + form,
  body.rwd-admin-ui .theme-create-upload-heading ~ form + form{
    margin-left:22px !important;
  }
}

/* Make labels stable */
body.rwd-admin-ui .theme-create-upload-heading ~ form label,
body.rwd-admin-ui .theme-create-upload-heading ~ form .form-label{
  display:block !important;
  width:150px !important;
  max-width:150px !important;
  margin:0 !important;
  padding:0 !important;
  font-size:15px !important;
  font-weight:900 !important;
  color:#10233d !important;
  white-space:normal !important;
}

/* Force all text/file inputs in this block to fill the field column */
body.rwd-admin-ui .theme-create-upload-heading ~ form input[type="text"],
body.rwd-admin-ui .theme-create-upload-heading ~ form input[type="file"]{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  height:50px !important;
  min-height:50px !important;
  padding:12px 14px !important;
  font-size:15px !important;
  border-radius:14px !important;
  box-sizing:border-box !important;
}

/* File input should visually match field width */
body.rwd-admin-ui .theme-create-upload-heading ~ form input[type="file"]{
  border:1px dashed #bcd2ee !important;
  background:#f8fbff !important;
}

/* Buttons align under the field column, not floating randomly */
@media (min-width:980px){
  body.rwd-admin-ui .theme-create-upload-heading ~ form button,
  body.rwd-admin-ui .theme-create-upload-heading ~ form .btn{
    grid-column:2 !important;
    justify-self:start !important;
    align-self:end !important;
    min-width:260px !important;
    margin-top:8px !important;
  }
}

/* Upload form has 2 rows before button, keep spacing balanced */
body.rwd-admin-ui .theme-create-upload-heading ~ form:nth-of-type(2){
  align-content:center !important;
}

/* Mobile fallback */
@media (max-width:979px){
  body.rwd-admin-ui .theme-create-upload-heading ~ form{
    display:grid !important;
    grid-template-columns:1fr !important;
    width:100% !important;
    max-width:100% !important;
    gap:12px !important;
  }

  body.rwd-admin-ui .theme-create-upload-heading ~ form label,
  body.rwd-admin-ui .theme-create-upload-heading ~ form .form-label{
    width:100% !important;
    max-width:100% !important;
  }

  body.rwd-admin-ui .theme-create-upload-heading ~ form button,
  body.rwd-admin-ui .theme-create-upload-heading ~ form .btn{
    justify-self:start !important;
    min-width:220px !important;
  }
}


/* Phase 2G-3E Restore Theme Input Width
   Fix broken tiny inputs caused by previous grid override.
   Keep card size, restore normal input/file field layout. */

body.rwd-admin-ui .theme-create-upload-heading ~ form{
  display:inline-flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  align-items:stretch !important;
  gap:18px !important;
  min-height:260px !important;
  padding:30px !important;
  box-sizing:border-box !important;
}

@media (min-width:980px){
  body.rwd-admin-ui .theme-create-upload-heading ~ form{
    width:calc(50% - 14px) !important;
    max-width:calc(50% - 14px) !important;
    vertical-align:top !important;
  }

  body.rwd-admin-ui .theme-create-upload-heading ~ form + hr{
    display:none !important;
  }

  body.rwd-admin-ui .theme-create-upload-heading ~ form + hr + form,
  body.rwd-admin-ui .theme-create-upload-heading ~ form + form{
    margin-left:22px !important;
  }
}

/* Labels above fields inside each card */
body.rwd-admin-ui .theme-create-upload-heading ~ form label,
body.rwd-admin-ui .theme-create-upload-heading ~ form .form-label{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  margin:0 0 8px 0 !important;
  padding:0 !important;
  font-size:15px !important;
  font-weight:900 !important;
  color:#10233d !important;
}

/* Restore text/file input as real wide fields */
body.rwd-admin-ui .theme-create-upload-heading ~ form input[type="text"],
body.rwd-admin-ui .theme-create-upload-heading ~ form input[type="file"]{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  min-width:240px !important;
  height:50px !important;
  min-height:50px !important;
  padding:12px 14px !important;
  font-size:15px !important;
  border-radius:14px !important;
  box-sizing:border-box !important;
  justify-self:stretch !important;
  align-self:stretch !important;
}

/* File input visual */
body.rwd-admin-ui .theme-create-upload-heading ~ form input[type="file"]{
  border:1px dashed #bcd2ee !important;
  background:#f8fbff !important;
}

/* Buttons centered and equal */
body.rwd-admin-ui .theme-create-upload-heading ~ form button,
body.rwd-admin-ui .theme-create-upload-heading ~ form .btn{
  align-self:center !important;
  justify-self:center !important;
  min-width:260px !important;
  margin-top:8px !important;
}

/* Safety: hidden inputs must stay hidden */
body.rwd-admin-ui .theme-create-upload-heading ~ form input[type="hidden"]{
  display:none !important;
}

@media (max-width:979px){
  body.rwd-admin-ui .theme-create-upload-heading ~ form{
    width:100% !important;
    max-width:100% !important;
    display:flex !important;
  }
}


/* Phase 2G-3H Exact Real Input Fix
   Fix ONLY the 2 real folder inputs:
   - mother-day
   - asalha-bucha
   No file input, no buttons, no cards, no theme list. */

body.rwd-admin-ui input.theme-folder-exact-input{
  display:block !important;
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  height:52px !important;
  min-height:52px !important;
  padding:13px 16px !important;
  font-size:16px !important;
  line-height:1.2 !important;
  border-radius:14px !important;
  box-sizing:border-box !important;
}

/* Make only the direct form-grid field column wide enough for these exact inputs */
body.rwd-admin-ui .theme-create-upload-heading ~ form .form-grid:has(input.theme-folder-exact-input){
  grid-template-columns:150px minmax(0, 1fr) !important;
  column-gap:24px !important;
}

/* Keep action button under the field column only in these two forms */
body.rwd-admin-ui .theme-create-upload-heading ~ form .form-grid:has(input.theme-folder-exact-input) .form-actions{
  grid-column:2 !important;
}

/* Mobile safe */
@media (max-width: 979px){
  body.rwd-admin-ui .theme-create-upload-heading ~ form .form-grid:has(input.theme-folder-exact-input){
    grid-template-columns:1fr !important;
  }

  body.rwd-admin-ui .theme-create-upload-heading ~ form .form-grid:has(input.theme-folder-exact-input) .form-actions{
    grid-column:1 !important;
  }
}


/* Phase 2G-3I Remove Black Focus Border
   Scope: only the 2 exact theme folder inputs. */

body.rwd-admin-ui input.theme-folder-exact-input{
  border:1px solid #cfe0f5 !important;
  outline:none !important;
  box-shadow:none !important;
}

body.rwd-admin-ui input.theme-folder-exact-input:focus,
body.rwd-admin-ui input.theme-folder-exact-input:focus-visible,
body.rwd-admin-ui input.theme-folder-exact-input:active{
  border-color:#7eb6ff !important;
  outline:none !important;
  box-shadow:0 0 0 4px rgba(37,99,235,.10) !important;
}


/* Phase 2G-3K Safe Content Select Polish
   Fix broken 3J by targeting only .content-select-form.
   No broad :has selectors. */

/* Restore and polish only content selector form */
body.rwd-admin-ui form.content-select-form{
  display:grid !important;
  grid-template-columns:220px minmax(0, 760px) !important;
  gap:16px 24px !important;
  align-items:center !important;
  margin-top:22px !important;
}

/* Labels 1-4 */
body.rwd-admin-ui form.content-select-form > label{
  display:flex !important;
  align-items:center !important;
  min-height:48px !important;
  margin:0 !important;
  padding:0 !important;
  font-size:16px !important;
  font-weight:900 !important;
  color:#10233d !important;
  line-height:1.25 !important;
  white-space:normal !important;
}

/* The content form usually has field blocks/divs after labels */
body.rwd-admin-ui form.content-select-form select{
  width:100% !important;
  max-width:760px !important;
  min-height:48px !important;
  height:48px !important;
  padding:0 44px 0 16px !important;
  border:1px solid #cfe0f5 !important;
  border-radius:14px !important;
  background-color:#fff !important;
  color:#10233d !important;
  font-size:15px !important;
  font-weight:800 !important;
  box-sizing:border-box !important;
}

/* Help text must stay under select, not become a narrow column */
body.rwd-admin-ui form.content-select-form .muted,
body.rwd-admin-ui form.content-select-form small,
body.rwd-admin-ui form.content-select-form .help-text{
  display:block !important;
  width:100% !important;
  max-width:760px !important;
  margin:6px 0 0 0 !important;
  color:#64748b !important;
  font-size:13px !important;
  font-weight:800 !important;
  line-height:1.45 !important;
  white-space:normal !important;
}

/* Action buttons align with select column */
body.rwd-admin-ui form.content-select-form .form-actions,
body.rwd-admin-ui form.content-select-form .actions{
  grid-column:2 !important;
  display:flex !important;
  gap:10px !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  margin-top:4px !important;
}

body.rwd-admin-ui form.content-select-form select:focus{
  outline:none !important;
  border-color:#7eb6ff !important;
  box-shadow:0 0 0 4px rgba(37,99,235,.10) !important;
}

/* Mobile */
@media (max-width: 980px){
  body.rwd-admin-ui form.content-select-form{
    grid-template-columns:1fr !important;
    gap:10px !important;
  }

  body.rwd-admin-ui form.content-select-form > label{
    min-height:auto !important;
    padding-top:8px !important;
  }

  body.rwd-admin-ui form.content-select-form .form-actions,
  body.rwd-admin-ui form.content-select-form .actions{
    grid-column:1 !important;
  }

  body.rwd-admin-ui form.content-select-form select,
  body.rwd-admin-ui form.content-select-form .muted,
  body.rwd-admin-ui form.content-select-form small,
  body.rwd-admin-ui form.content-select-form .help-text{
    max-width:100% !important;
  }
}



/* Phase 2G-3O Content Dropdown Restore + Safe Polish
   Scope: Content Manager selector only.
   Restore dropdown width and prevent vertical text collapse. */

body.rwd-admin-ui form.content-selector-safe-form{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
}

body.rwd-admin-ui form.content-selector-safe-form .form-grid{
  display:grid !important;
  grid-template-columns:220px minmax(520px, 760px) !important;
  gap:16px 24px !important;
  align-items:start !important;
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
}

body.rwd-admin-ui form.content-selector-safe-form .form-grid > label{
  display:flex !important;
  align-items:center !important;
  width:220px !important;
  min-width:220px !important;
  max-width:220px !important;
  min-height:46px !important;
  margin:0 !important;
  padding:0 !important;
  color:#10233d !important;
  font-size:16px !important;
  font-weight:900 !important;
  line-height:1.35 !important;
  white-space:normal !important;
}

body.rwd-admin-ui form.content-selector-safe-form .form-grid > div{
  display:block !important;
  width:100% !important;
  min-width:520px !important;
  max-width:760px !important;
  box-sizing:border-box !important;
}

body.rwd-admin-ui form.content-selector-safe-form select{
  display:block !important;
  width:100% !important;
  min-width:520px !important;
  max-width:760px !important;
  height:46px !important;
  min-height:46px !important;
  padding:0 14px !important;
  border:1px solid #cfe0f5 !important;
  border-radius:12px !important;
  background:#fff !important;
  color:#10233d !important;
  font-size:15px !important;
  font-weight:800 !important;
  line-height:46px !important;
  box-sizing:border-box !important;
  box-shadow:0 1px 0 rgba(15,23,42,.02) !important;
}

body.rwd-admin-ui form.content-selector-safe-form .content-hint,
body.rwd-admin-ui form.content-selector-safe-form .muted,
body.rwd-admin-ui form.content-selector-safe-form small{
  display:block !important;
  width:100% !important;
  min-width:520px !important;
  max-width:760px !important;
  margin:6px 0 0 0 !important;
  color:#64748b !important;
  font-size:13px !important;
  font-weight:800 !important;
  line-height:1.45 !important;
  white-space:normal !important;
  word-break:normal !important;
  overflow-wrap:normal !important;
  box-sizing:border-box !important;
}

body.rwd-admin-ui form.content-selector-safe-form select:focus{
  outline:none !important;
  border-color:#2563eb !important;
  box-shadow:0 0 0 4px rgba(37,99,235,.10) !important;
}

body.rwd-admin-ui form.content-selector-safe-form .form-actions{
  grid-column:2 !important;
  display:flex !important;
  gap:10px !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  margin-top:6px !important;
  width:100% !important;
  max-width:760px !important;
}

@media (max-width:980px){
  body.rwd-admin-ui form.content-selector-safe-form .form-grid{
    grid-template-columns:1fr !important;
    gap:10px !important;
  }

  body.rwd-admin-ui form.content-selector-safe-form .form-grid > label,
  body.rwd-admin-ui form.content-selector-safe-form .form-grid > div,
  body.rwd-admin-ui form.content-selector-safe-form select,
  body.rwd-admin-ui form.content-selector-safe-form .content-hint,
  body.rwd-admin-ui form.content-selector-safe-form .muted,
  body.rwd-admin-ui form.content-selector-safe-form small,
  body.rwd-admin-ui form.content-selector-safe-form .form-actions{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
  }

  body.rwd-admin-ui form.content-selector-safe-form .form-actions{
    grid-column:1 !important;
  }
}




/* Phase 2G-3P Site Group Dropdown Polish
   Scope: Add Site > Group dropdown only. */

body.rwd-admin-ui select.site-group-select{
  display:block !important;
  width:100% !important;
  max-width:760px !important;
  min-width:320px !important;
  height:46px !important;
  min-height:46px !important;
  padding:0 14px !important;
  border:1px solid #cfe0f5 !important;
  border-radius:12px !important;
  background:#fff !important;
  color:#10233d !important;
  font-size:15px !important;
  font-weight:800 !important;
  line-height:46px !important;
  box-sizing:border-box !important;
  box-shadow:0 1px 0 rgba(15,23,42,.02) !important;
}

body.rwd-admin-ui select.site-group-select:hover{
  border-color:#9ec5fe !important;
}

body.rwd-admin-ui select.site-group-select:focus,
body.rwd-admin-ui select.site-group-select:focus-visible{
  outline:none !important;
  border-color:#2563eb !important;
  box-shadow:0 0 0 4px rgba(37,99,235,.10) !important;
}

@media (max-width:980px){
  body.rwd-admin-ui select.site-group-select{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
  }
}




/* Phase 2G-3Q Event Status Dropdown Polish
   Scope: Add Event > Status dropdown only. */

body.rwd-admin-ui select.event-status-select{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  height:46px !important;
  min-height:46px !important;
  padding:0 14px !important;
  border:1px solid #cfe0f5 !important;
  border-radius:12px !important;
  background:#fff !important;
  color:#10233d !important;
  font-size:15px !important;
  font-weight:800 !important;
  line-height:46px !important;
  box-sizing:border-box !important;
  box-shadow:0 1px 0 rgba(15,23,42,.02) !important;
}

body.rwd-admin-ui select.event-status-select:hover{
  border-color:#9ec5fe !important;
}

body.rwd-admin-ui select.event-status-select:focus,
body.rwd-admin-ui select.event-status-select:focus-visible{
  outline:none !important;
  border-color:#2563eb !important;
  box-shadow:0 0 0 4px rgba(37,99,235,.10) !important;
}


/* Phase 2G-3Q2 Exact Event Status Dropdown Polish
   Scope: Add Event section 2 > Status select only. */

body.rwd-admin-ui .section-control select.event-status-select{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  height:46px !important;
  min-height:46px !important;
  padding:0 14px !important;
  border:1px solid #cfe0f5 !important;
  border-radius:12px !important;
  background:#fff !important;
  color:#10233d !important;
  font-size:15px !important;
  font-weight:800 !important;
  line-height:46px !important;
  box-sizing:border-box !important;
  box-shadow:0 1px 0 rgba(15,23,42,.02) !important;
}

body.rwd-admin-ui .section-control select.event-status-select:hover{
  border-color:#9ec5fe !important;
}

body.rwd-admin-ui .section-control select.event-status-select:focus,
body.rwd-admin-ui .section-control select.event-status-select:focus-visible{
  outline:none !important;
  border-color:#2563eb !important;
  box-shadow:0 0 0 4px rgba(37,99,235,.10) !important;
}




/* Phase 2G-3R Header Brand Logo
   Scope: Header brand logo and title only. */

body.rwd-admin-ui .brand-logo-image,
body.rwd-admin-ui .admin-logo.brand-logo-image,
body.rwd-admin-ui .brand-logo.brand-logo-image{
  width:72px !important;
  height:72px !important;
  border-radius:999px !important;
  overflow:hidden !important;
  background:#19365f !important;
  box-shadow:0 18px 32px rgba(0,0,0,.18) !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0 !important;
}

body.rwd-admin-ui .brand-logo-image img,
body.rwd-admin-ui .admin-logo.brand-logo-image img,
body.rwd-admin-ui .brand-logo.brand-logo-image img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  display:block !important;
}

/* fallback if header logo selector is not replaced but image is inside old logo class */
body.rwd-admin-ui header img[src*="rwd1989.png"],
body.rwd-admin-ui .admin-header img[src*="rwd1989.png"],
body.rwd-admin-ui .brand img[src*="rwd1989.png"]{
  width:72px !important;
  height:72px !important;
  border-radius:999px !important;
  object-fit:cover !important;
  display:block !important;
}




/* Phase 2G-3S Header Brand Final Fix
   Scope: Header logo + title only. Remove orange offset/old badge style. */

body.rwd-admin-ui .admin-brand-logo{
  width:72px !important;
  height:72px !important;
  min-width:72px !important;
  min-height:72px !important;
  border-radius:999px !important;
  overflow:hidden !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0 !important;
  margin:0 !important;
  background:#19365f !important;
  border:0 !important;
  outline:0 !important;
  box-shadow:0 18px 32px rgba(0,0,0,.18) !important;
}

body.rwd-admin-ui .admin-brand-logo::before,
body.rwd-admin-ui .admin-brand-logo::after{
  content:none !important;
  display:none !important;
}

body.rwd-admin-ui .admin-brand-logo img{
  width:100% !important;
  height:100% !important;
  display:block !important;
  object-fit:cover !important;
  border-radius:999px !important;
  border:0 !important;
  outline:0 !important;
  box-shadow:none !important;
}

/* Remove orange badge styling from old logo classes if still present in cache/markup */
body.rwd-admin-ui .admin-logo,
body.rwd-admin-ui .brand-logo,
body.rwd-admin-ui .brand-mark{
  border-color:transparent !important;
}

body.rwd-admin-ui .admin-logo::before,
body.rwd-admin-ui .admin-logo::after,
body.rwd-admin-ui .brand-logo::before,
body.rwd-admin-ui .brand-logo::after,
body.rwd-admin-ui .brand-mark::before,
body.rwd-admin-ui .brand-mark::after{
  content:none !important;
  display:none !important;
}

/* Header title final */
body.rwd-admin-ui .brand-title h1,
body.rwd-admin-ui .admin-brand h1,
body.rwd-admin-ui header h1{
  letter-spacing:-.02em !important;
}


/* Phase 2G-3S2 Exact Header Logo Fix
   Real header markup uses .top .logo. Remove orange offset and style logo image cleanly. */

body.rwd-admin-ui .top .brand .logo{
  width:72px !important;
  height:72px !important;
  min-width:72px !important;
  min-height:72px !important;
  border-radius:999px !important;
  overflow:hidden !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0 !important;
  margin:0 !important;
  background:#19365f !important;
  border:0 !important;
  outline:0 !important;
  color:transparent !important;
  box-shadow:0 18px 32px rgba(0,0,0,.18) !important;
}

body.rwd-admin-ui .top .brand .logo::before,
body.rwd-admin-ui .top .brand .logo::after{
  content:none !important;
  display:none !important;
}

body.rwd-admin-ui .top .brand .logo img{
  width:100% !important;
  height:100% !important;
  display:block !important;
  object-fit:cover !important;
  border-radius:999px !important;
  border:0 !important;
  outline:0 !important;
  box-shadow:none !important;
}

body.rwd-admin-ui .top .brand h1{
  font-size:30px !important;
  letter-spacing:-.02em !important;
}



/* Phase 2G-4C Login Lock Final
   Scope: Login UI only. No login/session/security logic changes. */

body.rwd-login-page{
  min-height:100vh !important;
  margin:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:
    radial-gradient(circle at 16% 18%, rgba(37,99,235,.10), transparent 30%),
    radial-gradient(circle at 86% 16%, rgba(255,140,66,.08), transparent 26%),
    linear-gradient(180deg,#eef5ff 0%,#f8fbff 58%,#ffffff 100%) !important;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important;
  color:#0b1730 !important;
  padding:26px !important;
}

body.rwd-login-page::before{
  content:"" !important;
  position:fixed !important;
  inset:0 0 auto 0 !important;
  height:104px !important;
  background:linear-gradient(135deg,#07162d 0%,#0f2b55 56%,#1c4582 100%) !important;
  z-index:-1 !important;
  box-shadow:0 14px 40px rgba(15,43,85,.15) !important;
}

body.rwd-login-page .rwd-login-card,
body.rwd-login-page .login,
body.rwd-login-page .box{
  width:min(486px, calc(100vw - 40px)) !important;
  margin:-18px auto 0 !important;
  padding:34px 34px 30px !important;
  background:rgba(255,255,255,.97) !important;
  border:1px solid #d8e6f7 !important;
  border-radius:26px !important;
  box-shadow:0 28px 80px rgba(15,43,85,.18) !important;
  box-sizing:border-box !important;
}

body.rwd-login-page .rwd-login-logo{
  width:78px !important;
  height:78px !important;
  border-radius:999px !important;
  overflow:hidden !important;
  background:#19365f !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  margin:0 auto 18px !important;
  box-shadow:
    0 14px 30px rgba(15,43,85,.25),
    0 0 0 6px rgba(255,255,255,.92) !important;
}

body.rwd-login-page .rwd-login-logo img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  display:block !important;
  border-radius:999px !important;
}

body.rwd-login-page h1{
  margin:0 auto 8px !important;
  color:#07162d !important;
  font-size:27px !important;
  line-height:1.18 !important;
  letter-spacing:-.035em !important;
  text-align:center !important;
  font-weight:900 !important;
  max-width:400px !important;
}

body.rwd-login-page .rwd-login-subtitle{
  margin:0 0 20px !important;
  color:#64748b !important;
  text-align:center !important;
  font-size:15px !important;
  line-height:1.55 !important;
  font-weight:750 !important;
}

body.rwd-login-page .rwd-login-alert{
  margin:0 0 16px !important;
  padding:12px 14px !important;
  border-radius:14px !important;
  border:1px solid #fecaca !important;
  background:#fff1f2 !important;
  color:#b91c1c !important;
  font-size:14px !important;
  font-weight:850 !important;
  text-align:center !important;
}

body.rwd-login-page label{
  display:block !important;
  margin:14px 0 7px !important;
  color:#0f1f3a !important;
  font-size:14px !important;
  font-weight:850 !important;
}

body.rwd-login-page input[type="text"],
body.rwd-login-page input[type="password"],
body.rwd-login-page input[name="username"],
body.rwd-login-page input[name="password"]{
  width:100% !important;
  height:52px !important;
  padding:0 16px !important;
  border:1px solid #cfe0f5 !important;
  border-radius:14px !important;
  background:#fff !important;
  color:#10233d !important;
  font-size:16px !important;
  font-weight:750 !important;
  box-sizing:border-box !important;
  outline:none !important;
  box-shadow:0 1px 0 rgba(15,23,42,.02) !important;
  transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease !important;
}

body.rwd-login-page input::placeholder{
  color:#9aa9bf !important;
  font-weight:650 !important;
}

body.rwd-login-page input[type="text"]:focus,
body.rwd-login-page input[type="password"]:focus,
body.rwd-login-page input[name="username"]:focus,
body.rwd-login-page input[name="password"]:focus{
  border-color:#2563eb !important;
  box-shadow:
    0 0 0 4px rgba(37,99,235,.12),
    0 10px 24px rgba(37,99,235,.10) !important;
  transform:translateY(-1px) !important;
}

body.rwd-login-page button,
body.rwd-login-page .btn{
  width:100% !important;
  height:54px !important;
  margin-top:20px !important;
  border:0 !important;
  border-radius:15px !important;
  background:linear-gradient(135deg,#1d4ed8,#2563eb) !important;
  color:#fff !important;
  font-size:16px !important;
  font-weight:900 !important;
  cursor:pointer !important;
  box-shadow:0 18px 36px rgba(37,99,235,.28) !important;
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease !important;
}

body.rwd-login-page button:hover,
body.rwd-login-page .btn:hover{
  transform:translateY(-1px) !important;
  box-shadow:0 22px 42px rgba(37,99,235,.34) !important;
  filter:saturate(1.05) !important;
}

body.rwd-login-page .rwd-login-footer{
  margin-top:16px !important;
  padding-top:14px !important;
  border-top:1px solid #e6eef8 !important;
  text-align:center !important;
  color:#94a3b8 !important;
  font-size:12px !important;
  line-height:1.65 !important;
  font-weight:750 !important;
}

body.rwd-login-page .rwd-login-footer span{
  color:#a7b5c8 !important;
  font-weight:800 !important;
}

@media (max-width:520px){
  body.rwd-login-page{
    padding:20px !important;
    align-items:flex-start !important;
    padding-top:78px !important;
  }
  body.rwd-login-page::before{
    height:92px !important;
  }
  body.rwd-login-page .rwd-login-card,
  body.rwd-login-page .login,
  body.rwd-login-page .box{
    margin:0 auto !important;
    padding:28px 22px 24px !important;
    border-radius:22px !important;
  }
  body.rwd-login-page h1{
    font-size:24px !important;
  }
}
