* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f3f5f7;
    color: #20252b;
}

body {
    min-height: 100vh;
}

.topbar {
    background: #151a20;
    color: white;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-size: 23px;
    font-weight: 700;
}

.brand small {
    display: block;
    font-size: 11px;
    font-weight: normal;
    opacity: .7;
    margin-top: 3px;
}

.userbar {
    font-size: 14px;
}

.userbar a {
    color: white;
    margin-left: 18px;
}

.shell {
    display: flex;
    min-height: calc(100vh - 66px);
}

.nav {
    width: 240px;
    background: #222930;
    padding: 18px 0;
}

.nav a {
    display: block;
    padding: 12px 22px;
    color: #e8edf2;
    text-decoration: none;
}

.nav a:hover {
    background: #323c46;
}

.content {
    flex: 1;
    padding: 28px;
    max-width: 1500px;
}

h1 {
    margin-top: 0;
    font-size: 28px;
}

.subtitle {
    color: #68717b;
    margin-top: -12px;
    margin-bottom: 25px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,.09);
}

.card .number {
    font-size: 32px;
    font-weight: 700;
    margin: 8px 0;
}

.card a {
    color: #1557a0;
}

.panel {
    background: white;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 22px;
    box-shadow: 0 1px 4px rgba(0,0,0,.09);
}

.panel h2 {
    margin-top: 0;
    border-bottom: 1px solid #e1e5e8;
    padding-bottom: 12px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(250px, 1fr));
    gap: 16px 22px;
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 5px;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #c8ced4;
    border-radius: 5px;
    font-size: 15px;
}

.field textarea {
    min-height: 90px;
}

button,
.button {
    display: inline-block;
    border: 0;
    background: #1e5d96;
    color: white;
    padding: 11px 18px;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 15px;
}

.success {
    background: #e7f5e9;
    border: 1px solid #a6d8ac;
    padding: 12px;
    margin-bottom: 18px;
    border-radius: 5px;
}

.error {
    background: #fdeaea;
    border: 1px solid #e3aaaa;
    padding: 12px;
    margin-bottom: 18px;
    border-radius: 5px;
}

.login-wrap {
    width: min(460px, calc(100% - 30px));
    margin: 8vh auto;
}

.login-box {
    background: white;
    padding: 30px;
    border-radius: 9px;
    box-shadow: 0 2px 12px rgba(0,0,0,.14);
}

.login-box h1 {
    margin-bottom: 5px;
}

.login-box .field {
    margin: 16px 0;
}

.password-wrap {
    position: relative;
}

.password-wrap input {
    padding-right: 70px;
}

.eye {
    position: absolute;
    right: 9px;
    top: 7px;
    background: transparent;
    color: #444;
    padding: 4px 7px;
    font-size: 12px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th, td {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #e2e5e8;
}

@media (max-width: 800px) {
    .shell {
        display: block;
    }

    .nav {
        width: 100%;
    }

    .grid {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================
   EPOS LOGIN BRANDING
   ========================================================== */

.login-brand {
    display: grid;
    grid-template-columns: 1fr 84px 1fr;
    align-items: center;
    width: 100%;
    min-height: 60px;
    column-gap: 14px;
}

.login-brand-zephyr {
    justify-self: start;
    font-size: 28px;
    line-height: 1;
    font-weight: 700;
    color: #20252b;
}

.login-brand-zephyr .zephyr-z {
    color: #c89b2c;
}

.login-brand-logo {
    justify-self: center;
    display: block;
    max-width: 76px;
    max-height: 54px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.login-brand-epos {
    justify-self: end;
    font-size: 28px;
    line-height: 1;
    font-weight: 700;
    color: #20252b;
}

.login-subtitle {
    margin-top: 20px;
}

.forgot-password {
    text-align: right;
    margin-top: -7px;
    margin-bottom: 16px;
    font-size: 13px;
}

.forgot-password a {
    color: #1557a0;
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}

@media (max-width: 520px) {
    .login-brand {
        grid-template-columns: 1fr 66px 1fr;
        column-gap: 8px;
    }

    .login-brand-zephyr,
    .login-brand-epos {
        font-size: 23px;
    }

    .login-brand-logo {
        max-width: 58px;
        max-height: 46px;
    }
}
