* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Microsoft JhengHei", Arial, sans-serif;
    background: #f3f6f4;
    color: #1f2937;
}

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 180px;
    background: #14532d;
    color: white;
    padding: 28px 20px;
}

.sidebar h2 {
    font-size: 22px;
    margin: 0 0 28px;
    line-height: 1.4;
}

.sidebar a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 12px;
    margin-bottom: 2px;
}

.sidebar a:hover {
    background: rgba(255, 255, 255, 0.16);
}

.sidebar-menu-heading {
    display: flex;
    align-items: center;
    gap: 2px;
}

.sidebar-menu-heading > .nav-link {
    flex: 1;
    min-width: 0;
}

.sidebar-menu-toggle {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    padding: 0;
    margin-bottom: 2px;
    border-radius: 10px;
    background: transparent;
    color: #fff;
}

.sidebar-menu-toggle:hover,
.sidebar-menu-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.16);
}

/* 大分類首頁 */
.module-home {
    max-width: 1200px;
    margin: 0 auto;
}

.module-home-header {
    margin-bottom: 24px;
}

.module-home-title {
    margin: 0 0 6px;
    color: #1f2937;
    font-size: 26px;
    font-weight: 700;
}

.module-home-subtitle {
    margin: 0;
    color: #6b7280;
    font-size: 15px;
}

.module-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 210px;
    padding: 22px;
    border: 1px solid #dce7df;
    border-radius: 16px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(20, 83, 45, 0.05);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.module-card:hover {
    transform: translateY(-3px);
    border-color: #86b894;
    box-shadow: 0 12px 28px rgba(20, 83, 45, 0.12);
    color: inherit;
}

.module-card-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 18px;
}

.module-card-icon {
    display: flex;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: #e8f5ec;
    color: #18743a;
}

.module-card-icon svg {
    width: 25px;
    height: 25px;
}

.module-card-title {
    margin: 0;
    color: #1f2937;
    font-size: 19px;
    font-weight: 700;
}

.module-card-desc {
    margin: 0 0 20px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.7;
}

.module-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #edf3ef;
    color: #16803b;
    font-size: 14px;
    font-weight: 600;
}

.module-card-arrow {
    font-size: 20px;
    transition: transform .18s ease;
}

.module-card:hover .module-card-arrow {
    transform: translateX(4px);
}

@media (max-width: 767px) {
    .module-home-title { font-size: 22px; }
    .module-card { min-height: 190px; padding: 18px; }
}

.main {
    flex: 1;
    padding: 24px 36px 36px;
}

h1 {
    margin: 0 0 18px;
    font-size: 32px;
}

.card h3 {
    margin: 0 0 16px;
    font-size: 20px;
}

.sub {
    color: #6b7280;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 24px;
}

.card {
    background: white;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.card span {
    display: block;
    color: #6b7280;
    margin-bottom: 10px;
}

.card strong {
    font-size: 28px;
    color: #14532d;
}

.form-box,
.filter-box {
    background: white;
    padding: 22px;
    border-radius: 20px;
    margin-bottom: 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.form-label {
    color: #303236;
    font-size: 14px;

}

.form-control{
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 14px;
}

.form-control::placeholder {
    color: #adb5bd;
    opacity: 1;
}


.form-box.single-column {
    grid-template-columns: 1fr;
}

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

.form-grid > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-box {
    grid-template-columns: 200px 120px;
}

input,
select {
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 15px;
}

button {
    background: #16a34a;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    padding: 10px 14px;
}

.page-grid {
    display: grid;
    grid-template-columns: 30% 70%;
    gap: 24px;
}

@media (max-width: 1100px) {
    .page-grid {
        grid-template-columns: 1fr;
    }
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    font-size: 13px;
}

th {
    background: #dcfce7;
    text-align: left;
    padding: 14px;
}

td {
    padding: 14px;
    border-bottom: 1px solid #e5e7eb;
}

tr:hover td {
    background: #f9fafb;
}

@media (max-width: 900px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: -240px;
        z-index: 1050;

        width: 220px;
        height: 100vh;

        transition: left 0.2s ease;
    }

    .sidebar.show {
        left: 0;
    }

    .right-area {
        width: 100%;
    }

    .mobile-menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .topbar {
        padding: 10px 14px;
    }

    .topbar-time,
    .topbar-divider,
    .user-info {
        display: none;
    }

    .main-content {
        padding: 16px;
    }

    .cards,
    .form-box,
    .form-grid,
    .page-grid {
        grid-template-columns: 1fr;
    }
}

.menu-title {
    margin-top: 10px;
    margin-bottom: 8px;
    padding-left: 10px;
    font-size: 16px;
    color: #b8d8c0;
    font-weight: bold;
    border-left: 3px solid #7bd88f;
}


.btn-outline-green {
  color: #198754;
  border-color: #198754;
  background-color: transparent;
}

.btn-outline-green:hover {
  color: #fff;
  background-color: #198754;
  border-color: #198754;
}


.material-grid{
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:8px;
}

.material-item{
    border:1px solid #dcdcdc;
    border-radius:8px;
    padding:12px;
    text-align:center;
    cursor:pointer;
    background:#fff;
    transition:0.2s;
    min-height:60px;

    display:flex;
    align-items:center;
    justify-content:center;
}

.material-item:hover{
    background:#0d6efd;
    color:white;
}


.form-control,
.form-select{
    height:36px;
    min-height:36px;
    padding:2px 8px;
    font-size:14px;
}

.form-label{
    font-size:13px;
    color:#2d3033;
    font-weight:500;
    margin-bottom:2px;
}

.table thead th {
    background-color: #dff3e3;
    color: #1f5132;
    font-weight: 600;
    border-bottom: 2px solid #9cc9a7;
}

.badge {
    display: inline-block;
    width: auto;
    margin-bottom: 0;
}

.card .badge {
    display: inline-block;
    width: auto;
    margin-bottom: 0;
}

.card .badge.bg-success,
.card .badge.bg-secondary,
.card .badge.text-bg-success,
.card .badge.text-bg-secondary,
.card .badge.text-bg-danger {
    color: #fff;
}

.card .badge.text-bg-warning {
    color: #212529;
}


<!-- 以下為標題樣式的底色-->
.mode-title{
    font-weight:900 !important;
    font-size:30px !important;
    padding:10px 15px;
    border-radius:12px;
    
}

.mode-add{
    background:#d8f3dc;
    color:#1b4332;
    border-left:5px solid #2d6a4f;
    padding:6px 6px;
    font-weight:800;
    font-size:20px;
}

.mode-edit{
    background:#fff3cd;
    color:#664d03;
    border-left:5px solid #ffb703;
    padding:6px 6px;
    font-weight:800;
    font-size:20px;
}

/*---------------------------大分類標籤樣式----------------------------*/
.type-tag{
   
    min-width:60px;
    padding:4px 12px;
    border-radius:8px;
    text-align:center;

    font-weight:600;
    border:2px solid transparent;
    /* 圓角 */
    border-radius:12px;
}

/* 材料：粉綠 */
.type-material{
    
    background:#dff6e4;
    color:#123c25;
    border-color:#b8e6c2;
    border-radius:12px;
}

/* 配方：粉黃 */
.type-recipe{
    background:#fff5d6;
    color:#9a6b00;
    border-color:#ffe6a3;
}

/* 產品：粉紅 */
.type-product{
    background:#ffe3ec;
    color:#b03060;
    border-color:#ffc7d7;
}

/* 其它：粉紫 */
.type-other{
    background:#eee5ff;
    color:#6d42c1;
    border-color:#d8c8ff;
}


/* Radio Button */
.price-mode{
    width: 0.8rem;
    height: 0.8rem;
    margin-top: 0.2rem;
    cursor: pointer;
}

.form-check-label{
    cursor: pointer;
    font-size: 0.82rem;
}

/*==========團膳================*/
.menu-cell{
    cursor:pointer;
    min-width:120px;
    height:48px;
    vertical-align:middle;
    transition:.15s;
}

.menu-cell:hover{
    background:#eef8f5;
}

/* 已選取 */
.menu-cell.selected{
    background:#d8f0e5;
    outline:3px solid #198754;
    outline-offset:-3px;
}

/* 已有菜色 */
.menu-cell.filled{
    background:#fff8dc;
}

/* 全系統「啟用」開關：修長、緊湊的綠色樣式。 */
.app-active-switch .form-check-input {
    width: 2.75rem;
    height: 1.15rem;
    margin-top: .18rem;
    cursor: pointer;
    background-color: #d1e7dd;
    border-color: #75b798;
}

.app-active-switch .form-check-input:checked {
    background-color: #198754;
    border-color: #198754;
}

.app-active-switch .form-check-input:focus {
    border-color: #75b798;
    box-shadow: 0 0 0 .18rem rgba(25, 135, 84, .18);
}

.app-active-switch .form-check-label {
    color: #146c43;
    font-size: .85rem;
}

.ledger-page-title {
    color: #146c43;
    font-size: 1.7rem;
    font-weight: 700;
}

/* 全系統清單操作按鈕：統一為精簡尺寸，寬度依文字自然延伸 */
.table tbody .btn {
    padding: .15rem .4rem;
    font-size: .72rem;
    line-height: 1.35;
}


* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Microsoft JhengHei", Arial, sans-serif;
    background: #f3f6f4;
    color: #1f2937;
}

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 180px;
    background: #14532d;
    color: white;
    padding: 28px 20px;
}

.sidebar h2 {
    font-size: 22px;
    margin: 0 0 28px;
    line-height: 1.4;
}

.sidebar a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 12px;
    margin-bottom: 2px;
}

.sidebar a:hover {
    background: rgba(255, 255, 255, 0.16);
}

.main {
    flex: 1;
    padding: 24px 36px 36px;
}

h1 {
    margin: 0 0 18px;
    font-size: 32px;
}

.card h3 {
    margin: 0 0 16px;
    font-size: 20px;
}

.sub {
    color: #6b7280;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 24px;
}

.card {
    background: white;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.card span {
    display: block;
    color: #6b7280;
    margin-bottom: 10px;
}

.card strong {
    font-size: 28px;
    color: #14532d;
}

.form-box,
.filter-box {
    background: white;
    padding: 22px;
    border-radius: 20px;
    margin-bottom: 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.form-label {
 
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-control{
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 14px;
}


.form-box.single-column {
    grid-template-columns: 1fr;
}

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

.form-grid > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-box {
    grid-template-columns: 200px 120px;
}

input,
select {
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 15px;
}

button {
    background: #16a34a;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    padding: 10px 14px;
}

.page-grid {
    display: grid;
    grid-template-columns: 30% 70%;
    gap: 24px;
}

@media (max-width: 1100px) {
    .page-grid {
        grid-template-columns: 1fr;
    }
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    font-size: 13.5px;
}

th {
    background: #dcfce7;
    text-align: left;
    padding: 14px;
}

td {
    padding: 14px;
    border-bottom: 1px solid #e5e7eb;
}

tr:hover td {
    background: #f9fafb;
}

@media (max-width: 900px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .cards,
    .form-box {
        grid-template-columns: 1fr;
    }
}

.menu-title {
    margin-top: 10px;
    margin-bottom: 8px;
    padding-left: 10px;
    font-size: 16px;
    color: #b8d8c0;
    font-weight: bold;
    border-left: 3px solid #7bd88f;
}


.btn-outline-green {
  color: #198754;
  border-color: #198754;
  background-color: transparent;
}

.btn-outline-green:hover {
  color: #fff;
  background-color: #198754;
  border-color: #198754;
}


.material-grid{
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:8px;
}

.material-item{
    border:1px solid #dcdcdc;
    border-radius:8px;
    padding:12px;
    text-align:center;
    cursor:pointer;
    background:#fff;
    transition:0.2s;
    min-height:60px;

    display:flex;
    align-items:center;
    justify-content:center;
}

.material-item:hover{
    background:#0d6efd;
    color:white;
}


.form-control,
.form-select{
    height:36px;
    min-height:36px;
    padding:2px 8px;
    font-size:14px;
    font-weight:600;
}

.form-label{
    font-size:13px;
    color:#1f2937;
    font-weight:600;
    margin-bottom:2px;
}

.table thead th {
    background-color: #dff3e3;
    color: #1f5132;
    font-weight: 600;
    border-bottom: 2px solid #9cc9a7;
}

.badge {
    display: inline-block;
    width: auto;
    margin-bottom: 0;
}

.card .badge {
    display: inline-block;
    width: auto;
    margin-bottom: 0;
}

.card .badge.bg-success,
.card .badge.bg-secondary,
.card .badge.text-bg-success,
.card .badge.text-bg-secondary,
.card .badge.text-bg-danger {
    color: #fff;
}

.card-body {
    padding:0px 12px;
}
.card .badge.text-bg-warning {
    color: #212529;
}



/*---------------------------大分類標籤樣式----------------------------*/
.type-tag{
   
    min-width:60px;
    padding:4px 12px;
    border-radius:8px;
    text-align:center;

    font-weight:600;
    border:2px solid transparent;
    /* 圓角 */
    border-radius:12px;
}

/* 材料：粉綠 */
.type-material{
    
    background:#dff6e4;
    color:#123c25;
    border-color:#b8e6c2;
    border-radius:12px;
}

/* 配方：粉黃 */
.type-recipe{
    background:#fff5d6;
    color:#9a6b00;
    border-color:#ffe6a3;
}

/* 產品：粉紅 */
.type-product{
    background:#ffe3ec;
    color:#b03060;
    border-color:#ffc7d7;
}

/* 其它：粉紫 */
.type-other{
    background:#eee5ff;
    color:#6d42c1;
    border-color:#d8c8ff;
}


/* Radio Button */
.price-mode{
    width: 0.8rem;
    height: 0.8rem;
    margin-top: 0.2rem;
    cursor: pointer;
}

.form-check-label{
    cursor: pointer;
    font-size: 0.82rem;
}

/*==========團膳================*/
.menu-cell{
    cursor:pointer;
    min-width:120px;
    height:48px;
    vertical-align:middle;
    transition:.15s;
}

.menu-cell:hover{
    background:#eef8f5;
}

/* 已選取 */
.menu-cell.selected{
    background:#d8f0e5;
    outline:3px solid #198754;
    outline-offset:-3px;
}

/* 已有菜色 */
.menu-cell.filled{
    background:#fff8dc;
}


/* ========================================
   整體版面
======================================== */

.layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* 左側選單 */
.sidebar {
    width: 160px;
    flex: 0 0 180px;
    min-height: 100vh;
    padding: 24px 16px;
    background: #14532d;
    color: #fff;

    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

/* 右側完整區域 */
.right-area {
    flex: 1;
    min-width: 0;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
}

/* ========================================
   上方工具列
======================================== */

.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    min-height: 72px;
    padding: 12px 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
}

.topbar-left {
    min-width: 0;
    gap: 12px;
}

.topbar-right {
    gap: 16px;
    flex-shrink: 0;
}

.breadcrumb {
    margin: 0;
}

.mobile-menu-button {
    display: none;
}

/* 時間區域 */
.topbar-time {
    display: flex;
    align-items: center;
    gap: 10px;
}

.time-icon,
.user-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;
    background: #dcfce7;
    color: #14532d;
    font-weight: 700;
}

.current-date {
    color: #6b7280;
    font-size: 12px;
}

.current-time {
    color: #1f2937;
    font-size: 15px;
    font-weight: 600;
}

.topbar-divider {
    width: 1px;
    height: 34px;
    background: #e5e7eb;
}

.user-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-label {
    color: #6b7280;
    font-size: 12px;
}

.user-name {
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
}

.logout-button {
    padding: 8px 14px;
    border-radius: 8px;
    color: #dc3545;
    text-decoration: none;
    border: 1px solid #dc3545;
}

.logout-button:hover {
    color: #fff;
    background: #dc3545;
}

/* ==================================================
   上方橫條
================================================== */

.topbar {
    position: sticky;
    top: 0;
    z-index: 1020;

    min-height: 72px;
    padding: 0 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 4px rgba(31, 52, 61, 0.04);
}

.topbar-left {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.breadcrumb {
    font-size: 16px;
    align-items:center;

}

.breadcrumb-item a {
    color: #849198;
}

.breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-item.active {
    color: #35434a;
    font-weight: 800;
    font-size: 20px;
    align-items:center;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-time {
    display: flex;
    align-items: center;
    gap: 9px;
}

.time-icon {
    color: var(--primary);
    font-size: 20px;
}

.current-date {
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.2;
}

.current-time {
    margin-top: 2px;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.4px;
}

.topbar-divider {
    width: 1px;
    height: 30px;
    background: var(--border-color);
}

.user-area {
    display: flex;
    align-items: center;
    gap: 9px;
}

.user-avatar {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: #e6f0f4;
    color: var(--primary);

    font-size: 14px;
    font-weight: 700;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-label {
    color: #98a3a8;
    font-size: 10px;
    line-height: 1.2;
}

.user-name {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #36434a;
    font-size: 13px;
    font-weight: 600;
}

.logout-button {
    padding: 7px 13px;

    color: #68767d;
    background: #ffffff;
    border: 1px solid #dce2e5;
    border-radius: 6px;

    font-size: 12px;
    transition: 0.2s;
}

.logout-button:hover {
    color: #b13d3d;
    border-color: #e3bcbc;
    background: #fff8f8;
}

/* ========================================
   主要內容與頁尾
======================================== */

.main-content {
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: 24px;
}

.page-footer {
    padding: 16px 24px;
    color: #6b7280;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    font-size: 13px;
    text-align: center;
}


.btn-save {
  background-color: #2f855a;
  border-color: #2f855a;
  color: #fff;
  font-size: 15px;
  border-radius: 12px;
}

.btn-save:hover {
  background-color: #276749;
  border-color: #276749;
  color: #fff;
}

.btn-search {
  background-color: #456d59;
  border-color: #456d59;
  color: #fff;
  font-size: 15px;
  border-radius: 12px;
}

.btn-search:hover {
  background-color: #21332a;
  border-color: #21332a;
  color: #fff;
}

<!--
.small-green-checkbox {
    appearance: none !important;
    -webkit-appearance: none !important;

    width: 18px;
    height: 18px;
    padding: 0 !important;
    margin: 0;

    border: 1px solid #587460;
    border-radius: 3px;
    background: #f0fdf4;

    cursor: pointer;
    position: relative;
    vertical-align: middle;
}

.small-green-checkbox:checked {
    background: #3c8951;
    border-color: #3c8951;
}

.small-green-checkbox:checked::after {
    content: "";
    position: absolute;

    left: 4px;
    top: 1px;

    width: 7px;
    height: 9px;

    border: solid #fff;
    border-width: 0 2px 2px 0;

    transform: rotate(45deg);
}

.small-green-checkbox:focus,
.small-green-checkbox:active {
    outline: none;
    box-shadow: none;
}

.system-page { max-width: 1080px; margin: 0 auto; }
.system-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; }
.system-eyebrow { margin: 0 0 5px; color: #15803d; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.system-status { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid #bbf7d0; border-radius: 999px; color: #166534; background: #f0fdf4; font-size: 13px; }
.system-status span { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px #dcfce7; }
.system-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 20px; align-items: start; }
.system-tabs { padding: 10px; background: #fff; border: 1px solid #e5e7eb; border-radius: 18px; box-shadow: 0 8px 22px rgba(0,0,0,.04); }
.system-tab { width: 100%; padding: 12px 14px; border-radius: 11px; background: transparent; color: #4b5563; text-align: left; }
.system-tab:hover { background: #f0fdf4; color: #166534; }
.system-tab.active { background: #166534; color: #fff; }
.system-panel { min-height: 440px; padding: 30px; border: 1px solid #e5e7eb; border-radius: 20px; background: #fff; box-shadow: 0 10px 28px rgba(0,0,0,.05); }
.system-panel[hidden] { display: none; }
.system-panel h2 { margin: 0; color: #163524; font-size: 24px; }
.panel-lead { margin: 8px 0 24px; color: #6b7280; }
.product-mark { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 18px; border-radius: 16px; color: #fff; background: linear-gradient(145deg, #166534, #22c55e); font-size: 26px; font-weight: 800; }
.system-title-row { display: flex; justify-content: space-between; align-items: start; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid #e5e7eb; }
.system-title-row p { margin: 6px 0 0; color: #6b7280; }
.version-badge { padding: 7px 11px; border-radius: 9px; background: #ecfdf5; color: #166534; font-size: 13px; font-weight: 700; }
.info-list { margin: 8px 0 20px; }
.info-list div { display: grid; grid-template-columns: 140px 1fr; gap: 20px; padding: 13px 0; border-bottom: 1px solid #f0f2f1; }
.info-list dt { color: #6b7280; font-weight: 500; }
.info-list dd { margin: 0; color: #1f2937; font-weight: 600; }
.system-note, .legal-footnote { padding: 14px 16px; border-radius: 12px; background: #f7faf8; color: #526158; font-size: 13px; line-height: 1.7; }
.legal-block { padding: 18px 0; border-top: 1px solid #e5e7eb; }
.legal-block h3 { margin: 0 0 7px; font-size: 16px; color: #214e34; }
.legal-block p { margin: 0; color: #4b5563; line-height: 1.8; }
.password-form { max-width: 520px; display: grid; gap: 17px; }
.password-form div { display: grid; gap: 7px; }
.password-form label { font-size: 14px; font-weight: 700; color: #374151; }
.password-form button { width: max-content; margin-top: 5px; padding: 11px 22px; }

@media (max-width: 760px) {
    .system-heading, .system-title-row { align-items: flex-start; flex-direction: column; }
    .system-layout { grid-template-columns: 1fr; }
    .system-tabs { display: grid; grid-template-columns: repeat(3, 1fr); }
    .system-tab { text-align: center; }
    .system-panel { min-height: 0; padding: 22px; }
    .info-list div { grid-template-columns: 110px 1fr; }
}

.report-page { max-width: 1320px; margin: 0 auto; }
.report-header { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
.report-kicker { margin: 0 0 4px; color: #15803d; font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.report-header h1 { margin-bottom: 6px; }
.report-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.report-toolbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; padding: 12px 14px; margin-bottom: 18px; border: 1px solid #e1e9e4; border-radius: 16px; background: #fff; }
.report-view-switch { display: flex; gap: 4px; }
.report-view-switch a { padding: 8px 15px; border-radius: 10px; color: #647067; text-decoration: none; font-size: 14px; font-weight: 700; }
.report-view-switch a.active { color: #fff; background: #166534; }
.period-switcher { display: flex; align-items: center; gap: 18px; }
.period-switcher a { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid #dce4df; border-radius: 9px; color: #285238; text-decoration: none; font-size: 24px; line-height: 1; }
.period-switcher strong { min-width: 180px; text-align: center; }
.report-date-form { display: flex; justify-content: flex-end; gap: 7px; }
.report-date-form input { max-width: 150px; padding: 8px 10px; }
.report-date-form button { padding: 8px 12px; }
.report-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 18px; }
.report-metrics article { min-width: 0; padding: 18px; border: 1px solid #e3ebe6; border-radius: 16px; background: #fff; box-shadow: 0 6px 18px rgba(20,83,45,.04); }
.report-metrics span { display: block; margin-bottom: 7px; color: #6b756e; font-size: 13px; }
.report-metrics strong { display: block; color: #193c29; font-size: 25px; line-height: 1.2; }
.report-metrics small { display: block; margin-top: 7px; color: #98a19b; }
.metric-progress div { height: 6px; margin-top: 13px; overflow: hidden; border-radius: 10px; background: #e8eee9; }
.metric-progress i { display: block; height: 100%; border-radius: inherit; background: #22a65a; }
.report-scope-note { margin: -3px 0 18px; padding: 11px 14px; border: 1px solid #dcebe1; border-radius: 12px; color: #607066; background: #f7fbf8; font-size: 12px; line-height: 1.6; }.report-scope-note strong { margin-right: 8px; color: #166534; }
.report-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 18px; align-items: start; }
.report-card { overflow: hidden; border: 1px solid #e1e9e4; border-radius: 18px; background: #fff; box-shadow: 0 7px 20px rgba(20,83,45,.04); }
.report-card-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 19px 21px; border-bottom: 1px solid #edf1ee; }
.report-card-title h2 { margin: 0; color: #1d3f2b; font-size: 17px; }
.report-card-title p { margin: 4px 0 0; color: #879188; font-size: 12px; }
.data-badge, .completion-pill { padding: 5px 9px; border-radius: 8px; color: #16713b; background: #eaf8ef; font-size: 12px; font-weight: 700; }
.completion-pill.loss { color: #b42318; background: #feeceb; }
.negative-number { color: #b42318 !important; }
.report-table { border-radius: 0; box-shadow: none; white-space: nowrap; }
.report-table th { padding: 11px 13px; color: #657169; background: #f7faf8; font-size: 12px; }
.report-table td { padding: 13px; }
.report-table td small, .report-table td span.weekday { display: block; margin-top: 3px; color: #939d96; font-size: 11px; }
.report-table td span.weekday { display: inline; margin-left: 6px; }
.report-table .muted-row td { color: #929b95; background: #fbfcfb; }
.status-pill { display: inline-block !important; margin: 0 !important; padding: 5px 8px; border-radius: 7px; font-size: 11px !important; font-weight: 700; }
.status-pill.success { color: #08743a; background: #e8f8ee; }.status-pill.warning { color: #9a5b08; background: #fff5dd; }.status-pill.danger { color: #b32d2d; background: #ffeded; }.status-pill.neutral { color: #69736c; background: #edf0ee; }
.alert-count { display: grid; place-items: center; min-width: 29px; height: 29px; border-radius: 9px; color: #9a3412; background: #fff1e8; font-size: 13px; font-weight: 800; }
.alert-list { padding: 8px 15px; }
.alert-list > a { display: flex; gap: 11px; padding: 13px 2px; border-bottom: 1px solid #edf1ee; color: inherit; text-decoration: none; }
.alert-list > a:hover strong { color: #15803d; }
.alert-list a span:last-child { min-width: 0; }.alert-list strong { display: block; font-size: 13px; }.alert-list small { display: block; margin-top: 3px; color: #8b948e; font-size: 11px; }
.alert-icon { flex: 0 0 31px; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; font-size: 12px; font-weight: 800; }.alert-icon.red { color: #b42318; background: #feeceb; }.alert-icon.amber { color: #9a6700; background: #fff3d6; }
.empty-alert { display: grid; justify-items: center; gap: 4px; padding: 30px 10px; text-align: center; }.empty-alert span { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 4px; border-radius: 50%; color: #fff; background: #22a65a; }.empty-alert small { color: #8b948e; }
.quick-links { padding: 15px 18px 19px; border-top: 1px solid #edf1ee; }.quick-links h3 { margin: 0 0 7px; color: #657169; font-size: 12px; text-transform: uppercase; }.quick-links a { display: flex; justify-content: space-between; padding: 8px 0; color: #28543a; text-decoration: none; font-size: 13px; font-weight: 700; }

@media (max-width: 1100px) { .report-metrics { grid-template-columns: repeat(3, 1fr); }.report-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .report-header { align-items: flex-start; flex-direction: column; }.report-toolbar { grid-template-columns: 1fr; }.report-view-switch { justify-content: center; }.report-date-form { justify-content: center; }.report-metrics { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .report-metrics { grid-template-columns: 1fr; }.period-switcher { justify-content: space-between; }.period-switcher strong { min-width: 0; } }

.price-page { max-width: 1180px; margin: 0 auto; }
.price-layout { display: grid; grid-template-columns: minmax(300px, .75fr) minmax(500px, 1.25fr); gap: 20px; align-items: start; }
.price-card { overflow: hidden; padding: 24px; border: 1px solid #e1e9e4; border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(20,83,45,.05); }
.price-card h2 { margin: 0 0 20px; color: #1d3f2b; font-size: 19px; }
.price-form { display: grid; gap: 17px; }.price-form > div { display: grid; gap: 7px; }.price-form label { color: #3e4b42; font-size: 13px; font-weight: 700; }.price-form small { color: #8a948d; }
.meal-price-grid { grid-template-columns: repeat(3, 1fr); }.meal-price-grid label { display: grid; gap: 6px; }
.money-input { position: relative; display: block; }.money-input i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #829087; font-style: normal; }.money-input input { width: 100%; padding-left: 27px; }
.price-history-title { display: flex; justify-content: space-between; align-items: start; gap: 15px; margin-bottom: 12px; }.price-history-title h2 { margin-bottom: 4px; }.price-history-title p { margin: 0; color: #8a948d; font-size: 12px; }.price-history-title select { min-width: 160px; padding: 8px 10px; }
.price-table { border-radius: 0; box-shadow: none; }.price-table th { color: #657169; background: #f7faf8; font-size: 12px; }.meal-chip { display: inline-block; padding: 5px 9px; border-radius: 8px; color: #166534; background: #eaf8ef; font-size: 12px; font-weight: 700; }
@media (max-width: 900px) { .price-layout { grid-template-columns: 1fr; }.meal-price-grid { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 520px) { .meal-price-grid { grid-template-columns: 1fr !important; }.price-history-title { flex-direction: column; } }

/* POS sales */
.pos-page, .sales-page { max-width: 1440px; margin: 0 auto; }
.pos-heading, .sales-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 18px; }
.pos-heading h1, .sales-heading h1 { margin-bottom: 4px; }.pos-heading p { margin: 0; color: #778078; }.pos-kicker { margin: 0 0 3px !important; color: #168047 !important; font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.today-sales-chip { display: grid; grid-template-columns: auto auto; gap: 1px 13px; min-width: 205px; padding: 11px 15px; border: 1px solid #d8e9de; border-radius: 14px; color: #225234; background: #fff; text-decoration: none; box-shadow: 0 5px 15px rgba(20,83,45,.04); }.today-sales-chip span { font-size: 11px; color: #718078; }.today-sales-chip strong { grid-row: span 2; align-self: center; font-size: 21px; }.today-sales-chip small { color: #168047; }
.pos-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 17px; align-items: start; }
.pos-catalog, .pos-cart { border: 1px solid #dfe8e2; border-radius: 19px; background: #fff; box-shadow: 0 8px 24px rgba(20,83,45,.05); }.pos-catalog { min-height: 690px; overflow: hidden; }
.pos-catalog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 15px 17px; border-bottom: 1px solid #e8eeea; }.pos-catalog-toolbar input { width: 210px; padding: 9px 12px; }
.pos-categories { display: flex; gap: 6px; overflow-x: auto; }.pos-categories button { flex: 0 0 auto; padding: 8px 13px; color: #5e6b62; background: #f2f6f3; }.pos-categories button.active { color: #fff; background: #176b38; }
.pos-products { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)); gap: 12px; padding: 17px; }
.pos-product { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-height: 176px; padding: 14px; overflow: hidden; border: 1px solid #e1e8e3; border-radius: 15px; color: #1f3828; background: #fff; text-align: left; transition: transform .12s, border-color .12s, box-shadow .12s; }.pos-product:hover { transform: translateY(-2px); border-color: #6cbd87; background: #fbfffc; box-shadow: 0 8px 18px rgba(20,83,45,.09); }.pos-product:active { transform: scale(.98); }
.product-initial { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 18px; border-radius: 12px; color: #176b38; background: linear-gradient(145deg,#dcfce7,#ecfdf5); font-size: 18px; font-weight: 800; }.product-category { position: absolute; top: 14px; right: 12px; max-width: 75px; overflow: hidden; color: #809086; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.pos-product strong { max-width: 100%; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }.pos-product small { margin-top: 3px; color: #9aa39c; }.pos-product b { margin-top: auto; color: #15803d; font-size: 18px; }.pos-empty-products { grid-column: 1/-1; display: grid; place-items: center; align-content: center; gap: 6px; min-height: 400px; color: #7b867e; }
.pos-cart { position: sticky; top: 16px; overflow: hidden; }.cart-title { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid #e8eeea; }.cart-title div { display: flex; align-items: baseline; gap: 9px; }.cart-title span { font-weight: 800; }.cart-title strong { color: #168047; font-size: 12px; }.cart-title > button { padding: 5px 8px; color: #b13b32; background: transparent; font-size: 12px; }
.cart-items { max-height: 270px; min-height: 155px; overflow-y: auto; padding: 5px 15px; }.empty-cart { display: grid; place-items: center; align-content: center; min-height: 145px; color: #8b958e; }.empty-cart span { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 7px; border: 1px dashed #a8b3ab; border-radius: 50%; font-size: 21px; }.empty-cart strong { font-size: 13px; }.empty-cart small { margin-top: 3px; }
.cart-row { display: grid; grid-template-columns: minmax(0,1fr) auto 55px 22px; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid #edf1ee; }.cart-row > div:first-child { display: grid; min-width: 0; }.cart-row > div:first-child strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }.cart-row small { color: #929c95; }.cart-row > b { text-align: right; font-size: 13px; }.qty-control { display: flex; align-items: center; gap: 5px; }.qty-control button { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; color: #176b38; background: #eaf6ee; }.qty-control b { min-width: 17px; text-align: center; font-size: 12px; }.remove-item { padding: 0; color: #b94a43; background: transparent; font-size: 18px; }
.checkout-form { border-top: 1px solid #e8eeea; }.order-options { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 13px 16px; }.order-options label, .fee-options label { display: grid; gap: 4px; }.order-options label span, .fee-options label span { color: #6d7970; font-size: 10px; font-weight: 700; }.order-options label:last-child { grid-column: 1/-1; }.order-options input, .order-options select, .fee-options input { width: 100%; padding: 8px 9px; border-radius: 9px; font-size: 12px; }
.fee-options { border-top: 1px solid #edf1ee; border-bottom: 1px solid #edf1ee; }.fee-options summary { padding: 10px 16px; color: #536158; cursor: pointer; font-size: 11px; font-weight: 700; }.fee-options > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 16px 13px; }.fee-options .full { grid-column: 1/-1; }
.cart-totals { padding: 11px 17px; }.cart-totals > div { display: flex; justify-content: space-between; padding: 3px 0; color: #6e7871; font-size: 11px; }.cart-totals b { color: #303b33; }.cart-totals .grand-total { align-items: baseline; padding-top: 8px; margin-top: 6px; border-top: 1px solid #e6ebe8; color: #1d3325; font-size: 14px; font-weight: 800; }.grand-total strong { color: #116c36; font-size: 25px; }.platform-preview i { color: #bc4b42; font-style: normal; }.platform-preview em { color: #176b38; font-style: normal; }
.checkout-button { display: flex; justify-content: space-between; width: calc(100% - 32px); margin: 0 16px; padding: 13px 16px; background: #168047; font-size: 14px; font-weight: 800; }.checkout-button:disabled { cursor: not-allowed; background: #abb6ae; }.checkout-hint { margin: 7px 16px 13px; color: #8c958e; font-size: 9px; text-align: center; }

.sales-heading { align-items: center; }.sales-metrics { display: grid; grid-template-columns: repeat(6,1fr); gap: 11px; margin-bottom: 16px; }.sales-metrics article { padding: 16px; border: 1px solid #e0e8e2; border-radius: 15px; background: #fff; }.sales-metrics span { display: block; color: #717d74; font-size: 11px; }.sales-metrics strong { display: block; margin-top: 5px; color: #1b3d29; font-size: 22px; }.sales-metrics small { display: block; margin-top: 5px; color: #929b95; }
.sales-grid { display: grid; grid-template-columns: minmax(0,1fr) 285px; gap: 16px; align-items: start; }.sales-card { overflow: hidden; border: 1px solid #dfe8e2; border-radius: 17px; background: #fff; box-shadow: 0 7px 20px rgba(20,83,45,.04); }.sales-card-head { display: flex; justify-content: space-between; align-items: center; padding: 17px 19px; border-bottom: 1px solid #e9eeeb; }.sales-card-head h2 { margin: 0; color: #203e2b; font-size: 16px; }.sales-card-head p { margin: 3px 0 0; color: #929b95; font-size: 11px; }.report-only-badge { padding: 5px 8px; border-radius: 7px; color: #946108; background: #fff4d7; font-size: 10px; font-weight: 700; }
.sales-table { border-radius: 0; box-shadow: none; white-space: nowrap; }.sales-table th { padding: 10px 12px; color: #68746b; background: #f7faf8; font-size: 11px; }.sales-table td { padding: 12px; }.sales-table td small { display: block; margin-top: 3px; color: #929b95; font-size: 10px; }.sale-item-list { display: grid; gap: 2px; }.sale-item-list span { font-size: 11px; }.cancelled-sale { opacity: .55; }.cancelled-sale td { text-decoration-color: #aaa; }.sale-row-actions { display: flex; gap: 5px; }
.product-ranking { padding: 7px 16px 14px; }.product-ranking > div { display: grid; grid-template-columns: 27px minmax(0,1fr) auto; gap: 8px; align-items: center; padding: 11px 0; border-bottom: 1px solid #edf1ee; }.rank-no { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; color: #176b38; background: #eaf6ee; font-size: 11px; font-weight: 800; }.product-ranking div > span:nth-child(2) { display: grid; min-width: 0; }.product-ranking strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.product-ranking small { color: #929b95; }.product-ranking b { color: #176b38; font-size: 12px; }.daily-close-note { margin: 0 15px 15px; padding: 13px; border-radius: 11px; background: #f4f7f5; }.daily-close-note strong { color: #455149; font-size: 12px; }.daily-close-note p { margin: 4px 0 0; color: #7c867f; font-size: 10px; line-height: 1.6; }
@media (max-width: 1250px) { .pos-products { grid-template-columns: repeat(3,1fr); }.sales-metrics { grid-template-columns: repeat(3,1fr); }.sales-grid { grid-template-columns: 1fr; } }
@media (max-width: 980px) { .pos-layout { grid-template-columns: 1fr; }.pos-cart { position: static; }.pos-catalog { min-height: 0; } }
@media (max-width: 650px) { .pos-heading, .sales-heading { align-items: flex-start; flex-direction: column; }.today-sales-chip { width: 100%; }.pos-catalog-toolbar { align-items: stretch; flex-direction: column; }.pos-catalog-toolbar input { width: 100%; }.pos-products { grid-template-columns: repeat(2,1fr); }.sales-metrics { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .pos-products { grid-template-columns: 1fr; }.sales-metrics { grid-template-columns: 1fr; } }

/* Purchase statistics */
.purchase-stats-page { max-width: 1440px; margin: 0 auto; }
.purchase-stats-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 18px; }
.purchase-stats-heading h4 { margin: 0 0 4px; color: #1d3f2b; }.purchase-stats-heading p { margin: 0; color: #7f8a82; font-size: 12px; }
.purchase-stats-kicker { margin-bottom: 3px !important; color: #168047 !important; font-size: 10px !important; font-weight: 800; letter-spacing: .15em; }
.purchase-stats-filter { display: grid; grid-template-columns: repeat(5,minmax(130px,1fr)) auto; gap: 10px; align-items: end; padding: 15px; margin-bottom: 15px; border: 1px solid #dfe8e2; border-radius: 15px; background: #fff; }
.purchase-stats-filter label { display: grid; gap: 5px; }.purchase-stats-filter label span { color: #69766d; font-size: 11px; font-weight: 700; }.purchase-stats-filter .form-control,.purchase-stats-filter .form-select { font-size: 12px; }
.purchase-stats-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 15px; }
.purchase-stats-metrics article { padding: 17px 18px; border: 1px solid #dfe8e2; border-radius: 15px; background: #fff; box-shadow: 0 6px 18px rgba(20,83,45,.04); }
.purchase-stats-metrics span { display: block; color: #758078; font-size: 11px; }.purchase-stats-metrics strong { display: block; margin: 5px 0; color: #173d26; font-size: 23px; }.purchase-stats-metrics small { color: #9aa29c; font-size: 10px; }
.purchase-stats-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(280px,.5fr); gap: 15px; margin-bottom: 15px; }.purchase-stats-grid.rankings { grid-template-columns: 1fr 1fr; }
.purchase-stats-card { overflow: hidden; margin-bottom: 15px; border: 1px solid #dfe8e2; border-radius: 16px; background: #fff; box-shadow: 0 7px 20px rgba(20,83,45,.04); }.purchase-stats-grid .purchase-stats-card { margin-bottom: 0; }
.purchase-stats-card-head { display: flex; justify-content: space-between; align-items: center; padding: 15px 18px; border-bottom: 1px solid #e8eeea; }.purchase-stats-card-head h5 { margin: 0; color: #203e2b; font-size: 15px; }.purchase-stats-card-head p { margin: 3px 0 0; color: #929b95; font-size: 10px; }.purchase-stats-card-head > span { color: #168047; font-size: 11px; font-weight: 700; }
.purchase-trend-list { display: grid; gap: 10px; padding: 16px 18px; }.purchase-trend-row { display: grid; grid-template-columns: 42px minmax(90px,1fr) 85px 42px; gap: 10px; align-items: center; font-size: 11px; }.purchase-trend-row > span { color: #657269; }.purchase-trend-row > div { height: 8px; overflow: hidden; border-radius: 999px; background: #eef3ef; }.purchase-trend-row i { display: block; height: 100%; min-width: 2px; border-radius: inherit; background: linear-gradient(90deg,#44b96e,#168047); }.purchase-trend-row strong { text-align: right; }.purchase-trend-row small { color: #919b94; text-align: right; }
.purchase-status-list { padding: 7px 17px 13px; }.purchase-status-list > div { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: center; padding: 11px 0; border-bottom: 1px solid #edf1ee; font-size: 11px; }.purchase-status-list > div:last-child { border-bottom: 0; }.purchase-status-list b { grid-column: 2/-1; color: #657169; font-size: 11px; font-weight: 500; }.purchase-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #e5aa32; }.purchase-status-dot.status-已確認 { background: #28a75d; }.purchase-status-dot.status-已作廢 { background: #9aa39c; }
.purchase-ranking-list { padding: 7px 17px 13px; }.purchase-ranking-list > div { display: grid; grid-template-columns: 27px minmax(0,1fr) auto; gap: 9px; align-items: center; padding: 10px 0; border-bottom: 1px solid #edf1ee; }.purchase-ranking-list > div:last-child { border-bottom: 0; }.purchase-ranking-list > div > span:nth-child(2) { display: grid; gap: 4px; min-width: 0; }.purchase-ranking-list strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.purchase-ranking-list small { color: #929b95; font-size: 9px; }.purchase-ranking-list b { color: #176b38; font-size: 11px; white-space: nowrap; }.purchase-ranking-list i { display: block; height: 4px; overflow: hidden; border-radius: 99px; background: #edf2ee; }.purchase-ranking-list em { display: block; height: 100%; border-radius: inherit; background: #65bd80; }
.purchase-stats-empty { padding: 36px 18px !important; color: #8d9790; text-align: center; font-size: 11px; }.purchase-stats-table { border-radius: 0; box-shadow: none; white-space: nowrap; }.purchase-stats-table th { padding: 9px 12px; color: #68746b; background: #f7faf8; font-size: 10px; }.purchase-stats-table td { padding: 10px 12px; font-size: 11px; vertical-align: middle; }
@media (max-width: 1100px) { .purchase-stats-filter { grid-template-columns: repeat(3,1fr); }.purchase-stats-metrics { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 760px) { .purchase-stats-heading { align-items: flex-start; flex-direction: column; }.purchase-stats-filter { grid-template-columns: 1fr 1fr; }.purchase-stats-grid,.purchase-stats-grid.rankings { grid-template-columns: 1fr; }.purchase-trend-row { grid-template-columns: 38px minmax(70px,1fr) 72px; }.purchase-trend-row small { display: none; } }
@media (max-width: 480px) { .purchase-stats-filter,.purchase-stats-metrics { grid-template-columns: 1fr; } }
