.dropdown-toggle::after {
    display: none;
}

.doHoverEffect > a:hover {
    text-decoration: underline;
    font-weight: bold;
}
.vertical-line {
    border-left: 0.1px solid rgba(102, 101, 101, 0.82);
    height: 276px;
    margin-top: 2vh;
    margin-bottom: 2vh;
}
.m-2vh {
    margin: 2vh;
}
.details {
    display: flex;
    font-weight: bolder;
    align-items: center;
}

.input_Search {
    padding-left: 14px;
    border-radius: 6px;
}

    .input_Search:focus {
        outline: none;
    }

.search {
    display: block;
    width: 160px;
    height: 5px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.25;
    color: #4e5154;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #666ee8 !important;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.resp-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
}

.resp-item {
    white-space: nowrap;
    margin-left: 5px;
    margin-top: 5px;
}

.color-thead {
    color: white;
}

.weight {
    text-align: center;
    font-weight: bolder;
}

h4 {
    color: white;
}

.excluir {
    color: red;
}

.icon_dash {
    color: #016ecb;
}

.navbar-black {
    color: black;
}
.ml-10px{
  margin-left:10px;
}
.pl-10px{
    padding-left:10px;
}
.w-194px{
  width:194px;
}
.mr-50px {
    margin-right: 50px;
}
.pb-3px {
    padding-bottom: 3px;
}
.fs-14px{
    font-size:14px;
}
.ml-60px {
    margin-left: 60px;
}
.ml-48 {
    margin-left: 48px;
}
.ml-47px {
    margin-left: 47px;
}
.fb-13 {
    flex-basis: 13%;
}
.bf-8 {
    flex-basis: 8%;
}
.norap {
    flex-flow: nowrap;
}
.input_filtro_People {
    border: 1px solid #ffc107;
    border-radius: 5px;
    width: 133px !important;   
    padding: 2px;
}
    .input_filtro_People:focus{
        outline:none;
    }
    /*#region */
    @media(max-width:1115px) {
        .fz-md-11 {
            font-size: 11px;
        }
       
    }
}
.form-group {
    text-align: center;
    padding: 2em 0;
}
.form-group h1 {
    font-size: 30px;
    font-weight: 500;
}
.form-group h2 {
    font-size: 15px;
}
.form-group .form-floating {
    margin: 1em 0;
}
.form-group p {
    margin-top: 5px;
    margin-bottom: 0;
}
.form-group button {
    margin: 1em 0;
}

/*#endregion*/

/* ============================================================
   SIDEBAR LAYOUT
   ============================================================ */
.wrapper {
    display: flex;
    min-height: 100vh;
}

/* --- Sidebar base (desktop) --- */
.sidebar {
    width: 230px;
    min-height: 100vh;
    background-color: #1e3a5f;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    transition: width 0.25s ease, left 0.25s ease;
    overflow-x: hidden;
    overflow-y: hidden;
}

/* Desktop: colapsa para ícones */
.sidebar.collapsed { width: 60px; }
.sidebar.collapsed .sidebar-label,
.sidebar.collapsed .sidebar-arrow  { display: none; }
.sidebar.collapsed .sidebar-footer { display: none; }
.sidebar.collapsed .collapse.show  { display: none !important; }
.sidebar.collapsed .sidebar-brand img { width: 36px; max-width: 36px; }

/* --- Logo / brand --- */
.sidebar-brand {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sidebar-brand img { max-width: 160px; transition: all 0.25s; }

/* --- Lista de navegação --- */
.sidebar-nav {
    list-style: none;
    padding: 6px 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }

.sidebar-item { position: relative; }

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: rgba(255,255,255,0.82);
    text-decoration: none !important;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    white-space: nowrap;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}
.sidebar-link:hover              { background: rgba(255,255,255,0.12); color: #ffffff; }
.sidebar-link:not(.collapsed)    { background: rgba(255,255,255,0.10); color: #ffffff; }
.sidebar-link i.sidebar-icon     { width: 18px; text-align: center; font-size: 14px; flex-shrink: 0; }
.sidebar-label                   { flex: 1; }
.sidebar-arrow {
    font-size: 10px;
    transition: transform 0.2s;
    margin-left: auto;
    flex-shrink: 0;
}
.sidebar-link:not(.collapsed) .sidebar-arrow { transform: rotate(90deg); }

/* Submenu */
.sidebar-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(0,0,0,0.18);
}
.sidebar-submenu li a {
    display: block;
    padding: 7px 14px 7px 44px;
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    text-decoration: none !important;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}
.sidebar-submenu li a:hover { color: #ffffff; background: rgba(255,255,255,0.08); }

/* Footer da sidebar (usuário logado) */
.sidebar-footer {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 12px 16px;
    font-size: 12px;
    color: rgba(255,255,255,0.75);
    flex-shrink: 0;
}
.sidebar-footer .user-name {
    display: block;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
    color: #ffffff;
}
.sidebar-footer .btn-sair {
    background: none;
    border: none;
    padding: 0;
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
}
.sidebar-footer .btn-sair:hover { color: #ffffff; }

/* Overlay escuro (mobile) */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
    backdrop-filter: blur(1px);
    transition: opacity 0.25s;
}
.sidebar-overlay.active { display: block; }

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
    height: 52px;
    background: #ffffff;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    flex-shrink: 0;
}
.sidebar-toggle-btn {
    background: none;
    border: none;
    padding: 6px 8px;
    font-size: 20px;
    color: #495057;
    cursor: pointer;
    border-radius: 6px;
    line-height: 1;
    flex-shrink: 0;
}
.sidebar-toggle-btn:hover { background: #f0f0f0; color: #1e3a5f; }
.topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}
.topbar-right a {
    color: #495057;
    text-decoration: none;
    font-size: 13px;
}
.topbar-right a:hover { color: #1e3a5f; }

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
.main-wrapper {
    margin-left: 230px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.25s ease;
    flex: 1;
    min-width: 0;
}
.main-wrapper.sidebar-collapsed { margin-left: 60px; }

.main-content {
    padding: 20px;
    flex: 1;
}

/* ============================================================
   FOOTER
   ============================================================ */
.app-footer {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 10px 20px;
    font-size: 12px;
    color: #6c757d;
    flex-shrink: 0;
}

/* ============================================================
   RESPONSIVIDADE
   ============================================================ */

/* Tablet (≤992px): sidebar já começa colapsada */
@media (max-width: 992px) and (min-width: 769px) {
    .sidebar {
        width: 60px;
    }
    .sidebar .sidebar-label,
    .sidebar .sidebar-arrow  { display: none; }
    .sidebar .sidebar-footer { display: none; }
    .sidebar .collapse.show  { display: none !important; }
    .sidebar .sidebar-brand img { width: 36px; max-width: 36px; }
    /* Quando o toggler expande no tablet */
    .sidebar.tablet-expanded {
        width: 230px;
    }
    .sidebar.tablet-expanded .sidebar-label,
    .sidebar.tablet-expanded .sidebar-arrow  { display: inline; }
    .sidebar.tablet-expanded .sidebar-footer { display: block; }
    .sidebar.tablet-expanded .sidebar-brand img { width: 160px; max-width: 160px; }
    .main-wrapper { margin-left: 60px; }
    .main-wrapper.sidebar-collapsed { margin-left: 60px; }
}

/* Mobile (≤768px): sidebar some para fora da tela, volta como drawer overlay */
@media (max-width: 768px) {
    .sidebar {
        left: -230px;       /* escondida fora da tela */
        width: 230px !important;
        box-shadow: none;
        /* garantir que labels e footer apareçam quando aberta */
    }
    .sidebar .sidebar-label,
    .sidebar .sidebar-arrow  { display: inline !important; }
    .sidebar .sidebar-footer { display: block !important; }
    .sidebar .sidebar-brand img { width: 160px !important; max-width: 160px !important; }
    /* Drawer aberto */
    .sidebar.mobile-open {
        left: 0;
        box-shadow: 4px 0 24px rgba(0,0,0,0.35);
    }
    /* Conteúdo ocupa 100% da tela */
    .main-wrapper,
    .main-wrapper.sidebar-collapsed {
        margin-left: 0 !important;
    }
    .main-content {
        padding: 14px;
    }
    .topbar {
        padding: 0 12px;
    }
}

/* ============================================================
   LOGIN PAGE — DESIGN MODERNO
   ============================================================ */

/* Página inteira: fundo gradiente azul corporativo */
.login-page {
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(135deg, #0d1f3c 0%, #1e3a5f 45%, #1a5fa8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* Círculos decorativos de fundo */
.login-page::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    top: -100px;
    right: -80px;
    pointer-events: none;
}
.login-page::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    bottom: -80px;
    left: -60px;
    pointer-events: none;
}

/* Card branco centralizado */
.login-card {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35), 0 4px 16px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
}

/* Cabeçalho colorido do card com logo */
.login-card-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #1a5fa8 100%);
    padding: 36px 36px 28px;
    text-align: center;
    position: relative;
}
.login-card-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 24px;
    background: #ffffff;
    border-radius: 24px 24px 0 0;
}
.login-logo img {
    width: 190px;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

/* Corpo do card com o formulário */
.login-card-body {
    padding: 24px 36px 32px;
}
.login-subtitle {
    text-align: center;
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 22px;
    font-weight: 400;
}

/* Inputs flutuantes */
.login-card .form-floating {
    margin-bottom: 14px;
}
.login-card .form-control {
    border-radius: 10px;
    border: 1.5px solid #dee2e6;
    font-size: 14px;
    height: 52px;
    background-color: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.login-card .form-control:focus {
    border-color: #1e3a5f;
    box-shadow: 0 0 0 3px rgba(30,58,95,0.1);
    background-color: #ffffff;
    outline: none;
}
.login-card .form-floating > label {
    font-size: 14px;
    color: #8a9ab0;
    padding: 0 12px;
}
.login-card .form-floating > .form-control:focus ~ label,
.login-card .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: #1e3a5f;
    font-size: 12px;
}

/* Checkbox lembrar-me */
.login-remember {
    margin: 2px 0 18px;
}
.login-remember .form-check-input:checked {
    background-color: #1e3a5f;
    border-color: #1e3a5f;
}
.login-remember .form-check-label {
    font-size: 13px;
    color: #6c757d;
    cursor: pointer;
}

/* Botão Entrar */
.btn-login {
    display: block;
    width: 100%;
    padding: 13px;
    background: linear-gradient(90deg, #1e3a5f 0%, #1a6fd4 100%);
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #ffffff !important;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(30,58,95,0.35);
}
.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26,111,212,0.45);
    opacity: 0.96;
}
.btn-login:active {
    transform: translateY(0);
}

/* Links do rodapé */
.login-links {
    margin-top: 20px;
    font-size: 13px;
    text-align: center;
    color: #8a9ab0;
    line-height: 2;
}
.login-links a {
    color: #1e3a5f;
    text-decoration: none;
    font-weight: 500;
}
.login-links a:hover {
    color: #1a6fd4;
    text-decoration: underline;
}
.login-separator {
    color: #ced4da;
    margin: 0 8px;
}

/* ============================================================
   HOME DASHBOARD
   ============================================================ */
.home-dashboard {
    padding: 6px 0 24px;
}

/* Cabeçalho da página */
.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.dashboard-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 3px;
    letter-spacing: -0.2px;
}
.dashboard-subtitle {
    font-size: 12.5px;
    color: #8a9ab0;
    margin: 0;
    text-transform: capitalize;
}

/* Grid de stat cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}
@media (max-width: 1100px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px)  { .stats-grid { grid-template-columns: 1fr; } }

.stat-card {
    background: #ffffff;
    border-radius: 12px;
    border-left: 4px solid #1e3a5f;
    box-shadow: 0 2px 8px rgba(0,0,0,0.055);
    padding: 18px 20px 12px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.09);
}
.stat-card--blue   { border-left-color: #1e3a5f; }
.stat-card--green  { border-left-color: #059669; }
.stat-card--amber  { border-left-color: #d97706; }
.stat-card--purple { border-left-color: #7c3aed; }

.stat-card-body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.stat-label {
    display: block;
    font-size: 10.5px;
    color: #9dafc2;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 7px;
}
.stat-value {
    font-size: 34px;
    font-weight: 800;
    color: #1a2b4a;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -1px;
}
.stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
}
.stat-footer {
    font-size: 11px;
    color: #c4d0db;
    margin-top: 13px;
    padding-top: 10px;
    border-top: 1px solid #f0f3f6;
}

/* Cards de gráfico */
.chart-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.055);
    overflow: hidden;
    margin-bottom: 16px;
}
.chart-card--flush {
    margin-bottom: 0;
}
.chart-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px 0;
    flex-wrap: wrap;
}
.chart-card-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #1a2b4a;
}
.chart-card-badge {
    margin-left: auto;
    font-size: 11px;
    background: #f0f4fa;
    color: #5a7a9e;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 500;
}
.chart-card-subtitle {
    font-size: 12px;
    color: #adb5bd;
}
.chart-card-body {
    padding: 14px 18px 18px;
}
.chart-card-body canvas {
    max-height: 280px;
}
.chart-card-body--bar,
.chart-card-body--bar-lg,
.chart-card-body--line {
    height: 320px;
}
.chart-card-body--bar-lg {
    height: 380px;
}
.chart-card-body--bar canvas,
.chart-card-body--bar-lg canvas,
.chart-card-body--line canvas {
    width: 100% !important;
    height: 100% !important;
    max-height: none;
}
.chart-card-body--donut {
    display: flex;
    justify-content: center;
    padding: 14px 24px 20px;
}
.chart-card-body--donut canvas {
    max-height: 260px;
    max-width: 260px;
}

/* Linha de 2 doughnuts do Dashboard */
.dashboard-charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.dashboard-panel {
    display: none;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}
.dashboard-grid-item--full {
    grid-column: 1 / -1;
}
.weighing-dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 16px;
}
.weighing-dashboard-main,
.weighing-dashboard-side,
.weighing-dashboard-small-grid {
    min-width: 0;
}
.weighing-dashboard-small-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.weighing-dashboard .chart-card {
    margin-bottom: 0;
}
.weighing-dashboard .chart-card-body--hero {
    height: 360px;
}
.weighing-dashboard .chart-card-body--feature {
    height: 420px;
}
.weighing-dashboard .chart-card-body--compact {
    height: 240px;
}
.weighing-dashboard .chart-card-body--hero canvas,
.weighing-dashboard .chart-card-body--feature canvas,
.weighing-dashboard .chart-card-body--compact canvas {
    width: 100% !important;
    height: 100% !important;
    max-height: none;
}
.insights-dashboard {
    padding-bottom: 24px;
}
.insights-filter-card .form-actions-bar {
    justify-content: flex-end;
}
.insights-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}
.insights-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}
.insights-stat-value {
    font-size: 26px;
    line-height: 1.15;
    word-break: break-word;
}
.insights-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 16px;
}
.insights-grid .chart-card {
    margin-bottom: 0;
}
.insights-grid-item--wide {
    grid-column: 1 / -1;
}
.insights-table th,
.insights-table td {
    white-space: nowrap;
}
.insights-alert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.insights-alert {
    border: 1px solid #e5e7eb;
    border-left-width: 4px;
    border-radius: 8px;
    padding: 12px 14px;
    background: #ffffff;
}
.insights-alert-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #1a2b4a;
    font-size: 13px;
    font-weight: 700;
}
.insights-alert-value {
    color: #111827;
    font-size: 26px;
    font-weight: 800;
    margin-top: 4px;
}
.insights-alert-detail {
    color: #6b7280;
    font-size: 12px;
    margin-top: 2px;
}
.insights-alert--success {
    border-left-color: #059669;
}
.insights-alert--warning {
    border-left-color: #d97706;
}
.insights-alert--danger {
    border-left-color: #dc2626;
}
.insights-alert--muted {
    color: #8a9ab0;
}
.dashboard-legacy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}
.dashboard-legacy-grid > .row {
    display: contents;
}
.dashboard-legacy-grid > .row > [class*="col-"] {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.055);
    padding: 16px 20px 18px !important;
    margin: 0 !important;
}
.dashboard-legacy-grid > .row > [class*="col-"] h5 {
    font-size: 13.5px;
    font-weight: 700;
    color: #1a2b4a !important;
    margin: 0 0 14px !important;
    text-align: left !important;
}
.dashboard-legacy-grid > .row > [class*="col-"] .d-flex,
.dashboard-legacy-grid > .row > [class*="col-"] .w-50,
.dashboard-legacy-grid > .row > [class*="col-"] .w-100 {
    width: 100% !important;
    height: 100% !important;
}
.dashboard-legacy-grid > .row > [class*="col-"] canvas {
    width: 100% !important;
    height: 320px !important;
    max-height: none;
}
.dashboard-legacy-grid .vertical-line {
    display: none;
}
.dashboard-legacy-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}
.dashboard-legacy-row {
    display: contents;
}
.dashboard-legacy-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.055);
    padding: 16px 20px 18px;
    margin: 0 !important;
}
.dashboard-legacy-card--full {
    grid-column: 1 / -1;
}
.dashboard-legacy-card > p {
    font-size: 13.5px;
    font-weight: 700;
    color: #1a2b4a !important;
    margin: 0 0 14px !important;
    text-align: left !important;
}
.dashboard-legacy-card canvas {
    width: 100% !important;
    height: 320px !important;
    max-height: none;
}
@media (max-width: 768px) {
    .dashboard-charts-row { grid-template-columns: 1fr; }
    .chart-card-body--bar,
    .chart-card-body--line {
        height: 280px;
    }
    .chart-card-body--bar-lg {
        height: 340px;
    }
    .weighing-dashboard {
        grid-template-columns: 1fr;
    }
    .weighing-dashboard-small-grid {
        grid-template-columns: 1fr;
    }
    .insights-grid {
        grid-template-columns: 1fr;
    }
    .weighing-dashboard .chart-card-body--hero,
    .weighing-dashboard .chart-card-body--feature,
    .weighing-dashboard .chart-card-body--compact {
        height: 280px;
    }
    .dashboard-legacy-grid > .row > [class*="col-"] canvas,
    .dashboard-legacy-card canvas {
        height: 280px !important;
    }
}

/* Tela de boas-vindas (operador / sem permissão) */
.welcome-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 180px);
}
.welcome-inner {
    text-align: center;
    max-width: 480px;
    padding: 40px 20px;
}
.welcome-logo {
    width: 260px;
    max-width: 100%;
    margin-bottom: 24px;
    opacity: 0.9;
}
.welcome-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 10px;
}
.welcome-sub {
    font-size: 14px;
    color: #8a9ab0;
    line-height: 1.65;
    margin: 0;
}
.pending-icon {
    font-size: 52px;
    color: #d97706;
    margin-bottom: 16px;
}

/* ============================================================
   PAGE LAYOUT — HEADER, CARDS, TOOLBAR, TABELA, FORMULÁRIO
   ============================================================ */

/* --- Cabeçalho de página --- */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.page-title {
    font-size: 19px;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 3px;
    letter-spacing: -0.2px;
}
.page-subtitle {
    font-size: 12.5px;
    color: #8a9ab0;
    margin: 0;
}

/* --- Page card genérico --- */
.page-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.055);
    overflow: hidden;
    margin-bottom: 16px;
}
.page-card-header {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #f0f3f6;
    gap: 8px;
}
.page-card-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #1a2b4a;
    flex: 1;
}
.page-card-body {
    padding: 18px 20px;
}
.page-card-body.p-0 { padding: 0; }
.page-card-footer {
    padding: 12px 20px;
    border-top: 1px solid #f0f3f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.pagination-info {
    font-size: 12px;
    color: #9dafc2;
}

/* --- Toolbar --- */
.toolbar-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.toolbar-left  { display: flex; align-items: center; gap: 8px; flex: 1; flex-wrap: wrap; }
.toolbar-right { display: flex; align-items: center; gap: 8px; }

/* --- Search box --- */
.search-box {
    display: flex;
    align-items: center;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.search-box:focus-within {
    border-color: #1e3a5f;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(30,58,95,0.08);
}
.search-box-icon  { padding: 0 10px; color: #9dafc2; font-size: 13px; flex-shrink: 0; }
.search-box-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    color: #374151;
    padding: 8px 4px;
    min-width: 180px;
}
.search-box-btn {
    background: #1e3a5f;
    border: none;
    color: #ffffff;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}
.search-box-btn:hover { background: #1a6fd4; }

/* --- Botão de toolbar (borda cinza) --- */
.btn-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 8px;
    border: 1.5px solid #dee2e6;
    background: #ffffff;
    color: #495057;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none !important;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    white-space: nowrap;
    line-height: 1.3;
}
.btn-toolbar:hover { border-color: #1e3a5f; color: #1e3a5f; background: #f0f4fa; }

/* --- Botão de ação da página (filled) --- */
.btn-page-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    border: none;
    transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
    white-space: nowrap;
}
.btn-page-action--primary {
    background: #1e3a5f;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(30,58,95,0.2);
}
.btn-page-action--primary:hover {
    background: #1a6fd4;
    box-shadow: 0 4px 14px rgba(26,111,212,0.3);
    transform: translateY(-1px);
}
.btn-page-action--ghost {
    background: transparent;
    color: #1e3a5f !important;
    border: 1.5px solid #1e3a5f;
}
.btn-page-action--ghost:hover { background: #e8f0fe; }

/* --- Data table --- */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.data-table thead tr { background: #f8fafc; }
.data-table th {
    padding: 11px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.55px;
    color: #8a9ab0;
    border-bottom: 1px solid #f0f3f6;
    text-align: left;
    white-space: nowrap;
}
.data-table th a { color: #8a9ab0 !important; text-decoration: none; }
.data-table th a:hover { color: #1e3a5f !important; }
.data-table td {
    padding: 11px 16px;
    color: #374151;
    border-bottom: 1px solid #f7f8fa;
    vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: #fafbfd; }

/* --- Botões de ação na tabela --- */
.btn-tbl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 7px;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    font-size: 12px;
    transition: filter 0.15s, transform 0.12s;
    margin: 0 2px;
}
.btn-tbl:hover { filter: brightness(0.88); transform: scale(1.1); }
.btn-tbl--view   { background: #e8f0fe; color: #1e3a5f !important; }
.btn-tbl--edit   { background: #fef3c7; color: #b45309 !important; }
.btn-tbl--delete { background: #fee2e2; color: #dc2626 !important; }

/* --- Status badge --- */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    gap: 3px;
}
.status-badge--active   { background: #d1fae5; color: #059669; }
.status-badge--inactive { background: #fee2e2; color: #dc2626; }

/* --- Paginação --- */
.pagination-bar { display: flex; align-items: center; gap: 6px; }
.btn-page {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 7px;
    border: 1.5px solid #dee2e6;
    background: #ffffff;
    color: #495057;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none !important;
    transition: border-color 0.15s, color 0.15s;
}
.btn-page:hover:not(.disabled) { border-color: #1e3a5f; color: #1e3a5f; }
.btn-page.disabled { opacity: 0.38; pointer-events: none; }

/* ============================================================
   FORM — CREATE / EDIT
   ============================================================ */

/* Grid de campos (2 colunas) */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* Inputs flutuantes herdados do layout */
.page-card .form-floating .form-control {
    border-radius: 9px;
    border: 1.5px solid #dee2e6;
    background: #f8fafc;
    font-size: 13.5px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.page-card .form-floating .form-control:focus {
    border-color: #1e3a5f;
    box-shadow: 0 0 0 3px rgba(30,58,95,0.09);
    background: #ffffff;
}
.page-card .form-floating label { font-size: 13px; color: #8a9ab0; }

/* Campo com label acima (para selects) */
.form-field-group { display: flex; flex-direction: column; gap: 6px; }
.form-field-label { font-size: 12px; font-weight: 600; color: #6b7a8d; text-transform: uppercase; letter-spacing: 0.5px; }

/* Toggle switch (Status) */
.form-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1.5px solid #f0f3f6;
}
.form-toggle-label { font-size: 13.5px; font-weight: 600; color: #374151; display: block; }
.form-toggle-hint  { font-size: 11.5px; color: #9dafc2; display: block; margin-top: 2px; }
.toggle-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute;
    inset: 0;
    background: #dee2e6;
    border-radius: 24px;
    transition: background 0.2s;
    cursor: pointer;
}
.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: #ffffff;
    border-radius: 50%;
    left: 3px;
    top: 3px;
    transition: transform 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}
.toggle-switch input:checked + .toggle-slider { background: #1e3a5f; }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); }

/* --- Billing type cards --- */
.billing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
@media (max-width: 768px) { .billing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .billing-grid { grid-template-columns: 1fr 1fr; } }

.billing-option { cursor: pointer; margin: 0; }
.billing-option input { display: none; }
.billing-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 12px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: #fafbfd;
    transition: all 0.15s;
    text-align: center;
}
.billing-option:hover .billing-card {
    border-color: #9dafc2;
    background: #f0f4fa;
}
.billing-card--active {
    border-color: #1e3a5f !important;
    background: #e8f0fe !important;
    color: #1e3a5f;
}
.billing-card-icon {
    font-size: 22px;
    color: #9dafc2;
    transition: color 0.15s;
}
.billing-card--active .billing-card-icon { color: #1e3a5f; }
.billing-card-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7a8d;
    transition: color 0.15s;
}
.billing-card--active .billing-card-label { color: #1e3a5f; }

/* --- Barra de ações do formulário --- */
.form-actions-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding-bottom: 8px;
}

/* ============================================================
   SELECT2 — REDESIGN COMPLETO
   Cobre os temas "default" e "classic" (usado via theme:"classic")
   ============================================================ */

/* ── Container ─────────────────────────────────────────────── */
.select2-container {
    display: block !important;
    width: 100% !important;
    font-family: inherit;
    font-size: 13.5px;
}

/* ── Caixa de seleção única (single) ───────────────────────── */
.select2-container--default .select2-selection--single,
.select2-container--classic .select2-selection--single {
    height: 42px !important;
    border: 1.5px solid #dee2e6 !important;
    border-radius: 9px !important;
    background: #f8fafc !important;
    background-image: none !important;
    filter: none !important;
    outline: none;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

/* Texto selecionado — line-height = altura do container para centralizar */
.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--classic .select2-selection--single .select2-selection__rendered {
    color: #374151 !important;
    line-height: 40px !important;
    padding: 0 40px 0 12px !important;
    font-size: 13.5px !important;
    font-weight: 400 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

/* Placeholder */
.select2-container--default .select2-selection--single .select2-selection__placeholder,
.select2-container--classic .select2-selection--single .select2-selection__placeholder {
    color: #9dafc2 !important;
    font-size: 13.5px !important;
    font-weight: 400 !important;
}

/* Seta (arrow) — posicionamento absoluto, chevron via pseudo-element */
.select2-container--default .select2-selection--single .select2-selection__arrow,
.select2-container--classic .select2-selection--single .select2-selection__arrow {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 36px !important;
    height: 100% !important;
    background: none !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
/* Esconde o triângulo nativo */
.select2-container--default .select2-selection--single .select2-selection__arrow b,
.select2-container--classic .select2-selection--single .select2-selection__arrow b {
    display: none !important;
}
/* Desenha chevron moderno via pseudo-element */
.select2-container--default .select2-selection--single .select2-selection__arrow::after,
.select2-container--classic .select2-selection--single .select2-selection__arrow::after {
    content: '';
    display: block;
    width: 7px;
    height: 7px;
    border-right: 2px solid #8a9ab0;
    border-bottom: 2px solid #8a9ab0;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

/* Estado aberto — chevron aponta para cima */
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow::after,
.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow::after {
    transform: rotate(225deg) translateY(-2px);
    border-color: #1e3a5f;
}

/* Focus / aberto — borda azul + glow */
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--classic.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--classic.select2-container--focus .select2-selection--single {
    border-color: #1e3a5f !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(30,58,95,0.09) !important;
    outline: none !important;
}

/* Border-radius ao abrir para baixo */
.select2-container--default.select2-container--open.select2-container--below .select2-selection--single,
.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-bottom-color: transparent !important;
}
/* Border-radius ao abrir para cima */
.select2-container--default.select2-container--open.select2-container--above .select2-selection--single,
.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-top-color: transparent !important;
}

/* ── Dropdown (lista suspensa) ─────────────────────────────── */
.select2-dropdown,
.select2-container--default .select2-dropdown,
.select2-container--classic .select2-dropdown {
    border: 1.5px solid #1e3a5f !important;
    border-radius: 0 0 10px 10px !important;
    background: #ffffff !important;
    box-shadow: 0 8px 28px rgba(30,58,95,0.13) !important;
    overflow: hidden;
    animation: select2FadeIn 0.12s ease;
}
.select2-container--default .select2-dropdown--above,
.select2-container--classic .select2-dropdown--above {
    border-radius: 10px 10px 0 0 !important;
}

@keyframes select2FadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Campo de busca interno ────────────────────────────────── */
.select2-search--dropdown {
    padding: 8px 10px !important;
    border-bottom: 1px solid #f0f3f6;
}
.select2-container--default .select2-search--dropdown .select2-search__field,
.select2-container--classic  .select2-search--dropdown .select2-search__field {
    border: 1.5px solid #dee2e6 !important;
    border-radius: 7px !important;
    padding: 7px 10px !important;
    font-size: 13px !important;
    color: #374151 !important;
    background: #f8fafc !important;
    outline: none !important;
    width: 100% !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.select2-container--default .select2-search--dropdown .select2-search__field:focus,
.select2-container--classic  .select2-search--dropdown .select2-search__field:focus {
    border-color: #1e3a5f !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(30,58,95,0.08) !important;
}

/* ── Opções da lista ───────────────────────────────────────── */
.select2-container--default .select2-results > .select2-results__options,
.select2-container--classic  .select2-results > .select2-results__options {
    max-height: 220px !important;
    overflow-y: auto;
    padding: 4px 0;
}
/* Scrollbar customizada */
.select2-results__options::-webkit-scrollbar { width: 5px; }
.select2-results__options::-webkit-scrollbar-thumb { background: #d0dae6; border-radius: 4px; }
.select2-results__options::-webkit-scrollbar-thumb:hover { background: #a9bcd0; }

.select2-container--default .select2-results__option,
.select2-container--classic  .select2-results__option {
    padding: 9px 14px !important;
    font-size: 13.5px !important;
    color: #374151 !important;
    transition: background 0.1s, color 0.1s;
    cursor: pointer;
}

/* Hover */
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--classic  .select2-results__option--highlighted[aria-selected] {
    background-color: #f0f4fa !important;
    color: #1e3a5f !important;
}

/* Já selecionado */
.select2-container--default .select2-results__option[aria-selected=true],
.select2-container--classic  .select2-results__option[aria-selected=true] {
    background-color: #e8f0fe !important;
    color: #1e3a5f !important;
    font-weight: 600;
}

/* Desabilitado */
.select2-container--default .select2-results__option[aria-disabled=true],
.select2-container--classic  .select2-results__option[aria-disabled=true] {
    color: #c4d0db !important;
    cursor: not-allowed;
    font-style: italic;
}

/* ── Seleção múltipla (tags) ───────────────────────────────── */
.select2-container--default .select2-selection--multiple,
.select2-container--classic  .select2-selection--multiple {
    border: 1.5px solid #dee2e6 !important;
    border-radius: 9px !important;
    background: #f8fafc !important;
    min-height: 42px !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--classic.select2-container--focus  .select2-selection--multiple {
    border-color: #1e3a5f !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(30,58,95,0.09) !important;
    outline: none !important;
}
/* Tag chip */
.select2-container--default .select2-selection--multiple .select2-selection__choice,
.select2-container--classic  .select2-selection--multiple .select2-selection__choice {
    background-color: #e8f0fe !important;
    border: 1px solid #bed0f0 !important;
    border-radius: 6px !important;
    color: #1e3a5f !important;
    font-size: 12px !important;
    padding: 2px 8px !important;
    margin: 4px 4px 0 0 !important;
}
/* Botão × do chip */
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove,
.select2-container--classic  .select2-selection--multiple .select2-selection__choice__remove {
    color: #7a9cc2 !important;
    font-weight: 700;
    margin-right: 4px;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover,
.select2-container--classic  .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #dc2626 !important;
}

/* ── Estado desabilitado ───────────────────────────────────── */
.select2-container--default.select2-container--disabled .select2-selection--single,
.select2-container--classic.select2-container--disabled  .select2-selection--single {
    background: #f0f3f6 !important;
    border-color: #e5eaf0 !important;
    cursor: not-allowed;
    opacity: 0.7;
}

/* ── Z-index do dropdown acima de modais Bootstrap ─────────── */
.select2-container--open { z-index: 9999 !important; }

/* ════════════════════════════════════════════════════════════
   DETAIL GRID — visualização somente-leitura (Details / Delete)
   ════════════════════════════════════════════════════════════ */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px 28px;
}
.detail-item {}
.detail-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.55px;
    color: #8a9ab0;
    margin-bottom: 5px;
}
.detail-value {
    font-size: 13.5px;
    color: #1e293b;
    font-weight: 500;
}
.detail-value--muted { color: #9dafc2; font-style: italic; }

/* Billing cards somente-leitura (Details/Delete) */
.billing-card--readonly {
    pointer-events: none;
    opacity: 0.55;
}
.billing-card--readonly.billing-card--active {
    opacity: 1;
}

/* ── Aviso de exclusão ──────────────────────────────────────── */
.delete-warning {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #fff8f0;
    border: 1.5px solid #fcd7aa;
    border-radius: 10px;
    padding: 18px 20px;
}
.delete-warning-icon {
    font-size: 26px;
    color: #d97706;
    flex-shrink: 0;
    margin-top: 2px;
}
.delete-warning-text strong {
    display: block;
    font-size: 13.5px;
    color: #92400e;
    font-weight: 700;
    margin-bottom: 4px;
}
.delete-warning-text p {
    font-size: 13px;
    color: #b45309;
    margin: 0;
}

/* ── Botão de ação destrutiva ───────────────────────────────── */
.btn-page-action--danger {
    background: linear-gradient(90deg, #b91c1c, #dc2626);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: opacity 0.2s, box-shadow 0.2s;
    text-decoration: none;
}
.btn-page-action--danger:hover {
    opacity: 0.88;
    box-shadow: 0 4px 14px rgba(220,38,38,0.3);
    color: #fff;
}

/* ─── SweetAlert2 — Design System Theme ───────────────────────────────────── */
.swal-ds-popup {
    border-radius: 12px;
    font-family: inherit;
    padding: 28px 32px 24px;
    box-shadow: 0 8px 32px rgba(30, 58, 95, 0.18);
}
.swal-ds-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e3a5f;
    line-height: 1.4;
}
.swal-ds-btn-confirm {
    background: linear-gradient(90deg, #1e3a5f, #2d5a8e);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 9px 24px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, box-shadow 0.2s;
}
.swal-ds-btn-confirm:hover {
    opacity: 0.88;
    box-shadow: 0 4px 14px rgba(30, 58, 95, 0.3);
}
.swal-ds-btn-danger {
    background: linear-gradient(90deg, #b91c1c, #dc2626);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 9px 24px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, box-shadow 0.2s;
}
.swal-ds-btn-danger:hover {
    opacity: 0.88;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
}

.ops-panel {
    display: grid;
    grid-template-columns: minmax(300px, 360px) minmax(340px, 1fr) minmax(300px, 360px);
    gap: 1.25rem;
    align-items: start;
}

.ops-station,
.ops-scale-stage {
    border-radius: 24px;
    border: 1px solid rgba(30, 58, 95, 0.12);
    background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
    box-shadow: 0 18px 40px rgba(30, 58, 95, 0.08);
}

.ops-station {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.05rem;
}

.ops-gate-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 1.25rem;
    align-items: stretch;
}

.ops-station-header,
.ops-scale-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.ops-station-title,
.ops-scale-title {
    color: #16314f;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.ops-station-note,
.ops-scale-note {
    margin: 0.28rem 0 0;
    color: #6b7a90;
    font-size: 0.82rem;
    line-height: 1.45;
}

.ops-scale-subtitle,
.ops-status-label {
    color: #6b7a90;
    font-size: 0.82rem;
    font-weight: 600;
}

.ops-input-label {
    color: #16314f;
    font-size: 0.9rem;
    font-weight: 700;
}

.ops-station-chip {
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(23, 105, 170, 0.1);
    color: #15558a;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ops-device-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
}

.ops-device-title {
    color: #16314f;
    font-size: 0.9rem;
    font-weight: 700;
}

.ops-state-badge {
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
}

.ops-state-badge--green {
    background: rgba(27, 159, 84, 0.14);
    color: #0c7c40;
}

.ops-state-badge--red {
    background: rgba(205, 55, 55, 0.14);
    color: #b22222;
}

.ops-gate-badge {
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
}

.ops-gate-badge--open {
    background: rgba(23, 105, 170, 0.12);
    color: #15558a;
}

.ops-gate-badge--closed {
    background: rgba(217, 119, 6, 0.14);
    color: #b45309;
}

.ops-display-grid,
.ops-signal-grid {
    display: grid;
    gap: 0.9rem;
}

.ops-display-grid {
    grid-template-columns: 1fr;
}

.ops-signal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ops-display-card,
.ops-signal-card,
.ops-status-card,
.ops-gate-card {
    border-radius: 20px;
    border: 1px solid rgba(30, 58, 95, 0.1);
    background: rgba(255, 255, 255, 0.9);
}

.ops-display-card,
.ops-signal-card,
.ops-gate-card {
    padding: 1rem;
}

.ops-display-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ops-display-input {
    width: 100%;
    border: 1px solid rgba(30, 58, 95, 0.14);
    border-radius: 14px;
    padding: 0.8rem 1rem;
    font-size: 0.98rem;
    font-weight: 700;
    color: #16314f;
    background: #f8fbff;
    text-transform: uppercase;
}

.ops-display-input:focus {
    outline: none;
    border-color: rgba(30, 58, 95, 0.35);
    box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.08);
}

.ops-display-screen {
    position: relative;
    min-height: 74px;
    border-radius: 18px;
    border: 2px solid #202c39;
    padding: 0.85rem 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #111d2f 0%, #08111c 100%);
    color: #ff5f5f;
    font-size: clamp(0.95rem, 1.35vw, 1.28rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    font-family: "Consolas", "Courier New", monospace;
    text-shadow: 0 0 16px rgba(255, 95, 95, 0.35);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    box-shadow:
        inset 0 0 0 2px rgba(120, 145, 164, 0.22),
        inset 0 10px 18px rgba(255, 255, 255, 0.03),
        0 10px 18px rgba(15, 23, 42, 0.12);
    outline: 1px solid rgba(151, 181, 204, 0.18);
    outline-offset: -8px;
}

.ops-signal-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex: 1;
}

.ops-signal {
    width: 96px;
    padding: 0.9rem;
    border-radius: 28px;
    background: linear-gradient(180deg, #263140 0%, #151d29 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.ops-signal-light {
    width: 66px;
    height: 66px;
    margin: 0 auto;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 8px 14px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease;
}

.ops-signal--green .ops-signal-light--green {
    background: radial-gradient(circle at 35% 35%, #b8ffcf 0%, #29bf63 48%, #0c7c40 100%);
    box-shadow: 0 0 24px rgba(41, 191, 99, 0.5);
}

.ops-signal--red .ops-signal-light--red {
    background: radial-gradient(circle at 35% 35%, #ffd0d0 0%, #ff5959 48%, #b22222 100%);
    box-shadow: 0 0 24px rgba(255, 89, 89, 0.45);
}

.ops-toggle-btn {
    width: 100%;
    justify-content: center;
}

.ops-gate-card {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.ops-gate-visual {
    position: relative;
    min-height: 108px;
    border-radius: 18px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(21, 85, 138, 0.08), rgba(21, 85, 138, 0.02)),
        linear-gradient(180deg, #edf4fb 0%, #e4edf8 100%);
    border: 1px solid rgba(30, 58, 95, 0.08);
}

.ops-gate-pillar {
    position: absolute;
    bottom: 18px;
    width: 18px;
    height: 62px;
    border-radius: 10px;
    background: linear-gradient(180deg, #315372 0%, #19324d 100%);
}

.ops-gate-arm {
    position: absolute;
    top: 28px;
    width: 134px;
    height: 10px;
    border-radius: 999px;
    background:
        repeating-linear-gradient(
            90deg,
            #f8fafc 0 18px,
            #f8fafc 18px 22px,
            #dc2626 22px 38px,
            #dc2626 38px 42px
        );
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
    transition: transform 0.25s ease;
}

.ops-gate--left .ops-gate-pillar {
    left: 22px;
}

.ops-gate--left .ops-gate-arm {
    left: 31px;
    transform-origin: left center;
}

.ops-gate--right .ops-gate-pillar {
    right: 22px;
}

.ops-gate--right .ops-gate-arm {
    right: 31px;
    transform-origin: right center;
}

.ops-gate--left.ops-gate--up .ops-gate-arm {
    transform: rotate(-63deg);
}

.ops-gate--left.ops-gate--down .ops-gate-arm {
    transform: rotate(0deg);
}

.ops-gate--right.ops-gate--up .ops-gate-arm {
    transform: rotate(63deg);
}

.ops-gate--right.ops-gate--down .ops-gate-arm {
    transform: rotate(0deg);
}

.ops-scale-stage {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    overflow: hidden;
    background:
        radial-gradient(circle at top, rgba(38, 113, 190, 0.1), transparent 42%),
        linear-gradient(180deg, #f8fbff 0%, #edf2f8 100%);
}

.ops-scale-visual {
    position: relative;
    min-height: 430px;
    border-radius: 28px;
    overflow: hidden;
    background:
        linear-gradient(180deg, #eef4fa 0%, #dde7f0 58%, #d1dbe6 100%);
}

.ops-scale-ground {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 138px;
    background:
        linear-gradient(180deg, rgba(167, 138, 113, 0.18), rgba(167, 138, 113, 0)),
        linear-gradient(180deg, #d9c9b5 0%, #c7b299 100%);
}

.ops-scale-foundation {
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 54px;
    height: 56px;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(180deg, #c4ccd5 0%, #a7b0bb 100%);
    box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.28);
}

.ops-scale-platform {
    position: absolute;
    left: 14%;
    right: 14%;
    bottom: 112px;
    height: 108px;
}

.ops-scale-surface {
    position: absolute;
    left: 26px;
    right: 26px;
    top: 10px;
    bottom: 12px;
    border-radius: 8px;
    background: linear-gradient(180deg, #f2f5f7 0%, #e5eaef 100%);
    box-shadow:
        0 10px 24px rgba(15, 23, 42, 0.16),
        inset 0 -8px 0 rgba(209, 216, 224, 0.45);
}

.ops-scale-ramp {
    position: absolute;
    bottom: 10px;
    width: 44px;
    height: 24px;
    background: linear-gradient(180deg, #d6dce3 0%, #bcc6d2 100%);
}

.ops-scale-ramp--left {
    left: 0;
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.ops-scale-ramp--right {
    right: 0;
    clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.ops-scale-guard {
    position: absolute;
    top: 0;
    bottom: 8px;
    width: 18px;
    border-radius: 6px;
    background: linear-gradient(180deg, #2ba0ff 0%, #0f73d9 100%);
    box-shadow:
        inset 0 -4px 0 rgba(8, 47, 73, 0.18),
        0 6px 14px rgba(15, 115, 217, 0.18);
}

.ops-scale-guard--left {
    left: 12px;
}

.ops-scale-guard--right {
    right: 12px;
}

.ops-scale-surface-lines {
    position: absolute;
    left: 16%;
    right: 16%;
    top: 48px;
    display: flex;
    justify-content: space-between;
}

.ops-scale-surface-lines span {
    width: 12%;
    height: 4px;
    border-radius: 999px;
    background: rgba(121, 137, 153, 0.48);
}

.ops-loadcell-row {
    position: absolute;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.ops-loadcell-row--near {
    left: 16%;
    right: 16%;
    bottom: 62px;
}

.ops-loadcell-row--far {
    left: 18%;
    right: 18%;
    bottom: 76px;
    opacity: 0.78;
}

.ops-loadcell {
    position: relative;
    width: 48px;
    height: 60px;
}

.ops-loadcell-cap {
    position: absolute;
    left: 50%;
    top: 0;
    width: 24px;
    height: 18px;
    transform: translateX(-50%);
    border-radius: 10px;
    background: linear-gradient(180deg, #a7bac9 0%, #70859a 100%);
    box-shadow: 0 4px 10px rgba(51, 65, 85, 0.18);
}

.ops-loadcell-cap::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 8px;
    height: 8px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7);
}

.ops-loadcell-base {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 28px;
    border-radius: 8px 8px 4px 4px;
    background: linear-gradient(180deg, #d9dfe5 0%, #b5bfc9 100%);
    box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.28);
}

.ops-pickup {
    position: absolute;
    left: 28%;
    right: 20%;
    bottom: 164px;
    height: 96px;
}

.ops-pickup-shadow {
    position: absolute;
    left: 8%;
    right: 6%;
    bottom: 4px;
    height: 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.24);
    filter: blur(5px);
}

.ops-pickup-bed,
.ops-pickup-cab,
.ops-pickup-hood,
.ops-pickup-rail,
.ops-pickup-bumper,
.ops-pickup-step,
.ops-wheel-arch {
    position: absolute;
}

.ops-pickup-bed {
    left: 0;
    width: 44%;
    bottom: 28px;
    height: 26px;
    border-radius: 10px 6px 8px 10px;
    background: linear-gradient(180deg, #6b7785 0%, #465361 100%);
}

.ops-pickup-rail {
    left: 4%;
    width: 36%;
    bottom: 52px;
    height: 6px;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.78);
}

.ops-pickup-cab {
    left: 40%;
    width: 30%;
    bottom: 28px;
    height: 38px;
    border-radius: 12px 14px 8px 8px;
    background: linear-gradient(180deg, #64717f 0%, #455260 100%);
}

.ops-pickup-hood {
    right: 0;
    width: 34%;
    bottom: 30px;
    height: 24px;
    border-radius: 10px 18px 10px 8px;
    background: linear-gradient(180deg, #6b7785 0%, #485461 100%);
}

.ops-pickup-window {
    position: absolute;
    top: 18px;
    height: 14px;
    background: linear-gradient(180deg, #dbeafe 0%, #93c5fd 100%);
    border: 1px solid rgba(71, 85, 105, 0.22);
}

.ops-pickup-window--rear {
    left: 44%;
    width: 11%;
    border-radius: 5px 3px 3px 5px;
}

.ops-pickup-window--front {
    left: 56%;
    width: 12%;
    clip-path: polygon(0 0, 88% 0, 100% 100%, 0 100%);
    border-radius: 4px;
}

.ops-pickup-door {
    position: absolute;
    left: 59%;
    bottom: 30px;
    width: 2px;
    height: 30px;
    background: rgba(203, 213, 225, 0.48);
}

.ops-pickup-bumper {
    right: -2px;
    bottom: 28px;
    width: 18px;
    height: 10px;
    border-radius: 0 8px 8px 0;
    background: linear-gradient(180deg, #cbd5e1 0%, #94a3b8 100%);
}

.ops-pickup-mirror {
    position: absolute;
    left: 68%;
    bottom: 48px;
    width: 7px;
    height: 16px;
    border-radius: 6px;
    background: #334155;
}

.ops-pickup-step {
    left: 47%;
    bottom: 22px;
    width: 12%;
    height: 7px;
    border-radius: 999px;
    background: #2f3a46;
}

.ops-wheel {
    position: absolute;
    bottom: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0f172a;
    border: 5px solid #dce4ef;
    box-shadow: inset 0 0 0 3px #64748b;
}

.ops-wheel--front {
    right: 12%;
}

.ops-wheel--rear {
    left: 18%;
}

.ops-wheel-arch {
    bottom: 24px;
    width: 44px;
    height: 18px;
    border-radius: 22px 22px 0 0;
    background: linear-gradient(180deg, #51606e 0%, #3e4b58 100%);
}

.ops-wheel-arch--front {
    right: 8%;
}

.ops-wheel-arch--rear {
    left: 14%;
}

.ops-scale-status {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.ops-status-card {
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.ops-status-card strong {
    color: #16314f;
    font-size: 1.15rem;
}

.ops-indicator-stage .ops-scale-header {
    width: 100%;
}

.ops-indicator-stage {
    align-self: start;
    padding: 1.1rem 1.1rem 1.2rem;
    gap: 0.95rem;
}

.ops-indicator-shell {
    width: 100%;
    display: flex;
    justify-content: center;
}

.ops-indicator-viewport {
    width: 100%;
    max-width: 650px;
}

.ops-indicator-device {
    position: relative;
    width: 100%;
    padding: 18px 14px 14px;
    border-radius: 32px;
    background:
        linear-gradient(180deg, #d8d6db 0%, #c9c6cb 38%, #e2e0e3 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 18px 36px rgba(15, 23, 42, 0.12);
}

.ops-indicator-device--off {
    filter: saturate(0.68) brightness(0.84);
}

.ops-indicator-knob {
    position: absolute;
    top: 114px;
    width: 16px;
    height: 60px;
    border-radius: 12px;
    background:
        radial-gradient(circle at 35% 30%, #5f646d 0%, #292d33 58%, #15171b 100%);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.ops-indicator-knob--left {
    left: -8px;
}

.ops-indicator-knob--right {
    right: -8px;
}

.ops-indicator-face {
    position: relative;
    z-index: 1;
    border-radius: 22px;
    padding: 12px 14px 16px;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 24%),
        repeating-linear-gradient(
            65deg,
            rgba(255, 255, 255, 0.025) 0 24px,
            rgba(255, 255, 255, 0.01) 24px 48px
        ),
        linear-gradient(180deg, #2f4f73 0%, #2a4b6f 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.ops-indicator-topbar {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.ops-indicator-cert {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #2d3748;
    font-size: 0.66rem;
    font-weight: 700;
    white-space: nowrap;
}

.ops-indicator-note {
    margin-top: 0.4rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.68rem;
    text-align: center;
}

.ops-indicator-display-wrap {
    margin-top: 0.75rem;
    display: grid;
    grid-template-columns: clamp(20px, 7vw, 52px) minmax(0, 1fr) clamp(20px, 7vw, 52px);
    border-top: 3px solid rgba(255, 255, 255, 0.75);
    border-bottom: 3px solid rgba(255, 255, 255, 0.75);
    overflow: hidden;
}

.ops-indicator-display-side {
    background: #343434;
}

.ops-indicator-display-panel {
    min-height: 138px;
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: clamp(0.45rem, 1.4vw, 0.9rem);
    background: linear-gradient(180deg, #5ba7a5 0%, #5da7a5 100%);
}

.ops-indicator-digits {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: center;
    gap: clamp(4px, 1vw, 8px);
    flex: 1;
}

.ops-indicator-digit {
    position: relative;
    width: 100%;
    max-width: 54px;
    aspect-ratio: 0.5;
    justify-self: center;
}

.ops-segment {
    position: absolute;
    opacity: 0.16;
    background: #0b3340;
    transition: opacity 0.15s ease, box-shadow 0.15s ease;
}

.ops-segment--on {
    opacity: 1;
    box-shadow: 0 0 8px rgba(11, 51, 64, 0.16);
}

.ops-segment--a,
.ops-segment--d,
.ops-segment--g {
    left: 19%;
    width: 62%;
    height: 8.5%;
    clip-path: polygon(12% 0, 88% 0, 100% 50%, 88% 100%, 12% 100%, 0 50%);
}

.ops-segment--a {
    top: 4%;
}

.ops-segment--g {
    top: 45.5%;
}

.ops-segment--d {
    bottom: 4%;
}

.ops-segment--b,
.ops-segment--c,
.ops-segment--e,
.ops-segment--f {
    width: 18%;
    height: 39%;
    clip-path: polygon(0 12%, 50% 0, 100% 12%, 100% 88%, 50% 100%, 0 88%);
}

.ops-segment--b {
    top: 9%;
    right: 4%;
}

.ops-segment--c {
    bottom: 9%;
    right: 4%;
}

.ops-segment--e {
    bottom: 9%;
    left: 4%;
}

.ops-segment--f {
    top: 9%;
    left: 4%;
}

.ops-indicator-unit {
    padding-top: 0.45rem;
    color: #0b3340;
    font-size: clamp(1.25rem, 2.4vw, 1.8rem);
    font-weight: 800;
    line-height: 1;
}

.ops-indicator-status-row {
    margin-top: 0.45rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    gap: 0.65rem;
}

.ops-indicator-flag {
    border-radius: 999px;
    padding: 0.25rem 0.5rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.ops-indicator-flag--active {
    color: #ffffff;
    border-color: rgba(135, 245, 200, 0.6);
    background: rgba(47, 201, 144, 0.18);
    box-shadow: 0 0 0 1px rgba(135, 245, 200, 0.12) inset;
}

.ops-indicator-controls {
    margin-top: 0.75rem;
    display: grid;
    grid-template-columns: minmax(88px, 104px) minmax(0, 1fr);
    gap: 0.8rem;
    align-items: start;
}

.ops-indicator-side-info {
    padding-top: 0.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.78rem;
}

.ops-indicator-side-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.ops-indicator-signal,
.ops-indicator-battery {
    position: relative;
    display: inline-flex;
    width: 28px;
    height: 18px;
    align-items: center;
    justify-content: center;
}

.ops-indicator-signal::before,
.ops-indicator-signal::after {
    content: "";
    position: absolute;
    border: 3px solid transparent;
    border-right-color: #ff3aa0;
    border-radius: 50%;
    transform: rotate(20deg);
}

.ops-indicator-signal::before {
    width: 14px;
    height: 14px;
    right: 2px;
}

.ops-indicator-signal::after {
    width: 24px;
    height: 24px;
    right: -3px;
}

.ops-indicator-battery::before {
    content: "";
    width: 14px;
    height: 18px;
    clip-path: polygon(38% 0, 100% 0, 68% 44%, 100% 44%, 24% 100%, 44% 58%, 12% 58%);
    background: #ff3aa0;
}

.ops-indicator-main-keys {
    display: grid;
    grid-template-columns: 78px repeat(3, minmax(76px, 1fr));
    gap: 0.7rem;
    align-items: stretch;
}

.ops-indicator-key {
    min-height: 60px;
    border: 2px solid rgba(255, 255, 255, 0.68);
    border-radius: 12px;
    background: rgba(43, 74, 111, 0.72);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.15rem;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.ops-indicator-key:hover {
    transform: translateY(-1px);
    background: rgba(53, 89, 132, 0.92);
    box-shadow: 0 8px 14px rgba(15, 23, 42, 0.12);
}

.ops-indicator-key--active {
    background: rgba(84, 170, 189, 0.34);
    box-shadow: inset 0 0 0 1px rgba(136, 236, 255, 0.18);
}

.ops-indicator-key--power {
    width: 60px;
    min-height: 60px;
    align-self: center;
    justify-self: center;
    border-radius: 50%;
    border-color: rgba(255, 255, 255, 0.88);
    background: linear-gradient(180deg, #d75462 0%, #c94153 100%);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.24);
}

.ops-indicator-power-icon {
    position: relative;
    width: 24px;
    height: 24px;
    border: 3px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
}

.ops-indicator-power-icon::before {
    content: "";
    position: absolute;
    top: -9px;
    left: 50%;
    width: 3px;
    height: 16px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: #ffffff;
}

.ops-indicator-key--split {
    overflow: hidden;
    padding: 0;
}

.ops-indicator-key--split span {
    width: 100%;
    display: block;
    text-align: center;
}

.ops-indicator-key-accent {
    margin-top: auto;
    padding: 0.45rem 0.3rem;
    background: rgba(84, 170, 189, 0.54);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

@media (max-width: 1100px) {
    .ops-panel {
        grid-template-columns: 1fr;
    }

    .ops-gate-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ops-display-grid,
    .ops-signal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ops-indicator-main-keys {
        grid-template-columns: repeat(4, minmax(74px, 1fr));
    }
}

@media (max-width: 640px) {
    .ops-display-grid,
    .ops-gate-row,
    .ops-signal-grid,
    .ops-scale-status {
        grid-template-columns: 1fr;
    }

    .ops-display-screen {
        min-height: 70px;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
        letter-spacing: 0.05em;
    }

    .ops-indicator-cert {
        flex-wrap: wrap;
        white-space: normal;
    }

    .ops-indicator-stage {
        padding: 1rem 0.8rem 1.05rem;
    }

    .ops-indicator-device {
        padding: 14px 10px 10px;
        border-radius: 24px;
    }

    .ops-indicator-knob {
        top: 88px;
        width: 12px;
        height: 48px;
    }

    .ops-indicator-knob--left {
        left: -5px;
    }

    .ops-indicator-knob--right {
        right: -5px;
    }

    .ops-indicator-face {
        padding: 10px 10px 12px;
        border-radius: 16px;
    }

    .ops-indicator-display-wrap {
        grid-template-columns: 16px minmax(0, 1fr) 16px;
    }

    .ops-indicator-display-panel {
        min-height: 104px;
        padding: 10px 8px;
    }

    .ops-indicator-digits {
        gap: 3px;
    }

    .ops-indicator-unit {
        font-size: 1rem;
    }

    .ops-indicator-status-row {
        max-width: 100%;
        gap: 0.45rem;
    }

    .ops-indicator-controls {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .ops-indicator-side-info {
        flex-direction: row;
        justify-content: center;
        padding-top: 0;
    }

    .ops-indicator-main-keys {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
    }

    .ops-indicator-key {
        min-height: 54px;
    }

.ops-indicator-key--power {
    width: 54px;
    min-height: 54px;
}
}

.scale-admin-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.scale-admin-stat {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e5edf6;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.scale-admin-stat__label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #708197;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scale-admin-stat__value {
    display: block;
    margin-top: 6px;
    font-size: 28px;
    line-height: 1;
    color: #1e3a5f;
}

.scale-admin-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.scale-admin-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.35px;
    text-transform: uppercase;
}

.scale-admin-chip--success {
    background: rgba(27, 118, 59, 0.12);
    color: #176737;
}

.scale-admin-chip--info {
    background: rgba(30, 58, 95, 0.12);
    color: #1e3a5f;
}

.scale-admin-chip--muted {
    background: #eef2f6;
    color: #6b7a8d;
}

.scale-admin-readonly {
    min-height: 58px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border: 1.5px solid #dee2e6;
    border-radius: 9px;
    background: #f8fafc;
    color: #1a2b4a;
    font-size: 13.5px;
    font-weight: 600;
}

.scale-admin-device-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.scale-admin-device-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.scale-admin-device-panel {
    border: 1px solid #e5edf6;
    border-radius: 12px;
    padding: 16px;
    background: #fbfdff;
}

.scale-admin-device-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.scale-admin-device-panel__title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #1a2b4a;
}

.scale-admin-device-panel__subtitle {
    margin: 4px 0 0;
    color: #708197;
    font-size: 12px;
}

.scale-admin-toggle-row {
    min-height: 58px;
    display: flex;
    align-items: center;
}

.scale-admin-helper {
    font-size: 12px;
    color: #708197;
    line-height: 1.5;
}

.scale-admin-field-span {
    grid-column: 1 / -1;
}

.scale-admin-history-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.scale-admin-history-item {
    padding: 12px 14px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #edf2f7;
}

.scale-admin-history-item__label {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #708197;
    text-transform: uppercase;
    letter-spacing: 0.45px;
}

.scale-admin-json-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.scale-admin-json {
    margin: 0;
    padding: 16px;
    border-radius: 12px;
    background: #0f172a;
    color: #d8e2f0;
    font-size: 12px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-x: auto;
}

@media (max-width: 992px) {
    .scale-admin-overview-grid,
    .scale-admin-history-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .scale-admin-device-grid,
    .scale-admin-device-grid--two,
    .scale-admin-overview-grid,
    .scale-admin-history-grid {
        grid-template-columns: 1fr;
    }
}
