@charset "utf-8";

/* Shared Courier / shop-admin chrome (Orders modal + staff.html). */

.shop-admin {
    font-family: "Courier New", Courier, monospace;
    font-size: 14px;
    font-weight: 200;
    line-height: 16px;
    margin: 24px;
    min-height: calc(100vh - 48px);
    color: #000;
    background: #fff;
}

.shop-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 28px;
}

.shop-admin-header h1 {
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    font-family: inherit;
    color: inherit;
}

.shop-admin-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: baseline;
}

.shop-admin-msg {
    margin-bottom: 16px;
    min-height: 16px;
}

.shop-admin-msg.is-error {
    color: #a00;
}

.shop-admin-msg.is-ok {
    color: #060;
}

.shop-admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0 0 28px;
}

.shop-clickable {
    cursor: pointer;
    border-bottom: solid transparent 1px;
    background: none;
    padding: 0;
    font: inherit;
    color: inherit;
    text-transform: none;
    text-decoration: none;
}

.shop-clickable:hover {
    border-bottom: solid black 1px;
}

.shop-admin-tab.is-active,
.shop-admin-tab.is-active:hover {
    border-bottom: solid black 1px;
}

.shop-clickable.is-off,
.shop-clickable.is-off:hover {
    opacity: 0.35;
    cursor: not-allowed;
    border-bottom-color: transparent;
}

.shop-admin-panel[hidden] {
    display: none !important;
}

.shop-admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 32px;
    font: inherit;
    color: inherit;
}

.shop-admin-table th,
.shop-admin-table td {
    text-align: left;
    padding: 8px 10px 8px 0;
    vertical-align: top;
    border-bottom: 1px solid #ddd;
    font-weight: 200;
}

.shop-admin-table th {
    font-weight: 400;
}

.shop-admin-table tr.row {
    cursor: pointer;
}

.shop-admin-table tr.row:hover td {
    border-bottom-color: #000;
}

.shop-admin-table tr.selected td {
    background: #000;
    color: #fff;
}

.shop-admin-table tr.selected input,
.shop-admin-table tr.selected .shop-clickable {
    color: #fff;
    border-bottom-color: #fff;
}

.shop-admin-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 18px;
    max-width: 960px;
    margin-bottom: 28px;
}

.shop-admin-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.shop-admin-form .wide {
    grid-column: 1 / -1;
}

.shop-admin-form .half {
    grid-column: span 2;
}

.shop-admin-form input:not([type="checkbox"]):not([type="radio"]),
.shop-admin-form select,
.shop-admin-form textarea,
.shop-admin-table input:not([type="checkbox"]):not([type="radio"]),
.shop-admin-table select,
.shop-admin-toolbar input:not([type="checkbox"]):not([type="radio"]),
.shop-admin-toolbar select,
.shop-admin input:not([type="checkbox"]):not([type="radio"]),
.shop-admin select,
.shop-admin textarea {
    font-family: "Courier New", Courier, monospace !important;
    /* ≥16px: iOS Safari won’t zoom on focus */
    font-size: 16px !important;
    font-weight: 200 !important;
    line-height: 20px !important;
    border: none !important;
    border-bottom: 1px solid #000 !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 4px 0 !important;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    color: #000 !important;
    box-shadow: none !important;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.shop-admin-form textarea {
    min-height: 72px;
    resize: vertical;
}

.shop-admin-intended {
    grid-column: 1 / -1;
    margin: 0;
    min-height: 16px;
}

.shop-admin-search {
    position: relative;
}

.shop-suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 2;
    background: #fff;
    border: 1px solid #000;
    margin-top: 4px;
    max-height: 240px;
    overflow-y: auto;
}

.shop-suggest[hidden] {
    display: none;
}

.shop-suggest-item {
    padding: 8px 10px;
    cursor: pointer;
}

.shop-suggest-item:hover {
    background: #000;
    color: #fff;
}

.shop-suggest-meta,
.shop-suggest-empty {
    opacity: 0.55;
}

.shop-suggest-item:hover .shop-suggest-meta {
    opacity: 0.8;
    color: inherit;
}

.shop-admin-form-buttons {
    grid-column: 1 / -1;
    display: flex;
    gap: 16px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.shop-admin-total {
    margin: -16px 0 28px;
}

.shop-admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: baseline;
    margin-bottom: 20px;
}

.shop-admin-hint {
    opacity: 0.55;
    margin: 0 0 16px;
}

@media (max-width: 800px) {
    .shop-admin {
        margin: 12px;
    }

    .shop-admin-form {
        grid-template-columns: 1fr 1fr;
    }

    .shop-admin-table {
        font-size: 13px;
    }
}
