* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, "Microsoft YaHei", sans-serif;
    color: #253238;
}

/* ================= 登录页 ================= */

.shop-login-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 20%, rgba(22, 186, 170, .24), transparent 34%),
        linear-gradient(135deg, #102a33 0%, #0f5f68 52%, #13a89e 100%);
}

.shop-login-wrap {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-login-card {
    width: 390px;
    background: rgba(255,255,255,.96);
    border-radius: 14px;
    padding: 38px 36px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
}

.shop-login-logo {
    text-align: center;
    margin-bottom: 28px;
}

.logo-main {
    font-size: 28px;
    font-weight: 800;
    color: #0d7d7a;
}

.logo-sub {
    margin-top: 6px;
    color: #5d6d73;
}

.shop-login-input {
    height: 44px;
    border-radius: 6px;
}

.shop-login-btn {
    width: 100%;
    height: 44px;
    font-size: 16px;
    border-radius: 6px;
    background: #16baaa;
}

.shop-login-tip {
    margin-top: 6px;
    color: #8a999e;
    font-size: 12px;
}

/* ================= 主框架 ================= */

.shop-main-body {
    overflow: hidden;
    background: #eef3f4;
}

.shop-shell {
    width: 100vw;
    height: 100vh;
    display: flex;
}

.shop-sidebar {
    width: 230px;
    height: 100vh;
    background: linear-gradient(180deg, #102b34 0%, #0c2028 100%);
    color: #d7e8eb;
    flex-shrink: 0;
    transition: width .2s ease;
    overflow: hidden;
}

.shop-shell.collapsed .shop-sidebar {
    width: 70px;
}

.shop-side-brand {
    height: 68px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.shop-side-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #16baaa, #65d86e);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-right: 10px;
}

.shop-side-title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

.shop-side-sub {
    font-size: 12px;
    color: #9dbabe;
}

.shop-shell.collapsed .shop-side-title,
.shop-shell.collapsed .shop-side-sub,
.shop-shell.collapsed .shop-side-store,
.shop-shell.collapsed .menu-group-title span:nth-child(1) span + text,
.shop-shell.collapsed .menu-item span:last-child,
.shop-shell.collapsed .menu-children,
.shop-shell.collapsed .menu-group-title em {
    display: none;
}

.shop-side-store {
    margin: 14px 12px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(22,186,170,.12);
    border: 1px solid rgba(22,186,170,.18);
}

.store-name {
    color: #fff;
    font-weight: 700;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.store-user {
    font-size: 12px;
    color: #9ec4c7;
}

.shop-menu {
    padding: 6px 8px 18px;
    height: calc(100vh - 165px);
    overflow-y: auto;
}

.shop-menu::-webkit-scrollbar {
    width: 4px;
}

.shop-menu::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.18);
    border-radius: 4px;
}

.menu-item,
.menu-group-title {
    height: 42px;
    border-radius: 10px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #d8e8ea;
    margin-bottom: 4px;
    transition: all .15s;
}

.menu-item:hover,
.menu-group-title:hover,
.menu-item.active {
    background: rgba(22,186,170,.18);
    color: #fff;
}

.menu-item.active {
    box-shadow: inset 3px 0 0 #20d6c4;
}

.menu-icon {
    display: inline-block;
    width: 22px;
    margin-right: 8px;
    color: #5de2d4;
}

.menu-group-title {
    justify-content: space-between;
}

.menu-group-title em {
    font-style: normal;
    color: #7da0a5;
    transition: transform .15s;
}

.menu-group.open .menu-group-title em {
    transform: rotate(180deg);
}

.menu-children {
    display: none;
    padding: 2px 0 8px 42px;
}

.menu-group.open .menu-children {
    display: block;
}

.menu-child {
    height: 34px;
    line-height: 34px;
    color: #a9c0c3;
    cursor: pointer;
    padding-left: 10px;
    border-radius: 8px;
    margin: 2px 8px 2px 0;
}

.menu-child:hover,
.menu-child.active {
    color: #fff;
    background: rgba(255,255,255,.08);
}

.shop-main {
    flex: 1;
    height: 100vh;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.shop-header {
    height: 62px;
    background: #fff;
    border-bottom: 1px solid #dde8ea;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    flex-shrink: 0;
}

.shop-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.side-toggle {
    width: 38px;
    height: 38px;
    border: 1px solid #d8e5e7;
    background: #f7fbfb;
    color: #0f6f72;
    border-radius: 8px;
    cursor: pointer;
}

.header-title {
    font-size: 17px;
    font-weight: 700;
    color: #1d3338;
}

.header-sub {
    font-size: 12px;
    color: #7b8f94;
    margin-top: 3px;
}

.shop-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-btn {
    height: 34px;
    padding: 0 14px;
    border: 1px solid #d8e5e7;
    background: #fff;
    color: #436166;
    border-radius: 7px;
    cursor: pointer;
}

.header-btn:hover {
    color: #16baaa;
    border-color: #16baaa;
}

.header-user {
    color: #1f3940;
    font-weight: 600;
}

.header-logout {
    color: #ff5722;
    text-decoration: none;
}

.shop-tabbar {
    height: 42px;
    background: #f7fafb;
    border-bottom: 1px solid #dde8ea;
    display: flex;
    align-items: flex-end;
    padding-left: 12px;
    flex-shrink: 0;
    overflow-x: auto;
}

.shop-tab {
    height: 34px;
    min-width: 88px;
    padding: 0 12px;
    line-height: 34px;
    background: #edf4f5;
    border: 1px solid #dde8ea;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    margin-right: 5px;
    cursor: pointer;
    color: #52696e;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.shop-tab.active {
    background: #fff;
    color: #0b827c;
    font-weight: 700;
}

.tab-close {
    color: #9aaeb2;
    font-size: 13px;
}

.tab-close:hover {
    color: #ff5722;
}

.shop-content {
    flex: 1;
    min-height: 0;
    background: #eef3f4;
}

.shop-content iframe {
    width: 100%;
    height: 100%;
    display: block;
    background: #eef3f4;
}

/* ================= 内容页 ================= */

.shop-page-body {
    background: #eef3f4;
    padding: 14px;
}

.shop-welcome {
    background: #fff;
    padding: 16px 18px;
    border-radius: 10px;
    margin-bottom: 14px;
    border: 1px solid #e3ecee;
}

.shop-welcome span {
    color: #0c8d83;
    font-weight: 700;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 14px;
}

.stat-card,
.dashboard-main-card,
.dashboard-side-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e3ecee;
}

.stat-title {
    font-size: 14px;
    color: #31464b;
}

.stat-value {
    margin-top: 22px;
    font-size: 34px;
    color: #1a373e;
}

.stat-desc {
    margin-top: 10px;
    color: #7d9196;
}

.dashboard-row {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.card-title {
    font-weight: 700;
    margin-bottom: 14px;
    color: #24393e;
}

.todo-icons {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    text-align: center;
    padding: 10px 0;
}

.todo-icons b {
    display: block;
    font-size: 22px;
    color: #16baaa;
}

.todo-icons span {
    color: #667d82;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    text-align: center;
}

.quick-grid div {
    padding: 24px 8px;
    color: #0c827b;
    cursor: pointer;
    background: #f1fbfa;
    border-radius: 10px;
    border: 1px solid #d6f2ef;
}

.quick-grid div:hover {
    background: #e5faf7;
}

.large {
    min-height: 230px;
}

.empty-chart,
.empty-box {
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aabad;
}

.placeholder-page {
    background: #fff;
    min-height: 420px;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #e3ecee;
}

.placeholder-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1e353a;
}

.placeholder-desc {
    color: #667d82;
    margin-bottom: 12px;
}

.placeholder-key {
    color: #9aabad;
    font-size: 13px;
}


/* =====================================================
   2026-06-21 汽修厂端：黑灰直角左侧菜单优化
   ===================================================== */

.shop-shell {
    background: #eef2f3;
}

.shop-sidebar {
    width: 236px;
    background: #111820 !important;
    color: #c8d0d6;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #202a33;
}

.shop-shell.collapsed .shop-sidebar {
    width: 64px;
}

.shop-side-brand {
    height: 64px;
    padding: 0 14px;
    border-bottom: 1px solid #252f38;
    background: #111820;
}

.shop-side-logo {
    width: 36px;
    height: 36px;
    border-radius: 4px !important;
    background: #1f8f7b;
    color: #fff;
    flex-shrink: 0;
}

.shop-side-title {
    color: #fff;
    font-weight: 700;
}

.shop-side-sub {
    color: #8b98a3;
}

.shop-side-store {
    margin: 12px;
    padding: 12px;
    border-radius: 0 !important;
    background: #171f28;
    border: 1px solid #26323d;
    flex-shrink: 0;
}

.store-name {
    color: #f5f7f8;
}

.store-user {
    color: #9aa7b1;
}

.shop-menu {
    flex: 1;
    height: auto !important;
    padding: 8px 8px 12px;
    overflow-y: auto;
}

.menu-item,
.menu-group-title {
    height: 42px;
    border-radius: 0 !important;
    margin-bottom: 2px;
    padding: 0 12px;
    color: #c8d0d6;
    background: transparent;
}

.menu-title-left {
    display: flex;
    align-items: center;
    min-width: 0;
}

.menu-icon {
    width: 22px;
    margin-right: 10px;
    color: #9eaab4;
    font-size: 16px;
    text-align: center;
    flex-shrink: 0;
}

.menu-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-item:hover,
.menu-group-title:hover,
.menu-item.active {
    background: #202a33 !important;
    color: #fff;
}

.menu-child:hover,
.menu-child.active {
    background: #202a33 !important;
    color: #fff;
}

.menu-item.active {
    box-shadow: inset 3px 0 0 #1f8f7b;
}

.menu-item.active .menu-icon,
.menu-group-title:hover .menu-icon,
.menu-child.active {
    color: #e7f4f1;
}

.menu-group-title {
    justify-content: space-between;
}

.menu-arrow {
    color: #7e8b95;
    font-size: 12px;
}

.menu-group.open .menu-arrow {
    transform: rotate(180deg);
}

.menu-children {
    padding: 2px 0 6px 34px;
}

.menu-child {
    height: 34px;
    line-height: 34px;
    border-radius: 0 !important;
    color: #9eaab4;
    padding-left: 12px;
    margin: 0;
}

.shop-side-footer {
    flex-shrink: 0;
    padding: 10px 8px;
    border-top: 1px solid #252f38;
    background: #111820;
}

.shop-logout-btn {
    display: flex;
    align-items: center;
    height: 42px;
    padding: 0 12px;
    color: #c8d0d6;
    text-decoration: none;
    border-radius: 0;
}

.shop-logout-btn:hover {
    background: #2a1d1d;
    color: #ff7463;
}

.shop-logout-btn i {
    width: 22px;
    margin-right: 10px;
    font-size: 16px;
    text-align: center;
}

.shop-header {
    height: 60px;
    background: #ffffff;
    border-bottom: 1px solid #dce4e8;
}

.side-toggle {
    width: auto;
    min-width: 118px;
    height: 34px;
    padding: 0 12px;
    border-radius: 0 !important;
    border: 1px solid #cfd8dd;
    background: #f8fbfc;
    color: #2c3e48;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.side-toggle:hover {
    border-color: #1f8f7b;
    color: #1f8f7b;
}

.header-btn {
    border-radius: 0 !important;
}

.shop-tab {
    border-radius: 0 !important;
}

.stat-card,
.dashboard-main-card,
.dashboard-side-card,
.shop-welcome,
.placeholder-page {
    border-radius: 0 !important;
}

/* 折叠状态：只显示图标，隐藏所有文字和子菜单 */
.shop-shell.collapsed .brand-text,
.shop-shell.collapsed .shop-side-store,
.shop-shell.collapsed .menu-text,
.shop-shell.collapsed .menu-arrow,
.shop-shell.collapsed .menu-children,
.shop-shell.collapsed .logout-text {
    display: none !important;
}

.shop-shell.collapsed .shop-side-brand {
    justify-content: center;
    padding: 0;
}

.shop-shell.collapsed .shop-side-logo {
    margin-right: 0;
}

.shop-shell.collapsed .shop-menu {
    padding: 8px 6px;
}

.shop-shell.collapsed .menu-item,
.shop-shell.collapsed .menu-group-title,
.shop-shell.collapsed .shop-logout-btn {
    justify-content: center;
    padding: 0;
}

.shop-shell.collapsed .menu-icon,
.shop-shell.collapsed .shop-logout-btn i {
    margin-right: 0;
    width: auto;
}

.shop-shell.collapsed .menu-item.active {
    box-shadow: inset 3px 0 0 #1f8f7b;
}

.shop-shell.collapsed .side-toggle {
    min-width: 118px;
}


/* =====================================================
   2026-06-21 汽修厂端：菜单高亮与折叠按钮优化
   ===================================================== */

/* 左侧菜单选中态：改为更亮、更清晰的颜色 */
.menu-item.active,
.menu-child.active {
    background: #008f7a !important;
    color: #ffffff !important;
}

.menu-item.active .menu-icon,
.menu-child.active .menu-icon {
    color: #ffffff !important;
}

.menu-item.active {
    box-shadow: inset 4px 0 0 #00f0d0 !important;
}

.menu-child.active {
    border-left: 4px solid #00f0d0;
    padding-left: 8px;
}

/* hover 也稍微亮一点，不再是灰色 */
.menu-item:hover,
.menu-group-title:hover,
.menu-child:hover {
    background: #1d333b !important;
    color: #ffffff !important;
}

/* 折叠菜单按钮放大、增强存在感 */
.side-toggle {
    min-width: 132px !important;
    height: 38px !important;
    font-size: 14px;
    font-weight: 600;
    gap: 8px;
}

.side-toggle-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 30px;
    line-height: 20px;
    font-weight: 700;
    color: #1f8f7b;
    margin-top: -2px;
}

/* 折叠后按钮文字仍然正常显示 */
.shop-shell.collapsed .side-toggle {
    min-width: 132px !important;
}

/* 右上角用户名已移除，保留刷新按钮即可 */
.header-user {
    display: none !important;
}

/* 左侧下拉箭头稍微放大一点 */
.menu-arrow {
    font-size: 15px !important;
    color: #9eaab4 !important;
}


/* =====================================================
   2026-06-21 左侧菜单文字与箭头优化
   1. 一级/二级菜单字体纯白
   2. 右侧展开箭头放大、纯白
   ===================================================== */

/* 一级菜单文字 */
.menu-item,
.menu-item .menu-text,
.menu-group-title,
.menu-group-title .menu-text {
    color: #ffffff !important;
}

/* 一级菜单图标 */
.menu-item .menu-icon,
.menu-group-title .menu-icon {
    color: #ffffff !important;
}

/* 二级菜单文字 */
.menu-child,
.menu-child .menu-text,
.menu-child a {
    color: #ffffff !important;
}

/* hover 保持纯白 */
.menu-item:hover,
.menu-item:hover .menu-text,
.menu-group-title:hover,
.menu-group-title:hover .menu-text,
.menu-child:hover,
.menu-child:hover .menu-text,
.menu-child:hover a {
    color: #ffffff !important;
}

/* 激活态保持纯白 */
.menu-item.active,
.menu-item.active .menu-text,
.menu-item.active .menu-icon,
.menu-child.active,
.menu-child.active .menu-text,
.menu-child.active a {
    color: #ffffff !important;
}

/* 右侧小箭头：放大、变白、更明显 */
.menu-arrow {
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    opacity: 1 !important;
}

/* 如果箭头在 hover / active 下被别的样式覆盖，也强制保持白色 */
.menu-item:hover .menu-arrow,
.menu-group-title:hover .menu-arrow,
.menu-item.active .menu-arrow,
.menu-group-title.active .menu-arrow {
    color: #ffffff !important;
    opacity: 1 !important;
}

/* 二级菜单稍微更清楚一点 */
.menu-children .menu-child {
    color: #ffffff !important;
}

/* 避免灰字 */
.menu-item *,
.menu-group-title *,
.menu-child * {
    color: inherit;
}


/* =====================================================
   2026-06-21 修复左侧菜单箭头旁出现文本光标问题
   ===================================================== */

/* 左侧菜单整体禁止文字选择，避免出现输入光标 */
.shop-sidebar,
.shop-sidebar * {
    -webkit-user-select: none !important;
    user-select: none !important;
    caret-color: transparent !important;
}

/* 菜单项点击时不要出现轮廓和文本光标 */
.menu-item,
.menu-group-title,
.menu-child,
.menu-arrow {
    outline: none !important;
    cursor: pointer;
}

/* 隐藏原来的文本箭头，用伪元素重新画箭头 */
.menu-arrow {
    width: 24px !important;
    height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0 !important;
    line-height: 1 !important;
    color: #ffffff !important;
    transform: none !important;
}

/* 默认收起状态：向下箭头 */
.menu-arrow::before {
    content: "▾";
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
}

/* 展开状态：向上箭头 */
.menu-group.open .menu-arrow {
    transform: none !important;
}

.menu-group.open .menu-arrow::before {
    content: "▴";
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
}

/* 折叠左侧栏时，不显示二级菜单箭头 */
.shop-shell.collapsed .menu-arrow {
    display: none !important;
}

/* 数据管理菜单修复 */
.kl-data-menu .kl-data-menu-title {
    display: flex;
    align-items: center;
}

.kl-data-menu .kl-data-menu-icon {
    width: 20px !important;
    min-width: 20px !important;
    margin-right: 10px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 14px;
    line-height: 1;
}

.kl-data-menu .kl-custom-work-menu {
    cursor: pointer;
}

.kl-data-menu .kl-custom-work-menu:hover {
    background: rgba(0, 150, 136, 0.16);
    color: #ffffff;
}

