:root
{
    --navy: #172f39;
    --mint: #d3f0e2;
    --green: #237b65;
    --muted: #748288;
}
*
{
    box-sizing: border-box;
}
body
{
    margin: 0;
    background: #f2f6f5;
    color: var(--navy);
    font: 13px/1.5 "Segoe UI", sans-serif;
}
button, input, select
{
    font: inherit;
}
button, a
{
    cursor: pointer;
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible
{
    outline: 3px solid #23ab86;
    outline-offset: 3px;
}
aside
{
    width: 215px;
    position: fixed;
    inset: 0 auto 0 0;
    padding: 32px 22px 22px;
    background: #fff;
    border-right: 1px solid #e4eae7;
    display: flex;
    flex-direction: column;
}
.brand
{
    font: 700 25px/1.3 "Segoe UI", sans-serif;
    letter-spacing: -1px;
    text-decoration: none;
    color: var(--navy);
}
.brand > span
{
    color: var(--green);
    background: var(--mint);
    padding: 0 7px;
    border-radius: 8px;
    margin-right: 5px;
}
.eyebrow
{
    font: 9px/1.6 monospace;
    letter-spacing: 1.3px;
}
aside .eyebrow
{
    color: #83908d;
    margin: 42px 0 15px;
    font-size: 8px;
}
nav
{
    display: grid;
    gap: 8px;
}
nav a, nav button
{
    color: #657675;
    font-size: 11px;
    padding: 12px;
    text-decoration: none;
    border: 0;
    background: transparent;
    text-align: left;
    border-radius: 6px;
}
nav .selected
{
    background: #e6f4ee;
    color: #216c56;
    font-weight: 600;
}
.workspace-note
{
    background: #f0f7f3;
    padding: 15px;
    border: 1px solid #d5e7db;
    border-radius: 6px;
    font-size: 11px;
    margin-top: auto;
}
.workspace-note p
{
    color: #698176;
    font-size: 10px;
}
.live
{
    width: 6px;
    height: 6px;
    background: #35a97e;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}
.profile
{
    display: flex;
    gap: 10px;
    margin-top: 24px;
    font-size: 11px;
    align-items: center;
}
.profile b
{
    background: #dfe9e5;
    padding: 9px;
    border-radius: 50%;
}
.profile small
{
    display: block;
    color: var(--muted);
    font-size: 9px;
}
main
{
    margin-left: 215px;
    padding: 26px 30px;
}
header, .welcome, .section-title, .pagination, .order-total, footer
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}
header
{
    font-size: 10px;
    color: var(--muted);
    border-bottom: 1px solid #dce5e0;
    padding-bottom: 22px;
}
header i
{
    margin: 0 12px;
    font-style: normal;
}
.sandbox
{
    background: #e5ece8;
    padding: 4px 10px;
    border-radius: 4px;
    font: 8px monospace;
    letter-spacing: 1px;
}
.welcome
{
    margin: 35px 0 26px;
}
h1
{
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -1px;
    font-weight: 600;
    margin: 10px 0;
}
.welcome p:not(.eyebrow), .section-title p
{
    color: var(--muted);
    font-size: 11px;
}
.primary
{
    background: var(--navy);
    color: white;
    border: 0;
    border-radius: 5px;
    padding: 12px 16px;
    white-space: nowrap;
    font-size: 11px;
}
.stats
{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.stats article
{
    background: white;
    padding: 18px;
    border: 1px solid #e0e8e3;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}
.stats article > span
{
    font-size: 10px;
    color: #72817d;
}
.stats strong
{
    display: block;
    font-size: 24px;
    letter-spacing: -.5px;
    margin: 10px 0;
    white-space: nowrap;
}
.stats small
{
    display: block;
    font-size: 8px;
    color: var(--muted);
    position: relative;
    z-index: 1;
}
.stats svg
{
    position: absolute;
    width: 70px;
    right: 12px;
    bottom: 30px;
    opacity: .6;
}
.stats .dark
{
    background: var(--navy);
    color: var(--mint);
}
.stats .dark span, .stats .dark small
{
    color: #a4c4bd;
}
.stats .dark strong
{
    font-size: 21px;
}
.content
{
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 20px;
    margin-top: 28px;
}
.catalog, .order-panel
{
    background: white;
    border: 1px solid #e0e8e3;
    border-radius: 8px;
    padding: 22px;
    min-width: 0;
}
h2
{
    font-size: 17px;
    font-weight: 600;
    margin: 0;
}
.section-title p
{
    font-size: 9px;
}
.pill
{
    font-size: 9px;
    color: #3a7f68;
    border-radius: 20px;
    padding: 4px 8px;
    background: #edf7f0;
    white-space: nowrap;
}
.tools
{
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 8px;
    margin: 18px 0;
}
label
{
    font-size: 9px;
    color: #5c6e69;
    display: block;
}
input, select
{
    display: block;
    width: 100%;
    min-width: 0;
    border: 1px solid #dce5e1;
    color: var(--navy);
    background: #fbfdfc;
    border-radius: 4px;
    font-size: 10px;
    padding: 9px 8px;
    margin-top: 5px;
}
.table-wrap
{
    overflow-x: auto;
}
table
{
    width: 100%;
    border-collapse: collapse;
    font-size: 10px;
}
th
{
    background: #f5f8f6;
    color: #86918d;
    font-size: 8px;
    font-weight: 500;
    text-align: left;
}
th, td
{
    padding: 13px 8px;
    border-bottom: 1px solid #edf1ee;
}
.product-name
{
    font-weight: 600;
    min-width: 95px;
}
td small
{
    display: block;
    color: #83918b;
    font-size: 8px;
    font-weight: 400;
}
td button
{
    background: #e4f2e9;
    color: #2b7156;
    border: 0;
    border-radius: 3px;
    padding: 5px 7px;
    margin: 2px;
    font-size: 9px;
}
.pagination
{
    margin-top: 20px;
    font-size: 9px;
}
.pagination button
{
    border: 1px solid #dce5e1;
    background: white;
    font-size: 9px;
    border-radius: 4px;
    padding: 7px;
    color: var(--navy);
}
.order-panel > p
{
    color: var(--muted);
    font-size: 10px;
}
#cart
{
    min-height: 165px;
    padding: 16px 0;
    font-size: 11px;
}
.cart-item
{
    margin-bottom: 15px;
}
.cart-item button
{
    float: right;
    border: 0;
    background: transparent;
    color: #ac5353;
    font-size: 10px;
}
.cart-item small
{
    display: block;
    color: var(--muted);
}
.order-total
{
    border-top: 1px dashed #c9d8d0;
    padding: 18px 0;
    font-size: 11px;
}
.order-panel .primary
{
    width: 100%;
    background: #247962;
}
.order-panel .fine
{
    font-size: 9px;
    margin-top: 15px;
}
button:disabled
{
    opacity: .4;
    cursor: not-allowed;
}
footer
{
    margin-top: 30px;
    color: #7f9187;
    font: 8px/1.5 monospace;
    letter-spacing: .5px;
}
dialog
{
    width: 450px;
    max-width: calc(100vw - 28px);
    max-height: 90vh;
    border: 0;
    border-radius: 8px;
    padding: 30px;
    color: var(--navy);
}
dialog::backdrop
{
    background: #132d39aa;
}
dialog h2
{
    margin: 10px 0 20px;
}
dialog label
{
    margin: 14px 0;
    font-size: 12px;
}
dialog input, dialog select
{
    font-size: 13px;
}
.form-grid
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.close
{
    float: right;
    background: transparent;
    border: 0;
    font-size: 22px;
}
.danger
{
    background: white;
    color: #aa4343;
    border: 1px solid #dba3a3;
    padding: 10px;
    margin-left: 10px;
}
#form-error
{
    color: #b13d3d;
}
#invoice
{
    white-space: pre-line;
    padding: 20px;
    background: #f0f6f2;
}
[hidden]
{
    display: none !important;
}
@media (max-width: 1000px)
{
    .content
    {
        grid-template-columns: 1fr;
    }
    .stats
    {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 650px)
{
    aside
    {
        width: auto;
        position: static;
        padding: 18px 22px;
    }
    aside .eyebrow, nav, .workspace-note, .profile
    {
        display: none;
    }
    main
    {
        margin: 0;
        padding: 20px;
    }
    .welcome
    {
        flex-wrap: wrap;
        margin-top: 25px;
    }
    h1
    {
        font-size: 29px;
    }
    .stats
    {
        gap: 10px;
    }
    .stats article
    {
        padding: 14px;
    }
    .stats strong
    {
        font-size: 20px;
    }
    .stats .dark strong
    {
        font-size: 18px;
    }
    .catalog, .order-panel
    {
        padding: 16px;
    }
    .tools
    {
        grid-template-columns: 1fr 1fr;
    }
    .search
    {
        grid-column: 1 / -1;
    }
    footer
    {
        flex-wrap: wrap;
    }
}
@media print
{
    body > aside, body > main, #invoice-dialog > button, #invoice-dialog > .primary
    {
        display: none;
    }
    dialog
    {
        position: static;
        max-width: none;
        width: 100%;
    }
}
