.rx-shell {
    width: 100%;
    max-width: 1080px;
    margin: 12px auto;
    padding: 12px;
    color: #17212b;
    background: #eef2f5;
    border: 1px solid #c9d2da;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(21, 35, 46, .16);
}

.rx-shell *,
.rx-window * {
    box-sizing: border-box;
}

.rx-summary {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(150px, .8fr) minmax(190px, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

.rx-summary-card {
    min-width: 0;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #c9d2da;
    border-left: 5px solid #2879b7;
    border-radius: 6px;
}

.rx-summary-card--quantity {
    border-left-color: #16823d;
}

.rx-label {
    display: block;
    margin-bottom: 3px;
    color: #596874;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.rx-value {
    display: block;
    color: #17212b;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.rx-value--large {
    font-size: 19px;
}

.rx-scan-panel {
    padding: 10px;
    background: #fff;
    border: 1px solid #c9d2da;
    border-radius: 6px;
}

.rx-scan-heading {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.rx-message {
    min-height: 18px;
    margin: 0;
    color: #b42318;
    font-size: 13px;
    font-weight: 700;
    text-align: right;
}

.rx-scan-input,
.rx-window .k-textbox,
.rx-window input[type="text"],
.rx-validation input[type="text"] {
    width: 100% !important;
    min-height: 52px;
    padding: 8px 10px;
    color: #111820;
    background: #fff;
    border: 3px solid #16823d;
    border-radius: 5px;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
}

.rx-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.rx-progress-track {
    flex: 1;
    height: 12px;
    overflow: hidden;
    background: #d8e0e6;
    border-radius: 6px;
}

.rx-progress-fill {
    width: 100%;
    height: 100%;
    background: #16823d;
}

.rx-progress-value {
    min-width: 56px;
    font-size: 16px;
    font-weight: 800;
    text-align: right;
}

.rx-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 8px;
}

.rx-action.k-button,
.rx-action {
    width: 100%;
    min-height: 54px;
    padding: 7px 9px;
    border: 1px solid transparent;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.15;
    text-shadow: none;
    box-shadow: none;
}

.rx-action .k-button-text {
    font-size: inherit;
    font-weight: inherit;
    white-space: normal;
}

.rx-action .k-icon {
    margin-right: 7px;
    font-size: 18px;
}

.rx-action:hover .k-button-text,
.rx-action:focus .k-button-text {
    display: inline;
    opacity: 1;
}

.rx-action--primary,
.rx-action--primary:hover,
.rx-action--primary:focus {
    background: #16823d;
    border-color: #0f6b31;
}

.rx-action--secondary,
.rx-action--secondary:hover,
.rx-action--secondary:focus {
    background: #2879b7;
    border-color: #1f6498;
}

.rx-action--neutral,
.rx-action--neutral:hover,
.rx-action--neutral:focus {
    color: #17212b;
    background: #e3e9ee;
    border-color: #b7c2cb;
}

.rx-action--warning,
.rx-action--warning:hover,
.rx-action--warning:focus {
    color: #2f2500;
    background: #f1c40f;
    border-color: #d2a900;
}

.rx-action--danger,
.rx-action--danger:hover,
.rx-action--danger:focus {
    background: #c62828;
    border-color: #a61f1f;
}

.rx-action--full {
    grid-column: 1 / -1;
}

.rx-details {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    margin-top: 8px;
}

.rx-detail {
    min-width: 0;
    padding: 8px;
    background: #fff;
    border: 1px solid #c9d2da;
    border-radius: 5px;
}

.rx-detail-value {
    color: #17212b;
    font-size: 15px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.rx-window {
    width: 100%;
    padding: 0px;
    color: #17212b;
    background: #eef2f5;
}

.rx-window-header {
    position: sticky;
    top: 0;
    z-index: 2;
    padding-bottom: 8px;
    background: #eef2f5;
}

.rx-list {
    display: grid;
    gap: 8px;
}

.rx-item {
    overflow: hidden;
    background: #fff;
    border: 1px solid #c9d2da;
    border-radius: 6px;
}

.rx-item-title {
    padding: 9px 10px;
    color: #fff;
    background: #364552;
    font-size: 17px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.rx-item-subtitle {
    padding: 7px 10px 0;
    color: #52616c;
    font-size: 13px;
    font-weight: 700;
}

.rx-item-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-top: 7px;
    background: #d5dde3;
}

.rx-metric {
    padding: 8px;
    background: #f8fafb;
    text-align: center;
}

.rx-metric strong {
    display: block;
    margin-top: 2px;
    font-size: 17px;
}

.rx-item .rx-action {
    border-radius: 0;
}

.rx-notice {
    margin-bottom: 8px;
    padding: 10px;
    border-left: 5px solid #2879b7;
    border-radius: 4px;
    color: #173e59;
    background: #e8f3fa;
    font-size: 14px;
    line-height: 1.35;
}

.rx-notice--danger {
    border-left-color: #c62828;
    color: #741d1d;
    background: #fdecec;
}

.rx-dialog-grid {
    display: grid;
    gap: 8px;
}

.rx-confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 8px;
}

.rx-validation {
    width: 100%;
    max-width: 720px;
    margin: 12px auto;
    padding: 12px;
    background: #eef2f5;
}

.rx-validation-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 8px;
}

@media only screen and (max-width: 700px) {
    .rx-shell {
        margin: 0;
        padding: 6px;
        border-width: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .rx-summary {
        grid-template-columns: 1fr 1fr;
        gap: 5px;
        margin-bottom: 5px;
    }

    .rx-summary-card {
        padding: 7px 8px;
        border-left-width: 4px;
    }

    .rx-summary-card:first-child {
        grid-column: 1 / -1;
    }

    .rx-label {
        font-size: 10px;
    }

    .rx-value,
    .rx-value--large {
        font-size: 13px;
    }

    .rx-scan-panel {
        padding: 7px;
    }

    .rx-scan-input,
    .rx-window .k-textbox,
    .rx-window input[type="text"],
    .rx-validation input[type="text"] {
        min-height: 50px;
        font-size: 20px;
    }

    .rx-actions {
        gap: 4px;
        margin-top: 5px;
    }

    .rx-action.k-button,
    .rx-action {
        min-height: 50px;
        padding: 5px;
        font-size: 14px;
    }

    .rx-action .k-icon {
        display: none;
    }

    .rx-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
        margin-top: 5px;
    }

    .rx-detail {
        padding: 6px;
    }

    .rx-detail-value {
        font-size: 13px;
    }

    .rx-window {
        padding: 0px;
    }

    .rx-validation {
        margin: 0;
        padding: 6px;
    }

    .rx-validation-summary {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}
