:root{--p:#14532d;--p2:#166534;--bg:#f4f7f5;--card:#fff;--line:#e5e7eb;--muted:#6b7280;--danger:#b91c1c}*{box-sizing:border-box}body{margin:0;font-family:Arial,sans-serif;background:var(--bg);color:#17221b}.wrap{max-width:1180px;margin:auto;padding:0 18px}header{background:linear-gradient(135deg,var(--p),#0f766e);color:white;padding:18px 0}.top{display:flex;justify-content:space-between;align-items:center}.brand h1{font-size:20px;margin:0 0 4px}.brand p{margin:0;font-size:12px;opacity:.8}.btn{display:inline-block;background:var(--p);color:#fff;border:0;border-radius:9px;padding:10px 14px;font-weight:700;text-decoration:none;cursor:pointer}.btn.light{background:#fff;color:var(--p)}.btn.gray{background:#eef2f0;color:#374151}.btn.danger{background:#fee2e2;color:var(--danger)}nav{background:#fff;border-bottom:1px solid var(--line)}nav a{display:inline-block;padding:13px 14px;color:#4b5563;text-decoration:none}nav a:hover{color:var(--p)}main{padding:22px 0}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.card{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:17px;margin-bottom:18px}.label{font-size:12px;color:var(--muted)}.value{font-size:27px;font-weight:800;margin-top:6px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field{margin-bottom:13px}.field label{display:block;font-size:12px;font-weight:700;margin-bottom:6px}.field input,.field select,.field textarea{width:100%;padding:10px;border:1px solid #d7ddd9;border-radius:8px;font:inherit;background:white}.field textarea{min-height:90px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:13px}.tablewrap{overflow:auto}.table{width:100%;border-collapse:collapse;font-size:13px}.table th,.table td{padding:10px;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap}.table th{font-size:11px;color:var(--muted)}.badge{padding:4px 8px;border-radius:99px;font-size:11px;font-weight:bold}.green{background:#dcfce7;color:#166534}.yellow{background:#fef3c7;color:#92400e}.red{background:#fee2e2;color:#991b1b}.error{background:#fee2e2;color:#991b1b;padding:10px;border-radius:8px;margin-bottom:12px}.login{display:grid;place-items:center;min-height:100vh}.loginbox{background:#fff;width:min(400px,92vw);padding:28px;border-radius:16px;box-shadow:0 10px 30px #0001}.loginbox h1{margin-top:0}.loginbox p{color:var(--muted);font-size:13px}.loginbox label{display:block;font-size:12px;font-weight:bold;margin:12px 0 5px}.loginbox input{width:100%;padding:11px;border:1px solid var(--line);border-radius:8px}.loginbox .btn{width:100%;margin:18px 0}.toolbar{display:flex;justify-content:space-between;gap:10px;align-items:center}.toolbar input{padding:10px;border:1px solid var(--line);border-radius:8px}.actions{display:flex;gap:6px;flex-wrap:wrap}.notice{background:#ecfdf5;border:1px solid #bbf7d0;color:#166534;padding:11px;border-radius:9px;font-size:13px;margin-bottom:15px}@media(max-width:800px){.cards{grid-template-columns:1fr 1fr}.grid,.grid2{grid-template-columns:1fr}.top{gap:10px;align-items:flex-start}}
.avatar{width:34px;height:34px;border-radius:50%;object-fit:cover;border:2px solid #fff;vertical-align:middle;background:#e5e7eb}.profile-head{display:flex;align-items:center;gap:12px}.profile-avatar{width:56px;height:56px;border-radius:50%;object-fit:cover;background:#e5e7eb;border:3px solid #ecfdf5}.photo-preview{display:flex;align-items:center;gap:15px;padding:12px;background:#f8faf9;border-radius:12px;margin-bottom:15px}

.profile-cover{position:relative;min-height:170px;border-radius:14px;overflow:hidden;background-image:linear-gradient(#0005,#0005),url('profile-background.jpg');background-size:cover;background-position:center;display:flex;align-items:flex-end;padding:18px;color:#fff;margin-bottom:16px}.profile-cover.custom{background-image:linear-gradient(#0004,#0004),var(--profile-bg)}.profile-cover .cover-info{display:flex;align-items:center;gap:12px}.profile-cover .profile-avatar{border-color:#fff;width:58px;height:58px}.profile-settings-card{border:1px solid var(--line);border-radius:12px;padding:14px;background:#fff}

/* v1.5.0 SIDEBAR */
:root{--sidebar:#083f38;--sidebar2:#0b574d;--sidebar-text:#e8f5f2;--active:#159b72}
body{margin:0;background:#f4f7f6}
.app-shell{display:flex;min-height:100vh}
.sidebar{position:fixed;left:0;top:0;bottom:0;width:245px;background:linear-gradient(180deg,var(--sidebar),#062f2b);color:var(--sidebar-text);z-index:1000;overflow-y:auto;box-shadow:3px 0 15px #0002}
.sidebar-brand{padding:22px 18px 18px;text-align:center;border-bottom:1px solid #ffffff1f}
.sidebar-brand img{width:62px;height:62px;object-fit:contain;margin:auto;display:block}
.sidebar-brand h2{font-size:18px;margin:8px 0 2px;color:#fff}.sidebar-brand p{font-size:12px;margin:0;color:#c6ddd8;line-height:1.35}
.sidebar-nav{padding:14px 10px}.sidebar-nav a{display:flex;align-items:center;gap:11px;color:#dcece9;text-decoration:none;padding:11px 13px;border-radius:9px;margin:3px 0;font-size:14px;transition:.15s}
.sidebar-nav a:hover{background:#ffffff14}.sidebar-nav a.active{background:linear-gradient(90deg,var(--active),#10b981);color:#fff;font-weight:600;box-shadow:0 4px 10px #0002}
.sidebar-footer{position:sticky;bottom:0;margin-top:12px;padding:15px 12px;text-align:center;border-top:1px solid #ffffff1f;font-size:11px;color:#b9d2cd}
.main-area{margin-left:245px;width:calc(100% - 245px);min-width:0}
.topbar{height:64px;background:#fff;border-bottom:1px solid #e5e7eb;display:flex;align-items:center;justify-content:space-between;padding:0 25px;box-sizing:border-box;position:sticky;top:0;z-index:900}
.topbar-title{font-size:20px;font-weight:700;color:#173b36}.topbar-user{display:flex;align-items:center;gap:9px;font-size:13px;color:#334155}
.mobile-toggle{display:none;border:0;background:none;font-size:25px;cursor:pointer}
.page-content{padding:24px}
@media(max-width:900px){
 .sidebar{transform:translateX(-100%);transition:.2s}.sidebar.open{transform:translateX(0)}
 .main-area{margin-left:0;width:100%}.mobile-toggle{display:block}.topbar{padding:0 15px}.page-content{padding:15px}
 .sidebar-overlay{display:none;position:fixed;inset:0;background:#0006;z-index:999}.sidebar-overlay.show{display:block}
}

/* v1.6.0 profile redesign */
.profile-page{max-width:1280px;margin:0 auto}
.profile-card{background:#fff;border:1px solid #e5ebe9;border-radius:14px;box-shadow:0 3px 14px #083f3810;overflow:hidden}
.profile-card-head{padding:25px 28px 12px}.profile-card-head h1{margin:0;font-size:26px;color:#173b36}.profile-card-head p{margin:6px 0 0;color:#64748b}
.profile-layout{display:grid;grid-template-columns:225px 1fr;min-height:420px}
.profile-left{padding:25px;border-right:1px solid #e5ebe9;text-align:center}
.profile-big-avatar{width:128px;height:128px;border-radius:50%;object-fit:cover;border:1px solid #dce6e3;background:#f4f7f6}
.profile-camera{display:inline-flex;margin-left:-35px;width:34px;height:34px;border-radius:50%;background:#183d38;color:#fff;align-items:center;justify-content:center;border:3px solid #fff;vertical-align:bottom}
.profile-name{font-size:20px;font-weight:700;color:#173b36;margin-top:12px}.profile-role{display:inline-block;background:#dbeafe;color:#1260b8;border-radius:6px;padding:5px 12px;font-size:13px;font-weight:600;margin-top:7px}.profile-branch{font-size:13px;color:#64748b;margin-top:8px}
.profile-main{padding:0 28px 28px}
.profile-tabs{display:flex;gap:8px;border-bottom:1px solid #e5ebe9;overflow:auto}.profile-tabs button{border:0;background:none;padding:17px 15px;color:#526276;font-size:14px;white-space:nowrap;cursor:pointer;border-bottom:3px solid transparent}.profile-tabs button.active{color:#07835e;border-bottom-color:#07835e;font-weight:700}
.profile-panel{padding-top:20px}.profile-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.profile-form-grid .full{grid-column:1/-1}.profile-info{background:#eff8ff;border-radius:9px;padding:13px 15px;color:#315b85;font-size:13px}.profile-security{background:#ecfaf5;border:1px solid #c9ebdd;border-radius:10px;padding:15px;margin-top:20px;color:#26725c}
.profile-photo-box{display:flex;align-items:center;gap:15px;padding:18px;border:1px solid #e5ebe9;border-radius:10px}.profile-photo-box img{width:72px;height:72px;border-radius:50%;object-fit:cover}
.profile-actions{display:flex;justify-content:flex-end;margin-top:18px}
.sidebar-brand img{object-fit:contain;background:transparent}
@media(max-width:800px){.profile-layout{grid-template-columns:1fr}.profile-left{border-right:0;border-bottom:1px solid #e5ebe9}.profile-form-grid{grid-template-columns:1fr}.profile-form-grid .full{grid-column:auto}}

/* v1.6.1: sidebar is the only application navigation */
nav:not(.sidebar-nav){display:none!important}

/* v1.8.0 - Mobile Responsive */
*{box-sizing:border-box}
html,body{max-width:100%;overflow-x:hidden}
img{max-width:100%;height:auto}
button,input,select,textarea{max-width:100%;font:inherit}
.tablewrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.tablewrap table{min-width:650px}
.actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.field input,.field select,.field textarea{width:100%;min-height:42px}
.btn{min-height:40px}
@media(max-width:900px){
 .sidebar{width:280px}
 .main-area{width:100%;margin-left:0}
 .topbar{height:58px;padding:0 12px}
 .topbar-title{font-size:18px}
 .topbar-user span{display:none}
 .topbar-user .avatar{width:32px;height:32px}
 .page-content{padding:12px}
 .grid{grid-template-columns:1fr!important;gap:12px}
 .card{padding:15px!important}
 .brand h1{font-size:20px}.brand p{font-size:12px}
 .table{font-size:13px}.table th,.table td{padding:8px 7px}
 .btn{padding:9px 12px;font-size:13px}
 .profile-layout{grid-template-columns:1fr!important}
 .profile-left{padding:18px!important;border-right:0!important;border-bottom:1px solid #e5ebe9}
 .profile-main{padding:0 15px 18px!important}
 .profile-card-head{padding:18px 15px 8px!important}
 .profile-card-head h1{font-size:22px}
 .profile-tabs{gap:0;overflow-x:auto;scrollbar-width:none}
 .profile-tabs::-webkit-scrollbar{display:none}
 .profile-tabs button{padding:13px 10px;font-size:12px;flex:0 0 auto}
 .profile-form-grid{grid-template-columns:1fr!important}
 .profile-form-grid .full{grid-column:auto!important}
 .profile-actions{justify-content:stretch}.profile-actions .btn{width:100%}
 .profile-photo-box{align-items:flex-start;flex-direction:column}
}
@media(max-width:600px){
 .mobile-toggle{font-size:23px;padding:3px}
 .sidebar-brand{padding:17px 14px}.sidebar-brand img{width:52px;height:52px}
 .sidebar-brand h2{font-size:17px}.sidebar-nav a{padding:10px 12px;font-size:13px}
 .page-content{padding:9px}
 .notice,.error{font-size:13px;padding:11px!important}
 .field label{font-size:13px}h1{font-size:22px}h2{font-size:18px}
 .profile-big-avatar{width:96px;height:96px}
}

/* v1.9.0 - Profile menu vertical */
.profile-tabs{display:flex;flex-direction:column;gap:0;border-bottom:0;border-right:1px solid #e5ebe9;overflow:visible;min-width:205px}
.profile-tabs button{display:flex;align-items:center;text-align:left;width:100%;padding:14px 16px;border:0;border-left:4px solid transparent;border-bottom:1px solid #edf1f0;background:#fff;color:#526276;font-size:14px;white-space:nowrap;cursor:pointer}
.profile-tabs button:hover{background:#f5faf8}
.profile-tabs button.active{color:#07835e;background:#ecf8f3;border-left-color:#07835e;border-bottom-color:#edf1f0;font-weight:700}
.profile-content-wrap{display:grid;grid-template-columns:205px 1fr;gap:0}
.profile-content-wrap>.profile-panels{min-width:0;padding-left:25px}
@media(max-width:800px){
 .profile-content-wrap{grid-template-columns:1fr}
 .profile-tabs{min-width:0;border-right:0;border-bottom:1px solid #e5ebe9}
 .profile-tabs button{border-left:0;border-bottom:1px solid #edf1f0;padding:12px 14px}
 .profile-tabs button.active{border-left:0;border-bottom:3px solid #07835e}
 .profile-content-wrap>.profile-panels{padding-left:0}
}

/* v1.9.1 hard fix: profile menu vertical */
.profile-content-wrap{display:grid!important;grid-template-columns:205px minmax(0,1fr)!important;gap:0!important}
.profile-tabs{display:flex!important;flex-direction:column!important;min-width:205px!important;border-right:1px solid #e5ebe9!important;border-bottom:0!important;overflow:visible!important}
.profile-tabs button{display:flex!important;width:100%!important;text-align:left!important}
@media(max-width:800px){
 .profile-content-wrap{grid-template-columns:1fr!important}
 .profile-tabs{min-width:0!important;width:100%!important;border-right:0!important;border-bottom:1px solid #e5ebe9!important}
 .profile-tabs button{border-left:0!important}
 .profile-tabs button.active{border-left:0!important;border-bottom:3px solid #07835e!important}
 .profile-content-wrap>.profile-panels{padding-left:0!important}
}

/* v2.0.0 - Final green sidebar visual */
.sidebar{background:linear-gradient(180deg,#06483f 0%,#043b35 55%,#032f2b 100%)!important;color:#fff!important}
.sidebar-brand{border-bottom:1px solid rgba(255,255,255,.13)!important}
.sidebar-brand h2{color:#fff!important}.sidebar-brand p{color:#d7ebe7!important}
.sidebar-nav a{color:#e5f2ef!important;background:transparent!important}
.sidebar-nav a:hover{background:rgba(255,255,255,.09)!important;color:#fff!important}
.sidebar-nav a.active{background:linear-gradient(90deg,#0caf78,#09a56f)!important;color:#fff!important}
.sidebar-footer{color:#c7dfda!important;border-top:1px solid rgba(255,255,255,.14)!important}
