/* Unified application design system for Coffee 143 / SimplePOS.
 * The selectors enhance existing Bootstrap/AdminLTE markup without changing
 * business forms, route behavior, DataTables, or receipt printing.
 */

/* Remove legacy fixed-width guards. They were useful for desktop-only POS
 * terminals, but they force every screen to overflow on phones and tablets. */
html,
body.modern-mart-shell,
body.modern-auth {
    width: 100%;
    min-width: 0 !important;
    max-width: 100%;
}

body.modern-mart-shell,
body.modern-auth {
    overflow-x: hidden;
}

.modern-mart-shell .content-wrapper,
.modern-mart-shell .main-footer,
.modern-mart-shell .wrapper,
.modern-mart-shell .pos,
.modern-mart-shell .pos-wrapper {
    min-width: 0 !important;
    max-width: 100%;
}

/* Page canvas */
.modern-mart-shell:not(.pos) .content {
    padding: 16px 20px 24px;
}

.modern-mart-shell:not(.pos) .content-header {
    padding: 17px 20px 7px;
}

.modern-mart-shell:not(.pos) .content-header > h1 {
    margin: 0;
    color: var(--mart-green-700);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.35;
}

.modern-mart-shell:not(.pos) .content-header > h1 > small {
    display: inline-block;
    margin-left: 7px;
    color: #7b8a84;
    font-size: 11px;
}

.modern-mart-shell:not(.pos) .breadcrumb {
    top: 15px;
    right: 20px;
    padding: 7px 11px;
    color: #71807a;
    background: rgba(255, 255, 255, .72);
    border: 1px solid #e5ece9;
    border-radius: 9px;
}

.modern-mart-shell.rtl-enabled:not(.pos) .wrapper.rtl .breadcrumb {
    right: auto;
    left: 20px;
}

/* Cards and panels */
.modern-mart-shell:not(.pos) .box {
    margin-bottom: 18px;
    overflow: visible;
    background: #fff;
    border: 1px solid #e5ece9;
    border-top: 0 !important;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(16, 52, 40, .065);
}

.modern-mart-shell:not(.pos) .box::before {
    display: none;
}

.modern-mart-shell:not(.pos) .box-header {
    min-height: 55px;
    padding: 15px 17px 12px;
    color: var(--mart-green-700);
    background: linear-gradient(90deg, var(--mart-accent-soft), #fff 72%);
    border-top: 3px solid var(--mart-green-500);
    border-bottom: 1px solid var(--mart-line);
    border-radius: 14px 14px 0 0;
}

.modern-mart-shell:not(.pos) .box-header.with-border {
    border-bottom-color: #edf2f0;
}

.modern-mart-shell:not(.pos) .box-header .box-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.modern-mart-shell:not(.pos) .box-header .box-title .fa {
    margin-right: 6px;
    color: var(--mart-green-600);
}

.modern-mart-shell:not(.pos) .box-header > .box-tools {
    top: 11px;
    right: 13px;
}

.modern-mart-shell.rtl-enabled:not(.pos) .wrapper.rtl .box-header > .box-tools {
    right: auto;
    left: 13px;
}

.modern-mart-shell:not(.pos) .box-body {
    padding: 17px;
}

.modern-mart-shell:not(.pos) .box-footer {
    padding: 13px 17px;
    background: #fbfcfc;
    border-top: 1px solid #edf2f0;
    border-radius: 0 0 14px 14px;
}

.modern-mart-shell:not(.pos) .panel,
.modern-mart-shell:not(.pos) .well {
    margin-bottom: 16px;
    background: #f8fbfa;
    border: 1px solid #e2ebe7;
    border-radius: 12px;
    box-shadow: none;
}

.modern-mart-shell:not(.pos) .panel-heading {
    padding: 11px 14px;
    color: #31413b;
    font-weight: 700;
    background: var(--mart-accent-soft);
    border-color: #dfebe6;
    border-radius: 11px 11px 0 0;
}

.modern-mart-shell:not(.pos) .panel-body {
    padding: 15px;
}

.modern-mart-shell:not(.pos) .panel-warning,
.modern-mart-shell:not(.pos) .panel-info,
.modern-mart-shell:not(.pos) .panel-primary {
    border-color: #dbe9e3;
}

.modern-mart-shell:not(.pos) .well {
    padding: 13px;
}

/* Forms */
.modern-mart-shell .form-group {
    margin-bottom: 15px;
}

.modern-mart-shell label,
.modern-auth label {
    color: #42524c;
    font-size: 11px;
    font-weight: 600;
}

.modern-mart-shell .form-control,
.modern-mart-shell .select2-container .select2-choice,
.modern-mart-shell .select2-container .select2-selection,
.modern-auth .form-control {
    min-height: 39px;
    color: #24332e;
    background: #fff;
    border: 1px solid #dce6e2;
    border-radius: 9px;
    box-shadow: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.modern-mart-shell textarea.form-control {
    min-height: 90px;
    resize: vertical;
}

.modern-mart-shell .form-control:focus,
.modern-mart-shell .select2-container-active .select2-choice,
.modern-mart-shell .select2-container--focus .select2-selection,
.modern-auth .form-control:focus {
    background: #fff;
    border-color: var(--mart-green-500);
    box-shadow: 0 0 0 3px rgba(var(--mart-green-rgb), .12);
}

.modern-mart-shell .form-control::placeholder,
.modern-auth .form-control::placeholder {
    color: #9aa7a2;
}

.modern-mart-shell .input-group-addon {
    color: #61716b;
    background: #f5f8f7;
    border-color: #dce6e2;
}

.modern-mart-shell .input-group-addon:first-child {
    border-radius: 9px 0 0 9px;
}

.modern-mart-shell .input-group-addon:last-child {
    border-radius: 0 9px 9px 0;
}

.modern-mart-shell .help-block {
    color: #83918c;
    font-size: 10px;
}

.modern-mart-shell .has-error .form-control {
    border-color: #e26464;
    box-shadow: 0 0 0 3px rgba(226, 100, 100, .09);
}

.modern-mart-shell .has-success .form-control {
    border-color: var(--mart-green-500);
}

.modern-mart-shell .appearance-settings-card {
    margin: 4px 0 18px;
    padding: 15px;
    background: linear-gradient(145deg, rgba(var(--mart-green-rgb), .08), #fff 65%);
    border: 1px solid rgba(var(--mart-green-rgb), .22);
    border-radius: 13px;
}

.modern-mart-shell .appearance-settings-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--mart-green-700);
}

.modern-mart-shell .appearance-settings-title .fa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: var(--mart-on-accent);
    background: var(--mart-green-500);
    border-radius: 9px;
}

.modern-mart-shell .system-color-control {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 6px 10px;
    background: #fff;
    border: 1px solid #dce6e2;
    border-radius: 10px;
}

.modern-mart-shell .system-color-input {
    width: 56px;
    height: 32px;
    padding: 2px;
    cursor: pointer;
    background: transparent;
    border: 0;
}

.modern-mart-shell .system-color-value {
    color: #42524c;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: calc(var(--mart-ui-font-size) - 2px);
    font-weight: 700;
    letter-spacing: .5px;
}

.modern-mart-shell .appearance-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 12px;
    color: var(--mart-on-accent);
    font-size: calc(var(--mart-ui-font-size) - 2px);
    font-weight: 650;
    background: linear-gradient(135deg, var(--mart-green-500), var(--mart-green-700));
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(var(--mart-green-rgb), .18);
}

/* Buttons */
.modern-mart-shell .btn,
.modern-auth .btn {
    min-height: 36px;
    padding: 7px 13px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    border-radius: 9px;
    box-shadow: none;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.modern-mart-shell .btn:hover,
.modern-auth .btn:hover {
    transform: translateY(-1px);
}

.modern-mart-shell .btn:active,
.modern-auth .btn:active {
    transform: translateY(0);
}

.modern-mart-shell .btn-primary,
.modern-auth .btn-primary {
    color: var(--mart-on-accent);
    background: linear-gradient(135deg, var(--mart-green-500), var(--mart-green-700));
    border-color: var(--mart-green-600);
    box-shadow: 0 5px 12px rgba(var(--mart-green-rgb), .18);
}

.modern-mart-shell .btn-primary:hover,
.modern-mart-shell .btn-primary:focus,
.modern-auth .btn-primary:hover,
.modern-auth .btn-primary:focus {
    color: var(--mart-on-accent);
    background: linear-gradient(135deg, var(--mart-green-600), var(--mart-green-700));
    border-color: var(--mart-green-700);
}

.modern-mart-shell .btn-success {
    color: var(--mart-on-accent);
    background: var(--mart-green-500);
    border-color: var(--mart-green-600);
}

.modern-mart-shell .btn-info {
    background: #2f8ca3;
    border-color: #297b90;
}

.modern-mart-shell .btn-warning {
    color: #503a08;
    background: #f4c95d;
    border-color: #e8ba45;
}

.modern-mart-shell .btn-danger {
    background: #df6262;
    border-color: #cf5353;
}

.modern-mart-shell .btn-default,
.modern-auth .btn-default {
    color: #42524c;
    background: #fff;
    border-color: #dce6e2;
}

.modern-mart-shell .btn-default:hover,
.modern-auth .btn-default:hover {
    color: var(--mart-green-700);
    background: #eff8f4;
    border-color: #bcd9cd;
}

.modern-mart-shell .btn-xs {
    min-height: 27px;
    padding: 4px 8px;
    font-size: 10px;
    border-radius: 7px;
}

.modern-mart-shell .btn-sm {
    min-height: 32px;
    padding: 6px 10px;
}

.modern-mart-shell .btn-lg {
    min-height: 45px;
    padding: 10px 18px;
    font-size: 13px;
}

.modern-mart-shell .btn-group > .btn {
    border-radius: 0;
}

.modern-mart-shell .btn-group > .btn:first-child {
    border-radius: 9px 0 0 9px;
}

.modern-mart-shell .btn-group > .btn:last-child {
    border-radius: 0 9px 9px 0;
}

/* Tables and DataTables */
.modern-mart-shell:not(.pos) .table-responsive {
    margin-bottom: 0;
    border: 0;
    border-radius: 10px;
}

.modern-mart-shell:not(.pos) .table {
    margin-bottom: 0;
    color: #35443f;
    background: #fff;
}

.modern-mart-shell:not(.pos) .table > thead > tr > th,
.modern-mart-shell:not(.pos) table.dataTable > thead > tr > th {
    padding: 11px 10px;
    color: #52615c;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    background: #f1f6f4;
    border-color: #e0e9e5;
    text-transform: none;
    white-space: nowrap;
}

.modern-mart-shell:not(.pos) .table > tbody > tr > td,
.modern-mart-shell:not(.pos) table.dataTable > tbody > tr > td {
    padding: 10px;
    vertical-align: middle;
    font-size: 11px;
    border-color: #ebf0ee;
}

.modern-mart-shell:not(.pos) .table-striped > tbody > tr:nth-of-type(odd) {
    background: #fbfcfc;
}

.modern-mart-shell:not(.pos) .table-hover > tbody > tr:hover {
    background: #eff8f4;
}

.modern-mart-shell:not(.pos) .table-bordered,
.modern-mart-shell:not(.pos) .table-bordered > thead > tr > th,
.modern-mart-shell:not(.pos) .table-bordered > tbody > tr > td {
    border-color: #e4ece9;
}

.modern-mart-shell:not(.pos) .dataTables_wrapper .dataTables_length,
.modern-mart-shell:not(.pos) .dataTables_wrapper .dataTables_filter {
    margin-bottom: 12px;
    color: #71807a;
    font-size: 10px;
}

.modern-mart-shell:not(.pos) .dataTables_wrapper .dataTables_filter input,
.modern-mart-shell:not(.pos) .dataTables_wrapper .dataTables_length select {
    height: 34px;
    margin-left: 6px;
    color: #35443f;
    background: #fff;
    border: 1px solid #dce6e2;
    border-radius: 8px;
    outline: 0;
}

.modern-mart-shell:not(.pos) .dataTables_wrapper .dataTables_info {
    padding-top: 13px;
    color: #71807a;
    font-size: 10px;
}

.modern-mart-shell:not(.pos) .pagination > li > a,
.modern-mart-shell:not(.pos) .pagination > li > span,
.modern-mart-shell:not(.pos) .dataTables_wrapper .dataTables_paginate .paginate_button {
    min-width: 32px;
    margin: 0 2px;
    padding: 6px 9px;
    color: #52615c !important;
    background: #fff !important;
    border: 1px solid #dfe8e4 !important;
    border-radius: 8px !important;
}

.modern-mart-shell:not(.pos) .pagination > .active > a,
.modern-mart-shell:not(.pos) .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    color: #fff !important;
    background: var(--mart-green-600) !important;
    border-color: var(--mart-green-600) !important;
}

/* Status, alerts and labels */
.modern-mart-shell .alert,
.modern-auth .alert {
    padding: 12px 14px;
    border: 0;
    border-left: 4px solid;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(20, 40, 34, .05);
}

.modern-mart-shell .alert-success,
.modern-auth .alert-success {
    color: #175c43;
    background: #e9f8f2;
    border-color: var(--mart-green-500);
}

.modern-mart-shell .alert-info,
.modern-auth .alert-info {
    color: #255f70;
    background: #eaf6f9;
    border-color: #3c9cb4;
}

.modern-mart-shell .alert-warning,
.modern-auth .alert-warning {
    color: #715716;
    background: #fff8e6;
    border-color: #e7bb4e;
}

.modern-mart-shell .alert-danger,
.modern-auth .alert-danger {
    color: #873e3e;
    background: #fff0f0;
    border-color: #df6262;
}

.modern-mart-shell .label {
    padding: 4px 7px;
    font-size: 9px;
    font-weight: 600;
    border-radius: 10px;
}

.modern-mart-shell .label-primary,
.modern-mart-shell .label-success {
    background: var(--mart-green-600);
}

/* Tabs, navigation and progress */
.modern-mart-shell:not(.pos) .nav-tabs {
    padding: 4px;
    background: #f2f7f5;
    border: 1px solid #e1eae6;
    border-radius: 10px;
}

.modern-mart-shell:not(.pos) .nav-tabs > li > a {
    margin: 0 2px;
    padding: 8px 12px;
    color: #61716b;
    border: 0;
    border-radius: 8px;
}

.modern-mart-shell:not(.pos) .nav-tabs > li.active > a,
.modern-mart-shell:not(.pos) .nav-tabs > li.active > a:hover {
    color: var(--mart-green-700);
    background: #fff;
    border: 0;
    box-shadow: 0 3px 10px rgba(24, 72, 55, .08);
}

.modern-mart-shell .progress {
    height: 7px;
    background: #e7eeeb;
    border-radius: 10px;
    box-shadow: none;
}

.modern-mart-shell .progress-bar {
    background: var(--mart-green-500);
    border-radius: 10px;
}

/* Dashboard metric cards */
.modern-mart-shell:not(.pos) .small-box,
.modern-mart-shell:not(.pos) .info-box {
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 9px 26px rgba(20, 52, 41, .09);
}

.modern-mart-shell:not(.pos) .small-box {
    min-height: 118px;
}

.modern-mart-shell:not(.pos) .small-box > .inner {
    padding: 17px;
}

.modern-mart-shell:not(.pos) .small-box h3 {
    font-size: 24px;
    font-weight: 700;
}

.modern-mart-shell:not(.pos) .small-box p {
    font-size: 11px;
}

.modern-mart-shell:not(.pos) .small-box .icon {
    top: 12px;
    right: 15px;
    font-size: 62px;
    opacity: .22;
}

.modern-mart-shell:not(.pos) .small-box > .small-box-footer {
    padding: 7px 10px;
    background: rgba(0, 0, 0, .08);
}

.modern-mart-shell:not(.pos) .info-box {
    min-height: 96px;
    background: #fff;
}

.modern-mart-shell:not(.pos) .info-box-icon {
    width: 78px;
    height: 96px;
    font-size: 32px;
    line-height: 96px;
}

.modern-mart-shell:not(.pos) .info-box-content {
    margin-left: 78px;
    padding: 13px 10px;
}

.modern-mart-shell.rtl-enabled:not(.pos) .wrapper.rtl .info-box-content {
    margin-right: 78px;
    margin-left: 0;
}

/* Modals */
.modern-mart-shell .modal-content,
.modern-auth .modal-content {
    overflow: hidden;
    border: 1px solid #e1eae6;
    border-radius: 15px;
    box-shadow: 0 24px 70px rgba(8, 32, 23, .22);
}

.modern-mart-shell .modal-header,
.modern-auth .modal-header {
    padding: 15px 18px;
    background: #f8fbfa;
    border-bottom: 1px solid #e8efec;
}

.modern-mart-shell .modal-title,
.modern-auth .modal-title {
    color: #24332e;
    font-size: 15px;
    font-weight: 700;
}

.modern-mart-shell .modal-body,
.modern-auth .modal-body {
    padding: 18px;
}

.modern-mart-shell .modal-footer,
.modern-auth .modal-footer {
    padding: 12px 18px;
    background: #fbfcfc;
    border-top: 1px solid #e8efec;
}

.modern-mart-shell .modal-backdrop.in,
.modern-auth .modal-backdrop.in {
    opacity: .42;
}

/* POS workspace refinement */
.modern-mart-shell.pos .content-wrapper {
    background: #eef3f1;
}

.modern-mart-shell.pos .content {
    padding: 8px;
}

.modern-mart-shell.pos .well,
.modern-mart-shell.pos .panel,
.modern-mart-shell.pos .box {
    border-color: #dfe8e4;
    border-radius: 10px;
    box-shadow: 0 5px 16px rgba(20, 52, 41, .055);
}

.modern-mart-shell.pos #product-list .btn,
.modern-mart-shell.pos .btn-prni,
.modern-mart-shell.pos .product {
    border-radius: 10px;
}

.modern-mart-shell.pos #item-list,
.modern-mart-shell.pos #product-list,
.modern-mart-shell.pos .pos-grid-nav {
    scrollbar-color: #aac5ba transparent;
    scrollbar-width: thin;
}

.modern-mart-shell.pos #item-list::-webkit-scrollbar,
.modern-mart-shell.pos #product-list::-webkit-scrollbar {
    width: 6px;
}

.modern-mart-shell.pos #item-list::-webkit-scrollbar-thumb,
.modern-mart-shell.pos #product-list::-webkit-scrollbar-thumb {
    background: #aac5ba;
    border-radius: 10px;
}

.modern-mart-shell.pos .table > thead > tr > th {
    color: #52615c;
    background: #edf5f2;
    border-color: #dce7e2;
}

.modern-mart-shell.pos .table > tbody > tr > td {
    border-color: #e7eeeb;
}

.modern-mart-shell.pos #payment,
.modern-mart-shell.pos #submit-sale {
    color: #fff;
    background: linear-gradient(135deg, var(--mart-green-500), var(--mart-green-700));
    border-color: var(--mart-green-600);
}

/* Authentication */
body.modern-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 28px 16px;
    font-size: var(--mart-ui-font-size);
    background:
        radial-gradient(circle at 12% 18%, rgba(var(--mart-green-rgb), .18), transparent 28%),
        radial-gradient(circle at 88% 84%, rgba(var(--mart-green-rgb), .14), transparent 30%),
        linear-gradient(135deg, #e9f5f0 0%, #f7faf9 48%, #eaf3f0 100%) !important;
}

/* POS workspace */
.modern-mart-shell.pos .content-wrapper {
    background: #eef4f1;
}

.modern-mart-shell.pos .alerts {
    padding: 8px 14px 0;
}

.modern-mart-shell.pos .pos,
.modern-mart-shell.pos #pos {
    width: 100%;
}

.modern-mart-shell.pos #pos {
    display: flex;
    align-items: stretch;
    gap: 12px;
    padding: 12px 14px 14px;
}

.modern-mart-shell.pos #pos-sale-form {
    flex: 0 0 46%;
    width: 46%;
    min-width: 390px !important;
    max-width: 620px;
}

.modern-mart-shell.pos #leftdiv,
.modern-mart-shell.pos #right-col {
    background: #fff;
    border: 1px solid #dfe9e5;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(16, 52, 40, .07);
}

.modern-mart-shell.pos #leftdiv {
    height: 100%;
    margin: 0;
    padding: 12px;
}

.modern-mart-shell.pos #right-col {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    padding: 10px 10px 54px;
    overflow: hidden;
}

.modern-mart-shell.pos #list-table-div {
    border: 1px solid #e4ece9;
    border-radius: 10px;
}

.modern-mart-shell.pos .list-table > thead > tr > th {
    color: #4a5b55;
    background: #edf7f3 !important;
    border-color: #dfe9e5;
}

.modern-mart-shell.pos #totaltbl {
    overflow: hidden;
    border-radius: 10px;
}

.modern-mart-shell.pos #totaltbl td {
    padding: 8px;
    border-color: #e3ebe8;
}

.modern-mart-shell.pos #totaltbl .success td,
.modern-mart-shell.pos #totaltbl tr.success td {
    color: var(--mart-green-700);
    background: #e4f5ee !important;
}

.modern-mart-shell.pos #botbuttons {
    padding: 0;
}

.modern-mart-shell.pos #botbuttons .btn {
    border-radius: 9px !important;
}

.modern-mart-shell.pos .contents #item-list .btn {
    border-radius: 11px;
}

.modern-mart-shell.pos .contents #item-list .btn-both,
.modern-mart-shell.pos .contents #item-list .btn-img {
    margin: 3px;
    background: #fff;
    border: 1px solid #e1eae6;
    box-shadow: 0 4px 13px rgba(20, 55, 43, .06);
}

.modern-mart-shell.pos .contents #item-list .btn-both:hover,
.modern-mart-shell.pos .contents #item-list .btn-img:hover {
    background: #f2faf6;
    border-color: #9fd2bd;
}

.modern-mart-shell.pos .contents #item-list .btn-both span {
    color: #34443e;
    background: #eef5f2;
}

/* Clean dual-currency POS product cards. */
.modern-mart-shell.pos .contents #item-list .pos-priced-product {
    width: 120px;
    min-height: 172px;
    margin: 4px;
    padding: 5px;
    vertical-align: top;
    overflow: hidden;
    white-space: normal;
    color: #24332e;
    background: #fff;
    border: 1px solid #dfe9e5;
    border-radius: 14px;
    box-shadow: 0 5px 15px rgba(20, 55, 43, .08);
}

.modern-mart-shell.pos .contents #item-list .pos-priced-product:hover,
.modern-mart-shell.pos .contents #item-list .pos-priced-product:focus {
    background: #f7fcf9;
    border-color: #8fc9b1;
    transform: translateY(-1px);
}

.modern-mart-shell.pos .contents #item-list .pos-priced-product span {
    display: block;
    width: auto;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
    color: inherit;
    background: transparent;
    white-space: normal;
}

.modern-mart-shell.pos .contents #item-list .pos-priced-product .pos-product-media {
    height: 91px;
    overflow: hidden;
    border-radius: 10px;
    background: #eef3f1;
}

.modern-mart-shell.pos .contents #item-list .pos-priced-product .pos-product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modern-mart-shell.pos .contents #item-list .pos-priced-product .pos-product-copy {
    padding: 6px 2px 2px;
}

.modern-mart-shell.pos .contents #item-list .pos-priced-product .pos-product-name {
    height: 34px;
    overflow: hidden;
    font-size: 12px;
    font-weight: 800;
    line-height: 17px;
}

.modern-mart-shell.pos .contents #item-list .pos-priced-product .pos-product-prices {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid #e7efeb;
    line-height: 1.15;
}

.modern-mart-shell.pos .contents #item-list .pos-priced-product .pos-product-price-main {
    color: #0f766e;
    font-size: 13px;
    font-weight: 900;
}

.modern-mart-shell.pos .contents #item-list .pos-priced-product .pos-product-price-secondary {
    color: #7a5c18;
    font-size: 10px;
    font-weight: 800;
}

.modern-mart-shell.pos .contents #item-list .pos-product-text-only {
    min-height: 92px;
}

.modern-mart-shell.pos .contents #item-list .pos-product-text-only .pos-product-name {
    height: 38px;
    font-size: 13px;
    line-height: 19px;
}

.modern-mart-shell.pos .contents .product-nav {
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
}

.modern-mart-shell.pos .product-nav .btn {
    min-height: 38px;
}

.modern-auth::before {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    content: "";
    background: linear-gradient(90deg, var(--mart-green-500), var(--mart-green-800));
}

.modern-auth .login-box {
    width: 390px;
    max-width: calc(100vw - 32px);
    margin: 0;
}

.modern-auth .login-logo {
    margin-bottom: 16px;
}

.modern-auth .login-logo img {
    width: auto;
    max-width: 220px;
    height: 62px !important;
    object-fit: contain;
}

.modern-auth .login-box-body {
    padding: 28px;
    background: rgba(255, 255, 255, .97);
    border: 1px solid rgba(209, 224, 218, .9);
    border-radius: 17px;
    box-shadow: 0 22px 65px rgba(15, 70, 50, .14);
}

.modern-auth .login-box-msg {
    padding: 0 0 21px;
    color: #42524c;
    font-size: 13px;
    font-weight: 600;
}

.modern-auth .form-group {
    margin-bottom: 14px;
}

.modern-auth .form-control {
    height: 45px;
    padding-right: 42px;
    padding-left: 14px;
}

.modern-auth .form-control-feedback {
    width: 43px;
    height: 45px;
    color: #81908b;
    line-height: 45px;
}

.modern-auth .btn-block {
    height: 45px;
    margin-top: 14px;
}

/* Responsive application behavior */
@media (max-width: 991px) {
    .modern-mart-shell:not(.pos) .content {
        padding: 13px 14px 20px;
    }

    .modern-mart-shell:not(.pos) .content-header {
        padding-right: 14px;
        padding-left: 14px;
    }

    .modern-mart-shell:not(.pos) .breadcrumb {
        right: 14px;
    }

    .modern-mart-shell.rtl-enabled:not(.pos) .wrapper.rtl .breadcrumb {
        right: auto;
        left: 14px;
    }

    .modern-mart-shell:not(.pos) .box-body {
        padding: 14px;
    }

    .modern-mart-shell.pos #pos {
        gap: 9px;
        padding: 9px;
    }

    .modern-mart-shell.pos #pos-sale-form {
        flex-basis: 54%;
        width: 54%;
        min-width: 360px !important;
    }
}

@media (max-width: 767px) {
    .modern-mart-shell:not(.pos) .content-header {
        padding: 13px 12px 5px;
    }

    .modern-mart-shell:not(.pos) .content-header > h1 {
        font-size: 18px;
    }

    .modern-mart-shell:not(.pos) .content-header > .breadcrumb {
        position: static;
        float: none;
        margin-top: 8px;
        padding: 6px 9px;
        background: #fff;
    }

    .modern-mart-shell:not(.pos) .content {
        padding: 10px 9px 18px;
    }

    .modern-mart-shell:not(.pos) .box {
        margin-bottom: 12px;
        border-radius: 11px;
    }

    .modern-mart-shell:not(.pos) .box-header {
        min-height: 48px;
        padding: 12px;
    }

    .modern-mart-shell:not(.pos) .box-header .box-title {
        max-width: calc(100% - 76px);
        font-size: 13px;
    }

    .modern-mart-shell:not(.pos) .box-body {
        padding: 11px;
    }

    .modern-mart-shell:not(.pos) .box-body > .table,
    .modern-mart-shell:not(.pos) .dataTables_wrapper {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modern-mart-shell:not(.pos) table.dataTable {
        min-width: 680px;
    }

    .modern-mart-shell:not(.pos) .dataTables_wrapper .dataTables_length,
    .modern-mart-shell:not(.pos) .dataTables_wrapper .dataTables_filter,
    .modern-mart-shell:not(.pos) .dataTables_wrapper .dataTables_info,
    .modern-mart-shell:not(.pos) .dataTables_wrapper .dataTables_paginate {
        float: none;
        width: 100%;
        margin: 8px 0;
        text-align: left;
    }

    .modern-mart-shell.rtl-enabled:not(.pos) .wrapper.rtl .dataTables_wrapper .dataTables_length,
    .modern-mart-shell.rtl-enabled:not(.pos) .wrapper.rtl .dataTables_wrapper .dataTables_filter,
    .modern-mart-shell.rtl-enabled:not(.pos) .wrapper.rtl .dataTables_wrapper .dataTables_info,
    .modern-mart-shell.rtl-enabled:not(.pos) .wrapper.rtl .dataTables_wrapper .dataTables_paginate {
        text-align: right;
    }

    .modern-mart-shell .modal-dialog {
        width: auto;
        margin: 10px;
    }

    .modern-mart-shell .modal-body {
        max-height: calc(100vh - 150px);
        padding: 14px;
        overflow-y: auto;
    }

    .modern-mart-shell .btn-group-responsive,
    .modern-mart-shell .box-tools {
        white-space: nowrap;
    }

    .modern-mart-shell.pos .content {
        padding: 4px;
    }

    .modern-mart-shell.pos #pos {
        display: flex !important;
        flex-direction: column;
        gap: 10px;
        padding: 8px;
    }

    .modern-mart-shell.pos #pos-sale-form,
    .modern-mart-shell.pos #right-col {
        flex: none;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none;
    }

    .modern-mart-shell.pos #leftdiv {
        width: 100%;
        padding: 10px;
    }

    .modern-mart-shell.pos #right-col {
        height: auto !important;
        min-height: 390px !important;
        padding: 8px 8px 50px !important;
    }

    .modern-mart-shell.pos #item-list {
        height: auto !important;
        min-height: 320px !important;
        max-height: 430px !important;
        padding-bottom: 0 !important;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modern-mart-shell.pos #item-list .items,
    .modern-mart-shell.pos #item-list .slimScrollDiv {
        height: auto !important;
        min-height: 320px !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .modern-mart-shell.pos #list-table-div,
    .modern-mart-shell.pos #list-table-div .slimScrollDiv {
        width: 100% !important;
        min-height: 220px !important;
        max-height: 300px !important;
        overflow: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .modern-mart-shell.pos #posTable,
    .modern-mart-shell.pos .fixed-table-header .list-table {
        min-width: 570px;
    }

    .modern-mart-shell.pos #botbuttons .row {
        margin-right: -3px;
        margin-left: -3px;
    }

    .modern-mart-shell.pos #botbuttons [class*="col-xs-"] {
        padding-right: 3px !important;
        padding-left: 3px !important;
    }

    .modern-mart-shell.pos #botbuttons .btn {
        min-height: 40px;
        height: auto !important;
        padding: 7px 4px;
        white-space: normal;
    }

    .modern-auth .login-box-body {
        padding: 22px 18px;
        border-radius: 14px;
    }
}

@media (max-width: 420px) {
    .modern-mart-shell .main-header .navbar-custom-menu .navbar-nav > li > a {
        min-width: 34px;
        padding-right: 6px;
        padding-left: 6px;
    }

    .modern-mart-shell .navbar-nav > .user-menu > a {
        padding-right: 8px !important;
    }

    .modern-mart-shell:not(.pos) .btn:not(.btn-block) {
        margin-bottom: 3px;
    }
}

/* User-selectable interface text size. Important working controls use the
 * same scale so changing it remains consistent across every module. */
.modern-mart-shell .main-header .navbar-nav > li > a,
.modern-mart-shell .shell-page-context strong,
.modern-mart-shell .shell-brand-copy strong,
.modern-mart-shell .sidebar-menu > li > a,
.modern-mart-shell .sidebar-menu .treeview-menu > li > a,
.modern-mart-shell .form-control,
.modern-mart-shell .select2-container,
.modern-mart-shell .select2-container .select2-choice,
.modern-mart-shell .select2-container .select2-selection,
.modern-mart-shell .btn,
.modern-mart-shell .table > tbody > tr > td,
.modern-mart-shell table.dataTable > tbody > tr > td,
.modern-auth .form-control,
.modern-auth .btn {
    font-size: calc(var(--mart-ui-font-size) - 2px) !important;
}

.modern-mart-shell label,
.modern-auth label,
.modern-mart-shell .table > thead > tr > th,
.modern-mart-shell table.dataTable > thead > tr > th,
.modern-mart-shell .help-block,
.modern-mart-shell .shell-page-context small,
.modern-mart-shell .shell-brand-copy small {
    font-size: calc(var(--mart-ui-font-size) - 3px) !important;
}

.modern-mart-shell:not(.pos) .content-header > h1 {
    font-size: calc(var(--mart-ui-font-size) + 6px);
}

.modern-mart-shell:not(.pos) .box-header .box-title,
.modern-mart-shell .modal-title,
.modern-auth .login-box-msg {
    font-size: calc(var(--mart-ui-font-size) - 1px);
}

.modern-mart-shell .content-wrapper a:not(.btn) {
    color: var(--mart-green-700);
}

.modern-mart-shell .store-image-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
    justify-content: flex-end;
    margin: 0 0 14px;
}

.modern-mart-shell .store-image-preview {
    width: 170px;
    max-width: 100%;
    padding: 10px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
    text-align: center;
}

.modern-mart-shell .store-image-preview span {
    display: block;
    margin-bottom: 8px;
    color: #64748b;
    font-weight: 700;
}

.modern-mart-shell .store-image-preview img {
    display: block;
    width: 100%;
    max-width: 150px;
    height: 96px;
    margin: 0 auto;
    object-fit: contain;
    background: #fff;
}

.modern-mart-shell .pos-drink-options {
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(236,253,245,0.72));
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.modern-mart-shell .pos-drink-options-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--mart-green-800);
    font-weight: 800;
}

.modern-mart-shell .pos-drink-options-title small {
    margin-left: auto;
    color: #64748b;
    font-size: 11px !important;
    font-weight: 700;
}

.modern-mart-shell .pos-option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.modern-mart-shell .pos-option-buttons .btn {
    min-width: 72px;
    border-radius: 999px !important;
    font-weight: 700;
}

/* Compact POS item editor. It stays inside the viewport area above the touch keyboard. */
.modern-mart-shell #proModal.in {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.modern-mart-shell #proModal .pos-item-editor-dialog {
    width: 640px;
    max-width: 640px;
    margin: 0;
}

.modern-mart-shell #proModal .pos-item-editor-content {
    display: flex;
    max-height: calc(100vh - 24px);
    flex-direction: column;
}

.modern-mart-shell #proModal .modal-header {
    flex: 0 0 auto;
    padding: 11px 15px;
}

.modern-mart-shell #proModal .modal-header .close {
    width: 34px;
    height: 34px;
    margin-top: -5px;
    border-radius: 50%;
}

.modern-mart-shell #proModal .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 12px 14px 10px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.modern-mart-shell #proModal .modal-footer {
    display: flex;
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 8px;
    padding: 9px 14px;
}

.modern-mart-shell #proModal .modal-footer::before,
.modern-mart-shell #proModal .modal-footer::after {
    display: none;
}

.modern-mart-shell #proModal .modal-footer .btn {
    min-width: 104px;
    margin: 0;
}

.modern-mart-shell .pos-item-editor-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.modern-mart-shell .pos-item-editor-summary > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid #dfe8e4;
    border-radius: 10px;
    background: #f7faf9;
}

.modern-mart-shell .pos-item-editor-summary span:first-child {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.modern-mart-shell .pos-item-editor-summary strong {
    color: var(--mart-green-800);
    font-size: 14px;
    white-space: nowrap;
}

.modern-mart-shell .pos-item-editor-summary strong small {
    font-size: 10px;
}

.modern-mart-shell .pos-item-editor-grid {
    display: grid;
    grid-template-columns: minmax(190px, .72fr) minmax(0, 1.28fr);
    gap: 10px;
    align-items: start;
}

.modern-mart-shell .pos-item-editor-fields {
    display: grid;
    gap: 8px;
}

.modern-mart-shell #proModal .form-group {
    margin-bottom: 0;
}

.modern-mart-shell #proModal .form-group > label,
.modern-mart-shell #proModal label[for] {
    margin-bottom: 4px;
    color: #42534d;
    font-size: 11px;
    font-weight: 800;
}

.modern-mart-shell #proModal .form-control {
    height: 34px;
    border-radius: 8px;
}

.modern-mart-shell #proModal .pos-drink-options {
    margin: 0;
    padding: 10px;
    border-radius: 11px;
    box-shadow: none;
}

.modern-mart-shell #proModal .pos-drink-options-title {
    margin-bottom: 8px;
}

.modern-mart-shell #proModal .pos-drink-options-title > span {
    white-space: nowrap;
}

.modern-mart-shell #proModal .pos-drink-option-group + .pos-drink-option-group {
    margin-top: 9px;
    padding-top: 9px;
    border-top: 1px solid rgba(15, 23, 42, .08);
}

.modern-mart-shell #proModal .pos-drink-option-group > label {
    display: block;
}

.modern-mart-shell #proModal .pos-option-buttons {
    gap: 5px;
}

.modern-mart-shell #proModal .pos-option-buttons .btn {
    min-width: 52px;
    padding: 5px 9px;
    font-size: 11px;
}

.modern-mart-shell #proModal .pos-option-buttons .pos-option-clear {
    min-width: 62px;
    color: #64748b;
}

.modern-mart-shell .pos-item-editor-product-options {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding-top: 2px;
}

.modern-mart-shell .pos-item-editor-comment {
    margin-top: 10px !important;
}

.modern-mart-shell #proModal .pos-item-editor-comment textarea {
    height: 52px;
    min-height: 52px;
    max-height: 84px;
    resize: vertical;
}

body.touch-keyboard-open.modern-mart-shell #proModal.in {
    bottom: var(--touch-keyboard-height, 48vh);
    padding: 8px;
}

body.touch-keyboard-open.modern-mart-shell #proModal .pos-item-editor-content {
    max-height: calc(100vh - var(--touch-keyboard-height, 48vh) - 16px);
}

body.touch-keyboard-open.modern-mart-shell #proModal .modal-header,
body.touch-keyboard-open.modern-mart-shell #proModal .modal-footer {
    padding-top: 7px;
    padding-bottom: 7px;
}

@media (max-width: 767px) {
    .modern-mart-shell .store-image-previews {
        justify-content: flex-start;
    }

    .modern-mart-shell .pos-drink-options-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .modern-mart-shell .pos-drink-options-title small {
        margin-left: 0;
    }

    .modern-mart-shell #proModal.in {
        align-items: flex-start;
        padding: 8px;
    }

    .modern-mart-shell #proModal .pos-item-editor-dialog {
        width: 100%;
    }

    .modern-mart-shell #proModal .pos-item-editor-content {
        max-height: calc(100vh - 16px);
    }

    .modern-mart-shell .pos-item-editor-grid,
    .modern-mart-shell .pos-item-editor-product-options {
        grid-template-columns: 1fr;
    }

    .modern-mart-shell .pos-item-editor-product-options {
        grid-column: auto;
    }

    .modern-mart-shell #proModal .pos-drink-options-title {
        flex-direction: row;
        align-items: center;
    }

    .modern-mart-shell #proModal .pos-drink-options-title small {
        margin-left: auto;
    }

    body.touch-keyboard-open.modern-mart-shell #proModal.in {
        align-items: center;
    }
}

@media print {
    .modern-mart-shell .box,
    .modern-mart-shell .panel {
        border: 0;
        box-shadow: none;
    }
}
