﻿/* =========================================================================
   Card Shield / Shield Services — Portal Styles
   Site-wide visual refresh. Apply once via MainMaster.master and every page
   inherits the modernized look. Extends the existing custom.css.

   Conventions:
     - Brand color: #01437D (navy)
     - Accent color: #d49d2f (gold)
     - Text body: #2a3242
     - Subdued text: #6b7385
     - Border / divider: #d8dde7
     - Soft background: #f6f8fc

   Class prefix: .cs- for shell elements (header, nav, footer, layout)
                 .mp- for component patterns (cards, forms, panels, info boxes)
                       — kept consistent with manage-payments.css so the same
                       Manage Payments markup works unchanged on this site.
   ========================================================================= */

/* =========================================================
   1. Base resets and typography
   ========================================================= */
body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #2a3242;
  font-size: 14px;
  line-height: 1.55;
  background: #ffffff;
}

a { color: #01437D; }
a:hover { color: #062f5a; text-decoration: underline; }

h1, h2, h3, h4, h5 { color: #01437D; font-weight: 700; line-height: 1.25; }
h1 { font-size: 28px; margin-bottom: 6px; }
h2 { font-size: 22px; margin-bottom: 8px; }
h3 { font-size: 18px; margin-bottom: 10px; }
h4 { font-size: 16px; margin-bottom: 8px; }

.text-muted { color: #6b7385 !important; }

/* =========================================================
   2. Header — utility bar + brand bar
   ========================================================= */
.cs-utility {
  background: #0d2d56;
  color: #ffffff;
  font-size: 12px;
  padding: 6px 0;
}
.cs-utility .container-fluid { padding: 0 28px; }
.cs-utility-left, .cs-utility-right { display: flex; align-items: center; gap: 18px; }
.cs-utility-right { justify-content: flex-end; }
.cs-utility-link {
  color: #ffffff;
  text-decoration: none;
}
.cs-utility-link:hover { color: #d49d2f; text-decoration: none; }
.cs-utility-meta { color: #b6c4d8; }
.cs-utility-sep { color: rgba(255,255,255,0.4); }

.cs-brandbar {
  background: #01437D;
  padding: 18px 0 14px 0;
}
.cs-brandbar .container-fluid { padding: 0 28px; }
.cs-logo {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #ffffff;
  text-decoration: none;
  display: inline-block;
}
.cs-logo:hover { color: #ffffff; text-decoration: none; }
.cs-logo-text { color: #ffffff; }
.cs-logo-dot {
  color: #d49d2f;
  margin: 0 6px;
  font-size: 22px;
  vertical-align: middle;
}

/* =========================================================
   3. Nav
   ========================================================= */
.cs-nav {
  background: #01437D;
  border-bottom: 4px solid #d49d2f;
}
.cs-nav .container-fluid { padding: 0 28px; }
.cs-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}
.cs-nav-list li { display: inline-block; }
.cs-nav-list a {
  display: block;
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  padding: 13px 16px;
  border-right: 1px solid #2a5598;
  transition: background 0.15s ease;
}
.cs-nav-list a:hover {
  background: #0a3a72;
  color: #ffffff;
  text-decoration: none;
}
.cs-nav-list a.selected {
  background: #062f5a;
  font-weight: 700;
  position: relative;
}
.cs-nav-list a.selected::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 4px;
  background: #d49d2f;
}

/* =========================================================
   4. Main content area
   ========================================================= */
.cs-main {
  padding: 32px 0 60px 0;
  min-height: calc(100vh - 320px);
}
.cs-main .container-fluid { padding: 0 28px; max-width: 1280px; margin: 0 auto; }

.cs-crumbs {
  font-size: 12px;
  color: #6b7385;
  margin-bottom: 8px;
}
.cs-crumbs a { color: #01437D; font-weight: 600; text-decoration: none; }
.cs-crumbs a:hover { text-decoration: underline; }

.cs-page-title {
  color: #01437D;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 4px;
}
.cs-page-sub {
  color: #4a5063;
  font-size: 14px;
  margin: 0 0 24px;
}

/* =========================================================
   5. Cards (the central pattern, lifted from Manage Payments)
   ========================================================= */
.mp-card,
.cs-card {
  background: #ffffff;
  border: 1px solid #d8dde7;
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.mp-card-icon, .cs-card-icon {
  width: 44px;
  height: 44px;
  background: #eef2fa;
  color: #01437D;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}
.mp-card h2, .cs-card h2 {
  font-size: 18px;
  margin: 0 0 6px;
}
.mp-card p, .cs-card p {
  color: #4a5063;
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 16px;
}
.mp-meta, .cs-card-meta {
  background: #f6f8fc;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  color: #555;
  margin-bottom: 16px;
}

/* =========================================================
   6. Panels (for form pages, settings)
   ========================================================= */
.mp-panel, .cs-panel {
  background: #ffffff;
  border: 1px solid #d8dde7;
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 16px;
}
.mp-panel h3, .cs-panel h3 {
  color: #01437D;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 14px;
}

/* =========================================================
   7. Forms
   ========================================================= */
.form-group { margin-bottom: 18px; }
.mp-form-label, .cs-form-label {
  display: block;
  font-size: 11px;
  color: #4a5063;
  font-weight: 700;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.form-control {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.4;
  color: #2a3242;
  background: #ffffff;
  border: 1px solid #c9d0dd;
  border-radius: 4px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-control:focus {
  border-color: #01437D;
  box-shadow: 0 0 0 3px rgba(1,67,125,0.12);
  outline: none;
}
.form-control[disabled], .form-control[readonly] {
  background: #f1f3f8;
  color: #6b7385;
}
.mp-hint, .cs-hint {
  font-size: 12px;
  color: #6b7385;
  margin-top: 5px;
}
.text-danger, .field-validation-error {
  color: #b9202b;
  font-size: 12px;
  margin-top: 4px;
  display: inline-block;
}

/* =========================================================
   8. Buttons
   ========================================================= */
.default_btn,
.btn-primary,
.cs-btn {
  display: inline-block;
  background: #01437D;
  color: #ffffff !important;
  border: 1px solid #01437D;
  padding: 9px 22px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.default_btn:hover,
.btn-primary:hover,
.cs-btn:hover {
  background: #062f5a;
  border-color: #062f5a;
  color: #ffffff !important;
  text-decoration: none;
}
.default_btn.disabled,
.btn-primary.disabled,
.cs-btn.disabled,
.default_btn[disabled],
.cs-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.mp-btn-ghost, .cs-btn-ghost {
  background: #ffffff;
  color: #01437D !important;
  border: 1px solid #01437D;
  padding: 9px 22px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  display: inline-block;
}
.mp-btn-ghost:hover, .cs-btn-ghost:hover {
  background: #f6f9fd;
  color: #01437D !important;
  text-decoration: none;
}

.cs-btn-sm { padding: 6px 14px; font-size: 12px; }
.cs-btn-lg { padding: 12px 28px; font-size: 14px; }

.cs-btn-danger {
  background: #b9202b;
  border-color: #b9202b;
  color: #ffffff !important;
}
.cs-btn-danger:hover { background: #9b1822; border-color: #9b1822; color: #ffffff !important; }

/* =========================================================
   9. Info boxes
   ========================================================= */
.mp-info, .mp-warn, .mp-ok, .mp-err,
.cs-info, .cs-warn, .cs-ok, .cs-err {
  border-radius: 5px;
  padding: 14px 16px;
  font-size: 13px;
  margin-bottom: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.mp-info, .cs-info { background: #eef4fb; border: 1px solid #b8d0ea; color: #01437D; }
.mp-warn, .cs-warn { background: #fdf2dd; border: 1px solid #e9c25c; color: #7a5300; }
.mp-ok,   .cs-ok   { background: #e8f3ec; border: 1px solid #8ec79e; color: #1e6a37; }
.mp-err,  .cs-err  { background: #fdecec; border: 1px solid #e9a3a3; color: #8a1f1f; }
.mp-info .ic, .mp-warn .ic, .mp-ok .ic, .mp-err .ic,
.cs-info .ic, .cs-warn .ic, .cs-ok .ic, .cs-err .ic {
  font-size: 18px; line-height: 1; flex-shrink: 0;
}

/* =========================================================
   10. Tables (Bootstrap 3+ -> overridden to match brand)
   ========================================================= */
.table {
  width: 100%;
  background: #ffffff;
  border-collapse: collapse;
  margin-bottom: 18px;
}
.table thead th {

  color: #01437D;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 12px 16px;
  border: none;
  text-align: left;
}
.table tbody td {
  padding: 12px 16px;
  border-top: 1px solid #eef0f5;
  vertical-align: middle;
  font-size: 13px;
}
.table-striped tbody tr:nth-child(odd) td { background: #f6f8fc; }
.table-hover tbody tr:hover td { background: #eef4fb; }
.table tbody tr:first-child td { border-top: 1px solid #d8dde7; }
.table td .cs-btn-sm, .table td .mp-btn-ghost { padding: 5px 12px; font-size: 12px; }

/* GridView often emits <table> with classes like "GridView" or none.
   Apply table styling regardless. */
table.GridView, .gridview, [id*=GridView] {
  width: 100%;
  background: #ffffff;
  border-collapse: collapse;
}
table.GridView th, .gridview th, [id*=GridView] th {
  background: #01437D;
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  padding: 12px 16px;
  text-align: left;
}
table.GridView td, .gridview td, [id*=GridView] td {
  padding: 12px 16px;
  border-top: 1px solid #eef0f5;
  font-size: 13px;
}
table.GridView tr:nth-child(odd) td, .gridview tr:nth-child(odd) td, [id*=GridView] tr:nth-child(odd) td {
  background: #f6f8fc;
}

/* =========================================================
   11. Lists (for resource lists, note lists, etc.)
   ========================================================= */
.cs-list { list-style: none; padding: 0; margin: 0 0 18px 0; }
.cs-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #ffffff;
  border: 1px solid #d8dde7;
  border-radius: 5px;
  margin-bottom: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cs-list-item:hover {
  border-color: #01437D;
  box-shadow: 0 1px 4px rgba(1,67,125,0.08);
}
.cs-list-icon {
  width: 36px;
  height: 36px;
  background: #eef2fa;
  color: #01437D;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.cs-list-body { flex: 1; min-width: 0; }
.cs-list-title { color: #01437D; font-weight: 600; font-size: 14px; margin: 0; }
.cs-list-meta  { color: #6b7385; font-size: 12px; margin: 3px 0 0 0; }

/* =========================================================
   12. Review / key-value list
   ========================================================= */
.mp-review, .cs-review { list-style: none; padding: 0; margin: 0; }
.mp-review li, .cs-review li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eef0f5;
  font-size: 13px;
}
.mp-review li:last-child, .cs-review li:last-child { border-bottom: 0; }
.mp-review .lbl, .cs-review .lbl { color: #6b7385; }
.mp-review .val, .cs-review .val { color: #2a3242; font-weight: 600; }

/* =========================================================
   13. Empty states
   ========================================================= */
.cs-empty {
  text-align: center;
  padding: 48px 24px;
  color: #6b7385;
}
.cs-empty-icon {
  font-size: 42px;
  color: #c9d0dd;
  margin-bottom: 14px;
}
.cs-empty h3 { color: #4a5063; }
.cs-empty p { color: #6b7385; font-size: 13px; }

/* =========================================================
   14. Stepper (wizards)
   ========================================================= */
.mp-stepper { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.mp-step {
  flex: 1 1 200px;
  background: #f1f3f8;
  color: #6b7385;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  border-left: 4px solid #d8dde7;
}
.mp-step .num { font-weight: 800; margin-right: 6px; }
.mp-step-active { background: #eef2fa; color: #01437D; border-left-color: #01437D; }
.mp-step-done   { background: #eaf3ec; color: #2e7d4a; border-left-color: #2e7d4a; }

/* =========================================================
   15. Action row (bottom of forms / wizards)
   ========================================================= */
.mp-actions, .cs-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  gap: 12px;
}

/* =========================================================
   16. Account / member display blocks
   ========================================================= */
.mp-acct {
  border: 1px solid #d8dde7;
  border-radius: 5px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.mp-acct.selected { border-color: #01437D; background: #f6f9fd; }
.mp-acct-name { color: #01437D; font-weight: 700; font-size: 14px; }
.mp-acct-meta { color: #6b7385; font-size: 12px; margin-top: 3px; }
.mp-acct-status { font-size: 12px; color: #4a5063; }

/* =========================================================
   17. Login / OTP code grid
   ========================================================= */
.cs-login {
  max-width: 440px;
  margin: 48px auto;
  padding: 32px 32px 28px 32px;
  background: #ffffff;
  border: 1px solid #d8dde7;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.cs-login h2 { text-align: center; margin-bottom: 4px; }
.cs-login p.lead { text-align: center; color: #6b7385; margin-bottom: 22px; }

.cs-otp-grid {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 18px 0;
}
.cs-otp-cell {
  width: 56px;
  height: 64px;
  border: 1px solid #c9d0dd;
  border-radius: 6px;
  font-size: 28px;
  font-weight: 700;
  color: #01437D;
  text-align: center;
  background: #ffffff;
}
.cs-otp-cell:focus {
  border-color: #01437D;
  box-shadow: 0 0 0 3px rgba(1,67,125,0.12);
  outline: none;
}

/* =========================================================
   18. Footer
   ========================================================= */
.cs-footer {
  background: #062f5a;
  color: #b6c4d8;
  padding: 32px 0 18px 0;
  margin-top: 60px;
}
.cs-footer .container-fluid { padding: 0 28px; max-width: 1280px; margin: 0 auto; }
.cs-footer-col { margin-bottom: 18px; }
.cs-footer-heading {
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.6px;
  margin-bottom: 10px;
}
.cs-footer-text { font-size: 13px; line-height: 1.55; }
.cs-footer a { color: #ffffff; text-decoration: none; }
.cs-footer a:hover { color: #d49d2f; text-decoration: underline; }
.cs-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 18px;
  padding-top: 14px;
  font-size: 12px;
  color: #8497b5;
  text-align: center;
}

/* =========================================================
   19. Misc utilities
   ========================================================= */
.cs-divider { height: 1px; background: #eef0f5; margin: 24px 0; }
.cs-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.cs-pill-info { background: #eef4fb; color: #01437D; }
.cs-pill-ok   { background: #e8f3ec; color: #1e6a37; }
.cs-pill-warn { background: #fdf2dd; color: #7a5300; }
.cs-pill-err  { background: #fdecec; color: #8a1f1f; }

.cs-stat {
  background: #ffffff;
  border: 1px solid #d8dde7;
  border-radius: 6px;
  padding: 18px 22px;
}
.cs-stat-label { color: #6b7385; font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px; }
.cs-stat-value { color: #01437D; font-size: 28px; font-weight: 700; line-height: 1.1; margin-top: 4px; }
.cs-stat-meta  { color: #6b7385; font-size: 12px; margin-top: 4px; }

/* =========================================================
   20. Responsive
   ========================================================= */
@media (max-width: 992px) {
  .cs-nav-list { overflow-x: auto; flex-wrap: nowrap; }
  .cs-nav-list a { white-space: nowrap; }
}

@media (max-width: 768px) {
  .cs-utility-left, .cs-utility-right { flex-direction: column; align-items: flex-start; gap: 4px; }
  .cs-utility-right { align-items: flex-start; }
  .cs-logo { font-size: 22px; }
  .mp-actions, .cs-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .mp-actions a, .mp-actions input, .cs-actions a, .cs-actions input {
    width: 100%; text-align: center;
  }
  .cs-otp-cell { width: 44px; height: 56px; font-size: 22px; }
}
