:root {
  --primary:#147d64;
  --bg:#f5f7fa;
  --border:#e6ebef;
  --text:#243347;
  --muted:#7b8796
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  font-family:Segoe UI,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  font-size:14px;
  line-height:1.6
}
button,input,select,textarea {
  font:inherit
}
a {
  color:var(--primary)
}
a,button {
  transition:background .18s,color .18s
}
a:focus-visible,button:focus-visible {
  outline:3px solid #74c9b0;
  outline-offset:3px
}
h1,h2,h3,h4,p {
  margin-top:0
}
h2,h3 {
  font-size:20px;
  letter-spacing:-.5px
}
h4 {
  font-size:15px
}
h3 {
  margin-bottom:24px
}
.app-wrapper {
  min-height:100vh
}
.sidebar {
  position:fixed;
  inset:0 auto 0 0;
  width:250px;
  background:#122b29;
  color:white;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  z-index:60;
  padding:28px 18px;
  overflow-y:auto
}
.sidebar-header {
  display:flex;
  align-items:center;
  gap:12px;
  padding:0 10px 36px
}
.logo {
  width:40px;
  height:44px;
  background:#2db28c;
  clip-path:polygon(50% 0,95% 17%,90% 65%,75% 85%,50% 100%,25% 85%,10% 65%,5% 17%);
  display:grid;
  place-items:center;
  font-size:20px;
  font-weight:700;
  color:white
}
.brand-text {
  font-size:19px;
  font-weight:700;
  letter-spacing:-.6px
}
.brand-caption {
  display:block;
  font-size:10px;
  letter-spacing:2px;
  color:#90aaa5;
  margin-top:2px
}
.nav-label {
  padding:0 14px;
  margin:10px 0 12px;
  color:#88a59e;
  font-size:10px;
  font-weight:700;
  letter-spacing:1.8px
}
.sidebar-nav {
  display:grid;
  gap:7px
}
.nav-item {
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 15px;
  color:#aec4bd;
  text-decoration:none;
  border-radius:9px;
  font-weight:500
}
.nav-item:hover {
  background:#1b3935;
  color:white
}
.nav-item.active {
  background:#245146;
  color:white;
  box-shadow:inset 3px 0 #49d3a7
}
.nav-icon {
  width:20px;
  height:20px;
  flex:none
}
.sidebar-footer {
  border-top:1px solid #29423d;
  padding:22px 10px 0
}
.user-line {
  font-weight:600;
  color:#e1eee8;
  overflow-wrap:anywhere
}
.role-label {
  font-size:12px;
  color:#95afa5
}
.logout {
  display:inline-block;
  font-size:12px;
  color:#a5c3b6;
  margin-top:12px;
  text-decoration:none
}
.app-main {
  margin-left:250px;
  min-height:100vh;
  display:flex;
  flex-direction:column
}
.header {
  min-height:84px;
  background:white;
  border-bottom:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:18px 40px
}
.header-left,.header-right {
  display:flex;
  align-items:center;
  gap:16px
}
.breadcrumb {
  font-size:11px;
  color:var(--muted);
  margin-bottom:2px
}
.page-title {
  margin:0;
  font-size:19px;
  font-weight:650;
  letter-spacing:-.5px
}
.avatar {
  width:36px;
  height:36px;
  border-radius:50%;
  background:#e6f3ed;
  color:#247c5b;
  display:grid;
  place-items:center;
  font-weight:700;
  border:1px solid #d3e8dd
}
.header-account {
  font-size:12px;
  text-align:right
}
.header-account small {
  display:block;
  color:var(--muted);
  font-size:10px
}
.menu-toggle {
  display:none;
  cursor:pointer;
  border:1px solid var(--border);
  background:white;
  border-radius:8px;
  width:38px;
  height:38px
}
.page-body {
  width:100%;
  max-width:1480px;
  margin:0 auto;
  padding:36px 40px;
  flex:1;
  min-width:0
}
.card {
  background:white;
  border:1px solid var(--border);
  border-radius:14px;
  padding:26px;
  margin-bottom:24px;
  box-shadow:0 3px 12px #24334703
}
.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:39px;
  padding:9px 17px;
  background:var(--primary);
  color:white;
  border-radius:8px;
  text-decoration:none;
  border:1px solid transparent;
  cursor:pointer;
  font-weight:600;
  font-size:13px;
  line-height:1.4;
  vertical-align:middle
}
.btn:hover {
  background:#0d614d
}
.btn-danger {
  background:#fff1f1;
  color:#b64c55;
  border-color:#f4dfe0
}
.btn-danger:hover {
  background:#ffe3e4
}
.btn-info {
  background:#eef6f3;
  color:#16735b;
  border-color:#dcece5
}
.btn-info:hover {
  background:#dfefe8
}
.btn-sm {
  padding:7px 12px;
  min-height:33px;
  font-size:12px
}
.btn-secondary {
  background:white;
  color:var(--text);
  border-color:var(--border)
}
.btn-secondary:hover {
  background:#f1f4f7
}
.footer {
  padding:18px 40px;
  color:#96a0ac;
  font-size:11px;
  border-top:1px solid var(--border);
  display:flex;
  justify-content:space-between;
  gap:15px
}
.footer p {
  margin:0
}
.mt-3 {
  margin-top:20px
}
.mb-3 {
  margin-bottom:18px
}
.p-3 {
  padding:24px
}
.ms-2 {
  margin-left:6px
}
.muted {
  color:var(--muted)
}
.eyebrow {
  font-size:10px;
  letter-spacing:1.8px;
  color:var(--primary);
  font-weight:700;
  text-transform:uppercase;
  margin-bottom:8px
}
.page-intro {
  margin-bottom:28px
}
.page-intro h2 {
  font-size:28px;
  line-height:1.3;
  margin-bottom:8px
}
.page-intro p {
  color:var(--muted);
  margin-bottom:0
}
.badge {
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:#ecf7f1;
  color:#247a56;
  padding:4px 9px;
  border-radius:6px;
  font-size:11px;
  font-weight:600
}
.badge.neutral {
  background:#f0f3f6;
  color:#738096
}
.welcome-card {
  position:relative;
  overflow:hidden;
  background:linear-gradient(120deg,#173e34,#24664e);
  color:white;
  padding:36px;
  border:0
}
.welcome-card:after {
  content:'';
  position:absolute;
  right:-45px;
  top:-100px;
  width:310px;
  height:310px;
  border:50px solid #ffffff06;
  border-radius:50%;
  pointer-events:none
}
.welcome-card h2 {
  font-size:29px;
  max-width:650px;
  margin-bottom:12px
}
.welcome-card p {
  color:#bbd8ca;
  max-width:570px;
  margin-bottom:22px
}
.welcome-card .eyebrow {
  color:#80d3ad
}
.welcome-card .btn {
  background:white;
  color:#205b44
}
.dashboard-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px
}
.dashboard-link {
  text-decoration:none;
  color:var(--text);
  display:block;
  position:relative
}
.dashboard-link:hover {
  border-color:#a1cbb9;
  box-shadow:0 6px 22px #24334708
}
.dashboard-link h3 {
  margin:20px 0 8px;
  font-size:17px
}
.dashboard-link p {
  font-size:13px;
  color:var(--muted);
  margin:0
}
.tile-icon {
  width:40px;
  height:40px;
  border-radius:11px;
  background:#e9f4ee;
  display:grid;
  place-items:center;
  color:#217551;
  font-size:19px
}
.tile-arrow {
  position:absolute;
  right:25px;
  top:28px;
  color:#9aa9a0
}
.modal {
  display:none;
  position:fixed;
  inset:0;
  z-index:100;
  background:#10291f80;
  backdrop-filter:blur(4px);
  padding:30px 16px;
  overflow:auto
}
.modal.is-open {
  display:flex;
  align-items:flex-start;
  justify-content:center
}
.modal-content {
  background:white;
  width:100%;
  max-width:540px;
  border-radius:17px;
  box-shadow:0 24px 100px #10251d40;
  margin:4vh auto;
  position:relative
}
.modal-header {
  padding:24px 28px;
  border-bottom:1px solid var(--border)
}
.modal-header h4 {
  margin:0;
  padding-right:35px;
  font-size:18px
}
.modal-body {
  padding:26px 28px
}
.close {
  position:absolute;
  right:20px;
  top:18px;
  border:0;
  background:#f3f5f7;
  color:#74818e;
  cursor:pointer;
  font-size:25px;
  border-radius:8px;
  line-height:32px;
  width:32px;
  height:32px;
  text-align:center
}
.close:hover {
  background:#e9edf1;
  color:#243347
}
body.modal-open {
  overflow:hidden
}
.sidebar-backdrop {
  display:none
}
.table-scroll {
  overflow-x:auto;
  max-width:100%
}
.payment-heading {
  display:flex;
  align-items:center;
  gap:14px
}
.payment-logo {
  width:44px;
  height:44px;
  background:#edf3fb;
  border:1px solid #e1eaf5;
  border-radius:12px;
  display:grid;
  place-items:center;
  color:#204c83;
  font-weight:800;
  font-size:18px
}
.payment-heading strong {
  display:block
}
.payment-heading small {
  color:var(--muted);
  font-size:11px
}
.section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:22px
}
.section-heading h3 {
  margin:0
}
.alert-error {
  background:#fff0f0;
  border:1px solid #f1d5d5;
  color:#a63f47;
  padding:12px 16px;
  border-radius:9px;
  font-size:13px;
  margin-bottom:20px
}

@media(min-width:901px) {
  .card>form {
  max-width:760px
}

}
@media(max-width:1100px) {
  .sidebar {
  width:220px
}
.app-main {
  margin-left:220px
}
.header,.footer {
  padding-left:26px;
  padding-right:26px
}
.page-body {
  padding:26px
}
.dashboard-grid {
  grid-template-columns:repeat(2,minmax(0,1fr))
}

}
@media(max-width:900px) {
  .sidebar {
  transform:translateX(-100%);
  transition:transform .2s;
  width:250px
}
.sidebar-open .sidebar {
  transform:translateX(0)
}
.sidebar-open .sidebar-backdrop {
  display:block;
  position:fixed;
  inset:0;
  background:#142b2666;
  border:0;
  z-index:50
}
.app-main {
  margin-left:0
}
.menu-toggle {
  display:block
}

}
@media(max-width:600px) {
  .header {
  padding:15px 18px;
  min-height:75px
}
.page-title {
  font-size:16px
}
.header-account {
  display:none
}
.page-body {
  padding:24px 16px
}
.card {
  padding:20px;
  border-radius:12px
}
.footer {
  padding:18px;
  flex-direction:column;
  gap:2px
}
.dashboard-grid {
  grid-template-columns:1fr;
  gap:0
}
.page-intro h2,.welcome-card h2 {
  font-size:24px
}
.welcome-card {
  padding:26px
}
.modal-header,.modal-body {
  padding:22px
}
.modal-content {
  margin:10px auto
}
.section-heading {
  align-items:flex-start
}
.section-heading h3 {
  font-size:17px
}

}
@media(prefers-reduced-motion:reduce) {
  * {
  transition:none!important
}

}
