/*-----------------------------------------
IMPORT CSS LIBRARY
-------------------------------------------*/
@import (less,reference) "semantic-ui.css";
/*-----------------------------------------
BUTTONS
-------------------------------------------*/
.btn {
    &:extend(.ui.button all);
}

.btn .icon {
    &:extend(i.icon all);
}

.btn .icon.magnifier {
    &:extend(i.icon.zoom all);
}

.btn .icon.pen {
    &:extend(i.icon.write all);
}

.btn .icon.leftarrow {
    &:extend(i.icon.long.arrow.left all);
}
/*-----------------------------------------
GRID/SMART GRID
"web2py_breadcrumbs" component
-------------------------------------------*/
.web2py_breadcrumbs {
    margin: 1em 0;
}

.web2py_breadcrumbs > ul {
    &:extend(.ui.breadcrumb all);
    padding: 0;
}

.w2p_grid_breadcrumb_elem {
    &:extend(.ui.breadcrumb .section all);
}

.w2p_grid_breadcrumb_elem.active {
    &:extend(.ui.breadcrumb .active.section all);
}
/*-----------------------------------------
GRID/SMART GRID
"web2py_console" component
-------------------------------------------*/
.web2py_console form {
    display: inline;
    width: 100%;
}

.web2py_console input[name=keywords],
.w2p_query_row input:not(.btn) {
    &:extend(.ui.input input all);
    width: auto;
    margin-left: 0.25em;
    margin-right: 0.25em;
    min-width: 20%;
}

.web2py_console input[name=keywords] {
    width: 50%;
}

#w2p_query_panel {
    margin-top: 0.5em;
    margin-left: 0.25em;
    display:flex;
}

#w2p_query_fields,
.w2p_query_row select {
    &:extend(.ui.form select);
    width: auto;
    flex: none;
    display: inline-block;
    min-width:20%;
}

.w2p_query_row {
    flex-basis: 90%;
    margin-left: 0.25em;
}

.web2py_counter {
    margin-top: 5px;
    text-align: right;
}
/*-----------------------------------------
GRID/SMART GRID
"web2py_htmltable" component
-------------------------------------------*/
.web2py_htmltable table {
    &:extend(.ui.table all, .ui.celled.table all);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.web2py_htmltable table td.row_buttons {
    padding: 2px 5px;
}

.web2py_htmltable table td.row_buttons > * {
    margin-right: 0.25em;
}

.row_buttons .btn {
    &:extend(.ui.small.button,.ui.compact.button all);
}
/*-----------------------------------------
GRID/SMART GRID
"web2py_paginator" component
-------------------------------------------*/
.web2py_paginator {
    &:extend(.ui.table tfoot th all,
             .ui.table tfoot tr:first-child>th:only-child);
    border: 1px solid rgba(34,36,38,0.15);
    border-top: none;
}

.web2py_paginator ul {
    &:extend(.ui.menu all, .ui.pagination.menu all, .ui.right.floated.menu);
    list-style-type: none;
    padding-left: 0;
}

.web2py_paginator::after {
    &:extend(.ui.menu:after);
}

.web2py_paginator ul a {
    &:extend(.ui.menu .item all,
             .ui.menu:not(.vertical) .item,
             .ui.pagination.menu .item);
}

.web2py_paginator ul a:hover {
    &:extend(.ui.menu a.item:hover);
}


.web2py_paginator ul a:active {
    &:extend(.ui.menu a.item:active);
}

.web2py_paginator ul .current a {
    &:extend(.ui.pagination.menu .active.item);
}
/*-----------------------------------------
GRID/SMART GRID
"w2p_export_menu" component
-------------------------------------------*/
.w2p_export_menu a {
    margin-left: 5px;
    margin-top: 10px;
    margin-bottom: 10px;
}
