.td11-selector {
    height: 100%;
    overflow: hidden;
    padding: 0 8px;
}

.td11-country {
    display: grid;
    grid-template-columns: 187px 1fr;
    align-items: center;
    min-height: 37px;
    font-size: 12px;
}

.td11-country select {
    height: 27px;
    border: 1px solid #d4dadd;
    background: #fff;
}

.td11-section {
    border-bottom: 1px solid #f5f5f5;
}

.td11-section-title {
    height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    background: #d4d4d4;
    cursor: default;
    font-size: 16px;
}

.td11-section-title .td11-arrow {
    margin-left: auto;
}

.td11-active-bar {
    height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 11px;
    background: #287ca8;
    font-size: 16px;
}

.td11-active-bar .td11-arrow {
    margin-left: auto;
}

.td11-check-icon {
    width: 27px;
    height: 27px;
    border: 3px solid #111;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
}

.td11-panel {
    background: #bfd1db;
    padding: 8px 10px 10px 10px;
}

.td11-row {
    min-height: 28px;
    display: grid;
    grid-template-columns: 112px 1fr;
    align-items: center;
}

.td11-row > label {
    text-align: right;
    padding-right: 5px;
    font-size: 13px;
}

.td11-row input[type="text"],
.td11-row input[type="number"],
.td11-row select {
    min-width: 0;
    width: 100%;
    height: 27px;
    border: 1px solid #d3dadd;
    background: #fff;
    padding: 2px 5px;
    outline: none;
}

.td11-inline {
    display: flex;
    gap: 7px;
    align-items: center;
}

.td11-inline input[type="text"],
.td11-inline input[type="number"] {
    flex: 1 1 auto;
}

.td11-inline select {
    width: 68px;
    flex: 0 0 68px;
}

.td11-inline input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin: 0;
}

.td11-small-checks {
    display: flex;
    gap: 35px;
    padding: 7px 0 8px 112px;
}

.td11-search-list {
    position: relative;
}

.td11-search-results {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 27px;
    max-height: 295px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #c5cdd1;
    z-index: 9999;
}

.td11-search-results.open {
    display: block;
}

.td11-search-item {
    min-height: 18px;
    padding: 2px 5px;
    font-size: 12px;
    cursor: default;
}

.td11-search-item:hover {
    background: #dcecf4;
}

.td11-result-table {
    width: 100%;
    height: 100%;
    overflow: auto;
    background: #fff;
}

.td11-result-row {
    min-height: 27px;
    border-bottom: 1px solid #e8e8e8;
    font-size: 12px;
    cursor: default;
}

.td11-result-row:hover {
    background: #edf5f8;
}

.td11-vehicle-grid {
    display: grid;
    grid-template-columns: 24px 1fr 125px 60px 60px 60px 77px;
}

.td11-engine-grid {
    display: grid;
    grid-template-columns: 24px 1fr 60px 60px 60px 55px;
}

.td11-model-grid {
    display: grid;
    grid-template-columns: 24px 1fr 180px;
}

.td11-cell {
    padding: 6px 8px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.td11-status {
    padding: 15px;
    color: #666;
    font-size: 12px;
}

/* V2C */
.td11-history-model {
    margin-top: -2px;
}

.td11-result-row.selected {
    background: #4aa6cf !important;
}

.td11-result-row .td11-cell:first-child {
    text-align: center;
}


/* ASCARS RESULT HEADERS V1 */

.result-head {
    width: 100%;
    height: 27px;
    min-height: 27px;
    background: #d3d5d6;
    border-top: 1px solid #b6b8b9;
    border-bottom: 1px solid #aeb0b1;
    box-sizing: border-box;
    overflow: hidden;
}

.result-columns {
    display: grid;
    width: 100%;
    height: 26px;
    min-height: 26px;
    align-items: stretch;
    box-sizing: border-box;
    font-size: 12px;
    font-weight: normal;
    color: #000;
}

.result-columns .td11-head-cell {
    display: flex;
    align-items: center;
    min-width: 0;
    height: 26px;
    padding: 0 6px;
    border-right: 1px solid #bfc1c2;
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.result-columns .td11-head-cell:first-child {
    padding: 0;
    justify-content: center;
}

.result-columns .td11-head-cell:last-child {
    border-right: 0;
}

/*
 Header and data rows intentionally use the SAME
 td11-vehicle-grid / td11-engine-grid / td11-model-grid
 column templates, so every title stays exactly aligned.
*/


/* ==================================================================
   ASCARS VEHICLE DETAILS POPUP V1
   Magnifier only
   ================================================================== */

.td11-vehicle-actions {
    padding: 3px 2px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.td11-vehicle-details-btn {
    width: 18px;
    height: 18px;
    min-width: 18px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #2b88ad;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.td11-vehicle-details-btn:hover {
    color: #176f94;
    background: #d7eaf2;
}

.td11-vehicle-details-btn:focus {
    outline: 1px dotted #2b88ad;
    outline-offset: 1px;
}

.td11-vehicle-details-btn svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.td11-details-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.18);
}

.td11-details-window {
    width: 570px;
    max-width: calc(100vw - 60px);
    max-height: calc(100vh - 70px);
    background: #f3f3f3;
    border: 1px solid #7d8589;
    box-shadow: 0 7px 28px rgba(0, 0, 0, 0.34);
    display: flex;
    flex-direction: column;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
}

.td11-details-titlebar {
    height: 30px;
    min-height: 30px;
    background: #2b88ad;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 10px;
    font-size: 13px;
    font-weight: 600;
    box-sizing: border-box;
}

.td11-details-title-close {
    width: 32px;
    height: 29px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 20px;
    line-height: 20px;
    cursor: pointer;
}

.td11-details-title-close:hover {
    background: rgba(255, 255, 255, 0.16);
}

.td11-details-body {
    background: #fff;
    padding: 14px 18px 12px;
    overflow-y: auto;
    min-height: 180px;
}

.td11-details-grid {
    display: grid;
    grid-template-columns: 185px minmax(0, 1fr);
    border-top: 1px solid #d7d7d7;
    border-left: 1px solid #d7d7d7;
}

.td11-detail-label,
.td11-detail-value {
    min-height: 27px;
    padding: 5px 8px;
    box-sizing: border-box;
    border-right: 1px solid #d7d7d7;
    border-bottom: 1px solid #d7d7d7;
    line-height: 16px;
}

.td11-detail-label {
    background: #e7e8e9;
    color: #333;
    font-weight: 600;
}

.td11-detail-value {
    background: #fff;
    color: #222;
    white-space: normal;
    word-break: break-word;
}

.td11-details-loading,
.td11-details-error {
    padding: 30px 15px;
    text-align: center;
    color: #555;
}

.td11-details-error {
    color: #9c2929;
}

.td11-details-footer {
    height: 42px;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 10px;
    border-top: 1px solid #c4c4c4;
    background: #e7e8e9;
    box-sizing: border-box;
}

.td11-details-close-button {
    min-width: 78px;
    height: 26px;
    padding: 0 15px;
    border: 1px solid #8f969a;
    background: linear-gradient(#ffffff, #dddddd);
    color: #222;
    font-size: 12px;
    cursor: pointer;
}

.td11-details-close-button:hover {
    background: linear-gradient(#ffffff, #d2e7f0);
    border-color: #2b88ad;
}


/* ==================================================================
   TECDOC11 VEHICLE DETAILS DESIGN V2
   ================================================================== */

.td11-details-window {
    width: 465px !important;
    max-width: calc(100vw - 28px) !important;
    max-height: calc(100vh - 28px) !important;
}

.td11-details-titlebar {
    min-height: 28px !important;
    padding: 0 10px !important;
    display: flex !important;
    align-items: center !important;
    font-size: 13px !important;
}

.td11-details-body {
    padding: 10px 10px 0 !important;
    overflow-y: auto !important;
}

.td11-details-v2 {
    width: 100%;
    border-left: 1px solid #d4dce0;
    border-right: 1px solid #d4dce0;
    box-sizing: border-box;
}

.td11-details-v2-section {
    margin: 0;
    padding: 0;
}

.td11-details-v2-section-title {
    height: 25px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    padding: 0 10px;

    background: #d0d0d0;
    color: #111;

    font-size: 14px;
    font-weight: 400;

    border-top: 1px solid #c4c4c4;
    border-bottom: 1px solid #c4c4c4;
}

.td11-details-v2-section-body {
    width: 100%;
}

.td11-details-v2-row {
    display: grid;
    grid-template-columns: 185px minmax(0, 1fr);

    min-height: 26px;
    box-sizing: border-box;

    background: #fff;

    border-bottom: 1px solid #dde3e6;
}

.td11-details-v2-label,
.td11-details-v2-value {
    display: flex;
    align-items: center;

    min-width: 0;
    padding: 4px 10px;
    box-sizing: border-box;

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

    white-space: normal;
    overflow-wrap: anywhere;
}

.td11-details-v2-label {
    color: #5b6266;
    font-weight: 400;

    border-right: 1px solid #dde3e6;
}

.td11-details-v2-value {
    color: #111;
    font-weight: 400;
}

.td11-details-footer {
    min-height: 48px !important;
    box-sizing: border-box !important;

    padding: 9px 10px !important;

    background: #c6d7df !important;
    border-top: 1px solid #b3c5cd !important;
}

.td11-details-close-button {
    min-width: 72px;
    height: 28px;
}


/* ==================================================================
   TECDOC11 VEHICLE DETAILS FINAL VISUAL V3
   ================================================================== */

.td11-details-window {
    width: 465px !important;
}

.td11-details-titlebar {
    height: 31px !important;
    min-height: 31px !important;
    padding: 0 10px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.td11-details-body {
    padding: 10px 10px 0 !important;
}

.td11-details-v2-section-title {
    height: 25px !important;
    padding: 0 10px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    background: #d0d0d0 !important;
}

.td11-details-v2-row {
    min-height: 26px !important;
    grid-template-columns: 185px minmax(0,1fr) !important;
}

.td11-details-v2-label,
.td11-details-v2-value {
    padding: 4px 10px !important;
    font-size: 12px !important;
}

.td11-details-footer {
    height: 51px !important;
    min-height: 51px !important;

    padding: 10px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;

    background: #bfd3dd !important;
}

.td11-details-exit-button {
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;

    padding: 4px !important;
    margin: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: #6597c0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    cursor: pointer !important;
}

.td11-details-exit-button:hover {
    background: #4f85b1 !important;
}

.td11-details-exit-button svg {
    width: 21px !important;
    height: 21px !important;

    fill: none !important;
    stroke: #fff !important;
    stroke-width: 1.8 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}


/* ==================================================================
   TECDOC11 VEHICLE GRID ORIGINAL-LIKE V1
   ================================================================== */

.td11-vehicle-grid {
    grid-template-columns:
        50px
        minmax(270px, 1fr)
        128px
        58px
        58px
        62px
        118px !important;
}

.td11-vehicle-actions {
    padding: 0 3px !important;
    display: flex !important;
    align-items: center !important;
    gap: 2px !important;
}

.td11-vehicle-details-btn,
.td11-vehicle-start-btn {
    width: 20px !important;
    min-width: 20px !important;
    height: 20px !important;

    padding: 2px !important;
    margin: 0 !important;

    border: 0 !important;
    background: transparent !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    cursor: pointer !important;
}

.td11-vehicle-details-btn svg,
.td11-vehicle-start-btn svg {
    width: 16px !important;
    height: 16px !important;

    fill: none !important;
    stroke: #187ba7 !important;
    stroke-width: 1.8 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.td11-vehicle-start-btn svg {
    stroke: #707070 !important;
}

.td11-vehicle-details-btn:hover,
.td11-vehicle-start-btn:hover {
    background: #e2eef3 !important;
}

.td11-result-row.td11-selected-vehicle {
    background: #39a0c9 !important;
}

.td11-result-row.td11-selected-vehicle .td11-cell {
    color: #111 !important;
}


/* ==================================================================
   TECDOC11 TOP VEHICLE SELECTION LAYOUT
   ================================================================== */

.mid-title {
    height: 24px !important;
    min-height: 24px !important;

    display: flex !important;
    align-items: center !important;

    padding: 0 4px !important;

    white-space: nowrap !important;
    overflow: hidden !important;

    font-size: 13px !important;
    line-height: 24px !important;
}

/*
 * Parent row containing:
 * Show vehicles for country/country group + select
 */
.middle *:has(> .td11-country-label) {
    display: grid !important;

    grid-template-columns:
        220px
        minmax(0, 1fr) !important;

    column-gap: 8px !important;

    align-items: center !important;

    min-height: 30px !important;

    padding-top: 2px !important;
    padding-bottom: 4px !important;

    box-sizing: border-box !important;
}

.td11-country-label {
    display: block !important;

    min-width: 0 !important;

    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;

    font-size: 12px !important;
    line-height: 24px !important;
}

.middle *:has(> .td11-country-label) > select {
    width: 100% !important;
    min-width: 0 !important;

    height: 26px !important;

    box-sizing: border-box !important;
}


/* ==================================================================
   TECDOC11 ASSEMBLY TREE V1
   ================================================================== */

.td11-assembly-screen {
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.td11-assembly-title {
    height: 28px;
    min-height: 28px;
    display: flex;
    align-items: center;
    padding: 0 8px;

    font-size: 15px;
    font-weight: 600;

    background: #efefef;
    border-bottom: 1px solid #d5d5d5;
}

.td11-assembly-search-wrap {
    padding: 5px 8px 6px;
    background: #f3f3f3;
}

.td11-assembly-search-label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 3px;
}

.td11-assembly-search {
    width: 100%;
    height: 26px;
    box-sizing: border-box;

    border: 1px solid #c4cbd0;
    background: #fff;

    padding: 2px 6px;
}

.td11-tree-scroll {
    flex: 1;
    min-height: 0;

    overflow-y: auto;
    overflow-x: hidden;

    background: #fff;

    border-top: 1px solid #d6d6d6;
}

.td11-tree-node {
    display: block;
}

.td11-tree-node-row {
    width: 100%;
    min-height: 25px;

    display: flex;
    align-items: center;

    gap: 4px;

    padding-top: 2px;
    padding-right: 5px;
    padding-bottom: 2px;

    border: 0;
    border-bottom: 1px solid #ececec;

    background: #fff;

    text-align: left;

    font: inherit;
    font-size: 12px;

    cursor: pointer;
}

.td11-tree-node-row:hover {
    background: #e8f3f8;
}

.td11-tree-node-row.selected {
    background: #3ba0ca;
    color: #fff;
}

.td11-tree-toggle {
    width: 12px;
    min-width: 12px;

    font-size: 16px;
    line-height: 16px;
    text-align: center;
}

.td11-tree-node-text {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.td11-tree-children {
    display: block;
}

.td11-tree-status {
    padding: 10px;
    color: #555;
    font-size: 12px;
}


/* RIGHT SIDE */

.td11-brand-selection {
    height: 100%;
    min-height: 0;

    display: flex;
    flex-direction: column;

    box-sizing: border-box;

    background: #fff;
}

.td11-brand-title {
    height: 31px;
    min-height: 31px;

    display: flex;
    align-items: center;

    padding: 0 10px;

    background: #d3d3d3;

    border-bottom: 1px solid #bdbdbd;

    font-size: 14px;
}

.td11-brand-head {
    display: grid;
    grid-template-columns: 36% 64%;

    height: 29px;
    min-height: 29px;

    background: #e5e5e5;

    border-bottom: 1px solid #c5c5c5;
}

.td11-brand-head > div {
    display: flex;
    align-items: center;

    padding: 0 8px;

    font-size: 12px;

    border-right: 1px solid #c7c7c7;
}

.td11-brand-body {
    flex: 1;
    min-height: 0;

    overflow-y: auto;
}

.td11-product-group-row {
    width: 100%;

    display: grid;
    grid-template-columns: 36% 64%;

    min-height: 26px;

    padding: 0;

    border: 0;
    border-bottom: 1px solid #e3e3e3;

    background: #fff;

    text-align: left;

    cursor: pointer;

    font: inherit;
    font-size: 12px;
}

.td11-product-group-row:hover {
    background: #eaf4f8;
}

.td11-product-brand-cell,
.td11-product-group-cell {
    min-width: 0;

    display: flex;
    align-items: center;

    padding: 4px 8px;

    box-sizing: border-box;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.td11-product-brand-cell {
    border-right: 1px solid #e0e0e0;
}


/* TECDOC11 BRAND PRODUCT SELECTED V1 */

.td11-product-group-row.selected {
    background: #3ba0ca;
    color: #fff;
}


/* ================================================================
   TECDOC11 ASSEMBLY BACK V1
   Final visual tuning will be done later.
   ================================================================ */

.td11-assembly-title {
    gap: 0 !important;
    padding-left: 0 !important;
}

.td11-assembly-back {
    width: 38px;
    height: 28px;
    min-width: 38px;

    margin: 0 8px 0 0;
    padding: 0;

    border: 0;
    border-right: 1px solid #c8c8c8;

    background: #e6e6e6;

    font-size: 20px;
    line-height: 28px;

    cursor: pointer;
}

.td11-assembly-back:hover {
    background: #d4d4d4;
}

