/* ============================================================
   Hub Systems — Modern UI Override
   Loads after template.css + global.css.
   Uses  where old rules use inline styles or have
   higher specificity that cannot be easily overridden.
   ============================================================ */

/* ── Page background & wrapper ─────────────────────────── */

body {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: #ffffff;
}


* {
    box-sizing: border-box !important ;
}

/* #content_wrapper { */
    /* margin: 0 ; */
    /* padding: 20px 20px 60px ; */
/* } */

/* Remove the old 960px hard cap set inline on trade/ufm.php wrappers */
#content_wrapper div[style*="960px"],
#content_wrapper div[style*="width: 960"] {
    width: 100% !important;
    max-width: 1200px;
}

/* ── Page title ─────────────────────────────────────────── */

#content_wrapper h1 {
    font-size: 22px ;
    font-weight: 700 ;
    color: var(--primary-site-titles-color) ;
    margin: 0 0 16px ;
    padding-bottom: 10px ;
    border-bottom: 2px solid var(--primary-site-color) ;
    float: none ;
    clear: both ;
    letter-spacing: 0.01em;
}

/* ── FlexRow layout ─────────────────────────────────────── */

.flexRow {
    display: flex ;
    flex-wrap: wrap ;
    gap: 0 12px ;
    align-items: stretch;
    clear: both;
    float: none ;
}

.flexColumn {
    flex: 1 1 300px ;
    min-width: 260px ;
    float: none !important;
}

/* ── Section heading cards ──────────────────────────────── */

.fieldGroupHeading {
    background: var(--primary-site-color) ;
    background-color: var(--primary-site-color) ;
    color: #fff ;
    font-size: 12px ;
    font-weight: 700 ;
    padding: 9px 14px ;
    margin: 10px 0 0 ;
    border-radius: 6px 6px 0 0 ;
    text-align: left ;
    width: auto ;
    float: none ;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.4 ;
}

.groupHeading,
.smallGroupHeading {
    background: var(--primary-site-color) ;
    color: #fff ;
    font-weight: 700 ;
    border-radius: 6px 6px 0 0 ;
    padding: 9px 14px ;
    margin: 10px 0 0 ;
    text-align: left ;
    font-size: 12px ;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    float: none ;
}

.fieldHeading,
.quoteHeading {
    border-radius: 4px 4px 0 0 ;
    font-weight: 700 ;
    padding: 7px 12px ;
    margin-bottom: 0 ;
    letter-spacing: 0.04em;
    font-size: 12px ;
    text-transform: uppercase;
}

/* ── Form group cards ───────────────────────────────────── */

.fieldGroup,
.inlineFieldGroup {
    background: #f5f5f9 ;
    border: 1px solid #d8dde6 ;
    border-radius: 0 0 6px 6px ;
    box-shadow: 0 2px 6px rgba(0,0,0,0.07) ;
    padding: 14px 16px 12px ;
    margin: 0 0 14px ;
    float: none ;
    width: auto ;
    min-width: 0 ;
}

.wideGroup {
    background: #ffffff ;
    border: 1px solid #d8dde6 ;
    border-radius: 6px ;
    box-shadow: 0 2px 6px rgba(0,0,0,0.07) ;
    padding: 14px 16px ;
    margin: 0 0 14px ;
    float: none ;
    width: auto ;
    clear: both;
}

#itemGroup,
#smallItemGroup {
    background: #f8f9fa ;
    border: 1px solid #e0e6ef ;
    border-radius: 5px ;
    padding: 8px 12px ;
    margin: 8px 0 ;
    clear: none ;
    display: inline-block;
}

/* ── fieldDivClass — row wrapping label + input ───────── */

.fieldDivClass {
    display: flex;
    align-items: flex-start ;
    margin-bottom: 7px ;
    clear: both ;
    float: none ;
    width: auto ;
}

.inlineFieldDivClass,
.inlineMediumFieldDivClass,
.inlineLargeFieldDivClass {
    display: inline-flex ;
    align-items: flex-start ;
    margin-bottom: 6px ;
    float: none ;
}

/* ── Label column ───────────────────────────────────────── */

.labelDivClass {
    float: none ;
    width: 145px ;
    min-width: 145px ;
    text-align: right ;
    padding-right: 10px ;
    padding-top: 6px ;
    color: #666 ;
    font-weight: 600 ;
    font-size: 12px ;
    flex-shrink: 0 ;
    white-space: nowrap;
}

.smallLabelDivClass,
.inlineSmallLabelDivClass {
    float: none ;
    width: 90px ;
    min-width: 80px ;
    text-align: right ;
    padding-right: 10px ;
    padding-top: 6px ;
    color: #666 ;
    font-weight: 600 ;
    font-size: 12px ;
    flex-shrink: 0 ;
}

/* ── Data column ─────────────────────────────────────────── */

#content .dataDivClass,
#content .displayDivClass {
    float: none ;
    flex: 1;
    min-width: 0 ;
    width: auto ;
    padding-top: 2px ;
}

.warningDivClass {
    font-size: 12px;
    color: #c0392b;
    margin-top: 2px;
    clear: both;
}

.messageDivClass {
    font-size: 13px;
    float: none ;
    clear: both;
}

/* ── ALL text inputs, selects, textareas ─────────────────── */
/* Covers class="field" (formhandle.inc) AND                  */
/* class="wide" (saddress.js JS-generated fields)             */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="date"],
select,
textarea {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 5px 8px;
    font-size: 13px;
    color: #333;
    background-color: #fff;
    font-family: 'Lato', sans-serif;
    line-height: 1.4;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
select:focus,
textarea:focus {
    border-color: var(--primary-site-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(114,179,63,0.18);
}

/* Override inline pink background from saddress.js suburb fields */
input.wide,
select.wide,
textarea.wide,
input.field,
select.field,
textarea.field,
input.suburbState,
input.suburbPostcode,
input.postcodeSuburb,
input.postcodeState,
input.narrow,
input.seminarrow,
input.notsonarrow,
input.semiwide,
input.notaswide {
    background-color: #ffffff ;
    border: 1px solid #ced4da ;
    border-radius: 4px ;
    padding: 5px 8px ;
    font-size: 13px ;
    color: #333 ;
    font-family: 'Lato', sans-serif ;
    line-height: 1.4 ;
    box-sizing: border-box;
}

input.wide,

select.wide,
textarea.wide {
    width:  clamp(200px, 41vw, 568px);
    
    max-width: 100% ;
}

/* Specific width classes */
input.narrow      { width: 80px ; }
input.seminarrow  { width: 100px ; }
input.notsonarrow { width: 130px ; }
input.semiwide    { width: 180px ; }
input.notaswide   { width: 190px ; }
input.suburbState { width: 160px ; }
input.suburbPostcode,
input.postcodeSuburb { width: 70px ; }
input.postcodeState  { width: 240px ; }
input.tiny  { width: 35px ; }
input.small { width: 50px ; }
input.value,
input.money,
input.percent,
input.cube { width: 60px ; text-align: right; }

input.wide:focus, select.wide:focus, textarea.wide:focus,
input.field:focus, select.field:focus, textarea.field:focus {
    border-color: var(--primary-site-color) ;
    outline: none ;
    box-shadow: 0 0 0 3px rgba(114,179,63,0.18) ;
}

select.field,
select.wide {
    padding: 5px 6px ;
    height: auto ;
}

textarea.field,
textarea.wide {
    min-height: 52px;
    resize: vertical;
}

input:read-only:not(.form-check-input):not([type="radio"]):not([type="checkbox"]) {
    background-color: #f6f8fa ;
    border-color: #e2e8f0 ;
    color: #777 ;
}

/* Radio / checkbox */
input[type="radio"],
input[type="checkbox"] {
    margin-right: 4px;
    vertical-align: middle;
}

label {
    font-size: 13px;
    vertical-align: middle;
    cursor: pointer;
    margin-right: 6px;
}

/* ── Buttons ─────────────────────────────────────────────── */

input[type="button"].button,
input[type="submit"].button,
input.button,
div.button,
div.button2,
a.button,
button {
    display: inline-block ;
    background-color: var(--primary-site-color) ;
    color: #fff ;
    border: none ;
    border-radius: 5px ;
    padding: 8px 20px ;
    font-size: 13px ;
    font-weight: 700 ;
    letter-spacing: 0.03em;
    cursor: pointer ;
    transition: background-color 0.15s ease, box-shadow 0.15s ease ;
    line-height: 1.5 ;
    width: auto ;
    float: none ;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

input.button:hover,
div.button:hover,
div.button2:hover,
a.button:hover {
    background-color: var(--color-primary-darker, #5a9e2f) ;
    box-shadow: 0 3px 8px rgba(0,0,0,0.18) ;
    color: #fff ;
}

/* ── Address search & add/delete icon buttons ────────────── */

.addressButtons {
    float: right;
    margin-top: -2px;
    display: flex;
    gap: 4px;
    align-items: center;
}

.addressButtons img {
    width: 22px;
    height: 22px;
    opacity: 0.65;
    transition: opacity 0.15s;
}

.addressButtons a:hover img {
    opacity: 1;
}

/* ── Data tables ─────────────────────────────────────────── */

#cppledilist table,
#content .tableGroup table,
#maintenancelist table {
    background: #fff;
    font-size: 13px;
    /* width: calc(50vw - 50%); */
    width: 100%;
    border-collapse: collapse;
}


.checklist {
    width: calc(50vw - 50%);
}
#cppledilist th,
#content .tableGroup th,
#maintenancelist th {
    background: var(--primary-site-color) ;
    color: #fff ;
    padding: 10px 10px ;
    font-size: 12px ;
    font-weight: 700 ;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    border: none ;
}

#cppledilist td,
#content .tableGroup td,
#maintenancelist td {
    padding: 7px 10px ;
    font-size: 13px ;
    vertical-align: middle ;
    border-bottom: 1px solid #f0f2f5 ;
}

#cppledilist tr:nth-child(even),
#content .tableGroup tr:nth-child(even),
#maintenancelist tr:nth-child(even) {
    background: #f8faf8;
}

#cppledilist tr:nth-child(odd),
#content .tableGroup tr:nth-child(odd),
#maintenancelist tr:nth-child(odd) {
    background: #fff;
}

#cppledilist tr:hover,
#content .tableGroup tr:hover,
#maintenancelist tr:hover {
    background: #eef5e8 ;
}

#cppledilist th a,
#content .tableGroup th a,
#maintenancelist th a {
    color: #fff ;
    font-size: 12px;
    font-weight: normal;
}

/* Status dot images (G/Y/0/R PNG icons in connotelist tables) */
#cppledilist img[src*="images/status/"],
#content img[src*="images/status/"],
#maintenancelist img[src*="images/status/"] {
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

/* Empty table state */
#cppledilist .nodata,
#content .tableGroup .nodata,
#maintenancelist .nodata {
    text-align: center;
    color: #aaa;
    padding: 24px;
    font-style: italic;
    font-size: 13px;
}

/* ── Form tables ─────────────────────────────────────────── */

form table:not(.plain),
#consignmentdetails table {
    font-size: 13px;
    border-top: none;
    border-bottom: none;
    background: transparent;
    width: calc(50vw - 50%);
}

form td, form th,
#consignmentdetails td, #consignmentdetails th {
    padding: 5px 8px;
    font-size: 13px;
    border-bottom: 1px solid #f0f2f5;
    vertical-align: middle;
}

form th:not(.formsection),
#consignmentdetails th {
    color: #666;
    font-weight: 600;
    text-align: right;
    vertical-align: top;
    width: 150px;
}

.formsection {
    background-color: var(--color-primary-lighter, #8ec46a) ;
    color: #fff ;
    font-size: 12px ;
    font-weight: 700 ;
    padding: 8px 14px ;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ── Headings ─────────────────────────────────────────────── */

h1, h2, h3, h4, h5 {
    font-weight: 700;
    color: var(--primary-site-titles-color);
    line-height: 1.3;
}

h1 { font-size: 24px ; }
h2 { font-size: 20px ; float: none ; clear: both ; }
h3 { font-size: 17px ; }
h4 { font-size: 14px ; }
h5 { font-size: 13px ; }

p {
    font-size: 13px;
    line-height: 1.6;
    color: #444;
}

/* ── Links ────────────────────────────────────────────────── */

a {
    color: var(--primary-site-titles-color);
    text-decoration: none;
}

a:hover, a:focus {
    color: var(--primary-site-color);
    text-decoration: none;
}

#content a {
    color: var(--primary-site-titles-color);
    border-bottom: none ;
    text-decoration: none;
}

#content a:hover {
    color: var(--primary-site-color) ;
    background: transparent ;
    border-bottom: none ;
    text-decoration: underline;
}

/* ── Inline header boxes (rate/step headers) ─────────────── */

.inlineHeader,
.inlineHeaderMedium,
.inlineHeaderLong {
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
}

.idHeading {
    /* border-radius: 4px 4px 0 0; */
    font-weight: 700;
    font-size: 12px;
}

/* ── DataEntry wrapper ───────────────────────────────────── */

.dataEntry {
    background: #fff ;
    border: 1px solid #d8dde6 ;
    border-radius: 8px ;
    box-shadow: 0 2px 6px rgba(0,0,0,0.07) ;
    margin: 20px 0 ;
    padding: 18px ;
}

/* ── Top header ──────────────────────────────────────────── */

.hub-top-header {
    height: 68px;
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.hub-top-header__brand img {
    max-height: 52px;
}

.hub-top-header__divider {
    width: 1px;
    height: 28px;
    background: #dee2e6;
    flex-shrink: 0;
}

.hub-top-header__page {
    font-size: 14px;
    font-weight: 600;
    color: #444;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hub-top-header__user {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}



/* Hub Demo logo: rotating circle + wordmark side by side */
/* .hub-demo-logo {
    display: flex;
    align-items: center;
    gap: 8px;
} */

.hub-demo-circle {
    height: 59px;
    flex-shrink: 0;
    margin-right: 5px;
    animation: rotate 30s linear infinite;
}

.hub-demo-wordmark {
    height: 59px;
}

/* ── Sidebar ─────────────────────────────────────────────── */

.hub-sidebar {
    /* width: 220px; */
    min-width: 220px;
    background: #f8f9fa;
    border-right: 1px solid #dee2e6;
    position: sticky;
    top: 68px;
    /* height: calc(93.5vh - 68px); */
    height: auto;
    overflow-y: auto;
    flex-shrink: 0;
}

.hub-sidebar .nav-link {
    color: #444;
    font-size: 13px;
    padding: 7px 12px;
    border-radius: 5px;
    transition: background 0.15s, color 0.15s;
}

.hub-sidebar .nav-link:hover {
    background: rgba(0,0,0,0.06);
    color: var(--primary-site-color);
}

.hub-sidebar .nav-link.active {
    background: var(--primary-site-color);
    color: #fff;
}

.hub-sidebar .sidebar-chevron {
    opacity: 0.5;
    transition: transform 0.2s;
}

.hub-sidebar .nav-link[aria-expanded="true"] .sidebar-chevron {
    transform: rotate(180deg);
}

/* ── Nav icons & labels ──────────────────────────────────── */

.hub-nav-icon {
    margin-right: 8px;
    opacity: 0.65;
    flex-shrink: 0;
    vertical-align: middle;
}

.hub-sidebar .nav-link:hover .hub-nav-icon,
.hub-sidebar .nav-link.active .hub-nav-icon {
    opacity: 1;
}

.hub-nav-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Pinned favourites ───────────────────────────────────── */

.hub-pinned__heading {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #aaa;
    margin: 0 0 4px 4px;
}

#hub-pinned-divider {
    margin: 10px 0 12px;
}

/* Pin button — hidden until row is hovered */
.hub-pinnable {
    position: relative;
}

.hub-pin-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 3px 4px;
    cursor: pointer;
    color: #ccc;
    opacity: 0;
    transition: opacity 0.15s, color 0.15s;
    line-height: 1;
    border-radius: 3px;
}

.hub-pinnable:hover .hub-pin-btn {
    opacity: 1;
}

.hub-pin-btn:hover {
    color: var(--primary-site-color);
}

.hub-pin-btn--active {
    color: var(--primary-site-color) !important;
    opacity: 1 !important;
}

/* ── Search in header ────────────────────────────────────── */

.hub-top-header .navbarSearch {
    margin-top: 0;
}

.hub-top-header .navbarSearch .form-control {
    width: 220px;
}

/* ── Footer ──────────────────────────────────────────────── */

#footer_wrapper {
    background: #f8f9fa;
    clear: both;
}

#footer {
    display: flex;
    flex-direction: column-reverse;
}

.footer-copy {
    margin: 0;
    font-size: 11px;
    color: #aaa;
    letter-spacing: 0.02em;
}

.hub-demo-logo--footer .hub-demo-circle {

    height: 42px;
    margin-right: 5px;
}

.hub-demo-logo--footer .hub-demo-wordmark {
    height: 43px;
}



/* ── Notes / Charges ─────────────────────────────────────── */

div.notesAdd a {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-site-color);
}

.chargeLabel,
.chargeValue {
    font-size: 13px;
    padding-top: 4px;
    padding-bottom: 4px;
}

.chargeTotal,
.chargeGrandTotal {
    font-size: 14px;
    font-weight: 700;
}

/* ── Misc ─────────────────────────────────────────────────── */

.field_note {
    font-size: 11px;
    color: #999;
}

.req_field {
    color: #c0392b;
    font-size: 11px;
}

.labelClass {
    color: #555;
    font-weight: 600;
    font-size: 13px;
}

.level0       { font-size: 14px ; font-weight: 700 ; }
.level1       { font-size: 13px ; font-weight: 600 ; }
.level2       { font-size: 12px ; }
.level0error  { font-size: 14px ; font-weight: 700 ; }
.level1error  { font-size: 13px ; font-weight: 600 ; }
.level2error  { font-size: 12px ; }

.warningWarning {
    border-radius: 4px;
    padding: 8px 12px;
    margin-bottom: 8px;
    font-size: 14px;
}

.warningError {
    border-radius: 4px;
    padding: 8px 12px;
    margin-bottom: 8px;
    font-size: 14px;
}

/* ── Autosuggest results popup ───────────────────────────── */

#srDiv th {
    font-size: 12px ;
    padding: 8px 8px ;
    font-weight: 700 ;
    letter-spacing: 0.04em;
}

#srDiv table {
    font-size: 12px;
}

#srDiv tr:hover {
    background: #eef5e8;
}

/* ── Modal overlay ───────────────────────────────────────── */

div#hubModalDiv {
    border-radius: 8px ;
    border: 1px solid var(--primary-site-color) ;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18) ;
}



#content {
    max-width: 100%;
    padding: 20px 28px 48px;
}

#content_wrapper {
    max-width: 100%;
}


/* ============================================================
   Both item group grids
   ============================================================ */

#itemGroup > div {
    display: grid;
    grid-template-columns:
        55px                    /* Count */
        minmax(150px, 39vw)      /* Description */
        minmax(300px, 30vw)      /* Per Item */
        minmax(180px, 14vw)      /* Total */
        40px;                   /* Control */

        /* 55px minmax(150px, 39vw) minmax(300px, 30vw) minmax(180px, 14vw) 40px */
    align-items: center;
    gap: 0 10px;
    width: 100%;
    box-sizing: border-box;
}

#smallItemGroup > div {
    display: grid;
    grid-template-columns:
        55px                    /* Count */
        minmax(300px, 2fr)      /* Per Item */
        minmax(180px, 1fr)      /* Total */
        40px;                   /* Control */
    align-items: center;
    gap: 0 10px;
    width: 100%;
    box-sizing: border-box;
}

#smallItemGroup > div:not(.idHeading),
#itemGroup > div:not(.idHeading) {
    gap: unset;
}

/* ============================================================
   Map sid* classes to same styles as id* equivalents
   ============================================================ */

.idCount, .sidCount {
    width: 100%;
}
/* 
.idDescription {
    width: 100%;
    min-width: 0;
} */
#content input.semiwide, #content textarea.semiwide {
    /* width: clamp(200px, 41vw, 568px); */
    width: 15vw;
}

.idDescription:not(.idHeading, .noItemType) {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 8px;
    width: 100%;
}

.idDescription select {
    width: 100% !important;
}
.idDescription input {
    width: 90% !important;
}

.descriptionWithType {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 8px;
    width: 100%;
}


#chargeAnchor .fieldDivClass {
    display: grid;
    grid-template-columns:
        minmax(120px, 1fr)   /* Label */
        80px                  /* Charge value */
        80px                  /* Cost value */
        24px                  /* Checkbox */
        40px;                 /* A/D buttons */
    align-items: center;
    gap: 0 8px;
    padding: 2px 0;
}

#chargeAnchor .smallchargeLabel  { text-align: left; }
#chargeAnchor .chargeValue       { text-align: right; }
#chargeAnchor .costValue         { text-align: right; }
#chargeAnchor .chargeCheck       { text-align: center; }
#chargeAnchor .chargeAD          { text-align: right; }
.idDimensions, .sidDimensions,
.idDimensionsSmall, .sidDimensionsSmall {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    width: 100%;
}

.costValue input  {
    width: 55px;
} 

.idDimensions.idHeading,
.sidDimensions.idHeading,
.idDimensionsSmall.idHeading,
.sidDimensionsSmall.idHeading {
    display: block;
}

.idControl, .sidControl {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    width: 40px;
    white-space: nowrap;
}

/* ============================================================
   Inputs inside dimension columns
   ============================================================ */

#content .idDimensions input.tiny,
#content .sidDimensions input.tiny,
#content .idDimensionsSmall input.tiny,
#content .sidDimensionsSmall input.tiny {
    width: 55px;
    min-width: 40px;
    flex-shrink: 1;
    box-sizing: border-box;
}

/* X / Y / Z */
#content .idDimensions input.tiniest,
#content .sidDimensions input.tiniest {
    flex: 1 1 0;
    min-width: 28px;
    max-width: 55px;
    box-sizing: border-box;
}

/* kg / volume (tinier) */
#content .idDimensions input.tinier,
#content .sidDimensions input.tinier {
    flex: 1 1 0;
    min-width: 35px;
    max-width: 65px;
    box-sizing: border-box;
}

/* Total column */
#content .idDimensionsSmall input.tinier,
#content .sidDimensionsSmall input.tinier {
    width: 65px;
    min-width: 45px;
    flex-shrink: 1;
    box-sizing: border-box;
}


#itemGroup .idControl:not(.idHeading) {
    margin-left: -30px;
}
/* ============================================================
   Heading row
   ============================================================ */

.idHeading {
    width: 100%;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================================
   Responsive
   ============================================================ */

@media screen and (max-width: 1400px) {
    #itemGroup > div {
        grid-template-columns: 50px minmax(100px, 1fr) minmax(240px, 1.8fr) minmax(140px, 0.9fr) 40px;
    }
    #smallItemGroup > div {
        grid-template-columns: 50px minmax(240px, 1.8fr) minmax(140px, 0.9fr) 40px;
    }
}

@media screen and (max-width: 1100px) {
    #itemGroup > div {
        grid-template-columns: 50px minmax(80px, 1fr) minmax(200px, 1.5fr) minmax(120px, 0.8fr) 40px;
    }
    #smallItemGroup > div {
        grid-template-columns: 50px minmax(200px, 1.5fr) minmax(120px, 0.8fr) 40px;
    }
    #content .idDimensions input.tinier,
    #content .sidDimensions input.tinier,
    #content .idDimensions input.tiniest,
    #content .sidDimensions input.tiniest {
        min-width: 22px;
        max-width: 42px;
    }
}

/* #content .sidDimensionsSmall input.tiniest {
    width: unset ;
    flex: 0.6;
    min-width: 0;
} */
/* ================================================================
   Booking page card components (trade.php.react)
   ================================================================ */

.hub-booking-card {
    border-radius: 8px ;
    border: 1px solid #d4dbe6 ;
    overflow: hidden;
}

.hub-card-header {
    background: var(--primary-site-color) ;
    color: #fff ;
    border-radius: 0 ;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: 10px 18px;
    border-bottom: none ;
}

.hub-booking-card .card-body {
    padding: 18px 20px;
}

.hub-booking-card .form-label {
    font-size: .8rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: .3rem;
}

.hub-booking-card .form-control,
.hub-booking-card .form-select {
    font-size: .875rem;
    border-color: #ced4da;
    border-radius: .375rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.hub-booking-card .form-control:focus,
.hub-booking-card .form-select:focus {
    border-color: var(--primary-site-color);
    box-shadow: 0 0 0 .2rem rgba(114, 179, 63, .25);
}

.hub-booking-card .form-check-input:checked {
    background-color: var(--primary-site-color);
    border-color: var(--primary-site-color);
}

.hub-booking-card .btn-success {
    background-color: var(--primary-site-color);
    border-color: var(--primary-site-color);
}

.hub-booking-card .btn-success:hover {
    background-color: var(--color-primary-darker, #5c9030);
    border-color: var(--color-primary-darker, #5c9030);
}

/* Calendar date input — styled to match Bootstrap form-control */
#cDpickup {
    display: inline-block;
    padding: .375rem .75rem;
    font-size: .875rem;
    line-height: 1.5;
    color: #212529;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: .375rem;
    min-width: 130px;
    cursor: pointer;
}
#cDpickup:focus { outline: none; border-color: var(--primary-site-color); }
#cDpickupDataDiv a { text-decoration: none; }
#cDpickupDataDiv img { margin-left: 6px; vertical-align: middle; opacity: .6; transition: opacity .15s; }
#cDpickupDataDiv img:hover { opacity: 1; }





.actionbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f8f9fa;
    border: 1px solid #e2e6ea;
    border-radius: 6px;
    margin-bottom: 12px;
}

.actionbar .button,
.actionbar input[type="button"],
.actionbar input[type="submit"] {
    margin: 0;
}



.btn-primary {
	--bs-btn-bg: var(--primary-site-color);
}


.btn-primary:hover {
	background-color: var(--color-primary-darker);
}

.btn-check:checked + .btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check) + .btn:active {
    background-color: var(--color-primary-darker);
    box-shadow: 0 0 0 .2rem rgba(114,179,63,0.25);
}
.nav.nav-pills.flex-column.mb-auto {
    /* position: fixed; */
}

.navbarSearch .btn.btn-default {
    border-color: #ced4da;
    border-radius: 0 0.25rem 0.25rem 0 !important;

    width: 3rem;
    height: 100%;
}

.navbarSearch .clearSearch {
  position: absolute;
  margin-right: 7px;
  display: none;
  right: 3.5rem;
  top: -0.37rem;
  height: 2.5rem;
  font-size: 2rem;
  z-index: 100;
  cursor: pointer;
}

.input-group-button {
    margin-right: 7px;
}


.itemtable tbody tr {
    /* nice slightborder  */
    border-color: pink;
    border-style: solid;
    border-spacing: 0.1px;


}


.itemtable tbody tr th:first-child, .itemtable tbody td:first-child {
    text-align:left;
}
.itemtable tbody tr td, .itemtable tbody tr th  {
/* margin: 0 auto; */
  text-align: center;
  border-color: #d6d6dc;
  border-style: solid;
  border-spacing: 1px;
  border-width: 1px;
}


#content select, #content select option {
    height: 30px;
}
