/* ========================================
   电力调度指令管理系统 - 全局样式
   蓝色主题 · 现代化UI
   ======================================== */

/* CSS变量定义 */
:root {
    /* 主色调 */
    --primary-dark: #0d47a1;
    --primary: #1976d2;
    --primary-light: #42a5f5;
    --primary-lighter: #90caf9;
    --primary-pale: #e3f2fd;
    
    /* 辅助色 */
    --accent: #00bcd4;
    --success: #4caf50;
    --warning: #ff9800;
    --danger: #f44336;
    --info: #03a9f4;
    
    /* 中性色 */
    --bg-dark: #0a1628;
    --bg-main: #f0f4f8;
    --bg-card: #ffffff;
    --text-primary: #1a237e;
    --text-secondary: #546e7a;
    --text-muted: #90a4ae;
    --border: #e0e8f0;
    
    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(13, 71, 161, 0.08);
    --shadow-md: 0 4px 20px rgba(13, 71, 161, 0.12);
    --shadow-lg: 0 8px 40px rgba(13, 71, 161, 0.16);
    --shadow-glow: 0 0 30px rgba(25, 118, 210, 0.3);
    
    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* 过渡 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 重置与基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========================================
   登录页面样式
   ======================================== */

.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 50%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(25, 118, 210, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 188, 212, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(144, 202, 249, 0.1) 0%, transparent 40%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-3deg); }
}

/* 登录容器 */
.login-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
    padding: 20px;
}

/* 登录卡片 */
.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

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

/* 登录头部 */
.login-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.login-logo {
    position: relative;
    z-index: 1;
}

.login-logo-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fff, var(--primary-lighter));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.login-logo-icon svg {
    width: 48px;
    height: 48px;
    fill: var(--primary-dark);
}

.login-title {
    position: relative;
    z-index: 1;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.login-subtitle {
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

/* 登录表单 */
.login-body {
    padding: 40px 30px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    height: 52px;
    padding: 0 16px 0 48px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-main);
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(25, 118, 210, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    fill: var(--text-muted);
    transition: var(--transition);
}

.form-input:focus ~ .form-input-icon,
.form-input:not(:placeholder-shown) ~ .form-input-icon {
    fill: var(--primary);
}

/* 记住我 & 忘记密码 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.checkbox-wrapper input:checked + .checkbox-custom {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-custom svg {
    width: 14px;
    height: 14px;
    fill: #fff;
    opacity: 0;
    transform: scale(0);
    transition: var(--transition);
}

.checkbox-wrapper input:checked + .checkbox-custom svg {
    opacity: 1;
    transform: scale(1);
}

.checkbox-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.forgot-link {
    font-size: 0.9rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.forgot-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* 登录按钮 */
.login-btn {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(25, 118, 210, 0.4);
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:active {
    transform: translateY(0);
}

/* 登录页脚 */
.login-footer {
    padding: 20px 30px;
    background: var(--bg-main);
    text-align: center;
    border-top: 1px solid var(--border);
}

.login-footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.login-footer a {
    color: var(--primary);
    text-decoration: none;
}

/* 错误提示 */
.error-message {
    display: none;
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 20px;
    color: var(--danger);
    font-size: 0.9rem;
    animation: shake 0.5s ease-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

/* ========================================
   主页/仪表盘样式
   ======================================== */

.dashboard-page {
    min-height: 100vh;
    background: var(--bg-main);
}

/* 顶部导航栏 */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    box-shadow: var(--shadow-md);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}
.navbar-logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.navbar-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-logo svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

.navbar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.navbar-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

/* 导航栏右侧 */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar-time {
    text-align: right;
    color: rgba(255, 255, 255, 0.9);
}

.navbar-time .time {
    font-size: 1.1rem;
    font-weight: 600;
}

.navbar-time .date {
    font-size: 0.8rem;
    opacity: 0.8;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px 8px 8px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.navbar-user:hover {
    background: rgba(255, 255, 255, 0.25);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #fff, var(--primary-lighter));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar svg {
    width: 20px;
    height: 20px;
    fill: var(--primary-dark);
}

.user-name {
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
}

/* 侧边栏 */
.sidebar {
    position: fixed;
    left: 0;
    top: 70px;
    bottom: 0;
    width: 260px;
    background: #fff;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.05);
    padding: 30px 0;
    z-index: 900;
    overflow-y: auto;
}

/* 侧边栏统计卡片 */
.sidebar-stats {
    padding: 0 16px;
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 12px;
    border-radius: var(--radius-md);
    border: none;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    display: none;
}

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

.stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
    color: #fff;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.85);
}

/* 统计卡片颜色 */
.stat-total {
    background: linear-gradient(135deg, #3949ab, #283593);
}

.stat-pending {
    background: linear-gradient(135deg, #546e7a, #455a64);
}

.stat-received {
    background: linear-gradient(135deg, #ff9800, #f57c00);
}

.stat-completed {
    background: linear-gradient(135deg, #43a047, #2e7d32);
}

.stat-voided {
    background: linear-gradient(135deg, #e53935, #c62828);
}

.stat-today {
    background: linear-gradient(135deg, #8e24aa, #6a1b9a);
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-title {
    padding: 0 24px;
    margin-bottom: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.sidebar-menu {
    list-style: none;
}

.sidebar-item {
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.sidebar-item:hover {
    background: var(--primary-pale);
    color: var(--primary);
}

.sidebar-item.active {
    background: var(--primary-pale);
    color: var(--primary);
    border-left-color: var(--primary);
}

.sidebar-item svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.sidebar-item span {
    font-size: 0.95rem;
    font-weight: 500;
}

/* 统计卡片 */
.stats-grid {
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.stat-icon svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* 主内容区 */
.main-content {
    margin-left: 260px;
    margin-top: 70px;
    padding: 30px;
    min-height: calc(100vh - 70px);
}

/* 页面标题区 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.page-actions {
    display: flex;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.35);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-pale);
}

/* 筛选栏 */
.filter-bar {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.filter-select {
    height: 40px;
    padding: 0 36px 0 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-primary);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23546e7a' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 14px center;
    appearance: none;
    cursor: pointer;
    transition: var(--transition);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

.search-box {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.search-box input {
    width: 100%;
    height: 40px;
    padding: 0 16px 0 42px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-box svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    fill: var(--text-muted);
}

/* 指令卡片网格 */
.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.instruction-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.instruction-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-lighter);
}

.card-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border);
}

.card-type {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-type svg {
    width: 16px;
    height: 16px;
}

/* 限电指令 */
.type-limit {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    color: #e65100;
}

/* 限电恢复指令 */
.type-supply {
    background: linear-gradient(135deg, #87C0FF, #3F95F7);
    color: #004DFF;
}
/* 停电指令 */
.type-outage {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    color: #c62828;
}

/* 送电指令 */
.type-restore {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #2e7d32;
}

/* 负荷调整指令 */
.type-load {
    background: linear-gradient(135deg, var(--primary-pale), var(--primary-lighter));
    color: var(--primary-dark);
}

.card-id {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.card-body {
    padding: 20px 24px;
}

.card-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-label svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.info-value.highlight {
    color: var(--primary);
}

.card-source {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-main);
    border-radius: var(--radius-sm);
}

.source-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-lighter), var(--primary));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.source-icon svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.source-text {
    flex: 1;
}

.source-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.source-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-footer {
    padding: 16px 24px;
    background: var(--bg-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-time {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-time svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.card-action {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.instruction-card:hover .card-action {
    gap: 10px;
}

.card-action svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ========================================
   弹窗样式
   ======================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 22, 40, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: #fff;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 24px 30px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.modal-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.modal-subtitle {
    font-size: 0.85rem;
    opacity: 0.85;
}

.modal-close {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.modal-close svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--bg-main);
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--primary-lighter);
    border-radius: 3px;
}

/* 详情区块 */
.detail-section {
    margin-bottom: 24px;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

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

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-item.full-width {
    grid-column: span 2;
}

.detail-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.detail-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 12px 16px;
    background: var(--bg-main);
    border-radius: var(--radius-sm);
    text-align: left;
}

.detail-value.highlight {
    background: var(--bg-main);
    color: var(--text-primary);
}

/* 状态标签 */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 600;
}

/* 待接收状态 - 灰色 */
.status-badge.pending {
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    color: #616161;
}

/* 已接收状态 - 橙色 */
.status-badge.received {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    color: #e65100;
}

/* 已执行状态 - 绿色 */
.status-badge.completed {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #2e7d32;
}

/* 已作废状态 - 红色 */
.status-badge.voided {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    color: #c62828;
}

/* 备注区块 */
.remark-box {
    background: linear-gradient(135deg, var(--primary-pale), #e1f5fe);
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.remark-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.remark-text {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.7;
}

/* 状态按钮样式 */
.btn-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-status svg {
    width: 16px;
    height: 16px;
}

/* 未执行按钮 - 灰色 */
.btn-status.pending {
    background: #f5f5f5;
    color: #757575;
    border-color: #e0e0e0;
}

.btn-status.pending:hover {
    background: #eeeeee;
    border-color: #bdbdbd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-status.pending.active {
    background: #616161;
    color: #fff;
    border-color: #616161;
    box-shadow: 0 4px 12px rgba(97, 97, 97, 0.3);
}

/* 执行中按钮 - 橙色 */
.btn-status.executing {
    background: #fff3e0;
    color: #e65100;
    border-color: #ffcc80;
}

.btn-status.executing:hover {
    background: #ffe0b2;
    border-color: #ff9800;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 81, 0, 0.2);
}

.btn-status.executing.active {
    background: #ff9800;
    color: #fff;
    border-color: #ff9800;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

/* 已执行按钮 - 绿色 */
.btn-status.completed {
    background: #e8f5e9;
    color: #2e7d32;
    border-color: #a5d6a7;
}

.btn-status.completed:hover {
    background: #c8e6c9;
    border-color: #4caf50;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
}

.btn-status.completed.active {
    background: #4caf50;
    color: #fff;
    border-color: #4caf50;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* 卡片状态标签 */
.card-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.card-status.status-pending {
    background: #f5f5f5;
    color: #757575;
}

.card-status.status-executing {
    background: #fff3e0;
    color: #e65100;
}

.card-status.status-completed {
    background: #e8f5e9;
    color: #2e7d32;
}

/* 弹窗底部 */
.modal-footer {
    padding: 20px 30px;
    background: var(--bg-main);
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    border-top: 1px solid var(--border);
}

.modal-footer .btn {
    padding: 10px 24px;
}

/* ========================================
   响应式设计
   ======================================== */

@media (max-width: 1200px) {
    .sidebar {
        width: 220px;
    }
    
    .main-content {
        margin-left: 220px;
    }
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        width: 260px;
        transition: var(--transition);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .navbar-toggle {
        display: flex;
    }
    
    .instructions-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .top-navbar {
        padding: 0 16px;
    }
    
    .navbar-title {
        font-size: 1rem;
    }
    
    .navbar-subtitle {
        display: none;
    }
    
    .navbar-time {
        display: none;
    }
    
    .main-content {
        padding: 20px 16px;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .filter-bar {
        padding: 16px;
    }
    
    .instructions-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-item.full-width {
        grid-column: span 1;
    }
    
    .modal {
        max-width: 100%;
        margin: 10px;
        border-radius: var(--radius-lg);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* 移动端菜单按钮 */
.navbar-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.navbar-toggle span {
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: var(--transition);
}

@media (max-width: 992px) {
    .navbar-toggle {
        display: flex;
    }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state svg {
    width: 80px;
    height: 80px;
    fill: var(--border);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 0.95rem;
}

/* 加载动画 */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast 提示 */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    z-index: 3000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4caf50, #2e7d32);
}

.toast-icon svg {
    fill: #fff;
}

.toast-message {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* 下拉菜单 */
.user-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 100;
}

.user-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(8px);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.dropdown-item:hover {
    background: var(--primary-pale);
    color: var(--primary);
}

.dropdown-item svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}
/* ========================================
   历史记录页面特定样式
   ======================================== */

.history-page .page-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--success), #81c784);
    border-radius: 2px;
    margin-right: 12px;
    vertical-align: middle;
}

/* 隐藏统计卡片区域（已移除） */
.dashboard-page .stats-grid {
    display: none;
}

/* 侧边栏菜单可点击样式 */
.sidebar-item {
    cursor: pointer;
}

.sidebar-item:hover {
    text-decoration: none;
}


/* ========================================
   新状态样式 - 待接收、已接收
   ======================================== */

/* 待接收状态标签 - 灰色 */
.card-status.status-pending {
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    color: #616161;
}

/* 已接收状态标签 - 橙色 */
.card-status.status-received {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    color: #e65100;
}

/* 已执行状态标签 - 绿色 */
.card-status.status-completed {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #2e7d32;
}

/* 按钮状态 - 待接收 */
.btn-status.pending {
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    color: #616161;
    border-color: #bdbdbd;
}

.btn-status.pending:hover {
    background: linear-gradient(135deg, #eeeeee, #e0e0e0);
    border-color: #9e9e9e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-status.pending.active {
    background: linear-gradient(135deg, #757575, #616161);
    color: #fff;
    border-color: #616161;
    box-shadow: 0 4px 12px rgba(97, 97, 97, 0.4);
}

/* 按钮状态 - 已接收 */
.btn-status.received {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    color: #e65100;
    border-color: #ffcc80;
}

.btn-status.received:hover {
    background: linear-gradient(135deg, #ffe0b2, #ffcc80);
    border-color: #ff9800;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 81, 0, 0.25);
}

.btn-status.received.active {
    background: linear-gradient(135deg, #ff9800, #e65100);
    color: #fff;
    border-color: #ff9800;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

/* 按钮状态 - 已执行 */
.btn-status.completed {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #2e7d32;
    border-color: #a5d6a7;
}

.btn-status.completed:hover {
    background: linear-gradient(135deg, #c8e6c9, #a5d6a7);
    border-color: #4caf50;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.25);
}

.btn-status.completed.active {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: #fff;
    border-color: #4caf50;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

/* 禁用按钮样式 */
.btn-status:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-status:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* 已完成执行标签 */
.completed-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #2e7d32;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
}

.completed-label svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* 作废按钮样式 */
.btn-status.voided {
    background: #fff;
    color: #d32f2f;
    border: 2px solid #d32f2f;
}

.btn-status.voided:hover {
    background: #ffebee;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.25);
}

.btn-status.voided.active {
    background: #d32f2f;
    color: #fff;
}

/* 已作废标签 */
.voided-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    color: #c62828;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
}

.voided-label svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* 作废状态卡片标记 */
.status-voided {
    background: linear-gradient(135deg, #ffebee, #ffcdd2) !important;
    color: #c62828 !important;
}

/* ========================================
   确认接收弹窗样式
   ======================================== */

.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 22, 40, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 20px;
}

.confirm-overlay.active {
    opacity: 1;
    visibility: visible;
}

.confirm-dialog {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 32px 40px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    transform: scale(0.9) translateY(20px);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.confirm-overlay.active .confirm-dialog {
    transform: scale(1) translateY(0);
}

.confirm-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.confirm-icon svg {
    width: 32px;
    height: 32px;
    fill: #e65100;
}

.confirm-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.confirm-message {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 28px;
}

.confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-buttons .btn {
    flex: 1;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn-cancel {
    background: #f5f5f5;
    color: #616161;
    border-color: #e0e0e0;
}

.btn-cancel:hover {
    background: #eeeeee;
    border-color: #bdbdbd;
}

.btn-confirm {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.35);
}

/* ========================================
   历史记录页时间筛选样式
   ======================================== */

.date-filter-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-filter {
    display: flex;
    gap: 8px;
}

.quick-btn {
    padding: 8px 16px;
    background: var(--bg-main);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.quick-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-pale);
}

.quick-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-color: var(--primary);
}

.date-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-input {
    height: 38px;
    padding: 0 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-primary);
    background: #fff;
    transition: var(--transition);
}

.date-input:focus {
    outline: none;
    border-color: var(--primary);
}

.date-separator {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 筛选栏布局调整 */
.filter-bar .filter-group:first-child {
    flex-basis: 100%;
}

@media (max-width: 768px) {
    .quick-filter {
        flex-wrap: wrap;
    }
    
    .date-range {
        flex-wrap: wrap;
    }
    
    .date-input {
        flex: 1;
        min-width: 120px;
    }
    
    .filter-group {
        flex-basis: 100%;
    }
}
/* 主内容区底部版权 */
.main-footer {
    position: sticky;
    bottom: 0;
    padding: 12px 24px;
    text-align: center;
    color: rgba(0, 0, 0, 0.35);
    font-size: 0.8rem;
    background: #f5f7fa;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: auto;
}

/* ========================================
   签名弹窗样式
   ======================================== */

.sign-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 4000;
    align-items: center;
    justify-content: center;
}

.sign-overlay.active {
    display: flex;
}

.sign-dialog {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 420px;
    width: 90%;
    animation: slideUp 0.3s ease-out;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.sign-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.sign-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.sign-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-main);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.sign-close:hover {
    background: var(--border);
}

.sign-close svg {
    width: 20px;
    height: 20px;
    fill: var(--text-secondary);
}

.sign-form {
    margin-bottom: 20px;
}

.sign-form .form-group {
    margin-bottom: 16px;
}

.sign-form .form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.sign-form .form-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-main);
    transition: var(--transition);
}

.sign-form .form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(25, 118, 210, 0.1);
}

.sign-form .form-input[readonly] {
    background: var(--bg-main);
    color: var(--text-muted);
    cursor: not-allowed;
}

.sign-error {
    display: none;
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-bottom: 16px;
    color: var(--danger);
    font-size: 0.9rem;
}

.sign-error.show {
    display: block;
    animation: shake 0.5s ease-out;
}

.sign-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.sign-buttons .btn {
    min-width: 100px;
    height: 44px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.sign-buttons .btn-cancel {
    background: var(--bg-main);
    color: var(--text-secondary);
    border: 2px solid var(--border);
}

.sign-buttons .btn-cancel:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.sign-buttons .btn-sign {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
}

.sign-buttons .btn-sign:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.35);
}

.sign-buttons .btn-sign:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ========================================
   作废弹窗样式
   ======================================== */

.void-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 3900;
    align-items: center;
    justify-content: center;
}

.void-overlay.active {
    display: flex;
}

.void-dialog {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 440px;
    width: 90%;
    animation: slideUp 0.3s ease-out;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.void-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.void-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #d32f2f;
}

.void-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-main);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.void-close:hover {
    background: #ffebee;
}

.void-close svg {
    width: 18px;
    height: 18px;
    fill: #666;
}

.void-form .form-group {
    margin-bottom: 16px;
}

.void-form .form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.void-form .form-input {
    width: 100%;
    height: 42px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0 14px;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-main);
    transition: var(--transition);
    box-sizing: border-box;
}

.void-form .form-input[readonly] {
    background: #f5f5f5;
    color: var(--text-secondary);
}

.void-form .form-textarea {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.95rem;
    color: var(--text-primary);
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    transition: var(--transition);
    box-sizing: border-box;
}

.void-form .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.void-error {
    display: none;
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-bottom: 16px;
    color: var(--danger);
    font-size: 0.9rem;
}

.void-error.show {
    display: block;
    animation: shake 0.5s ease-out;
}

.void-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.void-buttons .btn {
    min-width: 100px;
    height: 44px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.void-buttons .btn-cancel {
    background: var(--bg-main);
    color: var(--text-secondary);
    border: 2px solid var(--border);
}

.void-buttons .btn-cancel:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.void-buttons .btn-void-confirm {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    color: #fff;
}

.void-buttons .btn-void-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.35);
}
