/* Classic Design v1 — fix box50 frame (lm slice was width=5 but asset is 15px; corner seams) */
body:not(.cms-design-v2) table.cms-box50-has-title,
body:not(.cms-design-v2) table.cms-box50-no-title {
  border: 1px solid #083352 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: #c8d0d4 !important;
  box-sizing: border-box;
  overflow: hidden;
}

/* Collapse decorative edge/footer cells so title+body share one clean frame */
body:not(.cms-design-v2) table.cms-box50-has-title > tbody > tr > td.cms-box50-edge,
body:not(.cms-design-v2) table.cms-box50-no-title > tbody > tr > td.cms-box50-edge,
body:not(.cms-design-v2) table.cms-box50-has-title > tbody > tr > td:first-child,
body:not(.cms-design-v2) table.cms-box50-has-title > tbody > tr > td:last-child,
body:not(.cms-design-v2) table.cms-box50-no-title > tbody > tr > td:first-child,
body:not(.cms-design-v2) table.cms-box50-no-title > tbody > tr > td:last-child {
  width: 0 !important;
  max-width: 0 !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  background: none !important;
  background-image: none !important;
  font-size: 0 !important;
  line-height: 0 !important;
}
body:not(.cms-design-v2) table.cms-box50-has-title > tbody > tr > td.cms-box50-edge img,
body:not(.cms-design-v2) table.cms-box50-no-title > tbody > tr > td.cms-box50-edge img,
body:not(.cms-design-v2) table.cms-box50-has-title > tbody > tr > td:first-child img,
body:not(.cms-design-v2) table.cms-box50-has-title > tbody > tr > td:last-child img,
body:not(.cms-design-v2) table.cms-box50-no-title > tbody > tr > td:first-child img,
body:not(.cms-design-v2) table.cms-box50-no-title > tbody > tr > td:last-child img {
  display: none !important;
}

body:not(.cms-design-v2) table.cms-box50-has-title > tbody > tr.cms-box50-footer,
body:not(.cms-design-v2) table.cms-box50-no-title > tbody > tr.cms-box50-footer,
body:not(.cms-design-v2) table.cms-box50-has-title > tbody > tr:last-child:not(.cms-box50-title):not(.cms-box50-body),
body:not(.cms-design-v2) table.cms-box50-no-title > tbody > tr:last-child:not(.cms-box50-body) {
  display: none !important;
}

body:not(.cms-design-v2) table.cms-box50-has-title > tbody > tr > td:nth-child(2),
body:not(.cms-design-v2) table.cms-box50-no-title > tbody > tr > td:nth-child(2),
body:not(.cms-design-v2) table.cms-box50-has-title > tbody > tr > td.cms-box50-content,
body:not(.cms-design-v2) table.cms-box50-no-title > tbody > tr > td.cms-box50-content {
  width: 100% !important;
}

body:not(.cms-design-v2) table.cms-box50-has-title > tbody > tr.cms-box50-title > td:nth-child(2) {
  background-color: #0a3a5c !important;
  background-image: url('/images/box50/bg.png') !important;
  background-repeat: repeat-x !important;
  padding: 6px 10px !important;
  border: 0 !important;
}

body:not(.cms-design-v2) table.cms-box50-has-title > tbody > tr.cms-box50-title > td:nth-child(2) p {
  margin: 0 !important;
}

body:not(.cms-design-v2) table.cms-box50-has-title > tbody > tr.cms-box50-body > td:nth-child(2),
body:not(.cms-design-v2) table.cms-box50-no-title > tbody > tr.cms-box50-body > td:nth-child(2),
body:not(.cms-design-v2) table.cms-box50-has-title > tbody > tr.cms-box50-body > td.cms-box50-content,
body:not(.cms-design-v2) table.cms-box50-no-title > tbody > tr.cms-box50-body > td.cms-box50-content {
  padding: 8px 10px !important;
  background: #c8d0d4 !important;
  background-image: none !important;
}

/* Login form: keep fields inside the sidebar column */
#Loginform table {
  width: 100% !important;
  max-width: 100%;
  table-layout: fixed;
}
#Loginform input[type="text"],
#Loginform input[type="password"] {
  width: 100%;
  max-width: 125px;
  box-sizing: border-box;
}
.cms-box50-wrap {
  max-width: 100%;
  overflow: hidden;
  padding: 0 !important;
  box-sizing: border-box;
}

/*
 * Center + widen login box in blue sidebar (cpanel_13.jpg).
 * Was 160px; +12.5% → 180px (at least +10%), still inset in ~267px column.
 */
body:not(.cms-design-v2) td[background*="cpanel_13"]:has(> table[width="160"]) {
  text-align: center !important;
  vertical-align: top !important;
}
body:not(.cms-design-v2) td[background*="cpanel_13"] > table[width="160"],
body:not(.cms-design-v2) td[background*="cpanel_13"] > p > table[width="160"] {
  margin-left: auto !important;
  margin-right: auto !important;
  float: none !important;
  display: table !important;
  width: 180px !important;
  max-width: calc(100% - 40px) !important;
}
body:not(.cms-design-v2) td[background*="cpanel_13"] table.cms-box50-has-title,
body:not(.cms-design-v2) td[background*="cpanel_13"] table.cms-box50-no-title {
  width: 100% !important;
  max-width: 180px !important;
}
