:root{
  --sand-bg:#DFB25D;
  --sand-bg-2:#bf9f62;
  --sand-panel:#fef9dd;
  --sand-panel-2:rgba(254,249,221,.92);
  --sand-border:#c4a756;
  --sand-border-2:rgba(196,167,86,.55);
  --sand-text:#4c3c18;
  --sand-muted:#7a5c2a;
  --sand-link:#a07b32;
  --sand-link-hover:#9c7338;
  --sand-accent:#AB8452;
  --sand-accent-2:#94653a;
  --shadow-soft:0 6px 14px rgba(0,0,0,.08);
  --shadow-md:0 14px 28px rgba(0,0,0,.14);
  --shadow-lg:0 22px 45px rgba(0,0,0,.20);
  --radius:12px;
  --radius-sm:10px;
  --panel-pad:16px;
  --header-h:190px;
  --left-w:20%;
  --gap:16px;
  --line:36px;
  --line-sub:32px;
}

html,body{
  max-width:100%;
  overflow-x:hidden;
}

body.tpl-body{
  margin:0;
  padding:0;
  font-family:Tahoma,Arial,Verdana,sans-serif;
  font-size:14px;
  line-height:1.55;
  color:var(--sand-text);
  background:var(--sand-bg) url("../images/bg.jpg") top center repeat-x;
}

.container-fluid{
  padding-left:22px;
  padding-right:22px;
}

@media (max-width:576px){
  .container-fluid{
    padding-left:14px;
    padding-right:14px;
  }
}

img,video,iframe{
  max-width:100%;
  height:auto;
}

a{
  color:var(--sand-link);
  text-decoration:none;
}
a:hover{
  color:var(--sand-link-hover);
  text-decoration:none;
}

#top_menu{ display:none !important; }

.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  background:var(--sand-bg-2) url("../images/header_bg.jpg") top center no-repeat;
  background-size:contain;
}

.site-header-inner{
  height:var(--header-h);
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  padding:0 0 12px 0;
}

.site-logo{
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
}

.site-logo-img{
  width:120px;
  max-height:34px;
  height:auto;
  display:block;
}

.site-logo-text{
  font-size:18px;
  font-weight:bold;
  letter-spacing:.3px;
  color:var(--sand-accent-2);
}

.btn-sand{
  display:inline-block;
  background:var(--sand-accent) !important;
  color:#fff !important;
  font-weight:700;
  border-radius:10px;
  padding:8px 12px;
  box-shadow:0 2px 0 rgba(0,0,0,.12),0 1px 0 rgba(255,255,255,.20) inset;
  cursor:pointer;
}
.btn-sand:hover{
  filter:brightness(.96);
}

.header-divider{
  height:30px;
  position:relative;
  width:100%;
  background:linear-gradient(to bottom,rgba(0,0,0,.22),rgba(0,0,0,0));
}

.header-divider::after{
  content:"";
  position:absolute;
  left:0; right:0;
  bottom:-1px;
  height:12px;
  background:linear-gradient(to bottom,rgba(254,249,221,.98),rgba(223,178,93,.12));
  box-shadow:0 16px 22px rgba(0,0,0,.14);
}

.site-news{
  padding:14px 0 4px 0;
}

.site-main{
  padding:16px 0 26px 0;
  background:linear-gradient(to bottom,rgba(223,178,93,.08),rgba(223,178,93,0));
}

.layout{
  display:flex;
  align-items:flex-start;
  gap:var(--gap);
  width:100%;
}

.layout-left{
  flex:0 0 var(--left-w);
  width:var(--left-w);
  max-width:var(--left-w);
  position:sticky;
  top:calc(var(--header-h) + 10px);
  height:calc(100vh - (var(--header-h) + 18px));
  overflow:auto;
}

.layout-main{
  flex:1 1 auto;
  min-width:0;
}

.layout-right{
  flex:0 0 18%;
  width:18%;
  max-width:18%;
  position:sticky;
  top:calc(var(--header-h) + 10px);
  height:calc(100vh - (var(--header-h) + 18px));
  overflow:auto;
}

.sand-panel{
  background:var(--sand-panel);
  border-radius:var(--radius);
  padding:var(--panel-pad);
  box-shadow:var(--shadow-md),0 2px 0 rgba(255,255,255,.35) inset;
}

.sand-panel-left{
  padding:0;
  overflow:hidden;
}

.sand-panel-main{
  min-height:520px;
  background:rgba(254,249,221,.98);
  box-shadow:var(--shadow-lg),0 2px 0 rgba(255,255,255,.35) inset;
}

.component-wrap{
  overflow:hidden;
  margin:0 auto;
}

.layout-left ul,
.layout-left ol{
  list-style:none;
  margin:0;
  padding:0;
}

.layout-left .module,
.layout-left .moduletable{
  margin:0;
  padding:0;
}

.layout-left h3{
  margin:0;
  padding:10px 12px;
  font-size:13px;
  font-weight:800;
  color:#4c3c18;
  background:linear-gradient(to bottom,rgba(223,178,93,.55),rgba(223,178,93,.18));
  box-shadow:0 1px 0 rgba(255,255,255,.55) inset,0 -1px 0 rgba(0,0,0,.06) inset;
}

.layout-left ul.menu{
  margin:0;
  padding:0;
}

.layout-left ul.menu > li{
  margin:0;
  padding:0;
}

.layout-left ul.menu > li > a{
  display:flex;
  align-items:center;
  height:var(--line);
  line-height:var(--line);
  padding:0 12px;
  margin:0;
  background:rgba(223,178,93,.08);
  color:var(--sand-muted);
  font-size:13px;
  text-decoration:none;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  box-shadow:0 1px 0 rgba(255,255,255,.28) inset;
}

.layout-left ul.menu > li > a::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:3px;
  background:rgba(160,123,50,.35);
  margin-right:10px;
  flex:0 0 8px;
}

.layout-left ul.menu > li > a:hover{
  background:rgba(223,178,93,.18);
  color:var(--sand-link-hover);
  box-shadow:0 1px 0 rgba(255,255,255,.40) inset,0 10px 16px rgba(0,0,0,.10);
  text-decoration:none;
}

.layout-left ul.menu > li#current > a{
  background:rgba(223,178,93,.42);
  color:#4c3c18;
  font-weight:800;
  box-shadow:4px 0 0 rgba(171,132,82,.95) inset,0 12px 18px rgba(0,0,0,.12);
}

.layout-left ul.menu > li#current > a::before{
  background:rgba(160,123,50,.90);
}

.layout-left ul.menu li ul{
  margin:0;
  padding:0;
}

.layout-left ul.menu li ul li a{
  display:flex;
  align-items:center;
  height:var(--line-sub);
  line-height:var(--line-sub);
  padding:0 12px 0 26px;
  margin:0;
  background:rgba(223,178,93,.06);
  color:rgba(122,92,42,.95);
  font-size:12.5px;
  text-decoration:none;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  box-shadow:0 1px 0 rgba(255,255,255,.22) inset;
}

.layout-left ul.menu li ul li a:hover{
  background:rgba(223,178,93,.14);
  color:var(--sand-link-hover);
  text-decoration:none;
}

.layout-left::-webkit-scrollbar,
.layout-right::-webkit-scrollbar{
  width:10px;
}
.layout-left::-webkit-scrollbar-track,
.layout-right::-webkit-scrollbar-track{
  background:rgba(255,255,255,.14);
}
.layout-left::-webkit-scrollbar-thumb,
.layout-right::-webkit-scrollbar-thumb{
  background:rgba(160,123,50,.55);
}
.layout-left::-webkit-scrollbar-thumb:hover,
.layout-right::-webkit-scrollbar-thumb:hover{
  background:rgba(160,123,50,.85);
}

.contentheading,
.componentheading{
  font-size:18px !important;
  font-weight:800 !important;
  color:#4c3c18 !important;
}

.sand-panel-main p{
  margin:0 0 10px 0;
  font-size:14px;
  line-height:1.6;
}

.sand-panel-main ul{
  margin:8px 0 12px 0;
  padding-left:20px;
}
.sand-panel-main li{
  margin:4px 0;
}

.sand-panel-main blockquote{
  margin:12px 0;
  padding:10px 14px;
  background:rgba(223,178,93,.12);
  border-left:4px solid rgba(171,132,82,.95);
}

.sand-panel-main table{
  width:100%;
  border-collapse:collapse;
  margin:12px 0 14px 0;
  background:rgba(254,249,221,.98);
  border-radius:10px;
  overflow:hidden;
}

.sand-panel-main th,
.sand-panel-main td{
  padding:10px 10px;
  text-align:left;
  vertical-align:top;
  font-size:13px;
  color:#4c3c18;
}

.sand-panel-main th{
  background:rgba(223,178,93,.18);
  font-weight:800;
}

.sand-panel-main tr:hover td{
  background:rgba(223,178,93,.10);
}

.sand-panel-main input[type="text"],
.sand-panel-main input[type="email"],
.sand-panel-main input[type="password"],
.sand-panel-main input[type="number"],
.sand-panel-main select,
.sand-panel-main textarea{
  width:100%;
  max-width:560px;
  padding:8px 10px;
  background:rgba(254,249,221,.98);
  color:#4c3c18;
  font-size:14px;
  outline:none;
  border-radius:10px;
  border:none;
  box-shadow:0 0 0 1px rgba(160,123,50,.25) inset;
}

.sand-panel-main textarea{
  min-height:120px;
  resize:vertical;
}

.sand-panel-main input:focus,
.sand-panel-main select:focus,
.sand-panel-main textarea:focus{
  box-shadow:0 0 0 3px rgba(160,123,50,.16),0 0 0 1px rgba(160,123,50,.35) inset;
}

.sand-panel-main .button,
.sand-panel-main button,
.sand-panel-main input[type="submit"],
.sand-panel-main input[type="button"]{
  background:var(--sand-accent);
  color:#fff;
  font-weight:800;
  padding:8px 14px;
  cursor:pointer;
  font-size:13px;
  border-radius:10px;
  border:none;
  box-shadow:0 2px 0 rgba(0,0,0,.12);
}

.sand-panel-main .button:hover,
.sand-panel-main button:hover,
.sand-panel-main input[type="submit"]:hover,
.sand-panel-main input[type="button"]:hover{
  filter:brightness(.96);
}

#system-message{
  margin:0 0 12px 0;
}
#system-message dd{
  margin:0;
}
#system-message dd ul{
  margin:0;
  padding:10px 12px;
  list-style:none;
  background:rgba(223,178,93,.15);
  color:#4c3c18;
  font-weight:800;
  border-radius:12px;
}

#system-message dd.error ul{
  background:rgba(160,60,30,.10);
  color:#7a1c10;
}

#system-message dd.notice ul{
  background:rgba(223,178,93,.18);
  color:#6a4b1a;
}

.pagination{
  margin:14px 0 6px 0;
  padding:0;
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}

.pagination a,
.pagination span{
  display:inline-block;
  padding:6px 10px;
  background:rgba(254,249,221,.98);
  color:#4c3c18;
  text-decoration:none;
  font-size:13px;
  border-radius:10px;
}

.pagination a:hover{
  background:rgba(223,178,93,.18);
  text-decoration:underline;
}

.offcanvas-sand{
  background:var(--sand-panel);
  color:var(--sand-text);
}

.offcanvas-sand .offcanvas-title{
  color:#79531b;
  font-weight:800;
}

.offcanvas-sand .offcanvas-body{
  padding:0;
}

#offcanvasMenuBody .sand-panel{
  border:0;
  box-shadow:none;
  padding:0;
}

.site-footer{
  padding:12px 0 18px 0;
}

.site-footer-inner{
  text-align:center;
  color:var(--sand-link);
  font-size:13px;
}

@media (max-width:991px){
  .layout{
    display:block;
  }
  .layout-left{
    position:static;
    width:100%;
    max-width:100%;
    height:auto;
    overflow:visible;
    margin-bottom:12px;
  }
  .layout-main{
    width:100%;
  }
  .sand-panel-main{
    min-height:auto;
  }
}

@media (max-width:576px){
  :root{
    --header-h:110px;
  }
  .site-header-inner{
    height:var(--header-h);
    padding-bottom:8px;
  }
  .site-logo-img{
    width:120px;
    max-height:30px;
  }
}

.offcanvas{
  z-index: 99999 !important;
}
.offcanvas-backdrop{
  z-index: 99998 !important;
}
.offcanvas.show,
.offcanvas.showing{
  visibility: visible !important;
  transform: none !important;
}

.sg-drawer{ display:none; }
.sg-drawer[aria-hidden="false"]{ display:block; }

.sg-drawer__backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 5000;
}

.sg-drawer__panel{
  position: fixed;
  top: 0;
  left: 0;
  width: min(360px, 88vw);
  height: 100vh;
  z-index: 5001;

  background: rgba(254,249,221,.98);
  box-shadow: 0 18px 45px rgba(0,0,0,.35);

  display: flex;
  flex-direction: column;
}

.sg-drawer__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  padding: 12px 12px;

  background: linear-gradient(
    to bottom,
    rgba(223,178,93,.55),
    rgba(223,178,93,.18)
  );
}

.sg-drawer__title{
  font-weight: 800;
  color: #4c3c18;
  font-size: 14px;
}

.sg-drawer__body{
  padding: 0;
  overflow: auto;
}

.sg-drawer-open{
  overflow: hidden;
}