/* ==========================================================================
   Figma Make UI - 全站统一 (仅 CSS/JS)
   来源: ERP Inventory Management Module (Community)
   https://www.figma.com/make/izF8mCBfKGoRqZk43edGB1
   所有页面均使用此设计系统，仅修改样式与交互，不改变业务逻辑。
   ========================================================================== */
/* 字体由 layouts/app 引入的 vendor/google-fonts/inter-poppins.css 提供 */
:root {
    /* 字体 - 与 Figma Make globals 一致 */
    --font-size: 16px;
    --font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;

    /* 主色系 - Figma 设计稿 */
    --primary: #006F01;
    --primary-foreground: #ffffff;
    --primary-hover: #004d01;
    --secondary: #f8f9fa;
    --secondary-foreground: #006F01;
    --muted: #ececf0;
    --muted-foreground: #717182;
    --accent: #e9ebef;
    --accent-foreground: #006F01;
    --destructive: #d4183d;
    --destructive-foreground: #ffffff;

    /* 背景与前景 */
    --background: #ffffff;
    --foreground: #252525;
    --card: #ffffff;
    --card-foreground: #252525;
    --bg-page: #f8f9fa;
    --bg-card: #ffffff;
    --bg-input: #f3f3f5;
    --input-background: #f3f3f5;
    --bg-hover: #e9ebef;
    --popover: #ffffff;
    --popover-foreground: #252525;

    /* 边框 */
    --border: rgba(0, 0, 0, 0.1);
    --border-color: rgba(0, 0, 0, 0.1);
    --ring: #006F01;
    --input: transparent;

    /* 文字 */
    --text-primary: #252525;
    --text-secondary: #717182;
    --text-muted: #94a3b8;

    /* 绿色系 */
    --green-50: #e8f5e8;
    --green-100: #c8e6c9;
    --green-600: #006F01;
    --green-700: #004d01;
    --green: #006F01;

    /* 橙色系 */
    --orange-50: #fff3e6;
    --orange-100: #ffe0b3;
    --orange-600: #FF6D00;
    --orange-700: #cc5700;
    --orange: #FF6D00;

    /* 圆角 - 与 Figma 一致 */
    --radius: 0.625rem;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 0.625rem;
    --radius-xl: calc(var(--radius) + 4px);

    /* 阴影 */
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,.1);
    --shadow-primary: 0 4px 14px rgba(0,111,1,.15);

    /* 侧边栏 */
    --sidebar: #f8f9fa;
    --sidebar-foreground: #252525;
    --sidebar-primary: #006F01;
    --sidebar-primary-foreground: #ffffff;
    --sidebar-accent: #e8f5e8;
    --sidebar-accent-foreground: #006F01;
    --sidebar-border: rgba(0,0,0,0.08);
    --sidebar-ring: #006F01;

    /* 过渡 */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);

    /* 排版字号（Figma 规范） */
    --text-2xl: 1.5rem;
    --text-xl: 1.25rem;
    --text-lg: 1.125rem;
    --text-base: 1rem;
    --text-sm: 0.875rem;
}

/* ---------- Figma 基础：全局与排版 ---------- */
* {
    border-color: var(--border);
}
*:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

html {
    font-size: 15px; /* 略微减小基础字号，让列表更紧凑 */
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size);
    font-weight: var(--font-weight-normal);
    color: var(--foreground);
    background: var(--bg-page);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6; /* 行高略增，提升可读性 */
}

/* Figma 基础排版（未单独设置文字类的容器内） */
h1 { font-size: var(--text-2xl); font-weight: var(--font-weight-medium); line-height: 1.5; color: var(--text-primary); }
h2 { font-size: var(--text-xl); font-weight: var(--font-weight-medium); line-height: 1.5; color: var(--text-primary); }
h3 { font-size: var(--text-lg); font-weight: var(--font-weight-medium); line-height: 1.5; color: var(--text-primary); }
h4 { font-size: var(--text-base); font-weight: var(--font-weight-medium); line-height: 1.5; color: var(--text-primary); }
p  { font-size: var(--text-base); font-weight: var(--font-weight-normal); line-height: 1.5; }
label { font-size: var(--text-base); font-weight: var(--font-weight-medium); line-height: 1.5; }
button { font-size: var(--text-base); font-weight: var(--font-weight-medium); line-height: 1.5; }
input, .form-control, .form-select { font-size: var(--text-base); font-weight: var(--font-weight-normal); line-height: 1.5; }

/* ========== 页面结构 ========== */
.page-content { padding: 0; }
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    margin-top: 2rem;
    padding: 1rem;
}
.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.02em;
}
.page-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}
.page-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ========== 卡片 - Figma 风格（全站统一） ========== */
.card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    background: var(--card, var(--bg-card));
    color: var(--card-foreground, var(--foreground));
    transition: box-shadow var(--transition-normal);
}
.card:hover {
    box-shadow: var(--shadow-md);
}
.card-header {
    font-weight: 600;
    color: var(--text-primary);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: var(--card, var(--bg-card));
    border-radius: var(--radius) var(--radius) 0 0;
}
.card-body { padding: 1.25rem; }

/* 统计卡片 */
.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}
.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
}

/* ========== 表格 - Figma 风格 ========== */
.table-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.table-card:hover {
    box-shadow: var(--shadow-md);
}
.table { margin-bottom: 0; border-collapse: separate; border-spacing: 0; }
.table thead th {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    padding: 0.875rem 1rem;
    background: var(--secondary);
    border-bottom: 1px solid var(--border);
    position: sticky; /* 表头固定在滚动容器顶部 */
    top: 0;
    z-index: 2;
}
.table tbody td { padding: 0.875rem 1rem; vertical-align: middle; }
.table tbody tr { transition: background var(--transition-fast); }
.table tbody tr:nth-of-type(odd) { background-color: rgba(248,249,250,0.5); } /* 斑马纹行 */
.table tbody tr:hover { background: var(--bg-hover); }
.table-bordered { border-color: var(--border); }
.table-bordered th, .table-bordered td { border-color: var(--border); }

/* ========== 筛选栏 ========== */
.filter-bar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
}
.filter-bar .form-control,
.filter-bar .form-select {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-input);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.filter-bar .form-control:focus,
.filter-bar .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,111,1,.12);
}

/* ========== 按钮 - Figma Button Variants ========== */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn:active { transform: scale(0.98); }

/* Primary - 主按钮 */
.btn-primary {
    background: var(--primary);
    border: 1px solid var(--primary);
    color: var(--primary-foreground);
    box-shadow: 0 0 0 0 rgba(0,111,1,0);
}
.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: var(--primary-foreground);
    box-shadow: 0 4px 12px rgba(0,111,1,.35);
}
.btn-primary:active {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: 0 0 0 2px rgba(0,111,1,.4) inset;
}

/* Secondary - 次要按钮 */
.btn-secondary {
    background: var(--secondary);
    border: 1px solid var(--border);
    color: var(--secondary-foreground);
}
.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    color: var(--primary);
}

/* Outline - 描边按钮 */
.btn-outline-primary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--foreground);
}
.btn-outline-primary:hover {
    background: var(--accent);
    border-color: var(--border);
    color: var(--accent-foreground);
}

.btn-outline-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}
.btn-outline-secondary:hover {
    background: var(--sidebar-accent);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-info:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline-success { background: var(--green-50); color: var(--green-600); }
.btn-outline-warning { color: #b45309; }
.btn-outline-danger:hover { border-color: var(--destructive); color: var(--destructive); }

/* Danger - 危险按钮 */
.btn-danger {
    background: var(--destructive);
    border-color: var(--destructive);
}
.btn-danger:hover {
    background: #b31232;
    border-color: #b31232;
    box-shadow: 0 4px 12px rgba(212,24,61,.35);
}
.btn-danger:active {
    background: #8f0e27;
    border-color: #8f0e27;
}

/* Link 链接样式 */
.btn-link, a.text-primary {
    color: var(--primary);
    text-decoration: none;
}
.btn-link:hover, a.text-primary:hover {
    text-decoration: underline;
}

/* Success/Danger - 覆盖 Bootstrap */
.btn-success {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--primary-foreground);
}
.btn-success:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: var(--primary-foreground);
}
.btn-danger {
    background: var(--destructive);
    border-color: var(--destructive);
}

/* 尺寸 */
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8125rem; }
.btn-xs { padding: 0.25rem 0.5rem; font-size: 0.75rem; }

/* ========== 表单 ========== */
.form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}
.form-control, .form-select {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--input-background, var(--bg-input));
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,111,1,.16);
    outline: none;
    background-color: #fff;
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--destructive);
    box-shadow: 0 0 0 2px rgba(212,24,61,0.2);
    background-color: #fff5f7;
}
.invalid-feedback {
    font-size: 0.75rem;
    color: var(--destructive);
}

/* ========== 空状态 ========== */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}
.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: .5;
    color: var(--green-600);
}

/* ========== 徽章 - Figma 状态色 ========== */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: 6px;
    font-size: 0.75rem;
}
.badge.bg-success { background: var(--green-100) !important; color: var(--green-700); }
.badge.bg-secondary { background: var(--muted) !important; color: var(--text-secondary); }
.badge.bg-warning { background: var(--orange-100) !important; color: var(--orange-600); }
.badge.bg-danger { background: rgba(212,24,61,.15) !important; color: var(--destructive); }
.badge.bg-info { background: #e3f2fd !important; color: #1976d2; }

/* ========== 分页 ========== */
.pagination { gap: 0.25rem; }
.pagination .page-link {
    border-radius: var(--radius-sm) !important;
    border: 1px solid var(--border);
    transition: all var(--transition-fast);
}
.pagination .page-link:hover {
    background: var(--sidebar-accent);
    border-color: var(--primary);
    color: var(--primary);
}
.pagination .page-link svg {
    width: 1rem;
    height: 1rem;
    display: inline-block;
    vertical-align: middle;
}
.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--primary-foreground);
}

/* ========== 提示框 ========== */
.alert { border-radius: var(--radius-sm); }
.alert-success { border-color: var(--green-100); }
.alert-danger { border-color: rgba(212,24,61,.3); }

/* ========== 模态框 ========== */
.modal-content {
    border-radius: var(--radius);
    border: none;
    box-shadow: var(--shadow-lg);
}
.modal-header { border-bottom-color: var(--border); }
.modal-footer { border-top-color: var(--border); }

/* ========== 链接 - Figma 统一 ========== */
a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover {
    color: var(--primary-hover);
}

/* ========== 页面内容区 div / ul / li / a 规范 ========== */
main .page-content,
main > div {
    padding: 10px;
background-color: #ffffff;
}

/* 内容区列表 - Figma 风格 */
main ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
main ul.list-style-disc {
    list-style: disc;
    padding-left: 1.5rem;
}
main ul li {
    padding: 0.25rem 0;
    color: var(--text-primary);
}
main ul li a {
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
main ul li a:hover {
    color: var(--primary-hover);
}
main ul li a i {
    font-size: 0.875rem;
}

/* 内容区 div 容器规范 */
main .page-header,
main .filter-bar,
main .card,
main .table-card {
    background: var(--bg-card);
}

/* 操作列内的 a 链接（表格按钮） */
main .table td a.btn,
main .table td a:not(.btn) {
    color: inherit;
}
main .table td a.btn-outline-primary,
main .table td a.btn-outline-info {
    color: var(--primary);
}
main .table td a.btn-outline-primary:hover,
main .table td a.btn-outline-info:hover {
    color: var(--primary-hover);
}

/* 导航栏 a 保留白色（在 navbar 内） */
.navbar-dark .navbar-brand,
.navbar-dark a.text-white {
    color: #fff !important;
}
.navbar-dark a.text-white:hover {
    opacity: 0.9;
}

/* ========== 打印 ========== */
.print-only { display: none !important; }
@media print {
    body * { visibility: hidden; }
    .print-company-header,
    #printable-area, #printable-area *,
    #printable-stats, #printable-stats * { visibility: visible; }
    #printable-area { position: absolute; left: 0; top: 22mm; width: 100%; }
    #printable-stats { margin-top: 0; }
    .no-print { display: none !important; }
    #printable-area h2 {
        margin-bottom: 12px !important;
        font-size: 20px;
        font-weight: 700;
        letter-spacing: .2px;
    }
    #printable-area .order-summary-strip {
        border: 1px solid #000;
        background: #fff !important;
        padding: 8px !important;
        margin-bottom: 10px !important;
        page-break-inside: avoid;
    }
    #printable-area .order-summary-strip .summary-item {
        border: 1px solid #000;
        background: #fff !important;
        padding: 6px 8px !important;
    }
    #printable-area .order-summary-strip .summary-label,
    #printable-area .order-summary-strip .summary-value {
        color: #000 !important;
    }
    #printable-area .print-meta-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 4px 10px;
        margin-bottom: 10px !important;
        page-break-inside: avoid;
    }
    #printable-area .print-meta-grid > [class*='col-'] {
        width: auto !important;
        max-width: none !important;
        flex: none !important;
        padding: 4px 6px !important;
        border: 1px solid #000;
        margin: 0 !important;
    }
    #printable-area .print-meta-grid > .col-12 {
        grid-column: 1 / -1;
    }
    #printable-area .table {
        width: 100% !important;
        border-collapse: collapse !important;
        margin-bottom: 0 !important;
        page-break-inside: auto;
    }
    #printable-area .table thead th,
    #printable-area .table tbody td {
        border: 1px solid #000 !important;
        color: #000 !important;
        background: #fff !important;
        padding: 6px 8px !important;
        font-size: 12px !important;
        line-height: 1.35;
        vertical-align: middle;
    }
    #printable-area .table thead th {
        font-weight: 700 !important;
        text-align: center;
    }
    #printable-area .badge {
        border: 1px solid #000 !important;
        background: #fff !important;
        color: #000 !important;
    }
}

/* ==========================================================================
   2026 全站 UI 升级增强层（彩色化 + 可读性 + 元素图标化）
   ========================================================================== */

:root {
    --ui-gradient-primary: linear-gradient(135deg, #16a34a 0%, #22c55e 45%, #84cc16 100%);
    --ui-gradient-accent: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    --ui-gradient-warn: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    --ui-soft-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    /* 数据列表行：六色循环（柔和底色，易扫读） */
    --ui-list-row-1: rgba(16, 185, 129, 0.11);
    --ui-list-row-2: rgba(14, 165, 233, 0.10);
    --ui-list-row-3: rgba(139, 92, 246, 0.10);
    --ui-list-row-4: rgba(249, 115, 22, 0.09);
    --ui-list-row-5: rgba(236, 72, 153, 0.09);
    --ui-list-row-6: rgba(234, 179, 8, 0.11);
    --ui-list-bar-1: #10b981;
    --ui-list-bar-2: #0ea5e9;
    --ui-list-bar-3: #8b5cf6;
    --ui-list-bar-4: #f97316;
    --ui-list-bar-5: #ec4899;
    --ui-list-bar-6: #eab308;
}

body.figma-ui .page-header {
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(22,163,74,.12), rgba(14,165,233,.08));
    box-shadow: var(--ui-soft-shadow);
}

body.figma-ui .page-title {
    letter-spacing: 0;
    position: relative;
}

body.figma-ui .card,
body.figma-ui .table-card,
body.figma-ui .filter-bar {
    border-radius: 14px;
    box-shadow: var(--ui-soft-shadow);
}

body.figma-ui .table thead th {
    background: linear-gradient(180deg, rgba(219, 234, 254, 0.92), rgba(224, 231, 255, 0.88));
    color: #0f172a;
    font-weight: 700;
    border-bottom: 2px solid rgba(99, 102, 241, 0.28);
    box-shadow: inset 0 -1px 0 rgba(14, 165, 233, 0.12);
}

/* 数据列表容器：顶部彩虹条 + 轻边框 */
body.figma-ui main .table-card {
    position: relative;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
}
body.figma-ui main .table-card::before {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #0ea5e9, #8b5cf6, #f97316, #ec4899, #eab308);
    border-radius: 13px 13px 0 0;
}

/* 覆盖默认灰斑马纹，改为六色循环行（主内容区表格） */
body.figma-ui main .table tbody tr:nth-of-type(odd) {
    background-color: transparent;
}
body.figma-ui main .table tbody tr:nth-child(6n + 1) {
    background: var(--ui-list-row-1);
}
body.figma-ui main .table tbody tr:nth-child(6n + 2) {
    background: var(--ui-list-row-2);
}
body.figma-ui main .table tbody tr:nth-child(6n + 3) {
    background: var(--ui-list-row-3);
}
body.figma-ui main .table tbody tr:nth-child(6n + 4) {
    background: var(--ui-list-row-4);
}
body.figma-ui main .table tbody tr:nth-child(6n + 5) {
    background: var(--ui-list-row-5);
}
body.figma-ui main .table tbody tr:nth-child(6n + 6) {
    background: var(--ui-list-row-6);
}

/* 首列色条，便于扫行 */
body.figma-ui main .table tbody tr:nth-child(6n + 1) td:first-child {
    border-left: 3px solid var(--ui-list-bar-1);
}
body.figma-ui main .table tbody tr:nth-child(6n + 2) td:first-child {
    border-left: 3px solid var(--ui-list-bar-2);
}
body.figma-ui main .table tbody tr:nth-child(6n + 3) td:first-child {
    border-left: 3px solid var(--ui-list-bar-3);
}
body.figma-ui main .table tbody tr:nth-child(6n + 4) td:first-child {
    border-left: 3px solid var(--ui-list-bar-4);
}
body.figma-ui main .table tbody tr:nth-child(6n + 5) td:first-child {
    border-left: 3px solid var(--ui-list-bar-5);
}
body.figma-ui main .table tbody tr:nth-child(6n + 6) td:first-child {
    border-left: 3px solid var(--ui-list-bar-6);
}

body.figma-ui main .table tbody tr {
    transition: background 0.15s ease, box-shadow 0.15s ease;
}
body.figma-ui main .table tbody tr:hover {
    box-shadow: inset 0 0 0 9999px rgba(255, 255, 255, 0.22);
}

body.figma-ui .btn-primary {
    background-image: var(--ui-gradient-primary);
    border-color: transparent;
}

body.figma-ui .btn-info,
body.figma-ui .btn-outline-info:hover {
    background-image: var(--ui-gradient-accent);
    border-color: transparent;
    color: #fff;
}

body.figma-ui .btn-warning,
body.figma-ui .btn-outline-warning:hover {
    background-image: var(--ui-gradient-warn);
    border-color: transparent;
    color: #fff;
}

body.figma-ui .btn {
    gap: .4rem;
}

body.figma-ui .form-control,
body.figma-ui .form-select,
body.figma-ui textarea.form-control {
    border-radius: 12px;
    min-height: 40px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

body.figma-ui textarea.form-control {
    min-height: 100px;
}

body.figma-ui .ui-label-icon {
    display: inline-flex;
    width: 18px;
    justify-content: center;
    color: #0ea5e9;
    margin-right: 4px;
}

body.figma-ui ul li.ui-li-enhanced {
    border-left: 3px solid rgba(34,197,94,.35);
    padding-left: .55rem;
    margin: .2rem 0;
}

body.figma-ui .ui-order-highlight {
    background: linear-gradient(135deg, rgba(16,185,129,.08), rgba(59,130,246,.08));
    border: 1px solid rgba(14,165,233,.25);
    border-radius: 12px;
    padding: .85rem;
}

body.figma-ui .order-summary-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .75rem;
    padding: .85rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(14,165,233,.10), rgba(34,197,94,.10));
    border: 1px solid rgba(99,102,241,.20);
}

body.figma-ui .order-summary-strip .summary-item {
    background: rgba(255,255,255,.72);
    border-radius: 10px;
    padding: .55rem .7rem;
    border: 1px solid rgba(226,232,240,.95);
}

body.figma-ui .order-summary-strip .summary-label {
    display: block;
    font-size: .76rem;
    color: #475569;
    margin-bottom: .2rem;
}

body.figma-ui .order-summary-strip .summary-value {
    font-size: .95rem;
    font-weight: 700;
    color: #0f172a;
}

body.figma-ui .table-head-strong th {
    position: sticky;
    top: 0;
    z-index: 2;
    letter-spacing: .2px;
    text-transform: none;
}

body.figma-ui .action-cluster {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
}

body.figma-ui .action-cluster .btn {
    border-radius: 999px;
}

body.figma-ui .ui-field-wrap {
    position: relative;
    display: block;
}

body.figma-ui .ui-field-wrap .ui-field-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #0ea5e9;
    opacity: .95;
    pointer-events: none;
    z-index: 2;
}

body.figma-ui .ui-field-wrap .form-control,
body.figma-ui .ui-field-wrap .form-select {
    padding-left: 2rem;
}

body.figma-ui .ui-field-wrap textarea.form-control {
    padding-top: .65rem;
}
