/* $Header: /local/cvs_repository/caf/modules/web_dashboard/web_static/css/web_dashboard.css,v 1.30 2020/12/09 15:31:03 sacha Exp $ */

/* globals */

div.dashboard-body {
    width: 100%;
}

div.dashboard-body a:link,
div.dashboard-body a:visited,
div.dashboard-body a:hover,
div.dashboard-body a:active {
    color: #00f;
    margin-left: 0;
}
div.dashboard-body a:hover {
    text-decoration: underline;
}
div.dashboard-body a:focus {
    text-decoration: underline;
}


/* header */

div.dashboard-box {
    border-style: solid;
    border-width: 1px;
    clear: both;
}


/* top toolbar */

div.dashboard-toolbar {
    background-color: black;
    padding: 10px;
    font-weight: bold;

    /* float container stuff */
    zoom: 1;
    overflow: hidden;
}

div.dashboard-toolbar a:link,
div.dashboard-toolbar a:visited,
div.dashboard-toolbar a:active {
    color: #fff;
    text-decoration: none;
}
div.dashboard-toolbar a:hover {
    text-decoration: underline;
}
div.dashboard-toolbar a:focus {
    text-decoration: underline !important;
}

a#ci_link:link,
a#ci_link:visited,
a#ci_link:hover,
a#ci_link:active {
    font-size: 131%;
    margin-right: 1em;
}
span.product-name-part1 {
    color: #fff;
}
span.product-name-part2 {
    color: #bbb;
}
a#dash_link {
    font-size: 131%;
    color: #f60;
    font-style: italic;
}
a#dash_link:hover {
    color: #f60;
}
div.dashboard-menu1 {
    float: left;
}
.ext-ie7 div.dashboard-menu1 {
    padding-right: 1em; /* prevents italics being clipped in IE7 */
}
div.dashboard-menu2 {
    float: right;
    font-size: 100%;
    padding-top: 2px;
    color: white;
}
div.dashboard-menu2 ul {
    padding-bottom: 5px;
}
div.dashboard-menu2 ul li {
    display: inline;
    padding: 0px 2px;
    margin: 0px 5px;
}
div.dashboard-menu2 li.selected {
    border-style: none none solid none;
    border-color: #f60;
    border-width: 2px;
}
div.dashboard-menu2 a:link,
div.dashboard-menu2 a:visited,
div.dashboard-menu2 a:active {
    color: white;
    text-decoration: none;
}
div.dashboard-menu2 a:hover {
    color: white;
    text-decoration: underline;
}
div.dashboard-menu2 li.selected a:hover {
    text-decoration: none;
}

/* logged-in user account controls */

div.dashboard-body ul#account-controls {
    float: right;
    font-family: Verdana, sans-serif;
    margin-right: 30px;
    height: 28px;
    /*font-size: 85%;*/
}

div.dashboard-body ul#account-controls li {
    display: block;
    float: left;
    display: inline;
    min-height: 16px;
    padding-left: 1em;
}

div.dashboard-body ul#account-controls li#username_dashboard_link {
    list-style-type: none;
    padding-left: 16px;
    background-image: url('../../img/extjs/icons/user_green.png');
    background-repeat: no-repeat;
    background-position: middle left;
}


div.dashboard-body ul#account-controls .fa {
    color: #f60;
}

/* dashboard innards */

div.dashboard-contents {
    padding: 10px;
    min-height: 400px;
    background-color: #fff;
}


/*----------------------------------------------------------------------*/

div.dashboard-body h1#pagetitle {
    font-size: 131%;
    font-weight: bold;
    margin-bottom: 1em;
}

div.dashboard-body h2 {
    font-size: 116%;
    font-weight: bold;
}

div#dashboard-lhs p {
    margin-bottom: 1em;
}

div#dashboard-credits {
    clear: both;
}

div#dashboard-intro {
    margin-bottom: 20px;
}

div#dashboard-news {
    width: 570px; /* slightly narrow or it peeps out behind splash */
    padding: 9px;
    border: 1px solid #ccc;
    background-color: #f0f0f0;

    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;

    -moz-box-shadow: 0px 0px 5px #ccc;
    -webkit-box-shadow: 0px 0px 5px #ccc;
    box-shadow: 0px 0px 5px #ccc;
}

div#dashboard-message-top {
    background-color: #fe9;
    border: 1px solid #ccc;
    width: 420px;
    padding: 9px;
    margin-bottom: 2em;

    -moz-box-shadow: 3px  3px 3px #ccc;
    -webkit-box-shadow: 3px 3px 3px #ccc;
    box-shadow: 3px 3px 3px #ccc;
}

div#dashboard-message {
    clear: both;
    float: right;
    width: 270px;
    padding: 9px;
    margin-bottom: 2em;
}

div#dashboard-message {
    -moz-box-shadow: 3px  3px 3px #ccc;
    -webkit-box-shadow: 3px 3px 3px #ccc;
    box-shadow: 3px 3px 3px #ccc;

    background-color: #fe9;
    border: 1px solid #ccc;
}




/* Dashboard login page */

div#dashboard-login h2 {
    font-weight: bold;
    margin-bottom: 1em;
}

div#login-form {
    width: 420px;
    margin: 20px 0px;
}



/* Dashboard 403 page */

div#dashboard-tnc {
    border: solid 1px #ccc;
    width: 620px;
    height: 200px;
    overflow: auto;
    padding: 10px;
    background-color: #eee;
    margin: 10px 0px;
    font-family: monospace;

    -moz-box-shadow: 0px 0px 5px #ccc;
    -webkit-box-shadow: 0px 0px 5px #ccc;
    box-shadow: 0px 0px 5px #ccc;
}
div#dashboard-tnc p {
    margin-bottom: 1em;
}
div#dashboard-tnc ul li {
    list-style-type: disc;
    list-style-position: outside;
    margin-left: 1em;
    margin-bottom: 0.5em;
}

/* Dashboard page */

.project-splash img {
    -moz-box-shadow: 3px  3px 3px #999;
    -webkit-box-shadow: 3px 3px 3px #999;
    box-shadow: 3px 3px 3px #999;
}

div#dashboard ul li {
    margin-bottom: 1em;
}

div#dashboard h2 {
    margin-bottom: 1em;
}


/* Record manager page */

div.dashboard-body div#type-title {
    font-weight: bold;
    padding-bottom: 12px;
    font-size: 131%;
}

div#dashboard-recman ul li {
    margin-bottom: 1em;
}

div#dashboard-recman-contents a,
div#dashboard-recman-contents a:link,
div#dashboard-recman-contents a:visited,
div#dashboard-recman-contents a:active  {
    color: #f60;
}


/*
div#dashboard-recman a.toggleon,
div#dashboard-recman a.toggleoff {
    padding-left: 16px;
    background-repeat: no-repeat;
    background-position: middle left;
}
div#dashboard-recman a.toggleon {
    background-image: url('../../img/extjs/icons/bullet_toggle_minus.png');
}
div#dashboard-recman a.toggleoff {
    background-image: url('../../img/extjs/icons/bullet_toggle_plus.png');
}
*/

.dashboard-recman-form {
    width: 900px;
}
.dashboard-recman-form .x-toolbar.csformpanel-join-sort {
    /* override ExtJS toolbar styling for a cleaner look */
    background: none !important;
    border: none !important;
}

div#dashboard-recman form.upload-form {
    width: 588px;
    border: solid 1px #d0d0d0; /* to match extjs grey forms */
    background-color: #eaeaea;
    padding: 5px;
}

a.dashboard-recman-control {
    display: block;
    float: left;
    white-space: nowrap;
    margin-left: 0;
}

/* Advanced search form */

#csform-link {
    display: inline-block;
}
#csform-link.toggleon {
    padding-bottom: 10px;
}

/* Search results */

div.dashboard-body div#type-title {
    margin-bottom: 1em;
}
div#dashboard-search-result div#result-controls {
    /* stick to the top of the viewport when scrolled
     * https://stackoverflow.com/a/57991537
     * -1 is necessary so the element intersects with its viewport boundary
     */
    position: sticky;
    top: -1px;
    min-height: 22px;
    padding: 10px 0;
}
div#dashboard-search-result div#result-controls.stuck {
    /* without this it floats behind the scrolling content */
    z-index: 10;
    /* side margins to negate parent padding so it spans the whole container */
    margin: 0 -10px;
    /* padding so it has some margins when stuck */
    padding: 10px;
    /* opaque background for when it is stuck */
    background: white;
    /* add a bottom border; this looks nice */
    box-shadow: 0 5px 20px -10px black;
}

div.result-visualisation-chooser {
    display: inline-block;
    margin-left: 5em;
}
div.result-visualisation-chooser label {
    cursor: pointer;
}
div.result-visualisation-chooser label:hover > span {
    text-decoration: underline;
}
div.result-visualisation-chooser label:not(:first-of-type):before {
    content: " | ";
}
div.result-visualisation-chooser input {
    display: none; /* the label is visible and clickable */
}
div.result-visualisation-chooser input:not(checked) + span {
    color: #f60; /* same colour as hyperlinks */
}
div.result-visualisation-chooser input:checked + span {
    color: inherit;
    text-decoration: underline;
}
div#dashboard-search-result div#failed-message,
div#dashboard-search-result table#recordbrowse {
    border: solid 1px #ccc;
    background-color: #f0f0f0;
}
div#dashboard-search-result div#failed-message {
    /* width: 608px; this didn't look good in RARI */
    clear: both;
    padding: 10px;
}
div#dashboard-search-result table#recordbrowse {
    border-collapse: collapse;
    width: 100%;
    /* disabled for better column layout */
    /* table-layout: fixed; */
}
div#dashboard-search-result table#recordbrowse th,
div#dashboard-search-result table#recordbrowse td {
    padding: 5px;
}
div#dashboard-search-result table#recordbrowse th {
    background-color: #e0e0e0;
    font-weight: bold;
    /* disabled this because it looks better when there are a lot of fields */
    /* white-space: nowrap; */
}
div#dashboard-search-result tr {
    vertical-align: top;
}
div#dashboard-search-result td.cell-id {
    width: 20%;
}
div#dashboard-search-result td.cell-image * {
    display: block; /* avoids whitespace in the cell causing layout issues */
}
div#dashboard-search-result td.cell-links {
    display: flex;
    align-items: center;
}
div#dashboard-search-result td.cell-links > * {
    margin: 0;
    margin-right: 1em;
    border: 0;
}
div#dashboard-search-result td.cell-links > *:last-child {
    margin-right: 0;
}
div#dashboard-search-result td.cell-links .organiser-toggle {
    /* prevents the layout jumping as the visibility is toggled */
    display: block;
    width: 16px;
    height: 16px;
}

/* list visualisation */

#recordbrowse.visualisation-list thead th.header-checkbox label {
    display: none;
}
#recordbrowse.visualisation-list tr:nth-child(odd) {
    background-color: #f8f8f8;
}
#recordbrowse.visualisation-list tr:nth-child(even) {
    background-color: #f0f0f0;
}
#recordbrowse.visualisation-list td {
    border-right: dotted 1px #ccc;
    word-wrap: break-word;
}
#recordbrowse.visualisation-list td:last-child {
    border-right: none;
}
#recordbrowse.visualisation-list td.cell-image {
    min-width: 96px;
    min-height: 96px;
}
#recordbrowse.visualisation-list td.cell-image img {
    max-width: 96px;
    max-height: 96px;
}

/* grid visualisation */

#recordbrowse.visualisation-grid {
    display: block;
    overflow: hidden;
    padding-top: 3px;
    padding-left: 3px;
    padding-bottom: 3px;
    box-sizing: border-box;
}
#recordbrowse.visualisation-grid thead th {
    display: none;
}
#recordbrowse.visualisation-grid thead th.header-checkbox {
    display: table-cell;
}
#recordbrowse.visualisation-grid thead th.header-checkbox {
    background-color: #fff !important;
}
#recordbrowse.visualisation-grid thead th.header-checkbox label {
    margin-left: 10px;
}
#recordbrowse.visualisation-grid tbody {
    display: flex;
    flex-wrap: wrap;
}
#recordbrowse.visualisation-grid tr {
    display: inline-flex;
    flex-flow: column;
    width: 316px;
    background-color: white !important;
    position: relative;
    padding: 3px !important;
    border: 0 none;
    margin: 4px;
}
#recordbrowse.visualisation-grid td {
    display: block;
    border-top: none !important;
}
#recordbrowse.visualisation-grid .missing-image {
    width: 180px;
    height: 180px;
    background-color: #ccc;
}
#recordbrowse.visualisation-grid td.cell-links {
    position: absolute;
    top: 0;
    right: 0;
}
#recordbrowse.visualisation-grid td.cell-image {
    min-width: 180px;
    min-height: 180px;
}
#recordbrowse.visualisation-grid td.cell-image img {
    max-width: 180px;
    max-height: 180px;
}


div.dashboard-record-secondary-data {
    color: #666;
    font-size: 0.8em;
    font-style: italic;
    word-wrap: break-word;
}


#dashboard-search-result-tools {
    margin-top: 20px;
}

#dashboard-search-result-tools label {
    margin-right: 1em;
}

#dashboard-search-result-tools a.disabled {
    /* grey out */
    color: #999999 !important;
    cursor: not-allowed;
}

ul#dashboard-recman-toolbox-top {
    margin-bottom: 2em;
    padding-bottom: 1em;
    border-bottom: solid 1px #ccc;
}

div.dashboard-recman-toolbox h2 {
    margin-bottom: 1em;
}


#record-organiser-controls {
    display: inline-flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: baseline;
}
#record-organiser-controls .organiser-toggle {
    margin: 0;
    margin-left: 10px;

    display: block;
    width: 16px;
    height: 16px;
}
#record-organiser-controls .organiser-toggle img {
    vertical-align: middle;
}

#dashboard-recman-contents .organiser_bar {
    display: flex;
    flex-direction: column;
}
#dashboard-recman-contents .organiser_bar .organiser_title {
    display: inline-flex;
}
#dashboard-recman-contents .organiser_bar .organiser_title > span:first-child {
    padding-top: 5px; /* align with baseline of drop-down */
    padding-right: 0.5rem;
}
/*### the code in organiser_controls.html that adds .no-matches has been
 *### commented out
#dashboard-recman-contents .organiser_bar.no-matches {
    display: block;
    margin-bottom: 10px;
}
*/
#dashboard-recman-contents #organiser-manager {
    box-sizing: border-box;
    border: solid 1px #ccc;
    padding: 10px 0;
    margin-top: 10px;
}
#dashboard-recman-contents #organiser-manager.hidden {
    display: none;
}
#dashboard-recman-contents #organiser-manager #current-set-box {
    padding-top: 0;
    padding-right: 10px;
}
#dashboard-recman-contents #organiser-manager #current-set-box #current-set {
    padding-top: 0;
}
#dashboard-recman-contents #organiser-manager h2 {
    margin-top: 0;
}


/* splash popup */

div#dashboard-splash {
    width: 300px;
}
div#dashboard-splash div.product-info {
    padding: 5px;
    line-height: 150%;
}
div#dashboard-splash a:hover {
    text-decoration: underline;
}



/* organiser manager page */

div#dashboard-orgman-contents a,
div#dashboard-orgman-contents a:link,
div#dashboard-orgman-contents a:visited,
div#dashboard-orgman-contents a:hover,
div#dashboard-orgman-contents a:active  {
    color: red;
}


/*----------------------------------------------------------------------*/
/* Rendered CAF views (web_dform.i) */

div.dashboard-rendered-view {
}

div.dashboard-rendered-view h2.section-fullname {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

div.dashboard-rendered-view div.field {
    /* floatcontainer stuff */
    zoom:1; /* for IE6 to trigger overflow */
    overflow: hidden;

    margin-bottom: 0.25em;
}

div.dashboard-rendered-view div.field-fullname {
    width: 25%;
    float: left;
}
div.dashboard-rendered-view div.field-value {
    width: 75%;
    float: left;
}
div.dashboard-rendered-view div.sequence-fullname {
    width: 100%;
    font-style: italics;
}
div.dashboard-rendered-view ul.sequence-members {
    margin-left: 10%;
    width: 90%;
}


ul#record-tools {
    margin-top: 2em;
    padding-top: 0.5em;
    border-top: solid 1px #ccc;
}
ul#record-tools li {
    margin-bottom: 0.5em;
}

/* Bigger, bolder, more visible buttons in toolbars?  - C24 M5 WF018 */

.dashboard-rendered-view-toolbar button {
    width: 150px;
    height: 30px !important;
    font-weight: bold;
    font-size: 1.4em;
}
.dashboard-rendered-view-toolbar .x-btn {
    margin: 10px !important;
}

.x-toolbar .x-btn-tl { background-position: 0 0; }
.x-toolbar .x-btn-tr { background-position: -3px 0; }
.x-toolbar .x-btn-tc { background-position: 0 -6px; }
.x-toolbar .x-btn-ml { background-position: 0 -24px; }
.x-toolbar .x-btn-mr { background-position: -3px -24px; }
.x-toolbar .x-btn-mc { background-position: 0 -1096px; }
.x-toolbar .x-btn-bl { background-position: 0 -3px; }
.x-toolbar .x-btn-br { background-position: -3px -3px; }
.x-toolbar .x-btn-bc { background-position: 0 -15px; }

/* record editor */

#record-heading { display: flex; background-color: #505050; color: white; margin: 0px; padding: 15px 15px 5px 15px; font-size: 2em; font-weight: normal; }

#record-subheading { display: flex; background-color: #505050; color: white; margin: 0px !important; padding: 0px 15px 15px 15px; font-size: 1.2em; font-weight: normal; }


#record-control-links { background-color: #DDDDDD; margin-bottom: 10px; padding: 8px; font-weight: bold; }
#record-control-links::after {  content: "";
  clear: both;
  display: table;
}
#record-control-links div#left-controls { float: left; }
#record-control-links div#right-controls { float: right; }
/*

#record-control-links {  display: flex; background-color: #DDDDDD; margin-bottom: 10px; padding: 8px; font-weight: bold; }

#record-control-links div { width: 100%; text-align: right; }

#record-control-links div#left-controls { width: 100%; text-align: left; }
*/
#record-control-links a { color: red; }



#record-control-links span.inactive { color: #888;}

#record-status-banner { /* deleted record etc */
    color: red;
    padding-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    font-size: 200%;
    font-weight: bold;
    letter-spacing: 0.25em;
}

/* batch edit */
.x-view-list { z-index: 10000 !important; }

/* search result navigation */

div.paged-nav {
    display: inline-flex;
    align-items: baseline;
}
span.paged-nav-pagination {
    display: flex;
    align-items: baseline;
    margin-left: 5em;
}
span.paged-nav-pagination > * {
    display: block;
    margin-left: 5px !important;
}
 span.paged-nav-pagination a {
    background-color: #FBFBFB;
    border:1px solid #ccc; 
    padding:5px;
    border-radius: 5px;
    border-collapse: collapse;
}
span.paged-nav-pagination a.current,
span.paged-nav-pagination a:hover {
    cursor: pointer;
    background-color:#EBEBEB;
}

