﻿/*
    ReQlogic Support Portal - Visual Refresh
    -----------------------------------------
    Load AFTER all existing CSS stylesheets.

    Visual-only changes:
      - Colors
      - Backgrounds
      - Borders
      - Hover/focus appearance
      - Shadows where appropriate

    Avoids changing:
      - Dimensions and spacing
      - Positioning and display
      - Responsive breakpoints
      - Visibility and interaction selectors
      - Existing icon image paths

    Brand palette:
      Navy:       #1B3051
      Yellow:     #F8CA10
      Orange:     #F36E28
      Page gray:  #F3F5F7
      Border:     #DCE2E8
      Text:       #303B49
*/

/* =====================================================
   BASE STYLING
   ===================================================== */

body {
    background-color: #FFFFFF;
    color: #303B49;
}

.container,
.container-section,
.container-section-header,
.container-section-header-inside,
.container-section-report,
.section,
.pv-container,
.pv-container-syssettings,
.conv-panel {
    background-color: #FFFFFF;
}

label,
span.caption,
.caption,
.field-label,
.header {
    color: #465365;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    color: #1B3051;
}

a,
a:focus,
a:hover {
    color: #1B3051;
}

    a:hover,
    a:focus {
        color: #F36E28;
    }

/* =====================================================
   NAVIGATION
   ===================================================== */

/* Bootstrap navigation */

.navbar-reqlogic,
.navbar-reqlogic .navbar-header,
.navbar-reqlogic .navbar-collapse {
    background-color: #1B3051;
    border-color: #1B3051;
}

    .navbar-reqlogic .navbar-nav > li > a,
    .navbar-reqlogic .navbar-brand,
    .navbar-reqlogic .navbar-text {
        color: #FFFFFF;
    }

        .navbar-reqlogic .navbar-nav > li > a:hover,
        .navbar-reqlogic .navbar-nav > li > a:focus,
        .navbar-reqlogic .navbar-nav > .active > a,
        .navbar-reqlogic .navbar-nav > .active > a:hover,
        .navbar-reqlogic .navbar-nav > .active > a:focus,
        .navbar-reqlogic .navbar-nav > .open > a,
        .navbar-reqlogic .navbar-nav > .open > a:hover,
        .navbar-reqlogic .navbar-nav > .open > a:focus {
            color: #FFFFFF;
            background-color: #29466D;
        }

    .navbar-reqlogic .navbar-toggle {
        border-color: rgba(255,255,255,.45);
    }

        .navbar-reqlogic .navbar-toggle:hover,
        .navbar-reqlogic .navbar-toggle:focus {
            background-color: #29466D;
        }

        .navbar-reqlogic .navbar-toggle .icon-bar {
            background-color: #FFFFFF;
        }

/* Legacy table-based navigation */

.ParentMainTab,
table.MainTab,
.ParentSubTab,
.SubTab {
    background-color: #1B3051;
    border-color: #1B3051;
}

    .ParentMainTd,
    .MainTab td,
    .ParentSubTd,
    .SubTab td,
    .SubTre,
    .SubTd {
        color: #FFFFFF;
        border-color: rgba(255,255,255,.16);
    }

        .ParentMainTd:hover,
        .MainTab td:hover,
        td.MainTde,
        .ParentSubTd:hover,
        .SubTab td:hover,
        .SubTre:hover,
        .SubTd:hover {
            color: #FFFFFF;
            background-color: #29466D;
        }

/* Dropdown menus */

.navbar-reqlogic .dropdown-menu,
.rq-menu-container,
.dropdown-menu {
    background-color: #FFFFFF;
    border-color: #DCE2E8;
}

    .navbar-reqlogic .dropdown-menu > li > a,
    .dropdown-menu > li > a {
        color: #303B49;
    }

        .navbar-reqlogic .dropdown-menu > li > a:hover,
        .navbar-reqlogic .dropdown-menu > li > a:focus,
        .dropdown-menu > li > a:hover,
        .dropdown-menu > li > a:focus {
            color: #1B3051;
            background-color: #F1F4F8;
        }

/* =====================================================
   PAGE SECTIONS AND PANELS
   ===================================================== */

.container-section-header,
.container-section-header-inside,
.container-section-report,
.PV_page_title {
    color: #1B3051;
    border-color: #DCE2E8;
}

.container-section-green {
    background-color: #FFF8D9;
}

.section {
    border-color: #DCE2E8;
}

.panel,
.panel-default {
    border-color: #DCE2E8;
}

    .panel-default > .panel-heading {
        color: #1B3051;
        background-color: #F1F4F8;
        border-color: #DCE2E8;
    }

.panel-heading,
.panel-title {
    color: #1B3051;
}

.panel-footer {
    color: #465365;
    background-color: #F7F8FA;
    border-color: #DCE2E8;
}

/* =====================================================
   FORM CONTROLS
   ===================================================== */

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
textarea,
select,
.form-control {
    color: #303B49;
    border-color: #C9D1DB;
    background-color: #FFFFFF;
}

    input[type="text"]:focus,
    input[type="password"]:focus,
    input[type="email"]:focus,
    input[type="number"]:focus,
    textarea:focus,
    select:focus,
    .form-control:focus {
        border-color: #1B3051;
        -webkit-box-shadow: 0 0 0 2px rgba(27,48,81,.12);
        box-shadow: 0 0 0 2px rgba(27,48,81,.12);
    }

    /* Read-only and disabled controls */

    input[readonly],
    input:read-only,
    textarea[readonly],
    textarea:read-only,
    select:disabled,
    input:disabled,
    textarea:disabled {
        color: #667386;
        background-color: #F3F5F7;
        border-color: #E1E5EA;
    }

/* Placeholder colors */

::-webkit-input-placeholder {
    color: #9AA4B1;
}

:-moz-placeholder {
    color: #9AA4B1;
}

::-moz-placeholder {
    color: #9AA4B1;
}

:-ms-input-placeholder {
    color: #9AA4B1;
}

/* =====================================================
   BUTTONS
   ===================================================== */

/* Primary buttons */

.btn-primary,
.reqlogic-btn,
.btn-report,
.btn-greenback-225width,
.btn-greenback-225width-35height {
    color: #FFFFFF;
    background-color: #1B3051;
    border-color: #1B3051;
}

    .btn-primary:hover,
    .btn-primary:focus,
    .btn-primary:active,
    .reqlogic-btn:hover,
    .reqlogic-btn:focus,
    .btn-report:hover,
    .btn-report:focus,
    .btn-greenback-225width:hover,
    .btn-greenback-225width-35height:hover {
        color: #FFFFFF;
        background-color: #29466D;
        border-color: #29466D;
    }

/* Secondary buttons */

.btn-default,
.btn-blueback-225width,
.btn-darkgreyback-200width {
    color: #1B3051;
    background-color: #F1F4F8;
    border-color: #C9D1DB;
}

    .btn-default:hover,
    .btn-default:focus,
    .btn-blueback-225width:hover,
    .btn-darkgreyback-200width:hover {
        color: #1B3051;
        background-color: #E5EAF0;
        border-color: #AEB9C7;
    }

/* Orange accent buttons */

.btn-warning,
.btn-orange,
.btn-redback-225width,
.btn-redback-225width-35height {
    color: #FFFFFF;
    background-color: #F36E28;
    border-color: #E65D18;
}

    .btn-warning:hover,
    .btn-warning:focus,
    .btn-orange:hover,
    .btn-redback-225width:hover,
    .btn-redback-225width-35height:hover {
        color: #FFFFFF;
        background-color: #D95818;
        border-color: #C94D12;
    }

    /* Disabled buttons */

    .btn:disabled,
    .btn[disabled],
    .reqlogic-btn:disabled,
    .btn-report:disabled,
    .btn-greenback-225width:disabled,
    .btn-greenback-225width-35height:disabled,
    .btn-redback-225width:disabled,
    .btn-redback-225width-35height:disabled,
    .btn-blueback-225width:disabled,
    .btn-darkgreyback-200width:disabled {
        color: #929BA7;
        background-color: #E9EDF1;
        border-color: #D5DBE2;
    }

/* Approval buttons */

.btn-approve {
    background-color: #FFFFFF;
    border-color: #2F9B61;
    color: #278653;
}

    .btn-approve:hover {
        background-color: #EFF8F2;
        border-color: #278653;
        color: #216F45;
    }

/* Rejection buttons */

.btn-reject {
    background-color: #FFFFFF;
    border-color: #D9534F;
    color: #C74642;
}

    .btn-reject:hover {
        background-color: #FDF1F0;
        border-color: #C74642;
        color: #B63834;
    }

/* =====================================================
   DATA GRIDS AND TABLES
   ===================================================== */

table,
.datagrid-table {
    border-color: #DCE2E8;
}

    .datagrid-table th,
    .datagrid-table thead th,
    .datagrid-table thead td {
        color: #FFFFFF;
        background-color: #1B3051;
        border-color: #29466D;
    }

    .datagrid-table td,
    .datagrid-table tbody td {
        color: #303B49;
        border-color: #E1E5EA;
    }

    .datagrid-table tbody tr:nth-child(odd),
    .datagrid-table tr:nth-child(odd) {
        background-color: #F6F8FA;
    }

    .datagrid-table tbody tr:nth-child(even),
    .datagrid-table tr:nth-child(even) {
        background-color: #FFFFFF;
    }

    .datagrid-table tbody tr:hover,
    .datagrid-table tr:hover {
        background-color: #FFF8D9;
    }

    /* Data grid containers */

    .datagrid,
    .datagrid article,
    .datagrid .fields,
    .datagrid-table tfoot,
    .datagrid-table .pagination,
    .datagrid-table .footer {
        border-color: #DCE2E8;
    }

        .datagrid article,
        .datagrid-table .datagrid-row {
            background-color: #FFFFFF;
        }

            .datagrid article:nth-child(even),
            .datagrid-table .datagrid-row:nth-child(even) {
                background-color: #F6F8FA;
            }

/* =====================================================
   PAGINATION
   ===================================================== */

.pagination > li > a,
.pagination > li > span {
    color: #1B3051;
    border-color: #DCE2E8;
    background-color: #FFFFFF;
}

    .pagination > li > a:hover,
    .pagination > li > span:hover {
        color: #1B3051;
        background-color: #F1F4F8;
        border-color: #C9D1DB;
    }

.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover {
    color: #FFFFFF;
    background-color: #1B3051;
    border-color: #1B3051;
}

/* =====================================================
   TABS AND NAVIGATION PILLS
   ===================================================== */

.nav-tabs {
    border-bottom-color: #DCE2E8;
}

    .nav-tabs > li > a {
        color: #465365;
        border-color: transparent;
    }

        .nav-tabs > li > a:hover {
            color: #1B3051;
            background-color: #F1F4F8;
            border-color: #DCE2E8 #DCE2E8 transparent;
        }

    .nav-tabs > li.active > a,
    .nav-tabs > li.active > a:hover,
    .nav-tabs > li.active > a:focus {
        color: #1B3051;
        background-color: #FFFFFF;
        border-color: #DCE2E8 #DCE2E8 #FFFFFF;
    }

.nav-pills > li > a {
    color: #1B3051;
}

.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus {
    color: #FFFFFF;
    background-color: #1B3051;
}

/* Expandable section labels */

label.expanding,
label.button-navigation,
.button-navigation {
    color: #1B3051;
    border-color: #DCE2E8;
}

    label.expanding:hover,
    label.button-navigation:hover,
    .button-navigation:hover {
        color: #1B3051;
        background-color: #F1F4F8;
        border-color: #B9C5D3;
    }

/* =====================================================
   SUPPORT CONVERSATIONS
   ===================================================== */

.conversation-item {
    color: #303B49;
    background-color: #F4F6F8;
    border-color: #DCE2E8;
}

/* Internal messages */

.conversation-item-internal {
    color: #303B49;
    background-color: #FFF8D9;
    border-color: #E8C84B;
}

.info-item {
    color: #465365;
    background-color: #F1F4F8;
    border-color: #DCE2E8;
}

.conv-panel {
    border-color: #DCE2E8;
}

.nav-conv > li > a {
    color: #1B3051;
}

.nav-conv > li.active > a,
.nav-conv > li.active > a:hover,
.nav-conv > li.active > a:focus {
    color: #FFFFFF;
    background-color: #1B3051;
}

/* =====================================================
   ALERTS AND STATUS MESSAGES
   ===================================================== */

.alert,
.pg-err-message,
.pg-success-message {
    border-color: #DCE2E8;
}

.alert-info {
    color: #1B3051;
    background-color: #EEF3F8;
    border-color: #CFD9E5;
}

.alert-warning {
    color: #765B00;
    background-color: #FFF8D9;
    border-color: #F0D875;
}

.alert-success,
.pg-success-message {
    color: #246B45;
    background-color: #EFF8F2;
    border-color: #BBDCC8;
}

.alert-danger,
.pg-err-message {
    color: #A73532;
    background-color: #FDF1F0;
    border-color: #E8C0BE;
}

.field-validation-error,
.validation-summary-errors {
    color: #C74642;
}

/* =====================================================
   MISCELLANEOUS
   ===================================================== */

hr {
    border-color: #DCE2E8;
}

.tooltip-inner {
    color: #FFFFFF;
    background-color: #1B3051;
}

.popover {
    border-color: #DCE2E8;
}

.popover-title {
    color: #1B3051;
    background-color: #F1F4F8;
    border-bottom-color: #DCE2E8;
}

.modal-content {
    border-color: #DCE2E8;
}

.modal-header {
    color: #1B3051;
    border-bottom-color: #DCE2E8;
}

.modal-footer {
    border-top-color: #DCE2E8;
}

/* Font-based Bootstrap glyphicons.
   Existing icon background images are untouched. */

[class*="glyphicon-"] {
    color: #1B3051;
}

/* Existing spinner animation and dimensions remain unchanged. */

.spinner > div {
    background-color: #F8CA10;
}

/* Recolor legacy green PNG icons toward ReQlogic navy */
img[src*="../images/icons/"] {
    filter: brightness(0) saturate(100%) invert(17%) sepia(19%) saturate(1580%) hue-rotate(174deg) brightness(92%) contrast(91%);
}
img[src*="/icons/"] {
    filter: brightness(0) saturate(100%) invert(17%) sepia(19%) saturate(1580%) hue-rotate(174deg) brightness(92%) contrast(91%);
}
img[src*="images/ViewITM.gif"] {
    filter: brightness(0) saturate(100%) invert(17%) sepia(19%) saturate(1580%) hue-rotate(174deg) brightness(92%) contrast(91%);
}
[class^="icon-"],
[class*=" icon-"] {
    filter: brightness(0) saturate(100%) invert(17%) sepia(19%) saturate(1580%) hue-rotate(174deg) brightness(92%) contrast(91%);
}

[class*="conversation-item"] .badge-small-rquser {
    color: #1B3051;
    background: #F1F4F8;
    border-color: #1B3051;
}

select:not(:disabled) {
    background-image: linear-gradient(45deg, transparent 50%, #1B3051 50%), linear-gradient(135deg, #1B3051 50%, transparent 50%);
}

table.datagrid-table tr.GridFooter td a,
table.datagrid-table tr.PV_GridFooter td a,
table.datagrid-table tr.GridNumbering td a {
    color: #1B3051;
}

    table.datagrid-table tr.GridFooter td a:hover,
    table.datagrid-table tr.PV_GridFooter td a:hover,
    table.datagrid-table tr.GridNumbering td a:hover {
        color: #F36E28;
    }

[class*="conversation-item"] .badge-rquser {
    color: #1B3051;
    background: #F1F4F8;
    border-color: #1B3051;
}

.list-group-item.active > .badge,
.nav-pills > .active > a > .badge {
    color: #1B3051;
}

input[type="file"]::file-selector-button {
    color: #1B3051;
    background-color: #F1F4F8;
    border: 1px solid #C9D1DB;
    border-radius: 3px;
    padding: 5px 12px;
    cursor: pointer;
}

    input[type="file"]::file-selector-button:hover {
        color: #1B3051;
        background-color: #E5EAF0;
        border-color: #AEB9C7;
    }

input[type="file"]::-webkit-file-upload-button {
    color: #1B3051;
    background-color: #F1F4F8;
    border: 1px solid #C9D1DB;
    border-radius: 3px;
    padding: 5px 12px;
    cursor: pointer;
}

.tag-item {
    border-color: #1B3051;
    color: #303B49;
}

/* =====================================================
   MODERN POLISH (2026-11-13)
   -----------------------------------------------------
   A light "modern" layer on top of the visual refresh above.
   Visual-only, same rules as the rest of this file:
     - No changes to size, spacing, position or display.
       Borders keep their existing widths; accents use
       box-shadow or absolutely positioned pseudo-elements,
       which never take up space.
     - No markup, script or behaviour changes.
   To roll back, delete everything from this banner down.
   ===================================================== */

/* ---------- Page canvas: soft gray so white panels read as cards ---------- */

body {
    background-color: #F5F7FA;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Page title rows sit on the canvas, not on a white strip */
.container-section-header {
    background-color: transparent;
}

body .footer-section,
body .footer-section .container {
    background-color: transparent;
}

body .footer-hr {
    border-bottom-color: #E3E8EF;
}

/* ---------- Top header bar ---------- */

#head-bottom-section {
    border-bottom-color: #E3E8EF !important; /* overrides the inline style colour only */
    -webkit-box-shadow: 0 1px 3px rgba(16,24,40,.06);
    box-shadow: 0 1px 3px rgba(16,24,40,.06);
}

/* ---------- Page titles ("Incident Summary View", "New Incident"): navy ---------- */

.container-section-header .row div span .caption,
.container-section-header .row div span .caption-sp {
    color: #1B3051 !important;
    position: relative;
}

/* ---------- Cards / panels ---------- */

.panel-shadow-effect,
.panel-shadow-effect-nobk {
    border-color: #E2E7EE;
    border-radius: 10px;
    -webkit-box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 14px rgba(16,24,40,.06);
    box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 14px rgba(16,24,40,.06);
}

.panel {
    border-radius: 8px;
    -webkit-box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 2px 8px rgba(16,24,40,.05);
    box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 2px 8px rgba(16,24,40,.05);
}

/* Section headings inside cards ("Filter", license header) */
.container-section h4 {
    color: #1B3051;
}

/* ---------- Form controls ---------- */

html body input[type="text"]:not([readonly]):not(:disabled),
html body input[type="password"]:not([readonly]):not(:disabled),
html body input[type="email"]:not([readonly]):not(:disabled),
html body input[type="number"]:not([readonly]):not(:disabled),
html body textarea:not([readonly]):not(:disabled),
html body select:not(:disabled) {
    border-color: #CBD3DE;
    border-radius: 6px;
    -webkit-transition: border-color .15s ease, box-shadow .15s ease;
    transition: border-color .15s ease, box-shadow .15s ease;
}

    html body input[type="text"]:not([readonly]):not(:disabled):hover,
    html body input[type="password"]:not([readonly]):not(:disabled):hover,
    html body input[type="email"]:not([readonly]):not(:disabled):hover,
    html body input[type="number"]:not([readonly]):not(:disabled):hover,
    html body textarea:not([readonly]):not(:disabled):hover,
    html body select:not(:disabled):hover {
        border-color: #9FADBF;
    }

    html body input[type="text"]:not([readonly]):not(:disabled):focus,
    html body input[type="password"]:not([readonly]):not(:disabled):focus,
    html body input[type="email"]:not([readonly]):not(:disabled):focus,
    html body input[type="number"]:not([readonly]):not(:disabled):focus,
    html body textarea:not([readonly]):not(:disabled):focus,
    html body select:not(:disabled):focus {
        border-color: #1B3051;
        -webkit-box-shadow: 0 0 0 3px rgba(27,48,81,.20);
        box-shadow: 0 0 0 3px rgba(27,48,81,.20);
        outline: none;
    }

/* Field labels: a touch softer so the values stand out */
.container-section label,
.container-section label span,
.caption_login {
    color: #5A6778;
}

/* ---------- Buttons ---------- */

.btn,
.reqlogic-btn,
.btn-report {
    border-radius: 6px;
    -webkit-transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease;
}

.btn-default {
    background-color: #FFFFFF;
    border-color: #CBD3DE;
    -webkit-box-shadow: 0 1px 2px rgba(16,24,40,.05);
    box-shadow: 0 1px 2px rgba(16,24,40,.05);
}

    .btn-default:hover,
    .btn-default:focus {
        background-color: #F1F4F8;
        border-color: #9FADBF;
    }

.btn-primary,
.reqlogic-btn,
.btn-report {
    -webkit-box-shadow: 0 1px 2px rgba(16,24,40,.12);
    box-shadow: 0 1px 2px rgba(16,24,40,.12);
}

.btn:focus-visible,
.reqlogic-btn:focus-visible,
a:focus-visible {
    outline: none;
    -webkit-box-shadow: 0 0 0 3px rgba(248,202,16,.55);
    box-shadow: 0 0 0 3px rgba(248,202,16,.55);
}

/* Header icon actions (New "+", Submit): keep the existing hover outline
   (behaviors.css), just with softer corners. No background colour here:
   the icon recolour filter above would turn it solid navy. */
.container-section-header [class*="icon-"].medium,
.container-section-header [class*="icon-"].medium:hover,
.container-section-header [class*="icon-"].medium:focus {
    border-radius: 6px;
}

/* ---------- Data grid (Incident Summary and other grids) ---------- */

/* Header row: light, modern header instead of solid gray */
html body table.datagrid-table tr:first-child,
html body table.datagrid-table tr:first-child td a {
    background: #EEF2F7 !important;
    color: #1B3051 !important;
}

html body table.datagrid-table tr:first-child td {
    -webkit-box-shadow: inset 0 -1px 0 #D5DCE6;
    box-shadow: inset 0 -1px 0 #D5DCE6;
}

    html body table.datagrid-table tr:first-child td a:hover {
        color: #F36E28 !important;
    }

/* Body rows: white with hairline separators (drawn as shadows, so row heights don't change) */
html body .datagrid-table tr:nth-child(odd),
html body .datagrid-table tr:nth-child(even) {
    background-color: #FFFFFF;
}

html body .datagrid-table tr:nth-child(even) {
    background-color: #FAFBFD;
}

html body .datagrid-table tr td {
    -webkit-box-shadow: inset 0 -1px 0 #EEF1F5;
    box-shadow: inset 0 -1px 0 #EEF1F5;
}

html body .datagrid-table tr:not(:first-child):not(.GridFooter):hover,
html body .datagrid-table tr:not(:first-child):not(.GridFooter):hover td {
    background-color: #FFF8DC;
}

/* Pager: soften the divider and underline the current page in brand yellow */
html body table.datagrid-table tr.GridFooter,
html body table.datagrid-table tr.GridFooter td {
    border-top-color: #E3E8EF;
    -webkit-box-shadow: none;
    box-shadow: none;
}

    html body table.datagrid-table tr.GridFooter,
    html body table.datagrid-table tr.GridFooter:hover {
        background-color: #FFFFFF;
    }

    html body table.datagrid-table tr.GridFooter td > span {
        color: #1B3051;
        -webkit-box-shadow: inset 0 -2px 0 #F8CA10;
        box-shadow: inset 0 -2px 0 #F8CA10;
    }

/* ---------- Login page ---------- */

.vertical-center .panel-shadow-effect.width-450 {
    border-radius: 12px;
    -webkit-box-shadow: inset 0 3px 0 #F8CA10, 0 1px 3px rgba(16,24,40,.06), 0 10px 30px rgba(16,24,40,.08);
    box-shadow: inset 0 3px 0 #F8CA10, 0 1px 3px rgba(16,24,40,.06), 0 10px 30px rgba(16,24,40,.08);
}

/* Login button: brand primary (colour only) */
.login-link-box .btn-default {
    color: #FFFFFF;
    background-color: #1B3051;
    border-color: #1B3051;
    -webkit-box-shadow: 0 1px 2px rgba(16,24,40,.15);
    box-shadow: 0 1px 2px rgba(16,24,40,.15);
}

    .login-link-box .btn-default:hover,
    .login-link-box .btn-default:focus {
        color: #FFFFFF;
        background-color: #29466D;
        border-color: #29466D;
    }

/* ---------- Menus, modals, alerts ---------- */

.dropdown-menu {
    border-color: #E2E7EE;
    border-radius: 8px;
    -webkit-box-shadow: 0 8px 24px rgba(16,24,40,.12);
    box-shadow: 0 8px 24px rgba(16,24,40,.12);
}

.modal-content {
    border-radius: 12px;
    -webkit-box-shadow: 0 20px 50px rgba(16,24,40,.22);
    box-shadow: 0 20px 50px rgba(16,24,40,.22);
}

.alert {
    border-radius: 8px;
}

/* ---------- Older button styles: match the Incident Summary filter buttons ----------
   reqlogic-btn (lookup "Apply Filter", Upload, Submit, Send Test Email...) and
   btn-success ("Stay on Page" / "Return to Summary") get the same white,
   rounded look as btn-default. reqlogic-btn also gets btn-default's padding
   and 12px text, so it's the same size as the summary buttons. (2026-11-14) */

html body .reqlogic-btn,
html body .btn-report,
html body .btn-success {
    color: #1B3051;
    background-color: #FFFFFF;
    background-image: none;
    border: 1px solid #CBD3DE;
    border-radius: 6px;
    font-weight: normal;
    text-shadow: none;
    -webkit-box-shadow: 0 1px 2px rgba(16,24,40,.05);
    box-shadow: 0 1px 2px rgba(16,24,40,.05);
    -webkit-transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

    html body .reqlogic-btn,
    html body .pv-container .reqlogic-btn {
        padding: 6px 12px !important;
        height: auto;
        font-size: 12px;
        line-height: 1.42857143;
        vertical-align: middle;
    }

    /* A button sitting inside a field label (e.g. "Send Login Information" next to
       "User Name") keeps its old padding. behaviors.css stops labels wrapping and
       clips anything that overflows, so a wider button gets cut off once the
       Duru Sans font loads; the old 3px 8px padding keeps it inside the label. */
    html body label .reqlogic-btn {
        padding: 3px 8px !important;
    }

    /* ...and if the window is too narrow for it to fit beside the label text,
       let it drop onto the next line instead of being clipped out of sight */
    html body label:has(> .reqlogic-btn) {
        overflow: visible;
        white-space: normal;
    }

    html body .reqlogic-btn:hover,
    html body .reqlogic-btn:focus,
    html body .btn-report:hover,
    html body .btn-report:focus,
    html body .btn-success:hover,
    html body .btn-success:focus,
    html body .btn-success:active {
        color: #1B3051;
        background-color: #F1F4F8;
        background-image: none;
        border-color: #9FADBF;
        text-decoration: none;
    }

    /* Disabled (e.g. "Send Login Information" when the account has no email):
       clearly greyed out but still visible, like the site's other disabled buttons */
    html body .reqlogic-btn:disabled,
    html body .reqlogic-btn[disabled],
    html body .reqlogic-btn.aspNetDisabled,
    html body .btn-report:disabled {
        color: #7D8896;
        background-color: #E9EDF1;
        background-image: none;
        border-color: #C9D1DB;
        cursor: not-allowed;
        opacity: 1; /* icon-styles.css fades disabled buttons to 40%, which made them vanish on white */
        -webkit-box-shadow: none;
        box-shadow: none;
    }

/* ---------- Floating page messages (e.g. "Incident Successfully Updated!") ----------
   The fixed .pg-success-message / .pg-err-message wrapper was being painted with
   the alert colours above and had 5px padding, so the rounded alert sat inside a
   full-width tinted band (a box inside a box), and Bootstrap's 20px alert
   margin-bottom made the gap below bigger than the gap above. Make the wrapper an
   invisible positioning layer and let the alert be a single centred card. (2026-11-14) */

html body .pg-success-message,
html body .pg-err-message {
    background: transparent;
    border: 0;
    padding: 0 15px;
    pointer-events: none; /* clicks pass through the empty space beside the card */
}

    html body .pg-success-message > .alert,
    html body .pg-err-message > .alert {
        pointer-events: auto;
        position: relative;
        max-width: 560px;
        margin: 0 auto;
        padding: 20px 44px 18px;
        border-width: 1px;
        border-radius: 10px;
        -webkit-box-shadow: 0 10px 30px rgba(16,24,40,.15);
        box-shadow: 0 10px 30px rgba(16,24,40,.15);
    }

    html body .pg-success-message > .alert .close,
    html body .pg-err-message > .alert .close {
        position: absolute;
        top: 10px;
        right: 14px;
        float: none;
    }

    html body .pg-success-message .pg-message-title {
        display: block;
        font-size: 22px;
        font-weight: 600;
        line-height: 1.3;
    }

    html body .pg-success-message .pg-message-actions {
        margin-top: 14px;
    }

        html body .pg-success-message .pg-message-actions .btn {
            margin: 0 4px;
            padding: 7px 16px;
            font-size: 14px;
        }

/* ---------- Incident page: reply boxes and message list ----------
   The reply boxes used the same grey .conversation-item band as the messages, edge
   to edge, with an undefined padding-top-15 and a 30px margin-bottom-30 under them,
   so the top of the conversation read as grey band / white gap / grey band. For
   customers the bottom reply box rendered empty (all its contents are staff-only),
   leaving a grey strip with a border plus ~50px of white space at the bottom.
   Reply boxes are now plain white areas separated by a divider, messages are
   rounded cards with even spacing, and the always-empty edit-links <h4> no longer
   adds a gap above the first message. (2026-11-14) */

html body .container-section .reply-composer {
    background-color: #FFFFFF;
    border: 0;
    margin-top: 0;
    margin-bottom: 0;
}

    html body .container-section .reply-composer-top {
        padding: 5px 0 15px;
        border-bottom: 1px solid #E2E7EE;
        margin-bottom: 15px;
    }

    html body .container-section .reply-composer-bottom {
        padding: 15px 0 0;
        border-top: 1px solid #E2E7EE;
        margin-top: 15px;
    }

    html body .container-section .reply-composer textarea {
        width: 100%;
    }

#ConversationContent > h4.margin-left-15 {
    margin: 0;
}

#ConversationContent > .conversation-item,
#ConversationContent > .conversation-item-internal {
    margin: 0 15px 10px 15px;
    padding: 12px 0 2px;
    border-width: 1px;
    border-style: solid;
    border-radius: 8px;
}

#ConversationContent > .conversation-item {
    border-color: #E2E7EE;
}

    #ConversationContent > .conversation-item:last-child,
    #ConversationContent > .conversation-item-internal:last-child {
        margin-bottom: 0;
    }

/* ---------- Incident page: attachments line ----------
   "N Attachments", the paperclip and the expand arrow sat directly under the
   last row of fields with no gap. Give the line its own space with a divider
   above it, and space the icons evenly. (2026-11-14) */

.container-section .attach-bar {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #E2E7EE;
    color: #5A6778;
}

    .container-section .attach-bar > span,
    .container-section .attach-bar > .display-inline,
    .container-section .attach-bar > .icon-expand {
        vertical-align: middle;
    }

    .container-section .attach-bar #conv-attach,
    .container-section .attach-bar > .icon-expand {
        margin-left: 8px;
    }

    .container-section .attach-bar .table {
        margin: 10px 0 0 0;
    }

/* ---------- Incident page: AI Suggested Response panel (staff only) ----------
   Replaces the old inline styles (4px corners, #fafafa, Bootstrap green label)
   with the same palette and rounding as the rest of the redesigned page. The
   element IDs used by the Copy / Copy to Reply script are unchanged. (2026-11-14) */

.ai-response-text {
    white-space: pre-wrap;
    max-height: 400px;
    overflow-y: auto;
    padding: 12px 14px;
    color: #303B49;
    line-height: 1.5;
    background-color: #F8FAFC;
    border: 1px solid #E2E7EE;
    border-radius: 8px;
}

.alert.ai-stale-warning {
    margin: 5px 15px 0 15px;
    padding: 8px 12px;
}

.label.ai-available {
    color: #246B45;
    background-color: #EFF8F2;
    border: 1px solid #BBDCC8;
    border-radius: 10px;
    font-weight: 600;
    padding: 3px 8px;
    vertical-align: middle;
}
