/* ========================================
   WMS工作台 - 基础样式
   ======================================== */

/* CSS重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: #f5f5f5;
    overflow: hidden;
}

/* 基础布局 */
#app {
    width: 100%;
    height: 100%;
}

/* 通用容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 通用按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
}

.btn-primary {
    background-color: #0052d9;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0043a8;
}

.btn-default {
    background-color: #e7e7e7;
    color: #333;
}

.btn-default:hover {
    background-color: #d5d5d5;
}

/* 通用卡片 */
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

/* 通用表单组 */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* 通用标题 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.3;
    color: #333;
}

h1 { font-size: 28px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
h4 { font-size: 16px; }

/* 通用表格 */
.table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e7e7e7;
}

.table th {
    background-color: #f5f5f5;
    font-weight: 500;
}

/* 通用工具类 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* 加载动画 */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    font-size: 16px;
    color: #666;
}

/* 隐藏元素 */
.hidden {
    display: none !important;
}

/* ========================================
   Windows 应用程序窗口样式
   ======================================== */

/* 窗口外层容器 */
.window-frame {
    position: fixed;
    width: 90vw;
    height: calc(90vh - 2px);
    min-width: 800px;
    min-height: 600px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow:
        0 0 0 1px #0078d4,
        0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 标题栏 */
.window-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 36px;
    padding: 0 12px;
    background: linear-gradient(to right, #0078d4, #005a9e);
    color: #fff;
    font-size: 13px;
    user-select: none;
    -webkit-app-region: drag;
}

.window-titlebar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.window-icon {
    width: 16px;
    height: 16px;
    font-size: 14px;
}

.window-title {
    font-weight: 400;
}

/* 窗口控制按钮 */
.window-controls {
    display: flex;
    -webkit-app-region: no-drag;
}

.window-btn {
    width: 46px;
    height: 36px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.1s;
}

.window-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.window-btn-close:hover {
    background-color: #e81123;
}

/* 窗口内容区域 */
.window-content {
    position: relative;
    flex: 1;
    overflow: hidden;
    background-color: #f5f5f5;
}
