/* ExperiencePay modern look (v1.2.0)
   Same look as EMAX Payroll and emax.cloud: navy and teal, system font, flat square cards and buttons,
   rounded input boxes, navy table headers with alternate row shading.
   This file only overrides the old theme and is loaded last. To go back to the old look, remove its <link> line.
   Colours are variables, so one site can change its accent colour in one place. */

:root {
  --ep-navy: #0b2545; --ep-navy-2: #13315c; --ep-blue: #1565c0;
  --ep-teal: #12a594; --ep-teal-dark: #0e8174; --ep-btn: #0b7a6e; --ep-btn-hover: #096359;
  --ep-amber: #b8922f; --ep-danger: #b3363d;
  --ep-ink: #1c2733; --ep-muted: #5b6b7b; --ep-line: #e2e8ef; --ep-input-line: #c9d3de;
  --ep-bg: #ffffff; --ep-bg-soft: #f4f7fa; --ep-row-b: #eef3f8; --ep-row-hover: #dcebf7; --ep-soft-hover: #f2f6f8;
  --ep-shadow: 0 6px 24px rgba(11, 37, 69, .08);
  --ep-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---- Base ---- */
body { font-family: var(--ep-font); font-size: 15px; line-height: 1.5; color: var(--ep-ink); background-color: var(--ep-bg-soft); }
h1, h2, h3, h4, h5, h6, .page-title, .header-title, .btn, .form-control, .dropdown-item,
#topnav .navigation-menu > li > a, .navigation-menu > li > a { font-family: var(--ep-font); }
a { color: var(--ep-blue); }
a:hover { color: var(--ep-teal-dark); }
.text-muted { color: var(--ep-muted) !important; }
.text-primary { color: var(--ep-teal-dark) !important; }
.text-warning { color: var(--ep-amber) !important; }
.text-danger { color: var(--ep-danger) !important; }
::selection { background: rgba(18, 165, 148, .25); }

/* ---- Top bar and menu ---- */
#topnav { background: var(--ep-bg); box-shadow: none; }
.topbar-light .navbar-custom { background-color: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--ep-line); box-shadow: none; }
.topbar-light .navbar-custom .topnav-menu .nav-link { color: var(--ep-ink); }
.topbar-light .navbar-custom .topnav-menu .nav-link:hover { color: var(--ep-teal-dark); }
.navbar-custom .topnav-menu .nav-link .noti-icon { font-size: 21px; }
#topnav .topbar-menu { background-color: var(--ep-bg); border-bottom: 1px solid var(--ep-line); box-shadow: none; }
#topnav .navigation-menu > li > a { color: var(--ep-ink); font-size: 14px; font-weight: 600; padding: 15px 18px; transition: color .15s, box-shadow .15s; }
#topnav .navigation-menu > li > a i { color: var(--ep-teal-dark); margin-right: 6px; }
#topnav .navigation-menu > li:hover > a,
#topnav .navigation-menu > li.open > a,
#topnav .navigation-menu > li.has-submenu.open > a { color: var(--ep-teal-dark); }
#topnav .navigation-menu > li.has-submenu.active > a,
#topnav .has-submenu.active > a { color: var(--ep-navy); box-shadow: inset 0 -3px 0 var(--ep-teal); }

/* Drop-down menus (menu bar and user menu) */
#topnav .navigation-menu > li .submenu,
.dropdown-menu { background: var(--ep-bg); border: 1px solid var(--ep-line); border-radius: 8px; box-shadow: 0 8px 24px rgba(10, 30, 60, .12); padding: 6px 0; }
#topnav .navigation-menu > li .submenu:before { display: none; }
#topnav .navigation-menu > li .submenu li a,
.dropdown-item { padding: 9px 16px; font-size: 14px; font-weight: 600; color: var(--ep-ink); }
#topnav .navigation-menu > li .submenu li a:hover,
.dropdown-item:hover, .dropdown-item:focus { background: var(--ep-soft-hover); color: var(--ep-teal-dark); }
.dropdown-divider { border-top-color: var(--ep-line); }
.dropdown-item i { color: var(--ep-muted); margin-right: 8px; }
.dropdown-item:hover i { color: var(--ep-teal-dark); }
.noti-title { background: var(--ep-bg-soft); }
.noti-icon-badge { background-color: var(--ep-teal); }
.nav-user .pro-user-name { font-weight: 600; font-size: 14px; color: var(--ep-ink); }

/* ---- Page title ---- */
.page-title-box .page-title { font-size: 24px; font-weight: 700; letter-spacing: -.3px; color: var(--ep-navy); }
.sub-header { color: var(--ep-muted); font-size: 14px; }
.header-title { color: var(--ep-navy); font-weight: 700; }

/* ---- Cards ---- */
.card { background: var(--ep-bg); border: 1px solid var(--ep-line); border-radius: 0; box-shadow: var(--ep-shadow); }

/* Dashboard tiles */
.card.widget-flat { transition: border-color .15s, transform .15s; }
.card.widget-flat:has(a):hover { border-color: var(--ep-teal); transform: translateY(-1px); }
.widget-flat a, .widget-flat a:hover { color: inherit; text-decoration: none; }
.widget-flat h5 { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ep-muted) !important; }
.widget-flat h3 { font-size: 24px; font-weight: 700; color: var(--ep-navy); font-variant-numeric: tabular-nums; }
.widget-flat i.widget-icon { width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 24px; background: rgba(18, 165, 148, .12); color: var(--ep-teal-dark) !important; }
.widget-flat i.widget-icon.text-warning { background: rgba(184, 146, 47, .14); color: var(--ep-amber) !important; }

/* ---- Tables (also DataTables) ---- */
.table { color: var(--ep-ink); font-size: 13px; }
.table thead th, table.dataTable thead th, table.dataTable thead td {
  background: var(--ep-navy); color: #fff; font-weight: 600; font-size: 12.5px; border: 0; vertical-align: bottom; }
.table td, .table th { padding: 8px 12px; vertical-align: middle; border-top: 1px solid var(--ep-line); }
.table thead th { border-top: 0; }
.table-striped tbody tr:nth-of-type(odd) { background-color: var(--ep-bg); }
.table-striped tbody tr:nth-of-type(even) { background-color: var(--ep-row-b); }
.table-striped tbody tr:hover, table.dataTable.table-striped tbody tr:hover { background-color: var(--ep-row-hover); }
table.dataTable tbody > tr.selected, table.dataTable tbody > tr > .selected { background-color: var(--ep-teal); color: #fff; }
table.dataTable tbody > tr.selected a { color: #fff; }
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select { border: 1px solid var(--ep-input-line); border-radius: 8px; padding: 5px 10px; background-color: var(--ep-bg); }
.dataTables_wrapper .dataTables_filter input:focus { border-color: var(--ep-teal); outline: 0; box-shadow: 0 0 0 .2rem rgba(18, 165, 148, .25); }
.dataTables_info { color: var(--ep-muted); font-size: 13px; }
.page-link { color: var(--ep-navy); border-color: var(--ep-line); border-radius: 0; }
.page-link:hover { color: var(--ep-teal-dark); background: var(--ep-soft-hover); border-color: var(--ep-line); }
.page-item.active .page-link { background-color: var(--ep-teal); border-color: var(--ep-teal); color: #fff; }
.page-item.disabled .page-link { color: #9aa8b6; }

/* ---- Buttons: teal = main action, navy = secondary (as on emax.cloud and Payroll) ---- */
.btn { border-radius: 6px; border-width: 2px; font-weight: 600; font-size: 14px; padding: 8px 18px; box-shadow: none; }
.btn-sm { padding: 4px 12px; font-size: 12.5px; }
.btn-primary, .btn-success { background-color: var(--ep-btn); border-color: var(--ep-btn); color: #fff; }
.btn-primary:hover, .btn-success:hover, .btn-primary:focus, .btn-success:focus,
.btn-primary:not(:disabled):not(.disabled):active, .btn-success:not(:disabled):not(.disabled):active { background-color: var(--ep-btn-hover); border-color: var(--ep-btn-hover); color: #fff; }
.btn-secondary, .btn-dark, .btn-info { background-color: var(--ep-navy); border-color: var(--ep-navy); color: #fff; }
.btn-secondary:hover, .btn-dark:hover, .btn-info:hover, .btn-secondary:focus, .btn-dark:focus, .btn-info:focus { background-color: var(--ep-navy-2); border-color: var(--ep-navy-2); color: #fff; }
.btn-warning { background-color: var(--ep-amber); border-color: var(--ep-amber); color: #fff; }
.btn-warning:hover { background-color: #c9a23c; border-color: #c9a23c; color: #fff; }
.btn-danger { background-color: var(--ep-danger); border-color: var(--ep-danger); color: #fff; }
.btn-danger:hover { background-color: #962c32; border-color: #962c32; color: #fff; }
/* Inverse buttons: white background with blue text (also .btn-inverse, used on blue panels) */
.btn-light, .btn-outline-primary, .btn-outline-secondary, .btn-inverse { background: #fff; color: var(--ep-navy-2); border-color: var(--ep-navy-2); }
.btn-light:hover, .btn-outline-primary:hover, .btn-outline-secondary:hover { background: var(--ep-navy); border-color: var(--ep-navy); color: #fff; }
.btn-inverse:hover { background: #eaf1f9; border-color: #eaf1f9; color: var(--ep-navy); }
.btn:focus, .btn.focus, .btn-primary:focus { box-shadow: 0 0 0 3px rgba(18, 165, 148, .3); }
.btn.disabled, .btn:disabled { opacity: .55; }

/* ---- Forms ---- */
.form-control, .custom-select { border: 1px solid var(--ep-input-line); border-radius: 8px; font-size: 14px; color: var(--ep-ink); background-color: var(--ep-bg); }
.form-control:focus, .custom-select:focus { border-color: var(--ep-teal); box-shadow: 0 0 0 .2rem rgba(18, 165, 148, .25); }
.form-control:disabled, .form-control[readonly] { background-color: var(--ep-bg-soft); color: var(--ep-muted); }
.col-form-label, label { font-size: 13px; font-weight: 600; color: var(--ep-muted); }
.custom-control-label { font-weight: 400; color: var(--ep-ink); }
.custom-control-input:checked ~ .custom-control-label::before { background-color: var(--ep-teal); border-color: var(--ep-teal); }
.custom-control-input:focus ~ .custom-control-label::before { box-shadow: 0 0 0 .2rem rgba(18, 165, 148, .25); }
input[type=checkbox], input[type=radio] { accent-color: var(--ep-teal); }
.input-group-text { background: var(--ep-bg-soft); border-color: var(--ep-input-line); color: var(--ep-muted); }
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple { border: 1px solid var(--ep-input-line); border-radius: 8px; }
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default .select2-selection--single:focus { border-color: var(--ep-teal); }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background-color: var(--ep-teal); }

/* ---- Tabs ---- */
.nav-tabs { border-bottom: 2px solid var(--ep-line); }
.nav-tabs .nav-link { border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: 9px 20px; font-weight: 600; font-size: 14px; color: var(--ep-muted); background: transparent; }
.nav-tabs .nav-link:hover { color: var(--ep-teal-dark); }
.nav-tabs .nav-link.active, .nav-tabs .nav-item.show .nav-link { color: var(--ep-navy); border-bottom-color: var(--ep-teal); background: transparent; }

/* ---- Messages, toasts, pop-ups ---- */
.alert { border-radius: 10px; }
#toast-container > div { border-radius: 8px; box-shadow: 0 8px 24px rgba(11, 37, 69, .28); opacity: 1; }
.toast-success { background-color: var(--ep-teal-dark); }
.toast-info { background-color: var(--ep-navy-2); }
.toast-warning { background-color: var(--ep-amber); }
.toast-error { background-color: var(--ep-danger); }
.swal2-popup { border-radius: 8px; font-family: var(--ep-font); }
.swal2-title { color: var(--ep-navy); }
.swal2-styled.swal2-confirm { background-color: var(--ep-btn) !important; border-radius: 6px !important; font-weight: 600; box-shadow: none !important; }
.swal2-styled.swal2-cancel { background-color: var(--ep-navy) !important; border-radius: 6px !important; font-weight: 600; box-shadow: none !important; }
.modal-content { border-radius: 0; border: 1px solid var(--ep-line); }
.modal-header { border-bottom-color: var(--ep-line); }
.modal-footer { border-top-color: var(--ep-line); }

/* ---- Payment pages ---- */
.payment-box { background: var(--ep-bg); border: 1px solid var(--ep-line); }
.total-amount .header-title { color: var(--ep-navy); }

/* ---- Footer ---- */
.footer { background-color: var(--ep-navy); color: #b8c7d8; font-size: 13px; border-top: 0; }
.footer a, .footer .footer-links a { color: #b8c7d8; }
.footer a:hover, .footer .footer-links a:hover { color: #fff; text-decoration: none; }

/* ---- Sign-in, verification and error pages ---- */
body.authentication-bg { background: linear-gradient(180deg, var(--ep-navy) 0, var(--ep-navy-2) 260px, var(--ep-bg-soft) 260px) no-repeat; min-height: 100vh; }
.authentication-bg .card { border-top: 4px solid var(--ep-teal); box-shadow: 0 12px 40px rgba(11, 37, 69, .18); }
.authentication-bg .btn-block { padding-top: 10px; padding-bottom: 10px; }
.authentication-bg .text-muted a { color: var(--ep-blue); }

/* ---- Small screens ---- */
@media (max-width: 767.98px) {
  .page-title-box .page-title { font-size: 20px; }
  .widget-flat h3 { font-size: 21px; }
}

/* ---- Sign-in page: logo bar, two columns (sign in | make a payment) and footer ---- */
body.login-page { background: linear-gradient(180deg, var(--ep-navy) 0, var(--ep-navy-2) 300px, var(--ep-bg-soft) 300px) no-repeat; padding-bottom: 0; }
.login-page form { min-height: 100vh; display: flex; flex-direction: column; }
.login-topbar { flex-shrink: 0; height: 70px; display: flex; align-items: center; padding: 0 24px; background: #fff; border-bottom: 1px solid var(--ep-line); }
/* Same left edge as the logo on the portal pages, whose content column is centred and widens with the window */
@media (min-width: 1200px) { .login-topbar { padding-left: calc(5vw + 22.8px); } }
.login-topbar img { height: 40px; width: auto; display: block; }
.login-wrap { flex: 1 0 auto; padding: 44px 16px 48px; }
.login-card { max-width: 940px; margin: 0 auto; background: var(--ep-bg); border-top: 4px solid var(--ep-teal); box-shadow: 0 12px 40px rgba(11, 37, 69, .22); overflow: hidden; }
.login-split { display: grid; grid-template-columns: 1fr 1fr; }

/* Both columns share one layout: small label, heading, text, content, button at the bottom */
.login-pane, .pay-pane { padding: 40px 44px; display: flex; flex-direction: column; }
.pane-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ep-teal-dark); }
.pane-title { font-size: 26px; font-weight: 700; letter-spacing: -.3px; margin: 6px 0 12px; color: var(--ep-navy); text-align: left; }
.pane-text { margin: 0 0 22px; color: var(--ep-muted); }
.pane-action { margin-top: auto; padding-top: 24px; display: flex; justify-content: flex-end; }

/* Sign-in page buttons: small, all the same size, with an icon, right aligned */
.btn-icon { width: 168px; height: 36px; white-space: nowrap; padding: 0 12px; font-size: 13px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; flex: none;
  }
/* Icons removed: plain text buttons */
.btn-icon-login, .btn-icon-card, .btn-icon-pay { background-image: none !important; }
.btn-icon-login { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M10,17V14H3V10H10V7L15,12L10,17M10,2H19A2,2 0 0,1 21,4V20A2,2 0 0,1 19,22H10A2,2 0 0,1 8,20V18H10V20H19V4H10V6H8V4A2,2 0 0,1 10,2Z'/%3E%3C/svg%3E"); }
.btn-icon-card { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2313315c' d='M20,8H4V6H20M20,18H4V12H20M20,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V6C22,4.89 21.1,4 20,4Z'/%3E%3C/svg%3E"); }

.login-pane .pay-points { margin-bottom: 22px; }
/* Email box and Log In button on one row (wraps on narrow screens); same height as the buttons */
.login-row { flex-direction: column; align-items: stretch; justify-content: flex-end; gap: 12px; }
.login-row .login-email { flex: none; width: 100%; min-width: 0; }
.login-row .form-control { height: 36px; padding-top: 0; padding-bottom: 0; }
.login-row .btn-icon { align-self: flex-end; }
.login-pane .pay-points li { color: var(--ep-ink); }
.login-pane .pay-points i { color: var(--ep-teal-dark); }

/* Make a Payment column: blue with a soft diagonal gradient */
.pay-pane { background: linear-gradient(145deg, #0b2545 0%, #143a6b 55%, #1f5a9e 100%); }
.pay-pane .pane-eyebrow { color: #5fd6c8; }
.pay-pane .pane-title { color: #fff; }
.pay-pane .pane-text { color: #d5deea; }
/* Button on the blue panel: inverse (white with blue text) */
.pay-pane .btn-primary { background-color: #fff; border-color: #fff; color: var(--ep-navy-2); }
.pay-pane .btn-primary:hover, .pay-pane .btn-primary:focus { background-color: #eaf1f9; border-color: #eaf1f9; color: var(--ep-navy); }
.pay-points { list-style: none; margin: 0; padding: 0; }
.pay-points li { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; color: #e8eef6; }
.pay-points i { color: #5fd6c8; font-size: 19px; line-height: 1; }

/* When Make a Payment is switched off in Portal Settings, only the sign-in column is left */
.login-card:has(.login-split > .login-pane:only-child) { max-width: 480px; }
.login-split > .login-pane:only-child { grid-column: 1 / -1; }

/* Footer (links come from Portal Settings: About Us, Help, Terms, Contact Us) */
.ep-footer { flex-shrink: 0; background: var(--ep-navy); color: #b8c7d8; font-size: 13px; }
.ep-footer-inner { max-width: 1160px; margin: 0 auto; padding: 22px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.ep-footer .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; }
.ep-footer .footer-links a { color: #fff !important; margin: 0 !important; font-weight: 600; }
.ep-footer .footer-links a:hover { color: #5fd6c8 !important; text-decoration: none; }
.ep-footer .footer-credit { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; }
.ep-footer .footer-credit .sep { opacity: .45; }
.ep-footer .footer-credit a { color: #5fd6c8; font-weight: 600; }
.ep-footer .footer-credit a:hover { color: #fff; text-decoration: none; }

@media (max-width: 767.98px) {
  .login-topbar { padding: 0 20px; }
  .login-wrap { padding-top: 28px; }
  .login-split { grid-template-columns: 1fr; }
  .login-pane, .pay-pane { padding: 30px 24px; }
  .login-card:has(.login-split > .login-pane:only-child) { max-width: 100%; }
  .ep-footer .footer-credit .sep { display: none; }
}

/* ---- Pay pages (pay.aspx, payments.aspx): same shell as the sign-in page ---- */
.login-topbar { justify-content: space-between; }
.login-topbar .topbar-logo { display: block; }
.topbar-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ep-navy-2); }
.topbar-link:hover { color: var(--ep-teal-dark); text-decoration: none; }
.topbar-link i { font-size: 18px; line-height: 1; }
@media (min-width: 1200px) { .login-topbar { padding-right: calc(5vw + 22.8px); } }
.pay-shell { max-width: 1100px; margin: 0 auto; }
.pay-shell > .login-card { max-width: 1000px; }
.pay-shell .page-title-box .page-title { color: #fff; }
.pay-shell .card { border: 0; box-shadow: 0 12px 40px rgba(11, 37, 69, .22); border-top: 4px solid var(--ep-teal); }
.pay-split { grid-template-columns: 1.55fr 1fr; }
.pane-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.ep-field { min-width: 0; }
.ep-field label { display: block; margin: 0 0 5px; font-size: 12px; font-weight: 600; color: var(--ep-muted); }
.ep-field .form-control { height: 36px; padding-top: 0; padding-bottom: 0; }
.ep-field .invalid-feedback { display: none; }
.needs-validation.was-validated .ep-field .form-control:invalid ~ .invalid-feedback, .ep-field .form-control.is-invalid ~ .invalid-feedback { display: block; }
.btn-icon-pay { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M20,8H4V6H20M20,18H4V12H20M20,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V6C22,4.89 21.1,4 20,4Z'/%3E%3C/svg%3E"); }
.pay-card .pane-action { padding-top: 28px; }
@media (max-width: 767.98px) {
  .pay-split { grid-template-columns: 1fr; }
  .pane-fields { grid-template-columns: 1fr; }
  .topbar-link { font-size: 13px; }
}

/* ---- Header: logo in a white tile on the navy band (works with any customer logo) ---- */
body.login-page { background: linear-gradient(180deg, var(--ep-navy) 0, var(--ep-navy-2) 360px, var(--ep-bg-soft) 360px) no-repeat; }
.login-topbar { height: 88px; background: transparent; border-bottom: 0; }
.login-topbar .topbar-logo { background: #fff; padding: 9px 16px; border-radius: 8px; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
.login-topbar img { height: 42px; max-height: 42px; max-width: 260px; width: auto; object-fit: contain; }
.topbar-link { color: #fff; }
.topbar-link:hover { color: #5fd6c8; }
@media (min-width: 1200px) { .login-topbar { padding-left: calc(5vw + 6.8px); } }
@media (max-width: 767.98px) { .login-topbar { padding: 0 12px; height: 76px; } .login-topbar img { height: 34px; max-height: 34px; max-width: 160px; } }

/* ---- Verification page ---- */
.verify-fields { grid-template-columns: 1fr; margin-bottom: 4px; }
.verify-actions { align-items: center; justify-content: space-between; }
.verify-back { font-size: 13px; font-weight: 600; color: var(--ep-muted); }
.verify-back:hover { color: var(--ep-teal-dark); text-decoration: none; }

/* ---- Portal header (same pattern as EMAX Payroll): logo left, links right, then notifications, customer and user icon ---- */
.site-header { position: sticky; top: 0; z-index: 1030; background: #fff; border-bottom: 1px solid var(--ep-line); }
.site-header .inner { height: 66px; padding: 0 24px; display: flex; align-items: center; gap: 28px; }
@media (min-width: 1200px) { .site-header .inner { padding: 0 calc(5vw + 22.8px); } }
.site-header .logo { flex: none; display: block; }
.site-header .logo img { height: 40px; max-height: 40px; max-width: 220px; width: auto; display: block; object-fit: contain; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav-item-link { display: flex; align-items: center; gap: 7px; padding: 8px 12px; font-size: 14px; font-weight: 600; color: var(--ep-ink); border-radius: 8px; white-space: nowrap; }
.nav-item-link i { font-size: 17px; line-height: 1; color: var(--ep-teal-dark); }
.nav-item-link .caret { font-size: 16px; color: var(--ep-muted); opacity: .8; }
.nav-item-link:hover, .nav-dd.show > .nav-item-link { color: var(--ep-teal-dark); background: var(--ep-bg-soft); text-decoration: none; }
.usermenu { display: flex; align-items: center; gap: 14px; padding-left: 18px; border-left: 1px solid var(--ep-line); }
.usermenu .company { font-size: 13px; font-weight: 600; color: var(--ep-muted); white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.icon-btn, .user-btn { position: relative; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--ep-navy); border: 1px solid var(--ep-line); background: #fff; }
.icon-btn:hover, .user-btn:hover, .user-dd.show .user-btn, .notification-list.show .icon-btn { color: var(--ep-teal-dark); border-color: var(--ep-teal); text-decoration: none; }
.icon-btn::after, .user-btn::after { display: none; }
.icon-btn i, .user-btn i { font-size: 18px; line-height: 1; }
.icon-btn .noti-icon-badge { position: absolute; top: -3px; right: -3px; min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; line-height: 16px; background: var(--ep-teal); color: #fff; }
.site-header .dropdown-menu { margin-top: 8px; border: 1px solid var(--ep-line); border-radius: 8px; box-shadow: 0 10px 30px rgba(11, 37, 69, .15); padding: 6px 0; }
.dd-menu li a, .dd-menu .dropdown-item { display: block; padding: 9px 16px; font-size: 14px; font-weight: 600; color: var(--ep-ink); }
.dd-menu li a:hover, .dd-menu .dropdown-item:hover { background: #dcebf7; color: var(--ep-teal-dark); text-decoration: none; }
.dd-menu .dropdown-item.noti-title { background: var(--ep-bg-soft); font-weight: 400; }
.dd-menu .dropdown-item i { margin-right: 8px; color: var(--ep-muted); }
/* The page content no longer needs space for the old fixed menu */
.wrapper { padding-top: 28px; }
@media (max-width: 991.98px) {
  .nav-item-link span { display: none; }
  .nav-item-link .caret { display: none; }
  .site-nav { gap: 2px; }
  .site-header .inner { gap: 14px; padding: 0 16px; }
}
@media (max-width: 767.98px) {
  .usermenu .company { display: none; }
  .usermenu { padding-left: 12px; gap: 10px; }
}
@media (max-width: 575.98px) {
  .site-header .inner { gap: 8px; padding: 0 12px; }
  .site-header .logo { min-width: 0; flex: 0 1 auto; }
  .site-header .logo img { height: 30px; max-height: 30px; max-width: 120px; }
  .nav-item-link { padding: 8px; }
  .usermenu { padding-left: 8px; gap: 8px; }
  .icon-btn, .user-btn { width: 32px; height: 32px; }
}

/* ---- Login-page header: white square logo + company name (from the database) on navy ---- */
.login-topbar { background: transparent; border-bottom: 0; height: 84px; }
.login-topbar .topbar-logo { display: flex; align-items: center; gap: 0; background: none; padding: 0; border-radius: 0; box-shadow: none; }
.login-topbar .topbar-logo:hover { text-decoration: none; }
.login-topbar .brand-mark { margin-right: 14px; height: 40px; width: 40px; max-height: 40px; max-width: 40px; object-fit: contain; display: block; }
.brand-name { color: #fff; font-size: 20px; font-weight: 700; letter-spacing: -.2px; line-height: 1.2; }
@media (min-width: 1200px) { .login-topbar { padding-left: calc(5vw + 22.8px); } }
@media (max-width: 767.98px) { .login-topbar { height: 70px; } .brand-name { font-size: 17px; } .login-topbar .brand-mark { height: 34px; width: 34px; } }

/* ---- Portal header on navy, like the login pages (overrides the earlier white version) ---- */
.site-header { background: var(--ep-navy); border-bottom: 0; }
.site-header .inner { height: 72px; }
.site-header .topbar-logo { display: flex; align-items: center; flex: none; min-width: 0; }
.site-header .topbar-logo:hover { text-decoration: none; }
.site-header .brand-mark { margin-right: 14px; height: 40px; width: 40px; object-fit: contain; display: block; }
.site-header .brand-name { color: #fff; font-size: 19px; font-weight: 700; letter-spacing: -.2px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-header .nav-item-link { color: #fff; }
.site-header .nav-item-link i { color: #5fd6c8; }
.site-header .nav-item-link .caret { color: #b8c7d8; }
.site-header .nav-item-link:hover, .site-header .nav-dd.show > .nav-item-link { color: #fff; background: rgba(255, 255, 255, .12); }
.site-header .usermenu { border-left-color: rgba(255, 255, 255, .22); }
.site-header .usermenu .company { color: #d5deea; }
.site-header .icon-btn, .site-header .user-btn { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
.site-header .icon-btn:hover, .site-header .user-btn:hover, .site-header .user-dd.show .user-btn, .site-header .notification-list.show .icon-btn { color: #5fd6c8; border-color: #5fd6c8; }
@media (max-width: 767.98px) { .site-header .brand-name { font-size: 16px; } .site-header .inner { height: 64px; } }
@media (max-width: 575.98px) { .site-header .brand-name { display: none; } .site-header .brand-mark { margin-right: 0; height: 32px; width: 32px; } }
.site-header .inner > .notification-list { margin-left: 4px; }

/* ---- Dashboard: stat cards and data tables ---- */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpi-card { background: #fff; border: 1px solid var(--ep-line); border-radius: 10px; box-shadow: 0 1px 3px rgba(11, 37, 69, .06); transition: box-shadow .15s, border-color .15s, transform .15s; }
.kpi-card a { display: block; color: inherit; border-radius: 10px; }
.kpi-card a:hover { text-decoration: none; }
.kpi-card:hover { border-color: var(--ep-teal); box-shadow: 0 8px 22px rgba(11, 37, 69, .10); }
.kpi-inner { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.kpi-icon { flex: none; width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; line-height: 1; }
.kpi-icon.tone-blue { background: #e3eefb; color: #1565c0; }
.kpi-icon.tone-teal { background: #dff4f0; color: #0e8174; }
.kpi-icon.tone-amber { background: #f8efd9; color: #9a7a1f; }
.kpi-icon.tone-red { background: #f9e3e4; color: #b3363d; }
.kpi-body { min-width: 0; }
.kpi-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ep-muted); }
.kpi-value { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.5px; line-height: 1.2; color: var(--ep-navy); font-variant-numeric: tabular-nums; }
.kpi-arrow { display: none; margin-left: auto; font-size: 20px; color: var(--ep-muted); opacity: .5; transition: opacity .15s, transform .15s; }
.kpi-card a .kpi-arrow { display: block; }
.kpi-card a:hover .kpi-arrow { opacity: 1; color: var(--ep-teal-dark); transform: translateX(2px); }

.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.dash-card { background: #fff; border: 1px solid var(--ep-line); border-radius: 10px; box-shadow: 0 1px 3px rgba(11, 37, 69, .06); overflow: hidden; }
.dash-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--ep-row-b); }
.dash-card-head h4 { margin: 0; font-size: 15px; font-weight: 700; color: var(--ep-navy); }
.dash-viewall { font-size: 13px; font-weight: 600; color: var(--ep-teal-dark); white-space: nowrap; }
.dash-viewall:hover { color: var(--ep-navy); text-decoration: none; }
.dash-hint { font-size: 12px; color: var(--ep-muted); }
.dash-card-body { overflow-x: auto; }
.dash-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.dash-table th { padding: 10px 20px; background: #f8fafc; border-bottom: 1px solid var(--ep-line); font-size: 11.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--ep-muted); text-align: left; white-space: nowrap; }
.dash-table td { padding: 11px 20px; border-bottom: 1px solid var(--ep-row-b); color: var(--ep-ink); vertical-align: middle; }
.dash-table tr:last-child td { border-bottom: 0; }
.dash-table tbody tr:hover td { background: #f4f9fd; }
.dash-table .num, .dash-table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dash-table tr.current td { background: #f1f9f7; font-weight: 600; }
.dash-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #eef3f8; color: var(--ep-navy-2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.dash-badge.soon { background: #f8efd9; color: #8a6a14; }
.dash-badge.late { background: #f9e3e4; color: var(--ep-danger); }
.dash-badge.ok { background: #dff4f0; color: var(--ep-teal-dark); }
.dash-switch { display: inline-block; padding: 4px 14px; border: 1px solid var(--ep-input-line); border-radius: 6px; background: #fff; font-size: 12.5px; font-weight: 600; color: var(--ep-navy-2); }
.dash-switch:hover { border-color: var(--ep-teal); color: var(--ep-teal-dark); text-decoration: none; }
.dash-empty { padding: 28px 20px; text-align: center; font-size: 13.5px; color: var(--ep-muted); }
@media (max-width: 991.98px) { .dash-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 575.98px) { .dash-table th, .dash-table td { padding: 10px 14px; } .dash-card-head { padding: 12px 14px; } }

/* ---- Footer after sign-in (same look as the login pages) and error pages ---- */
footer.footer.ep-footer { position: absolute; left: 0; right: 0; bottom: 0; height: auto; padding: 0; background: var(--ep-navy); }
.wrapper { padding-bottom: 110px; }
.error-card { max-width: 520px; margin: 0 auto; padding: 44px 36px; text-align: center; }
.error-code { font-size: 72px; font-weight: 800; letter-spacing: -2px; line-height: 1; color: var(--ep-teal); }
.error-title { margin: 14px 0 10px; font-size: 24px; font-weight: 700; color: var(--ep-navy); }
.error-text { margin: 0 auto 26px; max-width: 400px; font-size: 15px; line-height: 1.6; color: var(--ep-muted); }
body.error-page { min-height: 100vh; display: flex; flex-direction: column; }

/* ---- Dashboard layout: cards over three columns, My Accounts in the fourth, tables underneath ---- */
.dash-top { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; align-items: stretch; }
.dash-top > .kpi-grid { grid-column: span 3; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 0; align-content: start; }
.dash-top:not(:has(.dash-accounts)) > .kpi-grid { grid-column: 1 / -1; }
.dash-top .kpi { grid-column: span 2; }
.dash-top .kpi.wide { grid-column: span 3; }
.dash-top .kpi-card { height: 100%; }
.dash-top .kpi-inner { padding: 18px 16px; }
.dash-top .dash-accounts { margin: 0; }
.dash-row { margin-bottom: 16px; }
.dash-row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.dash-row-3 .dash-table th, .dash-row-3 .dash-table td { padding-left: 14px; padding-right: 14px; }
.dash-row-3 .dash-card-head { padding-left: 14px; padding-right: 14px; }
@media (max-width: 1199.98px) {
  .dash-top { grid-template-columns: minmax(0, 1fr); }
  .dash-top > .kpi-grid, .dash-top:not(:has(.dash-accounts)) > .kpi-grid { grid-column: 1; }
  .dash-row-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
  .dash-top > .kpi-grid { grid-template-columns: minmax(0, 1fr); }
  .dash-top .kpi, .dash-top .kpi.wide { grid-column: auto; }
}
.dash-sub { display: block; font-size: 12px; font-weight: 400; color: var(--ep-muted); }
.dash-accounts .dash-card-head h4 { white-space: nowrap; }
.dash-accounts .dash-hint { white-space: nowrap; }
.dash-accounts .dash-table th, .dash-accounts .dash-table td { padding-left: 16px; padding-right: 16px; }

/* ---- Dashboard: invoices sit directly under the cards ---- */
.dash-top > .dash-main { grid-column: span 3; min-width: 0; }
.dash-top:not(:has(.dash-accounts)) > .dash-main { grid-column: 1 / -1; }
.dash-main > .kpi-grid { grid-column: auto; margin-bottom: 16px; }
.dash-main > .dash-card { margin: 0; }
.dash-top .dash-accounts { align-self: start; }
@media (max-width: 1199.98px) { .dash-top > .dash-main, .dash-top:not(:has(.dash-accounts)) > .dash-main { grid-column: 1; } }
.dash-main > .kpi-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 767.98px) { .dash-main > .kpi-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---- Dashboard: fixed-height scrolling tables ---- */
.dash-card-body { height: 262px; overflow: auto; }
.dash-accounts .dash-card-body { height: 190px; }
.dash-table thead th { position: sticky; top: 0; z-index: 1; box-shadow: 0 1px 0 var(--ep-line); }
.dash-card-body .dash-empty { display: flex; align-items: center; justify-content: center; height: 100%; padding: 0 20px; }
.dash-card-body::-webkit-scrollbar { width: 8px; height: 8px; }
.dash-card-body::-webkit-scrollbar-thumb { background: #cfd8e3; border-radius: 4px; }
.dash-card-body::-webkit-scrollbar-thumb:hover { background: #aebccb; }

/* ---- Dashboard: stat cards (icon right, label and large figure left, coloured edge) ---- */
.kpi-card { position: relative; overflow: hidden; }
.kpi-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ep-line); }
.kpi-card:has(.tone-blue)::before { background: #1565c0; }
.kpi-card:has(.tone-teal)::before { background: var(--ep-teal); }
.kpi-card:has(.tone-amber)::before { background: var(--ep-amber); }
.kpi-card:has(.tone-red)::before { background: var(--ep-danger); }
.dash-top .kpi-inner { flex-direction: row-reverse; justify-content: space-between; align-items: center; padding: 20px 20px 20px 24px; min-height: 92px; }
.kpi-body { flex: 1; }
.kpi-label { font-size: 12px; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 4px; }
.kpi-value { font-size: 30px; }
.kpi-icon { width: 48px; height: 48px; border-radius: 50%; font-size: 24px; }
.kpi-arrow { display: none !important; }
.kpi-card a:hover .kpi-icon { transform: scale(1.06); }
.kpi-icon { transition: transform .15s; }

/* ---- Dashboard: 3 visible rows per table, quieter column headings, My Accounts level with the cards ---- */
.dash-card-body { height: 172px; }
.dash-table th { font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.dash-table td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.dash-top { grid-template-rows: auto auto; }
.dash-top > .dash-main { display: contents; }
.dash-main > .kpi-grid { grid-column: 1 / 4; grid-row: 1; margin-bottom: 0; }
.dash-top:not(:has(.dash-accounts)) .dash-main > .kpi-grid { grid-column: 1 / -1; }
.dash-main > .dash-card { grid-column: 1 / -1; grid-row: 2; }
.dash-top .dash-accounts { grid-column: 4; grid-row: 1; align-self: stretch; display: flex; flex-direction: column; min-height: 0; }
.dash-accounts .dash-card-body { height: auto; flex: 1 1 0; min-height: 0; }
@media (max-width: 1199.98px) {
  .dash-top { grid-template-rows: none; }
  .dash-main > .kpi-grid, .dash-top:not(:has(.dash-accounts)) .dash-main > .kpi-grid, .dash-main > .dash-card, .dash-top .dash-accounts { grid-column: 1; grid-row: auto; }
  .dash-accounts .dash-card-body { height: 172px; flex: none; }
}
.dash-row-3 .dash-table { table-layout: fixed; font-size: 13px; }
.dash-row-3 .dash-table th, .dash-row-3 .dash-table td { padding-left: 10px; padding-right: 10px; }
.dash-row-3 .dash-table th:first-child, .dash-row-3 .dash-table td:first-child { padding-left: 14px; }
.dash-row-3 .dash-table th:last-child, .dash-row-3 .dash-table td:last-child { padding-right: 14px; }
.dash-top .kpi:not(.wide) .kpi-inner { min-height: 118px; }

/* ---- Header: notification bell without the circle ---- */
.site-header .icon-btn, .site-header .icon-btn:hover, .site-header .notification-list.show .icon-btn { border-color: transparent; }
.site-header .icon-btn i { font-size: 22px; }
.site-header .icon-btn .noti-icon-badge { top: 0; right: 0; }

/* ---- Footer after sign-in: sits straight under the content, at the bottom on short pages ---- */
body.topbar-light { padding-bottom: 0; }
#frmInterface { min-height: 100vh; display: flex; flex-direction: column; }
#frmInterface > .wrapper { flex: 1 0 auto; padding-bottom: 24px; }
footer.footer.ep-footer { position: static; margin-top: auto; flex-shrink: 0; }

/* ---- Dashboard: small Pay button in the Outstanding Invoices and Insurance Renewals tables ---- */
.dash-table th.act, .dash-table td.act { text-align: right; width: 76px; }
.dash-pay { display: inline-block; padding: 1px 14px; vertical-align: middle; border-radius: 6px; background: var(--ep-btn); color: #fff !important; font-size: 12px; font-weight: 600; line-height: 1.6; }
.dash-pay:hover { background: var(--ep-teal-dark); text-decoration: none; color: #fff !important; }
.dash-row-3 .dash-table th.act, .dash-row-3 .dash-table td.act { width: 70px; }
.dash-row-3 .dash-table th.num, .dash-row-3 .dash-table td.num { width: 84px; }
.dash-badge { border-radius: 6px; padding: 2px 10px; }

/* ---- Dashboard: Switch and Pay buttons share one style (white, bordered) ---- */
.dash-switch, .dash-pay { display: inline-block; box-sizing: border-box; min-width: 64px; padding: 2px 14px; border: 1px solid var(--ep-input-line); border-radius: 6px; background: #fff; color: var(--ep-navy-2) !important; font-size: 12px; font-weight: 600; line-height: 1.6; text-align: center; vertical-align: middle; }
.dash-switch:hover, .dash-pay:hover { background: #fff; border-color: var(--ep-teal); color: var(--ep-teal-dark) !important; text-decoration: none; }
.dash-switch, .dash-pay { min-width: 58px; padding: 1px 12px; line-height: 1.5; }
.dash-table td.act { padding-top: 8px; padding-bottom: 8px; }
.dash-row-3 .dash-table th.act, .dash-row-3 .dash-table td.act { width: 88px; }

/* ---- Notifications dropdown (same card style as the dashboard) ---- */
.noti-menu { width: 360px; max-width: calc(100vw - 24px); padding: 0 !important; overflow: hidden; }
.noti-head { padding: 14px 20px; border-bottom: 1px solid var(--ep-row-b); }
.noti-head h4 { margin: 0; font-size: 15px; font-weight: 700; color: var(--ep-navy); }
.noti-list { max-height: 320px; overflow-y: auto; }
.noti-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--ep-row-b); color: var(--ep-ink); }
.noti-item:last-child { border-bottom: 0; }
.noti-item:hover { background: #f4f9fd; text-decoration: none; color: var(--ep-ink); }
.noti-ico { flex: none; width: 36px; height: 36px; border-radius: 50%; background: #e3eefb; color: #1565c0; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.noti-ico i { margin: 0; line-height: 1; }
.noti-body { min-width: 0; display: block; }
.noti-text { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.4; color: var(--ep-ink); white-space: normal; }
.noti-date { display: block; margin-top: 2px; font-size: 12px; color: var(--ep-muted); }
.noti-empty { padding: 28px 20px; text-align: center; font-size: 13.5px; color: var(--ep-muted); }
.noti-list::-webkit-scrollbar { width: 8px; }
.noti-list::-webkit-scrollbar-thumb { background: #cfd8e3; border-radius: 4px; }

/* ---- My Accounts: current account in the same gold as the Insurance Renewals card ---- */
.dash-table tr.current td { background: #f8efd9; }
.dash-accounts .dash-badge.ok { background: #efdcaa; color: #7a5d12; }
.dash-top .kpi .kpi-inner { min-height: 108px; }
.dash-top .kpi:not(.wide) .kpi-inner { min-height: 108px; }
.dash-row-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr); }
@media (max-width: 1199.98px) { .dash-row-3 { grid-template-columns: minmax(0, 1fr); } }
.dash-policies .dash-table th:nth-child(1), .dash-policies .dash-table td:nth-child(1) { width: 39%; }
.dash-policies .dash-table th:nth-child(2), .dash-policies .dash-table td:nth-child(2) { width: 23%; }
.dash-policies .dash-table th:nth-child(3), .dash-policies .dash-table td:nth-child(3) { width: 38%; }
.dash-policies .dash-badge { padding: 2px 8px; }

/* ---- No scrollbar when there are only three rows ---- */
.dash-card-body { height: 180px; overflow-x: hidden; overflow-y: auto; }
.dash-accounts .dash-card-body { height: auto; }
.dash-table { margin: 0; }
.dash-table td.act { padding-top: 6px; padding-bottom: 6px; }
.dash-badge { line-height: 1.4; }
@media (max-width: 1199.98px) { .dash-accounts .dash-card-body { height: 180px; } }
.dash-count { margin-left: 2px; font-weight: 600; color: var(--ep-muted); }
.dash-policies .dash-table th:nth-child(1), .dash-policies .dash-table td:nth-child(1) { width: 45%; }
.dash-policies .dash-table th:nth-child(2), .dash-policies .dash-table td:nth-child(2) { width: 19%; padding-right: 2px; }
.dash-policies .dash-table th:nth-child(3), .dash-policies .dash-table td:nth-child(3) { width: 36%; }

/* ---- Header drop-down menus: icon before each item ---- */
.dd-menu li a, .dd-menu .dropdown-item { display: flex; align-items: center; gap: 10px; }
.dd-menu li a i, .dd-menu .dropdown-item i { flex: none; width: 20px; margin: 0; text-align: center; font-size: 18px; line-height: 1; color: var(--ep-teal-dark); }
.dd-menu li a:hover i, .dd-menu .dropdown-item:hover i { color: var(--ep-teal-dark); }
.dd-menu .dropdown-item span { line-height: 1.3; }
.site-header .dd-menu { min-width: 200px; }
.dd-menu li a, .dd-menu .dropdown-item { white-space: nowrap; }
.dash-policies .dash-table th:nth-child(1), .dash-policies .dash-table td:nth-child(1) { width: 50%; }
.dash-policies .dash-table th:nth-child(2), .dash-policies .dash-table td:nth-child(2) { width: 18%; text-align: right; padding-left: 2px; padding-right: 8px; }
.dash-policies .dash-table th:nth-child(3), .dash-policies .dash-table td:nth-child(3) { width: 32%; padding-left: 4px; }
.dash-policies .dash-table th:nth-child(1), .dash-policies .dash-table td:nth-child(1) { width: 45%; }
.dash-policies .dash-table th:nth-child(2), .dash-policies .dash-table td:nth-child(2) { width: 21%; }
.dash-policies .dash-table th:nth-child(3), .dash-policies .dash-table td:nth-child(3) { width: 34%; }

/* ---- Active Policies card in its own colour (purple) ---- */
.kpi-icon.tone-green { background: #e4f3e2; color: #2e7d32; }
.kpi-card:has(.tone-green)::before { background: #43a047; }
.dash-card-head h4 .dash-count { font-size: 12px; font-weight: 500; }
.dash-policies .dash-table th:nth-child(3) { text-align: left; }
.dash-policies .dash-table th, .dash-policies .dash-table td { text-align: left; }
.dash-policies .dash-table th:nth-child(1), .dash-policies .dash-table td:nth-child(1) { width: 47%; }
.dash-policies .dash-table th:nth-child(2), .dash-policies .dash-table td:nth-child(2) { width: 23%; padding-left: 10px; padding-right: 4px; }
.dash-policies .dash-table th:nth-child(3), .dash-policies .dash-table td:nth-child(3) { width: 30%; padding-left: 8px; padding-right: 6px; }
.dash-policies .dash-table th:nth-child(n), .dash-policies .dash-table td:nth-child(n) { text-align: left; }
/* Sign-in email box: keep all four corners rounded (the hidden validation message made Bootstrap square the right side) */
.login-row .input-group > .form-control { border-radius: 8px !important; }
/* My Accounts: current account listed first, row without a background; only the Current tag is coloured */
.dash-table tr.current td { background: transparent; }
.dash-table tbody tr.current:hover td { background: #f4f9fd; }

/* Dashboard: stacked Online Payments + Outstanding Claims column */
.dash-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dash-col > .dash-card { margin-bottom: 0; }

/* Card hover: border and arrow take the card's own colour */
.kpi-card:has(.tone-blue):hover { border-color: #1565c0; }
.kpi-card:has(.tone-teal):hover { border-color: var(--ep-teal); }
.kpi-card:has(.tone-green):hover { border-color: #43a047; }
.kpi-card:has(.tone-amber):hover { border-color: var(--ep-amber); }
.kpi-card:has(.tone-red):hover { border-color: var(--ep-danger); }
.kpi-card:has(.tone-blue) a:hover .kpi-arrow { color: #1565c0; }
.kpi-card:has(.tone-teal) a:hover .kpi-arrow { color: var(--ep-teal-dark); }
.kpi-card:has(.tone-green) a:hover .kpi-arrow { color: #2e7d32; }
.kpi-card:has(.tone-amber) a:hover .kpi-arrow { color: var(--ep-amber); }
.kpi-card:has(.tone-red) a:hover .kpi-arrow { color: var(--ep-danger); }

/* Row 2: Outstanding Amounts (spans Policies + Renewals width) beside Online Payments */
.dash-row-amounts { align-items: stretch; }
.dash-row-amounts > .dash-card:first-child { grid-column: span 2; }
@media (max-width: 1199.98px) { .dash-row-amounts > .dash-card:first-child { grid-column: auto; } }

/* Online Payments: compact date column, wider description */
.dash-row-amounts > .dash-card:last-child .dash-table th:first-child,
.dash-row-amounts > .dash-card:last-child .dash-table td:first-child { width: 96px; }
.dash-row-amounts > .dash-card:last-child .dash-table th.num,
.dash-row-amounts > .dash-card:last-child .dash-table td.num { width: 92px; }

/* Align My Accounts with the third column of the table rows below (Online Payments / Outstanding Claims) */
@media (min-width: 1200px) {
  .dash-top { grid-template-columns: minmax(0, 1fr) calc((100% - 32px) / 3.5); }
  .dash-main > .kpi-grid { grid-column: 1; }
  .dash-top:not(:has(.dash-accounts)) .dash-main > .kpi-grid { grid-column: 1 / -1; }
  .dash-top .dash-accounts { grid-column: 2; }
}

/* ---- List pages (DataTables) in the dashboard table style: .ep-list ---- */
.ep-list { margin-bottom: 24px; }
.ep-list-head { flex-wrap: wrap; align-items: center; padding: 16px 20px; }
.ep-list-help { margin: 0; flex: 1 1 360px; font-size: 13.5px; color: var(--ep-muted); line-height: 1.5; }
.ep-list-pay { display: flex; align-items: center; gap: 16px; }
.ep-list-pay .total-amount { padding: 0; }
.ep-list-pay .total-amount .header-title { margin: 0; font-size: 14px; font-weight: 600; color: var(--ep-navy); white-space: nowrap; }
.ep-list-table { overflow-x: auto; }
.ep-list .dataTables_wrapper { padding: 0; }
.ep-list .dataTables_wrapper > .row, .ep-list .dataTables_wrapper .row { margin: 0; }
.ep-list-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 20px; border-bottom: 1px solid var(--ep-row-b); }
.ep-list-tools .dataTables_length label, .ep-list-tools .dataTables_filter label { margin: 0; font-size: 13px; color: var(--ep-muted); font-weight: 500; }
.ep-list-tools .dataTables_filter input { margin-left: 8px; width: 200px; }
.ep-list-tools .dataTables_length select { margin: 0 6px; }
.ep-list-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 20px; border-top: 1px solid var(--ep-row-b); }
.ep-list-foot .dataTables_info, .ep-list-foot .dataTables_paginate { padding: 0; margin: 0; }
.ep-list-foot .pagination { margin: 0; }
.ep-list-foot .page-link { border-radius: 6px; margin: 0 2px; padding: 4px 10px; font-size: 13px; }
.ep-list table.dash-table { margin: 0 !important; width: 100% !important; table-layout: auto; border-collapse: collapse !important; }
.ep-list table.dash-table thead th { position: static; padding: 10px 20px; background: #f8fafc; border-top: 0; border-bottom: 1px solid var(--ep-line); font-size: 12px; font-weight: 600; color: var(--ep-muted); text-transform: none; letter-spacing: 0; white-space: nowrap; }
.ep-list table.dash-table thead th.num { text-align: right; }
.ep-list table.dash-table tbody td { padding: 11px 20px; border-top: 0; border-bottom: 1px solid var(--ep-row-b); font-size: 13px; color: var(--ep-ink); vertical-align: middle; background: #fff; }
.ep-list table.dash-table tbody td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ep-list table.dash-table tbody tr:hover td { background: #f4f9fd; }
.ep-list table.dash-table tbody tr.selected td { background: #e8f5f2 !important; color: var(--ep-ink); }
.ep-list table.dash-table tbody td.select-checkbox, .ep-list table.dash-table thead th.table-cell-center { text-align: center; }
.ep-list table.dash-table.dataTable thead .sorting:before, .ep-list table.dash-table.dataTable thead .sorting:after,
.ep-list table.dash-table.dataTable thead .sorting_asc:before, .ep-list table.dash-table.dataTable thead .sorting_asc:after,
.ep-list table.dash-table.dataTable thead .sorting_desc:before, .ep-list table.dash-table.dataTable thead .sorting_desc:after { right: 6px; }
.ep-list table.dash-table.dataTable thead th.num.sorting, .ep-list table.dash-table.dataTable thead th.num.sorting_asc, .ep-list table.dash-table.dataTable thead th.num.sorting_desc { padding-right: 30px; }
@media (max-width: 767.98px) {
  .ep-list-pay { width: 100%; justify-content: space-between; }
  .ep-list-tools, .ep-list-foot { padding: 10px 14px; }
  .ep-list table.dash-table thead th, .ep-list table.dash-table tbody td { padding-left: 12px; padding-right: 12px; }
}

/* Selection checkbox drawn by DataTables Select */
.ep-list table.dataTable tbody td.select-checkbox { position: relative; width: 64px; }
.ep-list table.dataTable tbody td.select-checkbox:before, .ep-list table.dataTable tbody tr.selected td.select-checkbox:after { display: block; position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; box-sizing: border-box; }
.ep-list table.dataTable tbody td.select-checkbox:before { content: " "; border: 1.5px solid #aab6c3; border-radius: 4px; background: #fff; }
.ep-list table.dataTable tbody tr.selected td.select-checkbox:before { background: var(--ep-teal); border-color: var(--ep-teal); }
.ep-list table.dataTable tbody tr.selected td.select-checkbox:after { content: "\2713"; color: #fff; font-size: 12px; font-weight: 700; line-height: 14px; text-align: center; text-shadow: none; }

/* List pages: tidy tool row, selected-row borders, amount alignment */
.ep-list-tools .dataTables_length label, .ep-list-tools .dataTables_filter label { display: inline-flex; align-items: center; white-space: nowrap; }
.ep-list-tools .dataTables_length select, .ep-list-tools .dataTables_filter input { width: auto; display: inline-block; height: 32px; }
.ep-list-tools .dataTables_filter input { width: 200px; }
.ep-list table.dash-table tbody tr.selected td { border-top: 0; border-bottom: 1px solid var(--ep-row-b); }
.ep-list table.dash-table tbody td.num { padding-right: 30px; }
.ep-list-tools .dataTables_length select { min-width: 68px; padding-right: 24px; }

/* Footer on one line: links left, copyright and credit right (stacked again on small screens) */
@media (min-width: 768px) {
  .ep-footer-inner { max-width: none; flex-direction: row; justify-content: space-between; align-items: center; gap: 24px; text-align: left; padding: 18px 24px; }
  .ep-footer .footer-links { justify-content: flex-start; }
  .ep-footer .footer-credit { justify-content: flex-end; text-align: right; }
}
@media (min-width: 1200px) { .ep-footer-inner { padding-left: calc(5vw + 22.8px); padding-right: calc(5vw + 22.8px); } }

/* Sign-in page: email, Log In and Make a Payment sit just under the bullet points instead of at the bottom */
.pane-action { margin-top: 0; padding-top: 6px; }
.login-pane .pay-points, .pay-pane .pay-points { margin-bottom: 20px; }

/* Sign-in page: email box under the bullet points; Log In and Make a Payment stay level at the bottom */
.pay-pane .pane-action { margin-top: auto; padding-top: 24px; }
.login-pane .login-row { margin-top: 0; padding-top: 0; flex: 1 1 auto; }
.login-pane .login-row .btn-icon { margin-top: auto; }
.login-pane .login-row .login-email { margin-bottom: 20px; }

/* List pages: tick box in the flow (always centred in its cell), close to the amount; Pay button as on the dashboard */
.ep-list table.dataTable tbody td.select-checkbox { width: 48px; padding-left: 0; padding-right: 0; text-align: center; vertical-align: middle; }
.ep-list table.dataTable thead th.table-cell-center { width: 48px; padding-left: 0; padding-right: 0; }
.ep-list table.dataTable tbody td.select-checkbox:before { position: static; display: inline-block; vertical-align: middle; width: 16px; height: 16px; margin: 0; }
.ep-list table.dataTable tbody tr.selected td.select-checkbox:after { display: none; }
.ep-list table.dataTable tbody tr.selected td.select-checkbox:before { background: var(--ep-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px 12px no-repeat; border-color: var(--ep-teal); }
.ep-list table.dash-table tbody td.num { padding-right: 16px; }
.ep-list table.dash-table.dataTable thead th.num.sorting, .ep-list table.dash-table.dataTable thead th.num.sorting_asc, .ep-list table.dash-table.dataTable thead th.num.sorting_desc { padding-right: 16px; }
.ep-list table.dash-table.dataTable thead th.num:before, .ep-list table.dash-table.dataTable thead th.num:after { display: none; }
.ep-list-pay .dash-pay { cursor: pointer; }

/* List page heading: back link, title and one-line description */
.ep-page-head { margin: 0 0 16px; }
.ep-back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--ep-teal-dark); }
.ep-back:hover { color: var(--ep-navy); text-decoration: none; }
.ep-back .mdi { font-size: 16px; line-height: 1; transition: transform .15s; }
.ep-back:hover .mdi { transform: translateX(-2px); }
.ep-page-title { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.3px; line-height: 1.25; color: var(--ep-navy); }
.ep-page-sub { margin: 4px 0 0; font-size: 14px; color: var(--ep-muted); }
@media (max-width: 767.98px) { .ep-page-title { font-size: 20px; } }

/* List pages: larger Pay button with green text and border */
.ep-list-pay .dash-pay { min-width: 88px; padding: 6px 22px; border: 1.5px solid var(--ep-btn); border-radius: 8px; background: #fff; color: var(--ep-btn) !important; font-size: 14px; font-weight: 700; line-height: 1.4; }
.ep-list-pay .dash-pay:hover, .ep-list-pay .dash-pay:focus { background: #eaf6f4; border-color: var(--ep-btn-hover); color: var(--ep-btn-hover) !important; }

/* Records per page is fixed at 10 on every list page: no "Show entries" selector */
.dataTables_length { display: none !important; }
.ep-list-tools { justify-content: flex-end; }

/* Slight blue gradient on the top banner and the footer */
.site-header, footer.footer.ep-footer { background: linear-gradient(100deg, #0b2545 0%, #12396b 55%, #1a4c88 100%); }

/* Document links in list tables */
.ep-list a.ep-doc { display: inline-flex; align-items: center; margin-right: 10px; font-size: 20px; line-height: 1; color: var(--ep-teal-dark); }
.ep-list a.ep-doc:hover { color: var(--ep-navy); text-decoration: none; }

/* Sign-in and pay pages: logo and company name at exactly the same position and size as in the signed-in header */
.login-topbar { height: 72px; }
.login-topbar .brand-name { font-size: 19px; }
@media (max-width: 767.98px) { .login-topbar { height: 64px; } .login-topbar .brand-name { font-size: 16px; } }
@media (max-width: 575.98px) { .login-topbar .brand-name { display: none; } .login-topbar .brand-mark { margin-right: 0; height: 32px; width: 32px; } }

/* Menu items: regular weight */
.dd-menu li a, .dd-menu .dropdown-item, .dropdown-item { font-weight: 400; }

/* Portal Settings: card layout, field headings above the fields */
.ep-settings.dash-card { padding: 22px 26px 26px; overflow: visible; }
.ep-settings .nav-tabs { margin-bottom: 22px !important; }
.ep-settings .form-group.row { display: block; margin: 0 0 16px !important; }
.ep-settings .form-group.row > label.col-form-label { display: block; flex: none !important; width: 100%; max-width: 100% !important; padding: 0 0 5px !important; font-size: 13px; font-weight: 600; color: var(--ep-muted); }
.ep-settings .form-group.row > label.col-form-label:empty { display: none; }
.ep-settings .form-group.row > div { width: 100%; max-width: 420px; padding: 0 !important; }
.ep-settings .form-group.row > div.col-sm-1 { max-width: 200px; }
.ep-settings .form-group.row > div.col-sm-6 { max-width: 780px; }
.ep-settings .ep-two-col .form-group.row > div { max-width: 100%; }
.ep-settings .ep-two-col .row > .col-lg-6 { padding-left: 0; padding-right: 24px; }
.ep-settings hr { margin: 8px 0 18px; border-top-color: var(--ep-line); }
.ep-settings .col-lg-12 { padding: 0; }
.ep-settings .btn-primary { min-width: 120px; }

/* Company and Links: three columns */
.ep-settings .ep-three-col .row > .col-lg-4 { padding-left: 0; padding-right: 24px; }

/* Email tab: editor and buttons in the site style */
.ep-settings .btn-outline-primary { background: #fff; border: 1px solid var(--ep-btn); color: var(--ep-btn); font-weight: 600; border-radius: 6px; padding: 7px 18px; margin-top: 12px; }
.ep-settings .btn-outline-primary:hover, .ep-settings .btn-outline-primary:focus { background: var(--ep-btn); color: #fff; border-color: var(--ep-btn); box-shadow: none; }
.ep-settings .note-editor.note-frame { border: 1px solid var(--ep-input-line); border-radius: 8px; box-shadow: none; overflow: hidden; }
.ep-settings .note-editor.note-frame.focus, .ep-settings .note-editor.note-frame:focus-within { border-color: var(--ep-teal); box-shadow: 0 0 0 3px rgba(18, 165, 148, .15); }
.ep-settings .note-editor .note-toolbar { background: var(--ep-bg-soft); border-bottom: 1px solid var(--ep-line); padding: 6px 8px 2px; }
.ep-settings .note-editor .note-toolbar .note-btn-group { margin: 0 6px 4px 0; }
.ep-settings .note-editor .note-toolbar .note-btn { background: #fff; border: 1px solid var(--ep-line); color: var(--ep-ink); border-radius: 6px; padding: 4px 9px; font-size: 13px; line-height: 1.4; box-shadow: none; margin-right: 2px; }
.ep-settings .note-editor .note-toolbar .note-btn:hover, .ep-settings .note-editor .note-toolbar .note-btn:focus { background: var(--ep-soft-hover); color: var(--ep-teal-dark); border-color: var(--ep-input-line); }
.ep-settings .note-editor .note-toolbar .note-btn.active, .ep-settings .note-editor .note-toolbar .note-btn:active { background: rgba(18, 165, 148, .12); color: var(--ep-teal-dark); border-color: var(--ep-teal); }
.ep-settings .note-editor .note-dropdown-menu, .ep-settings .note-editor .dropdown-menu { border: 1px solid var(--ep-line); border-radius: 8px; box-shadow: 0 6px 18px rgba(11, 37, 69, .12); }
.ep-settings .note-editor .note-editing-area .note-editable { font-size: 14px; color: var(--ep-ink); padding: 12px 14px; }

/* Portal Settings: first column lines up with the tab headings */
.ep-settings .ep-two-col .form-horizontal > .row { margin-left: 0; margin-right: 0; }

/* Portal Settings: Update button always at the top right of the card */
.ep-settings.dash-card { position: relative; }
.ep-settings .ep-settings-actions { position: absolute; top: 18px; right: 26px; z-index: 5; }
@media (max-width: 767.98px) { .ep-settings .ep-settings-actions { position: static; text-align: right; margin-bottom: 12px; } }

/* My Account page in the site template */
.ep-account.dash-card { padding: 22px 26px 26px; overflow: visible; }
.ep-account .nav-tabs { margin-bottom: 20px; }
.ep-account-text { margin: 0 0 18px; font-size: 14px; color: var(--ep-muted); line-height: 1.55; max-width: 780px; }
.ep-account .ep-list { margin: 0; border: 1px solid var(--ep-line); border-radius: 8px; overflow: hidden; }
.ep-account .ep-list .ep-list-foot { border-top: 1px solid var(--ep-row-b); }
.ep-mfa-row { display: grid; grid-template-columns: minmax(240px, 400px) 1fr; gap: 28px; align-items: center; padding: 16px 0; border-top: 1px solid var(--ep-row-b); }
.ep-mfa-row:first-of-type { border-top: 1px solid var(--ep-row-b); }
.ep-mfa-label { font-size: 14px; color: var(--ep-ink); line-height: 1.5; }
.ep-mfa-body { font-size: 14px; color: var(--ep-ink); min-width: 0; }
.ep-mfa-inline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ep-mfa-inline .form-control { width: 200px; max-width: 100%; }
.ep-mfa-narrow .form-control { max-width: 320px; }
.ep-mfa-status strong { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--ep-bg-soft); color: var(--ep-navy); font-size: 13px; font-weight: 600; }
.ep-step-no { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-right: 10px; border-radius: 50%; background: rgba(18, 165, 148, .14); color: var(--ep-teal-dark); font-size: 12px; font-weight: 700; vertical-align: middle; }
.ep-mfa-body img { max-width: 180px; height: auto; border: 1px solid var(--ep-line); border-radius: 8px; padding: 6px; background: #fff; }
@media (max-width: 767.98px) { .ep-mfa-row { grid-template-columns: 1fr; gap: 10px; } }

/* My Account MFA: two columns */
.ep-mfa-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; align-items: start; }
.ep-mfa-cols .ep-mfa-row { display: block; }
.ep-mfa-cols .ep-mfa-label { margin-bottom: 12px; }
@media (max-width: 991.98px) { .ep-mfa-cols { grid-template-columns: 1fr; } }

/* Impersonate: search box above the table */
.ep-search { position: relative; width: 100%; max-width: 420px; }
.ep-search .mdi { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--ep-muted); pointer-events: none; }
.ep-search .form-control { padding-left: 38px; height: 38px; }

/* MFA: no line above the first row of each column */
.ep-mfa-cols .ep-mfa-col > .ep-mfa-row:first-child { border-top: 0; padding-top: 0; }

/* My Account: the theme adds 20px above the tab content on top of the tab bar margin */
.ep-account .tab-content { padding-top: 0; }

/* Users page */
.ep-users .ep-list-tools { justify-content: space-between; }
.ep-list-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.ep-users .ep-list-table select.form-control { height: 36px; min-width: 160px; max-width: 220px; }
.ep-users .ep-list-table .btn-sm { min-width: 74px; }

/* Search box sits on the left of the toolbar (Impersonate, Users) */
.ep-list-tools .ep-search { margin-right: auto; }

/* Users: toolbar buttons the same size, clearer Disable MFA button */
.ep-list-actions .btn { min-width: 120px; height: 38px; padding-top: 0; padding-bottom: 0; display: inline-flex; align-items: center; justify-content: center; }
.ep-users .btn-disable-mfa, .ep-users input[id*="btnDisable"] { min-width: 112px; height: 32px; padding: 0 14px; font-size: 13px; font-weight: 500; color: #b3382c; background: #fdecea; border: 1px solid #f3c1bb; border-radius: 4px; }
.ep-users .btn-disable-mfa:hover, .ep-users .btn-disable-mfa:focus, .ep-users input[id*="btnDisable"]:hover, .ep-users input[id*="btnDisable"]:focus { color: #9c2b20; background: #fadbd7; border-color: #ee9f96; }
.ep-users .btn-disable-mfa:disabled, .ep-users .btn-disable-mfa[disabled], .ep-users input[id*="btnDisable"]:disabled { color: var(--ep-muted); background: var(--ep-bg-soft); border-color: var(--ep-line); opacity: .7; cursor: not-allowed; }

/* Policy Document Links page */
.ep-policies .ep-list-tools { justify-content: space-between; }
.ep-policies .ep-list-table input.form-control { height: 36px; min-width: 200px; }

/* Payment Types: list on the left, create form on the right */
.ep-split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.ep-split > .dash-card { margin-bottom: 0; }
.ep-payments .ep-list-tools { justify-content: space-between; }
.ep-payments .ep-list-table input.form-control { height: 36px; }
.ep-create { padding: 22px 26px 26px; }
.ep-card-title { margin: 0 0 18px; font-size: 16px; font-weight: 600; color: var(--ep-navy); }
.ep-field { margin: 0 0 16px; }
.ep-field label { display: block; margin: 0 0 5px; font-size: 13px; font-weight: 600; color: var(--ep-ink); }
.ep-create .btn-primary { min-width: 120px; }
@media (max-width: 991.98px) { .ep-split { grid-template-columns: 1fr; } }

/* Payment Types: soft red Delete button */
.ep-payments .btn-delete-payment { display: inline-flex; align-items: center; justify-content: center; min-width: 84px; height: 32px; padding: 0 14px; font-size: 13px; font-weight: 500; color: #b3382c; background: #fdecea; border: 1px solid #f3c1bb; border-radius: 4px; text-decoration: none; }
.ep-payments .btn-delete-payment:hover, .ep-payments .btn-delete-payment:focus { color: #9c2b20; background: #fadbd7; border-color: #ee9f96; text-decoration: none; }
.ep-payments .ep-list-table td:last-child { text-align: right; }

/* Payment Types: Create button at the top of the card */
.ep-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 18px; }
.ep-card-head .ep-card-title { margin: 0; }

/* Notifications: same two-column layout as Payment Types */
.ep-create .select2-container { width: 100% !important; }

/* SEPA Payments */
.ep-sepa.dash-card { padding: 22px 26px 8px; overflow: visible; margin-bottom: 20px; }
.ep-sepa-actions { display: flex; justify-content: flex-end; gap: 10px; margin: 0 0 18px; }
.ep-sepa-actions .btn { min-width: 120px; height: 38px; padding-top: 0; padding-bottom: 0; display: inline-flex; align-items: center; justify-content: center; }
.ep-sepa .ep-three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.ep-sepa .ep-field .select2-container { width: 100% !important; }
.ep-total { display: flex; align-items: center; height: 38px; padding: 0 14px; background: var(--ep-bg-soft); border: 1px solid var(--ep-line); border-radius: 4px; }
.ep-total .header-title { margin: 0; font-size: 15px; font-weight: 600; color: var(--ep-navy); }
@media (max-width: 991.98px) { .ep-sepa .ep-three-col { grid-template-columns: 1fr; } }

/* SEPA Payments: four fields on one line */
.ep-sepa .ep-four-col { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 24px; align-items: end; }
@media (max-width: 1199.98px) { .ep-sepa .ep-four-col { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .ep-sepa .ep-four-col { grid-template-columns: 1fr; } }

/* Mobile: keep the company name next to the logo (it was hidden below 576px); it shortens with "..." when space is tight */
@media (max-width: 575.98px) {
  .site-header .topbar-logo, .login-topbar .topbar-logo { flex: 1 1 auto; min-width: 0; }
  .site-header .brand-name, .login-topbar .brand-name { display: block; min-width: 0; font-size: 14px; }
  .site-header .brand-mark, .login-topbar .brand-mark { margin-right: 10px; }
  .site-header .site-nav { flex: none; }
}
