.adb {
    --adb-surface: #ffffff;
    --adb-page: #f5f6f8;
    --adb-ink: #0f172a;
    --adb-ink-2: #475569;
    --adb-ink-3: #94a3b8;
    --adb-line: #e2e8f0;
    --adb-grid: #eef1f5;
    --adb-series: #2a78d6;
    --adb-series-soft: #dbe8f8;
    --adb-accent: var(--primary-color, #ca3c19);
    --adb-good: #16a34a;
    --adb-warn: #d97706;
    --adb-bad: #dc2626;
    padding: 12px 16px 24px;
    background: var(--adb-page);
    min-height: 100%;
    color: var(--adb-ink);
    font-variant-numeric: tabular-nums;
}

.adb-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.adb-title h1 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.adb-title h1 .fas {
    color: var(--adb-accent);
}

.adb-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.adb-muted {
    color: var(--adb-ink-2);
    font-size: 12px;
}

.adb-err {
    color: var(--adb-bad);
    font-size: 12px;
}

.adb-good {
    color: var(--adb-good);
}

.adb-chips {
    display: inline-flex;
    border: 1px solid var(--adb-line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--adb-surface);
}

.adb-chips button {
    border: 0;
    background: transparent;
    padding: 6px 10px;
    font-size: 13px;
    color: var(--adb-ink-2);
    cursor: pointer;
}

.adb-chips button + button {
    border-left: 1px solid var(--adb-line);
}

.adb-chips button.on {
    background: var(--adb-accent);
    color: #fff;
}

.adb-btn,
.adb-select,
.adb-date {
    height: 32px;
    border: 1px solid var(--adb-line);
    border-radius: 8px;
    background: var(--adb-surface);
    color: var(--adb-ink);
    font-size: 13px;
    padding: 0 10px;
}

.adb-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.adb-btn:hover:not(:disabled) {
    border-color: var(--adb-ink-3);
}

.adb-btn:disabled {
    opacity: .55;
    cursor: default;
}

.adb-primary {
    background: var(--adb-accent);
    border-color: var(--adb-accent);
    color: #fff;
}

.adb-search {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    border: 1px solid var(--adb-line);
    border-radius: 8px;
    background: var(--adb-surface);
    padding: 0 8px;
}

.adb-search .fas {
    color: var(--adb-ink-3);
    font-size: 12px;
}

.adb-search input {
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 13px;
    width: 170px;
}

.adb-x {
    border: 0;
    background: transparent;
    color: var(--adb-ink-3);
    cursor: pointer;
    padding: 2px 4px;
    line-height: 1;
}

.adb-x:hover {
    color: var(--adb-bad);
}

.adb-add {
    position: relative;
}

.adb-add-menu {
    position: absolute;
    right: 0;
    top: 36px;
    z-index: 50;
    min-width: 240px;
    max-height: 420px;
    overflow: auto;
    background: var(--adb-surface);
    border: 1px solid var(--adb-line);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .14);
    padding: 6px;
}

.adb-add-group {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--adb-ink-3);
    padding: 8px 8px 4px;
}

.adb-add-menu button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    border: 0;
    background: transparent;
    padding: 7px 8px;
    border-radius: 6px;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.adb-add-menu button:hover {
    background: var(--adb-page);
}

.adb-add-menu .fas {
    width: 16px;
    color: var(--adb-ink-2);
}

.adb-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    margin: 6px 0;
    border-radius: 8px;
    font-size: 13px;
    background: #eef4fc;
    color: #1e4f8a;
}

.adb-banner-edit {
    background: #fff7ed;
    color: #9a3412;
}

.adb-banner-err {
    background: #fef2f2;
    color: #991b1b;
}

.adb-grid {
    margin: 0 -6px;
}

.adb-w {
    display: flex;
    flex-direction: column;
    background: var(--adb-surface);
    border: 1px solid var(--adb-line);
    border-radius: 12px;
    overflow: hidden !important;
}

.adb-w-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--adb-ink-2);
    flex: none;
}

.adb-w-head .fas {
    color: var(--adb-ink-3);
    font-size: 12px;
}

.adb-w-title {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.adb-editing .adb-w {
    border-style: dashed;
    border-color: #f0b49f;
}

.adb-editing .adb-w-head {
    cursor: move;
    background: #fffaf7;
}

.adb-w-body {
    flex: 1;
    min-height: 0;
    padding: 4px 12px 10px;
    overflow: auto;
    position: relative;
}

.adb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 100%;
    min-height: 40px;
    color: var(--adb-ink-3);
    font-size: 13px;
    text-align: center;
}

.adb-kpi {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
}

.adb-kpi-icon {
    width: 38px;
    height: 38px;
    flex: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--adb-series-soft);
    color: var(--adb-series);
}

.adb-kpi-main {
    min-width: 0;
}

.adb-kpi-value {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
}

.adb-kpi-sub {
    font-size: 12px;
    color: var(--adb-ink-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.adb-kpi-warn .adb-kpi-icon {
    background: #fef3c7;
    color: var(--adb-warn);
}

.adb-kpi-bad .adb-kpi-icon {
    background: #fee2e2;
    color: var(--adb-bad);
}

.adb-kpi-good .adb-kpi-icon {
    background: #dcfce7;
    color: var(--adb-good);
}

.adb-col {
    display: flex;
    height: 100%;
    min-height: 120px;
    gap: 6px;
}

.adb-col-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 11px;
    color: var(--adb-ink-3);
    text-align: right;
    padding-bottom: 18px;
    min-width: 34px;
}

.adb-col-axis span {
    transform: translateY(-6px);
}

.adb-col-axis span:last-child {
    transform: translateY(6px);
}

.adb-col-plot {
    flex: 1;
    position: relative;
    min-width: 0;
}

.adb-col-grid {
    position: absolute;
    inset: 0 0 18px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.adb-col-grid i {
    display: block;
    border-top: 1px solid var(--adb-grid);
}

.adb-col-grid i:last-child {
    border-top-color: var(--adb-line);
}

.adb-col-bars {
    position: absolute;
    inset: 0;
    display: flex;
    gap: 2px;
}

.adb-col-slot {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    outline: none;
}

.adb-col-track {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.adb-col-bar {
    width: 100%;
    max-width: 24px;
    min-height: 1px;
    background: var(--adb-series);
    border-radius: 4px 4px 0 0;
}

.adb-col-slot:hover .adb-col-track,
.adb-col-slot:focus .adb-col-track {
    background: rgba(42, 120, 214, .06);
}

.adb-col-label {
    height: 18px;
    font-size: 11px;
    color: var(--adb-ink-3);
    text-align: center;
    white-space: nowrap;
    line-height: 18px;
}

.adb-tip {
    display: none;
    position: absolute;
    bottom: calc(100% - 20px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    background: var(--adb-ink);
    color: #fff;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
    flex-direction: column;
    gap: 2px;
}

.adb-col-slot:hover .adb-tip,
.adb-col-slot:focus .adb-tip {
    display: flex;
}

.adb-col-slot:first-child .adb-tip {
    left: 0;
    transform: none;
}

.adb-col-slot:last-child .adb-tip {
    left: auto;
    right: 0;
    transform: none;
}

.adb-bars {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.adb-bar-row {
    display: grid;
    grid-template-columns: minmax(90px, 38%) 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 3px 4px;
    border-radius: 6px;
    font-size: 12px;
}

.adb-bar-row:hover {
    background: var(--adb-page);
}

.adb-bar-row.adb-click {
    cursor: pointer;
}

.adb-bar-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--adb-ink);
}

.adb-bar-track {
    height: 10px;
}

.adb-bar-fill {
    height: 100%;
    min-width: 2px;
    background: var(--adb-series);
    border-radius: 0 4px 4px 0;
}

.adb-bar-val {
    min-width: 48px;
    text-align: right;
    color: var(--adb-ink-2);
}

.adb-table,
.adb-feed-table {
    overflow: auto;
    height: 100%;
}

.adb-table table,
.adb-feed-table table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 12px;
}

.adb-table th,
.adb-feed-table th {
    position: sticky;
    top: 0;
    background: var(--adb-surface);
    text-align: left;
    font-weight: 600;
    color: var(--adb-ink-2);
    padding: 6px;
    border-bottom: 1px solid var(--adb-line);
    z-index: 1;
}

.adb-table td,
.adb-feed-table td {
    padding: 5px 6px;
    border-bottom: 1px solid var(--adb-grid);
    vertical-align: middle;
}

.adb-table tr.on td {
    background: #eef4fc;
}

.adb-r {
    text-align: right !important;
}

.adb-num {
    font-variant-numeric: tabular-nums;
}

.adb-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.adb-link {
    border: 0;
    background: transparent;
    padding: 0;
    color: #1d5fb0;
    cursor: pointer;
    font-size: 12px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.adb-link:hover {
    text-decoration: underline;
}

.adb-tag {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 6px;
    background: var(--adb-page);
    border: 1px solid var(--adb-line);
    font-size: 11px;
    color: var(--adb-ink-2);
}

.adb-feed {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 6px;
}

.adb-feed-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    flex: none;
}

.adb-feed-filter select {
    height: 30px;
    border: 1px solid var(--adb-line);
    border-radius: 8px;
    background: var(--adb-surface);
    font-size: 12px;
    padding: 0 8px;
    max-width: 220px;
}

.adb-feed-filter .adb-search {
    height: 30px;
}

.adb-feed-table {
    flex: 1;
    min-height: 0;
}

.adb-more {
    display: flex;
    justify-content: center;
    padding: 8px 0;
}

.adb .grid-stack-placeholder > .placeholder-content {
    border: 2px dashed #f0b49f;
    border-radius: 12px;
    background: rgba(202, 60, 25, .05);
}

@media (max-width: 768px) {
    .adb {
        padding: 10px 12px 20px;
    }

    .adb-search input {
        width: 120px;
    }
}

.adb-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: var(--adb-ink-3);
    cursor: help;
    flex: none;
    outline: none;
}

.adb-info .fas {
    font-size: 13px;
    color: inherit !important;
}

.adb-info:hover,
.adb-info:focus {
    color: #1d5fb0;
    background: #eef4fc;
}

.adb-pop {
    display: none;
    position: fixed;
    z-index: 3000;
    max-width: 340px;
    background: #0f172a;
    color: #f8fafc;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 12.5px;
    line-height: 1.5;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .25);
    pointer-events: none;
}

.adb-pop-title {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 6px;
}

.adb-pop-sec + .adb-pop-sec {
    margin-top: 6px;
}

.adb-pop-sec b {
    display: block;
    color: #93c5fd;
    font-weight: 600;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.adb-pop-sec p {
    margin: 2px 0 0;
}

.adb-save-state {
    margin-left: auto;
    font-weight: 600;
    white-space: nowrap;
}

.adb-help-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .35);
    z-index: 1990;
}

.adb-help {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(520px, 100vw);
    background: var(--adb-surface);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    box-shadow: -12px 0 30px rgba(15, 23, 42, .18);
}

.adb-help-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--adb-line);
}

.adb-help-head h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.adb-help-head h2 .fas {
    color: var(--adb-accent);
}

.adb-help-body {
    flex: 1;
    overflow: auto;
    padding: 6px 18px 24px;
    font-size: 13px;
    line-height: 1.55;
}

.adb-help-body section {
    padding: 12px 0;
    border-bottom: 1px solid var(--adb-grid);
}

.adb-help-body h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 8px;
}

.adb-help-body p {
    margin: 0 0 8px;
}

.adb-help-body ul {
    margin: 0;
    padding-left: 18px;
}

.adb-help-item {
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--adb-page);
    margin-bottom: 8px;
}

.adb-help-title {
    font-weight: 700;
    margin-bottom: 2px;
}

.adb-help-title .fas {
    color: var(--adb-ink-3);
    width: 16px;
}

.adb-help-module {
    font-weight: 700;
    margin: 10px 0 4px;
}

.adb-help-sources li {
    margin-bottom: 3px;
}

.adb-btn-sm {
    height: 28px;
    font-size: 12px;
    padding: 0 8px;
}

.adb-btn-danger {
    color: #dc2626;
    border-color: #fecaca;
}

.adb-flex {
    flex: 1;
}

.adb-edit {
    font-size: 11px;
}

.adb-add-new {
    font-weight: 600;
    color: var(--primary-color, #ca3c19) !important;
}

.adb-cw {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.adb-cw-busy {
    position: absolute;
    top: -2px;
    right: 0;
    z-index: 3;
    color: #94a3b8;
    font-size: 12px;
}

.adb-chart {
    flex: 1;
    min-height: 0;
    width: 100%;
}

.adb-cw-note {
    font-size: 11px;
    color: #94a3b8;
    text-align: right;
}

.adb-cw-kpi,
.adb-cw-progress {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    height: 100%;
}

.adb-cw-kpi-label {
    font-size: 12px;
    color: #475569;
}

.adb-cw-kpi-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
    color: #0f172a;
}

.adb-cw-kpi-cmp {
    font-size: 12px;
    color: #475569;
}

.adb-cw-kpi-cmp .up,
.adb-cw-kpi-cmp .down,
.adb-cw-kpi-cmp .flat {
    font-weight: 700;
    margin-right: 4px;
}

.adb-cw-kpi-cmp .up {
    color: #1d5fb0;
}

.adb-cw-kpi-cmp .down {
    color: #9a3412;
}

.adb-cw-kpi-more {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    font-size: 12px;
    color: #475569;
    margin-top: 4px;
}

.adb-cw-progress-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.adb-cw-progress-track {
    height: 10px;
    border-radius: 999px;
    background: #eef1f5;
    overflow: hidden;
    margin-top: 6px;
}

.adb-cw-progress-track > div {
    height: 100%;
    background: #2a78d6;
    border-radius: 999px;
}

.adb-cw-table {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 4px;
}

.adb-cw-table-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: none;
}

.adb-cw-table .adb-table {
    flex: 1;
    min-height: 0;
}

.adb-builder {
    position: fixed;
    inset: 24px;
    z-index: 2000;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #0f172a;
}

.adb-builder-body {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(380px, 560px) 1fr;
}

.adb-builder-form {
    overflow: auto;
    padding: 4px 18px 18px;
    border-right: 1px solid #e2e8f0;
}

.adb-builder-side {
    overflow: auto;
    padding: 4px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #f8fafc;
}

.adb-builder section {
    padding: 12px 0;
    border-bottom: 1px solid #eef1f5;
}

.adb-builder h3 {
    font-size: 13.5px;
    font-weight: 700;
    margin: 0 0 8px;
}

.adb-input {
    height: 32px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0 8px;
    font-size: 13px;
    background: #fff;
    width: 100%;
    min-width: 0;
}

textarea.adb-input {
    height: auto;
    padding: 6px 8px;
    margin-top: 6px;
    resize: vertical;
}

.adb-input-sm {
    width: 150px;
    flex: none;
}

.adb-input-num {
    width: 80px;
    flex: none;
}

.adb-form-row,
.adb-form-line {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.adb-form-row label {
    white-space: nowrap;
    font-size: 13px;
}

.adb-radio {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
}

.adb-radio label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.adb-radio-inline {
    flex-direction: row;
    gap: 14px;
}

.adb-ds-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.adb-ds {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    text-align: left;
    font-size: 12.5px;
    cursor: pointer;
}

.adb-ds .fas {
    color: #94a3b8;
    width: 16px;
}

.adb-ds.on {
    border-color: #2a78d6;
    background: #eef4fc;
}

.adb-ds.on .fas {
    color: #2a78d6;
}

.adb-ds-desc {
    margin: 8px 0 0;
    line-height: 1.5;
}

.adb-check-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 10px;
    font-size: 13px;
}

.adb-check-grid label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.adb-filter {
    padding: 8px;
    border: 1px solid #eef1f5;
    border-radius: 10px;
    margin-bottom: 8px;
    background: #fbfcfd;
}

.adb-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.adb-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 4px 2px 8px;
    border-radius: 999px;
    background: #eef4fc;
    color: #1e4f8a;
    font-size: 12px;
}

.adb-chip button {
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 10px;
}

.adb-picker {
    margin-top: 6px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    padding: 6px;
}

.adb-picker .adb-search {
    width: 100%;
}

.adb-picker .adb-search input {
    width: 100%;
}

.adb-picker-list {
    max-height: 220px;
    overflow: auto;
    margin: 6px 0;
    font-size: 12.5px;
}

.adb-picker-list label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 4px;
    border-radius: 6px;
}

.adb-picker-list label:hover {
    background: #f5f6f8;
}

.adb-picker-foot {
    display: flex;
    justify-content: flex-end;
}

.adb-viz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 6px;
}

.adb-viz-group {
    grid-column: 1 / -1;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #94a3b8;
    margin-top: 4px;
}

.adb-viz {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    font-size: 12px;
    cursor: pointer;
}

.adb-viz .fas {
    font-size: 16px;
    color: #64748b;
}

.adb-viz.on {
    border-color: #2a78d6;
    background: #eef4fc;
    color: #1e4f8a;
}

.adb-viz.on .fas {
    color: #2a78d6;
}

.adb-viz-opts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin-top: 10px;
    font-size: 13px;
}

.adb-viz-opts label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.adb-swatches {
    display: inline-flex;
    gap: 4px;
}

.adb-swatches button {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #cbd5e1;
    cursor: pointer;
    padding: 0;
}

.adb-swatches button.on {
    box-shadow: 0 0 0 2px #0f172a;
}

.adb-hint {
    margin-top: 10px;
    font-size: 12.5px;
    color: #9a3412;
    background: #fff7ed;
    border-radius: 8px;
    padding: 6px 10px;
}

.adb-preview {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-bottom: 0 !important;
}

.adb-preview-box {
    height: 420px;
    flex: none;
}

.adb-explain {
    margin-top: 10px;
    font-size: 12.5px;
    line-height: 1.55;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 12px;
}

.adb-builder-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-top: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.adb-share {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

@media (max-width: 900px) {
    .adb-builder {
        inset: 0;
        border-radius: 0;
    }

    .adb-builder-body {
        grid-template-columns: 1fr;
        overflow: auto;
    }

    .adb-builder-form,
    .adb-builder-side {
        overflow: visible;
    }
}

.adb-builder-top {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 18px;
    border-bottom: 1px solid #e2e8f0;
}

.adb-builder-top h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.adb-builder-top h2 .fas {
    color: var(--primary-color, #ca3c19);
}

.adb-steps {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 4px;
}

.adb-step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
}

.adb-step:disabled {
    opacity: .45;
    cursor: default;
}

.adb-step-no {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    background: #eef1f5;
    color: #475569;
}

.adb-step.done .adb-step-no {
    background: #dcfce7;
    color: #15803d;
}

.adb-step.on {
    background: #eef4fc;
    color: #1e4f8a;
    font-weight: 600;
}

.adb-step.on .adb-step-no {
    background: #2a78d6;
    color: #fff;
}

.adb-pad {
    padding: 12px;
}

.adb-legacy {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.adb-search-full {
    display: flex;
    width: 100%;
}

.adb-search-full input {
    flex: 1;
    width: auto;
}

.adb-fn-list {
    margin-top: 6px;
    max-height: 240px;
    overflow: auto;
    border: 1px solid #eef1f5;
    border-radius: 10px;
    padding: 4px;
}

.adb-fn-item {
    display: grid;
    grid-template-columns: 18px 1fr auto;
    align-items: center;
    gap: 8px;
    width: 100%;
    border: 0;
    background: transparent;
    padding: 7px 8px;
    border-radius: 8px;
    text-align: left;
    font-size: 13px;
    cursor: pointer;
}

.adb-fn-item .fas {
    color: #94a3b8;
}

.adb-fn-item:hover {
    background: #f5f6f8;
}

.adb-fn-item.on {
    background: #eef4fc;
    box-shadow: inset 0 0 0 1px #2a78d6;
}

.adb-fn-item.on .fas {
    color: #2a78d6;
}

.adb-fn-item-name {
    font-family: Consolas, monospace;
    font-size: 12.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.adb-params {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.adb-param-row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: center;
    gap: 6px;
}

.adb-param {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.adb-param b {
    font-family: Consolas, monospace;
    font-size: 12px;
    font-weight: 600;
    color: #1e4f8a;
    overflow: hidden;
    text-overflow: ellipsis;
}

.adb-param .adb-muted {
    font-size: 11px;
}

.adb-fn-tools {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.adb-fn-tools .adb-search {
    flex: 1;
}

.adb-fn-tools .adb-search input {
    width: 100%;
}

.adb-fn-cols {
    max-height: 420px;
    overflow: auto;
    border: 1px solid #eef1f5;
    border-radius: 10px;
    background: #fbfcfd;
}

.adb-fn-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px 8px;
    border-bottom: 1px solid #eef1f5;
}

.adb-fn-col:last-child {
    border-bottom: 0;
}

.adb-fn-col.off {
    opacity: .65;
}

.adb-fn-col-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.adb-fn-name {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-family: Consolas, monospace;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.adb-fn-name span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.adb-fn-type {
    font-size: 11.5px;
    flex: none;
}

.adb-input-type {
    width: 84px;
    height: 28px;
    flex: none;
}

.adb-fn-col-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 6px;
    padding-left: 22px;
}

.adb-input-unit {
    width: 100%;
}

@media (max-width: 900px) {
    .adb-builder-top {
        flex-wrap: wrap;
    }

    .adb-steps {
        order: 3;
        flex-basis: 100%;
        justify-content: flex-start;
        overflow-x: auto;
    }

    .adb-param-row {
        grid-template-columns: 1fr;
    }
}

.adb-builder,
.adb-builder *,
.adb-builder *::before,
.adb-builder *::after {
    box-sizing: border-box;
}

.adb-builder .adb-input,
.adb-builder textarea,
.adb-builder select,
.adb-builder button {
    font-family: inherit;
}
