/*
* @Author: 黄木木
* @Date:   2025-09-23 11:10:01
* @Last Modified by:   黄木木
* @Last Modified time: 2025-09-29 10:26:05
*/
.title-box{
    display: flex;
    align-items: center;
}

 @media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }

}

/* 屏幕宽度 <1024px 时生效 */
@media (max-width: 1023px) {
  /* 你的样式 */
    #orders-view .shadow-card{
        overflow-x: auto;
    }
}


@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

/* 颜色变量定义 */
:root {
    --primary: #1a365d;
    --secondary: #1B610B;;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --neutral: #f3f4f6;
    --dark: #111827;
    --status-expired: #6b7280;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
}

/* 通用工具类 */
.flex {
    display: flex;
}

/* .flex-col {
    flex-direction: column;
} */

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

.ml-auto {
    margin-left: auto;
}

.mr-1 {
    margin-right: 0.25rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.mr-3 {
    margin-right: 0.75rem !important;
}

.mr-auto {
    margin-right: auto;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.flex .px-6 {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.pl-10 {
    padding-left: 2.5rem;
}

.pr-4 {
    padding-right: 1rem;
}

.w-full {
    width: 100%;
}

.w-8 {
    width: 2rem;
}

.h-8 {
    height: 2rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

.rounded-md {
    border-radius: 0.375rem;
}

.border {
    border: 1px solid var(--gray-300);
}

.border-l-4 {
    border-left-width: 4px;
}

.border-l-secondary {
    border-left-color: var(--secondary);
}

/* .border-b {
    border-bottom: 1px solid var(--gray-200);
} */


.border-b-2 {
    border-bottom-width: 0 !important;
}
.border-secondary {
    border-color: transparent !important;
}
/* 清除默认按钮边框 */
button {
    border: none !important;
    outline: none; /* 可选，清除焦点轮廓 */
}

.border-b-secondary {
    border-bottom-color: var(--secondary);
}

.bg-white {
    background-color: var(--white);
}

.bg-gray-50 {
    background-color: var(--gray-50);
}

.bg-gray-100 {
    background-color: var(--gray-100);
}

.bg-primary\/5 {
    background-color: rgba(26, 54, 93, 0.05);
}

.bg-success\/10 {
    background-color: rgba(16, 185, 129, 0.1);
}

.bg-warning\/10 {
    background-color: rgba(245, 158, 11, 0.1);
}

.bg-danger\/10 {
    background-color: rgba(239, 68, 68, 0.1);
}

.bg-status-expired\/10 {
    background-color: rgba(107, 114, 128, 0.1);
}

.bg-blue-100 {
    background-color: rgba(59, 130, 246, 0.1);
}

.bg-purple-100 {
    background-color: rgba(168, 85, 247, 0.1);
}

.bg-red-100 {
    background-color: rgba(239, 68, 68, 0.1);
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-primary {
    color: var(--primary);
}

.flex .text-secondary {
    color: var(--secondary) !important;
}

.text-success {
    color: var(--success);
}

.text-warning {
    color: var(--warning);
}

.text-danger {
    color: var(--danger);
}

.text-status-expired {
    color: var(--status-expired);
}

.text-gray-50 {
    color: var(--gray-50);
}

.text-gray-100 {
    color: var(--gray-100);
}

.text-gray-200 {
    color: var(--gray-200);
}

.text-gray-300 {
    color: var(--gray-300);
}

.text-gray-400 {
    color: var(--gray-400);
}

.text-gray-500 {
    color: var(--gray-500);
}

.text-gray-600 {
    color: var(--gray-600);
}

.text-gray-700 {
    color: var(--gray-700);
}

.text-gray-800 {
    color: var(--gray-800);
}

.text-gray-900 {
    color: var(--gray-900);
}

.text-white {
    color: var(--white);
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 2.6rem;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.font-light {
    font-weight: 300;
}

.font-normal {
    font-weight: 400;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.shadow-card {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.shadow-card-hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.top-0 {
    top: 0;
}

.left-0 {
    left: 0;
}

.right-0 {
    right: 0;
}

.bottom-0 {
    bottom: 0;
}

.top-1\/2 {
    top: 50%;
}

.left-3 {
    left: 0.75rem;
}

.transform {
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.-translate-y-1\/2 {
    --tw-translate-y: -50%;
}

.translate-x-2 {
    --tw-translate-x: 0.5rem;
}

.whitespace-nowrap {
    white-space: nowrap;
}

.overflow-hidden {
    overflow: hidden;
}

.overflow-x-auto {
    overflow-x: auto;
}

.cursor-pointer {
    cursor: pointer;
}

.opacity-50 {
    opacity: 0.5;
}

.hidden {
    display: none;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.disabled:opacity-50 {
    opacity: 0.5;
}

.disabled:pointer-events-none {
    pointer-events: none;
}

/* 自定义组件样式 */
.btn-transition {
    transition: all 0.2s ease-in-out;
}

.btn-transition:hover {
    opacity: 0.8;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.table-row-animate {
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.table-row-animate:hover {
    background-color: var(--gray-50);
    transform: translateX(2px);
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 表单元素样式 */
input[type="text"],
select {
    /* width: 100%; */
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-800);
    background-color: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.25rem;
    color: var(--secondary);
    background-color: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin:0;
}

th, td {
    padding: 1rem 1.5rem;
    text-align: left;
}

thead {
    background-color: var(--gray-50);
}

thead th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--gray-500);
    letter-spacing: 0.05em;
}

tbody tr {
    border-bottom: 1px solid var(--gray-200);
}

tbody tr:last-child {
    border-bottom: none;
}

/* 导航栏样式
.site-header {
    background-color: var(--white);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    align-items: center;
    padding: 1rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-default, .logo-scrolled {
    height: 40px;
    width: auto;
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin-left: 1.5rem;
}

.nav-link {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--secondary);
}

.nav-link.active {
    color: var(--secondary);
}

.sidemenu_btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.sidemenu_btn span {
    width: 100%;
    height: 2px;
    background-color: var(--gray-800);
    margin-bottom: 4px;
    transition: all 0.2s ease;
} */

/* 响应式导航 */
@media (max-width: 768px) {
    .navbar-collapse {
        display: none;
    }

    .sidemenu_btn {
        display: flex;
        margin-left: auto;
    }

    .side-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        height: 100%;
        background-color: var(--white);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    .side-menu.open {
        transform: translateX(0);
    }

    .side-menu .inner-wrapper {
        padding: 2rem;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .btn-close {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 30px;
        height: 30px;
        cursor: pointer;
        margin-left: auto;
    }

    .btn-close i {
        display: block;
        width: 20px;
        height: 2px;
        background-color: var(--gray-800);
        position: relative;
    }

    .btn-close i:first-child {
        transform: rotate(45deg);
    }

    .btn-close i:last-child {
        transform: rotate(-45deg) position: absolute;
        top: 0;
        left: 0;
    }

    .side-nav .navbar-nav {
        flex-direction: column;
        margin-top: 2rem;
    }

    .side-nav .nav-item {
        margin: 0 0 1rem 0;
    }

    .side-footer {
        margin-top: auto;
        padding-top: 2rem;
    }

    .social-icons-simple {
        display: flex;
        list-style: none;
        padding: 0;
        margin: 0 0 1rem 0;
    }

    .social-icons-simple li {
        margin-right: 1rem;
    }

    .social-icons-simple a {
        color: var(--gray-600);
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .social-icons-simple a:hover {
        color: var(--secondary);
    }

    #close_side_menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }

    #close_side_menu.open {
        display: block;
    }
}

/* 分页样式 */
.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination li {
    margin: 0 0.25rem;
}

.pagination button {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.375rem;
    background-color: var(--white);
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination button:hover {
    background-color: var(--gray-50);
}

.pagination button.active {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: var(--white);
}

.pagination button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 页脚样式
#site-footer {
    background-color: var(--dark);
    color: var(--gray-400);
    padding: 3rem 0;
    margin-top: 4rem;
}

.copyrights {
    text-align: center;
    font-size: 0.875rem;
} */

.p-4{
    padding: 0.5rem 1.5rem !important;
}

.font-medium {
    margin: 0;
    font-size:15px;
}

.no-border-btn {
    border: none !important; /* 清除所有边框（!important 确保覆盖原有类） */
    border-bottom: none !important; /* 额外针对性清除下边框（双重保险） */
    outline: none; /* 可选：清除按钮点击时的默认轮廓线（如蓝色焦点框） */
}

.margin-le
{
    margin-left:10px;
}