:root{--navy:#0b1220;--navy2:#111c34;--blue:#2563eb;--cyan:#06b6d4;--bg:#f4f7fb;--card:#fff;--text:#172033;--muted:#64748b;--line:#e7edf5;--shadow:0 12px 35px rgba(15,23,42,.07)}*{box-sizing:border-box}html,body{margin:0;padding:0}body{font-family:Inter,Segoe UI,Arial,sans-serif;background:var(--bg);color:var(--text)}a{text-decoration:none}.app-shell{min-height:100vh}.sidebar{width:272px;background:linear-gradient(180deg,#0b1220 0%,#101a31 55%,#0c1730 100%);color:#dbeafe;position:fixed;inset:0 auto 0 0;z-index:100;display:flex;flex-direction:column;padding:18px 13px;box-shadow:12px 0 35px rgba(2,6,23,.12)}.brand{display:flex;align-items:center;gap:11px;padding:7px 10px 18px;border-bottom:1px solid rgba(255,255,255,.08)}.brand-mark{width:44px;height:44px;border-radius:13px;background:linear-gradient(135deg,#38bdf8,#2563eb);display:grid;place-items:center;color:#fff;font-size:17px;font-weight:900;box-shadow:0 8px 20px rgba(37,99,235,.3)}.brand b{display:block;color:#fff;font-size:15px;letter-spacing:.4px}.brand small{display:block;color:#8ea2c5;font-size:10px;margin-top:2px}.user-box{margin:16px 4px 9px;padding:12px;border:1px solid rgba(255,255,255,.07);border-radius:15px;background:rgba(255,255,255,.045);display:flex;align-items:center;gap:10px}.avatar{width:39px;height:39px;border-radius:12px;background:linear-gradient(135deg,#06b6d4,#2563eb);display:grid;place-items:center;color:#fff;font-weight:900}.user-box b{display:block;color:#fff;font-size:13px}.user-box small{display:block;color:#8ea2c5;font-size:10px;margin-top:2px}nav{overflow-y:auto;padding-right:2px}nav::-webkit-scrollbar{width:4px}nav::-webkit-scrollbar-thumb{background:#ffffff18;border-radius:10px}.nav-label{display:flex;align-items:center;gap:8px;color:#6f82a5;font-size:10px;letter-spacing:1.5px;font-weight:900;margin:17px 11px 6px}.nav-label:after{content:"";height:1px;flex:1;background:rgba(255,255,255,.06)}nav a{display:flex;align-items:center;gap:11px;color:#b9c7dc;padding:10px 12px;margin:3px 0;border-radius:11px;font-size:13px;font-weight:600;transition:.18s}nav a .nav-icon{width:19px;text-align:center;color:#7dd3fc;font-size:14px}nav a:hover,nav a.active{background:linear-gradient(90deg,rgba(37,99,235,.26),rgba(6,182,212,.08));color:#fff;transform:translateX(2px)}nav a.active{box-shadow:inset 3px 0 0 #38bdf8}.sidebar-bottom{margin-top:auto;border-top:1px solid rgba(255,255,255,.08);padding-top:10px}.sidebar-bottom a{display:flex;gap:10px;align-items:center;color:#fecaca;padding:10px 12px;border-radius:10px}.sidebar-bottom a:hover{background:#ef444414}.main{margin-left:272px;min-height:100vh;width:calc(100% - 272px)}.topbar{height:82px;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 30px;position:sticky;top:0;z-index:50}.top-left{display:flex;align-items:center;gap:14px}.page-kicker{display:block;font-size:10px;color:var(--blue);letter-spacing:2px;font-weight:900;margin-bottom:2px}.topbar h1{font-size:22px;margin:0;font-weight:850;letter-spacing:-.4px}.top-date{display:flex;align-items:center;gap:8px;color:#64748b;font-size:12px;background:#f8fafc;border:1px solid var(--line);padding:8px 12px;border-radius:10px}.content{padding:28px;max-width:1600px}.footer{text-align:center;padding:18px 20px 25px;color:#64748b;font-size:12px}.footer b{color:#0f172a;letter-spacing:.6px}.cardx{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:20px;box-shadow:var(--shadow)}.card-title{font-weight:800;margin:0;font-size:16px}.card-sub{color:var(--muted);font-size:12px;margin-top:5px}.stat{position:relative;overflow:hidden;padding:20px;border-radius:18px;color:#fff;min-height:135px;box-shadow:0 12px 25px rgba(15,23,42,.12)}.stat:after{content:"";position:absolute;width:100px;height:100px;border-radius:50%;right:-35px;top:-35px;background:rgba(255,255,255,.09)}.stat-icon{width:40px;height:40px;border-radius:12px;background:rgba(255,255,255,.14);display:grid;place-items:center;font-size:18px;margin-bottom:13px}.stat small{font-size:12px;opacity:.85}.stat h3{font-size:30px;line-height:1;margin:5px 0 8px;font-weight:900}.stat span{font-size:10px;opacity:.72}.dashboard-card{display:block;color:var(--text);transition:.18s;height:100%}.dashboard-card:hover{transform:translateY(-3px);box-shadow:0 15px 35px rgba(15,23,42,.1);border-color:#cbd5e1}.module-icon{width:42px;height:42px;border-radius:12px;background:#eff6ff;color:#2563eb;display:grid;place-items:center;font-size:18px;margin-bottom:13px}.module-arrow{color:#2563eb;font-size:12px;font-weight:700}.system-row{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid #eef2f7;font-size:13px}.system-row:last-child{border-bottom:0}.system-row span{color:#64748b}.table-wrap{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:auto;box-shadow:var(--shadow)}.table{margin:0}.table thead th{background:#f8fafc;font-size:11px;text-transform:uppercase;letter-spacing:.5px;color:#64748b;white-space:nowrap;border-bottom:1px solid var(--line)}.table td{font-size:13px;vertical-align:middle}.form-control,.form-select{border-radius:11px;border-color:#dce4ee;min-height:42px;box-shadow:none}.form-control:focus,.form-select:focus{border-color:#60a5fa;box-shadow:0 0 0 3px rgba(37,99,235,.1)}.btn{border-radius:10px;font-weight:700}.btn-primary{background:#2563eb;border-color:#2563eb}.mobile-menu{display:none}.login-page{min-height:100vh;background:radial-gradient(circle at 12% 12%,rgba(14,165,233,.28),transparent 30%),radial-gradient(circle at 90% 85%,rgba(37,99,235,.22),transparent 28%),linear-gradient(135deg,#07101f,#111d38 55%,#0b1730);display:grid;place-items:center;padding:25px}.login-wrap{width:min(1050px,100%);display:grid;grid-template-columns:1.1fr .9fr;border:1px solid rgba(255,255,255,.1);border-radius:28px;overflow:hidden;box-shadow:0 35px 100px rgba(0,0,0,.4);background:rgba(255,255,255,.04);backdrop-filter:blur(18px)}.login-info{padding:55px;color:#fff;background:linear-gradient(145deg,rgba(37,99,235,.28),rgba(6,182,212,.08));display:flex;flex-direction:column;justify-content:center}.login-info h1{font-size:42px;font-weight:900;letter-spacing:-1.5px}.login-info p{color:#b9c7dc;max-width:430px}.login-points{display:grid;gap:10px;margin-top:25px;color:#dbeafe;font-size:13px}.login-point{display:flex;gap:10px;align-items:center}.login-point i{color:#67e8f9}.login-card{background:rgba(255,255,255,.98);padding:45px}.brand-mark-lg{width:52px;height:52px;border-radius:15px;background:linear-gradient(135deg,#06b6d4,#2563eb);display:grid;place-items:center;color:#fff;font-size:20px;font-weight:900}.login-card h2{font-weight:900;margin:18px 0 5px}.login-card .muted{color:#64748b;font-size:13px;margin-bottom:25px}.login-card label{font-size:12px;font-weight:800;color:#334155;margin-bottom:7px}.login-input{position:relative}.login-input i{position:absolute;left:13px;top:13px;color:#64748b}.login-input input{padding-left:40px}.login-footer{text-align:center;margin-top:25px;color:#64748b;font-size:11px}.alert{border-radius:11px}.section-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px}.section-head h2{font-size:18px;font-weight:850;margin:0}.section-head p{margin:4px 0 0;color:#64748b;font-size:12px}@media(max-width:992px){.sidebar{transform:translateX(-105%);transition:.22s}.sidebar.show{transform:none}.main{margin-left:0;width:100%}.mobile-menu{display:inline-grid;place-items:center;width:40px;height:40px;border:1px solid var(--line);border-radius:10px;background:#fff}.content{padding:18px}.topbar{padding:0 18px}.top-date{display:none}.login-wrap{grid-template-columns:1fr}.login-info{display:none}.login-card{padding:32px 25px}}@media(max-width:576px){.content{padding:14px}.stat{min-height:120px}.topbar{height:72px}.topbar h1{font-size:18px}}

/* Modern PHP form layer */
.form-page-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.form-page-head .title-icon{width:46px;height:46px;border-radius:14px;background:linear-gradient(135deg,#2563eb,#06b6d4);color:#fff;display:grid;place-items:center;font-size:20px;box-shadow:0 10px 22px rgba(37,99,235,.18)}
.form-page-head h2{margin:0;font-size:20px;font-weight:850;letter-spacing:-.3px}.form-page-head p{margin:4px 0 0;color:#64748b;font-size:12px}.form-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.form-section{background:#fff;border:1px solid #e6edf5;border-radius:18px;padding:22px;box-shadow:0 12px 35px rgba(15,23,42,.06)}.form-section + .form-section{margin-top:18px}.form-section-title{font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:1px;color:#64748b;margin-bottom:15px;padding-bottom:11px;border-bottom:1px solid #edf2f7}.form-label{font-size:11px!important;font-weight:800!important;color:#334155!important;margin-bottom:7px!important}.form-control,.form-select{width:100%;min-height:44px!important;border:1px solid #d9e2ec!important;border-radius:12px!important;background:#fbfdff!important;padding:9px 12px!important;font-size:13px!important;color:#172033!important;transition:.18s!important}.form-control:hover,.form-select:hover{border-color:#b9c8d9!important;background:#fff!important}.form-control:focus,.form-select:focus{border-color:#4f8df7!important;background:#fff!important;box-shadow:0 0 0 4px rgba(37,99,235,.09)!important;outline:0!important}.btn-primary{min-height:42px;padding:9px 18px!important;border-radius:11px!important;background:linear-gradient(135deg,#2563eb,#1d4ed8)!important;border:0!important;box-shadow:0 8px 18px rgba(37,99,235,.18)!important}.btn-light{min-height:42px;border:1px solid #dbe4ee!important;border-radius:11px!important}.table-wrap{margin-top:18px}.table-wrap .table{background:#fff}.table-wrap .table thead th{padding:13px 14px!important}.table-wrap .table tbody td{padding:12px 14px!important}.record-count{font-size:11px;color:#64748b;background:#f8fafc;border:1px solid #e8eef5;border-radius:999px;padding:7px 11px}.field-help{font-size:10px;color:#94a3b8;margin-top:5px}.empty-state{text-align:center;padding:38px;color:#94a3b8}
@media(max-width:768px){.form-page-head{align-items:flex-start;flex-direction:column}.form-section{padding:16px}.form-actions{width:100%}.form-actions .btn{flex:1}.cardx{padding:16px}}

/* Separate Add/List navigation */
.nav-subtitle{margin:18px 14px 6px;color:#94a3b8;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;display:flex;align-items:center;gap:8px}
.nav-child{padding-left:42px!important;font-size:13px!important}
.nav-child .nav-icon{width:20px!important}
.nav-child.active{background:rgba(37,99,235,.16)!important;color:#fff!important}

.report-card{transition:transform .15s ease,box-shadow .15s ease}.report-card:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(20,40,80,.10)}.report-icon{width:44px;height:44px;border-radius:12px;background:#eef5ff;color:#155eef;display:flex;align-items:center;justify-content:center;margin-bottom:14px}.report-title{line-height:1.25}.report-page .table-wrap{overflow:auto}.report-page table{min-width:760px}@media print{.report-filter,.btn,.page-kicker,.sidebar,nav{display:none!important}.cardx{box-shadow:none!important;border:0!important}.report-page{padding:0!important}}

/* Oracle-style ERP sidebar menu */
.oracle-sidebar-nav{padding:2px 2px 18px!important;overflow-y:auto}.oracle-sidebar-nav::-webkit-scrollbar{width:5px}.oracle-sidebar-nav::-webkit-scrollbar-thumb{background:rgba(148,163,184,.22);border-radius:8px}.nav-section-title{display:flex;align-items:center;gap:8px;color:#7890b5;font-size:10px;font-weight:900;letter-spacing:1.35px;margin:17px 9px 7px;padding-bottom:7px;border-bottom:1px solid rgba(255,255,255,.07)}.nav-section-title i{font-size:11px;color:#38bdf8}.nav-tree{position:relative;margin-left:7px;padding-left:15px;border-left:1px solid rgba(148,163,184,.18)}.nav-tree-item{position:relative!important;display:flex!important;align-items:center!important;gap:9px!important;color:#c4d0e3!important;padding:8px 9px!important;margin:2px 0!important;border-radius:8px!important;font-size:12px!important;font-weight:600!important;line-height:1.35!important;min-height:34px}.nav-tree-item:before{content:"";position:absolute;left:-16px;top:50%;width:14px;height:1px;background:rgba(148,163,184,.2)}.nav-tree-item:hover,.nav-tree-item.active{background:linear-gradient(90deg,rgba(37,99,235,.28),rgba(6,182,212,.08))!important;color:#fff!important;transform:none!important}.nav-tree-item.active{box-shadow:inset 3px 0 0 #38bdf8!important}.tree-mark{width:14px;height:14px;border:1px solid rgba(148,163,184,.45);border-radius:3px;display:grid;place-items:center;flex:0 0 14px;color:#9fb0c8;font-size:11px;line-height:1}.nav-tree-item:hover .tree-mark,.nav-tree-item.active .tree-mark{border-color:#60a5fa;color:#bfdbfe}.sidebar{padding-bottom:12px}.sidebar nav{scrollbar-width:thin}.sidebar-bottom{background:linear-gradient(180deg,transparent,rgba(11,18,32,.8) 18%);padding-top:12px}


/* ===== GALAXY THEME APPLIED TO JAPAN TOWN =====
   Theme/global-header only. Existing forms, reports and DB logic unchanged. */
:root{
    --navy:#121634;
    --navy2:#1d214f;
    --blue:#1d2671;
    --cyan:#c33764;
    --bg:#f5f1f7;
    --card:#ffffff;
    --text:#241f33;
    --muted:#75687c;
    --line:#eadfe8;
    --shadow:0 12px 35px rgba(45,24,65,.10);
}

body{
    background:linear-gradient(135deg,#eef2ff 0%,#fdf2f8 48%,#f7eef7 100%);
    color:var(--text);
}

.app-shell{min-height:calc(100vh - var(--gh-height,46px));}

.sidebar{
    top:var(--gh-height,46px) !important;
    bottom:0 !important;
    height:auto !important;
    background:rgba(18,22,52,.98) !important;
    color:#fff !important;
    box-shadow:8px 0 30px rgba(0,0,0,.22) !important;
}

.brand-mark,.avatar,.form-page-head .title-icon{
    background:linear-gradient(135deg,#1d2671,#c33764) !important;
    box-shadow:0 10px 24px rgba(195,55,100,.20) !important;
}

.brand b,.user-box b{color:#fff !important;}
.brand small,.user-box small{color:#d7defc !important;}
.user-box{background:rgba(255,255,255,.08) !important;border-color:rgba(255,255,255,.08) !important;}

.nav-section-title{color:#d7c9e2 !important;border-bottom-color:rgba(255,255,255,.09) !important;}
.nav-section-title i{color:#ffd5e2 !important;}
.nav-tree{border-left-color:rgba(255,255,255,.13) !important;}
.nav-tree-item{color:#f0e9f4 !important;}
.nav-tree-item:before{background:rgba(255,255,255,.18) !important;}
.nav-tree-item:hover,.nav-tree-item.active{
    background:linear-gradient(90deg,#6a2c91,#e91e63) !important;
    color:#fff !important;
}
.nav-tree-item.active{box-shadow:inset 3px 0 0 #ffd5e2 !important;}
.tree-mark{border-color:rgba(255,255,255,.32) !important;color:#ecdff1 !important;}
.nav-tree-item:hover .tree-mark,.nav-tree-item.active .tree-mark{border-color:#fff !important;color:#fff !important;}
.sidebar-bottom a{color:#ffd5e2 !important;}
.sidebar-bottom a:hover{background:rgba(233,30,99,.16) !important;}

.main{background:transparent !important;}
.topbar{
    top:var(--gh-height,46px) !important;
    background:rgba(255,255,255,.82) !important;
    backdrop-filter:blur(14px) !important;
    -webkit-backdrop-filter:blur(14px) !important;
    border-bottom:1px solid rgba(255,255,255,.72) !important;
    box-shadow:0 8px 24px rgba(45,24,65,.06) !important;
}
.page-kicker{color:#9d2d68 !important;}
.topbar h1{color:#1d2671 !important;}
.top-date{background:#fff !important;border-color:#eadfe8 !important;color:#75687c !important;}

.cardx,.form-section,.table-wrap{
    background:rgba(255,255,255,.97) !important;
    border-color:#eadfe8 !important;
    box-shadow:0 14px 36px rgba(45,24,65,.08) !important;
}
.cardx,.form-section{border-radius:20px !important;}
.dashboard-card:hover{border-color:#d9bdd1 !important;box-shadow:0 18px 38px rgba(45,24,65,.13) !important;}
.module-icon,.report-icon{
    background:linear-gradient(135deg,#eef2ff,#fce7f3) !important;
    color:#1d2671 !important;
}
.module-arrow{color:#c33764 !important;}
.section-head h2,.form-page-head h2{color:#1d2671 !important;}

.stat{
    background:linear-gradient(135deg,#1d2671,#c33764) !important;
    box-shadow:0 14px 30px rgba(74,37,96,.22) !important;
}

.form-control,.form-select{
    border-color:#e0d2df !important;
    background:#fffafd !important;
}
.form-control:hover,.form-select:hover{border-color:#c9afc4 !important;background:#fff !important;}
.form-control:focus,.form-select:focus{
    border-color:#c33764 !important;
    box-shadow:0 0 0 4px rgba(195,55,100,.10) !important;
}

.btn-primary{
    background:linear-gradient(135deg,#1d2671,#c33764) !important;
    border-color:transparent !important;
    box-shadow:0 8px 18px rgba(89,35,100,.18) !important;
}
.btn-primary:hover{filter:brightness(1.06);}
.btn-light{background:#fff !important;border-color:#e3d5e1 !important;color:#4b3552 !important;}

.table thead th,.table-wrap .table thead th{
    background:linear-gradient(180deg,#faf6fb,#f5eef7) !important;
    color:#694d70 !important;
    border-bottom-color:#eadfe8 !important;
}
.table tbody tr:hover td{background:#fff8fc !important;}

.form-section-title{color:#7a235a !important;border-bottom-color:#f0e5ee !important;}
.record-count{background:#faf6fb !important;border-color:#eadfe8 !important;color:#7a5d7d !important;}

@media(max-width:992px){
    .sidebar{top:var(--gh-height,46px) !important;}
    .mobile-menu{border-color:#e4d6e2 !important;color:#1d2671 !important;}
}

@media print{
    .topbar{top:0 !important;}
}
