﻿:root {
    --app-primary: #074db4;
    --app-primary-dark: #212529;
    --app-bg: #f5f5f5;
}

/* A spinning icon while an async action is in flight, e.g. the invoice list's regenerate-PDF button
   (Views/Invoices/Index.cshtml) -- SelectPdf's conversion takes a few seconds. */
@keyframes spin {
    to { transform: rotate(360deg); }
}
.spin {
    animation: spin 1s linear infinite;
}

/* All text #5F5F5F (user 2026-11-01: "overal"), not only body: Bootstrap gives tables, form fields, list groups,
   dropdowns, modals, cards, .text-body etc. their own colour through these variables (#212529 / #000 by default). */
:root, [data-bs-theme=light] {
    --bs-body-color: #5F5F5F;
    --bs-body-color-rgb: 95, 95, 95;
    --bs-emphasis-color: #5F5F5F;
    --bs-emphasis-color-rgb: 95, 95, 95;
    /*--bs-heading-color: #5F5F5F;*/
}

body {
    background: var(--app-bg);
    font-size: 0.95rem;
    font-family: proximanova-regular, sans-serif;
    color: #5F5F5F !important;
}

/* modal headers in the .btn-info colour; .text-bg-* (danger alerts) still win via their !important */
.modal-header {
    background-color: var(--app-primary);
    color: #fff;
}
.modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* every dialog appears instantly -- no Bootstrap slide-down/fade-in transition, on open or close */
.modal.fade,
.modal.fade .modal-dialog,
.modal-backdrop.fade {
    transition: none;
}

/* button/alert colours from the old app (Content/site.css, "Button colors") */
.btn-info, .btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--app-primary);
    --bs-btn-border-color: var(--app-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--app-primary);
    --bs-btn-hover-border-color: var(--app-primary);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--app-primary);
    --bs-btn-active-border-color: var(--app-primary);
}
.alert-info, .alert-primary {
    --bs-alert-color: #fff;
    --bs-alert-bg: var(--app-primary);
    --bs-alert-border-color: var(--app-primary);
}

.btn-danger {
    --bs-btn-color: #fff;
    --bs-btn-bg: #de2e2e;
    --bs-btn-border-color: #de2e2e;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #d9534f;
    --bs-btn-hover-border-color: #d43f3a;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #d9534f;
    --bs-btn-active-border-color: #d43f3a;
}
.alert-danger {
    --bs-alert-color: #fff;
    --bs-alert-bg: #de2e2e;
    --bs-alert-border-color: #de2e2e;
}

.btn-warning {
    --bs-btn-color: #fff;
    --bs-btn-bg: #ec971f;
    --bs-btn-border-color: #ec971f;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #ec971f;
    --bs-btn-hover-border-color: #ec971f;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #ec971f;
    --bs-btn-active-border-color: #ec971f;
}
.alert-warning {
    --bs-alert-color: #fff;
    --bs-alert-bg: #ec971f;
    --bs-alert-border-color: #faebcc;
}

a { color: var(--app-primary); }

.app-nav {
    background: #222222;
}
.app-nav .navbar-brand,
.app-nav .nav-link { color: rgba(255, 255, 255, 0.85); }
.app-nav .nav-link.active,
.app-nav .nav-link:hover,
.app-nav .navbar-brand:hover { color: #fff; }
.app-nav .navbar-toggler { border-color: rgba(255, 255, 255, 0.5); }
.app-nav .navbar-toggler-icon { filter: invert(1); }

/* phone menu (Views/Shared/Components/Menu/Phone): .dropdown-item is styled for a white
   dropdown-menu background by default, which is unreadable on the dark navbar behind it */
.app-nav .navbar-nav > li > .dropdown-item { color: rgba(255, 255, 255, 0.85); }
.app-nav .navbar-nav > li > .dropdown-item:hover,
.app-nav .navbar-nav > li > .dropdown-item:focus { color: #fff; background-color: rgba(255, 255, 255, 0.1); }

/* initials badge + dropdown (language, switch company, logout) in the navbar */
.app-nav .user-initials {
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
}
.app-nav .user-initials::after { display: none; }

/* main menu (Views/Shared/Components/Menu): open Financieel/Instellingen on hover, not just click */
@media (hover: hover) and (pointer: fine) {
    .app-nav .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

/* login / 2FA pages */
.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}
.auth-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    padding: 28px;
    width: 100%;
    max-width: 380px;
}
.auth-card-wide { max-width: 520px; }
.myBackground {
    -moz-background-size: cover;
    -o-background-size: cover;
    -webkit-background-size: cover;
    background-size: cover;
    background-position: 50% 50%;
}
.code-input { font-size: 1.3rem; letter-spacing: 0.25em; text-align: center; }
.shared-key { font-size: 1rem; word-break: break-all; }
.recovery-codes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.recovery-codes code {
    background: var(--app-bg);
    padding: 6px 10px;
    border-radius: 6px;
    text-align: center;
    font-size: 1rem;
    color: #1f2328;
}

/* patients */
.row-link { cursor: pointer; }
.section-title {
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 6px;
}
.detail-list dt { font-weight: 500; color: #6c757d; }
.text-pre { white-space: pre-wrap; }

/* agenda */
.patient-results {
    position: absolute;
    z-index: 1060;
    left: 0;
    right: 0;
    max-height: 280px;
    overflow-y: auto;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}


@media print {
    .app-nav, .btn { display: none !important; }
    .auth-card { box-shadow: none; }
}

/* language switcher */
.lang-switch .form-select { width: auto; min-width: 7.5rem; }
.app-nav .lang-switch .form-select {
    background-color: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}
.app-nav .lang-switch option { color: #1f2328; }
.auth-lang {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 10;
}

/* agenda filters */
.agenda-filter .filter-menu { max-height: 360px; overflow-y: auto; min-width: 14rem; }
.agenda-filter .dropdown-item { cursor: pointer; padding-left: 0.75rem; }
.agenda-filter .dropdown-item:active { color: inherit; background: var(--bs-tertiary-bg); }

/* patient list: gender picture from TITLE (Views/Patients/Index.cshtml, wwwroot/images) */
.patient-gender { width: 2.5rem; text-align: center; }
.patient-avatar { width: 32px; height: 32px; border-radius: 4px; object-fit: contain; vertical-align: middle; background: #fff; }   /* whole photo, nothing cut off */

/* patient photo on the card and the edit page; preview of a new photo (wwwroot/js/photo-editor.js) */
.patient-photo { width: 120px; height: 120px; border-radius: 0.375rem; object-fit: contain; background: #fff;
    border: 1px solid #dee2e6; flex: none; }
/* crop: fixed square viewport, the picture is dragged behind it and zoomed with the slider (old app's Croppie) */
.photo-crop { display: block; width: 280px; height: 280px; border: 1px solid #dee2e6; border-radius: 0.375rem; background: #fff;
    cursor: grab; user-select: none; touch-action: none; }
.photo-crop:active { cursor: grabbing; }
.photo-zoom { width: 280px; }
.camera-video { width: 100%; max-height: 60vh; background: #000; border-radius: 0.375rem; }

/* sortable column headers (Views/Patients/Index.cshtml) */
.sort-link { color: inherit; text-decoration: none; white-space: nowrap; }
.sort-link:hover { text-decoration: underline; }
.sort-link .bi { font-size: 0.9em; margin-left: 0.15rem; }

/* page numbers under every list (Views/Shared/_Pager.cshtml): old layout, new app colours */
.mp-pager { display: inline-block; max-width: 100%; }
.mp-pager-info { text-align: right; color: #6c757d; font-size: 0.875rem; margin-bottom: 0.5rem; }
.mp-pager .pagination {
    margin: 0;
    flex-wrap: wrap;
    --bs-pagination-color: var(--app-primary);
    --bs-pagination-hover-color: var(--app-primary-dark);
    --bs-pagination-focus-color: var(--app-primary-dark);
    --bs-pagination-active-bg: var(--app-primary);
    --bs-pagination-active-border-color: var(--app-primary);
    --bs-pagination-focus-box-shadow: 0 0 0 0.25rem rgba(31, 111, 120, 0.25);
}
.mp-pager .page-link { min-width: 2.5rem; text-align: center; }
@media (max-width: 575.98px) {
    .mp-pager .pagination { --bs-pagination-padding-x: 0.5rem; }
    .mp-pager .page-link { min-width: 2.1rem; }
}

/* date/time pickers (wwwroot/js/date-picker.js): narrow display input + dropdown panel */
.dp-group { max-width: 150px; }
.dp-group .dp-input { min-width: 0; }
.dp-toggle { padding-left: 0.5rem; padding-right: 0.5rem; }
.dp-panel {
    display: none;
    position: fixed;
    z-index: 1060;
    background: #fff;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.375rem;
    padding: 0.5rem;
    width: max-content;
}
.dp-panel.show { display: block; }
.dp-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.4rem; }
.dp-title { font-weight: 600; text-transform: capitalize; border: none; background: none; color: inherit; padding: 0.25rem 0.6rem; border-radius: 0.375rem; }
.dp-title:not(:disabled):hover { background: var(--app-bg); }
/* months / years / decades view: 3 x 4, same width as the days grid (1.6rem + 7 x 2rem + 7 gaps) */
.dp-big { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; width: calc(15.6rem + 7px); }
.dp-cell { border: none; background: none; height: 3.25rem; border-radius: 0.375rem; font-size: 0.85rem; position: relative; line-height: 1.2; }
.dp-cell:hover { background: var(--app-bg); }
.dp-nav { border: none; background: none; width: 2rem; height: 2rem; border-radius: 0.375rem; color: var(--app-primary); }
.dp-nav:hover { background: var(--app-bg); }
.dp-grid { display: grid; grid-template-columns: 1.6rem repeat(7, 2rem); gap: 1px; }
.dp-week { display: contents; }
.dp-dow, .dp-weeknr-head { text-align: center; font-size: 0.72rem; color: #6c757d; padding-bottom: 0.25rem; }
.dp-weeknr { display: flex; align-items: center; justify-content: center; font-size: 0.72rem; color: #adb5bd; }
.dp-day {
    border: none;
    background: none;
    width: 2rem;
    height: 2rem;
    border-radius: 0.375rem;
    font-size: 0.85rem;
    position: relative;
}
.dp-day:hover { background: var(--app-bg); }
.dp-outside { color: #adb5bd; background: #efece4; }
.dp-selected { background: var(--app-primary) !important; color: #fff; }
.dp-today::after {
    content: "";
    position: absolute;
    top: 2px; right: 2px;
    border-width: 0 5px 5px 0;
    border-style: solid;
    border-color: transparent var(--app-primary) transparent transparent;
}
.dp-selected.dp-today::after { border-color: transparent #fff transparent transparent; }
.dp-footer {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--bs-border-color);
    margin-top: 0.4rem;
    padding-top: 0.4rem;
}
.dp-today-btn, .dp-clear-btn { border: none; background: none; color: var(--app-primary); width: 2rem; height: 2rem; border-radius: 0.375rem; }
.dp-today-btn:hover, .dp-clear-btn:hover { background: var(--app-bg); }
.dp-time-panel { max-height: 220px; overflow-y: auto; padding: 0.25rem; min-width: 5.5rem; }
.dp-time-opt {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    padding: 0.3rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.9rem;
}
.dp-time-opt:hover { background: var(--app-bg); }
.dp-time-opt.dp-active { background: var(--app-bg); outline: 1px solid var(--app-primary); }
.dp-time-opt.dp-selected { background: var(--app-primary); color: #fff; }

/* form conventions from the old app, apply everywhere */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}
input:required, select:required, textarea:required {
    border-color: #ef5350 !important;
}

/* row hover on every .table-hover list (Bootstrap 5.3 reads its own --bs-table-hover-bg variable) */
.table {
    --bs-table-hover-bg: #f5f5f5;
}

/* Invoices/Edit.cshtml: expanded line-detail row. !important because Bootstrap's own
   `.table > :not(caption) > * > *` rule sets background-color on every td/th with higher
   specificity than a single class and would otherwise win. */
.line-detail-bg {
    background-color: #F0F8FF !important;
}

/* Invoices/Edit.cshtml: status select doubles as a banner above the invoice number
   (colour comes from .alert-success/.alert-warning/.alert-danger, toggled in invoice-edit.js) */
.invoice-status-banner {
    cursor: pointer;
}

.form-check-input {
    width: 22px !important;
    height: 22px !important;
}

.form-switch .form-check-input {
    width: 35px !important;
}
.form-check-input:checked {
    background-color: var(--app-primary);
    border-color: var(--app-primary);
}


/* Documents (Views/Documents/Index.cshtml, Patient.cshtml) */
.doc-dropzone {
    border: 2px dashed #ced4da;
    border-radius: .375rem;
    padding: 2rem 1rem;
    text-align: center;
    color: #6c757d;
    transition: border-color .15s, background-color .15s;
}
.doc-dropzone.dragover, .doc-dropzone.uploading {
    border-color: #0d6efd;
    background-color: #f0f7ff;
}
.doc-dropzone-label {
    display: block;
    cursor: pointer;
    margin: 0;
}
.doc-card-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    background-color: #f8f9fa;
    overflow: hidden;
}
.doc-card-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.doc-dropzone-previews {
    margin-top: .75rem;
    text-align: left;
}
.doc-upload-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    margin-bottom: .35rem;
}
.doc-upload-name {
    flex: 0 0 40%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.doc-upload-bar {
    flex: 1 1 auto;
    height: 6px;
    background-color: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}
.doc-upload-bar-fill {
    height: 100%;
    width: 0%;
    background-color: #0d6efd;
    transition: width .15s;
}
.doc-upload-row.done .doc-upload-bar-fill {
    background-color: #198754;
    width: 100% !important;
}
.doc-upload-row.failed .doc-upload-bar-fill {
    background-color: #dc3545;
}

/* Patient card: arrived/cancelled/no-show totals next to the photo (old app's success/warning/danger colours). */
.appt-stat { font-weight: normal; color: #fff; }
.appt-stat-arrived { background-color: #48bf2c; }
.appt-stat-cancelled { background-color: #ec971f; }
.appt-stat-noshow { background-color: #de2e2e; }

/* Services: colour dot in the list, and the old app's fixed colour palette (simplecolorpicker) on the edit screen. */
.svc-dot { display: inline-block; width: .85rem; height: .85rem; border-radius: 50%; vertical-align: -.1rem; margin-right: .4rem; border: 1px solid rgba(0,0,0,.15); }
.svc-palette { display: flex; flex-wrap: wrap; gap: .3rem; max-width: 26rem; }
.svc-palette input { position: absolute; opacity: 0; pointer-events: none; }
.svc-palette label { width: 1.6rem; height: 1.6rem; border-radius: .25rem; cursor: pointer; border: 2px solid transparent; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.svc-palette input:checked + label { border-color: #212529; box-shadow: inset 0 0 0 2px #fff; }
.svc-palette input:focus-visible + label { outline: 2px solid #0d6efd; outline-offset: 1px; }

/* Treatment report (Views/Conditions/Edit.cshtml, EditCase.cshtml): textarea font size from the company's
   TEXTAREAFONTSIZE (--cond-font-size), flag fields, the sticky button panel and the toggled treatment buttons. */
.cond-edit textarea, .cond-edit .cond-text { font-size: var(--cond-font-size, 1rem); }
.cond-edit .cond-flag-red { box-shadow: inset 0 0 0 2px #de2e2e; }
.cond-edit .cond-flag-red.is-filled { background: #fdecec; }
.cond-edit .cond-flag-yellow { box-shadow: inset 0 0 0 2px #f2c200; }
.cond-edit .cond-flag-yellow.is-filled { background: #fff8d6; }
.cond-buttons-panel { position: sticky; top: 0.75rem; }
.cond-btn { text-transform: none; }
/* treatment buttons: fixed width, as the old app (.adjButtons .btn max-width 90px, height 44px, 18px bold) */
.cond-btn.btn-lg, .cond-btn.cond-tab { width: 90px !important; min-height: 44px; padding: 0.4rem 0.25rem; font-size: 18px; font-weight: 700; line-height: 1.1; white-space: normal; overflow-wrap: anywhere; }
.cond-btn.cond-btn-used { box-shadow: inset 0 0 0 3px #de2e2e; }
.cond-tab.active { outline: 3px solid rgba(0, 0, 0, 0.35); outline-offset: 1px; }
.cond-cell { min-width: 12rem; max-width: 28rem; }
.cond-cases .accordion-button { gap: 0.25rem; min-width: 0; }
.cond-date { flex: 0 0 11rem; }
.cond-reaction + .cond-reaction { border-top: 1px dashed #dee2e6; padding-top: 0.5rem; }
@media (max-width: 767.98px) {
    .cond-recipe .accordion-body > .d-flex, .cond-reaction { flex-wrap: wrap; }
    .cond-date { flex-basis: 100%; }
    .cond-actions { width: 100%; }
    .cond-actions .btn { flex: 1 1 0; }
}

/* Company > Behandelingen: BUTTONS_* editor (wwwroot/js/button-editor.js) */
.button-editor .be-row { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.button-editor .be-rows > .be-row { padding: .2rem 0; border-bottom: 1px solid var(--bs-border-color-translucent); }
.button-editor .be-handle { cursor: grab; padding: 0 .1rem; font-size: 1.1rem; }
.button-editor .be-text { flex: 1 1 8rem; min-width: 6rem; }
.button-editor .be-insert { flex: 3 1 14rem; min-width: 8rem; }
.button-editor .be-style { flex: 1 1 8rem; min-width: 6rem; }
.button-editor .be-type { flex: 0 0 7.5rem; width: 7.5rem; }
.button-editor .be-perrow { flex: 0 0 5.5rem; width: 5.5rem; }
.button-editor .be-preview { min-width: 3rem; max-width: 10rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
.button-editor .be-tab > .card-header { background: var(--bs-tertiary-bg); }
.button-editor .be-dragging { opacity: .4; }
.button-editor .be-drop-before { box-shadow: 0 -2px 0 0 var(--bs-primary); }
.button-editor .be-drop-after { box-shadow: 0 2px 0 0 var(--bs-primary); }
.button-editor .be-json textarea { font-size: .8rem; }

/* Company > Logo: drop zone around the current logo */
.company-logo-zone { border: 2px dashed var(--bs-border-color); border-radius: .5rem; padding: 1rem; max-width: 36rem; }
.company-logo-zone.dragover { border-color: var(--bs-primary); background: var(--bs-tertiary-bg); }
.company-logo-zone.busy { opacity: .6; pointer-events: none; }
.company-logo { display: block; max-width: 100%; max-height: 200px; object-fit: contain; }

/* Online booking (Views/BookOnline/Book.cshtml): service text opened with an accordion-style arrow */
.svc-toggle .bi { display: inline-block; transition: transform .2s; }
.svc-toggle:not(.collapsed) .bi { transform: rotate(180deg); }

/* Treatment plan progress (Views/TreatmentPlans/_Progress.cshtml): one circle per period, as PracticeHub. */
.plan-periods { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.plan-period {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.6rem; height: 2.6rem; border-radius: 50%; font-size: .8rem; font-weight: 600;
    border: 2px solid #ccc; color: #5F5F5F; background: #fff;
}
.plan-period-done { background: #48bf2c; border-color: #48bf2c; color: #fff; }
.plan-period-booked { border-color: #3367d6; color: #3367d6; }
.plan-period-behind { background: #de2e2e; border-color: #de2e2e; color: #fff; }
.plan-period-now { border-color: #ec971f; color: #ec971f; border-width: 3px; }
.plan-period-notbooked { border-style: dashed; }
.plan-phase-sep { width: 1px; height: 2rem; background: #ccc; margin: 0 .25rem; }
.plan-services { max-height: 14rem; overflow-y: auto; }
/* SOAP report header: the plan card sits between the name block and the buttons. */
.cond-plan { flex: 0 1 auto; max-width: 100%; }
.cond-plan .card-body { padding: .5rem .75rem; }
.cond-plan .card-header { padding: .35rem .75rem; }

/* ---------- Dashboard tiles (Views/Dashboard/Index.cshtml, wwwroot/js/dashboard.js) ---------- */
.dash-tile .card-header { background: #fff; }
.dash-scroll { max-height: 26rem; overflow-y: auto; }
.dash-stat { background: var(--app-bg); border-radius: .5rem; padding: .5rem; }
.todo-item { transition: opacity .5s ease; }
.todo-item.todo-done { opacity: .35; }
.todo-item.todo-done .todo-what { text-decoration: line-through; }
.todo-what { white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.todo-open { cursor: pointer; min-width: 0; }
.todo-who { flex: none; width: 2rem; height: 2rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
            font-size: .75rem; font-weight: 600; color: #fff; background: #3367d6; }
.todo-who.todo-who-all { background: #e9ecef; color: #6c757d; font-size: .9rem; }
.recall-note { white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* Appointment status icon (Views/Shared/_AppointmentStatusIcon.cshtml): bold, the thin outline icons were hard to see. */
.appt-status-icon { font-size: 1.1em; -webkit-text-stroke: .6px currentColor; }


.table .table-hover .onmouseover {
    visibility: hidden
}

.table .table-hover tr:hover .onmouseover {
    visibility: visible
}

.table .table-hover .onmouseout {
    visibility: visible
}

.table .table-hover tr:hover .onmouseout {
    visibility: hidden
}