/* 统一页头布局（layout.js 注入 .top-controls 使用）。
   与 order_list.css 的顶栏样式保持一致，供各子页面复用。 */
.top-controls {
    background-color: #2a2f3f;
    padding: 10px 20px 0;
    border-bottom: 1px solid #3a3f4f;
}

.topbar-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 8px;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 0 10px;
    border-top: 1px solid #3a3f4f;
}

.system-title {
    font-size: 22px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.system-title i {
    color: #ffcc00;
}

.time-display {
    font-size: 16px;
    color: #8bc34a;
    text-align: center;
}

.topbar-nav .control-btn {
    background-color: #333848;
}

.control-btn {
    padding: 6px 12px;
    background-color: #3a3f4f;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s;
}

.control-btn:hover {
    background-color: #4a4f5f;
    color: white;
}

.control-btn.active {
    background: linear-gradient(135deg, #4fc3f7, #29b6f6);
    color: white;
}

.current-user {
    color: #ffcc00;
    font-size: 13px;
    font-weight: 500;
    padding: 0 4px;
    white-space: nowrap;
}

.btn-logout {
    background-color: #4a3f3f;
}

.btn-logout:hover {
    background-color: #f44336;
    color: white;
}

@media (max-width: 768px) {
    .system-title { font-size: 18px; }
    .time-display { display: none; }
}

/* placeholder 提高可见度（深色主题下默认灰太暗，看不清提示文字）。
   需 !important 压过 Bootstrap 的 .form-control::placeholder（其半透明次级色在深色背景上过暗） */
::-webkit-input-placeholder { color: #a8b3c7 !important; opacity: 1; }
::placeholder { color: #a8b3c7 !important; opacity: 1; }
