/* ==========================================================================
   Inmunoreuma — Portal design system
   Shared by the landing page and the resultados / doctor / cliente portals.
   Loaded AFTER any Bootstrap build (2/3/5) so it wins the cascade.
   Brand: coral #E27271 · slate #586877 · tan #AB9773 · Poppins + Lato
   ========================================================================== */

html {
    -webkit-text-size-adjust: 100%;
}

/* Same universal border-box Bootstrap >=3 applies; needed on pages without it */
.ir-body,
.ir-body *,
.ir-body *:before,
.ir-body *:after {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

body.ir-body {
    margin: 0;
    padding: 0;
    background: #f6f7f9;
    color: #45525e;
    font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.ir-body h1, .ir-body h2, .ir-body h3, .ir-body h4, .ir-body h5, .ir-body h6 {
    font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
    color: #586877;
}

.ir-body a {
    color: #d95f5e;
    text-decoration: none;
}

.ir-body a:hover {
    color: #b94a49;
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   Top utility bar
   -------------------------------------------------------------------------- */

.ir-topbar {
    background: #586877;
    color: #e8edf2;
    font-size: 13px;
}

.ir-topbar-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 7px 20px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.ir-topbar-contact {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.ir-topbar-contact svg {
    width: 15px;
    height: 15px;
    margin-right: 6px;
    color: #f0b3b2;
    vertical-align: -2px;
}

.ir-topbar-contact span {
    margin-right: 22px;
    white-space: nowrap;
}

.ir-topbar-social {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.ir-topbar-social a {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-left: 8px;
    border-radius: 50%;
    background: rgba(226, 114, 113, 0.9);
    color: #ffffff;
    -webkit-transition: background 0.2s ease, -webkit-transform 0.2s ease;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ir-topbar-social a:hover {
    background: #e27271;
    color: #ffffff;
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
}

.ir-topbar-social svg {
    width: 13px;
    height: 13px;
}

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

.ir-header {
    background: #ffffff;
    border-bottom: 1px solid #e9edf1;
    -webkit-box-shadow: 0 1px 3px rgba(88, 104, 119, 0.06);
    box-shadow: 0 1px 3px rgba(88, 104, 119, 0.06);
}

.ir-header-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 14px 20px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.ir-brand {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    text-decoration: none;
}

.ir-brand img {
    height: 62px;
    width: auto;
    margin-right: 16px;
    border: 0;
}

.ir-brand-name {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #586877;
    line-height: 1.15;
    margin: 0;
}

.ir-brand-tagline {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #8a97a3;
    margin: 0;
}

.ir-header-portal {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #e27271;
    background: #fdf1f1;
    border: 1px solid #f6d6d5;
    border-radius: 999px;
    padding: 6px 16px;
    white-space: nowrap;
}

.ir-header-portal svg {
    width: 16px;
    height: 16px;
    margin-right: 7px;
}

/* --------------------------------------------------------------------------
   Hero band
   -------------------------------------------------------------------------- */

.ir-hero {
    position: relative;
    background: #586877 url('../img/principalimage.jpg') center center no-repeat;
    background-size: cover;
    text-align: center;
    padding: 74px 20px;
}

.ir-hero:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(70, 84, 97, 0.55);
    background: -webkit-gradient(linear, left top, right top, from(rgba(88, 104, 119, 0.78)), to(rgba(226, 114, 113, 0.55)));
    background: linear-gradient(90deg, rgba(88, 104, 119, 0.78), rgba(226, 114, 113, 0.55));
}

.ir-hero h1 {
    position: relative;
    margin: 0;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 38px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 14px rgba(40, 50, 60, 0.45);
}

.ir-hero p {
    position: relative;
    margin: 12px auto 0;
    max-width: 620px;
    color: #f3e9e8;
    font-size: 17px;
}

/* Slimmer variant used on inner pages */
.ir-hero-slim {
    padding: 40px 20px;
}

.ir-hero-slim h1 {
    font-size: 28px;
}

/* --------------------------------------------------------------------------
   Landing: portal cards
   -------------------------------------------------------------------------- */

.ir-cards {
    width: 100%;
    max-width: 1140px;
    margin: -46px auto 0;
    padding: 0 20px 30px;
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.ir-card {
    background: #ffffff;
    border: 1px solid #eef1f4;
    border-radius: 16px;
    -webkit-box-shadow: 0 10px 30px rgba(88, 104, 119, 0.12);
    box-shadow: 0 10px 30px rgba(88, 104, 119, 0.12);
    padding: 38px 30px 34px;
    margin: 12px;
    text-align: center;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 280px;
    flex: 1 1 280px;
    max-width: 336px;
    display: block;
    color: #45525e;
    -webkit-transition: -webkit-transform 0.22s ease, -webkit-box-shadow 0.22s ease;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.ir-card:hover {
    -webkit-transform: translateY(-6px);
    transform: translateY(-6px);
    -webkit-box-shadow: 0 18px 44px rgba(88, 104, 119, 0.2);
    box-shadow: 0 18px 44px rgba(88, 104, 119, 0.2);
    border-color: #f2c7c6;
    color: #45525e;
}

.ir-card-icon {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: #fdf1f1;
    color: #e27271;
    margin-bottom: 18px;
    -webkit-transition: background 0.22s ease;
    transition: background 0.22s ease;
}

.ir-card:hover .ir-card-icon {
    background: #fbe3e3;
}

.ir-card-icon svg {
    width: 44px;
    height: 44px;
}

.ir-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 21px;
    font-weight: 700;
    color: #586877;
    margin: 0 0 8px;
}

.ir-card p {
    font-size: 14.5px;
    color: #7d8a96;
    margin: 0 0 20px;
    min-height: 44px;
}

.ir-card-cta {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: #e27271;
    border: 1px solid #f0bdbc;
    border-radius: 999px;
    padding: 8px 22px;
    -webkit-transition: background 0.2s ease, color 0.2s ease;
    transition: background 0.2s ease, color 0.2s ease;
}

.ir-card:hover .ir-card-cta {
    background: #e27271;
    border-color: #e27271;
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   Login screens
   -------------------------------------------------------------------------- */

.ir-login-wrap {
    -webkit-box-flex: 1;
    -ms-flex: 1 0 auto;
    flex: 1 0 auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 48px 20px 64px;
    background: #f6f7f9;
    background: -webkit-gradient(linear, left top, left bottom, from(#fdf6f5), to(#f4f6f8));
    background: linear-gradient(180deg, #fdf6f5 0%, #f4f6f8 70%);
}

.ir-login-card {
    background: #ffffff;
    border: 1px solid #eef1f4;
    border-radius: 18px;
    -webkit-box-shadow: 0 14px 40px rgba(88, 104, 119, 0.14);
    box-shadow: 0 14px 40px rgba(88, 104, 119, 0.14);
    width: 100%;
    max-width: 420px;
    padding: 40px 38px 34px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ir-login-card:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: #e27271;
    background: -webkit-gradient(linear, left top, right top, from(#e27271), to(#ab9773));
    background: linear-gradient(90deg, #e27271, #ab9773);
}

.ir-login-icon {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #fdf1f1;
    color: #e27271;
    margin-bottom: 14px;
}

.ir-login-icon svg {
    width: 34px;
    height: 34px;
}

.ir-login-card h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #586877;
    margin: 0 0 6px;
}

.ir-login-hint {
    font-size: 14px;
    color: #7d8a96;
    margin: 0 0 22px;
}

.ir-login-card form {
    text-align: left;
}

.ir-field {
    margin-bottom: 16px;
}

.ir-field label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    color: #586877;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin: 0 0 6px;
}

.ir-input,
.ir-login-card input.form-control,
.ir-form input[type="text"],
.ir-form input[type="password"] {
    display: block;
    width: 100%;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    height: auto;
    background: #fbfcfd;
    border: 1px solid #dbe2e8;
    border-radius: 10px;
    padding: 11px 14px;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    color: #45525e;
    margin: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
    -webkit-transition: border-color 0.15s ease, -webkit-box-shadow 0.15s ease;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ir-input:focus,
.ir-login-card input.form-control:focus,
.ir-form input[type="text"]:focus,
.ir-form input[type="password"]:focus {
    outline: 0;
    background: #ffffff;
    border-color: #e27271;
    -webkit-box-shadow: 0 0 0 3px rgba(226, 114, 113, 0.18);
    box-shadow: 0 0 0 3px rgba(226, 114, 113, 0.18);
}

.ir-btn,
.ir-login-card button[type="submit"],
.ir-login-card button.btn,
.ir-form input[type="submit"] {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 10px;
    background: #e27271;
    background: -webkit-gradient(linear, left top, right top, from(#e27271), to(#d3907c));
    background: linear-gradient(90deg, #e27271, #d3907c);
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 12px 22px;
    cursor: pointer;
    -webkit-box-shadow: 0 6px 16px rgba(226, 114, 113, 0.35);
    box-shadow: 0 6px 16px rgba(226, 114, 113, 0.35);
    -webkit-transition: -webkit-box-shadow 0.2s ease, -webkit-transform 0.2s ease;
    transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
    text-shadow: none;
}

.ir-btn:hover,
.ir-login-card button[type="submit"]:hover,
.ir-login-card button.btn:hover,
.ir-form input[type="submit"]:hover {
    background: #d95f5e;
    color: #ffffff;
    -webkit-transform: translateY(-1px);
    transform: translateY(-1px);
    -webkit-box-shadow: 0 9px 22px rgba(226, 114, 113, 0.42);
    box-shadow: 0 9px 22px rgba(226, 114, 113, 0.42);
}

.ir-login-error,
#error-message {
    font-size: 13.5px;
    color: #c0392b;
    margin: 0 0 4px;
    min-height: 0;
}

#error-message:not(:empty) {
    background: #fdecea;
    border: 1px solid #f5c6c0;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 16px;
}

.ir-login-back {
    display: inline-block;
    margin-top: 20px;
    font-size: 13.5px;
    color: #8a97a3;
}

.ir-login-back:hover {
    color: #e27271;
}

.ir-login-foot {
    margin-top: 26px;
    padding-top: 16px;
    border-top: 1px solid #eef1f4;
    font-size: 12.5px;
    color: #9aa6b1;
}

/* --------------------------------------------------------------------------
   Inner (results) pages — layout
   -------------------------------------------------------------------------- */

.ir-main {
    -webkit-box-flex: 1;
    -ms-flex: 1 0 auto;
    flex: 1 0 auto;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 28px 20px 48px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.ir-main .page-header {
    border: 0;
    margin: 0 0 18px;
    padding: 0 0 12px;
    border-bottom: 2px solid #f2d9d8;
}

.ir-main .page-header h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #586877;
    margin: 0;
}

.ir-main .page-header small {
    display: inline-block;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    color: #9aa6b1;
    margin-left: 8px;
}

.ir-main h2 {
    font-size: 26px;
    font-weight: 700;
    margin: 6px 0 16px;
}

.ir-main h5 {
    font-size: 16px;
    font-weight: 600;
    margin: 14px 0 10px;
}

.ir-breadcrumb {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin: 0 0 18px;
}

.ir-breadcrumb h1 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.ir-breadcrumb h1 small {
    display: block;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #9aa6b1;
    margin-top: 2px;
}

.ir-back-link {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #586877;
    background: #ffffff;
    border: 1px solid #dbe2e8;
    border-radius: 999px;
    padding: 7px 18px;
    -webkit-transition: border-color 0.2s ease, color 0.2s ease;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.ir-back-link:hover {
    border-color: #e27271;
    color: #e27271;
}

.ir-back-link svg {
    width: 14px;
    height: 14px;
    margin-right: 6px;
}

/* Floating survey card (encuesta) */
.ir-survey {
    float: right;
    margin: 0 0 14px 16px;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    -webkit-box-shadow: 0 6px 18px rgba(88, 104, 119, 0.16);
    box-shadow: 0 6px 18px rgba(88, 104, 119, 0.16);
    -webkit-transition: -webkit-transform 0.2s ease;
    transition: transform 0.2s ease;
}

.ir-survey:hover {
    -webkit-transform: translateY(-3px);
    transform: translateY(-3px);
}

.ir-survey img {
    display: block;
    border: 0;
    width: 148px;
    height: auto;
}

/* --------------------------------------------------------------------------
   Legacy generated markup — panels / tables / buttons, scoped to .ir-main
   -------------------------------------------------------------------------- */

.ir-main .panel,
.ir-main .panel.panel-default {
    background: #ffffff;
    border: 1px solid #e9edf1;
    border-radius: 14px;
    -webkit-box-shadow: 0 6px 18px rgba(88, 104, 119, 0.08);
    box-shadow: 0 6px 18px rgba(88, 104, 119, 0.08);
    margin: 0 0 26px;
    overflow: hidden;
}

.ir-main .panel-heading {
    background: #f9eeed;
    background: -webkit-gradient(linear, left top, right top, from(#fbf1f0), to(#f6f7f9));
    background: linear-gradient(90deg, #fbf1f0, #f6f7f9);
    border-bottom: 1px solid #f0e0df;
    color: #586877;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 13px 18px;
    border-radius: 0;
}

.ir-main table.table,
.ir-main .table {
    width: 100%;
    margin: 0;
    background: #ffffff;
    border-collapse: collapse;
    font-size: 14px;
}

.ir-main .table th {
    background: #fbfcfd;
    color: #586877;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    padding: 11px 14px;
    border: 0;
    border-bottom: 2px solid #e9edf1;
    white-space: nowrap;
}

.ir-main .table th a {
    color: #586877;
    cursor: pointer;
}

.ir-main .table th a:hover {
    color: #e27271;
}

.ir-main .table th img {
    margin-left: 4px;
    vertical-align: middle;
}

.ir-main .table td {
    padding: 10px 14px;
    border: 0;
    border-bottom: 1px solid #f0f3f5;
    color: #45525e;
    vertical-align: middle;
    line-height: 1.5;
}

.ir-main .table tbody tr:last-child td {
    border-bottom: 0;
}

/* Generated zebra rows */
.ir-main tr.tr_odd td {
    background: #ffffff;
}

.ir-main tr.tr_even td {
    background: #fafbfc;
}

.ir-main .table-hover tbody tr:hover td,
.ir-main .table tr:hover td {
    background: #fdf6f5;
}

/* Parameter tables (Número / Paciente) — kill the hardcoded blue cells */
.ir-main .table-bordered {
    border: 1px solid #e9edf1;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    -webkit-box-shadow: 0 4px 14px rgba(88, 104, 119, 0.07);
    box-shadow: 0 4px 14px rgba(88, 104, 119, 0.07);
    margin-bottom: 22px;
}

.ir-main .table-bordered th,
.ir-main .table-bordered td {
    border: 1px solid #eef1f4;
    padding: 11px 16px;
}

.ir-main .table-bordered td {
    background: #fdf6f5 !important; /* overrides inline #E2EBF9 from fparameterTable */
    font-weight: 700;
    color: #586877;
    font-size: 15px;
}

/* Aggregate rows */
.ir-main tr.reporte_aggregate_subtotal td,
.ir-main tr.reporte_aggregate_subtotal th {
    background: #f6f7f9;
    font-weight: 700;
    border-top: 2px solid #e9edf1;
}

.ir-main tr.reporte_aggregate_total td,
.ir-main tr.reporte_aggregate_total th {
    background: #f2ece4;
    font-weight: 700;
    color: #586877;
    border-top: 2px solid #ab9773;
}

/* Buttons inside legacy content */
.ir-main .btn {
    display: inline-block;
    background: #ffffff;
    border: 1px solid #dbe2e8;
    border-radius: 999px;
    color: #586877;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    line-height: 1.4;
    text-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    cursor: pointer;
    -webkit-transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.ir-main .btn:hover {
    border-color: #e27271;
    color: #e27271;
    background: #fdf6f5;
}

.ir-main .btn-primary {
    background: #e27271;
    background: -webkit-gradient(linear, left top, right top, from(#e27271), to(#d3907c));
    background: linear-gradient(90deg, #e27271, #d3907c);
    border: 0;
    color: #ffffff;
    -webkit-box-shadow: 0 5px 14px rgba(226, 114, 113, 0.32);
    box-shadow: 0 5px 14px rgba(226, 114, 113, 0.32);
}

.ir-main .btn-primary:hover {
    background: #d95f5e;
    color: #ffffff;
    border: 0;
}

.ir-main .btn-mini {
    font-size: 12px;
    padding: 5px 14px;
}

.ir-main .btn img {
    vertical-align: -3px;
    margin-right: 5px;
}

/* Search box generated by ftable_search */
.ir-main .navbar-search {
    margin: 10px 18px;
}

.ir-main input.search-query {
    background: #fbfcfd;
    border: 1px solid #dbe2e8;
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 13.5px;
    color: #45525e;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.ir-main input.search-query:focus {
    outline: 0;
    border-color: #e27271;
    -webkit-box-shadow: 0 0 0 3px rgba(226, 114, 113, 0.18);
    box-shadow: 0 0 0 3px rgba(226, 114, 113, 0.18);
}

/* Filters strip */
.ir-main .filters {
    background: #fbfcfd;
    border-bottom: 1px solid #eef1f4;
    font-size: 13px;
}

/* Table footer strip (excel / pagination / rowcount) */
.ir-main .row-fluid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    background: #fbfcfd;
    border-top: 1px solid #eef1f4;
    padding: 10px 16px;
}

.ir-main .row-fluid .span2,
.ir-main .row-fluid .span8 {
    float: none;
    width: auto;
    margin: 0;
}

.ir-main .pagination {
    margin: 0;
}

.ir-main .pagination a {
    border: 1px solid #dbe2e8;
    border-radius: 8px;
    margin: 0 2px;
    padding: 4px 11px;
    color: #586877;
    font-size: 13px;
    display: inline-block;
    background: #ffffff;
    float: none;
    line-height: 1.6;
}

.ir-main .pagination a:hover {
    border-color: #e27271;
    color: #e27271;
    background: #fdf6f5;
}

/* Status / info alerts */
.ir-main .alert {
    border-radius: 12px;
    border: 1px solid transparent;
    padding: 16px 20px;
    margin: 0 0 20px;
    background-image: none;
    text-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    font-size: 14.5px;
}

.ir-main .alert h4 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: inherit;
}

.ir-main .alert-warning {
    background: #fdf8ec;
    border-color: #f0e3c0;
    color: #8a6d1f;
}

.ir-main .alert-info {
    background: #edf5fa;
    border-color: #cfe3f0;
    color: #31708f;
}

.ir-main .alert-error,
.ir-main .alert-danger {
    background: #fdecea;
    border-color: #f5c6c0;
    color: #a94442;
}

.ir-main .hero-unit {
    background: #fbfcfd;
    border: 1px dashed #dbe2e8;
    border-radius: 12px;
    padding: 18px 22px;
    margin: 0 0 18px;
}

.ir-main .hero-unit h5 {
    margin: 0 0 4px;
}

.ir-main .hero-unit p {
    margin: 0;
    color: #8a97a3;
    font-style: italic;
    font-size: 13.5px;
}

/* Status notice paragraphs echoed bare by the PHP switch blocks */
.ir-status-note {
    background: #edf5fa;
    border: 1px solid #cfe3f0;
    border-radius: 12px;
    color: #31708f;
    padding: 16px 20px;
    margin: 6px 0 20px;
    font-size: 15px;
}

/* Legacy plain search form (no-session fallback) */
.ir-form {
    background: #ffffff;
    border: 1px solid #e9edf1;
    border-radius: 16px;
    -webkit-box-shadow: 0 10px 28px rgba(88, 104, 119, 0.1);
    box-shadow: 0 10px 28px rgba(88, 104, 119, 0.1);
    max-width: 420px;
    margin: 22px auto;
    padding: 30px 32px;
    text-align: left;
}

.ir-form table {
    width: 100%;
    border-collapse: collapse;
}

.ir-form th {
    display: block;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #586877;
    padding: 12px 0 6px;
}

.ir-form td {
    display: block;
    padding: 0;
}

.ir-form input[type="submit"] {
    margin-top: 18px;
}

.ir-form-title {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #586877;
    margin: 26px 0 0;
}

/* --------------------------------------------------------------------------
   Error / please-wait overlays (included partials)
   -------------------------------------------------------------------------- */

.classerrorDiv {
    visibility: hidden;
    position: fixed;
    top: 14px;
    right: 14px;
    left: auto;
    width: auto;
    max-width: 340px;
    z-index: 1050;
    background: #fdecea;
    border: 1px solid #f5c6c0;
    border-radius: 12px;
    -webkit-box-shadow: 0 10px 30px rgba(122, 8, 16, 0.22);
    box-shadow: 0 10px 30px rgba(122, 8, 16, 0.22);
    overflow: hidden;
}

.classerrorDiv .alert,
.classerrorDiv .alert-error {
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #a94442;
    padding: 14px 18px;
    font-size: 14px;
    text-shadow: none;
}

.pleasewaith {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    z-index: 1060;
    background: #ffffff;
    border: 1px solid #eef1f4;
    border-radius: 14px;
    -webkit-box-shadow: 0 14px 40px rgba(88, 104, 119, 0.25);
    box-shadow: 0 14px 40px rgba(88, 104, 119, 0.25);
    padding: 22px 30px;
    color: #586877;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

#messages {
    font-size: 13px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.ir-footer {
    background: #586877;
    color: #c8d1d9;
    font-size: 13px;
    margin-top: auto;
}

.ir-footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 18px 20px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.ir-footer a {
    color: #f0b3b2;
}

.ir-footer a:hover {
    color: #ffffff;
}

.ir-footer-user {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.ir-footer-user span {
    margin-right: 16px;
}

.ir-footer-version {
    color: #9fabb6;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {

    .ir-topbar-inner {
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }

    .ir-topbar-contact span {
        margin-right: 14px;
    }

    /* The org name is repeated in the header right below — drop it on phones */
    .ir-topbar-contact span:first-child {
        display: none;
    }

    .ir-header-inner {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        text-align: center;
    }

    .ir-brand {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }

    .ir-brand img {
        margin: 0 0 8px;
    }

    .ir-header-portal {
        margin-top: 12px;
    }

    .ir-hero {
        padding: 48px 16px;
    }

    .ir-hero h1 {
        font-size: 27px;
    }

    .ir-cards {
        margin-top: -30px;
    }

    .ir-card {
        max-width: 100%;
    }

    .ir-login-card {
        padding: 32px 24px 28px;
    }

    .ir-main {
        padding: 20px 12px 40px;
    }

    .ir-survey {
        float: none;
        margin: 0 auto 16px;
        width: 148px;
    }

    .ir-breadcrumb {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: flex-start;
    }

    .ir-breadcrumb .ir-back-link {
        margin-top: 10px;
    }

    .ir-main .panel {
        border-radius: 10px;
    }

    /* Let wide generated tables scroll instead of breaking the page */
    .ir-main .panel {
        overflow-x: auto;
    }

    .ir-footer-inner {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        text-align: center;
    }

    .ir-footer-user {
        margin: 8px 0;
    }
}
