/*
 * pig.css — goPWADC Design System
 * ─────────────────────────────────────────────────────────────────────────────
 * All reusable ".pig-*" components for the V2 layout.
 *
 * NAMING CONVENTION
 *   Every class is prefixed with "pig-" to prevent collisions with Bootstrap
 *   or any third-party library. Never use unprefixed names for new components.
 *
 * COLOR PALETTE
 *   Text (dark)   #0f1f3d     Body text       #333
 *   Text (muted)  #6b7280     Text (light)    #9ca3af
 *   Accent blue   #03a9f4     Active blue     #0288d1
 *   Hover bg      #e1f5fe     Border          #b8c9e4
 *   Surface       #f5f8fc     Gray bg         #e9eef5
 *   Green         #1e7e34     Red             #c5221f     Yellow  #856404
 *
 * SECTIONS (Ctrl+F the section title to jump)
 *   1. Page Header          (.pig-header, .pig-avatar, .pig-header-*)
 *   2. Cards                (.pig-card, .pig-card-header, .pig-card-body)
 *   3. Fields               (.pig-field, .pig-field-label, .pig-field-value, .pig-field-hint)
 *   4. Badges & Tags        (.pig-badge-*, .pig-role-tag)
 *   5. Segmented Tabs       (.pig-tabs, .pig-tab)
 *   6. Toggle Switch        (.pig-toggle, .pig-toggle-slider)
 *   7. Table                (.pig-table)
 *   8. Loading State        (.pig-loading)
 *   9. Feature Explorer     (.pig-explorer-*)
 *  10. Buttons & Dropdowns  (.pig-dropdown-btn, .pig-choice-btn, #btn-add-config)
 *  11. Equal-Height Rows    (.pig-equal-height)
 *  12. Responsive — Mobile  (@media max-width: 767px)
 *  13. Responsive — Desktop (@media min-width: 768px)
 *  14. Popup / Dialog       (.jconfirm.reg-details-popup, #json-viewer-container)
 *  15. Form Inputs          (.pig-input-label, .pig-input, .pig-input-row, .pig-input-addon-btn, .pig-checkbox-wrap)
 *  16. Footer               (.pig-footer, .pig-footer-*)
 * ─────────────────────────────────────────────────────────────────────────────
 */


/* ═══════════════════════════════════════════════════════════════════════════
   1. PAGE HEADER
   Compact card at the top of a V2 detail page.
   Contains an avatar, user name, username, status badges, and an actions menu.

   HTML structure:
     <div class="pig-header">
       <div class="pig-avatar"><i class="fa fa-user"></i></div>
       <div style="flex:1; min-width:0;">
         <div class="pig-header-inner" ...>
           <div class="pig-header-name">John Doe</div>
           <div class="pig-header-username">johndoe</div>
           <div class="pig-header-actions"> ... </div>
         </div>
       </div>
     </div>
   ═══════════════════════════════════════════════════════════════════════════ */

.pig-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #b8c9e4;
    border-top: 5px solid #b8c9e4;   /* override in JS with status color */
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05), 0 8px 24px rgba(0, 0, 0, .07);
    margin-bottom: 14px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Circular avatar icon — 48×48, light blue fill */
.pig-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e1f5fe;
    color: #03a9f4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.pig-header-name {
    font-size: 18px;
    font-weight: 700;
    color: #0f1f3d;
    margin: 0;
    line-height: 1.2;
}

.pig-header-username {
    font-size: 13px;
    color: #6b7280;
    margin-top: 2px;
}


/* ═══════════════════════════════════════════════════════════════════════════
   2. CARDS
   Replaces Bootstrap's .panel. Use for any grouped content block.

   HTML structure:
     <div class="pig-card">
       <div class="pig-card-header">
         <i class="fa fa-id-card"></i> Section Title
       </div>
       <div class="pig-card-body">
         ... content ...
       </div>
     </div>

   Notes:
   - overflow:hidden is intentional — rounded corners clip children cleanly.
   - margin-bottom keeps cards separated vertically inside a column.
   ═══════════════════════════════════════════════════════════════════════════ */

.pig-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05), 0 8px 24px rgba(0, 0, 0, .07);
    border: 1px solid #b8c9e4;
    margin-bottom: 20px;
    overflow: hidden;
}

/* Uppercase label bar at the top of a card */
.pig-card-header {
    padding: 11px 18px;
    border-bottom: 2px solid #b8c9e4;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #0f1f3d;
    background: #f5f8fc;
}

/* Icon inside a card header — automatically colored accent blue */
.pig-card-header i {
    margin-right: 7px;
    font-size: 16px;
    color: #03a9f4;
}

/* Info alert box used in feature config partials and the Configurations/Notifications tabs.
   Owns font-size and padding so inline styles are not needed — mobile override lives below. */
.pig-info-alert {
    font-size: 12px;
    padding: 8px 12px;
}

.pig-card-body {
    padding: 4px 18px 8px;
}


/* ═══════════════════════════════════════════════════════════════════════════
   3. FIELDS
   Label + value rows for displaying read-only data inside a .pig-card-body.
   An optional hint line can appear below the value for extra guidance.

   HTML structure (generated by the field() JS helper):
     <div class="pig-field">
       <div class="pig-field-label">
         <i class="fa fa-envelope"></i>Email
       </div>
       <div class="pig-field-value">user@example.com</div>
       <!-- optional hint -->
       <div class="pig-field-hint">Helper text shown below the value.</div>
     </div>

   Tips:
   - .pig-field-label has a fixed 140px width so all values line up.
   - flex-wrap:wrap on .pig-field lets the hint drop to its own full-width line.
   - The last .pig-field in a card has no bottom border (see :last-child rule).
   ═══════════════════════════════════════════════════════════════════════════ */

.pig-field {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    padding: 9px 0;
    border-bottom: 1px solid #f2f4f7;
    font-size: 13px;
}

.pig-field:last-child {
    border-bottom: none;
}

.pig-field-label {
    width: 140px;
    flex-shrink: 0;
    color: #555;
    font-weight: 500;
    font-size: 12px;
}

/* Icon inside field label — fixed width keeps values aligned */
.pig-field-label i {
    width: 16px;
    text-align: center;
    margin-right: 6px;
    color: #888;
}

.pig-field-value {
    flex: 1;
    color: #333;
    word-break: break-word;
}

/* Hint line — sits below the label+value row, full width, small muted text */
.pig-field-hint {
    flex-basis: 100%;
    font-size: 11px;
    color: #6b7280;
    margin-top: 3px;
    line-height: 1.4;
}


/* ═══════════════════════════════════════════════════════════════════════════
   4. BADGES & TAGS
   Small pill badges for status, boolean values, roles, etc.

   Badge variants:
     .pig-badge-green   — Active / Yes / Allowed
     .pig-badge-yellow  — Pending / No / Warning
     .pig-badge-red     — Disabled / Error
     .pig-badge-gray    — Neutral / Not Set

   HTML:
     <span class="pig-badge pig-badge-green">
       <i class="fa fa-check-circle"></i> Active
     </span>

   Role tags (for listing assigned roles):
     <span class="pig-role-tag">Administrator</span>
   ═══════════════════════════════════════════════════════════════════════════ */

.pig-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.pig-badge-green  { background: #e6f4ea; color: #1e7e34; }
.pig-badge-gray   { background: #f1f3f4; color: #6c757d; }
.pig-badge-yellow { background: #fff3cd; color: #856404; }
.pig-badge-red    { background: #fce8e6; color: #c5221f; }

/* Role tag — light blue, used in the Roles card */
.pig-role-tag {
    display: inline-block;
    padding: 3px 11px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    background: #e1f5fe;
    color: #0277bd;
    margin: 3px 4px 3px 0;
}


/* ═══════════════════════════════════════════════════════════════════════════
   5. SEGMENTED TABS
   A rounded pill container that wraps Bootstrap's .nav-tabs. The active tab
   lifts out with a white card + shadow, giving a native segmented-control look.

   HTML structure (place inside a Bootstrap tab setup):
     <ul class="nav pig-tabs" role="tablist">
       <li class="pig-tab active" role="presentation">
         <a href="#tab-profile" role="tab" data-toggle="tab">
           <i class="fa fa-user"></i> Profile
         </a>
       </li>
       <li class="pig-tab" role="presentation">
         <a href="#tab-settings" role="tab" data-toggle="tab">
           <i class="fa fa-cog"></i> Settings
         </a>
       </li>
     </ul>

   Note: Add the Bootstrap .nav class alongside .pig-tabs so Bootstrap's
   tab switching JS still works. The CSS below resets Bootstrap's default
   borders and floats, then layers the pill design on top.
   ═══════════════════════════════════════════════════════════════════════════ */

.pig-tabs {
    display: inline-flex !important;
    border-bottom: none !important;
    background: #e9eef5;
    border-radius: 12px;
    padding: 4px;
    gap: 3px;
    margin-bottom: 0;
}

/* Short label shown only on mobile, full label hidden on mobile — swap via media query below */
.pig-tab-short { display: none; }

/* Reset Bootstrap's float-based layout */
.pig-tabs > .pig-tab {
    float: none !important;
    margin-bottom: 0 !important;
}

.pig-tabs > .pig-tab > a {
    border: none !important;
    border-radius: 9px !important;
    padding: 9px 29px;
    color: #6b7280;
    font-weight: 500;
    font-size: 13px;
    margin: 0 !important;
    transition: background .2s, color .2s, box-shadow .2s;
    line-height: 1.5;
}

.pig-tabs > .pig-tab > a i {
    margin-right: 7px;
    font-size: 16px;
    color: #03a9f4;
}

.pig-tabs > .pig-tab > a:hover {
    background: rgba(255, 255, 255, .55) !important;
    color: #374151;
    border: none !important;
}

/* Active tab: white card lifts out of the gray container */
.pig-tabs > .pig-tab.active > a,
.pig-tabs > .pig-tab.active > a:hover,
.pig-tabs > .pig-tab.active > a:focus {
    background: #fff !important;
    color: #0288d1 !important;
    font-weight: 600;
    border: none !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .12), 0 0 0 1px rgba(0, 0, 0, .04) !important;
}


/* ═══════════════════════════════════════════════════════════════════════════
   6. TOGGLE SWITCH
   A styled checkbox that looks like an iOS/Android on-off toggle.
   Used in the Notifications tab for per-department SMS/email toggles.

   HTML structure:
     <label class="pig-toggle">
       <input type="checkbox" />
       <span class="pig-toggle-slider"></span>
     </label>

   The input is hidden (opacity:0) and the <span> acts as the visual track.
   The white circle is the ::before pseudo-element that slides right on :checked.
   ═══════════════════════════════════════════════════════════════════════════ */

.pig-toggle {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    margin: 0;
    vertical-align: middle;
    cursor: pointer;
}

.pig-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Track — gray when off, blue when on */
.pig-toggle-slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #d1d5db;
    border-radius: 22px;
    transition: background .2s;
}

/* White knob */
.pig-toggle-slider:before {
    position: absolute;
    content: '';
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.pig-toggle input:checked + .pig-toggle-slider {
    background: #2563eb;
}

/* Slide the knob 18px to the right when checked */
.pig-toggle input:checked + .pig-toggle-slider:before {
    transform: translateX(18px);
}


/* ═══════════════════════════════════════════════════════════════════════════
   7. TABLE
   A clean, compact data table. Use .pig-table on a <table> element.
   Pairs well with a .pig-card wrapper.

   HTML structure:
     <table class="table pig-table">
       <thead>
         <tr><th>Department</th><th>Text</th><th>Email</th></tr>
       </thead>
       <tbody>
         <tr><td>Produce</td><td>...</td><td>...</td></tr>
       </tbody>
     </table>
   ═══════════════════════════════════════════════════════════════════════════ */

.pig-table th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #6b7280;
    font-weight: 600;
    padding: 10px 14px;
    border-bottom: 2px solid #e2e8f0;
    background: #f3f4f6;
}

.pig-table td {
    padding: 12px 14px;
    vertical-align: middle;
    font-size: 13px;
    color: #374151;
    border-bottom: 1px solid #f2f4f7;
}

.pig-table tbody tr:last-child td {
    border-bottom: none;
}

.pig-table tbody tr:hover td {
    background: #f8fafc;
}


/* ═══════════════════════════════════════════════════════════════════════════
   8. LOADING STATE
   Centered spinner + message shown while AJAX data loads.
   Hide it and show the real content in the AJAX .done() callback.

   HTML:
     <div class="pig-loading" id="my-loading">
       <i class="fa fa-spinner fa-spin"></i>
       Loading...
     </div>
   ═══════════════════════════════════════════════════════════════════════════ */

.pig-loading {
    padding: 60px 0;
    color: #bbb;
    font-size: 13px;
    text-align: center;
}

.pig-loading i {
    display: block;
    font-size: 30px;
    margin-bottom: 10px;
}


/* ═══════════════════════════════════════════════════════════════════════════
   9. FEATURE EXPLORER (master-detail layout)
   A two-column panel: a scrollable list on the left and a detail panel on
   the right. Clicking a list item shows its detail view.

   HTML structure:
     <div class="pig-card">
       <div class="row" style="margin:0;">
         <div class="col-sm-4 pig-explorer-col-list">
           <ul class="pig-explorer-list">
             <li class="pig-explorer-item active">
               <div class="pig-explorer-icon"><i class="fa fa-bell"></i></div>
               <span class="pig-explorer-name">Notifications</span>
             </li>
           </ul>
         </div>
         <div class="col-sm-8 pig-explorer-col-detail pig-explorer-panel">
           <div class="pig-explorer-empty">
             <i class="fa fa-hand-point-left"></i>
             Select an item
           </div>
         </div>
       </div>
     </div>

   On desktop: both columns display side-by-side (see @media min-width:768px).
   On mobile:  list shows first; detail replaces list (JS swaps display:none).
   ═══════════════════════════════════════════════════════════════════════════ */

/* Scrollable list — 400px cap on mobile; overridden to auto on desktop */
.pig-explorer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    height: 400px;
    overflow-y: auto;
}

.pig-explorer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid #f2f4f7;
    cursor: pointer;
    transition: background .15s;
    border-left: 3px solid transparent;
}

.pig-explorer-item:last-child {
    border-bottom: none;
}

.pig-explorer-item:hover {
    background: #f8fafc;
}

/* Active item: blue left border + light blue background */
.pig-explorer-item.active {
    background: #e1f5fe;
    border-left-color: #03a9f4;
}

.pig-explorer-item.active .pig-explorer-name {
    color: #0288d1;
    font-weight: 600;
}

/* Small rounded icon square */
.pig-explorer-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #e1f5fe;
    color: #03a9f4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.pig-explorer-name {
    font-size: 13px;
    font-weight: 500;
    color: #0f1f3d;
    flex: 1;
}

/* Right-hand detail panel — left border separates it from the list */
.pig-explorer-panel {
    border-left: 1px solid #e2e8f0;
    min-height: 200px;
}

/* Empty state — shown before the user selects an item */
.pig-explorer-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    color: #9ca3af;
    font-size: 13px;
    text-align: center;
}

.pig-explorer-empty i {
    font-size: 32px;
    margin-bottom: 10px;
    color: #d1d5db;
}


/* ═══════════════════════════════════════════════════════════════════════════
   10. BUTTONS & DROPDOWNS

   pig-dropdown-btn  — the "Actions ▾" trigger button on detail page headers.
   pig-choice-btn    — full-width choice button inside multi-step dialogs
                       (e.g. "Update phone" vs "Remove phone").
   #btn-add-config   — green "Add Feature" button (scoped to config tab).
   ═══════════════════════════════════════════════════════════════════════════ */

/* Admin actions dropdown trigger */
.pig-dropdown-btn {
    border-radius: 20px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    background: #fff;
    border: 1px solid #b8c9e4;
    color: #1e293b;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .07);
    transition: background .15s, box-shadow .15s;
}

.pig-dropdown-btn:hover,
.pig-dropdown-btn:focus {
    background: #e1f5fe;
    border-color: #03a9f4;
    color: #0288d1;
    box-shadow: 0 2px 10px rgba(99, 102, 241, .18);
    outline: none;
}

/* Admin actions dropdown menu item hover */
.pig-context-menu li > a:hover {
    background: #e1f5fe;
    color: #0288d1 !important;
}

.pig-context-menu li > a:hover i {
    color: #0288d1 !important;
}

/* Step-choice buttons in multi-step dialogs */
.pig-choice-btn {
    display: block;
    width: 100%;
    padding: 14px 10px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s;
    text-align: center;
}

.pig-choice-btn:hover {
    background: #e1f5fe;
    border-color: #03a9f4;
    color: #0288d1;
    box-shadow: 0 2px 8px rgba(99, 102, 241, .12);
}

/* Add Feature button — green pill with subtle shadow */
#btn-add-config {
    border-radius: 20px;
    padding: 8px 20px;
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(40, 167, 69, .25);
    border: none;
    letter-spacing: .2px;
}

#btn-add-config:hover {
    box-shadow: 0 4px 12px rgba(40, 167, 69, .35);
}


/* ═══════════════════════════════════════════════════════════════════════════
   11. EQUAL-HEIGHT ROWS
   Apply .pig-equal-height to a Bootstrap .row to make all cards in that row
   stretch to the same height on desktop. On mobile they stack normally.

   HTML:
     <div class="row pig-equal-height">
       <div class="col-sm-6"><div class="pig-card">...</div></div>
       <div class="col-sm-6"><div class="pig-card">...</div></div>
     </div>

   How it works: flex on the row + float:none + flex-direction:column on
   each column + flex:1 on the .pig-card inside makes all cards fill the
   tallest column's height.
   ═══════════════════════════════════════════════════════════════════════════ */

@media (min-width: 768px) {
    .pig-equal-height {
        display: flex;
    }

    .pig-equal-height > [class*="col-"] {
        float: none;
        display: flex;
        flex-direction: column;
    }

    .pig-equal-height > [class*="col-"] > .pig-card {
        flex: 1;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   12. RESPONSIVE — MOBILE  (max-width: 767px)
   Reduce font sizes, padding, and icon sizes for smaller screens.
   These rules are additive overrides of the base styles above.
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {

    /* Header */
    .pig-header {
        flex-wrap: wrap;
        padding: 12px 14px;
        gap: 10px;
    }

    .pig-header-name { font-size: 13px; }
    .pig-header-username { font-size: 11px; }

    #user-status-badge .pig-badge,
    #user-classification-badge .pig-badge {
        font-size: 9px;
        padding: 1px 7px;
    }

    .pig-header-inner { flex-wrap: wrap; }

    /* Field labels narrower on mobile */
    .pig-field-label {
        width: 100px;
        font-size: 11px;
    }

    /* Actions row wraps to its own line */
    .pig-header-actions {
        flex-basis: 100%;
        text-align: left;
    }

    .pig-header-actions .pig-dropdown-btn {
        font-size: 11px;
        padding: 4px 10px;
    }

    /* Tab actions */
    .pig-tab-actions .btn {
        font-size: 11px !important;
        padding: 4px 10px !important;
    }

    /* Info alert boxes in feature config partials */
    .pig-info-alert {
        font-size: 11px;
        padding: 6px 10px;
    }

    /* Feature detail save button - matches .pig-tab-actions .btn sizing */
    .pig-save-btn {
        padding: 4px 10px !important;
        font-size: 11px !important;
    }

    /* Segmented tabs — compact on mobile */
    .pig-tabs > .pig-tab > a {
        padding: 5px 9px !important;
        font-size: 10px !important;
    }

    .pig-tabs > .pig-tab > a i {
        font-size: 11px !important;
        margin-right: 4px !important;
    }

    /* Swap long/short tab labels on mobile */
    .pig-tab-full  { display: none; }
    .pig-tab-short { display: inline; }

    /* Cards */
    .pig-card-header { font-size: 11px; padding: 9px 14px; }
    .pig-card-header i { font-size: 13px; }

    /* Choice buttons */
    .pig-choice-btn { font-size: 12px; padding: 10px 8px; }

    /* Role tags */
    .pig-role-tag { font-size: 10px; padding: 2px 8px; }

    /* Feature explorer list items */
    .pig-explorer-item { padding: 10px 12px; gap: 8px; }
    .pig-explorer-icon { width: 28px; height: 28px; font-size: 13px; }
    .pig-explorer-name { font-size: 12px; }

    /* Explorer: single-column on mobile — list shows first, detail replaces it */
    .pig-explorer-panel {
        border-left: none;
        border-top: none;
        margin-top: 0;
        padding-top: 0;
    }

    .pig-explorer-col-list,
    .pig-explorer-col-detail {
        display: block;
        width: 100%;
        padding: 0;
    }

    .pig-explorer-col-detail { display: none; }

    /* Allow list to grow freely on mobile */
    .pig-explorer-list {
        height: auto;
        overflow-y: visible;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   13. RESPONSIVE — DESKTOP  (min-width: 768px)
   Feature Explorer: make list+detail columns fill the card height so the
   right panel scrolls independently from the left list.
   Height is set dynamically by resizeConfigPanel() in JS.
   ═══════════════════════════════════════════════════════════════════════════ */

@media (min-width: 768px) {
    /* Card height set via JS — enable overflow clipping */
    #config-content .pig-card {
        overflow: hidden;
    }

    /* Inner row fills the card height */
    #config-content .pig-card > .row {
        display: flex;
        height: 100%;
        margin: 0;
    }

    /* Both columns scroll independently instead of floating */
    .pig-explorer-col-list,
    .pig-explorer-col-detail {
        float: none;
        overflow-y: auto;
        height: 100%;
    }

    /* Unlock the list's fixed 400px cap so the column scroll handles it */
    .pig-explorer-col-list .pig-explorer-list {
        height: auto;
        overflow-y: visible;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   14. POPUP / DIALOG STYLES
   Custom overrides for the jQuery Confirm (.jconfirm) library and the
   JSON viewer used in the Registration Details popup.

   The popup is triggered with:
     $.confirm({ customClass: 'reg-details-popup', ... })

   The JSON viewer is initialised in the onOpen callback:
     $('#json-viewer-container').jsonViewer(parsed, { collapsed: false });
   ═══════════════════════════════════════════════════════════════════════════ */

/* Popup box — rounded, accent-bordered, elevated shadow */
.jconfirm.reg-details-popup .jconfirm-box {
    border-radius: 12px !important;
    border-top: 4px solid #03a9f4 !important;
    box-shadow: 0 8px 32px rgba(0,0,0,.14) !important;
    padding: 0 !important;
    overflow: hidden;
}

/* Title bar */
.jconfirm.reg-details-popup .jconfirm-title-c {
    background: #f5f8fc;
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #0f1f3d !important;
    text-align: center !important;
}

/* Content area */
.jconfirm.reg-details-popup .jconfirm-content-pane {
    padding: 16px 20px !important;
}

/* Button bar */
.jconfirm.reg-details-popup .jconfirm-buttons {
    background: #f5f8fc;
    border-top: 1px solid #e2e8f0;
    padding: 10px 16px !important;
}

/* JSON viewer — code block styling */
#json-viewer-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 16px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 13px;
    line-height: 1.6;
}

/* Color-code JSON token types to match the pig palette */
#json-viewer-container .json-string  { color: #0288d1; }
#json-viewer-container .json-key     { color: #0f1f3d; font-weight: 600; }
#json-viewer-container .json-boolean { color: #1e7e34; }
#json-viewer-container .json-null    { color: #9ca3af; }
#json-viewer-container .json-number  { color: #c5221f; }

/* Hide collapse toggles — viewer always shows fully expanded */
#json-viewer-container .json-toggle,
#json-viewer-container .json-placeholder { display: none !important; }

/* Popup close icon — slightly larger hit area for usability */
.jconfirm-close {
    font-size: 22px !important;
    width: 32px !important;
    height: 32px !important;
    line-height: 32px !important;
}


/* ═══════════════════════════════════════════════════════════════════════════
   15. FORM INPUTS
   Pig-styled text inputs, input+button rows, and custom checkboxes.
   These replace Bootstrap's default .form-control appearance with pig palette
   colors. Always add both "pig-input" and "form-control" to inputs so
   Bootstrap layout utilities (input-group, etc.) still work.

   HTML — basic field:
     <div class="pig-field-wrap">
       <label class="pig-input-label">Email</label>
       <input type="email" class="pig-input form-control" placeholder="..." />
       <span class="pig-input-error">Required</span>
     </div>

   HTML — input + adjacent button (e.g. password with show/hide):
     <div class="pig-input-row">
       <input type="password" class="pig-input form-control" />
       <button type="button" class="pig-input-addon-btn">
         <i class="fa fa-eye"></i>
       </button>
     </div>

   HTML — custom checkbox:
     <label class="pig-checkbox-wrap">
       <input type="checkbox" />
       <span class="pig-checkbox-label">Remember me</span>
     </label>
   ═══════════════════════════════════════════════════════════════════════════ */

/* Field wrapper — provides consistent bottom spacing */
.pig-field-wrap { margin-bottom: 14px; }

/* Label — uppercase micro-label style */
.pig-input-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 5px;
}

/* Base input — overrides Bootstrap .form-control defaults with pig palette.
   !important is used only where Bootstrap would otherwise win at equal specificity
   (height, border, border-radius, box-shadow, background on focus). */
.pig-input.form-control {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 9px 12px !important;
    border: 1px solid #b8c9e4 !important;
    border-radius: 8px !important;
    font-size: 13px;
    color: #0f1f3d;
    background: #fafbfd !important;
    height: auto !important;
    box-shadow: none !important;
    transition: border-color .15s, box-shadow .15s, background .15s;
    outline: none;
    box-sizing: border-box !important;
}

.pig-input.form-control:focus {
    border-color: #03a9f4 !important;
    box-shadow: 0 0 0 3px rgba(3,169,244,.1) !important;
    background: #fff !important;
}

/* Inline validation error */
.pig-input-error {
    font-size: 11px;
    color: #c5221f;
    margin-top: 3px;
    display: block;
}

/* Input + adjacent button row (e.g. password + show/hide toggle) */
.pig-input-row {
    display: flex;
    gap: 6px;
    align-items: stretch;
}

.pig-input-row .pig-input.form-control {
    flex: 1 1 0% !important;
    width: 0 !important;
    min-width: 0;
}

/* Button appended next to an input — resets Bootstrap button defaults */
.pig-input-addon-btn {
    flex-shrink: 0;
    display: flex !important;
    align-items: center;
    gap: 5px;
    padding: 0 12px !important;
    background: #f5f8fc !important;
    border: 1px solid #b8c9e4 !important;
    border-radius: 8px !important;
    font-size: 13px;
    color: #6b7280 !important;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, color .15s, border-color .15s;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
}

.pig-input-addon-btn:hover {
    background: #e9eef6 !important;
    border-color: #03a9f4 !important;
    color: #0f1f3d !important;
}

/* Custom checkbox — replaces browser default with pig-styled box + checkmark */
.pig-checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    user-select: none;
}

.pig-checkbox-wrap input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    flex-shrink: 0;
    width: 16px !important;
    height: 16px !important;
    border: 1.5px solid #b8c9e4 !important;
    border-radius: 4px !important;
    background: #fff !important;
    cursor: pointer;
    position: relative;
    transition: border-color .15s, background .15s;
    margin: 0 !important;
    box-shadow: none !important;
    display: inline-block;
}

.pig-checkbox-wrap input[type="checkbox"]:checked {
    background: #03a9f4 !important;
    border-color: #03a9f4 !important;
}

.pig-checkbox-wrap input[type="checkbox"]:checked::after {
    content: '';
    display: block;
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.pig-checkbox-label {
    font-size: 12px;
    color: #374151;
    font-weight: 500;
    line-height: 1;
}


/* ═══════════════════════════════════════════════════════════════════════════
   16. FOOTER
   Site-wide footer rendered in _Layout.cshtml. Dark navy background with a
   two-row layout: brand + contact on top, copyright + version badge on bottom.
   Fully responsive — stacks and centers on mobile.

   HTML structure:
     <footer class="pig-footer">
       <div class="pig-footer-inner">
         <div class="pig-footer-top">
           <div class="pig-footer-brand"> ... </div>
           <div class="pig-footer-contact"> ... </div>
         </div>
         <div class="pig-footer-divider"></div>
         <div class="pig-footer-bottom">
           <span class="pig-footer-copy"> ... </span>
           <span class="pig-footer-version"> ... </span>
         </div>
       </div>
     </footer>
   ═══════════════════════════════════════════════════════════════════════════ */

footer.pig-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13,71,161,.95);
    border-top: 3px solid #2196f3;
    padding: 0;
    width: 100%;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.pig-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px 20px;
}

/* ── Top row: brand left, contact right ── */
.pig-footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

.pig-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pig-footer-brand-name {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.2px;
    line-height: 1;
}

.pig-footer-brand-sub {
    font-size: 11px;
    color: rgba(255,255,255,.6);
    font-weight: 400;
    letter-spacing: .1px;
}

/* Contact block */
.pig-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: right;
}

.pig-footer-contact-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    font-size: 12px;
    color: rgba(255,255,255,.8);
}

.pig-footer-contact-row i {
    color: rgba(255,255,255,.6);
    font-size: 11px;
    flex-shrink: 0;
}

.pig-footer-contact-row a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(255,255,255,.4);
}

.pig-footer-contact-row a:hover {
    text-decoration-color: #fff;
}

/* ── Divider ── */
.pig-footer-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,.15);
    margin: 8px 0;
}

/* ── Bottom row: copyright left, version right ── */
.pig-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pig-footer-copy {
    font-size: 13px;
    font-weight: 600;
    color: #6c757d;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.pig-footer-version {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    border: 1px solid #b8c9e4;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .3px;
    background: #f1f3f4;
    color: #6c757d;
    white-space: nowrap;
}

footer p {
    font-size: 10px;
    color: #6b7280;
    font-weight: 500;
    letter-spacing: .3px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.pig-footer-copy-short { display: none; }

/* ── Mobile: stack and center everything ── */
@media (max-width: 767px) {
    footer { right: 0; }
    .pig-footer-copy-short { display: inline; }
    .pig-footer-copy-long  { display: none; }
    .pig-footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .pig-footer-brand { align-items: center; }

    .pig-footer-contact {
        align-items: center;
        text-align: center;
    }

    .pig-footer-contact-row { justify-content: center; }

    .pig-footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
}

/* ─────────────────────────────────────────────
   17. ag-grid mobile card view
   AgGridMobileHelper toggles ag-mobile-active on the
   grid element when the viewport drops below the
   breakpoint. The header is hidden and every row
   becomes a full-width Bootstrap-Table-style card.
───────────────────────────────────────────── */

/* Hide the column header row in mobile mode. */
.ag-mobile-active .ag-header {
    display: none !important;
}

/* Outer card — fills the full-width cell ag-grid provides.
   white-space: normal overrides the nowrap ag-grid sets on all cells.
   border-top gives a strong visual break between cards. */
.ag-mobile-card {
    padding: 4px 14px 2px;
    width: 100%;
    box-sizing: border-box;
    white-space: normal;
    border-top: 2px solid #b8c9e4;
}

/* One row per column: label on the left, value on the right (inline by default). */
.ag-mobile-card-row {
    display: flex;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #f0f4f8;
}

.ag-mobile-card-row:last-child {
    border-bottom: none;
}

/* Stacked variant: label on its own line, value full-width below.
   Used for long-text fields like Message. */
.ag-mobile-card-row--stacked {
    flex-direction: column;
    align-items: flex-start;
    padding: 6px 0;
}

/* Column name — matches the pig design system header style. */
.ag-mobile-card-title {
    flex: 0 0 90px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6b7280;
    padding-right: 8px;
    line-height: 1.3;
}

/* Stacked title spans the full width. */
.ag-mobile-card-row--stacked .ag-mobile-card-title {
    flex: none;
    width: 100%;
    margin-bottom: 3px;
    padding-right: 0;
}

/* Cell value — fills the remaining width for inline rows. */
.ag-mobile-card-value {
    flex: 1;
    font-size: 13px;
    color: #374151;
    text-align: right;
    word-break: break-word;
    line-height: 1.4;
}

/* Action buttons row at the bottom of a mobile card - no label, just a button strip. */
.ag-mobile-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px 0 0;
    border-top: 1px solid #f0f4f8;
    margin-top: 2px;
}

/* Checkbox row at the top of a mobile card — mirrors the ag-grid checkboxSelection column
   that is bypassed in full-width cell mode. */
.ag-mobile-card-checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 6px;
    margin-bottom: 2px;
    border-bottom: 1px solid #f0f4f8;
}

.ag-mobile-card-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #03a9f4;
    flex-shrink: 0;
}

.ag-mobile-card-checkbox-label {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Clickable card values render as inline hyperlinks matching the desktop cell style. */
.ag-mobile-card-link {
    color: #0288d1;
    text-decoration: underline;
    cursor: pointer;
}

/* Stacked value is full-width and left-aligned — used for long-text fields like Message. */
.ag-mobile-card-row--stacked .ag-mobile-card-value {
    flex: none;
    width: 100%;
    text-align: left;
    color: #374151;
}

/* ============================================================
   Section 18: User Details ag-grid theme
   Shared overrides for activity and notification history grids.
   Both grids use the same pig design system colors so selectors
   are combined to avoid duplication.
   ============================================================ */

#activity-grid.ag-theme-alpine .ag-header,
#notification-history-grid.ag-theme-alpine .ag-header {
    background: #f3f4f6;
    border-bottom: 1px solid #b8c9e4;
}

#activity-grid.ag-theme-alpine .ag-header-cell-text,
#notification-history-grid.ag-theme-alpine .ag-header-cell-text {
    color: #0f1f3d;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* Body cell text - consistent across both grids. */
#activity-grid.ag-theme-alpine .ag-cell,
#notification-history-grid.ag-theme-alpine .ag-cell {
    color: #374151;
    font-size: 13px;
    font-family: inherit;
}

#activity-grid.ag-theme-alpine .ag-row,
#notification-history-grid.ag-theme-alpine .ag-row {
    border-bottom-color: #e2e8f0;
}

#activity-grid.ag-theme-alpine .ag-row-even,
#notification-history-grid.ag-theme-alpine .ag-row-even {
    background: #fff;
}

#activity-grid.ag-theme-alpine .ag-row-odd,
#notification-history-grid.ag-theme-alpine .ag-row-odd {
    background: #f9fafc;
}

#activity-grid.ag-theme-alpine .ag-row:hover,
#notification-history-grid.ag-theme-alpine .ag-row:hover {
    background: #e1f5fe !important;
}

#activity-grid.ag-theme-alpine .ag-paging-panel,
#notification-history-grid.ag-theme-alpine .ag-paging-panel {
    background: #f3f4f6;
    border-top: 1px solid #b8c9e4;
    color: #374151;
    font-size: 12px;
    height: 40px;
}

#activity-grid.ag-theme-alpine span[ref="lbCurrent"],
#activity-grid.ag-theme-alpine span[ref="lbTotal"],
#notification-history-grid.ag-theme-alpine span[ref="lbCurrent"],
#notification-history-grid.ag-theme-alpine span[ref="lbTotal"] {
    color: #0288d1;
    font-weight: 600;
}

#activity-grid.ag-theme-alpine .ag-paging-button,
#notification-history-grid.ag-theme-alpine .ag-paging-button {
    color: #0288d1;
}

#activity-grid.ag-theme-alpine .ag-paging-button[disabled],
#notification-history-grid.ag-theme-alpine .ag-paging-button[disabled] {
    color: #b8c9e4;
}

#activity-grid.ag-theme-alpine .ag-tool-panel-wrapper,
#notification-history-grid.ag-theme-alpine .ag-tool-panel-wrapper {
    background: #f3f4f6;
    border-left: 1px solid #b8c9e4;
}

/* Notification message cell - rendered as a link to open the message preview popup.
   !important needed to beat the higher-specificity .ag-cell color rule above. */
#notification-history-grid .notif-message-cell {
    cursor: pointer;
    color: #0288d1 !important;
    text-decoration: underline;
}

/* ============================================================
   Section 19: Claims Queue ag-grid theme
   Shared overrides for pending, completed, and denied grids.
   ============================================================ */

#claims-pending-grid.ag-theme-alpine .ag-header,
#claims-completed-grid.ag-theme-alpine .ag-header,
#claims-denied-grid.ag-theme-alpine .ag-header {
    background: #f3f4f6;
    border-bottom: 1px solid #b8c9e4;
}

#claims-pending-grid.ag-theme-alpine .ag-header-cell-text,
#claims-completed-grid.ag-theme-alpine .ag-header-cell-text,
#claims-denied-grid.ag-theme-alpine .ag-header-cell-text {
    color: #0f1f3d;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

#claims-pending-grid.ag-theme-alpine .ag-cell,
#claims-completed-grid.ag-theme-alpine .ag-cell,
#claims-denied-grid.ag-theme-alpine .ag-cell {
    color: #374151;
    font-size: 13px;
    font-family: inherit;
}

#claims-pending-grid.ag-theme-alpine .ag-row,
#claims-completed-grid.ag-theme-alpine .ag-row,
#claims-denied-grid.ag-theme-alpine .ag-row {
    border-bottom-color: #e2e8f0;
}

#claims-pending-grid.ag-theme-alpine .ag-row-even,
#claims-completed-grid.ag-theme-alpine .ag-row-even,
#claims-denied-grid.ag-theme-alpine .ag-row-even {
    background: #fff;
}

#claims-pending-grid.ag-theme-alpine .ag-row-odd,
#claims-completed-grid.ag-theme-alpine .ag-row-odd,
#claims-denied-grid.ag-theme-alpine .ag-row-odd {
    background: #f9fafc;
}

#claims-pending-grid.ag-theme-alpine .ag-row:hover,
#claims-completed-grid.ag-theme-alpine .ag-row:hover,
#claims-denied-grid.ag-theme-alpine .ag-row:hover {
    background: #e1f5fe !important;
}

#claims-pending-grid.ag-theme-alpine .ag-paging-panel,
#claims-completed-grid.ag-theme-alpine .ag-paging-panel,
#claims-denied-grid.ag-theme-alpine .ag-paging-panel {
    background: #f3f4f6;
    border-top: 1px solid #b8c9e4;
    color: #374151;
    font-size: 12px;
    height: 40px;
}

#claims-pending-grid.ag-theme-alpine span[ref="lbCurrent"],
#claims-pending-grid.ag-theme-alpine span[ref="lbTotal"],
#claims-completed-grid.ag-theme-alpine span[ref="lbCurrent"],
#claims-completed-grid.ag-theme-alpine span[ref="lbTotal"],
#claims-denied-grid.ag-theme-alpine span[ref="lbCurrent"],
#claims-denied-grid.ag-theme-alpine span[ref="lbTotal"] {
    color: #0288d1;
    font-weight: 600;
}

#claims-pending-grid.ag-theme-alpine .ag-paging-button,
#claims-completed-grid.ag-theme-alpine .ag-paging-button,
#claims-denied-grid.ag-theme-alpine .ag-paging-button {
    color: #0288d1;
}

#claims-pending-grid.ag-theme-alpine .ag-paging-button[disabled],
#claims-completed-grid.ag-theme-alpine .ag-paging-button[disabled],
#claims-denied-grid.ag-theme-alpine .ag-paging-button[disabled] {
    color: #b8c9e4;
}

/* ============================================================
   Section 20: pig-action-btn
   Reusable icon+label button used across the app. On mobile the
   pig-action-btn-label span is hidden so only the icon shows.
   Color variants (--success, --danger) swap the icon/hover tint.
   ============================================================ */

.pig-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    cursor: pointer;
    transition: background .12s, border-color .12s, color .12s;
    white-space: nowrap;
    text-decoration: none;
}

.pig-action-btn i { color: #03a9f4; font-size: 12px; }

.pig-action-btn:hover {
    background: #e1f5fe;
    border-color: #03a9f4;
    color: #0288d1;
    text-decoration: none;
}

.pig-action-btn:hover i { color: #0288d1; }

/* Green variant — Bulk Approve, New Claim. */
.pig-action-btn--success i { color: #4caf50; }
.pig-action-btn--success:hover { background: #f1f8e9; border-color: #4caf50; color: #388e3c; }
.pig-action-btn--success:hover i { color: #388e3c; }

/* Red variant — Bulk Deny, Reset. */
.pig-action-btn--danger i { color: #ef5350; }
.pig-action-btn--danger:hover { background: #ffebee; border-color: #ef5350; color: #c62828; }
.pig-action-btn--danger:hover i { color: #c62828; }

@media (max-width: 767px) {
    .pig-action-btn-label { display: none; }
    .pig-save-btn { padding: 4px 10px !important; font-size: 11px !important; }
}

/* ============================================================
   Section 21: claims-toolbar
   Three direct children: claims-toolbar-left (bulk actions),
   claims-toolbar-bookmarks (bookmark select + save), and
   claims-toolbar-utilities (Invoice Total, Refresh, Excel, Reset).

   Desktop: left | ........ bookmarks | utilities
   Mobile row 1: left (bulk) ......... utilities (grid filters)
   Mobile row 2: bookmarks (full width)

   The bulk label stays visible on all breakpoints. "Bulk Move"
   shortens to "Bulk" via pig-tab-full/pig-tab-short on mobile.
   ============================================================ */

.claims-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 6px;
}

.claims-toolbar-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* Bookmarks pushed to the right; utilities follow immediately with a pipe. */
.claims-toolbar-bookmarks {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.claims-toolbar-utilities {
    display: flex;
    align-items: center;
    gap: 6px;
    border-left: 1px solid #e2e8f0;
    padding-left: 10px;
}

/* Bulk label — visible on all breakpoints so icon-only buttons have context. */
.claims-toolbar-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
}

@media (max-width: 767px) {
    /* Row 1: bookmarks full-width across the top. */
    .claims-toolbar-bookmarks { order: 1; flex: 0 0 100%; margin-left: 0; padding-bottom: 6px; border-bottom: 1px solid #e2e8f0; box-sizing: border-box; }
    /* Select2 replaces the native <select> with its own container div that gets
       width:250px stamped inline. Target that container instead of the hidden select. */
    .claims-toolbar-bookmarks .select2-container { flex-grow: 1 !important; flex-shrink: 1 !important; flex-basis: 0% !important; min-width: 0 !important; width: auto !important; }
    /* Save button never shrinks. */
    .claims-toolbar-bookmarks .pig-action-btn { flex-shrink: 0; }
    /* Row 2: bulk left, grid filter buttons pushed to the far right. */
    .claims-toolbar-left      { order: 2; }
    .claims-toolbar-utilities { order: 3; margin-left: auto; border-left: none; padding-left: 0; }
    .claims-toolbar-label { font-size: 11px; }
    /* Extra breathing room between the label/icon and the first action button so the icon is not accidentally tapped. */
    .claims-toolbar-label + .pig-action-btn { margin-left: 8px; }
}

/* ============================================================
   Section 22: claims-support-info
   Styled wrapper for the _SupportInfo partial used on the claims
   queue page. Only applied here — the partial itself is unchanged.
   Overrides the partial's oversized inline font styles and wraps
   the content in a pig-style info chip.
   ============================================================ */

.claims-support-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e1f5fe;
    border: 1px solid #b3e5fc;
    border-radius: 6px;
    padding: 5px 12px;
    color: #0277bd;
    flex: 1;
    min-width: 0;
}

.claims-support-info i {
    color: #03a9f4;
    font-size: 13px;
    flex-shrink: 0;
}

/* Override the partial's inline font-size: 20px / font-weight: bold on the <p>. */
.claims-support-info p {
    margin: 0;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: inherit;
}

@media (min-width: 768px) {
    .claims-support-info { justify-content: center; }
    .claims-support-info p { font-size: 18px !important; text-align: center; }
    .claims-new-claim-btn { font-size: 18px; padding: 7px 16px; }
    .claims-new-claim-btn i { font-size: 16px; }
}

@media (max-width: 767px) {
    /* Let the phone number wrap on very small screens. */
    .claims-support-info p { white-space: normal; }
}

/* ============================================================
   Section 23: pig-modal
   Drop-in modifier for Bootstrap modals. Add pig-modal to the
   .modal element to get the pig design system look: clean header,
   subtle shadow, rounded corners, pig-action-btn footer.
   ============================================================ */

.pig-modal .modal-content {
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    border: none;
}

.pig-modal .modal-header {
    background: #f8fafc;
    border-bottom: 1px solid #e8edf2;
    border-radius: 8px 8px 0 0;
    padding: 14px 18px;
}

.pig-modal .modal-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

.pig-modal .modal-body {
    padding: 18px;
    background: #fff;
}

/* Form field labels in the modal body — small caps to match pig field style. */
.pig-modal .modal-body .form-group label {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.pig-modal .modal-body .form-control {
    border-radius: 6px;
    border-color: #d1d5db;
    font-size: 13px;
}

.pig-modal .modal-footer {
    border-top: 1px solid #e8edf2;
    padding: 12px 18px;
    background: #f8fafc;
    border-radius: 0 0 8px 8px;
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}
