.aiota-dashboard-filters input,
.aiota-dashboard-filters select {
    min-width: 140px;
    padding: 6px 8px;
}

.aiota-dashboard-filters label {
    font-size: 12px;
    font-weight: 600;
}

.aiota-filter-box {
    position: relative;
    min-width: 160px;
}

.aiota-filter-toggle {
    width: 100%;
    min-width: 160px;
    padding: 7px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aiota-filter-dropdown {
    display: none;
    position: absolute;
    z-index: 9999;
    top: 100%;
    left: 0;
    width: 240px;
    max-height: 280px;
    overflow: auto;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 8px;
    margin-top: 6px;
}

.aiota-filter-dropdown.is-open {
    display: block;
}

.aiota-filter-actions {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e5e7eb;
}

.aiota-filter-actions button {
    font-size: 11px;
    padding: 3px 7px;
    cursor: pointer;
}

.aiota-filter-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 2px;
    cursor: pointer;
}

.aiota-filter-option input {
    min-width: auto;
}

.aiota-chart-card {
    width: 100%;
    background: transparent;
}

.aiota-chart-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.aiota-chart-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

.aiota-chart-inner {
    min-width: 520px;
    position: relative;
}

.aiota-chart-canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.aiota-chart-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.aiota-chart-title {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 10px;
}

.aiota-chart-toolbar {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.aiota-chart-toolbar button {
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #f8fafc;
    color: #334155;
    border-radius: 10px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.aiota-chart-toolbar button:hover {
    background: #eef6ff;
    color: #1d4ed8;
}

.aiota-chart-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
}

.aiota-chart-scroll::-webkit-scrollbar {
    height: 7px;
}

.aiota-chart-scroll::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.45);
    border-radius: 999px;
}

.aiota-chart-inner {
    min-width: 620px;
    position: relative;
}

.aiota-chart-canvas {
    width: 100% !important;
}

.aiota-chart-error {
    color: #b91c1c;
    font-size: 13px;
}

.aiota-chart-empty {
    color: #64748b;
    font-size: 13px;
}

.aiota-chart-canvas {
    cursor: grab;
}

.aiota-chart-canvas.is-dragging {
    cursor: grabbing;
}

.aiota-chart-toolbar button:focus,
.aiota-chart-toolbar button:active {
    outline: none;
    background: #f8fafc;
    color: #334155;
    box-shadow: none;
}

.aiota-chart-toolbar button:focus-visible {
    outline: 2px solid rgba(47, 133, 255, 0.25);
}

.aiota-chart-inner {
    height: 320px;
}

.aiota-kpi-big {
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    color: #3f3f46;
}

.aiota-kpi-medium {
    font-size: 23px;
    font-weight: 800;
    line-height: 1.1;
    color: #3f3f46;
}

.aiota-kpi-small {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    color: #3f3f46;
}

.aiota-mini-chart-wrap {
    position: relative;
    display: inline-block;
}

.aiota-mini-chart-canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.aiota-mini-chart-wrap {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.aiota-mini-chart-canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.aiota-text-output {
    line-height: 1.95;
    font-size: 14px;
}

.aiota-text-fa {
    direction: rtl;
    text-align: right;
    font-family: Tahoma, Arial, sans-serif;
}

.aiota-text-ltr {
    direction: ltr;
    text-align: left;
}

.aiota-mini-css-chart {
    width: var(--aiota-mini-size);
    height: var(--aiota-mini-size);
    display: inline-block;
    border-radius: 999px;
    background:
        conic-gradient(
            var(--aiota-mini-color) 0 var(--aiota-mini-value),
            #e5e7eb var(--aiota-mini-value) 100%
        );
    position: relative;
    vertical-align: middle;
}

.aiota-mini-css-chart::after {
    content: "";
    position: absolute;
    inset: 24%;
    background: #ffffff;
    border-radius: 999px;
}

.aiota-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.aiota-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
}

.aiota-data-table th,
.aiota-data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    white-space: nowrap;
}

.aiota-data-table th {
    font-weight: 800;
    color: #111827;
    background: #f8fafc;
}

.aiota-pie-css-wrap {
    width: 100%;
}

.aiota-pie-css-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.aiota-pie-label {
    width: 70px;
    font-size: 13px;
    color: #374151;
}

.aiota-pie-bar {
    flex: 1;
    height: 10px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.aiota-pie-fill {
    height: 100%;
    background: #2f85ff;
    border-radius: 999px;
}

.aiota-pie-value {
    width: 45px;
    font-size: 12px;
    text-align: right;
    color: #6b7280;
}

.aiota-trade-log-wrap {
    width: 100%;
    max-height: 720px;
    overflow: auto;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
}

.aiota-trade-log-table {
    min-width: 980px;
}

.aiota-trade-log-table th {
    position: sticky;
    top: 0;
    z-index: 2;
}

.aiota-trade-log-table td {
    vertical-align: middle;
}

.aiota-trade-log-table td:last-child {
    text-align: center;
}

.aiota-trade-log-wrap {
    width: 100%;
    max-height: 720px;
    overflow: auto;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.aiota-trade-log-table {
    min-width: 980px;
    border-collapse: separate;
    border-spacing: 0;
}

.aiota-trade-log-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 14px 14px;
    border-bottom: 1px solid #e5e7eb;
}

.aiota-trade-log-table tbody td {
    padding: 13px 14px;
    font-size: 13px;
    color: #334155;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
    background: #ffffff;
}

.aiota-trade-log-table tbody tr:hover td {
    background: #f8fbff;
}

.aiota-trade-log-table td:last-child,
.aiota-trade-log-table th:last-child {
    text-align: center;
}

.aiota-chart-not-ready {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}