﻿/* Move down content because we have a fixed navbar that is 50px tall */
body {
    padding-top: 50px;
    padding-bottom: 20px;
}

/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set widths on the form inputs since otherwise they're 100% wide */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="select"] {
    max-width: 280px;
}

/* Responsive: Portrait tablets and up */
@media screen and (min-width: 768px) {
    .jumbotron {
        margin-top: 20px;
    }
    .body-content {
        padding: 0;
    }
}

/* Accessible skip navigation */
.skip-link {
    position: fixed;
    top: -80px;
    left: 16px;
    z-index: 1100;
    padding: 10px 16px;
    color: #ffffff;
    background: #1e40af;
    border-radius: 0 0 4px 4px;
}

.skip-link:focus {
    top: 0;
    color: #ffffff;
}

/* Work dashboard */
.dashboard-page {
    color: #0f172a;
    font-family: "Segoe UI", "Microsoft JhengHei", sans-serif;
    padding-bottom: 24px;
}

.dashboard-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 24px;
    padding: 32px 0 20px;
}

.dashboard-header h1 {
    margin: 2px 0 6px;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
}

.dashboard-eyebrow,
.dashboard-panel-kicker {
    margin: 0;
    color: #1e40af;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dashboard-subtitle,
.dashboard-updated,
.dashboard-document-meta,
.dashboard-document-date {
    color: #64748b;
}

.dashboard-subtitle {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

.dashboard-updated {
    padding-bottom: 4px;
    font-size: 13px;
    white-space: nowrap;
}

.dashboard-alert {
    margin-bottom: 20px;
}

.dashboard-metrics > div {
    margin-bottom: 20px;
}

.dashboard-metric-card {
    position: relative;
    display: block;
    min-height: 132px;
    padding: 18px 20px 16px;
    overflow: hidden;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-left: 4px solid #1e40af;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .06);
    text-decoration: none;
    -webkit-transition: border-color 160ms ease, box-shadow 160ms ease;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.dashboard-metric-card:hover,
.dashboard-metric-card:focus {
    color: #0f172a;
    border-color: #93b4ed;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .12);
    text-decoration: none;
}

.dashboard-metric-card:focus,
.dashboard-document-item:focus,
.dashboard-panel-link:focus,
.dashboard-quick-links a:focus {
    outline: 3px solid #1e40af;
    outline-offset: 2px;
}

.dashboard-metric-warning {
    border-left-color: #b45309;
}

.dashboard-metric-info {
    border-left-color: #2563eb;
}

.dashboard-metric-success {
    border-left-color: #047857;
}

.dashboard-metric-icon {
    position: absolute;
    top: 18px;
    right: 18px;
    color: #94a3b8;
    font-size: 24px;
}

.dashboard-metric-label,
.dashboard-metric-action {
    display: block;
}

.dashboard-metric-label {
    color: #475569;
    font-size: 14px;
    font-weight: 600;
}

.dashboard-metric-value {
    display: block;
    margin: 4px 0 1px;
    font-size: 34px;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.dashboard-metric-action {
    color: #1e40af;
    font-size: 13px;
    font-weight: 600;
}

.dashboard-main-row,
.dashboard-secondary-row {
    margin-bottom: 20px;
}

.dashboard-panel {
    min-height: 100%;
    margin-bottom: 20px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .05);
}

.dashboard-panel-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 16px;
    min-height: 76px;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.dashboard-panel-header h2 {
    margin: 2px 0 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.dashboard-panel-link {
    display: inline-block;
    min-height: 44px;
    padding: 12px 2px;
    color: #1e40af;
    font-weight: 600;
}

.dashboard-document-list {
    margin: 0;
}

.dashboard-document-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 20px;
    min-height: 82px;
    padding: 14px 20px;
    color: #0f172a;
    border-bottom: 1px solid #e2e8f0;
    text-decoration: none;
    -webkit-transition: background-color 150ms ease;
    transition: background-color 150ms ease;
}

.dashboard-document-item:last-child {
    border-bottom: 0;
}

.dashboard-document-item:hover,
.dashboard-document-item:focus {
    color: #0f172a;
    background: #f8fafc;
    text-decoration: none;
}

.dashboard-document-main,
.dashboard-document-side,
.dashboard-document-type,
.dashboard-document-meta,
.dashboard-row-action {
    display: block;
}

.dashboard-document-main {
    min-width: 0;
}

.dashboard-document-main strong {
    display: block;
    margin: 2px 0 3px;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-document-type {
    color: #1e40af;
    font-size: 12px;
    font-weight: 700;
}

.dashboard-document-meta,
.dashboard-document-side {
    font-size: 13px;
}

.dashboard-document-side {
    -ms-flex-negative: 0;
    flex-shrink: 0;
    min-width: 104px;
    text-align: right;
}

.dashboard-row-action {
    margin-top: 5px;
    color: #1e40af;
    font-weight: 600;
}

.dashboard-empty-state {
    padding: 42px 24px;
    color: #64748b;
    text-align: center;
}

.dashboard-empty-state .glyphicon,
.dashboard-empty-state strong,
.dashboard-empty-state span {
    display: block;
}

.dashboard-empty-state .glyphicon {
    margin-bottom: 10px;
    color: #047857;
    font-size: 30px;
}

.dashboard-empty-state strong {
    margin-bottom: 4px;
    color: #334155;
}

.dashboard-quick-links {
    padding: 10px 20px 16px;
}

.dashboard-quick-links a {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 10px 4px;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    text-decoration: none;
}

.dashboard-quick-links a:last-child {
    border-bottom: 0;
}

.dashboard-quick-links a:hover,
.dashboard-quick-links a:focus {
    color: #1e40af;
    text-decoration: none;
}

.dashboard-quick-links .glyphicon {
    width: 24px;
    color: #1e40af;
    font-size: 16px;
    text-align: center;
}

.dashboard-status {
    display: inline-block;
    min-width: 76px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.dashboard-status-warning {
    color: #7c2d12;
    background: #ffedd5;
}

.dashboard-status-success {
    color: #065f46;
    background: #d1fae5;
}

.dashboard-status-info {
    color: #1e3a8a;
    background: #dbeafe;
}

.dashboard-status-muted {
    color: #475569;
    background: #e2e8f0;
}

.dashboard-notice {
    padding-bottom: 18px;
}

.dashboard-notice > p,
.dashboard-notice > a {
    margin-right: 20px;
    margin-left: 20px;
}

.dashboard-notice > p {
    color: #475569;
    line-height: 1.6;
}

@media screen and (max-width: 767px) {
    .dashboard-header {
        display: block;
        padding-top: 24px;
    }

    .dashboard-header h1 {
        font-size: 26px;
    }

    .dashboard-updated {
        margin-top: 12px;
        white-space: normal;
    }

    .dashboard-document-item {
        display: block;
        padding: 16px;
    }

    .dashboard-document-main strong {
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
    }

    .dashboard-document-side {
        min-width: 0;
        margin-top: 10px;
        text-align: left;
    }

    .dashboard-row-action {
        display: inline-block;
        margin-left: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-metric-card,
    .dashboard-document-item {
        -webkit-transition: none;
        transition: none;
    }
}

/* Document workbench */
.workbench-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 0 16px;
}

.workbench-header h1 {
    margin: 2px 0 4px;
    color: #0f172a;
    font-size: 28px;
    font-weight: 700;
}

.workbench-header p:last-child {
    margin: 0;
    color: #64748b;
    font-size: 15px;
}

.workbench-header .btn {
    min-height: 44px;
    padding: 10px 14px;
}

.workbench-filter-notice {
    margin: 0 0 12px;
    padding: 10px 12px;
    color: #334155;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 4px;
}

.workbench-filter-notice a {
    display: inline-block;
    margin-left: 12px;
    color: #1e40af;
    font-weight: 600;
}

.workbench-refresh {
    min-height: 38px;
    margin-bottom: 10px;
}

.workbench-table-region {
    border: 1px solid #e2e8f0;
    border-radius: 4px;
}

.workbench-table-region:focus {
    outline: 3px solid #1e40af;
    outline-offset: 2px;
}

.workbench-table-region > .table {
    margin-bottom: 0;
}

@media screen and (max-width: 767px) {
    .workbench-header {
        display: block;
    }

    .workbench-header .btn {
        margin-top: 14px;
    }
}
