:root {
    --pos-red: #ff4a2f;
    --pos-dark: #555;
    --pos-darker: #3e3e3e;
    --pos-line: #d7d7d7;
    --pos-bg: #f6f6f6;
    --pos-text: #1f2933;
}

* {
    box-sizing: border-box;
}

body {
    background: var(--pos-bg);
    color: var(--pos-text);
    font-size: 14px;
}

.pos-body,
.app-shell {
    min-height: 100vh;
}

.pos-frame {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.pos-header {
    background: #fff;
    border-bottom: 3px solid var(--pos-red);
    box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
    position: sticky;
    top: 0;
    z-index: 20;
}

.pos-favorites {
    height: 38px;
    border-bottom: 1px solid var(--pos-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    color: #111;
    font-size: 12px;
}

.pos-favorites > i {
    font-size: 18px;
}

.pos-favorites span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pos-toolbar {
    min-height: 50px;
    display: flex;
    align-items: stretch;
    gap: 14px;
    padding: 0 18px;
}

.pos-logo {
    color: var(--pos-red);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0;
    font-size: 24px;
    display: inline-flex;
    align-items: center;
    border-right: 1px solid var(--pos-line);
    padding-right: 18px;
}

.pos-logo:hover {
    color: #e6361d;
}

.pos-modules {
    display: flex;
    align-items: stretch;
    gap: 2px;
    overflow-x: auto;
    min-width: 0;
}

.pos-module {
    min-width: 58px;
    padding: 6px 8px;
    color: #333;
    text-decoration: none;
    display: grid;
    place-items: center;
    border-left: 1px solid transparent;
    border-right: 1px solid transparent;
}

.pos-module i {
    color: var(--pos-red);
    font-size: 24px;
    line-height: 1;
}

.pos-module span {
    font-size: 10px;
    line-height: 1.2;
    margin-top: 2px;
    color: #4a4a4a;
}

.pos-module:hover,
.pos-module.is-active {
    background: #f5f5f5;
    border-color: #e4e4e4;
}

.pos-status {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: max-content;
}

.pos-clock {
    text-align: right;
    line-height: 1;
    padding-right: 8px;
}

.pos-clock span {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #555;
}

.pos-clock strong {
    display: block;
    font-size: 26px;
    font-weight: 400;
    color: #555;
}

.pos-level {
    height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecebff;
    color: #333196;
    padding: 0 12px;
    font-weight: 700;
    font-size: 12px;
    border-radius: 2px;
}

.pos-user {
    height: 38px;
    min-width: 210px;
    border: 1px solid #ddd;
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    background: #fff;
}

.pos-user i {
    font-size: 22px;
}

.pos-user strong,
.pos-user span {
    display: block;
    line-height: 1.15;
}

.pos-user strong {
    font-size: 12px;
}

.pos-user span {
    font-size: 11px;
    color: #222;
}

.pos-mail,
.pos-help {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    text-decoration: none;
    border-radius: 3px;
    font-size: 21px;
}

.pos-mail {
    background: var(--pos-red);
    color: #fff;
}

.pos-help {
    border: 1px solid #cfcfcf;
    color: #222;
    background: #fff;
}

.pos-tabs {
    height: 42px;
    display: flex;
    align-items: stretch;
    background: var(--pos-dark);
    padding-left: 0;
    overflow-x: auto;
}

.pos-tabs a {
    display: inline-flex;
    align-items: center;
    color: #f3f3f3;
    text-decoration: none;
    padding: 0 20px;
    border-right: 1px solid rgba(255, 255, 255, .08);
}

.pos-tabs a:hover,
.pos-tabs a.is-active {
    background: var(--pos-darker);
    color: #fff;
    font-weight: 700;
}

.app-main {
    flex: 1;
    padding: 0 16px 28px;
}

.page-head {
    min-height: 54px;
    margin: 0 -16px 18px;
    padding: 0 16px;
    background: #666;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page-head h1 {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
}

.page-head .btn {
    border-radius: 2px;
    font-weight: 700;
    opacity: 1;
}

.panel,
.metric {
    background: #fff;
    border: 1px solid var(--pos-line);
    border-radius: 4px;
    padding: 16px;
}

.metric {
    border-left: 4px solid var(--pos-red);
    min-height: 96px;
}

.metric span {
    display: block;
    color: #69707a;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
}

.metric strong {
    display: block;
    font-size: 34px;
    line-height: 1.1;
}

.table-responsive.panel {
    padding: 0;
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background: #f1f1f1;
    border-bottom: 1px solid var(--pos-line);
    color: #6a7078;
    font-weight: 500;
    padding: 12px 16px;
}

.table tbody td {
    padding: 12px 16px;
    vertical-align: middle;
    border-color: #e9e9e9;
}

.table tbody tr:hover {
    background: #fafafa;
}

.badge,
.btn,
.form-control,
.form-select,
.alert {
    border-radius: 3px;
}

.btn-dark {
    background: #252a2e;
    border-color: #252a2e;
}

.btn-outline-dark {
    border-color: #555;
}

.form-narrow {
    max-width: 680px;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: #111827;
}

.login-card {
    width: min(420px, calc(100vw - 2rem));
    background: #fff;
    border-radius: 6px;
    padding: 2rem;
}

.login-card .btn-dark {
    background: #23272a;
}

@media (max-width: 992px) {
    .pos-toolbar {
        flex-wrap: wrap;
        padding: 8px 12px;
        gap: 8px;
    }

    .pos-logo {
        height: 42px;
    }

    .pos-status {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
    }
}

@media (max-width: 640px) {
    .pos-favorites {
        display: none;
    }

    .pos-module {
        min-width: 54px;
    }

    .pos-module span {
        display: none;
    }

    .pos-user {
        min-width: 180px;
    }

    .page-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding-top: 12px;
        padding-bottom: 12px;
    }
}
