/*
 * Tmonitor premium UI foundation.
 * CSS-only visual layer over the existing Bootstrap/Stisla backend.
 */
:root {
    --tm-bg: #f4f7fb;
    --tm-surface: #ffffff;
    --tm-surface-soft: #f8fbff;
    --tm-ink: #172033;
    --tm-muted: #64748b;
    --tm-border: #dce6f2;
    --tm-border-strong: #c8d6e8;
    --tm-navy: #071629;
    --tm-navy-2: #0d2442;
    --tm-blue: #1769ff;
    --tm-blue-2: #0057d8;
    --tm-cyan: #00b8d9;
    --tm-green: #18a058;
    --tm-amber: #d99000;
    --tm-red: #dc3545;
    --tm-violet: #6d5dfc;
    --tm-radius-sm: 4px;
    --tm-radius: 8px;
    --tm-shadow-sm: 0 4px 14px rgba(15, 23, 42, .06);
    --tm-shadow: 0 18px 44px rgba(15, 23, 42, .10);
    --tm-focus: 0 0 0 .18rem rgba(0, 184, 217, .22);
}

html,
body {
    background:
        linear-gradient(180deg, rgba(232, 241, 255, .72) 0%, rgba(244, 247, 251, 1) 260px),
        var(--tm-bg);
    color: var(--tm-ink);
    font-size: 14px;
    letter-spacing: 0;
}

body,
.main-content,
.section,
.card,
.form-control,
.btn,
.dropdown-menu,
.table {
    font-family: "Nunito", "Segoe UI", Arial, sans-serif;
}

a {
    color: var(--tm-blue);
}

a:hover {
    color: var(--tm-blue-2);
}

.main-wrapper {
    background: transparent;
}

.main-content {
    background: transparent;
    min-height: 100vh;
    padding-top: 92px;
}

.section .section-header {
    align-items: center;
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(220, 230, 242, .92);
    border-radius: var(--tm-radius);
    box-shadow: var(--tm-shadow-sm);
    margin-bottom: 22px;
    min-height: 72px;
    padding: 17px 20px;
}

.main-content > .section {
    margin-left: auto;
    margin-right: auto;
    max-width: 1540px;
}

.section .section-header h1 {
    color: var(--tm-ink);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0;
}

.section .section-header .text-muted,
.text-muted {
    color: var(--tm-muted) !important;
}

.section-header-breadcrumb .breadcrumb-item,
.section-header-breadcrumb .breadcrumb-item a {
    color: var(--tm-muted);
    font-size: 12px;
}

.section-header-breadcrumb .breadcrumb-item.active {
    color: var(--tm-ink);
    font-weight: 700;
}

.navbar-bg {
    background:
        linear-gradient(135deg, rgba(7, 22, 41, .98) 0%, rgba(13, 36, 66, .98) 48%, rgba(0, 88, 216, .92) 100%);
    box-shadow: 0 14px 38px rgba(7, 22, 41, .18);
    height: 76px;
}

.main-navbar {
    min-height: 76px;
    padding-left: 16px;
    padding-right: 22px;
}

.main-navbar .nav-link {
    border-radius: var(--tm-radius);
    color: rgba(255, 255, 255, .92);
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link:focus {
    background: rgba(255, 255, 255, .10);
    color: #ffffff;
}

.main-navbar .nav-link-user {
    align-items: center;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(255, 255, 255, .70);
    box-shadow: 0 12px 28px rgba(7, 22, 41, .14);
    color: #0f172a;
    display: inline-flex;
    gap: 8px;
    padding: 7px 11px;
}

.main-navbar .nav-link-user:hover,
.main-navbar .nav-link-user:focus {
    background: #ffffff;
    color: var(--tm-blue);
}

.main-navbar .nav-link-user.dropdown-toggle::after {
    border-top-color: currentColor;
    opacity: .88;
}

.main-navbar .nav-link-user .rounded-circle {
    background: rgba(255, 255, 255, .95) !important;
    box-shadow: 0 8px 18px rgba(7, 22, 41, .20);
    color: var(--tm-blue) !important;
}

.dropdown-menu {
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius);
    box-shadow: var(--tm-shadow);
    padding: 8px;
}

.dropdown-item {
    border-radius: 6px;
    color: var(--tm-ink);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--tm-surface-soft);
    color: var(--tm-blue);
}

.main-sidebar {
    background: var(--tm-navy);
    box-shadow: 12px 0 40px rgba(7, 22, 41, .16);
}

.main-sidebar::after {
    background:
        linear-gradient(180deg, var(--tm-navy) 0%, var(--tm-navy-2) 56%, #091b31 100%);
}

.main-sidebar .sidebar-brand,
.main-sidebar .sidebar-brand-sm {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    height: 76px;
    line-height: 76px;
}

.main-sidebar .sidebar-brand a,
.main-sidebar .sidebar-brand-sm a {
    color: #ffffff;
    font-weight: 800;
}

.main-sidebar .sidebar-brand img,
.main-sidebar .sidebar-brand-sm img {
    max-height: 42px;
    object-fit: contain;
}

.main-sidebar .sidebar-menu {
    padding: 14px 0 28px;
}

.main-sidebar .sidebar-menu li.menu-header {
    color: rgba(255, 255, 255, .48);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    margin: 18px 18px 7px;
    padding: 0;
    text-transform: uppercase;
}

.main-sidebar .sidebar-menu li.tmonitor-sidebar-item > a.nav-link,
.main-sidebar .sidebar-menu li > a {
    align-items: center;
    border: 1px solid transparent;
    border-radius: var(--tm-radius);
    color: rgba(255, 255, 255, .78);
    display: flex;
    gap: 10px;
    min-height: 42px;
    padding: 10px 14px;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.main-sidebar .sidebar-menu li.tmonitor-sidebar-item > a.nav-link {
    margin: 2px 12px;
    width: calc(100% - 24px);
}

.main-sidebar .sidebar-menu li > a i {
    color: rgba(0, 184, 217, .88);
    flex: 0 0 20px;
    font-size: 15px;
    margin-right: 0;
    text-align: center;
}

.main-sidebar .sidebar-menu li > a span {
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.main-sidebar .sidebar-menu li.tmonitor-sidebar-item > a:hover,
.main-sidebar .sidebar-menu li.tmonitor-sidebar-item.active > a.nav-link {
    background: linear-gradient(135deg, rgba(23, 105, 255, .24), rgba(0, 184, 217, .14));
    border-color: rgba(0, 184, 217, .26);
    color: #ffffff;
}

.main-sidebar .sidebar-menu li.tmonitor-sidebar-item.active > a.nav-link {
    box-shadow: inset 3px 0 0 var(--tm-cyan), 0 10px 22px rgba(0, 0, 0, .14);
    font-weight: 800;
}

.main-sidebar .sidebar-menu li.tmonitor-sidebar-item.active > a.nav-link i {
    color: #ffffff;
}

.card {
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius);
    box-shadow: var(--tm-shadow-sm);
    overflow: hidden;
}

.card .card-header {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-bottom: 1px solid var(--tm-border);
    min-height: 58px;
}

.card .card-header h4,
.card .card-header h5,
.card .card-header h6 {
    color: var(--tm-ink);
    font-weight: 800;
}

.card .card-body {
    color: var(--tm-ink);
}

.table {
    color: var(--tm-ink);
    margin-bottom: 0;
}

.table thead th {
    background: #f3f7fc;
    border-bottom: 1px solid var(--tm-border);
    color: #44546a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.table td,
.table th {
    border-color: #e8eef6;
    padding: 12px 14px;
    vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(248, 251, 255, .72);
}

.table-hover tbody tr:hover,
.table tbody tr:hover {
    background-color: rgba(0, 184, 217, .06);
}

.table-responsive {
    border-radius: var(--tm-radius);
    scrollbar-gutter: stable;
}

.tmonitor-table-scroll {
    scrollbar-gutter: stable;
}

.table-responsive .table thead th,
.tmonitor-table-scroll .table thead th {
    position: sticky;
    top: 0;
}

.btn {
    border-radius: 7px;
    font-weight: 800;
    letter-spacing: 0;
}

.btn:focus,
.btn.focus,
.form-control:focus,
.custom-select:focus,
.selectric-focus .selectric,
.page-link:focus {
    box-shadow: var(--tm-focus) !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--tm-blue), var(--tm-cyan));
    border-color: var(--tm-blue);
    box-shadow: 0 9px 20px rgba(23, 105, 255, .22);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--tm-blue-2), #009cc0);
    border-color: var(--tm-blue-2);
}

.btn-outline-primary {
    border-color: rgba(23, 105, 255, .42);
    color: var(--tm-blue);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: var(--tm-blue);
    border-color: var(--tm-blue);
    color: #ffffff;
}

.btn-light {
    background: #f7faff;
    border-color: var(--tm-border);
    color: var(--tm-ink);
}

.btn-danger,
.btn-outline-danger:hover {
    box-shadow: 0 9px 20px rgba(220, 53, 69, .18);
}

.badge {
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .01em;
    padding: 5px 9px;
}

.badge-primary {
    background: rgba(23, 105, 255, .12);
    color: var(--tm-blue);
}

.badge-success {
    background: rgba(24, 160, 88, .12);
    color: #087443;
}

.badge-warning {
    background: rgba(217, 144, 0, .14);
    color: #8a5b00;
}

.badge-danger {
    background: rgba(220, 53, 69, .12);
    color: #b42335;
}

.badge-secondary {
    background: rgba(100, 116, 139, .12);
    color: #475569;
}

.form-control,
.custom-select,
.selectric {
    background-color: #ffffff;
    border-color: var(--tm-border-strong);
    border-radius: 7px;
    color: var(--tm-ink);
    min-height: 40px;
}

.form-control::placeholder {
    color: #94a3b8;
}

label,
.form-group > label {
    color: #334155;
    font-size: 12px;
    font-weight: 800;
}

.alert {
    border-radius: var(--tm-radius);
    border-width: 1px;
}

.empty-state {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px dashed var(--tm-border-strong);
    border-radius: var(--tm-radius);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
}

.empty-state .empty-state-icon {
    background: rgba(23, 105, 255, .10);
    color: var(--tm-blue);
}

.pagination .page-link {
    border-color: var(--tm-border);
    color: var(--tm-blue);
    font-weight: 700;
}

.page-item.active .page-link {
    background: var(--tm-blue);
    border-color: var(--tm-blue);
}

.modal-content {
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius);
    box-shadow: var(--tm-shadow);
}

.modal-header,
.modal-footer {
    border-color: var(--tm-border);
}

.tmonitor-upload-overlay .tmonitor-upload-card,
.android-error-cleanup,
.android-error-meta,
.android-error-meta-card {
    border-radius: var(--tm-radius) !important;
}

.android-error-cleanup {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .80);
}

.android-error-pre,
.android-error-report-textarea {
    background: #f8fbff !important;
    border-color: var(--tm-border) !important;
    color: #243247 !important;
}

.tmonitor-upload-overlay {
    backdrop-filter: blur(5px);
}

.language-switcher .btn,
.language-switcher a,
.dropdown-item-text .btn,
.dropdown-item-text a {
    border-radius: 6px;
}

* {
    scrollbar-color: rgba(23, 105, 255, .42) rgba(220, 230, 242, .60);
    scrollbar-width: thin;
}

*::-webkit-scrollbar {
    height: 10px;
    width: 10px;
}

*::-webkit-scrollbar-track {
    background: rgba(220, 230, 242, .58);
    border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(23, 105, 255, .72), rgba(0, 184, 217, .72));
    border: 2px solid rgba(244, 247, 251, .95);
    border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--tm-blue), var(--tm-cyan));
}

.main-content::-webkit-scrollbar-track,
.table-responsive::-webkit-scrollbar-track,
.modal-body::-webkit-scrollbar-track,
textarea::-webkit-scrollbar-track {
    background: rgba(232, 238, 248, .92);
}

.btn {
    align-items: center;
    display: inline-flex;
    gap: 7px;
    justify-content: center;
    min-height: 40px;
    padding: 9px 15px;
    transition: transform .14s ease, box-shadow .14s ease, background-color .14s ease, border-color .14s ease, color .14s ease;
}

.btn-sm {
    gap: 5px;
    min-height: 32px;
    padding: 6px 11px;
}

.btn-lg {
    min-height: 46px;
    padding: 11px 18px;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active,
.btn.active {
    transform: translateY(0);
}

.btn.disabled,
.btn:disabled,
fieldset:disabled .btn {
    box-shadow: none !important;
    cursor: not-allowed;
    opacity: .58;
    transform: none;
}

.btn i,
.dropdown-item i,
.nav-link i {
    line-height: 1;
}

.btn-secondary,
.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background: linear-gradient(135deg, #475569, #1f2a3a);
    border-color: #475569;
    color: #ffffff;
}

.btn-outline-secondary {
    background: rgba(255, 255, 255, .78);
    border-color: var(--tm-border-strong);
    color: #334155;
}

.btn-success,
.btn-outline-success:hover,
.btn-outline-success:focus {
    background: linear-gradient(135deg, #18a058, #00a78e);
    border-color: #18a058;
    color: #ffffff;
}

.btn-outline-success {
    background: rgba(255, 255, 255, .78);
    border-color: rgba(24, 160, 88, .42);
    color: #087443;
}

.btn-warning,
.btn-outline-warning:hover,
.btn-outline-warning:focus {
    background: linear-gradient(135deg, #f5a524, #d99000);
    border-color: #d99000;
    color: #1f2937;
}

.btn-outline-warning {
    background: rgba(255, 255, 255, .78);
    border-color: rgba(217, 144, 0, .42);
    color: #8a5b00;
}

.btn-danger,
.btn-outline-danger:hover,
.btn-outline-danger:focus {
    background: linear-gradient(135deg, #ef4444, #b42335);
    border-color: #dc3545;
    color: #ffffff;
}

.btn-outline-danger {
    background: rgba(255, 255, 255, .78);
    border-color: rgba(220, 53, 69, .42);
    color: #b42335;
}

.btn-info,
.btn-outline-info:hover,
.btn-outline-info:focus {
    background: linear-gradient(135deg, #0ea5e9, #00b8d9);
    border-color: #00a6c8;
    color: #ffffff;
}

.btn-outline-info {
    background: rgba(255, 255, 255, .78);
    border-color: rgba(0, 184, 217, .42);
    color: #007f99;
}

.btn-link {
    min-height: 0;
    padding-left: 0;
    padding-right: 0;
}

.btn-link:hover {
    transform: none;
}

.btn-group .btn,
.tmonitor-action-group .btn {
    white-space: nowrap;
}

.main-sidebar .sidebar-menu li > a i {
    align-items: center;
    background: rgba(0, 184, 217, .10);
    border: 1px solid rgba(0, 184, 217, .12);
    border-radius: 7px;
    display: inline-flex;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.main-sidebar .sidebar-menu li.tmonitor-sidebar-item.active > a.nav-link i,
.main-sidebar .sidebar-menu li.tmonitor-sidebar-item > a:hover i {
    background: rgba(255, 255, 255, .15);
    border-color: rgba(255, 255, 255, .18);
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table thead th {
    box-shadow: inset 0 -1px 0 var(--tm-border);
    position: relative;
    z-index: 1;
}

.table tbody td {
    font-size: 13px;
}

.table td .small,
.table td small {
    color: var(--tm-muted);
}

.table .btn,
.android-errors-table .btn,
.android-releases-table .btn {
    margin-bottom: 2px;
    margin-top: 2px;
}

.badge {
    align-items: center;
    border: 1px solid transparent;
    display: inline-flex;
    line-height: 1.15;
    min-height: 24px;
    white-space: nowrap;
}

.badge-success {
    border-color: rgba(24, 160, 88, .20);
}

.badge-danger {
    border-color: rgba(220, 53, 69, .20);
}

.badge-warning {
    border-color: rgba(217, 144, 0, .22);
}

.badge-secondary {
    border-color: rgba(100, 116, 139, .20);
}

.badge-info {
    background: rgba(0, 184, 217, .12);
    border-color: rgba(0, 184, 217, .20);
    color: #007f99;
}

.badge-light {
    background: #f8fbff;
    border-color: var(--tm-border);
    color: #334155;
}

.text-success,
.text-primary,
.text-danger,
.text-warning,
.text-info {
    font-weight: 700;
}

.form-control,
.custom-select,
.selectric,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
    transition: border-color .14s ease, box-shadow .14s ease, background-color .14s ease;
}

.form-control:hover,
.custom-select:hover,
.selectric:hover {
    border-color: #aebfd4;
}

input[type="file"].form-control {
    height: auto;
    padding: 8px 10px;
}

input[type="date"].form-control,
input[type="time"].form-control,
input[type="number"].form-control {
    line-height: 1.35;
}

.custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: var(--tm-focus);
}

.custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--tm-blue);
    border-color: var(--tm-blue);
}

.form-text,
.help-block,
.invalid-feedback,
.valid-feedback {
    font-size: 12px;
}

.card {
    transition: box-shadow .16s ease, border-color .16s ease;
}

.card:hover {
    border-color: var(--tm-border-strong);
    box-shadow: 0 20px 46px rgba(15, 23, 42, .11);
}

.card.card-statistic-1,
.card.card-statistic-2,
.tmonitor-status-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .98) 0%, rgba(248, 251, 255, .98) 100%);
}

.card-statistic-1 .card-icon,
.card-statistic-2 .card-icon {
    box-shadow: 0 14px 28px rgba(23, 105, 255, .18);
}

.alert-info {
    background: rgba(0, 184, 217, .10);
    border-color: rgba(0, 184, 217, .24);
    color: #0f5f72;
}

.alert-warning {
    background: rgba(217, 144, 0, .12);
    border-color: rgba(217, 144, 0, .28);
    color: #7a5200;
}

.alert-danger {
    background: rgba(220, 53, 69, .10);
    border-color: rgba(220, 53, 69, .24);
    color: #9f1f2f;
}

.alert-success {
    background: rgba(24, 160, 88, .11);
    border-color: rgba(24, 160, 88, .24);
    color: #087443;
}

.empty-state h2,
.tmonitor-empty-state h2,
.tmonitor-empty-state h3 {
    color: var(--tm-ink);
    font-weight: 800;
}

.empty-state p,
.tmonitor-empty-state p {
    color: var(--tm-muted);
}

.android-error-cleanup .btn,
.android-error-page-actions .btn,
.section-header .btn,
.card-header .btn,
.card-footer .btn {
    flex-wrap: nowrap;
}

.android-error-cleanup-actions {
    row-gap: 12px !important;
}

.android-error-cleanup-actions select.form-control {
    min-width: 170px;
}

.tmonitor-upload-overlay .tmonitor-upload-card {
    border: 1px solid rgba(220, 230, 242, .92);
    box-shadow: 0 24px 64px rgba(7, 22, 41, .24);
}

.tmonitor-upload-spinner {
    box-shadow: 0 0 0 6px rgba(0, 184, 217, .08);
}

.tmonitor-resource-alert {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(248, 251, 255, .96));
    border: 1px solid rgba(217, 144, 0, .24);
    border-radius: var(--tm-radius);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
    margin-bottom: 16px;
    padding: 14px;
}

.tmonitor-quota-status {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
}

.tmonitor-technical-details {
    background: rgba(255, 255, 255, .72);
    border: 1px solid var(--tm-border);
    border-radius: 7px;
    margin-top: 12px;
    overflow: hidden;
}

.tmonitor-technical-details summary {
    align-items: center;
    color: var(--tm-ink);
    cursor: pointer;
    display: flex;
    font-size: 12px;
    font-weight: 800;
    gap: 8px;
    min-height: 36px;
    padding: 9px 12px;
}

.tmonitor-technical-details summary::before {
    background: linear-gradient(135deg, rgba(23, 105, 255, .14), rgba(0, 184, 217, .14));
    border: 1px solid rgba(0, 184, 217, .18);
    border-radius: 6px;
    color: var(--tm-blue);
    content: "\f013";
    display: inline-flex;
    font-family: "Font Awesome 5 Free";
    font-size: 11px;
    font-weight: 900;
    height: 24px;
    justify-content: center;
    line-height: 24px;
    width: 24px;
}

.tmonitor-technical-details-body {
    border-top: 1px solid var(--tm-border);
    color: var(--tm-muted);
    font-size: 12px;
    line-height: 1.5;
    padding: 10px 12px 12px;
}

.tmonitor-technical-details code {
    background: #071629;
    border-radius: 6px;
    color: #dff7ff;
    display: block;
    margin-top: 6px;
    overflow-x: auto;
    padding: 9px 10px;
    white-space: nowrap;
}

.tmonitor-quick-actions {
    margin-bottom: 16px;
}

.tmonitor-quick-actions .card-header {
    padding-bottom: 10px;
}

.tmonitor-quick-actions-grid {
    gap: 12px !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.tmonitor-action-card {
    align-items: flex-start;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(248, 251, 255, .98));
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
    color: var(--tm-ink);
    display: grid;
    gap: 3px 11px;
    grid-template-columns: 34px minmax(0, 1fr);
    min-height: 74px;
    padding: 12px 13px;
    position: relative;
    text-decoration: none !important;
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

.tmonitor-action-card::after {
    background: linear-gradient(180deg, var(--tm-blue), var(--tm-cyan));
    border-radius: 999px;
    content: "";
    height: 30px;
    opacity: .92;
    position: absolute;
    right: 12px;
    top: 12px;
    width: 3px;
}

.tmonitor-action-card:hover,
.tmonitor-action-card:focus {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(239, 248, 255, .98));
    border-color: rgba(0, 184, 217, .48);
    box-shadow: 0 20px 38px rgba(23, 105, 255, .14);
    color: var(--tm-ink);
    transform: translateY(-2px);
}

.tmonitor-action-card:active {
    transform: translateY(0);
}

.tmonitor-action-card i {
    align-items: center;
    background: linear-gradient(135deg, rgba(23, 105, 255, .14), rgba(0, 184, 217, .16));
    border: 1px solid rgba(0, 184, 217, .18);
    border-radius: 8px;
    color: var(--tm-blue);
    display: inline-flex;
    font-size: 15px;
    grid-row: span 2;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.tmonitor-action-card span {
    font-size: 13.5px;
    font-weight: 900;
    line-height: 1.2;
    padding-right: 10px;
}

.tmonitor-action-card small {
    color: var(--tm-muted);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
}

.tmonitor-action-card.is-secondary::after {
    background: linear-gradient(180deg, #64748b, #334155);
}

.tmonitor-action-card.is-secondary i {
    background: rgba(100, 116, 139, .10);
    border-color: rgba(100, 116, 139, .18);
    color: #475569;
}

.tmonitor-device-preview-card .card-header {
    min-height: 64px;
    padding-bottom: 12px;
    padding-top: 14px;
}

.tmonitor-device-preview-card .tmonitor-filter-title h4 {
    font-size: 17px;
}

.tmonitor-device-preview-card .card-body {
    background: #ffffff;
}

.tmonitor-device-preview-card .tmonitor-table-scroll {
    overflow-x: auto;
}

.tmonitor-mini-device-table {
    min-width: 780px;
}

.tmonitor-mini-device-table thead th {
    background: #f8fbff;
    font-size: 10px;
    padding-bottom: 9px;
    padding-top: 9px;
}

.tmonitor-mini-device-table tbody td {
    padding-bottom: 8px;
    padding-top: 8px;
}

.tmonitor-mini-device-table .tmonitor-device-name {
    font-size: 13px;
}

.tmonitor-mini-device-table .tmonitor-device-id,
.tmonitor-mini-device-table .tmonitor-location-line,
.tmonitor-mini-device-table .small {
    font-size: 11px;
    line-height: 1.35;
}

.tmonitor-device-preview-card .tmonitor-action-group {
    gap: 5px;
}

.tmonitor-device-preview-card .tmonitor-action-group .btn {
    min-height: 30px;
}

.tmonitor-device-preview-card .tmonitor-details-panel {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border-color: var(--tm-border);
    border-radius: var(--tm-radius);
    margin: 6px 10px 10px;
    padding: 12px;
}

.tmonitor-device-preview-card .tmonitor-section-note {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-top-color: var(--tm-border);
    padding-bottom: 10px;
    padding-top: 10px;
}

.tmonitor-device-preview-card .badge {
    min-height: 22px;
    padding: 4px 8px;
}

.tmonitor-device-preview-card .device-details-row {
    background: #f8fbff;
}

@media (min-width: 1280px) {
    .main-content {
        padding-left: 290px;
        padding-right: 28px;
    }

    body.sidebar-mini .main-content {
        padding-left: 95px;
    }
}

@media (min-width: 1600px) {
    .main-content {
        padding-right: 36px;
    }

    .main-content > .section {
        max-width: 1620px;
    }

    .section .section-header {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (min-width: 1900px) {
    .main-content > .section {
        max-width: 1680px;
    }

    .tmonitor-quick-actions-grid {
        grid-template-columns: repeat(4, minmax(210px, 1fr)) !important;
    }
}

@media (max-width: 1366px) {
    .table td,
    .table th {
        padding-left: 11px;
        padding-right: 11px;
    }

    .btn-sm {
        padding-left: 9px;
        padding-right: 9px;
    }

    .tmonitor-action-card {
        min-height: 70px;
        padding: 11px 12px;
    }

    .tmonitor-action-card small {
        font-size: 10.5px;
    }
}

@media (max-width: 1024px) {
    .main-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .section .section-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

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

@media (max-width: 575.98px) {
    .main-content {
        padding-left: 12px;
        padding-right: 12px;
        padding-top: 82px;
    }

    .main-navbar {
        min-height: 68px;
        padding-right: 12px;
    }

    .navbar-bg {
        height: 68px;
    }

    .section .section-header {
        padding: 14px;
    }

    .section .section-header h1 {
        font-size: 18px;
    }

    .card .card-body,
    .card .card-header {
        padding-left: 14px;
        padding-right: 14px;
    }

    .table td,
    .table th {
        padding: 10px;
    }

    .btn {
        white-space: normal;
    }

    .android-error-cleanup-actions,
    .android-error-cleanup-actions form {
        align-items: stretch !important;
        flex-direction: column;
        width: 100%;
    }

    .android-error-cleanup-actions .btn,
    .android-error-cleanup-actions select.form-control {
        width: 100%;
    }

    .tmonitor-quota-status {
        align-items: stretch;
        flex-direction: column;
    }

    .tmonitor-quota-status .btn {
        width: 100%;
    }

    .tmonitor-action-card {
        min-height: 74px;
    }

    .tmonitor-quick-actions-grid {
        grid-template-columns: 1fr !important;
    }
}

.main-sidebar .sidebar-brand img {
    max-height: 54px;
    width: 176px;
}

.main-sidebar .sidebar-brand-sm img {
    max-height: 42px;
    width: 58px;
}

.main-sidebar .sidebar-brand {
    padding-left: 14px;
    padding-right: 14px;
}

.main-sidebar .sidebar-menu li.tmonitor-sidebar-item > a.nav-link {
    min-height: 43px;
}

.main-sidebar .sidebar-menu li.tmonitor-sidebar-item.active > a.nav-link {
    background:
        linear-gradient(135deg, rgba(23, 105, 255, .35), rgba(0, 184, 217, .20)),
        rgba(255, 255, 255, .04);
    border-color: rgba(0, 184, 217, .42);
    color: #ffffff;
}

.btn-primary:hover,
.btn-outline-primary:hover,
.btn-danger:hover,
.btn-outline-danger:hover {
    box-shadow: 0 16px 30px rgba(23, 105, 255, .24);
    filter: saturate(1.08);
}

.btn-danger:hover,
.btn-outline-danger:hover {
    box-shadow: 0 16px 30px rgba(220, 53, 69, .24);
}

.tmonitor-command-center + .alert {
    margin-top: -8px;
}

.tmonitor-command-center {
    margin-top: -4px;
    margin-bottom: 16px;
}

.tmonitor-command-shell {
    align-items: center;
}

.tmonitor-command-metric {
    min-width: 0;
}

.tmonitor-command-metric strong {
    overflow-wrap: anywhere;
}

.tmonitor-command-metric {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10);
}

.tmonitor-resource-grid,
.tmonitor-health-grid,
.tmonitor-lifecycle-grid,
.tmonitor-device-summary-grid {
    align-items: stretch;
}

.tmonitor-resource-card,
.tmonitor-health-card,
.tmonitor-lifecycle-item,
.tmonitor-device-summary-item {
    min-height: 0;
}

.tmonitor-health-card,
.tmonitor-resource-card,
.tmonitor-diagnosis-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.tmonitor-quota-status .btn {
    min-width: 126px;
}

.tmonitor-quota-hint code {
    background: #eef5ff;
    border: 1px solid var(--tm-border);
    border-radius: 6px;
    color: #1f2a3a;
    padding: 8px 10px;
}

.tmonitor-registered-devices-card .card-header {
    border-bottom: 0;
}

.tmonitor-device-summary-grid {
    border-top: 1px solid var(--tm-border);
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(4, minmax(130px, 1fr));
}

.tmonitor-device-summary-item {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-right: 1px solid var(--tm-border);
    padding: 15px 16px;
}

.tmonitor-device-summary-item:last-child {
    border-right: 0;
}

.tmonitor-device-summary-item i {
    color: var(--tm-cyan);
    font-size: 16px;
    margin-bottom: 8px;
}

.tmonitor-device-summary-item span {
    color: var(--tm-muted);
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.tmonitor-device-summary-item strong {
    color: var(--tm-ink);
    display: block;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.1;
    margin-top: 5px;
}

.tmonitor-premium-data-table tbody tr {
    transition: background-color .14s ease, box-shadow .14s ease;
}

.tmonitor-premium-data-table tbody tr:hover {
    box-shadow: inset 3px 0 0 var(--tm-cyan);
}

.tmonitor-device-primary-cell {
    min-width: 190px;
}

.tmonitor-status-stack .badge {
    margin-bottom: 4px;
}

.tmonitor-device-table .tmonitor-update-cell,
.tmonitor-device-table .tmonitor-version-cell {
    background: rgba(248, 251, 255, .52);
}

.tmonitor-filter-panel {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.tmonitor-upload-form-card {
    border-color: rgba(0, 184, 217, .22);
    box-shadow: 0 16px 34px rgba(15, 23, 42, .08);
}

.tmonitor-upload-form-card .card-header {
    background:
        radial-gradient(circle at top right, rgba(0, 184, 217, .14), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.tmonitor-file-upload-zone {
    align-items: center;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px dashed #9fb3ca;
    border-radius: var(--tm-radius);
    display: grid;
    gap: 12px;
    grid-template-columns: 38px 1fr;
    padding: 14px;
    transition: border-color .14s ease, box-shadow .14s ease, background-color .14s ease;
}

.tmonitor-file-upload-zone:hover,
.tmonitor-file-upload-zone:focus-within {
    background: linear-gradient(180deg, #ffffff 0%, #eff8ff 100%);
    border-color: rgba(0, 184, 217, .62);
    box-shadow: 0 14px 28px rgba(23, 105, 255, .10);
}

.tmonitor-file-upload-zone i {
    align-items: center;
    background: rgba(0, 184, 217, .12);
    border-radius: 8px;
    color: var(--tm-blue);
    display: inline-flex;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.tmonitor-file-upload-zone strong,
.tmonitor-file-upload-zone span {
    display: block;
}

.tmonitor-file-upload-zone span {
    color: var(--tm-muted);
    font-size: 12px;
    margin-top: 2px;
}

.tmonitor-file-upload-zone input[type="file"] {
    grid-column: 1 / -1;
}

.progress {
    background: #e8eef6;
    border-radius: 999px;
    height: 8px;
    margin-top: 10px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--tm-blue), var(--tm-cyan));
}

.tmonitor-premium-empty {
    align-items: center;
    background:
        radial-gradient(circle at top, rgba(0, 184, 217, .12), transparent 42%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius);
    color: var(--tm-muted);
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
    max-width: 560px;
    min-height: 170px;
    padding: 24px;
    text-align: center;
}

.tmonitor-premium-empty,
.empty-state {
    margin-bottom: 0;
}

.tmonitor-premium-empty > i,
.tmonitor-premium-empty .empty-state-icon {
    align-items: center;
    background: rgba(23, 105, 255, .10);
    border-radius: 10px;
    color: var(--tm-blue);
    display: inline-flex;
    font-size: 20px;
    height: 44px;
    justify-content: center;
    margin-bottom: 12px;
    width: 44px;
}

.tmonitor-premium-empty strong,
.tmonitor-premium-empty h2 {
    color: var(--tm-ink);
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 6px;
}

@media (max-width: 991.98px) {
    .tmonitor-device-summary-grid {
        grid-template-columns: repeat(2, minmax(130px, 1fr));
    }

    .main-navbar .nav-link-user {
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* 16L Blade layout width helpers and remaining page structure polish. */
.main-content > .section:has(.tm-page-wide),
.main-content > .section:has(.tm-table-page) {
    max-width: 1840px;
}

.main-content > .section:has(.tm-page-medium) {
    max-width: 1320px;
}

.main-content > .section:has(.tm-page-narrow) {
    max-width: 980px;
}

.tm-page-wide,
.tm-table-page,
.tm-page-medium,
.tm-page-narrow {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.tm-table-page-row,
.tm-admin-two-column {
    align-items: flex-start;
    row-gap: 18px;
}

.tm-admin-two-column > .col-xl-4,
.tm-admin-two-column > .col-lg-4 {
    flex: 0 0 34%;
    max-width: 34%;
}

.tm-admin-two-column > .col-xl-8,
.tm-admin-two-column > .col-lg-8 {
    flex: 0 0 66%;
    max-width: 66%;
}

.tm-full-table-shell {
    max-width: 100%;
    overflow: visible;
}

.tm-full-table-shell > .card-body,
.tm-full-table-shell .card-body {
    max-width: 100%;
}

.tm-full-table-shell .tm-responsive-table-shell,
.tm-full-table-shell .tmonitor-table-scroll,
.tm-full-table-shell .table-responsive {
    border-top: 1px solid rgba(220, 230, 242, .78);
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 10px;
}

.tm-full-table-shell table,
.tm-responsive-table-shell table {
    width: max-content;
}

.tm-full-table-shell .table th:last-child,
.tm-full-table-shell .table td:last-child {
    min-width: 150px;
}

.tmonitor-registered-devices-card .tmonitor-table-scroll table {
    min-width: 1780px;
}

.tmonitor-registered-devices-card .tmonitor-device-table th,
.tmonitor-registered-devices-card .tmonitor-device-table td {
    vertical-align: top;
}

.tmonitor-registered-devices-card .tmonitor-device-primary-cell,
.tmonitor-registered-devices-card .tmonitor-exit-pin-cell,
.tmonitor-registered-devices-card .tmonitor-danger-cell {
    min-width: 210px;
}

.tmonitor-registered-devices-card .tmonitor-status-stack {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tmonitor-registered-devices-card .tmonitor-inline-panel {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
}

.tmonitor-danger-card {
    background:
        radial-gradient(circle at top right, rgba(220, 53, 69, .08), transparent 30%),
        #ffffff;
}

.tmonitor-danger-form {
    background: linear-gradient(180deg, #fff8f8 0%, #ffffff 100%);
    border: 1px solid rgba(220, 53, 69, .18);
    border-radius: var(--tm-radius);
    padding: 14px;
}

.tmonitor-company-table,
.tmonitor-limit-table,
.tmonitor-object-table {
    min-width: 1180px !important;
}

.tmonitor-company-table td:last-child,
.tmonitor-object-table td:last-child,
.tmonitor-limit-table td:last-child {
    min-width: 190px;
}

.tmonitor-object-form {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(200, 214, 232, .95);
    border-radius: var(--tm-radius);
    padding: 10px;
}

.tmonitor-legacy-object-panel {
    box-shadow: var(--tm-shadow-sm);
}

.tmonitor-legacy-object-panel .bg-white {
    border-color: rgba(200, 214, 232, .95) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
}

.tmonitor-apk-upload-card .tmonitor-file-upload-zone,
.tm-panel .tmonitor-file-upload-zone {
    margin-top: 2px;
}

.tm-release-summary-row {
    row-gap: 14px;
}

.tm-release-summary-row .card {
    min-height: 112px;
}

.tm-release-summary-row .card-body .text-muted {
    color: #475569 !important;
    font-weight: 800;
}

.tm-release-summary-row .card-body h4 {
    color: #0f172a;
    font-size: 28px;
    font-weight: 950;
}

.android-error-filter-card .form-group {
    margin-bottom: 14px;
}

.android-error-cleanup.tm-info-soft {
    display: grid;
    gap: 10px;
}

.android-errors-table {
    min-width: 1500px !important;
}

.android-error-message {
    color: #334155;
    max-width: 320px;
}

.tm-status-center {
    justify-content: center;
}

.tm-status-card {
    margin-left: auto;
    margin-right: auto;
    min-height: 220px;
}

.tm-status-card.card-statistic-2 {
    align-items: stretch;
    display: grid;
    grid-template-columns: 92px 1fr;
    padding: 0;
}

.tm-status-card.card-statistic-2 .card-icon {
    align-items: center;
    border-radius: var(--tm-radius) 0 0 var(--tm-radius);
    display: flex;
    height: auto;
    justify-content: center;
    margin: 0;
    width: 92px;
}

.tm-status-card.card-statistic-2 .card-wrap {
    padding: 18px 20px;
}

.tm-status-card .tmonitor-compact-details {
    max-width: 100%;
}

.tm-page-medium .row > .col-lg-7,
.tm-page-medium .row > .col-md-12.col-lg-7 {
    flex: 0 0 100%;
    max-width: 100%;
}

.tm-page-medium .card {
    max-width: 100%;
}

.tm-page-medium .section-title,
.tm-page-medium .section-lead {
    max-width: 920px;
}

.tm-page-medium .tmonitor-help-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1399.98px) {
    .tm-admin-two-column > .col-xl-4,
    .tm-admin-two-column > .col-lg-4,
    .tm-admin-two-column > .col-xl-8,
    .tm-admin-two-column > .col-lg-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 991.98px) {
    .tm-status-card.card-statistic-2 {
        grid-template-columns: 1fr;
    }

    .tm-status-card.card-statistic-2 .card-icon {
        border-radius: var(--tm-radius) var(--tm-radius) 0 0;
        min-height: 78px;
        width: 100%;
    }

    .tm-page-medium .tmonitor-help-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .tmonitor-device-summary-grid {
        grid-template-columns: 1fr;
    }

    .tmonitor-file-upload-zone {
        grid-template-columns: 1fr;
    }
}

/* 16I contrast guard for dark premium surfaces. */
.navbar-bg,
.main-sidebar,
.main-sidebar::after,
.tmonitor-command-center,
.tmonitor-command-metric,
.tmonitor-command-status {
    color: #ffffff;
}

.main-sidebar .sidebar-menu li > a,
.main-sidebar .sidebar-menu li > a span,
.main-sidebar .sidebar-menu li.tmonitor-sidebar-item.active > a.nav-link,
.main-sidebar .sidebar-menu li.tmonitor-sidebar-item.active > a.nav-link span,
.main-sidebar .sidebar-menu li.tmonitor-sidebar-item > a:hover,
.main-sidebar .sidebar-menu li.tmonitor-sidebar-item > a:hover span {
    color: rgba(255, 255, 255, .94);
}

.main-sidebar .sidebar-menu li.menu-header {
    color: rgba(255, 255, 255, .68);
}

.tmonitor-command-center h1,
.tmonitor-command-center h2,
.tmonitor-command-center h3,
.tmonitor-command-center h4,
.tmonitor-command-center h5,
.tmonitor-command-center h6,
.tmonitor-command-center strong,
.tmonitor-command-center .tmonitor-command-title,
.tmonitor-command-center .tmonitor-command-metric strong {
    color: #ffffff;
}

.tmonitor-command-center .tmonitor-command-copy,
.tmonitor-command-center .tmonitor-command-eyebrow,
.tmonitor-command-center .tmonitor-command-status span,
.tmonitor-command-center .tmonitor-command-metric span {
    color: rgba(238, 247, 255, .86);
}

.bg-primary,
.bg-info,
.bg-success,
.bg-danger,
.badge-primary,
.badge-info,
.badge-success,
.badge-danger,
.btn-primary,
.btn-info,
.btn-success,
.btn-danger {
    color: #ffffff !important;
}

.badge-warning,
.btn-warning {
    color: #1f2937 !important;
}

.badge-dark,
.btn-dark,
.tmonitor-dark,
.tmonitor-dark .badge {
    color: #ffffff !important;
}

.tmonitor-resource-ring,
.tmonitor-resource-ring span {
    color: var(--tm-ink);
}

.tmonitor-resource-status-ok span,
.tmonitor-resource-status-warning span,
.tmonitor-resource-status-critical span,
.tmonitor-resource-status-unknown span {
    color: var(--tm-ink);
}

/* 16J1 header dropdown, admin forms, video actions and upload polish. */
.tm-user-menu .nav-link-user {
    color: #0f172a !important;
    font-weight: 800;
    letter-spacing: 0;
}

.tm-user-menu .nav-link-user:hover,
.tm-user-menu .nav-link-user:focus {
    color: var(--tm-blue) !important;
    transform: translateY(-1px);
}

.tm-user-avatar {
    font-size: 13px;
    font-weight: 900;
    height: 32px;
    min-width: 32px;
    width: 32px;
}

.tm-user-dropdown {
    background:
        radial-gradient(circle at top right, rgba(0, 184, 217, .12), transparent 35%),
        #ffffff;
    border-color: rgba(200, 214, 232, .95);
    box-shadow: 0 24px 56px rgba(7, 22, 41, .20);
    min-width: 270px;
    padding: 10px;
}

.tm-user-dropdown .dropdown-item {
    align-items: center;
    display: flex;
    font-weight: 750;
    gap: 9px;
    min-height: 38px;
    padding: 9px 10px;
}

.tm-user-dropdown .dropdown-item i {
    color: var(--tm-blue);
    flex: 0 0 18px;
    text-align: center;
}

.tm-user-dropdown .tm-dropdown-danger,
.tm-user-dropdown .tm-dropdown-danger i {
    color: #b42335 !important;
}

.tm-user-dropdown .tm-dropdown-danger:hover,
.tm-user-dropdown .tm-dropdown-danger:focus {
    background: rgba(220, 53, 69, .09);
    color: #8f1d2b !important;
}

.tm-user-dropdown-language {
    padding: 4px 2px 8px;
}

.tm-language-switcher {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius);
    padding: 10px;
}

.tm-language-title {
    color: var(--tm-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .06em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.tm-language-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tm-language-option {
    background: #ffffff;
    border: 1px solid var(--tm-border);
    border-radius: 999px;
    color: var(--tm-ink);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    padding: 8px 10px;
}

.tm-language-option:hover,
.tm-language-option:focus,
.tm-language-option.is-active {
    background: linear-gradient(135deg, var(--tm-blue), var(--tm-cyan));
    border-color: transparent;
    color: #ffffff;
    text-decoration: none;
}

.tm-admin-form-card,
.tm-admin-table-card,
.tm-video-table-card {
    border-color: rgba(200, 214, 232, .95);
    overflow: visible;
}

.tm-admin-form-card .card-header,
.tm-admin-table-card .card-header,
.tm-video-table-card .card-header {
    background:
        radial-gradient(circle at top right, rgba(0, 184, 217, .12), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.tm-admin-form-grid .form-group label {
    color: var(--tm-ink);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .02em;
}

.tm-form-helper,
.tm-admin-form-grid .small.text-muted {
    color: var(--tm-muted) !important;
    line-height: 1.4;
}

.tm-soft-warning,
.tm-danger-note {
    border-radius: var(--tm-radius);
    border-width: 1px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .62);
    line-height: 1.45;
}

.tm-soft-warning {
    background: linear-gradient(180deg, #fff8e6 0%, #fffdf7 100%);
    border-color: rgba(217, 144, 0, .28);
    color: #6f4a00;
}

.tm-danger-note {
    background: linear-gradient(180deg, #fff1f2 0%, #ffffff 100%);
    border-color: rgba(220, 53, 69, .22);
    color: #8f1d2b;
}

.tm-status-toggle {
    background: #f8fbff;
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius);
    padding: 12px 12px 12px 38px;
}

.tm-file-upload-modern input[type="file"] {
    background: #ffffff;
    border: 1px solid var(--tm-border);
    border-radius: 7px;
    color: var(--tm-ink);
    cursor: pointer;
    font-size: 13px;
    padding: 10px;
}

.tm-file-upload-modern input[type="file"]::file-selector-button {
    background: linear-gradient(135deg, var(--tm-blue), var(--tm-cyan));
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    font-weight: 850;
    margin-right: 12px;
    padding: 8px 12px;
}

.tm-file-upload-modern input[type="file"]::-webkit-file-upload-button {
    background: linear-gradient(135deg, var(--tm-blue), var(--tm-cyan));
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    font-weight: 850;
    margin-right: 12px;
    padding: 8px 12px;
}

.tm-action-button-row,
.tm-table-actions,
.tmonitor-actions,
.tmonitor-action-group {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tm-table-actions form,
.tmonitor-actions form,
.tmonitor-action-group form {
    margin: 0;
}

.tm-table-actions .btn,
.tmonitor-actions .btn,
.tmonitor-action-group .btn {
    border-radius: 7px;
    flex: 0 0 auto;
    min-width: max-content;
}

.tm-video-table-card #tableVideo {
    min-width: 1080px;
}

.tm-video-table-card #tableVideo th:last-child,
.tm-video-table-card #tableVideo td:last-child {
    min-width: 250px;
}

.tm-video-table-card .tmonitor-table-scroll {
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 10px;
}

.tm-admin-table-card .table td,
.tm-video-table-card .table td {
    vertical-align: middle;
}

.tm-admin-table-card .badge,
.tm-video-table-card .badge {
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .tm-user-dropdown {
        min-width: 245px;
    }

    .tm-table-actions,
    .tmonitor-actions,
    .tmonitor-action-group {
        align-items: stretch;
        flex-direction: column;
    }

    .tm-table-actions .btn,
    .tmonitor-actions .btn,
    .tmonitor-action-group .btn,
    .tm-table-actions form,
    .tmonitor-actions form {
        width: 100%;
    }

    .tm-language-options {
        display: grid;
        grid-template-columns: 1fr;
    }
}

/* 16J3 hard contrast fix for the header user dropdown trigger. */
html body .main-navbar ul.navbar-right > li.tm-user-menu > a.nav-link.nav-link-user.tm-user-pill,
html body .main-navbar ul.navbar-right > li.tm-user-menu > a.nav-link.nav-link-user.tm-user-pill.dropdown-toggle {
    align-items: center !important;
    background: linear-gradient(135deg, #071629 0%, #0d2442 58%, #123b68 100%) !important;
    border: 1px solid rgba(0, 184, 217, .32) !important;
    border-radius: 999px !important;
    box-shadow: 0 16px 34px rgba(7, 22, 41, .28), inset 0 1px 0 rgba(255, 255, 255, .12) !important;
    color: #ffffff !important;
    display: inline-flex !important;
    gap: 9px !important;
    min-height: 44px !important;
    padding: 7px 14px 7px 8px !important;
    text-shadow: none !important;
}

html body .main-navbar ul.navbar-right > li.tm-user-menu > a.nav-link.nav-link-user.tm-user-pill .tm-user-name,
html body .main-navbar ul.navbar-right > li.tm-user-menu > a.nav-link.nav-link-user.tm-user-pill div,
html body .main-navbar ul.navbar-right > li.tm-user-menu > a.nav-link.nav-link-user.tm-user-pill span:not(.tm-user-avatar) {
    color: #ffffff !important;
    font-weight: 900 !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

html body .main-navbar ul.navbar-right > li.tm-user-menu > a.nav-link.nav-link-user.tm-user-pill::after,
html body .main-navbar ul.navbar-right > li.tm-user-menu > a.nav-link.nav-link-user.tm-user-pill.dropdown-toggle::after {
    border-top-color: #ffffff !important;
    color: #ffffff !important;
    margin-left: 2px !important;
    opacity: 1 !important;
}

html body .main-navbar ul.navbar-right > li.tm-user-menu > a.nav-link.nav-link-user.tm-user-pill .tm-user-avatar {
    background: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, .78) !important;
    box-shadow: 0 9px 20px rgba(0, 184, 217, .22) !important;
    color: #071629 !important;
}

html body .main-navbar ul.navbar-right > li.tm-user-menu.show > a.nav-link.nav-link-user.tm-user-pill,
html body .main-navbar ul.navbar-right > li.tm-user-menu > a.nav-link.nav-link-user.tm-user-pill:hover,
html body .main-navbar ul.navbar-right > li.tm-user-menu > a.nav-link.nav-link-user.tm-user-pill:focus {
    background: linear-gradient(135deg, #0b1f3a 0%, #0f3b69 56%, #1769ff 100%) !important;
    border-color: rgba(255, 255, 255, .42) !important;
    color: #ffffff !important;
}

/* 16K broad panel consistency pass. */
.tm-page-shell,
.section-body {
    color: var(--tm-ink);
}

.tm-page-header,
.section .section-header,
.tmonitor-admin-heading,
.tmonitor-settings-heading {
    overflow: hidden;
    position: relative;
}

.tm-page-header::before,
.section .section-header::before,
.tmonitor-admin-heading::before,
.tmonitor-settings-heading::before {
    background: linear-gradient(180deg, var(--tm-blue), var(--tm-cyan));
    bottom: 14px;
    content: "";
    left: 0;
    position: absolute;
    top: 14px;
    width: 4px;
}

.tm-page-header h1,
.section .section-header h1 {
    color: #0f172a;
    font-weight: 900;
}

.tm-panel,
.tmonitor-form-card,
.tmonitor-info-card,
.tmonitor-capacity-card,
.tmonitor-company-form-card,
.tmonitor-user-form-card,
.tmonitor-danger-card,
.tmonitor-registered-devices-card,
.android-error-cleanup,
.tmonitor-help-card,
.tmonitor-help-step,
.tmonitor-help-note,
.section-body > .card,
.section-body .row > [class*="col-"] > .card {
    background:
        radial-gradient(circle at top right, rgba(0, 184, 217, .08), transparent 30%),
        #ffffff;
    border: 1px solid rgba(200, 214, 232, .95);
    border-radius: var(--tm-radius);
    box-shadow: var(--tm-shadow-sm);
}

.tm-panel:hover,
.tmonitor-help-card:hover,
.tmonitor-help-step:hover,
.section-body .row > [class*="col-"] > .card:hover {
    box-shadow: 0 18px 42px rgba(15, 23, 42, .09);
}

.tm-panel-header,
.card .card-header {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .96) 0%, rgba(248, 251, 255, .96) 100%);
    border-bottom: 1px solid rgba(220, 230, 242, .78);
}

.tm-panel-header h4,
.card .card-header h4,
.card .card-header h1,
.card .card-header h2,
.card .card-header h3 {
    color: #0f172a;
    font-weight: 900;
}

.tm-form-grid .form-group label,
.tm-form-section label,
.tmonitor-form-card label,
.tmonitor-company-form-card label,
.tmonitor-user-form-card label,
.tmonitor-settings-heading + .section-body label,
.profile-page label,
.card form label {
    color: #172033;
    font-weight: 850;
}

.tm-form-section,
.tmonitor-details,
.tmonitor-compact-details,
.tmonitor-inline-panel,
.tmonitor-help-note,
.android-error-meta {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(200, 214, 232, .95);
    border-radius: var(--tm-radius);
    color: #334155;
}

.tm-table-shell,
.tmonitor-table-scroll,
.table-responsive,
.tmonitor-help-table-wrap {
    border-radius: var(--tm-radius);
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

.tm-table-shell table,
.tmonitor-table-scroll table,
.table-responsive table {
    margin-bottom: 0;
}

.tm-table-shell .table thead th,
.tmonitor-table-scroll .table thead th,
.table-responsive .table thead th,
.tmonitor-help-table th {
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
    color: #334155;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.tm-table-shell .table td,
.tmonitor-table-scroll .table td,
.table-responsive .table td {
    color: #172033;
}

.tm-table-shell .table tbody tr:hover,
.tmonitor-table-scroll .table tbody tr:hover,
.table-responsive .table tbody tr:hover {
    background: rgba(23, 105, 255, .035);
}

.tm-status-badge,
.badge {
    border: 1px solid transparent;
    font-weight: 850;
    letter-spacing: 0;
}

.badge-light,
.badge-secondary {
    background: #eef4fb;
    border-color: #d7e4f2;
    color: #334155 !important;
}

.badge-primary,
.badge-info {
    box-shadow: 0 8px 18px rgba(23, 105, 255, .14);
}

.badge-success {
    box-shadow: 0 8px 18px rgba(24, 160, 88, .12);
}

.badge-danger {
    box-shadow: 0 8px 18px rgba(220, 53, 69, .12);
}

.tm-action-row,
.tm-compact-actions,
.tmonitor-actions,
.tmonitor-schedule-actions,
.android-error-cleanup-actions,
.card-header-action {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tm-action-row form,
.tm-compact-actions form,
.tmonitor-actions form,
.tmonitor-schedule-actions form,
.android-error-cleanup-actions form {
    margin: 0;
}

.tm-action-row .btn,
.tm-compact-actions .btn,
.tmonitor-actions .btn,
.tmonitor-schedule-actions .btn,
.android-error-cleanup-actions .btn {
    white-space: nowrap;
}

.tm-empty-state,
.tmonitor-empty-state,
.tmonitor-premium-empty,
.empty-state {
    background:
        radial-gradient(circle at top, rgba(0, 184, 217, .12), transparent 42%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(200, 214, 232, .95);
    border-radius: var(--tm-radius);
    color: #475569;
}

.tm-empty-state strong,
.tmonitor-empty-state strong,
.tmonitor-premium-empty strong,
.empty-state h2 {
    color: #0f172a;
    font-weight: 900;
}

.tm-help-card,
.tmonitor-help-card {
    min-height: 100%;
}

.tmonitor-help-hero {
    background:
        radial-gradient(circle at top right, rgba(0, 184, 217, .18), transparent 35%),
        linear-gradient(135deg, #071629 0%, #0d2442 58%, #123b68 100%) !important;
    border-color: rgba(0, 184, 217, .24) !important;
    box-shadow: 0 24px 54px rgba(7, 22, 41, .18);
    color: #ffffff;
}

.tmonitor-help-hero h1,
.tmonitor-help-hero p {
    color: #ffffff !important;
}

.tmonitor-help-card p,
.tmonitor-help-card li,
.tmonitor-help-step span,
.tmonitor-card-note,
.tmonitor-neutral-note,
.tmonitor-page-helper,
.tmonitor-field-helper,
.tmonitor-limit-sub,
.tmonitor-company-sub,
.tmonitor-subadmin-sub,
.tmonitor-status-line,
.section-lead,
.form-text.text-muted,
.small.text-muted {
    color: #475569 !important;
}

.tm-warning-soft,
.alert-warning,
.tmonitor-soft-warning {
    background: linear-gradient(180deg, #fff8e6 0%, #fffdf7 100%);
    border-color: rgba(217, 144, 0, .30);
    color: #6f4a00;
}

.tm-danger-soft,
.alert-danger,
.tmonitor-danger-card,
.tmonitor-danger-note {
    border-color: rgba(220, 53, 69, .24);
}

.alert-danger {
    background: linear-gradient(180deg, #fff1f2 0%, #ffffff 100%);
    color: #8f1d2b;
}

.tm-info-soft,
.alert-info {
    background: linear-gradient(180deg, #eff9ff 0%, #ffffff 100%);
    border-color: rgba(0, 184, 217, .28);
    color: #075985;
}

.tm-clean-select,
select.form-control,
input.form-control,
textarea.form-control {
    color: #172033;
}

input[type="file"].form-control {
    cursor: pointer;
}

input[type="file"].form-control::file-selector-button {
    background: linear-gradient(135deg, var(--tm-blue), var(--tm-cyan));
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    font-weight: 850;
    margin-right: 12px;
    padding: 7px 11px;
}

input[type="file"].form-control::-webkit-file-upload-button {
    background: linear-gradient(135deg, var(--tm-blue), var(--tm-cyan));
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    font-weight: 850;
    margin-right: 12px;
    padding: 7px 11px;
}

.tmonitor-summary-grid {
    align-items: stretch;
}

.tmonitor-summary-item,
.tmonitor-device-summary-item,
.tmonitor-capacity-row {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-color: rgba(200, 214, 232, .95);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
}

.tmonitor-summary-item span,
.tmonitor-device-summary-item strong,
.tmonitor-limit-main,
.tmonitor-company-main,
.tmonitor-subadmin-main,
.tmonitor-device-name,
.tmonitor-device-id {
    color: #172033 !important;
}

.android-error-cleanup-title,
.android-error-copy-row h6,
.tmonitor-help-title,
.tmonitor-help-section-title,
.tmonitor-help-step strong {
    color: #172033;
    font-weight: 900;
}

.android-errors-table,
.android-releases-table,
.tmonitor-company-table,
.tmonitor-limit-table,
.tmonitor-object-table,
.tmonitor-device-table,
.tmonitor-schedule-table {
    min-width: max-content;
}

@media (max-width: 1599.98px) {
    .section-body .row > .col-lg-7.col-xl-6,
    .section-body .row > .col-lg-7,
    .section-body .row > .col-xl-6 {
        max-width: 100%;
    }
}

@media (max-width: 991.98px) {
    .card-header-action {
        justify-content: flex-start;
        margin-top: 10px;
        width: 100%;
    }

    .tm-action-row,
    .tm-compact-actions,
    .tmonitor-actions,
    .tmonitor-schedule-actions,
    .android-error-cleanup-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .tm-action-row .btn,
    .tm-compact-actions .btn,
    .tmonitor-actions .btn,
    .tmonitor-schedule-actions .btn,
    .android-error-cleanup-actions .btn,
    .android-error-cleanup-actions form {
        width: 100%;
    }
}

/* 16J2 contrast and video page usability at normal browser zoom. */
.main-navbar .tm-user-pill.nav-link-user,
.main-navbar .tm-user-pill.nav-link-user.dropdown-toggle {
    background: #ffffff !important;
    border: 1px solid rgba(7, 22, 41, .14) !important;
    box-shadow: 0 12px 28px rgba(7, 22, 41, .18);
    color: #071629 !important;
    font-weight: 900;
    min-height: 42px;
    text-shadow: none;
}

.main-navbar .tm-user-pill.nav-link-user:hover,
.main-navbar .tm-user-pill.nav-link-user:focus,
.main-navbar .tm-user-menu.show .tm-user-pill.nav-link-user {
    background: #f8fbff !important;
    border-color: rgba(23, 105, 255, .36) !important;
    box-shadow: 0 16px 34px rgba(23, 105, 255, .18);
    color: #0057d8 !important;
}

.main-navbar .tm-user-pill.nav-link-user.dropdown-toggle::after {
    border-top-color: currentColor !important;
    margin-left: 4px;
    opacity: 1;
}

.tm-user-pill .tm-user-avatar {
    background: linear-gradient(135deg, var(--tm-blue), var(--tm-cyan)) !important;
    box-shadow: 0 8px 18px rgba(23, 105, 255, .24);
    color: #ffffff !important;
}

.tm-user-dropdown {
    color: #172033;
}

.tm-user-dropdown .dropdown-divider {
    border-top-color: rgba(200, 214, 232, .9);
    margin: 8px 0;
}

.tm-user-dropdown .dropdown-item,
.tm-user-dropdown .dropdown-item.has-icon {
    color: #172033 !important;
}

.tm-user-dropdown .dropdown-item:hover,
.tm-user-dropdown .dropdown-item:focus {
    background: linear-gradient(90deg, rgba(23, 105, 255, .09), rgba(0, 184, 217, .08));
    color: #0057d8 !important;
}

.tm-language-pills {
    background: linear-gradient(180deg, #f3f8ff 0%, #ffffff 100%);
    border-color: rgba(200, 214, 232, .95);
}

.tm-language-pills .tm-language-title {
    color: #334155;
    margin-bottom: 9px;
}

.tm-language-pills .tm-language-options {
    display: grid;
    gap: 7px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tm-language-pills .tm-language-option,
.dropdown-item-text .tm-language-pills .tm-language-option {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(200, 214, 232, .95);
    border-radius: 999px;
    color: #172033 !important;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    justify-content: center;
    min-height: 32px;
    padding: 8px 10px;
    text-decoration: none;
}

.tm-language-pills .tm-language-option:hover,
.tm-language-pills .tm-language-option:focus,
.tm-language-pills .tm-language-option.is-active,
.dropdown-item-text .tm-language-pills .tm-language-option.is-active {
    background: linear-gradient(135deg, var(--tm-blue), var(--tm-cyan));
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(23, 105, 255, .18);
    color: #ffffff !important;
}

.tm-readable-muted,
.tm-admin-form-grid .text-muted,
.tm-admin-form-grid .small.text-muted,
.tmonitor-action-help,
.tmonitor-location-label,
.tmonitor-detail-label,
.tmonitor-video-state {
    color: #475569 !important;
}

.tm-admin-form-grid label,
.tm-admin-form-grid .form-group label {
    color: #172033 !important;
}

.tm-video-page {
    align-items: stretch;
    row-gap: 18px;
}

.tm-video-page > [class*="col-"] {
    margin-bottom: 0;
}

.tm-video-upload-panel,
.tm-video-list-panel {
    width: 100%;
}

.tm-video-upload-card {
    margin-bottom: 0;
}

.tm-video-upload-card .card-header,
.tm-video-upload-card .card-body,
.tm-video-upload-card .card-footer {
    padding-left: 20px;
    padding-right: 20px;
}

.tm-video-upload-card .card-body {
    padding-bottom: 8px;
}

.tm-video-upload-card .card-footer {
    align-items: center;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.tm-video-upload-grid {
    display: grid;
    gap: 0 16px;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.tm-video-upload-grid > .form-group,
.tm-video-upload-grid > .video_div,
.tm-video-upload-grid > #verify-wrapper {
    max-width: none;
    width: 100%;
}

.tm-video-upload-grid .video_div,
.tm-video-upload-grid #verify-wrapper,
.tm-video-upload-grid .form-group[style*="display:none"] {
    grid-column: 1 / -1;
}

.tm-video-upload-grid .tmonitor-file-upload-zone {
    grid-template-columns: 44px minmax(180px, 1fr);
    padding: 16px;
}

.tm-video-upload-grid .tmonitor-file-upload-zone input[type="file"] {
    grid-column: 1 / -1;
}

.tm-video-list-panel .tm-video-table-card {
    margin-bottom: 0;
}

.tm-responsive-table-shell {
    border-top: 1px solid var(--tm-border);
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
}

.tm-video-table-card #tableVideo {
    min-width: 1060px;
    table-layout: auto;
}

.tm-video-table-card #tableVideo th,
.tm-video-table-card #tableVideo td {
    color: #172033;
}

.tm-video-table-card #tableVideo th:last-child,
.tm-video-table-card #tableVideo td:last-child {
    min-width: 330px;
    width: 330px;
}

.tm-video-table-card .tm-table-actions,
.tm-video-table-card .tmonitor-action-group {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    max-width: 100%;
}

.tm-video-table-card .tm-table-actions .btn,
.tm-video-table-card .tmonitor-action-group .btn {
    min-width: 104px;
    padding-left: 10px;
    padding-right: 10px;
    white-space: nowrap;
}

.tm-video-table-card .tmonitor-action-help {
    flex: 1 0 100%;
    max-width: 300px;
}

.tm-video-table-card .badge {
    font-weight: 850;
}

.tm-video-table-card .tmonitor-details-panel {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-color: rgba(200, 214, 232, .95);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

@media (max-width: 1599.98px) {
    .tm-video-upload-panel,
    .tm-video-list-panel {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 1199.98px) {
    .tm-video-upload-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (max-width: 767.98px) {
    .tm-video-upload-grid {
        display: block;
    }

    .tm-video-upload-card .card-header,
    .tm-video-upload-card .card-body,
    .tm-video-upload-card .card-footer {
        padding-left: 14px;
        padding-right: 14px;
    }

    .tm-video-table-card #tableVideo {
        min-width: 920px;
    }

    .tm-video-table-card #tableVideo th:last-child,
    .tm-video-table-card #tableVideo td:last-child {
        min-width: 240px;
        width: 240px;
    }

    .tm-video-table-card .tm-table-actions .btn,
    .tm-video-table-card .tmonitor-action-group .btn {
        min-width: 0;
        width: 100%;
    }
}
