/* Grid typography, headings, icons and button colors come from Site.css/Bootstrap. */
.fovi .seccion > .btn { margin-left: 12px; }
.fovi-company { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.fovi-company > span { overflow-wrap: anywhere; }
.fovi-company > .btn { flex-shrink: 0; }
.fovi-toolbar, .fovi-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fovi-record-form .fovi-form-actions { justify-content: center; margin: 24px 0 15px; }
.fovi-record-form .control-label { text-align: left; }
.fovi-toolbar { margin: 12px 0; }
.fovi-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.fovi-filters label { display: inline-flex; align-items: center; margin: 0; white-space: nowrap; }
.fovi-filters .form-control { display: inline-block; width: 140px; }
.fovi-filters input[type=checkbox] { margin: 0; }
.fovi-grid-scroll { position: relative; max-width: 100%; overflow-x: auto; margin-top: 15px; }
.fovi-grid-scroll > .table { margin-bottom: 0; }
.fovi-records-table { min-width: 620px; }
.fovi-action-heading { width: 50px; }
.fovi-icon-button { border: 0; padding: 0; background: transparent; line-height: inherit; cursor: pointer; }
.fovi-icon-button:disabled { opacity: .5; cursor: default; }
.fovi-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0; }
.fovi-pagination > .text-center { flex: 1; }
.fovi-pagination .pagination { margin: 0; vertical-align: middle; }
.fovi-pagination select { display: inline-block; width: 60px; }
.fovi-pagination label { font-weight: normal; margin: 0; }
.fovi-drop { border: 2px dashed #6e9c79; border-radius: 6px; padding: 24px; background: #f6faf7; text-align: center; }
.fovi-drop input { display: block; max-width: 100%; margin: 8px auto; }
.fovi-dragging { background: #d9efdf; border-color: #257a3e; }
.fovi-attachments { display: flex; flex-wrap: wrap; gap: 12px; }
.fovi-attachment { display: flex; flex-direction: column; width: 200px; max-width: 100%; margin-bottom: 0; }
.fovi-thumbnail { display: flex; align-items: center; justify-content: center; width: 100%; height: 130px; background: #f5f5f5; border-bottom: 1px solid #ddd; overflow: hidden; }
.fovi-thumbnail img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.fovi-thumbnail-placeholder { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px; color: #777; font-size: 12px; text-align: center; }
.fovi-thumbnail-placeholder .glyphicon { font-size: 36px; color: darkgreen; }
.fovi-attachment .caption { display: flex; flex: 1; flex-direction: column; gap: 8px; }
.fovi-attachment-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 40px; overflow: hidden; overflow-wrap: anywhere; word-break: break-word; }
.fovi-attachment .btn { margin-top: auto; }
.fovi-pending { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fovi-pending span { overflow-wrap: anywhere; word-break: break-word; }
.fovi-media img, .fovi-media video { display: block; max-width: 100%; max-height: 70vh; margin: auto; }
.fovi-media iframe { border: 0; width: 100%; height: 65vh; }
.fovi-media { overflow-wrap: anywhere; }
.fovi .alert, .fovi-media .alert { display: block; float: none; padding: 15px; font-size: 14px; overflow-wrap: anywhere; }
.fovi .alert-success { color: #3c763d; }
.fovi .alert-warning { color: #8a6d3b; }
.fovi .alert-danger, .fovi-media .alert-danger { color: #a94442; }
.fovi button:focus, .fovi input:focus, .fovi select:focus, .fovi tr[tabindex]:focus { outline: 2px solid darkgreen; outline-offset: 2px; }
@media (max-width: 767px) {
    .fovi-company { flex-wrap: wrap; }
    .fovi-filters label { width: 100%; justify-content: space-between; }
    .fovi-filters .form-control { width: 70%; min-width: 0; }
    .fovi-filters input[type=checkbox] { margin-right: auto; }
    .fovi-pagination > .text-center { flex-basis: 100%; order: 1; }
    .fovi-attachment { width: calc(50% - 6px); }
    .fovi-drop { padding: 16px; }
}
@media (max-width: 479px) {
    .fovi-attachment { width: 100%; }
}
