/*
  CSS style definitions for VIA 2.x.y
  http://www.robots.ox.ac.uk/~vgg/software/via/
  Author: Abhishek Dutta <adutta@robots.ox.ac.uk>
  Date: moved from index.html to via.css on 13 June 2019
*/

body {
    min-width: 200px;
    padding: 0;
    margin: 0;
    font-family: sans-serif;
}

* {
    box-sizing: border-box;
}

input[type=text] {
    border: 1px solid #cccccc;
    margin: 0.6rem 0;
    padding: 0.2rem 0.4rem;
}

a {
    text-decoration: none;
}

textarea {
    border: 1px solid #cccccc;
    margin: 0.6rem 0;
    padding: 0.2rem 0.4rem;
}

/* MET Annotator - Header com logo e título */

.met_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background-color: #000000;
    color: #ffffff;
    z-index: 1002;
    border-bottom: 1px solid #212121;
}

.met_logo {
    height: 44px;
    width: auto;
    display: block;
}

.met_title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #eeeeee;
}

/* MET Annotator - Toggle auto-save no header */
.met_autosave_wrap {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    user-select: none;
    margin: 0.2rem 0.1rem 0.2rem 1rem;
}
.met_autosave_label {
    font-size: 0.85rem;
    color: #eeeeee;
    margin-right: 0.4rem;
}
.met_autosave_switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 18px;
    cursor: pointer;
}
.met_autosave_switch .met_autosave_slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #757575;
    border-radius: 18px;
    transition: background-color 0.2s;
}
.met_autosave_switch .met_autosave_slider::before {
    content: "";
    position: absolute;
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
    background-color: #e0e0e0;
    border-radius: 50%;
    transition: transform 0.2s;
}
.met_autosave_switch input:checked + .met_autosave_slider {
    background-color: #4caf50;
}
.met_autosave_switch input:checked + .met_autosave_slider::before {
    transform: translateX(18px);
}

/* Top panel : #navbar, #toolbar */

.top_panel {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    background-color: #212121;
    color: #ffffff;
    z-index: 1001;
    margin-bottom: 1rem;
}

/* Navigation menu bar that appear at the top */

.menubar {
    display: inline-block;
    /* height needed to avoid extra bottom border */

    height: 1.8rem;
}

.menubar a:link {
    color: #eeeeee;
    text-decoration: none;
}

.menubar a:visited {
    color: #eeeeee;
    text-decoration: none;
}

.menubar ul {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

.menubar li {
    display: block;
    float: none;
    padding: 0.45rem 1rem;
    position: relative;
}

.menubar li:hover {
    background-color: #31488a;
    cursor: default;
}

.menubar li ul {
    display: none;
    list-style: none;
    background-color: #212121;
    border: 1px solid #616161;
    min-width: 10rem;
    position: absolute;
    z-index: 100;
    margin: 0.4rem -1rem;
}

.menubar li ul li {
    display: block;
    float: none;
    color: #eeeeee;
    margin: 0;
    padding: 0.6rem 1rem;
}

.menubar li ul li:hover {
    cursor: pointer;
}

.menubar li ul li.submenu_divider {
    margin: 0 0.4rem;
    padding: 0;
    height: 1px;
    border-bottom: 1px solid #424242;
}

.menubar li:hover ul {
    display: block;
}

/* toolbar containing small icons for tools */

.toolbar {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    margin-left: 1rem;
    gap: 0.2rem 0.1rem;
}

.toolbar svg {
    fill: white;
    margin: 0.2rem 0.1rem;
    height: 1.2rem;
    vertical-align: middle;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.toolbar svg:hover {
    fill: yellow;
    cursor: pointer;
}

.toolbar svg:active {
    fill: white;
}

.toolbar ul {
    display: inline-block;
    padding: 0.2rem;
    margin: 0;
}

.toolbar li {
    display: inline;
    float: left;
    padding: 0rem 0.3rem;
    border: 1px solid white;
}

/* main menu items */

.toolbar li:hover {
    color: red;
    cursor: pointer;
}

/* Middle panel: containing #image_panel, #leftsidebar */

.middle_panel {
    display: table;
    table-layout: fixed;
    width: 100%;
    z-index: 1;
    padding: 0;
}

#leftsidebar {
    display: none;
    z-index: 10;
    vertical-align: top;
}

#display_area {
    display: table-cell;
    width: 100%;
    z-index: 1;
    margin: 0;
    padding-left: 1em;
    vertical-align: top;
}

/* layers of canvas */

#image_panel {
    position: relative;
    outline: none;
}

#image_panel img {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    outline: none;
}

#image_panel canvas {
    position: absolute;
    top: 0px;
    left: 0px;
    outline: none;
}

#image_panel .visible {
    visibility: visible !important;
    opacity: 1 !important;
}

#image_panel label>img {
    visibility: visible;
    opacity: 1;
    position: relative;
    width: auto;
    height: 4em;
    outline: none;
}

/* image buffer
#image_panel .fadein {
    visibility: visible;
    opacity: 1;
    transition: visibility 0s linear 0s, opacity 300ms;
}

#image_panel .fadeout {
    visibility:hidden;
    opacity:0;
    transition: visibility 0s linear 300ms, opacity 300ms;
}
*/

/* image grid view */

#image_grid_panel {
    position: relative;
    margin: 0;
    padding: 0;
    width: 100%;
}

#image_grid_panel #image_grid_toolbar {
    display: block;
    font-size: small;
    padding: 0.5rem 0;
}

#image_grid_panel #image_grid_toolbar select {
    font-size: small;
}

#image_grid_panel #image_grid_toolbar .tool {
    display: inline;
    margin: 0 0.5rem;
}

#image_grid_panel #image_grid_group_panel {
    font-size: small;
}

#image_grid_panel #image_grid_group_panel select {
    font-size: small;
}

#image_grid_panel #image_grid_group_panel .image_grid_group_toolbar {
    display: inline;
    margin-left: 2rem;
}

#image_grid_panel #image_grid_group_panel .image_grid_group_toolbar select {
    margin: 0 0.2rem;
    padding: 0;
    font-size: small;
}

#image_grid_panel #image_grid_nav {
    display: inline;
    font-size: small;
    padding-left: 0.5rem;
    margin-top: 0.2rem;
}

#image_grid_panel #image_grid_nav span {
    margin: 0 0.2rem;
}

#image_grid_panel #image_grid_content {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    outline: none;
}

#image_grid_panel #image_grid_content #image_grid_content_img img {
    margin: 0.3em;
    padding: 0;
    border: 0.2em solid #ffffff;
    outline: 0.1em solid #0066ff;
}

#image_grid_panel #image_grid_content #image_grid_content_img .not_sel {
    opacity: 0.6;
    outline: none;
}

#image_grid_panel #image_grid_content #image_grid_content_img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#image_grid_panel #image_grid_content #image_grid_content_rshape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#image_grid_panel #image_grid_content img {
    float: left;
    margin: 0;
}

#leftsidebar_collapse_panel {
    display: none;
    position: relative;
    z-index: 10;
    vertical-align: top;
}

#leftsidebar_show_button {
    font-size: large;
    margin-left: 0.1rem;
}

#leftsidebar_show_button:hover {
    color: red;
    cursor: pointer;
}

/* Left sidebar accordion */

button.leftsidebar_accordion {
    font-size: large;
    background-color: #f2f2f2;
    cursor: pointer;
    padding: 0.5em 0.5em;
    width: 100%;
    text-align: left;
    border: 0;
    outline: none;
}

button.leftsidebar_accordion:focus {
    outline: none;
}

button.leftsidebar_accordion.active, button.leftsidebar_accordion:hover {
    background-color: #e6e6e6;
}

button.leftsidebar_accordion:after {
    content: '\02795';
    color: #4d4d4d;
    float: right;
}

button.leftsidebar_accordion.active:after {
    content: '\2796';
}

.leftsidebar_accordion_panel {
    display: none;
    padding: 0 0.5em;
    font-size: small;
    border-right: 2px solid #f2f2f2;
    border-bottom: 2px solid #f2f2f2;
}

.leftsidebar_accordion_panel.show {
    display: block;
}

/* Keyboard shortcut panel */

.leftsidebar_accordion_panel table {
    border-collapse: collapse;
}

.leftsidebar_accordion_panel td {
    border: 1px solid #f2f2f2;
    padding: 0.2rem 0.4rem;
}

/* buttons */

.button_panel {
    display: inline-block;
    width: 100%;
    margin: 0.2rem 0;
}

.button_panel .text_button, .text_button {
    color: #0000ff;
    padding: 0.2rem 0.2rem;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.button_panel .flush_right {
    float: right;
}

.button_panel .text_button:hover, .text_button:hover {
    cursor: pointer;
}

.button_panel .text_button:active, .text_button:active {
    color: #000000;
}

.button_panel .active {
    border-bottom: 1px solid black;
}

.button_panel .button {
    display: inline-block;
    padding: 0.35rem 0.5rem;
    margin: 0 0.05rem;
    cursor: pointer;
    background-color: #cccccc;
    border-radius: 0.2rem;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.button_panel .button:hover {
    background-color: black;
    color: white;
}

/* Attributes: input + botões para novo atributo */

#attributes_update_panel .attribute_input_panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

#attributes_update_panel .attribute_input_panel input {
    flex: 1 1 8rem;
    min-width: 0;
}

#attributes_update_panel .attribute_input_panel .button {
    flex-shrink: 0;
}

/* Attributes properties: name, description, type, ... */

.attribute_section_title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0.75rem 0 0.5rem 0;
    color: #333;
}

#attribute_properties {
    display: table;
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    border: 1px solid #cccccc;
}

#attribute_properties .property {
    display: table-row;
}

#attribute_properties .property span {
    display: table-cell;
    padding: 0.35rem 0.5rem;
    vertical-align: middle;
}

#attribute_properties .property span input {
    width: 100%;
    border: 1px solid #cccccc;
    margin: 0;
}

#attribute_properties .property span input:focus {
    border: 1px solid black;
}

#attribute_properties .property span select {
    width: 100%;
    border: 1px solid #cccccc;
    margin: 0;
}

/* Attributes options: options for attribute type={checkbox,radio,...} */

#attribute_options_container {
    width: 100%;
    margin: 1.25rem 0;
    overflow: hidden;
}

#attribute_options {
    display: table;
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #cccccc;
    table-layout: fixed;
}

#attribute_options_add {
    padding: 1rem 0.75rem;
    border: 1px solid #cccccc;
    border-top: none;
    background-color: #f5f5f5;
}

#attribute_options_add .attribute_add_section_title {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    color: #333;
}

#attribute_options_add .attribute_add_wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
}

#attribute_options_add .new_option_id_entry {
    display: grid;
    grid-template-columns: minmax(4rem, 25%) minmax(6rem, 55%) auto;
    gap: 0.5rem;
    align-items: end;
    width: 100%;
    min-width: 0;
}

#attribute_options_add .attribute_add_cell {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

#attribute_options_add .attribute_add_cell:last-child {
    align-items: flex-start;
}

#attribute_options_add .attribute_add_cell label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #555;
}

#attribute_options_add .new_option_id_entry input[type="text"] {
    width: 100%;
    min-width: 4rem;
    border: 1px solid #cccccc;
    padding: 0.35rem 0.4rem;
    font-size: 0.8rem;
    box-sizing: border-box;
}

#attribute_options_add .new_option_id_entry input[type="radio"],
#attribute_options_add .new_option_id_entry input[type="checkbox"] {
    margin: 0;
    align-self: center;
}

#attribute_options_add .attribute_add_button_row {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    margin-top: 0.25rem;
}

#attribute_options_add .attribute_add_button_row .button {
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 0.35rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

#attribute_options_add .attribute_add_button_row .button:hover {
    background-color: #1d4ed8;
}

#attribute_options_add .attribute_add_button_row .button:active {
    background-color: #1e40af;
}

/* Sidebar estreita: empilhar em 2 colunas */
@media (max-width: 380px) {
    #attribute_options_add .new_option_id_entry {
        grid-template-columns: 1fr 1fr;
    }
    #attribute_options_add .attribute_add_cell:nth-child(3) {
        grid-column: 1 / -1;
    }
}

#attribute_options .property {
    display: table-row;
}

#attribute_options .property span {
    display: table-cell;
    padding: 0.2rem 0.2rem;
    font-weight: bold;
}

#attribute_options .property input {
    display: table-cell;
    width: 94%;
    border: none;
    border-bottom: 1px solid #cccccc;
    margin: 0;
    font-size: 0.8rem;
}

#attribute_options .property input:focus,
#attribute_options .property input:focus-visible,
#attribute_options_add .new_option_id_entry input:focus,
#attribute_options_add .new_option_id_entry input:focus-visible {
    background-color: #f8f8f8;
    outline: 2px solid #333;
    outline-offset: 1px;
}

#attribute_options .property input:focus,
#attribute_options .property input:focus-visible {
    border-bottom: 2px solid #000000;
}

#attribute_options .attribute_option_remove_btn {
    padding: 0.2rem 0.4rem;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    color: #666;
}

#attribute_options .attribute_option_remove_btn:hover {
    color: #c00;
    background-color: #ffe6e6;
}

#attribute_options .property span input[type=checkbox] {
    vertical-align: middle;
}

#attribute_options .property span input[type=radio] {
    vertical-align: middle;
}

/*
  Overlay panel used to gather user inputs before invoking a function
  using invoke_with_user_inputs()
*/

#user_input_panel {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.6);
    z-index: 1002;
}

#user_input_panel .content {
    position: fixed;
    background-color: white;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    padding: 2rem 4rem;
}

#user_input_panel .content .title {
    font-size: large;
    font-weight: bold;
}

#user_input_panel .content .user_inputs {
    display: table;
    width: 100%;
    border-collapse: collapse;
}

#user_input_panel .content .user_inputs .row {
    display: table-row;
}

#user_input_panel .content .user_inputs .cell {
    display: table-cell;
    padding: 1rem 0.5rem;
    vertical-align: middle;
    border: 1px solid #f2f2f2;
}

#user_input_panel .content .user_confirm {
    display: table;
    width: 100%;
    text-align: center;
    margin: 2rem 0;
}

#user_input_panel .content .user_confirm .ok {
    display: table-cell;
    width: 48%;
}

#user_input_panel .content .user_confirm .cancel {
    display: table-cell;
    width: 48%;
}

#user_input_panel .content .warning {
    color: red;
}

/* Attribute editor */

#annotation_editor_panel {
    position: fixed;
    display: none;
    width: 100%;
    left: 0;
    bottom: 0;
    background-color: white;
    border-top: 2px solid #cccccc;
    padding: 0.2em 1em;
    overflow: auto;
    z-index: 1001;
    box-shadow: 0 0 1em #cccccc;
}

#annotation_editor {
    display: table;
    margin-bottom: 3em;
    border-collapse: collapse;
    font-size: inherit;
    position: absolute;
    background-color: white;
}

#annotation_editor .row {
    display: table-row;
}

#annotation_editor .highlight .col {
    background-color: #e6e6e6;
}

#annotation_editor .col {
    display: table-cell;
    padding: 0.4em 0.6em;
    border: 1px solid #000000;
    vertical-align: middle;
    font-size: inherit;
}

#annotation_editor .header {
    font-weight: bold;
}

#annotation_editor .id {
    font-weight: bold;
}

#annotation_editor .col input[type=checkbox] {
    vertical-align: middle;
}

#annotation_editor .col input[type=radio] {
    vertical-align: middle;
    font-size: inherit;
}

#annotation_editor .col label {
    vertical-align: middle;
    font-size: inherit;
}

#annotation_editor .col textarea {
    border: 0.1em solid #cccccc;
    padding: 0;
    margin: 0;
    font-size: inherit;
    background-color: #ffffff;
}

#annotation_editor .col textarea:focus {
    border: 0.1em dashed #cccccc;
}

#annotation_editor .col span {
    display: block;
}

#annotation_editor .col horizontal_container {
    display: inline-block;
}

#annotation_editor .col .img_options {
    display: inline;
}

#annotation_editor .col .img_options .imrow {
    display: block;
}

#annotation_editor .col .img_options span {
    display: inline-block;
    margin: 0.2rem 0.4rem;
}

#annotation_editor .col .img_options span img {
    height: 4em;
}

#annotation_editor .col .img_options p {
    margin: 0;
    padding: 0;
    font-size: inherit;
}

#annotation_editor .col .img_options input[type=radio] {
    display: none;
}

#annotation_editor .col .img_options input[type=radio] + label {
    display: block;
    cursor: pointer;
    text-align: center;
}

#annotation_editor .col .img_options input[type=radio]:checked + label {
    border: 0.1em solid black;
    background-color: #cccccc;
    cursor: default;
    font-size: inherit;
}

#project_info_panel {
    display: table;
    border-collapse: collapse;
    font-size: 0.8rem;
}

#project_info_panel .row {
    display: table-row;
}

#project_info_panel .col {
    display: table-cell;
    padding: 0.4rem 0.1rem;
    border: none;
}

#project_info_panel .col input[type=text] {
    font-size: 0.8rem;
    border: none;
    border-bottom: 1px solid #cccccc;
    margin: 0;
    width: 100%;
}

#project_info_panel .col input:focus {
    border-bottom: 1px solid #000000;
    background-color: #f2f2f2;
    color: #000000;
}

/* Region shape selection panel inside leftsidebar */

ul.region_shape {
    font-size: xx-large;
    list-style-type: none;
    overflow: hidden;
    padding: 0.4em 0;
    margin: 0;
}

ul.region_shape li {
    float: left;
    padding: 0 0.2em;
    fill: #ffffff;
    stroke: #000000;
}

ul.region_shape li:hover {
    cursor: pointer;
    fill: #ffffff;
    stroke: #ff0000;
}

ul.region_shape .selected {
    fill: #ffffff;
    stroke: #ff0000;
}

/* Modo simples: formas secundárias escondidas */
body.via-simple-mode .via-shape-secondary {
    display: none !important;
}

/* Modo simples: formas primárias destacadas (circle, polygon) */
ul.region_shape li.via-shape-primary {
    padding: 0 0.3em;
}

body.via-simple-mode ul.region_shape li.via-shape-primary {
    transform: scale(1.15);
}

/* Menu item Modo Simples: indicador visual quando ativo */
#via_simple_mode_menuitem.via-simple-mode-active {
    font-weight: bold;
    background-color: #31488a;
}

/* cursor coordinates inside region shape selection panel in leftsidebar */

#region_info {
    font-size: 0.8em;
    margin-bottom: 0.4em;
}

/* Loaded image list shown in leftsidebar panel */

#via_project_filename_list {
    display: none;
    font-size: small;
    overflow: scroll;
    min-height: 10rem;
    max-height: 25rem;
}

#via_project_filename_list ul {
    position: relative;
    line-height: 1.3em;
    margin: 0;
    padding: 0;
    list-style-type: none;
}

#via_project_filename_list li {
    white-space: nowrap;
    display: block;
    padding: 0 0.4rem;
}

#via_project_filename_list li:hover {
    background-color: #d5e5ff;
    cursor: pointer;
}

#via_project_filename_list .error {
    color: red;
}

#via_project_filename_list .sel {
    border-left: 0.2rem solid black !important;
    font-weight: bold;
}

#via_project_filename_list .buffered {
    border-left: 0.2rem solid #cccccc;
}

#via_project_filename_list li.unannotated {
    border-left: 0.2rem solid #ff9800;
    background-color: rgba(255, 152, 0, 0.08);
}

#via_project_filename_list .img-fn-list-edit {
    width: 100%;
    min-width: 8rem;
    box-sizing: border-box;
    font: inherit;
    padding: 0.1rem 0.2rem;
    border: 1px solid #0066cc;
    background: #fff;
}

#message_panel {
    display: block;
    width: 100%;
    position: fixed;
    bottom: 0px;
    z-index: 9999;
    text-align: center;
}

#message_panel .content {
    display: inline;
    margin: auto;
    background-color: #1a1a2e;
    color: #66e0ff;
    font-size: small;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 2rem;
    padding: 0.5rem 2rem;
}

#message_panel.success .content {
    background-color: #70c1bb;
    color: #fff;
}

#message_panel.error .content {
    background-color: #c62828;
    color: #fff;
}

#message_panel.progress .content {
    white-space: normal;
    overflow: visible;
}

#message_panel .progress-bar {
    display: block;
    width: 200px;
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    margin: 0.5rem auto 0;
    overflow: hidden;
}

#message_panel .progress-bar .progress-fill {
    height: 100%;
    background: #fff;
    border-radius: 3px;
    transition: width 0.2s ease;
}

.met-progress-bar {
    display: block;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

#met_progress_indicator #met_progress_fill {
    height: 100%;
    background: #4caf50;
    transition: width 0.2s ease;
}

.text_panel {
    display: none;
    margin: auto;
    font-size: medium;
    line-height: 1.3em;
    margin: 0;
    max-width: 700px;
}

.text_panel li {
    margin: 1em 0;
    text-align: left;
}

.text_panel p {
    text-align: left;
}

.svg_button:hover {
    cursor: pointer;
}

/* Loading spinbar */

.loading_spinbox {
    display: inline-block;
    border: 0.4em solid #cccccc;
    border-radius: 50%;
    border-top: 0.4em solid black;
    border-bottom: 0.4em solid black;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#invisible_file_input {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

/* MET Annotator - Como usar (painel clicável) */

.met_howto_link {
    font-size: 0.9em;
    color: #66e0ff;
    cursor: pointer;
    text-decoration: none;
    padding: 0 2px;
    border-bottom: 1px dotted #66e0ff;
}

.met_howto_link:hover {
    color: #70c1bb;
    border-bottom-color: #70c1bb;
}

.met_howto_tooltip {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 6px;
    min-width: 260px;
    max-width: 320px;
    background: #fff;
    border: 1px solid #bdbdbd;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    z-index: 10000;
    overflow: hidden;
}

.met_howto_tooltip.met_howto_open {
    display: block;
}

.met_howto_close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: none;
    border: none;
    font-size: 1.4em;
    line-height: 1;
    color: #757575;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
}

.met_howto_close:hover {
    color: #212121;
}

.met_howto_content {
    padding: 1em 1.2em 1em 1em;
    padding-right: 2em;
    font-size: 0.95em;
    line-height: 1.5;
    color: #212121;
}

.met_howto_content .met_howto_title {
    font-weight: bold;
    margin: 0 0 0.4em 0;
    font-size: 1em;
    color: #424242;
}

.met_howto_content ul {
    margin: 0 0 0.8em 0;
    padding-left: 1.2em;
}

.met_howto_content li {
    margin-bottom: 0.35em;
}

.met_howto_content p {
    margin: 0 0 0.4em 0;
}

.met_howto_content p:last-child {
    margin-bottom: 0;
}

.display_none {
    display: none !important;
}

.display_block {
    display: block !important;
}

/* project settings */

#settings_panel {
    font-size: 1rem;
    border-collapse: collapse;
    width: 95%;
}

#settings_panel a {
    border: 1px solid #f2f2f2;
}

#settings_panel .row {
    display: table-row;
    border-bottom: 1px solid #f2f2f2;
}

#settings_panel .variable {
    display: table-cell;
    width: 60%;
    padding: 0.5rem 0.5rem;
}

#settings_panel .variable div {
    display: block;
}

#settings_panel .variable .name {
    ;
}

#settings_panel .variable .desc {
    font-size: 0.7em;
    color: #808080;
    padding: 0.2rem 0rem;
}

#settings_panel .value {
    display: table-cell;
    vertical-align: middle;
    padding-left: 1rem;
}

/* page {about, help, file not found, etc.} */

.display_area_content {
    ;
}

/* this class is used to clear the display area content */

.narrow_page_content li {
    font-size: 0.9rem;
    margin: 0.4rem 0;
}

.narrow_page_content {
    width: 60%;
}

.force_small_font {
    font-size: small !important;
}

.key {
    font-family: monospace;
    padding: 1px 6px;
    background: linear-gradient(to bottom,#f0f0f0,#fcfcfc);
    ; border: 1px solid #e0e0e0;
    white-space: nowrap;
    color: #303030;
    border-bottom-width: 2px;
    border-radius: 3px;
    font-size: 1.2em;
}
