/*
 * Minimal admin dashboard stylesheet.
 * Ported from ~/www/appsec public/css/default:
 *   - 1b.fonts.css        (Montserrat @font-face)
 *   - 5.webapp_old.less   (base font-family / size)
 *   - 11.admindash.less   (dashboard + queue layout; LESS vars/mixins compiled)
 *
 * LESS values resolved: @col-theme #46335a, @col-grey-light #f0f0f0, @col-grey #ddd,
 * @col-text #636363, .cast-shadow -> box-shadow: 0 0 10px -9px #000.
 */

/* --- Fonts (1b.fonts.css) --- */
@font-face { font-family: 'Montserrat'; src: url('/public/fonts/Montserrat-ExtraLight.woff2') format('woff2'), url('/public/fonts/Montserrat-ExtraLight.woff') format('woff'); font-weight: 200; font-style: normal; }
@font-face { font-family: 'Montserrat'; src: url('/public/fonts/Montserrat-Light.woff2') format('woff2'), url('/public/fonts/Montserrat-Light.woff') format('woff'); font-weight: 300; font-style: normal; }
@font-face { font-family: 'Montserrat'; src: url('/public/fonts/Montserrat-Regular.woff2') format('woff2'), url('/public/fonts/Montserrat-Regular.woff') format('woff'); font-weight: 400; font-style: normal; }
@font-face { font-family: 'Montserrat'; src: url('/public/fonts/Montserrat-Italic.woff2') format('woff2'), url('/public/fonts/Montserrat-Italic.woff') format('woff'); font-weight: 400; font-style: italic; }
@font-face { font-family: 'Montserrat'; src: url('/public/fonts/Montserrat-Medium.woff2') format('woff2'), url('/public/fonts/Montserrat-Medium.woff') format('woff'); font-weight: 500; font-style: normal; }
@font-face { font-family: 'Montserrat'; src: url('/public/fonts/Montserrat-SemiBold.woff2') format('woff2'), url('/public/fonts/Montserrat-SemiBold.woff') format('woff'); font-weight: 600; font-style: normal; }
@font-face { font-family: 'Montserrat'; src: url('/public/fonts/Montserrat-Bold.woff2') format('woff2'), url('/public/fonts/Montserrat-Bold.woff') format('woff'); font-weight: 700; font-style: normal; }

/* --- Base (5.webapp_old.less) --- */
html, button, input, select, textarea { color: #636363; font-family: Montserrat, Arial, sans-serif; }
body { margin: 0; font-size: 1em; line-height: 1.6; font-weight: 500; }

/* --- Dashboard (11.admindash.less) --- */
.adash { min-height: 100vh; background-color: #f0f0f0; text-align: center; box-sizing: border-box; width: 100%; }
.adash-logo { width: 200px; height: auto; margin-bottom: 20px; }
.adash .title-h2 { margin: 0; font-size: 1.5em; text-align: left; }
.adash-list { margin: -10px; padding: 20px 0; display: flex; flex-wrap: wrap; }
.adash-list + .adash-list { padding-top: 0; margin-top: -20px; }
.adash-item { display: flex; flex-direction: column; list-style: none; width: 25%; padding: 10px; flex-grow: 1; box-sizing: border-box; }
.adash-tile { border: 1px solid #ddd; background-color: #fff; padding: 20px; height: 100%; box-shadow: 0 0 10px -9px #000; display: flex; flex-direction: column; align-items: center; min-height: 150px; }
.adash-tile > :first-child { margin-top: auto; }
.adash-tile > :last-child { margin-bottom: auto; }
.adash-data { display: block; }
.adash-number { display: block; line-height: 40px; padding: 10px 0 20px; font-size: 2em; font-weight: bold; }
.adash-number small { font-size: 0.5em; }
.adash-title { display: block; }
.adash-subtitle { display: block; font-size: 0.7em; font-style: italic; }
.adash-filter { position: absolute; right: 41px; margin-top: -28px; font-size: 18px; border: 0 solid black; background: white; padding: 5px; box-shadow: 0 0 7px rgba(0, 0, 0, .1); }
.adash .fit {
    padding: 0 30px;
}

@media screen and (max-width: 1024px) { .adash-item { width: 50%; } }
@media screen and (max-width: 640px) { .adash-item.is-graph { width: 100%; } }

/* GRAPHS */
.adash-graph-list { margin: 0; padding: 0; display: flex; justify-content: space-between; }
.adash-graph-item { display: flex; flex-direction: column; list-style: none; text-align: center; }
.adash-graph-bar-box { margin: 0 auto; height: 100px; display: flex; flex-direction: column; }
.adash-graph-bar { margin-top: auto; display: block; width: 25px; height: 0; background-color: #46335a; }
.adash-graph-item:nth-child(3) .adash-graph-bar { height: 80px; }
.adash-graph-legend { display: block; font-size: 0.7em; font-style: italic; }
.adash-graph-legend-list { margin: 15px -10px -5px -10px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.adash-graph-legend-item { display: flex; list-style: none; margin: 5px 10px; }
.adash-graph-legend-color { display: block; width: 15px; height: 15px; background-color: #46335a; margin-right: 5px; }
.adash-graph-item:nth-child(2) .adash-graph-bar,
.adash-graph-legend-item:nth-child(2) .adash-graph-legend-color { background-color: #130027; }
.adash-graph-item:nth-child(3) .adash-graph-bar,
.adash-graph-legend-item:nth-child(3) .adash-graph-legend-color { background-color: #79668d; }
.adash-graph-item:nth-child(4) .adash-graph-bar,
.adash-graph-legend-item:nth-child(4) .adash-graph-legend-color { background-color: #000000; }
.adash-graph-item:nth-child(5) .adash-graph-bar,
.adash-graph-legend-item:nth-child(5) .adash-graph-legend-color { background-color: #ac99c0; }
.adash-graph-item:nth-child(6) .adash-graph-bar,
.adash-graph-legend-item:nth-child(6) .adash-graph-legend-color { background-color: #000000; }
.adash-graph-item .adash-graph-legend { margin-top: 5px; }

/* MENU / TABS */
.adash-menu { top: 0; width: 100%; background: white; margin: 0 0 20px; padding: 0; box-shadow: 0 5px 10px rgba(0, 0, 0, .075); }
.adash-menu-list { list-style: none; margin: 0; padding: 0; }
.adash-menu-item { display: inline-block; font-weight: 500; }
.adash-menu-link { display: block; padding: 15px 20px; text-decoration: none; color: rgba(0, 0, 0, .4); border-bottom: 2px solid white; }
.adash-menu-link:hover { color: rgba(0, 0, 0, .6); }
.adash-menu-item.is-active .adash-menu-link { color: #32a2dc; border-color: #32a2dc; }

/* QUEUE / LIST */
.aqueue-panel { margin-bottom: 30px; }
.aqueue-panel h2.title-h2 { margin: 15px 0; }
.aqueue-table { display: table; width: 100%; }
.aqueue-row { position: relative; display: table-row; width: 100%; text-align: left; z-index: 0; }
.aqueue-row:not(:has(.aqueue-toggle)):hover,
.aqueue-row:has(.aqueue-toggle:hover) { cursor: pointer; }
.aqueue-row:not(:has(.aqueue-toggle)):hover::before,
.aqueue-row:has(.aqueue-toggle:hover)::before { background: rgb(248, 248, 248); }
.aqueue-row::before { content: ''; display: block; position: absolute; left: 0; right: 0; top: 0; bottom: 10px; background: white; z-index: -1; box-shadow: 0 3px 50px rgba(0, 0, 0, 0.05); }
.aqueue-head { font-weight: 500; }

.aqueue-cell, .aqueue-head { 
    display: table-cell; 
    padding: 10px; 
    padding-bottom: 22px; 
    font-size: 15px; 
    line-height: 1.25; 
}

.aqueue-cell > .sdicon {
    font-size: 20px;

    position: relative;
    top: 4px;
    left: 4px;

    &.aqueue-aside-arrow {
        margin-right: 10px;
    }
}

.aqueue-cell.state-row, .aqueue-head.state-row { width: 32px; }
.aqueue-cell.text-right, .aqueue-head.text-right { text-align: right; }
.aqueue-task-list { margin: 0; margin-top: 5px; padding: 0; list-style: none; font-size: 0.85em; }
.aqueue-p { text-align: left; font-size: 0.9em; }
.aqueue-aside-arrow { color: rgb(50, 50, 50); display: inline-block; position: relative; top: 3px; font-size: 1.2em; right: 10px; }
.aqueue-title { position: relative; cursor: pointer; }
.aqueue-title:hover { opacity: 0.7; }
.aqueue-title .aqueue-aside-arrow { position: absolute; }
.aqueue-message-list { margin: 5px 0; padding-left: 50px; }
.aqueue-message.is-error { color: #ea5858; }
.aqueue-table .sdicon.is-red { color: #ea5858; }
.aqueue-cell.has-button { width: 225px; padding-bottom: 0; padding-top: 0; }
.aqueue-cell.has-button .btn-link { display: inline-block; position: relative; top: 2px; white-space: nowrap; }
.aqueue-cell.has-button .btn-link:not(:first-child) { margin-left: 5px; }
.aqueue-text-small { color: rgb(150, 150, 150); font-size: 0.85em; }
.aqueue-text-small::before { content: '-'; display: inline-block; margin: 0 5px; }
.aqueue-task-item .aqueue-text-small { position: relative; top: -1px; }
.aqueue-task-item .sdicon {
    display: inline-block;
    font-size: 18px;
    margin-right: 10px;
    position: relative;
    top: 4px;
}
.aqueue-details { list-style: none; margin: 0; padding: 0; margin-top: 20px; font-size: 0.85em; }
.aqueue-title.title-h3 { font-size: 15px; margin: 15px 0; }
.aqueue-search { background: white; margin-bottom: 20px; border: 0; width: 100%; font-family: Montserrat, Arial; padding: 13px 20px; border-radius: 99px; outline: 0; box-shadow: 0 3px 50px rgba(0, 0, 0, 0.05); }

#admin-dashboard { width: 100%; }
