﻿
header .nav {
    display: flex;
    gap: 1rem;
}

.badge {
    padding: .2rem .6rem;
    border-radius: 1rem;
    font-size: .8rem;
}

.Approved {
    background: #d1fae5;
    color: #065f46;
}

.NeedsRevision {
    background: #fef3c7;
    color: #92400e;
}

.NotApproved {
    background: #fee2e2;
    color: #7f1d1d;
}

.Pending {
    background: #e5e7eb;
    color: #374151;
}

.grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr;
}

.grid-3 {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3,1fr);
}

.preview {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: .3rem;
    background: white;
}

    .preview object {
        width: 100%;
        height: 340px;
    }

.headerbox {
    border: 1px dashed #d1d5db;
    padding: .6rem;
    border-radius: 8px;
    background: #fafafa;
}

.muted {
    color: #6b7280;
}

footer {
    margin-top: 3rem;
    font-size: .85rem;
    color: #6b7280;
}

.table-narrow td, .table-narrow th {
    padding: .4rem .5rem;
}

H2 {
    display: inline;
}


.help a {
    color: #fff;
    background-color: #feb22a;
    width: 20px;
    height: 20px;
    display: inline-block;
    border-radius: 100%;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    -webkit-box-shadow: inset -1px -1px 1px 0px rgba(0,0,0,0.25);
    -moz-box-shadow: inset -1px -1px 1px 0px rgba(0,0,0,0.25);
    box-shadow: inset -1px -1px 1px 0px rgba(0,0,0,0.25);
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border: 1px solid #ccc;
    padding: .5rem;
    border-radius: 4px;
    min-width: 120px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}


/* remove bullet from the top-level ul itself */
ul.topnav {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

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

.topnav .dropdown {
    list-style: none;
    position: relative;
    z-index: 9999; /* ✅ */
}

.topnav li {
    margin: 0.25rem 0;
}

.topnav a {
    display: block;
    text-decoration: none;
}

.top-nav-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.top-menu-link {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.25rem;
    border-bottom: 3px solid transparent;
    color: var(--color-darkGrey);
    text-decoration: none;
    font-weight: 500;
}

.top-menu-link:hover {
    border-bottom-color: #9ca3af;
}

.top-menu-link.active {
    border-bottom-color: #10b981;
    font-weight: 700;
}

.admin-menu-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 0.35rem;
    font-weight: normal;
}

.admin-menu-toggle__arrow {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid currentColor;
}

.topnav .dropdown-menu .dropdown-item.active {
    background-color: #f3f4f6;
    color: #111827;
    border-radius: 4px;
}

.multi-select {
    position: relative;
}

.multi-select select[multiple] {
    color: transparent;
}

.multi-select select[multiple] option {
    color: var(--color-darkGrey);
}

.multi-select__value {
    position: absolute;
    top: 50%;
    left: 0.5rem;
    right: 2.5rem;
    transform: translateY(-50%);
    color: var(--color-darkGrey);
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.admin-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-actions form {
    margin: 0;
}

.admin-actions .secondary {
    margin: 0;
}

.admin-actions--single {
    justify-content: flex-end;
}

.truncate {
    max-width: 420px;
    cursor: help;
}
