/*
 * Planning Shepherd theme — faithful port of the legacy visual identity.
 *
 * Sources (ps-app-ecs/src/resources/stylesheets/):
 *   site.css 14.7.1, defaults.css 12.10.2, dropdown_menu.css 12.10.8,
 *   plus the lightswitch rules from magic.13.5.17.css.
 * Rewritten as clean modern CSS (no vendor-prefix gradients, no IE filters,
 * no float-clearing hacks) but the RENDERED look matches legacy: same
 * palette, logo placement, nav bar, table borders/stripes, form rhythm.
 *
 * Image assets in /images/ are copied verbatim from
 * ps-app-ecs/src/resources/images/ (see public/images provenance note).
 */

/* ---------------------------------------------------------------- base */

* { box-sizing: content-box; } /* legacy default; widths were tuned for it */

body {
  background-color: #eee;
  color: #404041;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 12px;
  margin: 0;
}

h1, h2, h3, h4, h5, p { margin: 0 0 10px 0; }
img { border: 0; }

a { color: #1a75af; text-decoration: none; }
a:hover { color: #24a6de; }

h1 {
  background-color: #1a75af;
  border: 1px solid #1a75af;
  border-radius: 5px;
  box-shadow: 0 1px 2px #333;
  color: #f5f5f5;
  font-size: 18px;
  font-weight: normal;
  padding: 5px 5px 5px 10px;
  text-shadow: 1px 1px 0 #333;
}
h1 a { color: #c0c0c0; }
h1 a:hover { color: #fff; }

h2 {
  background-color: #d4d4d4;
  border: 1px solid #d4d4d4;
  border-radius: 3px;
  box-shadow: 0 1px 2px #858585;
  color: #404041;
  font-size: 16px;
  font-weight: normal;
  padding: 5px 5px 5px 10px;
  text-shadow: 0 1px 0 #eee;
}
h2 a { color: #404041; }
h2 a:hover { color: #1a75af; }
h3 { font-size: 14px; }
h4 { font-size: 12px; }

/* ------------------------------------------------------- page shell */

#section_wrapper {
  background-color: #fff;
  border-bottom: 1px solid #c0c0c0;
  border-left: 1px solid #c0c0c0;
  border-right: 1px solid #c0c0c0;
  border-bottom-right-radius: 7px;
  border-bottom-left-radius: 7px;
  box-shadow: 0 0 5px #949494;
  margin: 0 auto 20px auto;
  padding: 10px 20px;
  width: 93%; /* site.css: no max-width cap */
}

main { line-height: 18px; margin: 5px 0; }

#site-footer {
  color: #666;
  font-size: 10px;
  padding-top: 10px;
  text-align: center;
}

/* ----------------------------------------------------------- header */

#site-header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 5px;
}

#site-header:has(.subscriber-identity) { display: block; }
#web_head { margin: 0; padding: 0; order: 1; }
#web_head img { max-width: 100%; height: auto; }

/* Default nav mode: the "Welcome … · Logout" strip, top right (legacy
 * header float_right). */
#site-nav {
  order: 2;
  margin-left: auto;
  margin-right: 20px;
  text-align: right;
}
#site-nav .welcome { color: #404041; }
/* The original identity/actions sit beside the logo, independently of the
 * page's navigation bar below it. */
.subscriber-identity { position: absolute; top: 0; right: 20px; white-space: nowrap; }
.subscriber-identity a { font-weight: normal; }
#site-nav > a[href="/logout"]::before { content: "· "; color: #404041; }

/* Bar mode: when the nav region carries page navigation (a current-page
 * tab, or the FI page's #nav_main block) it renders as the legacy dark
 * brown menu bar below the logo. */
#site-nav:has(> a[aria-current="page"]),
#site-nav:has(#nav_main) {
  order: 3;
  flex-basis: 100%;
  margin: 0 0 20px 0;
  text-align: left;
}

#site-nav:has(> a[aria-current="page"]),
#nav_main {
  background-color: #2c190d;
  border: 1px solid #404041;
  border-radius: 5px;
  box-shadow: 0 1px 2px #949494;
  color: #fff;
}
#site-nav:has(#nav_main) {
  margin: 0;
  background: none;
  border: 0;
  box-shadow: none;
}
#nav_main { margin: 0 0 20px 0; }

/* Tab links (both the bare-anchor bar and the dropdown_menu ul). */
#site-nav:has(> a[aria-current="page"]) > a,
.dropdown_menu a {
  color: #e8e5e5;
  display: inline-block;
  font-weight: bold;
  margin: 0;
  padding: 10px 15px;
  text-decoration: none;
}
#site-nav > a[aria-current="page"],
#site-nav:has(> a[aria-current="page"]) > a:hover,
.dropdown_menu a:hover,
.dropdown_menu a.dropdown_menu_current {
  background-color: #0096d8;
  color: #fff;
}
#site-nav > a[aria-current="page"] { border-radius: 5px 0 0 5px; }
#site-nav > a[aria-current="page"]::before { content: none; }

.dropdown_menu {
  margin: 0;
  padding: 0;
  min-height: 20px;
  display: flex;
  flex-wrap: wrap;
  list-style: none;
}
.dropdown_menu li { background-color: #2c190d; margin: 0; padding: 0; }
.dropdown_menu li:first-child a { border-radius: 5px 0 0 5px; }
.dropdown_menu a { display: block; }

/* Clients overview.php: Client Search typeahead inside the dark bar (its
 * inline <style>: #nav_typeahead padding, .autocomplete 300px, input). */
#nav_typeahead { padding: 7px 0 7px 20px; }
#nav_typeahead .autocomplete { position: relative; width: 300px; }
#nav_typeahead input {
  border: 1px solid transparent;
  background-color: #fff;
  padding: 3px;
  font-size: 14px;
}

/* BourbonFeature::GetSortData indicator (defaults.css .link_sort_*): only the
 * chosen sort field carries an arrow; the default order shows none. */
.link_sort_asc { background: url(/admin/resources/images/icons/actions/16x16/icon_arrow_up.gif) right no-repeat; padding-right: 16px; }
.link_sort_desc { background: url(/admin/resources/images/icons/actions/16x16/icon_arrow_down.gif) right no-repeat; padding-right: 16px; }

/* ----------------------------------------------------------- tables */

main table {
  background: inherit;
  border: 0;
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 10px;
}
main table td, main table th {
  border-bottom: 1px solid #d4d4d4;
  border-left: 1px dotted #d4d4d4;
  border-right: 1px dotted #d4d4d4;
  border-top: 1px solid #d4d4d4;
  padding: 5px;
  text-align: left;
  vertical-align: top;
}
main table th {
  color: #1a75af;
  font-size: 14px;
  font-weight: bold;
}
main table tbody tr:hover { background: #fffde3 !important; }

/* Legacy alternating bg_silver rows. */
main table tbody tr:nth-child(odd) { background: #f5f5f5; }

/* Bold sub-header rows (FI section tables). */
.general_tr_sub_header td { font-weight: bold; }
.bg_silver { background: #f5f5f5 !important; }

main table td strong { font-size: 14px; }

/* Row action affordances render as the legacy gray pill buttons. */
/* Block-level so action pills drop onto their own line beneath the bold
 * first-cell text (legacy puts Edit/FI/Expressions under the date). */
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 5px; }
.row-actions form { display: inline; margin: 0; }

/* Data Set book: source overview/list row rhythm, without changing other tables. */
#nav_main.data-set-book-nav { line-height: 18px; }
/* Template lists and editors: PHP nav_main inherits #section_content's
 * 18px line-height (EB-035/091). */
#nav_main.template-nav { line-height: 18px; }
/* Source date-notes tooltip: an absolute block at its static inline position. */
table.data-sets .tool_tip { position: static; display: inline; }
table.data-sets .tool_tip .eplan_tips {
  left: auto;
  top: auto;
  background: #ffffcc;
  border-color: #c0c0c0;
  border-radius: 0;
  font-size: 12px;
  line-height: 18px;
  margin: 4px 0 0 100px;
  padding: 5px;
  width: 200px;
}
.data-set-book-add { margin-bottom: 20px; }
main .data-set-book-add > a { margin: auto 3px; }
main table.data-sets { margin-bottom: 0; }
main table.data-sets tr.data-set-row { background: #f5f5f5; }
table.data-sets .as-of { min-width: 200px; }
table.data-sets td:nth-child(2), table.data-sets td:nth-child(3) { white-space: nowrap; }
table.data-sets td img { margin-right: 2px; vertical-align: middle; }
table.data-sets .data-set-action-break { margin-bottom: 5px; }
table.data-sets .row-actions { display: inline; margin: 0; }
table.data-sets .row-actions a { margin: auto 3px; }
table.data-sets .data-set-delete { float: right; margin-right: 5px; }
table.data-sets .data-set-delete button {
  background: none;
  border: 0;
  border-radius: 0;
  color: #1a75af;
  font: smaller/18px Helvetica, Arial, sans-serif;
  padding: 0;
  text-shadow: none;
  vertical-align: baseline;
}
table.data-sets .data-set-delete button:hover { color: #cd3e36; }

/* ---------------------------------------------------------- buttons */

.bg_colors,
button,
input[type="submit"],
input[type="button"],
main p > a[href$="/add"],
a#export_Excel_add_link,
.notes-overview .toolbar a,
.row-actions a,
.row-actions button,
.client-row td:first-child a,
.section_eplan p.align_right > a {
  background: linear-gradient(#eee, #d4d4d4);
  border: 1px solid #d4d4d4;
  border-radius: 4px;
  color: #262626;
  cursor: pointer;
  display: inline-block;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 13px;
  padding: 2px 7px;
  text-decoration: none;
  text-shadow: 0 -1px 0 #f5f5f5;
  vertical-align: bottom;
}
.bg_colors:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.row-actions a:hover,
.row-actions button:hover {
  background: #e1e1e1;
  color: #262626;
}

/* Primary (blue) actions — submits and add/export/toolbar links. */
.bg_colors_primary,
input.bg_colors_primary,
button[type="submit"],
input[type="submit"],
main p > a[href$="/add"],
a#export_Excel_add_link,
.notes-overview .toolbar a,
.section_eplan p.align_right > a {
  background: linear-gradient(#009cdc, #1a75af);
  border-color: #1a75af;
  color: #fff;
  text-shadow: 0 -1px 0 #666;
}
.bg_colors_primary:hover,
input.bg_colors_primary:hover,
button[type="submit"]:hover,
input[type="submit"]:hover,
main p > a[href$="/add"]:hover,
a#export_Excel_add_link:hover,
.notes-overview .toolbar a:hover,
.section_eplan p.align_right > a:hover {
  background: #1a75af;
  color: #fff;
}

.bg_colors_default, input.bg_colors_default { background: linear-gradient(#eee, #d4d4d4); border-color: #d4d4d4; color: #262626; text-shadow: 0 -1px 0 #f5f5f5; }
.bg_colors_default:hover, input.bg_colors_default:hover { background: #e1e1e1; color: #262626; }

/* Delete keeps the gray look (legacy row buttons were all default-gray). */
.row-actions button[type="submit"] {
  background: linear-gradient(#eee, #d4d4d4);
  border-color: #d4d4d4;
  color: #262626;
  text-shadow: 0 -1px 0 #f5f5f5;
}
.row-actions button[type="submit"]:hover { background: #e1e1e1; color: #262626; }

/* ------------------------------------------------------------ forms */

form { display: block; margin: 0; padding: 0; }

fieldset {
  border: 1px solid #e1e1e1;
  display: block;
  margin: 10px auto;
  padding: 5px 5px 10px 5px;
}
legend { color: #000; font-size: 14px; font-weight: bold; }

input[type="text"],
input[type="password"],
textarea,
select {
  background-color: #fff;
  border: 1px solid #dedede;
  border-radius: 2px;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 12px;
  line-height: 16px;
  padding: 4px;
  vertical-align: baseline;
}
input[type="text"]:hover, input[type="text"]:focus,
input[type="password"]:hover, input[type="password"]:focus,
textarea:hover, textarea:focus,
select:hover, select:focus {
  background-color: #fffde3;
  border-color: #006ad1;
  outline: none;
}
input[readonly], input[disabled] {
  background-color: #eee !important;
  cursor: not-allowed;
}

/* Legacy form_line rows: gray rounded stripe, bold right-aligned label in
 * the left 25%, control on the right. The new app wraps controls in their
 * <label>, so the label text becomes an anonymous grid item. */
main form > label {
  display: grid;
  grid-template-columns: 25% 1fr;
  gap: 10px;
  align-items: center;
  background-color: #f1f1f1;
  border-radius: 5px;
  font-weight: bold;
  margin: 0 0 5px 0;
  padding: 8px;
  text-align: right;
}
main form > label:hover { background-color: #f5f5f5; }
main form > label input,
main form > label select,
main form > label textarea {
  font-weight: normal;
  justify-self: start;
  text-align: left;
  width: min(420px, 95%);
}
main form > label textarea { min-height: 100px; }
main form > label input[type="radio"],
main form > label input[type="checkbox"] { width: auto; }

/* Radio/checkbox option labels inside fieldsets stay plain. */
fieldset label {
  display: inline-block;
  font-weight: normal;
  margin: 2px 0;
  text-align: left;
}

main form > button[type="submit"] { margin: 5px 0 10px 0; }

/* Notes filter — render as the legacy gray toolbar strip with inline
 * fields rather than stacked form lines. */
form#notes-filter {
  background-color: #f5f5f5;
  border: 1px solid #dedede;
  border-radius: 3px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 6px 8px;
}
form#notes-filter label {
  background: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: bold;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}
form#notes-filter input { width: 110px; margin-left: 3px; }
form#notes-filter button[type="submit"] { margin: 0; }

.notes-overview .toolbar { text-align: right; }

/* View page definition list (note view). */
main dl {
  background-color: #f1f1f1;
  border-radius: 5px;
  margin: 0 0 10px 0;
  padding: 8px;
}
main dl dt { float: left; clear: left; width: 25%; font-weight: bold; text-align: right; }
main dl dd { margin: 0 0 8px calc(25% + 10px); min-height: 15px; }

/* Login pages: legacy renders the "Sign In" heading as the gray centered
 * bar and a default-gray centered submit (site login, Bourbon element 344). */
main:has(form[action$="/login/"]) > h1 {
  background-color: #d4d4d4;
  border: 1px solid #d4d4d4;
  box-shadow: 0 1px 2px #858585;
  color: #404041;
  font-size: 16px;
  text-align: center;
  text-shadow: 0 1px 0 #eee;
}
form[action$="/login/"] { text-align: center; }
/* login_form.php rows are plain form_line rows; only the submit line centres. */
form[action$="/login/"] .form_line_field { text-align: left; }
form[action$="/login/"] input { width: 90%; }
form[action$="/login/"] .login-actions { margin: 10px 0; }
form[action$="/login/"] .login-help a { margin-left: 5px; }
form[action$="/login/"] .login-help a + a { margin-left: 10px; }
form[action$="/login/"] button[type="submit"] {
  background: linear-gradient(#eee, #d4d4d4);
  border-color: #d4d4d4;
  color: #262626;
  text-shadow: 0 -1px 0 #f5f5f5;
}
form[action$="/login/"] button[type="submit"]:hover { background: #e1e1e1; }

/* Signin BourbonNotifier error box (Sign In under its h2, Forgot/Reset
 * message areas above theirs): defaults.css 266-280 box_msg metrics, red
 * bg_colors_error and the icon_fail X (AUTH-003). */
main > .box_msg.bg_colors_error,
main > [id$="_form_message_area"] > .box_msg.bg_colors_error {
  background: linear-gradient(#ec4848, #cd3e36);
  border: 1px solid #cd3e36;
  border-radius: 4px;
  color: #fff;
  cursor: default;
  display: block;
  font: 13px Helvetica, Arial, sans-serif;
  height: auto;
  line-height: normal;
  margin: 8px auto;
  padding: 4px;
  text-align: left;
  text-shadow: 0 -1px 0 #666;
}
main > .box_msg.bg_colors_error p,
main > [id$="_form_message_area"] > .box_msg.bg_colors_error p {
  background: url('/admin/resources/images/icons/msgs/icon_fail.png') no-repeat 5px 1px;
  margin: 0;
  padding: 2px 0 2px 27px;
}

/* ---------------------------------------------------------- flashes */

p.flash {
  border: 1px solid;
  border-radius: 4px;
  margin: 8px auto;
  padding: 6px 10px;
  text-align: left;
}
p.flash-error {
  background: linear-gradient(#ec4848, #cd3e36);
  border-color: #cd3e36;
  color: #fff;
  text-shadow: 0 -1px 0 #666;
}
p.flash-success {
  background: linear-gradient(#56c25b, #4eab53);
  border-color: #4eab53;
  color: #fff;
  text-shadow: 0 -1px 0 #666;
}
p.flash-info {
  background: linear-gradient(#009cdc, #1a75af);
  border-color: #1a75af;
  color: #fff;
  text-shadow: 0 -1px 0 #666;
}

/* ------------------------------------------------- legacy utilities */
/* Classes the ported pages still emit (FI sections, calculators). */

.display_none { display: none !important; }
.align_left { text-align: left !important; }
.align_center { text-align: center !important; }
.align_right { text-align: right !important; }
.padding_10 { padding: 10px !important; }
.clear_both { clear: both; font-size: 0; height: 0; }

/* Calculator / legacy form-line layout (markup carries these classes). */
.form_line_field {
  display: flow-root;
  background-color: #f1f1f1;
  border: 0;
  border-radius: 5px;
  clear: both;
  line-height: normal;
  margin: 0 0 5px 0 !important;
  min-height: 5px;
  padding: 5px !important;
}
.form_line_field:hover { background-color: #f5f5f5 !important; }
.form_line_left_field {
  float: left;
  font-weight: bold;
  margin-right: 10px !important;
  padding-top: 4px !important;
  text-align: right;
  width: 25%;
}
.form_line_right_field { float: left; width: 72%; }

.input_fld {
  background-color: #fff;
  border: 1px solid #dedede;
  border-radius: 2px;
  display: inline-block;
  font-size: 12px;
  line-height: 16px;
  padding: 4px;
  vertical-align: baseline;
  width: 90%;
}
.input_fld:hover, .input_fld:focus { background-color: #fffde3; border-color: #006ad1 !important; outline: none; }
.input_fld[readonly], .input_fld[disabled] { background-color: #eee !important; cursor: not-allowed; }
.input_text_small { width: auto; }

/* ------------------------------------------- financial information */

#section_content { line-height: 18px; margin: 5px 0; }

.section_eplan { padding: 0 10px 5px 10px; }
.section_eplan_table {
  background-color: #f9f9f9;
  border: 1px solid #d9d9d9;
  border-bottom-right-radius: 7px;
  border-bottom-left-radius: 7px;
  margin-bottom: 10px;
  padding: 10px;
}
.section_eplan_form { background-color: #fff; border: 1px solid #eee; padding: 5px 20px 0 20px; }

/* FI section headings: the bar lives on the link, uppercase, with the
 * lightswitch +/− icon. Icon state derives from the sibling container. */
#eplan_financial_information h1 {
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
  text-shadow: none;
}
#eplan_financial_information h1 a {
  background-color: #1a75af;
  background-image: url(/images/icon_lightswitch_none.png);
  background-repeat: no-repeat;
  background-position: 6px 6px;
  border: 1px solid #1a75af;
  border-radius: 5px;
  box-shadow: 0 1px 2px #333;
  color: #f5f5f5;
  display: block;
  padding: 5px 5px 5px 30px;
  text-shadow: 1px 1px 0 #333;
  text-transform: uppercase;
}
#eplan_financial_information h1 a:hover { background-color: #15699f; color: #fff; }
#eplan_financial_information h1:has(+ div:not(.display_none)) a {
  background-image: url(/images/icon_lightswitch_block.png);
}

/* Expand/Contract All carries the small toggle icon too. */
#lswitch_toggle_all {
  background: url(/images/icon_lightswitch_none.png) no-repeat 0 0;
  cursor: pointer;
  display: inline-block;
  padding-bottom: 1px;
  padding-left: 15px;
}
#lswitch_toggle_all[data-expanded="true"] {
  background-image: url(/images/icon_lightswitch_block.png);
  padding-left: 18px;
}

/* FI tables are inside .section_eplan_table on #f9f9f9 — keep legacy
 * coloring (no zebra stripes there; sub-header rows carry bg_silver). */
#eplan_financial_information table tbody tr:nth-child(odd) { background: inherit; }
#eplan_financial_information table td { font-size: 12px; }
#eplan_financial_information table td strong { font-size: 12px; }

/* The toolbar line above the sections (Expand/Contract + Export). */
#eplan_financial_information > p.align_left { margin-top: -15px; }
#eplan_financial_information > p.align_left,
#eplan_financial_information p:has(> #export_Excel_add_link) { display: flow-root; }
a#export_Excel_add_link { float: right; }

/* Slide-out jump tabs at the right edge (legacy quick-jump family).
 * Legacy stack: calcs @30px, templates @65px, tutorials @100px,
 * notes/menu @135px. */
#eplan_quick_jump,
#eplan_calculator_jump,
#eplan_templates_jump,
#eplan_tutorials_jump,
#eplan_account_jump,
#eplan_notes_jump {
  background-color: #eee;
  border-bottom: 1px solid #78abcb;
  border-left: 1px solid #78abcb;
  border-top: 1px solid #78abcb;
  border-bottom-left-radius: 5px;
  border-top-left-radius: 5px;
  box-shadow: 1px 1px 3px #c0c0c0;
  height: 20px;
  line-height: 16px;
  right: -102px;
  overflow: hidden;
  padding: 5px 5px 0 5px;
  position: fixed;
  top: 135px;
  width: 140px;
  z-index: 100;
  transition: all 0.1s ease-in-out;
}
#eplan_calculator_jump { top: 30px; }
#eplan_templates_jump { top: 65px; }
#eplan_tutorials_jump { top: 100px; }
#eplan_account_jump { top: 135px; }
/* Original runtime site.css positions the collapsed Notes tab at135px. */
#eplan_notes_jump { top: 135px; }
#eplan_quick_jump:hover,  #eplan_quick_jump:focus-within,
#eplan_calculator_jump:hover, #eplan_calculator_jump:focus-within,
#eplan_templates_jump:hover, #eplan_templates_jump:focus-within,
#eplan_tutorials_jump:hover, #eplan_tutorials_jump:focus-within,
#eplan_account_jump:hover, #eplan_account_jump:focus-within,
#eplan_notes_jump:hover, #eplan_notes_jump:focus-within {
  background: #fffde3;
  height: auto;
  min-height: 100px;
  padding: 5px;
  right: 0;
}
#eplan_quick_jump:hover, #eplan_quick_jump:focus-within { min-height: 250px; }
/* site.css: the Menu/Calcs heading anchors read as plain heading text. */
.jump_heading_link, .jump_heading_link:hover {
  background: none !important;
  color: #404041 !important;
  display: inline !important;
  margin: auto !important;
  padding: 0 !important;
}
#eplan_quick_jump:hover::before { font-weight: bold; }
#eplan_quick_jump h3,
#eplan_calculator_jump h3,
#eplan_templates_jump h3,
#eplan_tutorials_jump h3,
#eplan_account_jump h3,
#eplan_notes_jump h3 { font-weight: normal; margin-bottom: 10px; }
#eplan_quick_jump:hover h3,
#eplan_calculator_jump:hover h3,
#eplan_templates_jump:hover h3,
#eplan_tutorials_jump:hover h3,
#eplan_account_jump:hover h3,
#eplan_notes_jump:hover h3 { font-weight: bold; }
#eplan_quick_jump p,
#eplan_calculator_jump p,
#eplan_templates_jump p,
#eplan_tutorials_jump p,
#eplan_account_jump p,
#eplan_notes_jump p { margin: 0; padding: 0; }
#eplan_quick_jump p,
#eplan_calculator_jump p,
#eplan_templates_jump p,
#eplan_notes_jump p,
#eplan_account_jump p,
#eplan_tutorials_jump p { visibility: hidden; }
#eplan_quick_jump:hover p, #eplan_quick_jump:focus-within p,
#eplan_calculator_jump:hover p, #eplan_calculator_jump:focus-within p,
#eplan_templates_jump:hover p, #eplan_templates_jump:focus-within p,
#eplan_notes_jump:hover p, #eplan_notes_jump:focus-within p,
#eplan_account_jump:hover p, #eplan_account_jump:focus-within p,
#eplan_tutorials_jump:hover p, #eplan_tutorials_jump:focus-within p { visibility: visible; }
#eplan_quick_jump a,
#eplan_calculator_jump a,
#eplan_templates_jump a,
#eplan_tutorials_jump a,
#eplan_account_jump a,
#eplan_notes_jump a { display: block; margin: 2px; padding: 2px; }
#eplan_quick_jump a:hover, #eplan_quick_jump a:focus,
#eplan_calculator_jump a:hover, #eplan_calculator_jump a:focus,
#eplan_templates_jump a:hover, #eplan_templates_jump a:focus,
#eplan_tutorials_jump a:hover, #eplan_tutorials_jump a:focus,
#eplan_account_jump a:hover, #eplan_account_jump a:focus,
#eplan_notes_jump a:hover, #eplan_notes_jump a:focus { background-color: #1a75af; color: #fff; }

/* ------------------------------------------------- FI section tooltips */

/* DOB controls retain the original Magic Calendar display and popup geometry. */
.mcal_icon { cursor: pointer; margin-left: 5px; }
.mcal_icon img { vertical-align: middle; }
.mcal_field_on { box-shadow: 0 0 4px #1863ec; }
.birth-date-popup {
  position: absolute; z-index: 99999; width: 300px; padding: 0;
  box-sizing: content-box; background: #fff; color: #404040;
  font: 12px "Lucida Grande", Arial, sans-serif;
  border: 1px solid #1863ec; border-radius: 5px; box-shadow: 3px 3px 5px #4d4d4d;
}
.birth-date-calendar-content { padding: 5px; }
.birth-date-popup .mcal_table { background: #fff; border: 0; border-collapse: collapse; height: 250px; width: 100%; margin: 0; }
.birth-date-popup .mcal_table th,
.birth-date-popup .mcal_subhead { height: 23px; vertical-align: middle; }
.birth-date-popup .mcal_table th { background: #1863ec; border: 1px solid #1863ec; color: #fff; font-weight: bold; padding: 3px; text-align: center; }
.birth-date-popup .mcal_table td { padding: 5px; text-align: center; vertical-align: middle; border: 1px solid #d4d4d4; background: #f9f9f9; }
.birth-date-popup .mcal_table .mcal_subhead td { background: #d4d4d4; }
.birth-date-popup .mcal_table img { cursor: pointer; margin: auto 3px; vertical-align: middle; }
.birth-date-popup .mcal_date_cur { background: #ffc !important; }
.birth-date-popup .mcal_date a { color: #1863ec; padding: 2px 5px; text-decoration: none; }
.birth-date-popup .mcal_date a:hover,
.birth-date-popup .mcal_date_sel a { background: #1863ec; border-radius: 9px; color: #fff; }
.birth-date-popup .mcal_other_month { color: #c0c0c0; }
.birth-date-popup .mcal_select { all: revert; font-size: 11px; margin: 0; vertical-align: middle; }

/* Shared original overview controls (defaults.css and overview_data views). */
.hidden_action_link { float: right; font-size: smaller; margin-right: 5px; }
.hidden_action_link:hover { color: #cd3e36; }
.font_size_smaller { font-size: smaller !important; }
.margin_5 { margin: 5px !important; }
.margin_bottom_10 { margin-bottom: 10px !important; }
.fi-related-targets { display: block; }
[data-fi-people-relationships] .fi-related-targets { transition: background-color 500ms ease-in-out; }
[data-fi-people-relationships] .fi-related-targets.fi-relationship-feedback { background-color: #fffde3; }

/* Loaded legacy magic13.5.17/eplan picker layouts use the whole field row. */
.form_line_field > .form_line_right_field:has(.fi-picker) { clear: both; float: none; display: block; width: auto; }
.fi-picker, .fi-picker-toolbar, .fi-picker-panels { display: block; }
.fi-picker-panels { display: flow-root; }
.fi-picker [data-fi-picker-search] {
  background: #fff url('/images/icon_search.png') no-repeat 1px 1px;
  border: 1px solid #c0c0c0; border-radius: 3px;
  font: 12px Arial, sans-serif; line-height: normal;
  margin: 5px auto 2px 10px; padding: 2px 2px 2px 19px;
  width: 88%; box-sizing: content-box;
}
.fi-picker [data-fi-picker-clear] { cursor: pointer; }
.fi-picker [data-fi-picker-clear] img { vertical-align: middle; }
.fi-picker-box { border: 1px solid #d9d9d9; display: block; padding: 2px; width: 49%; box-sizing: content-box; }
.fi-picker-box-left { float: left; }
.fi-picker-box-right { float: right; }
.fi-picker-list { background: #fff; border: 1px solid; border-color: #c0c0c0 #d9d9d9 #d9d9d9 #c0c0c0; display: block; height: 200px; padding: 0; overflow: auto; }
.fi-picker-list > .fi-picker-row { border-bottom: 1px solid #d4d4d4; border-right: 1px solid #d4d4d4; display: block; margin: 0; padding: 2px; }
.fi-picker-list > .fi-picker-row:hover { background: #ffffdd; cursor: pointer; }
.fi-picker [data-fi-picker-check-all], .fi-picker [data-fi-picker-uncheck-all] { color: #262626; margin: 0 10px; text-decoration: none; }
.fi-picker [data-fi-picker-check-all]:hover, .fi-picker [data-fi-picker-uncheck-all]:hover { text-decoration: underline; }
.fi-bene-tool .fi-picker-box { border: 0; }
.fi-bene-tool .fi-picker-box-left { width: 65%; }
.fi-bene-tool .fi-picker-box-right { width: 33%; }
.fi-bene-tool .fi-picker-list > .fi-picker-row { display: inline-block; height: 22px; padding: 2px 0; width: 100%; box-sizing: content-box; border-right: 0; }
.fi-bene-tool .fi-picker-row > label { float: left; display: inline-block; }
.fi-bene-tool .fi-picker-box-left .fi-picker-row > label { width: 48%; }
.fi-bene-tool .fi-picker-row [data-fi-picker-details] { float: right; margin-right: 5px; text-align: right; height: 22px; }
.fi-bene-tool [data-fi-picker-details] label { margin-right: 5px; }
.fi-bene-tool [data-fi-picker-details] .input_text_small { padding: 1px; text-align: right; vertical-align: middle; }
.fi-picker-box-left .beneficiary-totals { clear: none; float: right; margin: 3px 5px; padding: 0; white-space: nowrap; }
.helper_text { color: #999; font-size: x-small; }
/* defaults.css helper links (Growth "Reset to Above Data", HEP "Reset Defaults"). */
.helper_link { display: inline-block; font-size: x-small; margin-top: 5px; }
.field-help-icon { vertical-align: middle; }
.field_error_parent { background-color: #ffdbe1 !important; border-top: 1px solid #ffa9a9 !important; padding-bottom: 2px; padding-left: 1px; padding-top: 2px; }
.field_error { border-color: #f00 !important; }
.field_error_msg_off { display: none !important; }
.field_error_msg_on { color: #f00 !important; display: block !important; margin: 3px; }
.field_error_msg_on br { display: none; }
.form_line_name_left_field { float: left; font-weight: bold; margin-right: 10px; padding-top: 4px; text-align: right; width: 25%; }
.form_line_name_right_field { float: left; width: 20%; }
.form_line_desc_left_field { float: left; font-weight: bold; margin-right: 10px; padding-top: 4px; text-align: right; width: 150px; }
.form_line_desc_right_field { float: left; width: 30%; }
.input_fld_half { background: #fff; border: 1px solid #dedede; border-radius: 2px; display: inline; font: 12px/16px Helvetica, Arial, sans-serif; padding: 4px; vertical-align: baseline; width: 90%; }
.section_eplan_table h2 > a[id$="_refresh_link"]::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 4px;
  vertical-align: middle;
  background: url('/images/icon_reload.png') no-repeat center;
}
@media print {
  .section_eplan_table h2 > a[id$="_refresh_link"]::before { display: none; }
}

/* Legacy EPlanFeature::GetToolTip renders a "what's this?" anchor next to a
 * section header with a hidden body span revealed on hover/focus. No JS
 * framework on the next app — pure CSS hover/focus reveal. */
.tool_tip { position: relative; display: inline-block; }
/* Personal/Business death help: source images participate in the cell line box. */
.general_table .fmv-explanation { display: inline; }
.general_table .fmv-explanation > img.margin_left_10 { margin-left: 10px; margin-right: 2px; vertical-align: middle; }
.tool_tip .tool_tip_link { color: #1a75af; white-space: nowrap; }
.tool_tip .eplan_tips {
  display: none;
  position: absolute;
  left: 0;
  top: 1.4em;
  z-index: 200;
  background: #fffde3;
  border: 1px solid #78abcb;
  border-radius: 4px;
  box-shadow: 1px 1px 3px #c0c0c0;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: normal;
  color: #404041;
  text-align: left;
  white-space: normal;
  line-height: 1.4;
}
.tool_tip:hover .eplan_tips,
.tool_tip:focus-within .eplan_tips { display: block; }
.eplan_tips.width_250 { width: 250px; }
.eplan_tips.width_500 { width: 500px; }
.eplan_tips.width_700 { width: 700px; }

/* ------------------------------------------------------- responsive */

/* Legacy has no responsive rules at all — a 768px tablet gets the desktop
 * two-column layout. Only collapse below 640px (true phone widths). */
@media (max-width: 640px) {
  #section_wrapper { width: auto; margin: 0 4px 20px 4px; padding: 10px; }
  main form > label { grid-template-columns: 1fr; text-align: left; }
  main dl dt { float: none; width: auto; text-align: left; }
  main dl dd { margin-left: 0; }
  .form_line_left_field, .form_line_right_field { float: none; width: auto; text-align: left; }
}

/* DI-349: calculator popups live in a 510px darkroom iframe, so the phone
 * collapse above would hit them. PHP has no responsive rules; keep the
 * defaults.css two-column form_line geometry there at every width. */
.calc-popup .form_line_left_field { float: left; width: 25%; text-align: right; }
.calc-popup .form_line_right_field { float: left; width: 72%; }

/* Asset views use the original shared rows and an unbordered allocation table. */
.asset-form .asset-second-owner { display: inline-block; width: 100%; margin-top: 10px; margin-bottom: 10px; }
.asset-form .asset-allocation-table { border-collapse: separate; border-spacing: 2px; margin: 0; width: auto; }
.asset-form .asset-allocation-table td { border: 0; padding: 1px; vertical-align: middle; }
.asset-form .asset-allocation-table tr { background: transparent; }
.asset-form .asset-allocation-table label { font-weight: normal; }
/* liquid_asset_type_form.php's divider is a bare <hr> (no source rule): the UA 0.5em margins. */
/* collateral_with_triggers.php trigger checkboxes: defaults.css .input_checkbox. */
.collateral-triggers .input_checkbox { margin-top: 5px; }
/* Source allocation inputs have only input_text (an empty source rule), so
 * they retain the native font, inset border, padding and size-based widths. */
.asset-form .asset-allocation-table input[type="text"] { all: revert; }
.asset-form .fmv-at-death .form_line_right_field > strong { display: inline; }
.asset-form .input_textarea { height: 100px; }
.padding_top_10 { padding-top: 10px !important; }
.margin_top_5 { margin-top: 5px !important; }
.margin_left_5 { margin-left: 5px !important; }
.margin_right_5 { margin-right: 5px !important; }
.font_size_10 { font-size: 10px !important; }
.fi-inline-form [hidden] { display: none !important; }
.beneficiary-totals { clear: both; padding: 6px 0; text-align: right; font-weight: normal; }
#ideal_allocations:not([hidden]) { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 12px; }
#ideal_allocations label { display: flex; align-items: center; gap: 8px; }
#ideal_allocations input { max-width: 110px; }
@media (max-width: 640px) {
  #ideal_allocations:not([hidden]) { grid-template-columns: 1fr; }
}

/* Served original reports.css overrides the older drag-and-drop dimensions. */
[data-bequest-sort] { background: #f1f1f1; border: 2px solid #333; padding: 1%; margin: 10px 0; min-height: 160px; display: flex; flex-wrap: wrap; align-items: flex-start; }
[data-bequest-sort] .dnd_sort_box { background: #fff; border: 1px solid #d4d4d4; box-sizing: border-box; cursor: move; height: 130px; margin: 1%; overflow: hidden; padding: 20px; position: relative; text-align: center; width: 10.5%; }
/* Supplemental keyboard controls do not add chrome to the original mouse UI. */
[data-bequest-sort] [data-bequest-move] { visibility: hidden; }
[data-bequest-sort] .dnd_sort_box:focus-visible [data-bequest-move],
[data-bequest-sort] .dnd_sort_box.fi-sort-keyboard:focus-within [data-bequest-move] { visibility: visible; }
@media (min-width: 1280px) and (max-width: 1919px) { [data-bequest-sort] .dnd_sort_box { width: 18%; } }
@media (min-width: 960px) and (max-width: 1279px) { [data-bequest-sort] .dnd_sort_box { width: 23%; } }
@media (min-width: 768px) and (max-width: 959px) { [data-bequest-sort] .dnd_sort_box { width: 48%; } }
@media (max-width: 767px) { [data-bequest-sort] .dnd_sort_box { width: 98%; } }

.will-mirror-action { display: inline; margin: 0; }

#nav_back > a.bg_colors { padding: 10px 15px; }

/* Original AJAX form wrapper lives below its saved subsection, in yellow. */
.fi-form-slot > .fi-inline-form { background-color: #fff; border: 1px solid #eee; padding: 5px 20px 0; }
.fi-inline-close { float: right; margin-right: 10px; }
/* PHP resources/stylesheets/defaults.css: .input_radio{margin-top:5px;} (Will and Trust radios). */
.fi-inline-form .input_radio { margin-top: 5px; }
.fi-inline-close img { border: 0; }

/* Original form rows clear their floated controls with br.clear_both. */
.input_select { padding: 3px; width: 50%; }
/* Confirmed PHP Data Input selects retain the native border-box default. */
#eplan_term_insurance_form select.input_select,
#eplan_purchase_agreement_form select.input_select,
#person-form select.input_select,
#eplan_entity_form select.input_select,
#asset-form select.input_select,
#secured-loan-form select.input_select,
#unsecured-loan-form select.input_select,
#income-form select.input_select[name="income_type_code"],
#income-form select.input_select[name="income_source_code"] { box-sizing: border-box; }
.required_field { color: #990000; padding-left: 5px; }
.form_line_right_field > .fi-paired-label { font-weight: bold; margin: 0 5px 0 15px; }
.margin_left_20 { margin-left: 20px; }
.fi-form-slot > .fi-inline-form:has(.fi-inline-close) form a.fi-inline-cancel { display: none; }

/* Magic ajax.visual: the update target is ajax_visual_content (#fffde3) for
 * 1500ms after the AJAX update, with mjf_atrans easing it back out over 500ms;
 * the highlight is transient, never a resting state. */
.fi-form-slot > .fi-inline-form { transition: background-color 500ms ease-in-out; }
.fi-form-slot > .fi-inline-form.fi-inline-flash { background-color: #fffde3; }

/* Original Cash Flow date/To and death-trigger controls share a line. */
.income-form .form_line_right_field_inner { display: inline-block; float: left; }
.income-form .form_line_right_field_inner label { font-weight: bold; margin: 0 5px 0 15px; }
.income-form .form_line_right_field_inner select { width: auto; }
.income-form .form_line_right_field_inner span { margin-left: 3px; }
/* Source calendar inputs have no wrapper inheriting the detail-span margin. */
.income-form .form_line_right_field_inner > .birth-date-control { margin-left: 0; }
.income-form #changes-at-death { display: block; }
.income-form .change-at-death-block { display: flow-root; }
.income-form [data-income-remove-change] { display: inline-block; }

/* Original read-only FI form rows (served defaults.css227–230). Keep this
 * scoped to FI; Admin also emits these names but is outside this repair. */
.fi-inline-form .form_line_content, .section_eplan .form_line_content {
  display: flow-root; clear: both; background-color: #f1f1f1; border: 1px solid #f1f1f1;
  border-radius: 5px; margin: 0 0 10px 0 !important; min-height: 15px; padding: 8px !important;
}
.fi-inline-form .form_line_left_content, .section_eplan .form_line_left_content {
  display: block; float: left; font-weight: bold; margin-right: 10px !important; text-align: right; width: 25%;
}
.fi-inline-form .form_line_right_content, .section_eplan .form_line_right_content {
  display: block; float: left; min-height: 15px; padding-left: 2px !important; width: 72%;
}
.fi-inline-form .form_line_content:hover, .section_eplan .form_line_content:hover { background-color: #f5f5f5 !important; }
/* list_of_basic_assumptions.php / basic_assumption_form.php headers are plain
 * general_table th (defaults.css: no color), not the blue sortable header. */
#eplan_basic_assumptions th, #eplan_basic_assumption_form th { color: inherit; }

/* Shared original FI textarea/estimated-date styling and inline-only actions.
 * The saved table owns Delete; Notes retains its distinct source toolbar. */
.fi-inline-form .input_textarea { height: 100px; }
.fi-inline-form .color_gray { color: gray; }
.fi-form-slot > .fi-inline-form:not([data-fi-section="notes"]) > .toolbar { display: none; }

/* BourbonNotifier information message used by the two empty Will slots.
 * defaults.css279/site.css108: this is a full-width notice, not an action. */
#eplan_wills_cont .box_msg.bg_colors_information {
  background: linear-gradient(#009cdc, #1a75af);
  border: 1px solid #1a75af;
  border-radius: 4px;
  color: #fff;
  cursor: default;
  display: block;
  height: auto;
  line-height: normal;
  margin: 8px auto;
  padding: 4px;
  text-align: left;
  text-shadow: 0 -1px 0 #666;
}
#eplan_wills_cont .box_msg.bg_colors_information p {
  background: url('/images/icon_information.png') no-repeat 5px 1px;
  margin-bottom: 0;
  padding: 2px 0 2px 27px;
}

/* Original Will Sort/Mirror use bg_colors_default, including inside the
 * blue Add-Bequests toolbar (defaults.css263 and client_overview_data.php). */
#eplan_wills_cont .bg_colors_default {
  background: linear-gradient(#eee, #d4d4d4);
  border-color: #d4d4d4;
  color: #262626;
  text-shadow: 0 -1px 0 #f5f5f5;
}
#eplan_wills_cont .bg_colors_default:hover {
  background: #e1e1e1;
  color: #262626;
}

/* Original defaults.css179: compact Will bequest tables use48% of their content column. */
#eplan_wills_cont .width_48per { width: 48% !important; }

/* Assumptions replaces its gray overview target directly in the original.
 * Keep its heading/form at that target's content width, without a nested card. */
.fi-form-slot > .fi-inline-form[data-fi-replace-overview] { padding: 0; border: 0; }
.fi-form-slot > .fi-inline-form[data-fi-replace-overview]:not(.fi-inline-flash) { background-color: transparent; }

/* Original Will overview action P spacing and empty AJAX target wrappers. */
.will-overview-actions { margin: 0 0 10px; }
.will-overview-actions .bg_colors { line-height: inherit; margin: auto 3px; }
.fi-will-form-placeholder:has(+ .fi-form-slot) { display: none; }
.fi-agreement-form-placeholder:has(+ .fi-form-slot) { display: none; }
.fi-people-form-placeholder:has(+ .fi-form-slot) { display: none; }
.fi-form-placeholder:has(+ .fi-form-slot) { display: none; }
/* Original defaults.css .bg_colors{margin:auto 3px}: every overview Add link
 * (class="bg_colors bg_colors_primary") sits 3px in from the table's right edge. */
.section_eplan p.align_right > a { margin: auto 3px; }
#eplan_client_will .form_line_right_content > table,
#eplan_client_spouse_will .form_line_right_content > table { margin-bottom: 0; }
/* Original purchase_agreements/reference_values.php uses an intrinsic-width
 * general_table; defaults.css adds no table width or bottom margin. */
[data-purchase-reference-values] table.general_table { width: auto; margin-bottom: 0; }
.margin_bottom_5 { margin-bottom: 5px !important; }

/* Original Assumptions nests its checkbox and two-by-two allocation table. */
#eplan_basic_assumption_form > table { box-sizing: border-box; }
#eplan_basic_assumption_form .fi-ideal-allocation-control { border-collapse: separate; width: auto; margin: 0; }
#eplan_basic_assumption_form .fi-ideal-allocation-values { border-collapse: separate; width: 90%; margin: 0; }
#eplan_basic_assumption_form .fi-ideal-allocation-control td { border: 0; }
#eplan_basic_assumption_form .fi-ideal-allocation-control tr { background: transparent; }
#eplan_basic_assumption_form #ideal_allocations:not([hidden]) { display: block; }
#eplan_basic_assumption_form #ideal_allocations input { max-width: none; }

/* Original Client/Data Set darkrooms expose a 700px form without an inset
 * section wrapper. Keep these field rules outside unrelated FI/Notes forms. */
.client-record-form { border: 0; padding: 0; }
.client-record-form .form_line_right_field_inner { display: inline-block; float: left; }
/* client_form.php 98-101/160-163: the paired rows' error follows
   <br class="clear_both"> (rendered by clients.ts), on its own line under the
   floated inputs with its 3px top margin intact (DI-004/010). */
.client-record-form .form_line_right_field_inner label { font-weight: bold; margin: 0 5px 0 15px; }
.client-record-form .form_line_right_field_inner > .color_gray { color: gray; margin-left: 20px; }
.client-record-form .input_textarea { height: 100px; }
.client-record-form .client-record-notes { margin-top: 10px; }

/* Clients list and Client Records book (list_of_clients.php 3-33,
 * overview.php toolbar): defaults.css gives .general_table th no colour, so
 * only the sort links are blue and the " / " between Created/By and Last
 * Updated/By is body text; .bg_colors keeps its `margin: auto 3px`, so the
 * toolbar and row buttons sit 3px in with 3px either side of the space. */
.clients-table th, table.data-sets th { color: inherit; }
.client-actions .bg_colors, .client-row td:first-child a.bg_colors { margin: auto 3px; }

/* Ordinary Add Client sample choices use the source's compact radio/name
 * columns. Sample maintenance pages do not use this picker. */
.client-record-form .client-sample-picker td:first-child { width: 35px; }
.client-record-form .client-sample-picker td:nth-child(2) { width: 200px; }
.client-record-form .client-sample-picker .input_radio { margin-top: 5px; }

/* Match native source select sizing and the paired Client label utilities;
 * source margin_left_20/10 and nested required spans retain these gaps. */
.client-record-form select.input_select { box-sizing: border-box; }
.client-record-form .form_line_right_field_inner label[for="client-age"] { margin-left: 10px; }
.client-record-form .form_line_right_field_inner .required_field { margin-left: 3px; }
/* The source sample picker has no alternating row class or table margin. */
.client-record-form .client-sample-picker table { margin-bottom: 0; }
.client-record-form .client-sample-picker tbody tr:nth-child(odd) { background: inherit; }

/* Magic darkroom iframe box used by the Calcs flyout (darkroom.src.css 13.3.28). */
.mjf_darkroom_content{box-shadow:0 4px 15px #666;display:none;transition:all 250ms ease-in-out;padding:0 10px 10px 10px;position:absolute;z-index:9999}
.mjf_darkroom_content_current{display:block !important}
.mjf_darkroom_close_img{cursor:pointer;float:right;margin:3px 2px 0 0}
.mjf_darkroom_handle{background-color:#eee;border:1px solid #eee;border-bottom-right-radius:4px;border-bottom-left-radius:4px;display:block;height:20px;margin-bottom:10px}
#mjf_darkroom_iframe_div{background:#fff;text-align:center}
/* expression_*_editor/edit_*_page.php: "✘ Delete" floats over the right of
 * the "Page › name" header bar (p.float_right.margin_right_10.margin_top_5). */
.template-page-editor > .template-page-delete { float: right; margin-right: 10px; position: relative; z-index: 1; }

/* BourbonNotifier success message in the FI message areas (Basic Assumptions
 * Save, Entity Add, Secured Loan Save, Loan Delete, Expression list Add to
 * Templates EB-035, reusable page template Save EB-098): defaults.css237-238
 * box_msg metrics, green bg_colors_success and the magic icon_done check. */
#basic_assumption_message_content_area .box_msg.bg_colors_success,
#entities_overview_message_area .box_msg.bg_colors_success,
#secured_loans_message_area .box_msg.bg_colors_success,
#unsecured_loans_message_area .box_msg.bg_colors_success,
#expressions_message_content_area .box_msg.bg_colors_success,
#template_settings_message_content_area .box_msg.bg_colors_success,
#page_template_message_content_area .box_msg.bg_colors_success {
  background: linear-gradient(#56c25b, #4eab53);
  border: 1px solid #4eab53;
  border-radius: 4px;
  color: #fff;
  cursor: default;
  display: block;
  font: 13px Helvetica, Arial, sans-serif;
  height: auto;
  line-height: normal;
  margin: 8px auto;
  padding: 4px;
  text-align: left;
  text-shadow: 0 -1px 0 #666;
}
#basic_assumption_message_content_area .box_msg.bg_colors_success p,
#entities_overview_message_area .box_msg.bg_colors_success p,
#secured_loans_message_area .box_msg.bg_colors_success p,
#unsecured_loans_message_area .box_msg.bg_colors_success p,
#expressions_message_content_area .box_msg.bg_colors_success p,
#template_settings_message_content_area .box_msg.bg_colors_success p,
#page_template_message_content_area .box_msg.bg_colors_success p {
  background: url('/admin/resources/images/icons/msgs/icon_done.png') no-repeat 5px 1px;
  margin: 0;
  padding: 2px 0 2px 27px;
}

/* Expression Templates / Expression Pages lists (EB-020/EB-027):
 * expression_templates/overview.php and expression_page_templates/
 * overview.php. defaults.css: .bourbon_toolbar bar, .general_table th has no
 * color, no zebra beyond the bg_silver rows, td <strong> at the body size;
 * site.css .section_right_content and section_eplan_table h2 bars with
 * magic.css lightswitch icons; the type rows are bg_colors_primary bars. */
.margin_top_10 { margin-top: 10px !important; }
#template-page-standalone .margin_top_20 { margin-top: 20px !important; }
#template-page-standalone > .float_right { float: right; margin-right: 10px; }
.whitespace_nowrap { white-space: nowrap; }
.template-browse .bourbon_toolbar { background-color: #f5f5f5; border-bottom: 1px solid #dedede; margin-bottom: 0; padding: 8px; }
/* defaults.css .bg_colors { margin: auto 3px } (EB-035/091: Add button 3px in). */
.template-browse .bourbon_toolbar .bg_colors { margin: auto 3px; }
.template-browse fieldset.section_right_content { border: 0; border-right: 1px solid #dedede; margin: 0; min-height: 200px; padding: 10px 10px 10px 5px; text-align: left; }
.template-browse table.general_table { margin-bottom: 0; }
.template-browse table.general_table th { color: inherit; }
.template-browse table tbody tr:nth-child(odd) { background: inherit; }
.template-browse table td strong { font-size: inherit; }
.template-browse td.bourbon_admin_title { min-width: 200px; }
.template-browse td.bg_colors_primary { background: linear-gradient(#009cdc, #1a75af); border-color: #1a75af; color: #fff; text-shadow: 0 -1px 0 #666; }
.template-browse tr.template-page-type:hover { background: inherit !important; }
.template-browse td ul { margin: 0; padding-left: 15px; }
/* expression_page_template_list_for_*.php: the Groups <ul> is unstyled by
 * defaults.css/site.css, so it keeps the browser's 1em margins and 40px indent (EB-027). */
.template-browse tr.template-page-row td ul { margin: 1em 0; padding-left: 40px; }
.template-browse .section_eplan_table h2 a { display: inline-block; }
.lightswitch_block { background: url(/images/icon_lightswitch_block.png) no-repeat 0 0; cursor: pointer; padding-bottom: 1px; padding-left: 18px; }
.lightswitch_none { background: url(/images/icon_lightswitch_none.png) no-repeat 0 0; cursor: pointer; padding-bottom: 1px; padding-left: 15px; }

/* defaults.css .input_checkbox{margin-top:5px} in the template Add darkrooms
 * (add_expression_template_form.php, add_expression_page_template_form.php):
 * 21px page rows like PHP (EB-022). */
#template-form .input_checkbox, #page-template-create-form .input_checkbox,
#template-form .input_radio, #page-template-create-form .input_radio { margin-top: 5px; }
/* compliance_notification.php: the Add Expression compliance box is
 * input_checkbox, defaults.css margin-top:5px (EB-006). */
[data-template-compliance] .input_checkbox { margin-top: 5px; }
