:root{font-family:Arial,sans-serif;color:#25372e;background:#faf9f5}*{box-sizing:border-box}body{margin:0}header,main,footer{max-width:1240px;margin:auto;padding:28px 40px}header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ddd}.brand{font-size:34px;font-weight:bold;letter-spacing:-2px;text-decoration:none}.brand span{display:block;font-size:9px;letter-spacing:2px;margin-top:6px}nav{display:flex;gap:25px;align-items:center}a{color:inherit}button,input,select,textarea{font:inherit}button,a.primary{cursor:pointer}button{border:1px solid #ccd2c9;background:transparent;padding:11px 17px;border-radius:5px}input,select,textarea{padding:12px;border:1px solid #c8cec5;border-radius:5px;background:white;max-width:100%}.primary{background:#a54d36;color:#fff;border:0;text-decoration:none;padding:16px 22px;display:inline-block;border-radius:5px}.hero{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:50px;padding:35px 0 70px}.hero img{width:100%;height:480px;object-fit:cover;border-radius:120px 10px 10px 10px;background:#e3e7cf}h1{font:60px Georgia;line-height:1.04;margin:24px 0}h2{font:36px Georgia;margin:12px 0}p{line-height:1.65}.hero p{max-width:420px}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:bold}.small,small{font-size:12px;color:#6e776e}.section-head{display:flex;gap:15px;align-items:center}.section-head>div{margin-right:auto}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;margin-top:30px}.card img{width:100%;height:260px;object-fit:cover;border-radius:9px}.card h3{font-size:18px;margin-bottom:8px}.card button{float:right}.values{display:grid;grid-template-columns:repeat(3,1fr);gap:50px;background:#e9ecdf;padding:30px;margin-top:70px;border-radius:12px}footer{border-top:1px solid #ddd;display:flex;gap:25px;align-items:center;font-size:13px}footer p{margin-right:auto}dialog{border:0;border-radius:12px;width:760px;max-width:94vw;padding:35px;max-height:90vh}dialog::backdrop{background:#14261daa}#close{float:right}label{display:block;margin:14px 0}label input,label textarea,label select{display:block;width:100%;margin-top:7px}.row{display:flex;gap:15px;align-items:center;justify-content:space-between;border-bottom:1px solid #ddd;padding:14px 0}.actions{display:flex;gap:10px;flex-wrap:wrap}.admin-layout{display:grid;grid-template-columns:190px 1fr;gap:35px}.sidebar button{display:block;width:100%;text-align:left;margin:10px 0}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}td,th{text-align:left;padding:14px;border-bottom:1px solid #ddd}td img{width:50px;height:50px;object-fit:cover}.metrics{display:flex;gap:20px;margin:24px 0}.metrics div{background:#e9ecdf;padding:20px;flex:1;border-radius:10px}.metrics b{display:block;font-size:27px;margin-top:10px}.error,#notice{color:#98412f}#toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:#25372e;color:white;border-radius:6px;padding:12px 25px;display:none;z-index:10}button:disabled{opacity:.4;cursor:not-allowed}button:focus-visible,a:focus-visible{outline:3px solid #a54d36;outline-offset:3px}@media(max-width:700px){header,main,footer{padding:20px}nav{gap:12px;font-size:12px}.brand{font-size:26px}.brand span{font-size:7px}.hero{grid-template-columns:1fr;gap:20px}h1{font-size:48px}.hero img{height:320px}.grid{grid-template-columns:repeat(2,1fr);gap:18px}.card img{height:180px}.section-head{flex-wrap:wrap}.values{grid-template-columns:1fr;gap:10px}.admin-layout{grid-template-columns:1fr}.sidebar{display:flex;gap:10px}.metrics{flex-wrap:wrap}footer{flex-wrap:wrap}.row{flex-wrap:wrap}}
:root{--accent:#a54d36;--ink:#25372e;--muted:#737d73}body{color:var(--ink)}header{max-width:1380px}.brand{letter-spacing:0;font-size:20px}.brand img{width:235px;max-height:70px;object-fit:contain}.brand span{font-size:8px;letter-spacing:2px}.announcement{background:#263e31;color:#f4f4e9;text-align:center;padding:10px;font-size:11px;letter-spacing:1px}.primary{background:var(--accent)}main{max-width:1300px}.hero{padding:35px 0 70px;gap:55px}.hero h1{font-size:66px;max-width:530px;letter-spacing:-2px}.hero-visual{position:relative}.hero img{border-radius:180px 12px 12px 12px}.hero-stamp{position:absolute;bottom:25px;left:-25px;border-radius:50%;background:#edf0d9;transform:rotate(-12deg);padding:26px;font-size:13px;font-weight:bold;line-height:1.5}.hero-footnote{margin-top:50px;display:flex;justify-content:space-between;gap:10px;font-size:9px;letter-spacing:1px;color:var(--muted)}.section-head input{width:245px}.chips{display:flex;gap:8px;overflow:auto;margin:25px 0}.chip{white-space:nowrap;border-radius:30px;font-size:13px;padding:10px 20px}.chip.active{background:var(--ink);color:white}.filter-row{display:flex;gap:12px;align-items:center}.filter-row select{font-size:12px}.filter-row span{margin-left:auto;font-size:12px;color:var(--muted)}.grid.compact{grid-template-columns:repeat(4,1fr)}.grid.compact .card img{height:220px}.product-photo{position:relative;display:block;border:0;padding:0;width:100%;background:#eef0e7;float:none!important;text-align:left}.product-photo img{display:block}.badge{position:absolute;top:15px;left:15px;background:#faf9f5;border-radius:20px;padding:7px 12px;font-size:10px;letter-spacing:1px}.featured{position:absolute;right:15px;top:13px;color:var(--accent);font-size:22px}.card-meta{font-size:10px;text-transform:uppercase;letter-spacing:1.8px;color:var(--muted);margin-top:18px}.plain{padding:0;border:0;text-align:left;color:inherit}.card h3{margin:10px 0 15px}.card h3 button{float:none;font-size:18px}.card-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px}.card-bottom button{font-size:12px;padding:9px 12px;float:none}.card del{display:block;font-size:12px;color:var(--muted);margin-top:5px}.values span{font:italic 28px Georgia;color:var(--accent)}.values{margin:65px 0 20px}.footer-links{display:flex;flex-wrap:wrap;gap:18px;align-items:center}.footer-links button{padding:0;border:0;font-size:12px}footer{justify-content:space-between;max-width:1300px}footer p{margin:6px 0}dialog{width:1000px;padding:35px}#close{position:sticky;top:0;z-index:2;background:#faf9f5}#toast.visible{display:block}.detail{display:grid;grid-template-columns:1fr 1fr;gap:35px;clear:both}.detail-image{width:100%;height:380px;object-fit:cover;border-radius:10px}.thumbs{display:flex;gap:10px;margin-top:12px;overflow:auto}.thumbs button{padding:0}.thumbs img{width:65px;height:65px;object-fit:cover}.detail h2{font-size:32px}.detail-price{font-size:23px}.detail-price del{font-size:15px;color:var(--muted)}.specs{display:grid;grid-template-columns:1fr 1fr;gap:0;margin-top:25px;font-size:13px}.specs dt,.specs dd{border-bottom:1px solid #ddd;padding:12px 0;margin:0}.specs dd{font-weight:bold}.qty{display:flex;gap:12px;align-items:center}.inline-form{display:flex;gap:10px;margin:25px 0;flex-wrap:wrap}.inline-form input{flex:1}.grand{font-size:22px;margin-bottom:20px}.payment-note{padding:15px;background:#edf0e3;border-radius:6px}.check{display:flex;gap:9px;align-items:center;font-size:13px}.check input{width:auto;margin:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 22px}.form-grid label{min-width:0}.status{background:#e7ebdf;border-radius:20px;padding:7px 12px;font-size:11px;white-space:nowrap}.row small,table small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.narrow{max-width:650px;margin:50px auto}.login-card{max-width:470px;margin:65px auto;padding:35px;border:1px solid #dfe3d8;border-radius:15px;background:white}.login-card h1{font-size:43px}.owner-main{max-width:1460px;padding:0 30px}.admin-layout{grid-template-columns:195px minmax(0,1fr);gap:30px;min-height:70vh}.sidebar{padding:28px 0;border-right:1px solid #e1e4db;padding-right:20px}.owner-label{font-size:9px;letter-spacing:1.3px;margin:0 0 22px;color:var(--muted)}.sidebar button{border:0;border-radius:5px;font-size:13px;padding:11px 14px;margin:4px 0;color:var(--ink)}.sidebar button.active{background:var(--ink);color:white}.sidebar a{display:block;margin:25px 10px;font-size:12px}.workspace{padding:35px 0;min-width:0}.workspace h1{font:42px Georgia;letter-spacing:-1px;margin:0 0 15px}.workspace h2{font-size:27px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}.page-heading h1{margin:0}.page-heading .eyebrow{margin:0 0 10px}.button{padding:12px 18px;border:1px solid #ccd2c9;border-radius:5px;text-decoration:none;font-size:13px}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.metrics div{font-size:12px;background:white;border:1px solid #dfe4d8;padding:22px 17px}.metrics small{display:block;font-size:9px;margin-top:5px}.metrics b{font-size:23px}.panel{padding:25px;background:white;border:1px solid #dfe4d8;border-radius:10px;margin:25px 0}.panel p{font-size:14px}.table-wrap{margin-top:25px;border:1px solid #e1e4dc;border-radius:10px;background:white}table{font-size:12px}th{background:#edf0e7;font-size:10px;text-transform:uppercase;letter-spacing:.6px}td button{padding:7px 10px;font-size:11px}td{vertical-align:middle}.admin-product{display:flex;align-items:center;gap:12px}.admin-product img{border-radius:5px}fieldset{border:1px solid #d8dfd2;border-radius:6px;margin:20px 0;padding:10px 18px}legend{font-size:13px}.checks{display:flex;gap:25px;flex-wrap:wrap}.editor-section{border-top:1px solid #ddd;padding:15px 0;margin:20px 0}.variant-row,.spec-row{display:grid;grid-template-columns:1fr 1fr 120px 45px;gap:10px;margin:12px 0}.spec-row{grid-template-columns:1fr 2fr 45px}.variant-row input,.spec-row input{min-width:0;width:100%;font-size:13px}.sticky-actions{position:sticky;bottom:-35px;background:white;padding:18px 0;border-top:1px solid #ddd;display:flex;gap:15px}.preview-card{border:1px solid #ddd;padding:20px;border-radius:8px;max-width:320px}.preview-card img{width:100%;height:180px;object-fit:cover}.two-panels{display:grid;grid-template-columns:1fr 1fr;gap:25px}.policy-text{white-space:pre-wrap}.empty{padding:35px;text-align:center;grid-column:1/-1}input:focus,textarea:focus,select:focus{outline:2px solid var(--accent);outline-offset:2px}
@media(max-width:900px){.metrics{grid-template-columns:repeat(2,1fr)}.hero h1{font-size:50px}.grid.compact{grid-template-columns:repeat(3,1fr)}.two-panels{grid-template-columns:1fr}.admin-layout{grid-template-columns:155px minmax(0,1fr);gap:15px}.sidebar{padding-right:10px}}@media(max-width:700px){.hero{grid-template-columns:1fr}.hero h1{font-size:49px}.hero-stamp{left:10px}.hero-footnote{margin-top:25px}.section-head input{width:100%}.grid.compact{grid-template-columns:repeat(2,1fr)}.grid.compact .card img{height:170px}.detail{grid-template-columns:1fr}.detail-image{height:280px}.admin-layout{display:block}.sidebar{display:flex;overflow:auto;border-right:0;gap:6px;padding:15px 0;align-items:center}.sidebar button{white-space:nowrap;width:auto}.sidebar .owner-label,.sidebar a{display:none}.owner-main{padding:0 15px}.workspace{padding-top:15px}.workspace h1{font-size:34px}.page-heading{flex-wrap:wrap}.form-grid{grid-template-columns:1fr}.variant-row{grid-template-columns:1fr 1fr}.spec-row{grid-template-columns:1fr 1fr 40px}.variant-row button{width:40px}.footer-links{gap:15px}.brand{font-size:13px}.brand img{width:170px}header nav{font-size:11px;gap:12px}header nav button{padding:8px}.card h3 button{font-size:15px}.card-bottom{align-items:flex-start;flex-direction:column}.values{margin-top:40px}.metrics div{padding:15px}.qty{gap:6px}.qty button{padding:7px}dialog{padding:22px}.sticky-actions{bottom:-22px}}

.demo-banner{background:#fff3bf;color:#332600;padding:12px 22px;text-align:center;font:13px/1.6 Arial,sans-serif;position:relative;z-index:10}.demo-banner a{font-weight:bold;text-decoration:underline;margin-left:12px}.demo-banner button{padding:4px 9px;font-size:12px;margin-left:10px}



/* CORENTRA RETAIL PREMIUM DARK THEME */
body:has(.hero),
body:has(.product-page) {
  background:#0b100e!important;
  color:#edf5ef!important;
  color-scheme:dark;
}
body:has(.hero) header,
body:has(.product-page) header,
body:has(.hero) footer,
body:has(.product-page) footer {
  background:#111b16!important;
  color:#edf5ef!important;
  border-color:#294033!important;
}
body:has(.hero) main,
body:has(.product-page) main {
  background:#0b100e!important;
  color:#edf5ef!important;
}
body:has(.hero) h1,
body:has(.hero) h2,
body:has(.hero) h3,
body:has(.product-page) h1,
body:has(.product-page) h2,
body:has(.product-page) h3 {
  color:#f3faf5!important;
}
body:has(.hero) p,
body:has(.product-page) p,
body:has(.hero) label,
body:has(.product-page) label {
  color:#c1d0c5;
}
body:has(.hero) a,
body:has(.product-page) a {
  color:#8fe0ad;
}
body:has(.hero) .card {
  background:#151f19!important;
  color:#edf5ef!important;
  border:1px solid #2a4032!important;
  border-radius:16px!important;
}
body:has(.product-page) .product-page .detail {
  background:#121c16!important;
  color:#edf5ef!important;
  border:1px solid #2a4032!important;
  border-radius:18px;
  padding:20px;
}
body:has(.product-page) #addForm input,
body:has(.product-page) #addForm select {
  background:#101813!important;
  color:#ffffff!important;
  border:1px solid #52715d!important;
  border-radius:10px!important;
  padding:12px!important;
}
body:has(.product-page) #addForm input[name="qty"] {
  color:#ffffff!important;
  background:#17251c!important;
  border:2px solid #39865c!important;
  font-size:17px!important;
  font-weight:700!important;
  min-height:48px;
  max-width:130px;
}
body:has(.product-page) #addForm input::placeholder {
  color:#a8b9ad!important;
}
body:has(.product-page) .ct-product-actions {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin:18px 0;
}
body:has(.product-page) .ct-product-actions button {
  min-height:52px;
  border-radius:12px!important;
  font-weight:700!important;
  margin:0!important;
}
body:has(.product-page) .ct-add-btn {
  background:linear-gradient(135deg,#197448,#105333)!important;
  color:#ffffff!important;
  border:1px solid #55a978!important;
}
body:has(.product-page) .ct-share-btn {
  background:linear-gradient(135deg,#303b34,#202a24)!important;
  color:#ffffff!important;
  border:1px solid #71877a!important;
}
body:has(.product-page) .ct-product-actions button:hover {
  transform:translateY(-2px);
  box-shadow:0 7px 18px #0006;
}
body:has(.product-page) .specs dt,
body:has(.product-page) .specs dd {
  border-color:#34483a!important;
  color:#dce9df!important;
}
@media(max-width:650px) {
  body:has(.product-page) .ct-product-actions {
    gap:8px;
  }
  body:has(.product-page) .ct-product-actions button {
    font-size:12px;
    padding:10px 5px!important;
  }
}



/* CORENTRA PREMIUM MINIMAL THEME */
:root {
  --accent: #315747;
  --ink: #292e2b;
  --muted: #777d78;
  color-scheme: light;
}

html, body {
  background: #f5f4f0 !important;
  color: #292e2b;
  color-scheme: light;
}

body:has(.hero), body:has(.product-page), body:has(.admin-layout) {
  background: #f5f4f0 !important;
  color: #292e2b;
}

header, footer {
  background: #ffffff !important;
  color: #292e2b !important;
  border-color: #e9e7e1 !important;
}

.card, .panel, .login-card, .preview-card,
.product-page .detail, .table-wrap, dialog,
.workspace section, .two-panels > div {
  background: #ffffff !important;
  color: #292e2b !important;
  border: 1px solid #e9e7e1 !important;
  box-shadow: 0 3px 14px rgba(35, 40, 36, 0.045) !important;
}

input, select, textarea {
  background: #ffffff !important;
  color: #292e2b !important;
  border-color: #deded7 !important;
}

button.primary, .btn-primary, a.btn-primary,
button[type="submit"] {
  background: #315747 !important;
  color: #ffffff !important;
  border-color: #315747 !important;
}

.sidebar button.active {
  background: #e9eee9 !important;
  color: #315747 !important;
}

a {
  color: #315747;
}

th {
  background: #f1f1ec !important;
  color: #454c47 !important;
}

td, th {
  border-color: #e9e7e1 !important;
}

#toast {
  background: #292e2b !important;
  color: #ffffff !important;
}

dialog::backdrop {
  background: rgba(25, 30, 27, 0.42);
}

/* Admin page background correction */
body:has(.admin-layout) {
  background: #0b100e !important;
  color: #f4f4e9 !important;
}

/* Admin workspace background fix */
body:has(.admin-layout) #main.owner-main,
body:has(.admin-layout) .admin-layout,
body:has(.admin-layout) .sidebar,
body:has(.admin-layout) .workspace {
  background: #0b100e !important;
  color: #f4f4e9 !important;
}

/* CORENTRA ADMIN DASHBOARD DARK THEME */
body:has(.admin-layout),
body:has(.admin-layout) #main.owner-main,
body:has(.admin-layout) .admin-layout,
body:has(.admin-layout) .sidebar,
body:has(.admin-layout) .workspace {
  background: #0b100e !important;
  color: #f4f4e9 !important;
  color-scheme: dark;
}

body:has(.admin-layout) .workspace .panel,
body:has(.admin-layout) .workspace .metrics > div,
body:has(.admin-layout) .workspace .table-wrap,
body:has(.admin-layout) .workspace section,
body:has(.admin-layout) .workspace .two-panels > div,
body:has(.admin-layout) .workspace dialog,
body:has(.admin-layout) .workspace fieldset {
  background: #151d18 !important;
  color: #f4f4e9 !important;
  border-color: #34443a !important;
}

body:has(.admin-layout) .workspace h1,
body:has(.admin-layout) .workspace h2,
body:has(.admin-layout) .workspace h3,
body:has(.admin-layout) .workspace p,
body:has(.admin-layout) .workspace label,
body:has(.admin-layout) .workspace small,
body:has(.admin-layout) .workspace td,
body:has(.admin-layout) .workspace th,
body:has(.admin-layout) .workspace strong,
body:has(.admin-layout) .sidebar .owner-label {
  color: #f4f4e9 !important;
}

body:has(.admin-layout) .workspace input,
body:has(.admin-layout) .workspace select,
body:has(.admin-layout) .workspace textarea {
  background: #101713 !important;
  color: #f4f4e9 !important;
  border-color: #435247 !important;
}

body:has(.admin-layout) .workspace th {
  background: #202b24 !important;
}

body:has(.admin-layout) .workspace td,
body:has(.admin-layout) .workspace th {
  border-color: #34443a !important;
}

body:has(.admin-layout) .sidebar button {
  background: #151d18 !important;
  color: #d9e3db !important;
  border-color: #34443a !important;
}

body:has(.admin-layout) .sidebar button.active {
  background: #315747 !important;
  color: #ffffff !important;
}

body:has(.admin-layout) .workspace a {
  color: #9ac8a8 !important;
}

/* Admin dashboard background matching product page */
body:has(.admin-layout),
body:has(.admin-layout) #main.owner-main,
body:has(.admin-layout) .admin-layout,
body:has(.admin-layout) .workspace {
  background: #f5f4f0 !important;
  color: #292e2b !important;
  color-scheme: light;
}

/* FINAL ADMIN DARK OVERRIDE */
body:has(.admin-layout),
body:has(.admin-layout) header,
body:has(.admin-layout) #main.owner-main,
body:has(.admin-layout) .admin-layout,
body:has(.admin-layout) .sidebar,
body:has(.admin-layout) .workspace {
  background: #171a1f !important;
  color: #f1f1f1 !important;
  color-scheme: dark !important;
}

body:has(.admin-layout) .workspace .card,
body:has(.admin-layout) .workspace .panel,
body:has(.admin-layout) .workspace .preview-card,
body:has(.admin-layout) .workspace .table-wrap,
body:has(.admin-layout) .workspace section,
body:has(.admin-layout) .workspace .two-panels > div,
body:has(.admin-layout) .workspace fieldset,
body:has(.admin-layout) .workspace dialog,
body:has(.admin-layout) .workspace .metrics > div {
  background: #242a32 !important;
  color: #f1f1f1 !important;
  border-color: #414954 !important;
}

body:has(.admin-layout) .workspace h1,
body:has(.admin-layout) .workspace h2,
body:has(.admin-layout) .workspace h3,
body:has(.admin-layout) .workspace p,
body:has(.admin-layout) .workspace label,
body:has(.admin-layout) .workspace small,
body:has(.admin-layout) .workspace strong,
body:has(.admin-layout) .workspace td,
body:has(.admin-layout) .workspace th,
body:has(.admin-layout) .sidebar {
  color: #f1f1f1 !important;
}

body:has(.admin-layout) .workspace input,
body:has(.admin-layout) .workspace select,
body:has(.admin-layout) .workspace textarea {
  background: #171a1f !important;
  color: #ffffff !important;
  border-color: #515b67 !important;
}

body:has(.admin-layout) .workspace th {
  background: #303843 !important;
}

body:has(.admin-layout) .workspace td,
body:has(.admin-layout) .workspace th {
  border-color: #414954 !important;
}

body:has(.admin-layout) .sidebar button {
  background: #242a32 !important;
  color: #f1f1f1 !important;
  border-color: #414954 !important;
}

body:has(.admin-layout) .sidebar button.active {
  background: #a98542 !important;
  color: #ffffff !important;
}

body:has(.admin-layout) .workspace a {
  color: #d6b36b !important;
}

/* SIMPLE ADMIN DESIGN - MATCH AUTH PAGE */
body:has(.admin-layout),
body:has(.admin-layout) #main.owner-main,
body:has(.admin-layout) .admin-layout,
body:has(.admin-layout) .workspace {
  background: #f8f7f3 !important;
  color: #243b30 !important;
  color-scheme: light !important;
}

body:has(.admin-layout) .sidebar {
  background: #ffffff !important;
  color: #243b30 !important;
  border-color: #e4e2dc !important;
}

body:has(.admin-layout) .workspace .panel,
body:has(.admin-layout) .workspace .card,
body:has(.admin-layout) .workspace .preview-card,
body:has(.admin-layout) .workspace .table-wrap,
body:has(.admin-layout) .workspace section,
body:has(.admin-layout) .workspace .two-panels > div,
body:has(.admin-layout) .workspace .metrics > div,
body:has(.admin-layout) .workspace fieldset {
  background: #ffffff !important;
  color: #243b30 !important;
  border: 1px solid #e4e2dc !important;
  box-shadow: none !important;
}

body:has(.admin-layout) .workspace h1,
body:has(.admin-layout) .workspace h2,
body:has(.admin-layout) .workspace h3,
body:has(.admin-layout) .workspace p,
body:has(.admin-layout) .workspace label,
body:has(.admin-layout) .workspace small,
body:has(.admin-layout) .workspace strong,
body:has(.admin-layout) .workspace td,
body:has(.admin-layout) .workspace th,
body:has(.admin-layout) .sidebar {
  color: #243b30 !important;
}

body:has(.admin-layout) .workspace input,
body:has(.admin-layout) .workspace select,
body:has(.admin-layout) .workspace textarea {
  background: #ffffff !important;
  color: #243b30 !important;
  border: 1px solid #cccccc !important;
}

body:has(.admin-layout) .workspace th {
  background: #f8f7f3 !important;
}

body:has(.admin-layout) .sidebar button {
  background: #ffffff !important;
  color: #243b30 !important;
  border: 1px solid #e4e2dc !important;
  box-shadow: none !important;
}

body:has(.admin-layout) .sidebar button.active,
body:has(.admin-layout) .workspace button.primary,
body:has(.admin-layout) .workspace .btn-primary,
body:has(.admin-layout) .workspace button[type="submit"] {
  background: #263d31 !important;
  color: #ffffff !important;
  border-color: #263d31 !important;
}

body:has(.admin-layout) .workspace a {
  color: #263d31 !important;
}

/* FINAL FIX: ADMIN DASHBOARD LIGHT CONTENT */
body:has(.admin-layout) #main.owner-main,
body:has(.admin-layout) .admin-layout,
body:has(.admin-layout) .workspace {
  background: #f8f7f3 !important;
  color: #243b30 !important;
  color-scheme: light !important;
}

body:has(.admin-layout) .workspace .panel,
body:has(.admin-layout) .workspace .metrics > div,
body:has(.admin-layout) .workspace .table-wrap,
body:has(.admin-layout) .workspace .preview-card,
body:has(.admin-layout) .workspace .two-panels > div,
body:has(.admin-layout) .workspace fieldset,
body:has(.admin-layout) .workspace .payment-note,
body:has(.admin-layout) .workspace .sticky-actions {
  background: #ffffff !important;
  color: #243b30 !important;
  border-color: #e4e2dc !important;
  box-shadow: none !important;
}

body:has(.admin-layout) .workspace table,
body:has(.admin-layout) .workspace tbody,
body:has(.admin-layout) .workspace tr,
body:has(.admin-layout) .workspace td {
  background: #ffffff !important;
  color: #243b30 !important;
}

body:has(.admin-layout) .workspace th {
  background: #f8f7f3 !important;
  color: #243b30 !important;
}

body:has(.admin-layout) .workspace h1,
body:has(.admin-layout) .workspace h2,
body:has(.admin-layout) .workspace h3,
body:has(.admin-layout) .workspace p,
body:has(.admin-layout) .workspace label,
body:has(.admin-layout) .workspace small,
body:has(.admin-layout) .workspace td {
  color: #243b30 !important;
}

body:has(.admin-layout) .workspace input,
body:has(.admin-layout) .workspace select,
body:has(.admin-layout) .workspace textarea {
  background: #ffffff !important;
  color: #243b30 !important;
  border-color: #e4e2dc !important;
}

body:has(.admin-layout) .workspace button,
body:has(.admin-layout) .sidebar button.active {
  background: #263d31 !important;
  color: #ffffff !important;
  border-color: #263d31 !important;
}

/* FINAL ADMIN DARK THEME */
body:has(.admin-layout),
body:has(.admin-layout) #main.owner-main,
body:has(.admin-layout) .admin-layout,
body:has(.admin-layout) .sidebar,
body:has(.admin-layout) .workspace {
  background: #101813 !important;
  color: #f4f4e9 !important;
  color-scheme: dark !important;
}

body:has(.admin-layout) .workspace .panel,
body:has(.admin-layout) .workspace .metrics > div,
body:has(.admin-layout) .workspace .table-wrap,
body:has(.admin-layout) .workspace .preview-card,
body:has(.admin-layout) .workspace .two-panels > div,
body:has(.admin-layout) .workspace fieldset,
body:has(.admin-layout) .workspace .sticky-actions {
  background: #1b2920 !important;
  color: #f4f4e9 !important;
  border: 1px solid #344b3b !important;
  box-shadow: none !important;
}

body:has(.admin-layout) .workspace h1,
body:has(.admin-layout) .workspace h2,
body:has(.admin-layout) .workspace h3,
body:has(.admin-layout) .workspace p,
body:has(.admin-layout) .workspace label,
body:has(.admin-layout) .workspace small,
body:has(.admin-layout) .workspace td,
body:has(.admin-layout) .workspace th,
body:has(.admin-layout) .sidebar {
  color: #f4f4e9 !important;
}

body:has(.admin-layout) .workspace table,
body:has(.admin-layout) .workspace tbody,
body:has(.admin-layout) .workspace tr,
body:has(.admin-layout) .workspace td {
  background: #1b2920 !important;
}

body:has(.admin-layout) .workspace th {
  background: #263d31 !important;
}

body:has(.admin-layout) .workspace input,
body:has(.admin-layout) .workspace select,
body:has(.admin-layout) .workspace textarea {
  background: #101813 !important;
  color: #ffffff !important;
  border: 1px solid #49614f !important;
}

body:has(.admin-layout) .sidebar button {
  background: #1b2920 !important;
  color: #f4f4e9 !important;
  border: 1px solid #344b3b !important;
}

body:has(.admin-layout) .sidebar button.active,
body:has(.admin-layout) .workspace button {
  background: #315747 !important;
  color: #ffffff !important;
  border-color: #47775a !important;
}

body:has(.admin-layout) .workspace a {
  color: #9ac8a8 !important;
}

/* CORENTRA COMPLETE ADMIN DARK GREEN THEME */
body:has(.admin-layout) {
  background: #0b1510 !important;
  color: #f4f7f2 !important;
  color-scheme: dark !important;
}

body:has(.admin-layout) header,
body:has(.admin-layout) footer,
body:has(.admin-layout) #main,
body:has(.admin-layout) #main.owner-main,
body:has(.admin-layout) .admin-layout,
body:has(.admin-layout) .sidebar,
body:has(.admin-layout) .workspace {
  background: #0b1510 !important;
  color: #f4f7f2 !important;
  border-color: #294333 !important;
}

body:has(.admin-layout) .workspace *,
body:has(.admin-layout) .sidebar * {
  color: #f4f7f2 !important;
}

body:has(.admin-layout) .workspace .panel,
body:has(.admin-layout) .workspace .card,
body:has(.admin-layout) .workspace .metrics,
body:has(.admin-layout) .workspace .metrics > div,
body:has(.admin-layout) .workspace .table-wrap,
body:has(.admin-layout) .workspace .preview-card,
body:has(.admin-layout) .workspace .two-panels,
body:has(.admin-layout) .workspace .two-panels > div,
body:has(.admin-layout) .workspace fieldset,
body:has(.admin-layout) .workspace .editor-section,
body:has(.admin-layout) .workspace .sticky-actions,
body:has(.admin-layout) .workspace .payment-note,
body:has(.admin-layout) .workspace .status,
body:has(.admin-layout) .workspace .empty {
  background: #14251a !important;
  color: #f4f7f2 !important;
  border-color: #34533d !important;
  box-shadow: none !important;
}

body:has(.admin-layout) .workspace table,
body:has(.admin-layout) .workspace thead,
body:has(.admin-layout) .workspace tbody,
body:has(.admin-layout) .workspace tr,
body:has(.admin-layout) .workspace td,
body:has(.admin-layout) .workspace th {
  background: #14251a !important;
  color: #f4f7f2 !important;
  border-color: #34533d !important;
}

body:has(.admin-layout) .workspace th {
  background: #203b29 !important;
}

body:has(.admin-layout) .workspace input,
body:has(.admin-layout) .workspace select,
body:has(.admin-layout) .workspace textarea {
  background: #0b1510 !important;
  color: #ffffff !important;
  border: 1px solid #45664d !important;
}

body:has(.admin-layout) .workspace input::placeholder,
body:has(.admin-layout) .workspace textarea::placeholder {
  color: #b7c8b9 !important;
}

body:has(.admin-layout) .sidebar button,
body:has(.admin-layout) .workspace button,
body:has(.admin-layout) .workspace .button {
  background: #203b29 !important;
  color: #ffffff !important;
  border: 1px solid #45664d !important;
}

body:has(.admin-layout) .sidebar button.active,
body:has(.admin-layout) .workspace button.primary,
body:has(.admin-layout) .workspace button[type="submit"] {
  background: #347348 !important;
  color: #ffffff !important;
  border-color: #5a9b69 !important;
}

body:has(.admin-layout) .workspace a {
  color: #a9ddb2 !important;
}

body:has(.admin-layout) .workspace img {
  border-color: #34533d !important;
}

