/*
 * REMAS client portal (Perfex "perfex" customers theme).
 * Same tokens as the admin: canvas background, white surfaces, navy actions,
 * gold for the current page, square corners.
 */

body.customers {
    font-family: var(--rm-font);
    font-size: var(--rm-text-md);
    color: var(--rm-ink);
    background: var(--rm-bg);
    -webkit-font-smoothing: antialiased;
}

body.customers input,
body.customers select,
body.customers textarea,
body.customers button,
body.customers .btn {
    font-family: var(--rm-font);
}

body.customers h1, body.customers h2, body.customers h3, body.customers h4,
body.customers .section-heading,
body.customers .login-heading {
    font-family: var(--rm-font-head);
    font-weight: 700;
    letter-spacing: -.015em;
    color: var(--rm-ink);
}

body.customers a { color: var(--rm-navy); }
body.customers a:hover, body.customers a:focus { color: var(--rm-deep); }
body.customers .text-muted { color: var(--rm-muted) !important; }
body.customers table, body.customers .total { font-variant-numeric: tabular-nums; }

body.customers a:focus-visible,
body.customers button:focus-visible,
body.customers .btn:focus-visible {
    outline: 3px solid var(--rm-focus) !important;
    outline-offset: 2px;
}

/* ---------------------------------------------------------- navbar */

body.customers .navbar-default.header,
body.customers .navbar.header {
    background: var(--rm-surface);
    border: 0;
    border-bottom: 1px solid var(--rm-line);
    border-radius: 0;
    box-shadow: none;
    min-height: 72px;
    margin-bottom: 0;
}

body.customers .navbar a.navbar-brand {
    padding: 19px 0;
    height: 72px;
}

body.customers .navbar a.navbar-brand img {
    height: 34px;
    width: auto;
}

body.customers .navbar-default .navbar-nav > li > a {
    display: block;
    color: var(--rm-ink);
    font-weight: 600;
    font-size: 14px;
    line-height: 24px;
    padding: 24px 14px 22px;
    margin: 0;
    border-radius: 0 !important;
    border-bottom: 2px solid transparent;
    background: transparent;
    transition: background var(--rm-fast) var(--rm-ease), color var(--rm-fast) var(--rm-ease);
}

body.customers .navbar-default .navbar-nav > li > a:hover,
body.customers .navbar-default .navbar-nav > li > a:focus {
    color: var(--rm-navy);
    background: var(--rm-hover);
    border-radius: 0;
}

/* You are here: gold underline, as on the REMAS website. */
body.customers .navbar-default .navbar-nav > .active > a,
body.customers .navbar-default .navbar-nav > .active > a:hover,
body.customers .navbar-default .navbar-nav > .active > a:focus {
    color: var(--rm-navy);
    background: transparent;
    border-radius: 0;
    border-bottom-color: var(--rm-gold);
}

body.customers .navbar-default .navbar-nav > li.dropdown > a.dropdown-toggle:hover {
    background: var(--rm-hover);
}

/* "Login" in the header is the page's call to action. */
body.customers .navbar-default .navbar-nav > li.customers-nav-item-login {
    padding: 16px 0 0;
}

body.customers .navbar-default .navbar-nav > li.customers-nav-item-login > a {
    background: var(--rm-navy) !important;
    color: #fff !important;
    border-radius: 0 !important;
    border-bottom: 0;
    padding: 8px 18px;
    line-height: 24px;
    margin-inline-start: 12px;
}

body.customers .navbar-default .navbar-nav > li.customers-nav-item-login > a:hover,
body.customers .navbar-default .navbar-nav > li.customers-nav-item-login > a:focus {
    background: var(--rm-deep) !important;
}

body.customers .navbar-default .navbar-toggle {
    border-radius: var(--rm-radius);
    border-color: var(--rm-line-strong);
    margin-top: 18px;
    min-width: 44px;
    min-height: 40px;
}

body.customers .navbar-default .navbar-toggle .icon-bar {
    background: var(--rm-navy);
}

@media (max-width: 767px) {
    body.customers .navbar-default .navbar-nav > li > a {
        padding: 12px 16px;
        border-bottom: 0;
        border-inline-start: 3px solid transparent;
    }

    body.customers .navbar-default .navbar-nav > .active > a {
        border-inline-start-color: var(--rm-gold);
        background: var(--rm-selected);
    }

    body.customers .navbar-default .navbar-nav > li.customers-nav-item-login {
        padding: 8px 16px 12px;
    }

    body.customers .navbar-default .navbar-nav > li.customers-nav-item-login > a {
        margin: 0;
        text-align: center;
    }
}

/* --------------------------------------------------------- surfaces */

body.customers #wrapper,
body.customers #content {
    background: var(--rm-bg);
}

body.customers .panel_s,
body.customers .panel {
    background: var(--rm-surface);
    border: 1px solid var(--rm-line);
    border-radius: var(--rm-radius) !important;
    box-shadow: none !important;
}

body.customers .panel-body { border-radius: var(--rm-radius) !important; }

body.customers .panel-heading {
    background: var(--rm-surface-soft);
    border-bottom: 1px solid var(--rm-line);
    border-radius: var(--rm-radius) !important;
    font-family: var(--rm-font-head);
    font-weight: 700;
}

body.customers hr { border-color: var(--rm-line); }

/* Stat tiles on the portal home */
body.customers .tw-rounded-lg,
body.customers .tw-rounded-md,
body.customers .tw-rounded {
    border-radius: var(--rm-radius) !important;
}

body.customers .tw-shadow,
body.customers .tw-shadow-sm {
    box-shadow: none !important;
}

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

body.customers .btn {
    border-radius: var(--rm-radius) !important;
    font-weight: 600;
    min-height: 40px;
    box-shadow: none;
}

body.customers .btn-primary,
body.customers .btn-info {
    background: var(--rm-action) !important;
    border-color: var(--rm-action) !important;
    color: var(--rm-on-action) !important;
}

body.customers .btn-primary:hover,
body.customers .btn-primary:focus,
body.customers .btn-info:hover,
body.customers .btn-info:focus {
    background: var(--rm-action-hover) !important;
    border-color: var(--rm-action-hover) !important;
}

body.customers .btn-default {
    background: var(--rm-surface);
    border-color: var(--rm-line-strong);
    color: var(--rm-ink);
}

body.customers .btn-default:hover,
body.customers .btn-default:focus {
    background: var(--rm-hover);
    border-color: var(--rm-control);
}

body.customers .btn-success { background: var(--rm-success); border-color: var(--rm-success); color: #fff; }
body.customers .btn-danger { background: var(--rm-error); border-color: var(--rm-error); color: #fff; }

/* "Pay now" is the one place gold carries the action. */
body.customers .btn-warning,
body.customers #pay_button,
body.customers .pay-now-top {
    background: var(--rm-gold) !important;
    border-color: var(--rm-gold) !important;
    color: var(--rm-ink) !important;
}

body.customers .btn-warning:hover,
body.customers #pay_button:hover {
    background: var(--rm-gold-hover) !important;
    border-color: var(--rm-gold-hover) !important;
}

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

body.customers .form-control,
body.customers .bootstrap-select > .dropdown-toggle,
body.customers .input-group-addon {
    border-radius: var(--rm-radius) !important;
    border-color: var(--rm-control);
    box-shadow: none;
    min-height: 40px;
    color: var(--rm-ink);
    background-color: var(--rm-surface);
}

body.customers .form-control:focus,
body.customers .bootstrap-select.open > .dropdown-toggle {
    border-color: var(--rm-navy) !important;
    box-shadow: 0 0 0 3px rgba(42, 40, 95, .16) !important;
    outline: 0;
}

body.customers label,
body.customers .control-label {
    font-weight: 600;
    color: var(--rm-ink);
}

body.customers .checkbox label::before { border-radius: var(--rm-radius); border-color: var(--rm-control); }
body.customers .checkbox input[type="checkbox"]:checked + label::before { background: var(--rm-navy); border-color: var(--rm-navy); }

/* Sign-in card */
body.customers .login-form .panel_s,
body.customers .register-form .panel_s,
body.customers form[action*="forgot_password"] .panel_s {
    border-top: 3px solid var(--rm-gold);
}

body.customers .login-heading {
    font-size: 28px;
}

body.customers .rm-pw { position: relative; }
body.customers .rm-pw .form-control { padding-inline-end: 72px; }
body.customers .rm-pw-toggle {
    position: absolute;
    inset-inline-end: 1px;
    top: 1px;
    bottom: 1px;
    min-width: 64px;
    border: 0;
    border-inline-start: 1px solid var(--rm-line);
    background: var(--rm-surface-soft);
    color: var(--rm-navy);
    font-weight: 700;
    font-size: 13px;
}

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

body.customers .table > thead > tr > th,
body.customers table.dataTable thead > tr > th {
    background: var(--rm-surface-soft);
    color: var(--rm-muted);
    font-size: var(--rm-text-xs);
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--rm-line-strong) !important;
}

body.customers .table > tbody > tr > td {
    border-top: 1px solid var(--rm-line);
    vertical-align: middle;
}

body.customers .table > tbody > tr:hover > td {
    background: var(--rm-hover);
}

body.customers .pagination > li > a,
body.customers .dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: var(--rm-radius) !important;
    color: var(--rm-ink) !important;
}

body.customers .pagination > .active > a,
body.customers .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--rm-navy) !important;
    border-color: var(--rm-navy) !important;
    color: #fff !important;
}

/* ------------------------------------------------- labels, alerts, tabs */

body.customers .label,
body.customers .badge {
    border-radius: var(--rm-radius);
    font-weight: 700;
    letter-spacing: .02em;
    border: 1px solid transparent;
}

body.customers .label-success { background: var(--rm-success-bg); color: var(--rm-success); border-color: #BFDDCD; }
body.customers .label-danger { background: var(--rm-error-bg); color: #A53232; border-color: #EDC4C4; }
body.customers .label-warning { background: var(--rm-warning-bg); color: var(--rm-warning); border-color: #EBD3A3; }
body.customers .label-info,
body.customers .label-primary { background: var(--rm-info-bg); color: var(--rm-navy); border-color: #D3D1E6; }
body.customers .label-default { background: var(--rm-surface-soft); color: var(--rm-muted); border-color: var(--rm-line-strong); }

body.customers .alert {
    border-radius: var(--rm-radius);
    border: 1px solid var(--rm-line);
    border-inline-start: 3px solid var(--rm-navy);
}

body.customers .alert-success { border-inline-start-color: var(--rm-success); background: var(--rm-success-bg); }
body.customers .alert-danger { border-inline-start-color: var(--rm-error); background: var(--rm-error-bg); }
body.customers .alert-warning { border-inline-start-color: var(--rm-gold); background: var(--rm-warning-bg); }
body.customers .alert-info { border-inline-start-color: var(--rm-navy); background: var(--rm-info-bg); }

body.customers .nav-tabs { border-bottom: 1px solid var(--rm-line); }
body.customers .nav-tabs > li > a {
    border: 0 !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    color: var(--rm-muted);
    font-weight: 600;
    background: transparent !important;
}
body.customers .nav-tabs > li.active > a {
    color: var(--rm-navy);
    border-bottom-color: var(--rm-gold) !important;
}

body.customers .dropdown-menu,
body.customers .modal-content {
    border-radius: var(--rm-radius);
    border-color: var(--rm-line-strong);
    box-shadow: var(--rm-shadow-pop);
}

body.customers .modal-content { border-top: 3px solid var(--rm-gold); }

body.customers .dropdown-menu > li > a:hover { background: var(--rm-hover); }

/* ---------------------------------------------------------- footer */

body.customers footer.footer,
body.customers .footer {
    background: var(--rm-surface);
    border-top: 1px solid var(--rm-line);
    color: var(--rm-muted);
}

@media (max-width: 768px) {
    body.customers .form-control { font-size: 16px; }
    body.customers .table-responsive { overflow-x: auto; }
}

/* Status text in the brand's measured colours (Perfex's green and amber are under 4.5:1). */
body.customers .text-success, body.customers .tw-text-success-600, body.customers .tw-text-green-600 { color: var(--rm-success) !important; }
body.customers .text-warning, body.customers .tw-text-warning-600, body.customers .tw-text-yellow-600, body.customers .tw-text-amber-600 { color: var(--rm-warning) !important; }
body.customers .text-danger, body.customers .tw-text-danger-600, body.customers .tw-text-red-600 { color: var(--rm-error) !important; }
body.customers .text-info { color: var(--rm-navy) !important; }

body.customers .form-control::placeholder { color: var(--rm-boundary); opacity: 1; }

body.customers .progress {
    background: var(--rm-lavender);
    border-radius: var(--rm-radius);
    box-shadow: none;
}

body.customers .progress-bar { background-color: var(--rm-navy); box-shadow: none; }
body.customers .progress-bar-success { background-color: var(--rm-success); }
body.customers .progress-bar-danger { background-color: var(--rm-error); }
body.customers .progress-bar-warning { background-color: var(--rm-gold); color: var(--rm-ink); }
