/* =============================================================================
   StyleSheetResp.css
   -----------------------------------------------------------------------------
   Consolidated responsive stylesheet for the requisition module.

   Replaces the inline <style> blocks that previously lived inside each
   .aspx / .ascx page. All component classes (.section-card, .section-title,
   .screen-header, .cart-summary, .action-bar, .info-callout, .summary-grid,
   .itm-badge, .badge-*, .itk-badge, .history-wrap, .attach-link, .attach-list,
   .sub-section, .sub-title, .field-label, .field-value, .field-row,
   .kv-table, .info-card, .cs-legend-bar, .req-star, .mandatory-legend,
   .page-title, .help-bar, .msg-wrap, etc.) are defined here ONCE so that
   visually identical components share a single source of truth.

   The file is organised as:
     1. Page wrappers   - shared baseline for .*-page / .*-dialog wrappers
     2. Shared components - unscoped, reusable across pages
     3. Page-specific layout - rules unique to one page, kept under that
                              page's wrapper class
     4. Shared responsive breakpoints
   ============================================================================= */


/* =============================================================================
   1. PAGE WRAPPERS
   -----------------------------------------------------------------------------
   The non-popup pages all share the same outer-shell rules (max-width 1200,
   centered, Segoe UI, dark text, padding). Define them once via a grouped
   selector instead of repeating the body 8 times.
   ============================================================================= */

.cart-details-page,
.item-details-page,
.req-account-page,
.req-approver-page,
.bts-page,
.req-details-page,
.req-review-page,
.req-submit-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 16px 32px;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
    color: #1f2937;
    box-sizing: border-box;
}
.cart-details-page *,        .cart-details-page *::before,        .cart-details-page *::after,
.item-details-page *,        .item-details-page *::before,        .item-details-page *::after,
.req-account-page *,         .req-account-page *::before,         .req-account-page *::after,
.req-approver-page *,        .req-approver-page *::before,        .req-approver-page *::after,
.bts-page *,                 .bts-page *::before,                 .bts-page *::after,
.req-details-page *,         .req-details-page *::before,         .req-details-page *::after,
.req-review-page *,          .req-review-page *::before,          .req-review-page *::after,
.req-submit-page *,          .req-submit-page *::before,          .req-submit-page *::after {
    box-sizing: inherit;
}

/* CartDetails padding override (was 0 16px) - kept here for parity */
.cart-details-page { padding: 0 16px; }

/* ItemDetails has its own page-section wrapper used inside the page */
.page-section { max-width: 1200px; margin: 0 auto 18px; padding: 0 16px; }

/* Popup wrappers (Attach.aspx, ReqApproverLog.aspx) share the same typography
   but use narrower max-widths and tighter padding suited to a RadWindow. */
.attach-dialog,
.req-approver-log {
    margin: 0 auto;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
    color: #1f2937;
    box-sizing: border-box;
}
.attach-dialog *, .attach-dialog *::before, .attach-dialog *::after,
.req-approver-log *, .req-approver-log *::before, .req-approver-log *::after { box-sizing: inherit; }
.attach-dialog     { padding: 14px 18px 24px; }
.req-approver-log  { max-width: 750px; padding: 8px 20px 20px; color: #333; }
/*No Records Exist message should be displayed like bannerAlert*/
.rgNoRecords { 
    background: #fff8e1;
    border: 1px solid #f0d77a;
    border-left: 4px solid #f0a500;
    border-radius: 4px;
    padding: 10px 14px;
    margin: 0 0 14px 0;
    color: #6b4f00;
}
/* ReqHeaderInfo / ReqItemInfo user controls - shared baseline */
.req-header-info,
.req-item-info {
    max-width: 1200px;
    margin: 0 auto 14px;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
    color: #1f2937;
    box-sizing: border-box;
}
.req-header-info *, .req-header-info *::before, .req-header-info *::after,
.req-item-info *,   .req-item-info *::before,   .req-item-info *::after { box-sizing: inherit; }


/* =============================================================================
   2. SHARED COMPONENTS  (used across multiple pages)
   ============================================================================= */

/* ---------- 2.1 Section card / title -------------------------------------- */
.section-card {
    background: #fff;
    border: 1px solid #e3e6ea;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    padding: 16px 20px;
    margin: 0 0 14px;
    max-width: 1200px;
}

.section-card-color {
    background: #f5f7fb;
    border: 1px solid #e3e6ea;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    padding: 16px 20px;
    margin: 0 0 14px;
    max-width: 1200px;
}
.section-title {
    font-size: 13px;
    font-weight: 600;
    /*color: #6b7280;*/
    color: #0773b5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eef0f3;
}
.section-title .title-extra {
    text-transform: none;
    font-weight: 500;
    color: #c53030;
    margin-left: 8px;
    font-size: 12px;
}

/* Sub-section block inside a section-card */
.sub-section { margin-top: 18px; }
.sub-section:first-child { margin-top: 0; }
.sub-title {
    font-size: 12px;
    font-weight: 600;
    color: #0773b5;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin: 0 0 8px;
}

/* ---------- 2.2 Screen header / cart summary / page title/ form  label----------------- */
.screen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 0 12px;
    border-bottom: 1px solid #eef0f3;
    margin-bottom: 14px;
}
.screen-header .page-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}
.screen-header .header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cart-summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eef4fb;
    border: 1px solid #c7d8ec;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: #1f4e7a;
}
.cart-summary img { vertical-align: middle; }



/* Help bar (instructions row + mandatory legend) */
.help-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}
.help-bar .help-text {
    background: #f5f7fb;
    border: 1px solid #dde3ec;
    border-left: 4px solid #0773b5;
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 13px;
    color: #333;
    flex: 1;
    min-width: 260px;
}

/* Server-side message banner (aprMsg-style label wrapper) */
.msg-wrap {
    text-align: center;
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.5;
}
.msg-wrap:empty { margin: 0; }

/* ---------- 2.3 Action bar (Back / Next / Submit) ------------------------- */
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 0 4px;
    margin-top: 14px;
    border-top: 1px solid #eef0f3;
}
.action-bar .spacer { flex: 1; }
.action-bar .right-group,
.action-bar .next-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Sticky primary-actions variant (used by CartDetails) */
/*.action-bar.primary-actions {
    position: sticky;
    bottom: 0;
    background: #fff;
    border-top: 2px solid #d6dbe1;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.05);
    padding: 14px 12px;
    margin: 16px -12px 0 -12px;
    z-index: 10;
}*/

/* "Actions panel" variant used by ReqDetails (centred, boxed) */
.action-bar.actions-panel {
    justify-content: center;
    background: #fafbfc;
    border: 1px solid #e3e6ea;
    border-radius: 6px;
    padding: 12px 14px;
    margin: 0 0 14px;
    border-top: 1px solid #e3e6ea;  /* re-state to override the default */
}
.action-bar.bottom-back {
    justify-content: flex-start;
    background: transparent;
    border: none;
    padding: 14px 0 0;
    margin-top: 10px;
    border-top: 1px solid #eef0f3;
}

/* ---------- 2.4 Info callouts (banner messages) --------------------------- */
/*.info-callout {
    background: #f5f7fb;
    border: 1px solid #dde3ec;
    border-left: 4px solid #0773b5;
    border-radius: 4px;
    padding: 10px 14px;
    margin: 0 0 14px;
    font-size: 13px;
    color: #333;
}
.info-callout.callout-error {
    background: #fcebec;
    border-color: #f3c1c5;
    border-left-color: #a52830;
    color: #791F1F;
}
.info-callout.callout-success {
    background: #eaf3de;
    border-color: #c0dd97;
    border-left-color: #4a7d1f;
    color: #27500A;
}
.info-callout.callout-warning {
    background: #fff8e1;
    border: 1px solid #f0d77a;
    border-left: 4px solid #f0a500;
    color: #6b4f00;
}*/

/* ---------- 2.5 Summary grid (label/value pairs) -------------------------- */
.summary-grid {
    display: grid;
    grid-template-columns: minmax(110px, 180px) minmax(0, 1fr) minmax(110px, 180px) minmax(0, 1fr);
    gap: 8px 14px;
    align-items: start;
}
.summary-grid > div[id],
.summary-grid .row-group { display: contents; }
    .summary-grid .lbl {
    font-size: 13px;
    font-weight: 500;
    /*color: #4b5563;*/
    color: #1f2937;
    padding-top: 2px;
    line-height: 1.4;
    }
.summary-grid .val {
    font-size: 13px;
    color: #1f2937;
    padding-bottom: 4px;
    /*border-bottom: 1px dashed #eef0f3;*/
    word-break: break-word;
}
.summary-grid .val.highlight {
    font-weight: 600;
    color: #0773b5;
}
.summary-grid .val .RadComboBox,
.summary-grid .val .rcbReadOnly { max-width: 100% !important; }
.summary-grid .val img { vertical-align: middle; margin-left: 4px; }

/* ---------- 2.6 Form grid / field-row label-on-left ----------------------- */
.form-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 10px;
    align-items: start;
    padding: 4px 0;
    /*border-bottom: 1px solid #eef0f3;*/
}

/*.form-label {
    font-weight: 600;
    color: #1f2937;
    padding-top: 6px;
}*/
/* Mandatory legend, required-field marker (red star) */
.mandatory-legend {
    font-size: 13px;
    /*color: #6b7280;*/
    color: #d86917;
    white-space: nowrap;
}

.mandatory-legend .req-star {
    color: #d86917;
    font-weight: 700;
}

.req-star {
    color: #d86917;
    margin-left: 2px;
}

.required-marker {
    color: #d86917;
    margin-left: 2px;
}

.form-grid {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) 180px minmax(0, 1fr);
    gap: 1px 14px;
    align-items: start;
}
.form-grid .full-row { grid-column: 1 / -1; }

.field-label {
    font-size: 13px;
    font-weight: 500;
    color: #1f2937;
    padding-top: 6px;
    bottom: 4px;
    line-height: 1.4;
}
.field-label .req-star { color: #c53030; margin-left: 2px; }
.field-value {
    font-size: 13px;
    color: #1f2937;
    min-width: 0;
    padding-top: 6px;
    bottom: 4px;
}
.field-value.highlight {
    font-weight: 600;
    color: #0773b5;
}
.field-value .RadComboBox,
.field-value .rcbInputCell,
.field-value .rcbReadOnly {
    max-width: 100% !important;
    height: 20px;
}
.field-value input.RadInput,
.field-value .riSingle,
.field-value input[type="text"] {
    max-width: 100%;
    height: 22px;
}

.field-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 8px 14px;
    padding: 4px 0;
    align-items: baseline;
    /*border-bottom: 1px dashed #f0f2f5;*/
}
.field-row:last-child { border-bottom: none; }
    .field-row .field-label {
        color: #1f2937;
        font-weight: 500;
        font-size: 13px;
        padding-top: 0;
    }
.field-row .field-value {
    color: #1f2937;
    font-size: 13px;
    word-wrap: break-word;
}
.field-row .field-value.strong { font-weight: 600; }

/* Generic info-grid (label/value 2-column) */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.info-grid .info-item {
    display: grid;
    grid-template-columns: 130px 1fr;
    align-items: baseline;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px dashed #eef0f3;
}
.info-grid .info-item .info-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.summary-card {
    background: #fff;
    border: 1px solid #e3e6ea;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    padding: 14px 18px;
    margin: 0 0 14px;
}

.addr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.addr-card {
    background: #fff;
    border: 1px solid #e3e6ea;
    border-radius: 6px;
    padding: 16px 18px;
}

.addr-lines {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 6px 12px;
    margin-top: 10px;
    font-size: 13px;
}

.addr-lines .addr-label {
    color: #1f2937;
    font-weight: 500;
}

.addr-lines .addr-value {
    color: #1f2937;
    word-break: break-word;
}
/* ---------- Requisitioner details (contact info) ---------- */
.requis-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px 14px;
}

.requis-form .field {
    display: grid;
    grid-template-columns: 110px 1fr;
    align-items: center;
    gap: 5px;
    padding: 5px 0;
}

.requis-form .field label {
    font-size: 13px;
    color: #1f2937;
    font-weight: 500;
}

.requis-form .field-actions {
    grid-column: 1 / -1;
    text-align: right;
    padding: 1px 0;
}
/* ---------- 2.7 Item-flag badges (.itm-badge family) ---------------------- */
.itm-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 10px;
    line-height: 1;
    white-space: nowrap;
}
.itm-badge img { width: 12px; height: 12px; vertical-align: middle; }

.badge-strategic { background: #E6F1FB; color: #0C447C; border: 1px solid #B5D4F4; }
.badge-green     { background: #EAF3DE; color: #27500A; border: 1px solid #C0DD97; }
.badge-freight   { background: #FAEEDA; color: #633806; border: 1px solid #FAC775; }
.badge-standard  { background: #F1EFE8; color: #444441; border: 1px solid #D3D1C7; }
.badge-storeroom { background: #FBEAF0; color: #72243E; border: 1px solid #F4C0D1; }
.badge-shipping  { background: #FCEBEB; color: #791F1F; border: 1px solid #F7C1C1; }
.badge-customer  { background: #EEEDFE; color: #3C3489; border: 1px solid #CECBF6; }

/* Auto-hide badges whose inner asp:Image was Visible="false" (no <img> rendered) */
.badges-row .itm-badge:not(:has(img)),
.badges-stack .itm-badge:not(:has(img)) { display: none; }

.badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}
.badges-row .itm-badge { font-size: 12px; padding: 4px 10px; }
.badges-row .itm-badge img { width: 14px; height: 14px; }

.badges-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
}
.badges-stack .itm-badge { font-size: 10px; padding: 2px 6px; width: fit-content; }
.badges-stack .itm-badge img { width: 10px; height: 10px; }

/* ---------- 2.8 Item-type indicator pill (.itk-badge) --------------------- */
.itk-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    min-width: 28px;
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    vertical-align: middle;
}
.itk-badge:empty {
    width: 14px;
    height: 14px;
    padding: 0;
    border-radius: 50%;
}

/* ---------- 2.9 Legend bar (used by CatalogSearch / ItemDetails) ---------- */
.cs-legend-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    padding: 10px 14px;
    background: #f5f7fb;
    border: 1px solid #dde3ec;
    border-radius: 8px;
    font-size: 12px;
    color: #555;
    margin-top: 14px;
}
.cs-legend-title { font-weight: 600; color: #333; margin-right: 4px; }
.cs-legend-item  { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.cs-legend-bar img,
.cs-legend-item img {
    display: inline-block !important;
    float: none !important;
    margin: 0 !important;
    vertical-align: middle;
    width: 14px;
    height: 14px;
}
.cs-legend-item span,
.cs-legend-item label { display: inline; }

/* ---------- 2.10 Attach link / attach list / history wrap ----------------- */
.attach-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #eef4fb;
    border: 1px solid #c7d8ec;
    border-radius: 4px;
    color: #1f4e7a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.15s ease;
}
.attach-link:hover { background: #dceaf7; text-decoration: none; }
.attach-link img { vertical-align: middle; border: 0; }

.attach-list { margin-top: 10px; }
.attach-list table {
    width: 100% !important;
    border-collapse: collapse;
}
.attach-list td {
    padding: 6px 8px;
    font-size: 13px;
    border-bottom: 1px solid #eef0f3;
    background: transparent !important;
}
.attach-list tr:last-child td { border-bottom: none; }
.attach-list td:first-child {
    font-weight: 500;
    color: #1f2937;
    width: 100px;
    white-space: nowrap;
}
.attach-empty {
    font-size: 13px;
    color: #6b7280;
    font-style: italic;
    padding: 4px 0;
}

.history-wrap {
    margin-top: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e3e6ea;
    border-radius: 6px;
}
.history-wrap > table {
    width: 100% !important;
    border-collapse: collapse;
    min-width: 640px;
    margin: 0 !important;
    background: transparent !important;
}
.history-wrap > table > tbody > tr:first-child td,
.history-wrap > table > tr:first-child td {
    background: #fafbfc !important;
    border-bottom: 2px solid #e3e6ea;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #1f2937;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.history-wrap > table td {
    padding: 8px 12px;
    font-size: 13px;
    background: transparent !important;
    border-top: 1px solid #eef0f3;
}
.history-wrap > table tr.white td {
    color: #1f2937;
    font-style: italic;
    padding-left: 18px;
    border-top: none;
    border-bottom: 1px solid #e3e6ea;
    background: #fbfcfd !important;
    white-space: pre-wrap;
}
.history-wrap > table tr.txtTblRowAlt td {
   /* font-weight: 500;*/
    color: #1f2937;
}

/* Comments textbox area (ReqDetails / ReqReview) */
.comments-area { margin-top: 4px; }
.comments-area textarea,
.comments-area .RadInput {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
}
.comments-help {
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
    line-height: 1.4;
}
.comments-help b { color: #1f2937; }

/* ---------- 2.11 Submit/loading overlay ----------------------------------- */
.req-page-loading,
.req-details-page-loading,
.req-review-page-loading {
    position: fixed;
    inset: 0;
    background: rgba(31, 41, 55, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}
.req-page-loading .loading-card,
.req-details-page-loading .loading-card,
.req-review-page-loading .loading-card {
    background: #fff;
    border-radius: 8px;
    padding: 28px 36px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    max-width: 90vw;
}
.req-page-loading .loading-card .loading-msg,
.req-details-page-loading .loading-card .loading-msg,
.req-review-page-loading .loading-card .loading-msg {
    font-size: 16px;
    font-weight: 600;
    color: #0773b5;
    margin-bottom: 16px;
}
.req-page-loading .loading-card img,
.req-details-page-loading .loading-card img,
.req-review-page-loading .loading-card img { display: block; margin: 0 auto; }

/* ---------- 2.12 Grid scroll wrap & generic grid-wrap --------------------- */
.grid-scroll-wrap {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e3e6ea;
    border-radius: 6px;
    background: #fff;
    margin: 8px 0;
}
.grid-wrap {
    border-radius: 6px;
    border: 1px solid #e3e6ea;
    background: #fff;
}
.grid-wrap table img[id*="item_Img"] {
    border-radius: 4px;
    border: 1px solid #eef0f3;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.grid-wrap table img[id*="item_Img"]:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ---------- 2.13 KV table inside info-card -------------------------------- */
.info-card {
    background: #f5f7fb;
    border: 1px solid #e3e6ea;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    padding: 14px 18px;
}


.info-card .card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eef0f3;
}
.info-card .card-title {
    font-size: 13px;
    font-weight: 600;
    color: #0773b5;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin: 0;
}
.info-card .card-edit { display: inline-flex; align-items: center; }
.info-card .card-edit img {
    vertical-align: middle;
    opacity: 0.75;
    transition: opacity 0.15s ease;
}
.info-card .card-edit:hover img { opacity: 1; }

.kv-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.kv-table td {
    padding: 4px 8px 4px 0;
    vertical-align: top;
    background: transparent !important;
    border: 0 !important;
    min-width: 0;
}
.kv-table td:first-child {
    font-size: 13px;
    font-weight: 500;
    color: #1f2937;
    white-space: nowrap;
    width: 35%;
}
.kv-table td:last-child {
    font-size: 13px;
    color: #1f2937;
    word-break: break-word;
}
.info-card.addr-card .kv-table td:first-child {
    color: #1f2937;
}

/* ---------- 2.14 Catalog typography & overrides --------------------------- */
b { font-weight: 600; }

.item-desc { font-size: 12pt; color: #0773b5; font-family: "Segoe UI"; }
.txtNormal { font-size: 10pt; color: #000000; font-family: "Segoe UI"; }
.rollItem { font-size: 14px; color: #0773b5; text-decoration: none; font-weight: 600; line-height: 1.4; }
a.rollItem:hover { color: #d86917; text-decoration: none; }

/* Telerik combo height override */
.height30 .rcbInner       { margin-top: -4px; padding: 1px !important; }
.height30 .rcbInput       { height: 25px !important; padding: 0 3px !important; }
.height30 .rcbActionButton{ padding: 4px 0 3px 6px !important; }

/* RadUpload fake input sizing */
.RadUpload .ruFakeInput { height: 18px !important; width: 300px !important; }

/* Image / thumbnail wrappers (CatalogSearch result tiles) */
.imageWrapper {
    font: 13px "Segoe UI", Arial, sans-serif;
    color: #666;
    float: left;
    width: 150px;
    height: 45px;
    padding: 5px;
    cursor: pointer;
}
.imageWrapper:hover {
    background: white;
    color: #000;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}
.thumbnailHolder {
    display: block;
    position: relative;
    margin-bottom: 5px;
}
.rltbItemTemplate { height: 336px; }

/* RadGrid baseline + responsive stacking (used by CatalogSearch / ItemDetails) */
/*.RadGrid { min-width: fit-content; }*/
.RadGrid table {
    border-collapse: collapse;
    width: 100%;
}
.RadGrid th {
    background-color: #eee;
    font-weight: bold;
}
/*.RadGrid th,
.RadGrid td {
    border: 0.125em solid #333;
    line-height: 1.5;
    padding: 0.75em;
    text-align: left;
}*/
html body .RadGrid .rgRow,
html body .RadGrid .rgAltRow,
html body .RadGrid .rgEditRow,
html body .RadGrid .rgFooter,
html body .RadGrid .rgGroupHeader { height: auto; }

/* Item flag icons row (CatalogSearch / ItemDetails) */
.cs-flag-row { display: flex; gap: 4px; align-items: center; margin-top: 4px; flex-wrap: wrap; }
.cs-flag-row img { width: 18px; height: 18px; }
.cs-item-meta { font-size: 12px; color: #555; line-height: 1.8; }
.cs-item-meta b { color: #222; }

/* Catalog Image placeholder */
.cs-item-img {
    max-width: 120px; max-height: 120px;
    border: 0.5px solid var(--color-border-tertiary);
    border-radius: var(--border-radius-md);
    background: var(--color-background-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--color-text-secondary);
    flex-shrink: 0;
    overflow: hidden;
}

/* Button wrapper (centred row of small buttons under a price/qty cell) */
.btn-wrapper { margin-top: 8px; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }

/* Image hover popup (CartDetails) */
#hoverpopup {
    visibility: hidden;
    position: absolute;
    top: 0; left: 0;
    background: #fff;
    border: 1px solid #d6dbe1;
    border-radius: 4px;
    padding: 4px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
    z-index: 9999;
}
#hoverpopup img { display: block; max-width: 220px; max-height: 220px; }

/*----------- 2.15 Radio Button ---------------------------------------------*/
.radio-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 0;
}

.radio-stack .radio-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid #e3e6ea;
    border-radius: 4px;
    background: #fafbfc;
}
/* ---------- 2.16 Utility helpers ----------------------------------------- */
.visually-hidden,
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0,0,0,0); border: 0;
    white-space: nowrap;
}
.rbText { vertical-align: baseline !important; }
.buttonsContainer { text-align: center; }
html #about-demo-wrapper:before { border-bottom: 0; height: 0; }


/* =============================================================================
   3. RESPONSIVE BREAKPOINTS
   ============================================================================= */

/* ---------- ≤ 1024px (tablet landscape) ----------------------------------- */
@media (max-width: 1024px) {
    .item-details-page .item-summary { grid-template-columns: minmax(160px, 30%) 1fr; }
    .item-details-page .item-summary .col-price-wrap { grid-column: 1 / -1; }
    .item-details-page .recent-items-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- ≤ 980px (smaller tablet) -------------------------------------- */
@media (max-width: 980px) {
    .summary-grid { grid-template-columns: minmax(110px, 180px) minmax(0, 1fr); }
    .req-approver-page .search-grid { grid-template-columns: minmax(80px, 110px) minmax(0, 1fr); }
    .req-approver-page .search-grid > *:last-child { grid-column: 1 / -1; }
    .req-review-page .screen-header { gap: 8px; }
    .bts-page .form-grid {
        grid-template-columns: 160px minmax(0, 1fr);
    }
    .bts-page .form-grid .full-row { grid-column: 1 / -1; }
    .bts-page .addr-grid { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; }
    .req-item-info .totals-table { max-width: 100%; }
}

/* ---------- ≤ 900px (CartDetails breakpoint) ------------------------------ */
@media (max-width: 900px) {
    .cart-details-page { padding: 0 8px; }
    .cart-details-page .info-grid,
    .cart-details-page .requis-form { grid-template-columns: 1fr; }
    .cart-details-page .info-grid .info-item,
    .cart-details-page .requis-form .field { grid-template-columns: 1fr; gap: 2px; }
    .cart-details-page .save-cart-form .form-row { grid-template-columns: 1fr; }
    .cart-details-page .cart-toolbar { flex-direction: column; align-items: stretch; }
    .cart-details-page .action-bar { flex-direction: column; align-items: stretch; }
    .cart-details-page .action-bar.primary-actions { position: static; }
}

/* ---------- ≤ 720px (large phones / small tablets) ------------------------ */
@media (max-width: 720px) {
    .page-section { padding: 0 10px; }
    .item-details-page .section-card { padding: 14px; }
    .item-details-page .item-summary { grid-template-columns: 1fr; }
    .item-details-page .item-summary .col-image { max-width: 280px; margin: 0 auto; }
    .item-details-page .item-summary .col-price-wrap { grid-column: auto; }
    .field-row {
        grid-template-columns: 1fr;
        gap: 2px;
        padding: 8px 0;
    }
    .field-row .field-label {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }
    .item-details-page .info-grid-2col { grid-template-columns: 1fr; gap: 14px; }
    .item-details-page .recent-items-grid { grid-template-columns: repeat(2, 1fr); }
    .item-details-page .cust-parts-row { grid-template-columns: 1fr; gap: 10px; }
    .item-details-page .item-header-bar { flex-direction: column; align-items: stretch; }
    .item-details-page .item-header-bar .header-links { justify-content: center; }
    .item-details-page .item-header-bar .item-title { text-align: center; }

    .req-header-info .summary-grid {
        grid-template-columns: minmax(110px, 180px) minmax(0, 1fr);
    }

    .req-item-info .acc-grid { table-layout: auto; }
    .req-item-info .acc-grid td { padding: 3px 8px 3px 0; }

    .track-progress-wrap ol.track-progress > li > span {
        font-size: 11px;
        max-width: 90px;
    }
    .track-progress-wrap ol.track-progress > li:not(.active) > span { opacity: 0.7; }
}

/* ---------- ≤ 650px (popups - ReqApproverLog) ----------------------------- */
@media (max-width: 650px) {
    .req-approver-log { padding: 8px 12px 16px; }
    .req-approver-log .info-grid { grid-template-columns: 1fr; gap: 2px 0; }
    .req-approver-log .info-grid .info-label { padding-bottom: 0; }
    .req-approver-log .info-grid .info-value { padding-top: 2px; padding-bottom: 10px; }
}

/* ---------- ≤ 600px (phone, primary breakpoint) --------------------------- */
@media (max-width: 600px) {
    .cart-details-page,
    .item-details-page,
    .req-account-page,
    .req-approver-page,
    .bts-page,
    .req-details-page,
    .req-review-page,
    .req-submit-page { padding: 8px 10px 24px; }

    /* Stack summary-grid label above value */
    .summary-grid {
        grid-template-columns: 1fr;
        gap: 2px;
    }
    .summary-grid .lbl {
        padding-top: 8px;
        border-bottom: none;
        padding-bottom: 0;
    }
    .summary-grid .val { padding-bottom: 8px; }

    /* Stack acct-grid */
    .req-account-page .acct-grid {
        grid-template-columns: 1fr;
        gap: 2px;
    }
    .req-account-page .acct-grid .acct-label {
        padding-top: 10px;
        padding-bottom: 0;
    }
    .req-account-page .apply-bar { flex-direction: column; align-items: stretch; }
    .req-account-page .apply-bar .apply-group { justify-content: flex-start; }

    /* Stack search-grid */
    .req-approver-page .search-grid {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .req-approver-page .search-grid .search-label {
        padding-top: 8px;
        padding-bottom: 0;
    }

    /* Stack form-grid for BillToShipTo */
    .bts-page .form-grid {
        grid-template-columns: 1fr;
        gap: 4px 0;
    }
    .bts-page .field-label {
        padding-top: 10px;
        padding-bottom: 2px;
    }
    .bts-page .addr-lines {
        grid-template-columns: 1fr;
        gap: 2px;
    }
    .bts-page .addr-lines .addr-label { margin-top: 6px; }

    /* Screen-header stacks */
    .screen-header { flex-direction: column; align-items: flex-start; }

    /* Action bar collapses to a vertical column-reverse stack */
    .action-bar { flex-direction: column-reverse; align-items: stretch; }
    .action-bar .spacer { display: none; }

    /* ReqDetails action bar uses centred "actions-panel" by default; keep it stacked too */
    .req-details-page .action-bar { flex-direction: column; align-items: stretch; }
    .req-details-page .cuspo-edit { grid-template-columns: 1fr; gap: 4px; }

    /* ReqReview help-bar */
    .req-review-page .help-bar { flex-direction: column; align-items: stretch; }
    .req-review-page .help-bar .mandatory-legend { text-align: left; }
    .req-review-page .header-right { width: 100%; justify-content: flex-start; }

    /* ReqSubmit right-group */
    .req-submit-page .action-bar .right-group { justify-content: flex-start; }

    /* ReqItemInfo section-head stacks */
    .req-item-info .section-head { flex-direction: column; align-items: flex-start; }
    .req-item-info .item-table tr.tax-row > td { font-size: 11px; }
}

/* ---------- ≤ 560px (ReqHeaderInfo phone collapse) ------------------------ */
@media (max-width: 560px) {
    .req-header-info .summary-grid {
        grid-template-columns: 1fr;
        gap: 2px;
    }
    .req-header-info .summary-grid .lbl {
        padding-top: 8px;
        padding-bottom: 0;
        border-bottom: none;
    }
    .req-header-info .summary-grid .val { padding-bottom: 8px; }

    .req-header-info .info-card .kv-table,
    .req-header-info .info-card .kv-table tbody,
    .req-header-info .info-card .kv-table tr,
    .req-header-info .info-card .kv-table td { display: block; width: 100%; height: auto}
    .req-header-info .info-card .kv-table td:first-child { padding-top: 6px; padding-bottom: 2px; }
}

/* ---------- ≤ 500px (Attach popup) ---------------------------------------- */
@media (max-width: 500px) {
    .attach-dialog { padding: 10px 12px 18px; }
    .attach-dialog .section-card { padding: 12px 14px; }
    .attach-dialog .upload-grid {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .attach-dialog .upload-grid .upload-label { padding-top: 4px; }
    .attach-dialog .action-bar { justify-content: stretch; flex-direction: column-reverse; }
    .attach-dialog .action-bar > * { width: 100%; }
}

/* ---------- ≤ 480px (very narrow / track-progress dots) ------------------- */
@media (max-width: 480px) {
    .item-details-page .recent-items-grid { grid-template-columns: 1fr; }

    .track-progress-wrap { padding: 0 8px; margin: 8px auto 12px; }
    .track-progress-wrap ol.track-progress > li > i {
        width: 24px;
        height: 24px;
        border-width: 2px;
        font-size: 11px;
    }
    .track-progress-wrap ol.track-progress::before {
        top: 11px;
        height: 2px;
    }
    .track-progress-wrap ol.track-progress > li:not(.active) > span { display: none; }
    .track-progress-wrap ol.track-progress > li.active > span {
        position: absolute;
        top: 32px;
        left: -100px;
        right: -100px;
        font-size: 12px;
        text-align: center;
    }
    .track-progress-wrap ol.track-progress { margin-bottom: 28px; }
}

/* ---------- ≤ 30em (CatalogSearch RadGrid stacked) ------------------------ */
/*@media (max-width: 30em) {
    .RadGrid thead tr {
        position: absolute;
        top: -9999em;
        left: -9999em;
    }
    .RadGrid tr { border: 0.125em solid #333; }
    .RadGrid tr + tr,
    .RadGrid .rgPager { margin-top: 0.5em; }

    .RadGrid tr,
    .RadGrid td { display: table-row; }

    .RadGrid td {
        border: none;
        border-bottom: 0.125em solid #333;
        padding-left: 10%;
        
    }
        .RadGrid td:before {
            content: attr(data-label);
            display: inline-block;
            font-weight: bold;
            line-height: 1.5;
            margin-left: 0;
            padding-top: 30px;*/
            /*width: 50%;*/
        /*}
    .RadGrid br {
        content: attr(data-label);
        display: inline-block;
        font-weight: bold;
        line-height: 1.5;
        margin-left: 0;
        width: 50%;
    }
    .RadGrid .rgWrap.rgNumPart a:not(.rgCurrentPage) { display: none; }
    .RadGrid .rgWrap.rgAdvPart { margin-top: 10px; }
}*/

/* ---------- ≤ 20em (CatalogSearch ultra-narrow) --------------------------- */
@media (max-width: 20em) {
    .RadGrid td { padding-left: 0.75em; }
    .RadGrid td:before {
        display: block;
        margin-bottom: 0.75em;
        margin-left: 0;
    }
}

/* ============================ END StyleSheetResp.css ======================== */


