/* =========================================
   1. CORE & RESET (Compact Version)
   ========================================= */
@font-face {
    font-family: 'PSU Stidti';
    src: url('../../fonts/stidti-regular-webfont.woff2') format('woff2'),
         url('../../fonts/stidti-regular-webfont.woff') format('woff'),
         url('../../fonts/stidti-regular-webfont.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'PSU Stidti';
    src: url('../../fonts/stidti-bold-webfont.woff2') format('woff2'),
         url('../../fonts/stidti-bold-webfont.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #b1006b;
    --primary-gradient: linear-gradient(135deg, #d63384 0%, #900000 100%);
    --bg-body: #ffffff;
    --bg-card: #ffffff;
    --shadow-soft: 0 4px 12px rgba(0,0,0,0.05); /* ลดเงาลงให้ดูเบาขึ้น */
}

* { 
    box-sizing: border-box; 
    font-family: 'PSU Stidti', system-ui, -apple-system, sans-serif; 
}

body { 
    margin: 0; 
    background-color: var(--bg-body); 
    color: #444;
    line-height: 1.5;
    font-size: 14px; /* [ปรับ] ลดขนาดฟอนต์หลักให้พอดี */
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   2. LAYOUT & SIDEBAR
   ========================================= */
.layout {
    display: grid;
    grid-template-columns: 240px 1fr; /* [ปรับ] ลดความกว้าง Sidebar */
    min-height: 100vh;
    width: 100%;
}

.layout-full {
    display: block; width: 100%; min-height: 100vh;
    background: radial-gradient(circle at top right, #850050, #2b001a);
}

/* Sidebar */
.sidebar {
    background-color: var(--bg-card);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.02);
    display: flex; flex-direction: column; height: 100%; z-index: 100;
}

.sidebar-logo {
    padding: 30px 30px; /* [ปรับ] ลดพื้นที่โลโก้ */
    text-align: center; border-bottom: 1px solid #f0f0f0;
}
.sidebar-logo img { max-width: 110px; transition: 0.3s; }
.sidebar-logo:hover img { transform: scale(1.05); }

.sidebar-menu { flex: 1; padding: 15px 10px; overflow-y: auto; }

/* Menu Items */
.menu-item {
    display: flex; align-items: center;
    padding: 10px 15px; /* [ปรับ] ลดขนาดปุ่มเมนู */
    color: #666; text-decoration: none;
    font-size: 14px; font-weight: 500;
    border-radius: 8px; margin-bottom: 5px;
    transition: all 0.2s ease;
    
}
.menu-item:hover { background-color: #fff0f7; color: var(--primary); transform: translateX(3px); }
.menu-item.active { 
    background: var(--primary-gradient); color: #fff; font-weight: 600; 
    box-shadow: 0 3px 8px rgba(177, 0, 107, 0.3);
}
.menu-item.logout { 
    color: #dc3545; margin-top: auto; 
    background: rgba(220, 53, 69, 0.05); justify-content: center;
}
.menu-item.logout:hover { background: rgba(220, 53, 69, 0.1); }

/* =========================================
   3. MAIN CONTENT
   ========================================= */
.main {
    display: flex; flex-direction: column; width: 100%; padding-bottom: 30px;
    animation: fadeInUp 0.4s ease-out;
}
.layout-full .main { padding: 30px; }

.content-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    color: #2c3e50;
    padding: 15px 25px; /* [ปรับ] ลดความสูง Header */
    font-size: 20px; /* [ปรับ] ลดขนาดตัวหนังสือหัวข้อ */
    font-weight: 700;
    margin-bottom: 20px;
    position: sticky; top: 0; z-index: 90;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex; justify-content: space-between; align-items: center;
}
.layout-full .content-header { background: transparent; color: #fff; border: none; }

/* =========================================
   4. CARDS (Compact)
   ========================================= */
.top-cards { 
    display: grid; 
    /* [ปรับ] ให้การ์ดเล็กลงและเรียงต่อกันได้มากขึ้น */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 20px; 
    padding: 0 25px 10px 25px; 
}

.card { 
    color: #ffffff; 
    padding: 20px 15px; /* [ปรับ] ลด Padding การ์ด */
    border-radius: 16px; text-align: center; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); 
    transition: transform 0.2s; position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.12); }

.card-number { font-size: 32px; font-weight: 800; margin-top: 5px; line-height: 1.2; } /* [ปรับ] ตัวเลขเล็กลง */
.card-title { font-size: 13px; opacity: 0.9; font-weight: 500; }

/* Colors */
.card-1 { background: linear-gradient(135deg, #ff6fd8 0%, #3813c2 100%); } 
.card-2 { background: linear-gradient(135deg, #00c6fb 0%, #00358a 100%); } 
.card-3 { background: linear-gradient(135deg, #edd100ec 0%, #f09819 100%); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.1);} 
.card-4 { background: linear-gradient(135deg, #43e97b 0%, #005b4a 100%); color: #ffffff; } 
.card-5 { background: linear-gradient(135deg, #ff0844 0%, #9d2500 100%); }

/* =========================================
   5. CONTENT BOX
   ========================================= */
.content-box {
    background-color: var(--bg-card);
    border-radius: 16px;
    margin: 0 25px 25px 25px; /* [ปรับ] ลดระยะห่างขอบจอ */
    padding: 25px; /* [ปรับ] ลดพื้นที่ว่างในกล่อง */
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.03);
}

.wrapper {
    max-width: 900px; margin: 30px auto;
    background: var(--bg-card); border-radius: 16px;
    padding: 40px; box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}
.wrapper h1 { font-size: 24px; margin-bottom: 30px; color: #1a1a1a; position: relative; }
.wrapper h1::after { content: ''; position: absolute; bottom: -10px; left: 0; width: 50px; height: 4px; background: var(--primary); border-radius: 2px; }

/* =========================================
   6. FORMS & INPUTS
   ========================================= */
.form-row { margin-bottom: 20px; }
.form-row label { display: block; margin-bottom: 8px; font-weight: 600; color: #555; font-size: 13px; }

.form-control, select, textarea { 
    width: 100%; padding: 10px 15px; /* [ปรับ] ช่องกรอกเล็กกระชับขึ้น */
    border: 1px solid #ddd; border-radius: 10px; 
    font-size: 14px; background: #fcfcfc; transition: 0.2s;
}
.form-control:focus, select:focus, textarea:focus {
    background: #fff; border-color: var(--primary); outline: none;
    box-shadow: 0 0 0 3px rgba(177, 0, 107, 0.1);
}

/* =========================================
   7. BUTTONS
   ========================================= */
.btn-submit { 
    padding: 10px 25px; /* [ปรับ] ปุ่มเล็กลงนิดนึง */
    background: linear-gradient(90deg, #3b34ff, #625dff); color: #fff; 
    border: none; border-radius: 50px; cursor: pointer; font-weight: 600; font-size: 14px;
    box-shadow: 0 4px 10px rgba(59, 52, 255, 0.2); transition: 0.2s;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(59, 52, 255, 0.3); }

.btn-view {
    background: var(--primary-gradient); color: #fff !important; border: none;
    padding: 6px 15px; border-radius: 50px; /* [ปรับ] ปุ่มในตารางกะทัดรัด */
    font-size: 12px; font-weight: 600; cursor: pointer;
    box-shadow: 0 3px 8px rgba(177, 0, 107, 0.2); transition: 0.2s;
    text-decoration: none; display: inline-flex; align-items: center; gap: 5px;
}
.btn-view:hover { transform: translateY(-2px); }

/* =========================================
   8. TABLES (Compact & Clean)
   ========================================= */
table.dataTable { margin-top: 10px !important; width: 100% !important; border-spacing: 0; }
table.dataTable thead th { 
    background-color: #fafafa; color: #666; font-weight: 700; 
    padding: 12px 15px !important; /* [ปรับ] ลดความสูงหัวตาราง */
    border-bottom: 2px solid #eee !important; font-size: 13px;
}
table.dataTable tbody td { 
    padding: 12px 15px !important; /* [ปรับ] ลดความสูงแถว */
    border-bottom: 1px solid #f2f2f2 !important; 
    vertical-align: middle; font-size: 14px;
}
table.dataTable tbody tr:hover { background-color: #fdfdfd; }

.status-pill { 
    padding: 4px 12px; border-radius: 6px; font-size: 11px; font-weight: 700; 
    color: #fff; display: inline-block; min-width: 80px; text-align: center;
}
.status-pending { background: #6f6f6f; color: #ffffff; }
.status-in_progress { background: #ffae00; color: #ffffff; }
.status-done { background: #007710; color: #ffffff; }
.status-cancelled { background: #ff0000; color: #ffffff; }

/* =========================================
   9. CHAT SYSTEM (Optimized Layout)
   ========================================= */ 
.chat-box {
    margin-top: 30px; background: #f8f9fc;
    border-radius: 16px; border: 1px solid #edf2f9;
    height: 500px; /* [ปรับ] ลดความสูงให้พอดีหน้าจอ */
    display: flex; flex-direction: column; overflow: hidden;
}
.chat-history { flex: 1; overflow-y: auto; padding: 20px; }

.chat-message { display: flex; margin-bottom: 20px; align-items: flex-end; }
.chat-message.self-message { justify-content: flex-end; }

.avatar { 
    width: 35px; height: 35px; background: #e2e6ea; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; margin-right: 10px; 
    font-size: 18px; color: #888;
}

.bubble {
    background: #fff; padding: 10px 18px; border-radius: 18px; border-bottom-left-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03); max-width: 75%; font-size: 14px; line-height: 1.5;
}
.self-message .bubble { 
    background: #3b34ff; color: #fff; 
    border-radius: 18px; border-bottom-right-radius: 4px; border-bottom-left-radius: 18px;
    box-shadow: 0 3px 10px rgba(59, 52, 255, 0.2);
}
.self-message .bubble a { color: #fff; text-decoration: underline; }

.bubble-header { font-size: 10px; color: #adb5bd; margin-bottom: 4px; }
.self-message .bubble-header { color: rgba(255,255,255,0.7); text-align: right; }

/* Chat Input Bar - แก้ไขให้สมดุล */
.chat-form-area { 
    background: #fff; padding: 15px 20px; border-top: 1px solid #f0f0f0; 
}
.chat-input-row { 
    width: 100%; display: flex; gap: 10px; align-items: center; 
    background: #f8f9fa; padding: 6px 10px; border-radius: 30px; border: 1px solid #e9ecef;
}
.chat-input-row textarea { 
    flex: 1; border: none; background: transparent; padding: 8px 15px; 
    resize: none; min-height: 40px; max-height: 80px; 
    font-size: 14px; box-shadow: none;
}
.chat-input-row textarea:focus { outline: none; background: transparent; }

/* ปุ่มแนบไฟล์ (ปรับให้สวยและเล็ก) */
.chat-input-row input[type="file"] {
    width: 180px; font-size: 11px; color: #666;
}
.chat-input-row input[type="file"]::file-selector-button {
    border: none; background: #e9ecef; padding: 5px 10px; 
    border-radius: 5px; cursor: pointer; font-size: 11px; margin-right: 5px;
}

/* ปุ่มส่ง (กลมสวย) */
.btn-send { 
    width: 40px; height: 40px; border-radius: 50%; 
    background: #3b34ff; color: #fff; border: none; cursor: pointer; 
    font-size: 16px; display: flex; align-items: center; justify-content: center; 
    box-shadow: 0 3px 8px rgba(59, 52, 255, 0.2); transition: 0.2s; flex-shrink: 0;
}
.btn-send:hover { transform: scale(1.1); background: #2a24cc; }

/* =========================================
   10. RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .layout { grid-template-columns: 1fr; }
    .sidebar { display: none; } 
    .content-box, .top-cards { padding: 0 15px; margin: 0 10px 15px 10px; }
    .wrapper { padding: 25px 20px; margin: 15px; }
}
/* Shared workspace theme */
:root{--primary:#941451;--primary-gradient:linear-gradient(120deg,#941451,#b72b71);--bg-body:#f6f7fb;--shadow-soft:0 6px 24px #26324b06}
body{color:#253147;font-size:15px;background:var(--bg-body)}
a{color:var(--primary)}
.layout{grid-template-columns:256px minmax(0,1fr);align-items:start}
.sidebar{position:sticky;top:0;height:100vh;border-right:1px solid #e8eaf0;padding:10px 16px;box-shadow:none}
.sidebar-logo{display:flex;flex-direction:column;align-items:center;gap:6px;text-decoration:none;text-align:left;border:0;padding:26px 8px;color:#253147;letter-spacing:1px;font-size:22px}
.sidebar-logo img{width:92px;margin-bottom:8px}.sidebar-logo small{font-size:12px;color:#7a8191;letter-spacing:0}
.sidebar-logo b{color:var(--primary)}.nav-label{font-size:10px;font-weight:700;color:#9197a5;letter-spacing:1px;padding:24px 12px 12px}
.sidebar-menu{padding:0;flex:1}.menu-item{gap:12px;min-height:46px;padding:12px;font-size:14px;color:#657087;border-radius:10px}.menu-item span{font-size:20px;width:22px;text-align:center}
.menu-item.active{background:#f8eaf1;color:#941451;box-shadow:none;border-left:3px solid #941451}.menu-item:hover{transform:none;background:#f8edf3}
.menu-item.logout{margin:8px 0;background:transparent;color:#70798a;justify-content:flex-start}
.sidebar-account{display:flex;align-items:center;gap:10px;padding:18px 0 8px;border-top:1px solid #edf0f5}.sidebar-account strong{display:block;font-size:13px;overflow-wrap:anywhere}.sidebar-account small{display:block;color:#8891a2;font-size:11px}.account-avatar{background:#f7e7ef;color:#941451;display:grid;place-items:center;border-radius:50%;width:38px;height:38px;flex-shrink:0}.nav-footer{font-size:10px;color:#8c94a4;line-height:1.8;padding:0 12px}
.main{min-width:0;animation:none;padding-bottom:32px}.content-header{position:static;background:transparent;backdrop-filter:none;border:0;font-size:23px;padding:36px 32px 24px;margin:0;gap:12px;flex-wrap:wrap}
.content-box{margin:0 32px 24px;padding:28px;border:1px solid #e6e9f0;border-radius:16px;min-width:0;overflow:auto}.table-header{font-size:18px;font-weight:700;margin-bottom:24px}.header-flex{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px;flex-wrap:wrap}
.top-cards{padding:0 32px 26px;gap:16px;grid-template-columns:repeat(auto-fit,minmax(145px,1fr))}.card{background:#fff;color:#253147;border:1px solid #e6e9f0;box-shadow:var(--shadow-soft);text-align:left;padding:22px;border-top:3px solid #941451;text-shadow:none}.card:hover{transform:none;box-shadow:var(--shadow-soft)}.card-2{border-top-color:#4775ca}.card-3{border-top-color:#d99728}.card-4{border-top-color:#209879}.card-5{border-top-color:#d45464}.card-title{font-size:13px;color:#68758a;opacity:1}.card-number{font-size:34px;margin-top:12px}
.btn-submit,.btn-create-new,.btn-view,.btn-view-style,.btn-send{background:var(--primary);color:white!important;box-shadow:none;border:0;border-radius:9px;font-size:14px;min-height:42px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 18px;font-weight:600}.btn-send{padding:0;width:44px;height:44px}.btn-submit:hover,.btn-create-new:hover,.btn-view:hover{background:#771041;transform:none}.action-group{display:flex;gap:8px;align-items:center}.btn-action{display:inline-flex;padding:9px 12px;border-radius:8px;text-decoration:none;font-size:12px;white-space:nowrap}.btn-delete-style{background:#fff0f0;color:#b23140}.btn-back{display:inline-flex;text-decoration:none;border:1px solid #e0e4ec;border-radius:8px;padding:9px 16px;color:#657087;background:white;margin-bottom:22px}
.form-row label,.field-label{font-size:14px;font-weight:600;color:#465169;margin-bottom:8px;display:block}.form-control,select,textarea{background:#fff;border:1px solid #dce1eb;border-radius:9px;min-height:46px;font-size:15px}input[type=file]{max-width:100%}input::file-selector-button{border:0;background:#f4e9f0;color:#941451;border-radius:6px;padding:8px;margin-right:12px}.form-row{margin-bottom:24px}
table.dataTable thead th{background:#f8f9fc;color:#68758a;font-weight:600;font-size:12px;border-bottom:1px solid #e4e8f0!important}table.dataTable tbody td{border-bottom:1px solid #edf0f5!important;padding:18px 14px!important;font-size:14px}table.dataTable.no-footer{border-bottom:0}.dataTables_wrapper{font-size:13px}.dataTables_filter input{min-height:38px;border:1px solid #dce1eb!important;border-radius:7px!important}.dataTables_length select{width:auto;min-height:36px}.dataTables_info,.dataTables_paginate{margin-top:15px}
.status-pill{border-radius:6px;padding:6px 10px;font-size:12px;white-space:nowrap}.status-pending{background:#edf0f5;color:#59677e}.status-in_progress{background:#fff3d9;color:#895a07}.status-done{background:#e1f4ec;color:#167350}.status-cancelled{background:#fce7eb;color:#a93047}
.wrapper{width:calc(100% - 64px);max-width:1080px;min-width:0;margin:32px auto;padding:32px;border:1px solid #e6e9f0;box-shadow:var(--shadow-soft)}.wrapper h1{font-size:24px;margin-top:0}.wrapper h1::after{display:none}.info-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin:28px 0}.field-pill{padding:14px 16px;border:1px solid #e8ebf2;background:#f8f9fc;border-radius:9px;overflow-wrap:anywhere}.link-display a,.attachment-link{color:#941451;overflow-wrap:anywhere}
.chat-box{background:#f6f7fb;border:1px solid #e6e9f0;height:540px}.chat-history{padding:24px}.bubble{max-width:80%;overflow-wrap:anywhere;box-shadow:none;border:1px solid #e8ebf2;font-size:15px}.self-message .bubble{background:#941451;box-shadow:none;border-color:#941451}.bubble-header{font-size:12px;color:#68758a}.self-message .bubble-header{color:#f5d8e6}.self-message .bubble a{color:#fff!important}.chat-form-area{padding:16px}.chat-input-row{border-radius:12px;flex-wrap:wrap;align-items:center;padding:8px}.chat-input-row textarea{min-width:180px}.chat-input-row input[type=file]{width:180px!important}.chat-history:empty::before{content:'ยังไม่มีข้อความ เริ่มสนทนาเกี่ยวกับคำร้องนี้ได้ที่ด้านล่าง';display:block;text-align:center;padding:80px 20px;color:#7c8799;font-size:14px}
.notice{position:relative;grid-column:1/-1;grid-row:1;background:#fff6df;color:#79521d;padding:16px 24px;border-bottom:1px solid #eddfb9;display:flex;justify-content:space-between;gap:16px}.notice button{border:0;background:transparent;cursor:pointer;font-size:22px}.mobile-header{display:none}.skip-link{position:absolute;top:-80px;left:12px;z-index:500;background:white;padding:12px}.skip-link:focus{top:8px}:focus-visible{outline:3px solid #b64b87;outline-offset:3px}
@media(max-width:1000px){.layout{grid-template-columns:220px minmax(0,1fr)}.content-box{margin:0 20px 20px;padding:20px}.content-header{padding:28px 20px;font-size:20px}.top-cards{padding:0 20px 20px}.wrapper{width:calc(100% - 40px);padding:24px}}
@media(max-width:768px){.mobile-header{display:flex;position:sticky;top:0;z-index:110;background:#fff;border-bottom:1px solid #e6e9f0;padding:14px 20px;align-items:center;justify-content:space-between}.mobile-header b{color:#941451}.mobile-header button{background:#f8eaf1;color:#941451;border:0;border-radius:8px;padding:9px 14px;font:inherit}.layout{display:block}.sidebar{display:none;position:fixed;top:68px;bottom:0;height:calc(100dvh - 68px);width:270px;z-index:100;box-shadow:20px 0 60px #26324b26}.sidebar.is-open{display:flex}.content-header{padding:24px 18px;font-size:20px}.content-box{margin:0 16px 20px;padding:20px}.top-cards{margin:0;padding:0 16px 20px;grid-template-columns:1fr 1fr;gap:10px}.wrapper{width:calc(100% - 32px);margin:16px;padding:20px}.info-grid{grid-template-columns:1fr;gap:16px}.chat-box{height:560px}.chat-history{padding:14px}.bubble{max-width:90%}.chat-input-row textarea{flex-basis:100%;width:100%}.chat-input-row input[type=file]{flex:1}.form-footer{flex-wrap:wrap}.header-flex{align-items:flex-start}.notice{padding:14px 18px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.login-page{background:#fff}.login-shell{min-height:100vh;display:grid;grid-template-columns:1.1fr 1fr}.login-story{background:linear-gradient(135deg,#fbf1f6,#f4edf4);padding:50px clamp(32px,7vw,110px);display:flex;flex-direction:column;align-items:flex-start}.login-brand{display:flex;align-items:center;gap:18px;text-decoration:none;font-size:23px;letter-spacing:1px;color:#253147;margin-bottom:64px}.login-brand img{width:75px}.login-brand b{color:#941451}.eyebrow{font-size:11px;letter-spacing:2px;color:#941451;font-weight:700}.login-story h1{font-size:clamp(36px,4vw,58px);line-height:1.35;letter-spacing:-1px;margin:18px 0 20px}.login-story h1 span{color:#ac2469}.login-story>p{color:#73788a;line-height:1.9;font-size:15px}.login-steps{list-style:none;padding:0;margin:28px 0 40px;display:grid;gap:24px}.login-steps li{display:flex;align-items:center;gap:18px}.login-steps li>span{border:1px solid #dfc4d3;color:#941451;font-size:12px;border-radius:50%;width:40px;height:40px;display:grid;place-items:center}.login-steps strong{font-size:15px}.login-steps small{display:block;color:#7c7c90;margin-top:4px;font-size:13px}.login-story footer{margin-top:auto;font-size:11px;color:#8e8292}.login-panel{display:grid;place-items:center;padding:48px}.login-form{width:100%;max-width:380px}.login-form h2{font-size:30px;margin:14px 0 6px}.login-form>p{color:#7c8495;font-size:14px;margin-bottom:34px}.password-field{position:relative}.password-field input{padding-right:65px}.password-field button{position:absolute;right:10px;top:9px;border:0;background:transparent;color:#941451;padding:6px;cursor:pointer}.login-submit{width:100%;justify-content:space-between;padding:15px 20px}.login-form .login-note{text-align:center;font-size:12px;line-height:1.9;margin-top:26px}.error-box{padding:14px;background:#ffedef;color:#9d2940;border-radius:8px;margin-bottom:22px}
@media(max-width:768px){.login-shell{grid-template-columns:1fr}.login-story{padding:28px}.login-brand{margin-bottom:28px}.login-story h1{font-size:34px}.login-steps,.login-story footer{display:none}.login-panel{padding:36px 26px}.login-story>p{margin-bottom:0}}
.status-select{min-width:0;margin-right:8px}.btn-save-status{background:#941451;color:#fff;border:0;border-radius:8px;padding:12px 16px;white-space:nowrap;cursor:pointer;font:inherit}.status-select:focus{outline:2px solid #b64b87}.content-box table{min-width:620px}.chat-input-row textarea{line-height:1.6}.form-row>div{max-width:100%}

/* Compact navigation, anchored to the top of the workspace. */
.sidebar {
    padding: 0 14px;
    height: 100dvh;
    grid-column: 1;
    grid-row: 1 / span 2;
    background: #fff;
    overflow-y: auto;
}
.sidebar-logo {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    min-height: 84px;
    padding: 16px 8px;
    border-bottom: 1px solid #edf0f5;
    border-radius: 0;
    letter-spacing: 0;
}
.sidebar-logo img { width: 50px; height: 50px; object-fit: contain; margin: 0; }
.sidebar-brand { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sidebar-brand > span { font-size: 21px; line-height: 1.2; letter-spacing: .5px; }
.sidebar-brand small { font-size: 12px; line-height: 1.5; }
.sidebar-logo:hover img { transform: none; }
.nav-label { display: flex; align-items: center; gap: 8px; padding: 20px 12px 10px; font-size: 12px; letter-spacing: 0; color: #8a8190; }
.nav-label::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #af3271; }
.sidebar-menu { flex: 1 0 auto; overflow: visible; padding: 0; }
.menu-item {
    position: relative;
    gap: 12px;
    min-height: 46px;
    margin: 4px 0;
    padding: 11px 13px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 400;
    color: #657087;
    transition: background-color .18s, color .18s, border-color .18s;
}
.menu-item .nav-icon { display: inline-flex; width: 20px; height: 20px; flex: 0 0 20px; align-items: center; justify-content: center; }
.nav-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.menu-item .nav-text { width: auto; font-size: inherit; line-height: 1.5; }
.menu-item:hover { color: #941451; background: #fcf5f9; border-color: #f0e2e9; }
.menu-item.active { background: #f8eaf2; color: #941451; border: 1px solid #eed7e3; font-weight: 700; box-shadow: none; }
.menu-item.active::after { content: ''; position: absolute; right: 10px; width: 5px; height: 5px; border-radius: 50%; background: #a72365; }
.menu-item.active .nav-text { padding-right: 8px; }
.sidebar-account { gap: 10px; margin-top: 24px; padding: 16px 6px 8px; }
.sidebar-account > div { min-width: 0; }
.sidebar-account strong { font-size: 14px; line-height: 1.5; }
.sidebar-account small { font-size: 12px; }
.account-avatar { width: 36px; height: 36px; font-size: 16px; border: 1px solid #ecd6e1; }
.sidebar .logout { margin: 4px 0 0; font-size: 14px; }
.nav-footer { margin: 10px 0 0; padding: 12px 8px 16px; font-size: 11px; line-height: 1.7; border-top: 1px solid #edf0f5; }
.layout > .main, .layout > .wrapper { grid-column: 2; }
.notice { grid-column: 2; }
input::file-selector-button { font-family: inherit; }
@media (max-width: 768px) {
    .mobile-header { height: 64px; padding: 10px 18px; }
    .sidebar { top: 64px; bottom: 0; height: calc(100dvh - 64px); width: 280px; padding: 0 14px; }
    .sidebar-logo { min-height: 78px; padding: 12px 8px; }
    .sidebar-logo img { width: 46px; height: 46px; }
    .nav-label { padding-top: 16px; }
    .sidebar-account { margin-top: 20px; }
}
