/* stylelint-disable selector-id-pattern, selector-no-qualifying-type, selector-class-pattern */

h3,
h4 {
    border-bottom: 1px solid #999999;
}

h3 {
    font-size: large;
}

.dir,
.subdir {
    margin: 0;
    padding: 0;
    border: 0;
}

.dir img,
.dir p,
.dir form {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
}

.dir img {
    vertical-align: middle;
}

.dir p {
    vertical-align: middle;
}

.newDocument {
    padding: 0.5em;
    border: 1px solid #000000;
    background-color: #cccccc;
}

.newDocument h4 {
    margin: 0;
    margin-bottom: 0.5em;
    padding: 0;
}

.docman_new_submit {
    margin-top: 1em;
    text-align: center;
}

#docman_new_item_location_current_folder {
    font-weight: bold;
}

.dir input {
    border: 1px solid #000000;
}

.docman_help {
    width: auto;
    margin: 0.5em;
    padding: 0.5em;
    padding-left: 40px;
    border: 1px solid #dddddd;
    background: url("../../../www/themes/default/images/ic/help.png") no-repeat;
    background-position: 5px center;
}

.docman_help span.code {
    font-family: "Courier New", Courier;
}

/**
UL/LI Based
*/

ul.docman_items {
    margin: 0;
    padding: 0;
    padding-left: 24px;
    list-style: none;
}

li.docman_item {
    background: transparent url("../../../www/themes/default/images/line.gif") left top repeat-y;
}

.docman_properties_navlist {
    margin: 0;
    padding: 3px 0;
    border-bottom: 1px solid #bcbcad;
    font:
        bold 12px Verdana,
        sans-serif;
}

.docman_properties_navlist li {
    display: inline;
    margin: 0;
    list-style: none;
}

.docman_properties_navlist li a {
    margin-left: 3px;
    padding: 3px 0.5em;
    border: 1px solid #bcbcad;
    border-bottom: 0;
    background: #e8e8e0;
    text-decoration: none;
}

.docman_properties_navlist li a:hover {
    background-color: #e8e8e0;
    color: #8b4020;
}

.docman_properties_navlist li a.docman_properties_navlist_current {
    border-bottom: 1px solid #ffffff;
    background: #ffffff;
}

.docman_properties_content {
    padding: 10px 20px;
    border: 1px solid #bcbcad;
    border-top: 0;
    background: #ffffff;
}

.docman_properties_content dl dt {
    font-size: 1.1em;
    font-weight: bold;
}

.docman_confirm_delete {
    padding: 4px 10px;
    border: medium solid #ff0000;
    background: #ffffcc;
}

.docman_confirm_delete_buttons {
    text-align: center;
}

.docman_item_title {
    padding-left: 6px;
    font-weight: bold;
}

.docman_item_description {
    margin-left: 30px;
    padding-bottom: 6px;
    font-size: 0.9em;
}

.docman_item_icon {
    margin-right: 4px;
    vertical-align: middle;
}

.docman_item_options {
    margin-left: 4px;
}

.docman_item_show_options {
    margin-left: 24px;
    font-size: 0.7em;
}

a.docman_item_show_options {
    color: #cccccc;
}

a.docman_item_show_options:hover {
    color: #ff0000;
}

form {
    margin: 0;
}

a img {
    border: 0;
}

.feedback_error h3,
.feedback_warning h3,
.feedback_info h3 {
    display: none;
}

/*
 * Filters
 */

.docman_filters {
    clear: both; /* needed to clear 'location' and 'view selector' */
}

#docman_filters_title {
    margin-bottom: 0.3em;
    padding: 2px;
    border: 1px solid #dddddd;
    background-color: #dddddd;
    font-weight: bold;
}

#docman_filters_title select {
    font-family: monospace;
    font-weight: normal;
}

#docman_filters_fieldset {
    /* Linked to #docman_filters_title::margin-bottom */
    margin-top: -0.3em;

    /* Need to be the same value than #docman_filters_title::margin-bottom */
    margin-bottom: 0.3em;
    padding: 0.2em;
    border-right: 1px solid #dddddd;
    border-bottom: 1px solid #dddddd;
    border-left: 1px solid #dddddd;
}

#docman_report_filterlist {
    display: inline;
}

#docman_report_options select {
    font-family: monospace;
}

#docman_report_save select {
    font-family: monospace;
}

#docman_report_submit {
    display: inline;
}

/*
 * fielderror
 */

.plugin_docman_fielderror input,
.plugin_docman_fielderror select {
    border: medium solid #ff0000;
}

/* .plugin_docman_fielderror  {
    padding:  4px;
    background: red;
    display:inline;
}
*/

.docman_item_menu {
    position: absolute;
    z-index: 100;
    border: 1px solid #bcbcad;
    border-right: 2px solid #bcbcad;
    border-bottom: 2px solid #bcbcad;
    background: #e8e8e0;

    /* background:#e8e8e0 url('../images/bg-menu.png') 0 0 repeat-y; */
}

.docman_item_menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.docman_item_menu ul li a {
    padding: 0 1em 0 24px;
    border: 1px solid #e8e8e0;

    /* display: block; */
    background-repeat: no-repeat;
    background-position: 2px 1px;
    text-decoration: none;
}

.docman_item_menu ul li a:hover {
    border: 1px solid #bcbcad;
    background-color: #f0f0e7;
}

.docman_item_menu_close {
    height: inherit;
    padding-left: 2px;
    font-size: 0.8em;
    text-align: right;
}

/*
 * For an unknown reason, adding <p> or <span> in .docman_item_menu breaks the
 * randering of the whole menu. The only solution I found is to repeat the rule
 * just for move.
 */
.docman_item_option_id_info {
    display: inline;
    padding-top: 0;
    padding-right: 1em;
    padding-bottom: 0;
    border: 1px solid #e8e8e0;
    background-repeat: no-repeat;
    background-position: 2px 1px;
    font-size: 0.8em;
    text-align: right;
    text-decoration: none;
}

.docman_item_option_details {
    background-image: url("../../../www/themes/default/images/ic/item-details.png");
}

.docman_item_option_newdocument {
    background-image: url("../../../www/themes/default/images/ic/document-new.png");
}

.docman_item_option_newfolder {
    background-image: url("../../../www/themes/default/images/ic/folder-new.png");
}

.docman_item_option_newversion {
    background-image: url("../../../www/themes/default/images/ic/file-newversion.png");
}

/*
 * For an unknown reason, adding <p> or <span> in .docman_item_menu breaks the
 * randering of the whole menu. The only solution I found is to repeat the rule
 * just for move.
 */
.docman_item_option_move {
    display: inline;
    padding: 0 1em 0 24px;
    border: 1px solid #e8e8e0;
    background-image: url("../../../www/themes/default/images/ic/item-move.png");
    background-repeat: no-repeat;
    background-position: 2px 1px;
    text-decoration: none;
}

.docman_item_option_history {
    background-image: url("../../../www/themes/default/images/ic/history.png");
}

.docman_item_option_notifications {
    background-image: url("../../../www/themes/default/images/ic/notifications.png");
}

.docman_item_option_permissions {
    background-image: url("../../../www/themes/default/images/ic/permissions.png");
}

.docman_item_option_delete {
    background-image: url("../../../www/themes/default/images/ic/delete.png");
}

.docman_item_option_update {
    background-image: url("../../../www/themes/default/images/ic/file-newversion.png");
}

.docman_item_option_copy {
    background-image: url("../../../www/themes/default/images/ic/copy.png");
}

.docman_item_option_cut {
    background-image: url("../../../www/themes/default/images/ic/cut.png");
}

.docman_item_option_paste {
    display: inline;
    background-image: url("../../../www/themes/default/images/ic/paste.png");
}

.docman_item_option_approval {
    background-image: url("../../../www/themes/default/images/ic/approval.png");
}

.docman_item_option_lock_add {
    background-image: url("../../../www/themes/default/images/ic/lock_add.png");
}

.docman_item_option_lock_del {
    background-image: url("../../../www/themes/default/images/ic/lock_delete.png");
}

.docman_item_option_separator {
    width: 10em;
    margin-top: 0.25em;
    margin-bottom: 0;
    padding: 0;
}

/*********   */
.docman_item_actual_parent {
    font-weight: bold;
}

/*
 * Metadata import
 */
.docman_md_missing,
.docman_md_equivalent,
.docman_md_conflict {
    /* This color is orange light */
    background-color: rgb(253 185 111);
    text-align: center;
}

.docman_md_equals {
    text-align: center;
}

/*
 * Approval Table
 */

/* Table */
.docman_approval_readonly {
    color: #808080;
    font-style: italic;
    vertical-align: top;
}

.docman_approval_highlight {
    vertical-align: top;
}

.docman_approval_email {
    background-color: #cccccc;
    font-family: courier, monospace;
    white-space: pre;
}

/* Generic */
.docman_form textarea {
    width: 50em;
    height: 7em;
}

.docman_form input.text_field {
    width: 40em;
}

.docman_text_field {
    width: 50em;
}

.docman_embedded_file_content {
    clear: both; /* be careful with this */
}

#docman_browse_viewas {
    color: #c0c0c0;
}

#docman_browse_viewas input {
    vertical-align: middle;
}

.plugin-docman-notifications-list {
    max-width: 960px;
    margin-bottom: 15px;
}

.plugin-docman-notifications-list-document,
.plugin-docman-notifications-list-user {
    width: 50%;
}

.docman-notification-email-list-group-icon {
    margin: 0 5px 0 4px;
    color: #666666;
}

.avatar.docman-notification-user-avatar {
    display: inline-block;
    position: relative;
    top: -2px;
    width: 22px;
    height: 22px;
    margin: 0 2px 0 0;
    vertical-align: middle;
}

.docman-notification-add-cascade {
    margin: 0;
}

.docman-footer-with-external-content {
    margin: 20px 0 0;
}

.docman-footer-external-link {
    color: #747474;
    font-size: 12px;
    text-decoration: none;

    &:hover {
        color: #747474;
    }
}

.docman-footer-external-link-icon {
    margin: 0 5px 0 0;
}

body.docman-body .main .content {
    padding: 0;
}

body.docman-body #feedback:empty {
    padding: 0;
}

/* stylelint-enable */

.docman-content {
    padding: 12px 12px 0;
}
