/* =========================================================
   QTECH DATA — facts and data tables
   Extracted from Questrom Tech global CSS.
========================================================= */

/* =========================================================
   QTECH FACTS
   Compact facts, limits, locations, costs and key values

   Structure:
   .qtech-facts
       .qtech-fact
           .qtech-fact-title   (optional)
           .qtech-fact-value
           .qtech-fact-label

   Required surface modifier:
   .qtech-facts--light
   .qtech-facts--blue
   .qtech-facts--dark

   Optional layout modifiers:
   .qtech-facts--2
   .qtech-facts--3
   .qtech-facts--4
========================================================= */

.qtech-facts {
    width: 100% !important;
    margin-top: 28px !important;

    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
}


/* =========================================================
   FACT ITEM
========================================================= */

.qtech-fact {
    position: relative;

    min-width: 0 !important;
    padding: 26px 26px 24px !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;

    border: 1px solid;
    border-radius: 10px;

    overflow: hidden;
}


/* =========================================================
   TITLE
========================================================= */

.qtech-fact-title {
    width: 100% !important;

    margin: 0 0 10px !important;
}

.qtech-fact-title .elementor-heading-title {
    margin: 0 !important;

    color: var(--qtech-red) !important;

    font-size: 12px !important;
    line-height: 1.3 !important;
    font-weight: 750 !important;

    letter-spacing: .075em !important;
    text-transform: uppercase !important;
}


/* =========================================================
   VALUE
========================================================= */

.qtech-fact-value {
    width: 100% !important;

    margin: 0 !important;
}

.qtech-fact-value .elementor-heading-title {
    margin: 0 !important;

    font-size: 28px !important;
    line-height: 1.15 !important;
    font-weight: 750 !important;

    letter-spacing: -.025em !important;
}

/* =========================================================
   FACT VALUE — TECHNICAL / LONG VALUES
========================================================= */

.qtech-fact-value--technical .elementor-heading-title {
    font-size: 16px !important;
    line-height: 1.25 !important;
    letter-spacing: -.01em !important;

    overflow-wrap: anywhere;
    word-break: normal;
}


/* =========================================================
   LABEL
========================================================= */

.qtech-fact-label {
    width: 100% !important;

    margin: 8px 0 0 !important;
}

.qtech-fact-label,
.qtech-fact-label .elementor-widget-container,
.qtech-fact-label p {
    margin-bottom: 0 !important;
    padding: 0 !important;

    font-size: 14px !important;
    line-height: 1.5 !important;
    font-weight: 500 !important;
}

.qtech-fact-label p:first-child {
    margin-top: 0 !important;
}

.qtech-fact-label p:last-child {
    margin-bottom: 0 !important;
}


/* =========================================================
   LIGHT SURFACE
========================================================= */

.qtech-facts--light .qtech-fact {
    background: var(--qtech-surface);
    border-color: var(--qtech-border);
    box-shadow: var(--qtech-panel-shadow);
}

.qtech-facts--light
.qtech-fact-value .elementor-heading-title {
    color: var(--qtech-heading) !important;
}

.qtech-facts--light .qtech-fact-label,
.qtech-facts--light .qtech-fact-label .elementor-widget-container,
.qtech-facts--light .qtech-fact-label p {
    color: var(--qtech-text) !important;
}


/* =========================================================
   BLUE SURFACE
========================================================= */

.qtech-facts--blue .qtech-fact {
    background: var(--qtech-surface-translucent);
    border-color: var(--qtech-border);
    box-shadow: var(--qtech-panel-shadow);
}

.qtech-facts--blue
.qtech-fact-value .elementor-heading-title {
    color: var(--qtech-heading) !important;
}

.qtech-facts--blue .qtech-fact-label,
.qtech-facts--blue .qtech-fact-label .elementor-widget-container,
.qtech-facts--blue .qtech-fact-label p {
    color: var(--qtech-text) !important;
}


/* =========================================================
   DARK SURFACE
========================================================= */

.qtech-facts--dark .qtech-fact {
    background: rgba(255, 255, 255, .04);

    border-color: rgba(255, 255, 255, .11);

    box-shadow: none;
}

.qtech-facts--dark
.qtech-fact-value .elementor-heading-title {
    color: #ffffff !important;
}

.qtech-facts--dark .qtech-fact-label,
.qtech-facts--dark .qtech-fact-label .elementor-widget-container,
.qtech-facts--dark .qtech-fact-label p {
    color: rgba(255, 255, 255, .74) !important;
}


/* =========================================================
   LAYOUT MODIFIERS
========================================================= */

.qtech-facts--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.qtech-facts--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.qtech-facts--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) and (min-width: 768px) {

    .qtech-facts--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .qtech-facts,
    .qtech-facts--2,
    .qtech-facts--4 {
        grid-template-columns: 1fr !important;

        gap: 10px !important;

        margin-top: 22px !important;
    }

    .qtech-fact {
        padding: 22px 20px 20px !important;
    }

    .qtech-fact::before {
        left: 20px;

        width: 26px;
    }

    .qtech-fact-title {
        margin-bottom: 8px !important;
    }

    .qtech-fact-title .elementor-heading-title {
        font-size: 11px !important;
    }

    .qtech-fact-value .elementor-heading-title {
        font-size: 25px !important;
    }

    .qtech-fact-label {
        margin-top: 7px !important;
    }

    .qtech-fact-label,
    .qtech-fact-label .elementor-widget-container,
    .qtech-fact-label p {
        font-size: 13px !important;
    }

}

/* =========================================================
   QTECH DATA TABLE
   Reusable structured data / directory table

   Usage:
   qtech-data-table qtech-data-table--light
   qtech-data-table qtech-data-table--blue
   qtech-data-table qtech-data-table--dark
========================================================= */

.qtech-data-table {
    width: 100%;

    margin-top: 28px;

    overflow: hidden;

    border-radius: 10px;
}


/* =========================================================
   TABLE BASE
========================================================= */

.qtech-data-table table {
    width: 100%;

    margin: 0 !important;

    border: 0 !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;

    background: transparent !important;

    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================
   HEADER
========================================================= */

.qtech-data-table thead th {
    padding: 13px 18px !important;

    border: 0 !important;

    text-align: left;
    vertical-align: middle;

    font-size: 11px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    letter-spacing: 0.07em !important;

    text-transform: uppercase;
}


/* =========================================================
   BODY
========================================================= */

.qtech-data-table tbody td {
    padding: 15px 18px !important;

    border: 0 !important;

    text-align: left;
    vertical-align: middle;

    font-size: 14px !important;
    line-height: 1.5 !important;
}


/* Divider between rows */
.qtech-data-table tbody tr + tr td {
    border-top-width: 1px !important;
    border-top-style: solid !important;
}


/* First column slightly stronger */
.qtech-data-table tbody td:first-child {
    font-weight: 600;
}


/* =========================================================
   QUEUE / CODE VALUES
========================================================= */

.qtech-data-table code {
    display: inline-block;

    padding: 2px 6px;

    border-radius: 4px;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        "Liberation Mono",
        "Courier New",
        monospace;

    font-size: 12px;
    line-height: 1.45;

    white-space: nowrap;
}


/* Give stacked queue names breathing room */
.qtech-data-table td code + br + code {
    margin-top: 4px;
}


/* =========================================================
   LIGHT VARIANT
========================================================= */

.qtech-data-table--light {
    background: var(--qtech-surface);
    border: 1px solid var(--qtech-border);
    box-shadow: var(--qtech-panel-shadow);
}

.qtech-data-table--light thead th {
    background: var(--qtech-surface-soft);
    color: var(--qtech-red) !important;
    border-bottom: 1px solid var(--qtech-border) !important;
}

.qtech-data-table--light tbody td {
    color: var(--qtech-text) !important;
}

.qtech-data-table--light tbody tr + tr td {
    border-top-color: var(--qtech-divider) !important;
}

.qtech-data-table--light code {
    background: var(--qtech-code-bg);
    color: var(--qtech-heading);
}

.qtech-data-table--light tbody tr:hover {
    background: var(--qtech-surface-hover);
}


/* =========================================================
   BLUE VARIANT
   For qtech-section-blue
========================================================= */

.qtech-data-table--blue {
    background: var(--qtech-surface-translucent);
    border: 1px solid var(--qtech-border);
    box-shadow: var(--qtech-panel-shadow);
}

.qtech-data-table--blue thead th {
    background: var(--qtech-surface-translucent);
    color: var(--qtech-red) !important;
    border-bottom: 1px solid var(--qtech-border) !important;
}

.qtech-data-table--blue tbody td {
    color: var(--qtech-text) !important;
}

.qtech-data-table--blue tbody tr + tr td {
    border-top-color: var(--qtech-divider) !important;
}

.qtech-data-table--blue code {
    background: var(--qtech-code-bg);
    color: var(--qtech-heading);
}

.qtech-data-table--blue tbody tr:hover {
    background: var(--qtech-surface-hover);
}


/* =========================================================
   DARK VARIANT
   For qtech-section-dark
========================================================= */

.qtech-data-table--dark {
    background: rgba(255, 255, 255, 0.035);

    border: 1px solid rgba(255, 255, 255, 0.11);

    box-shadow: none;
}

.qtech-data-table--dark thead th {
    background: rgba(255, 255, 255, 0.055);

    color: var(--qtech-aqua) !important;

    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.qtech-data-table--dark tbody td {
    color: rgba(255, 255, 255, 0.82) !important;
}

.qtech-data-table--dark tbody tr + tr td {
    border-top-color: rgba(255, 255, 255, 0.09) !important;
}

.qtech-data-table--dark code {
    background: rgba(255, 255, 255, 0.07);

    color: #ffffff;
}

.qtech-data-table--dark tbody tr:hover {
    background: rgba(255, 255, 255, 0.035);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 767px) {

    /*
     * Allow wide tables to scroll horizontally instead
     * of crushing columns or breaking the page layout.
     */
    .qtech-data-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .qtech-data-table table {
        min-width: 520px;

        font-size: 13px;
    }

    .qtech-data-table thead th {
        padding: 12px 14px !important;

        font-size: 10px !important;
    }

    .qtech-data-table tbody td {
        padding: 13px 14px !important;

        font-size: 13px !important;
    }

    .qtech-data-table code {
        font-size: 11px;
    }

}


/* =========================================================
   REFERENCE TABLE - USED IN NETWORK DRIVES PAGE
========================================================= */

.qtech-reference {
    width: 100%;
    margin-top: 30px;
    padding: 28px;

    background: var(--qtech-surface);
    border: 1px solid var(--qtech-border);
    border-radius: 14px;
    box-shadow: var(--qtech-shadow);
}


/* Title */

.qtech-reference-title .elementor-heading-title {
    margin: 0;

    color: var(--qtech-heading);
    font-size: 21px;
    line-height: 1.3;
    font-weight: 700;
}


/* Intro text */

.qtech-reference-text {
    margin-top: 8px;
}

.qtech-reference-text p {
    margin: 0;

    color: var(--qtech-text);
    font-size: 15px;
    line-height: 1.55;
}


/* Table wrapper */

.qtech-reference-table {
    width: 100%;
    margin-top: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}


/* Table */

.qtech-reference-table table {
    width: 100%;
    border-collapse: collapse;
}

.qtech-reference-table th {
    padding: 12px 14px;

    background: var(--qtech-surface-soft);
    color: var(--qtech-heading);

    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;
    text-align: left;
}

.qtech-reference-table td {
    padding: 12px 14px;

    color: var(--qtech-text);
    font-size: 14px;
    line-height: 1.4;

    border-top: 1px solid var(--qtech-border);
}

.qtech-reference-table code {
    color: var(--qtech-heading);
    font-size: 13px;
}


/* Mobile */

@media (max-width: 767px) {

    .qtech-reference {
        margin-top: 24px;
        padding: 22px;
    }

    .qtech-reference-table th,
    .qtech-reference-table td {
        padding: 10px 12px;
    }
}

/* =========================================================
   DATA — STANDARD SURFACES
========================================================= */

/*
 * Theme-aware facts and tables use the brighter Questrom
 * accent in dark mode. Explicit --dark variants retain
 * their intentional aqua/white treatment.
 */


/* Facts */

html[data-qtech-theme="dark"]
.qtech-facts:not(.qtech-facts--dark)
.qtech-fact-title
.elementor-heading-title {
    color: var(--qtech-red-hover) !important;
}


/* Data tables */

html[data-qtech-theme="dark"]
.qtech-data-table--light
thead th,
html[data-qtech-theme="dark"]
.qtech-data-table--blue
thead th {
    color: var(--qtech-red-hover) !important;
}
