@charset "utf-8";

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

html {
  font-family: sans-serif;
  /* 1 */
  -ms-text-size-adjust: 100%;
  /* 2 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
  display: block;
}

body {
  line-height: 1;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

audio,
canvas,
progress,
video {
  display: inline-block;
  /* 1 */
  vertical-align: baseline;
  /* 2 */
}

audio:not([controls]) {
  display: none;
  height: 0;
}

[hidden],
template {
  display: none;
}

a {
  background: transparent;
  text-decoration: none;
}

a:active,
a:hover {
  outline: 0;
}

abbr[title] {
  border-bottom: 1px dotted;
}

/**
 * Address styling not present in Safari and Chrome.
 */

dfn {
  font-style: italic;
}

img {
  border: 0;
}

svg:not(:root) {
  overflow: hidden;
}

figure {
  margin: 1em 40px;
}

hr {
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  height: 0;
}

pre {
  overflow: auto;
}

code,
kbd,
pre,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

button,
input,
optgroup,
select,
textarea {
  color: inherit;
  /* 1 */
  font: inherit;
  /* 2 */
  margin: 0;
  /* 3 */
}

button {
  overflow: visible;
}

button,
select {
  text-transform: none;
}

button,
html input[type="button"],
/* 1 */
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: button;
  appearance: button;
  /* 2 */
  cursor: pointer;
  /* 3 */
}

button[disabled],
html input[disabled] {
  cursor: default;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

input {
  line-height: normal;
}

input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box;
  /* 1 */
  padding: 0;
  /* 2 */
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

input[type="search"] {
  -webkit-appearance: textfield;
  appearance: textfield;
  /* 1 */
  -moz-box-sizing: content-box;
  -webkit-box-sizing: content-box;
  /* 2 */
  box-sizing: content-box;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
}

legend {
  border: 0;
  /* 1 */
  padding: 0;
  /* 2 */
}

textarea {
  overflow: auto;
}

optgroup {
  font-weight: bold;
}

label {
  display: inline-block;
}

img {
  border: 0px none #FFF;
}

* {
  box-sizing: border-box;
}

*::before,
*::after {
  box-sizing: border-box;
}

.navbar-logo::after,
.navbar-button::after,
.data-table::after,
.page-row::after,
.form-group::after,
.form-action::after,
.page-header::after {
  clear: both;
}

#navbar::before,
#navbar::after,
.navbar-logo::before,
.navbar-logo::after,
.page-header::before,
.page-header::after,
.page-row::before,
.page-row::after,
.form-group::before,
.form-group::after,
.form-action::before,
.form-action::after {
  content: " ";
  display: table;
}

html,
body {
  height: 100%;
}

body {
  font: 100%/1.4 "Microsoft JhengHei", Arial, Helvetica, sans-serif;
  background-color: #FFF;
  margin: 0;
  padding: 0;
  color: #393939;
  font-size: 16px;
  line-height: 1.5;
}

#navbar {
  background: #2b7dbc linear-gradient(to bottom, #3b98d6 0px, #197ec1 100%) repeat scroll 0 0;
  border-radius: 0;
  border-width: 0;
  box-shadow: none;
  margin: 0;
  min-height: 45px;
  padding-left: 0;
  padding-right: 0;
  position: relative;
  z-index: 2000;
}

#navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 10px;
  padding-right: 10px;
}

#navbar .navbar-logo {
  display: flex;
  align-items: center;
}

.navbar-logo a {
  color: #fff;
  height: auto;
  padding: 10px 0px 10px 0px;
  display: inline-block;
  font-size: 24px;
  line-height: 20px;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.navbar-logo .menu-bar {
  display: inline-block;
  padding: 10px 15px;
  font-size: 20px;
  color: #fff;
  margin-right: 5px;
}

#navbar .navbar-button {
  float: none;
}

.light-blue {
  color: #93cbf9 !important;
}

.navbts li {
  display: inline-block;
}

.navbts .logout,
.navbts .blue,
.navbts .black {
  color: #fff;
  font-size: 18px;
  padding: 10px;
  display: block;
  line-height: 25px;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.navbts .blue {
  background-color: #62a8d1;
}

.navbts .blue:hover {
  background-color: #579ec8;
}

.navbts .logout {
  background-color: #d12723;
}

.navbts .logout:hover {
  background-color: #B12320;
}

.navbts .black {
  background-color: #999;
}

.navbts .black:hover {
  background-color: #777;
}

#container::before {
  background-color: #fff;
  bottom: 0;
  content: "";
  display: block;
  max-width: inherit;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: -2;
}

#container {
  position: relative;
  height: 100%;
}

#container::after,
.page-main-edit::after,
.row::after {
  clear: both;
}

#container::before,
#container::after,
.page-main-edit::before,
.page-main-edit::after,
.row::before,
.row::after {
  content: " ";
  display: table;
  position: relative;
}

#sidebar::before {
  background-color: inherit;
  border-color: inherit;
  border-style: inherit;
  border-width: inherit;
  bottom: 0;
  content: "";
  display: block;
  position: fixed;
  top: 0;
  width: inherit;
  z-index: -1;
}

#sidebar {
  float: left;
  padding-left: 0;
  padding-right: 0;
  position: absolute;
  width: 190px;
  background-color: #f2f2f2;
  border-color: #ccc;
  border-style: solid;
  border-width: 0 1px 0 0;
  transition: all 0.3s ease;
  z-index: 1000;
}

.nav-list {
  list-style: outside none none;
  margin: 0;
  padding: 0;
}

.nav-list>li {
  border-style: solid;
  border-width: 1px 0 0;
  border-color: #e5e5e5;
  display: block;
  float: none;
  padding: 0;
  position: relative;
}

.nav-list>li:last-child {
  border-bottom-width: 1px;
}

.nav-list>li::before {
  background-color: #629cc9;
  content: "";
  display: none;
  height: 41px;
  left: 0;
  max-width: 3px;
  overflow: hidden;
  position: absolute;
  top: -1px;
  width: 3px;
  z-index: 1;
}

.nav-list>li:hover::before {
  display: block;
}

.nav-list>li.active .submenu {
  display: block;
}

.nav-list>li.active::after {
  -moz-border-bottom-colors: none;
  -moz-border-left-colors: none;
  -moz-border-right-colors: none;
  -moz-border-top-colors: none;
  border-color: #2b7dbc;
  border-image: none;
  border-style: solid;
  border-width: 0 2px 0 0;
  bottom: 0;
  content: "";
  display: block;
  position: absolute;
  right: -2px;
  top: -1px;
  z-index: 1;
}

.nav-list>li>a {
  display: block;
  font-size: 16px;
  height: 39px;
  line-height: 39px;
  padding-left: 7px;
  text-decoration: none;
  text-shadow: none !important;
  background-color: #f8f8f8;
  color: #585858;
  position: relative;
}

.nav-list>li:hover>a {
  background-color: #fff;
  color: #266cad;
  transition-duration: 0.3s;
}


.nav-list>li.active>a {
  color: #2b7dbc;
  font-weight: 700;
}

.nav-list>li.active>a::after {
  -moz-border-bottom-colors: none;
  -moz-border-left-colors: none;
  -moz-border-right-colors: none;
  -moz-border-top-colors: none;
  border-color: transparent;
  border-image: none;
  border-style: solid;
  border-width: 14px 10px;
  content: "";
  display: block;
  position: absolute;
  right: 0;
  top: 4px;
  -moz-border-right-colors: #2b7dbc;
  border-right-color: #2b7dbc;
}

.nav-list>li.active>a,
.nav-list>li.active>a:hover,
.nav-list>li.active>a:focus {
  background-color: #fff;
}


.nav-list>li a>.arrow {
  display: block;
  font-size: 18px;
  height: 14px;
  line-height: 14px;
  padding: 0;
  position: absolute;
  right: 10px;
  text-align: center;
  text-shadow: none;
  top: 12px;
  width: 14px !important;
}

.nav-list>li>a>.menu-icon {
  display: inline-block;
  font-size: 18px;
  font-weight: 400;
  margin-right: 2px;
  min-width: 30px;
  text-align: center;
  vertical-align: middle;
}

.nav-list>li .submenu {
  line-height: 1.5;
  list-style: outside none none;
  margin: 0;
  padding: 0;
  position: relative;
  border-top: 1px solid #e5e5e5;
  display: none;
}

.nav-list>li>.submenu::before {
  -moz-border-bottom-colors: none;
  -moz-border-left-colors: none;
  -moz-border-right-colors: none;
  -moz-border-top-colors: none;
  border-color: -moz-use-text-color;
  border-image: none;
  border-style: dotted;
  border-width: 0 0 0 1px;
  bottom: 0;
  content: "";
  display: block;
  left: 18px;
  position: absolute;
  top: 0;
  z-index: 1;
}

.nav-list>li>.submenu::before,
.nav-list>li>.submenu>li::before {
  border-color: #9dbdd6;
}

.nav-list>li>.submenu>li::before {
  -moz-border-bottom-colors: none;
  -moz-border-left-colors: none;
  -moz-border-right-colors: none;
  -moz-border-top-colors: none;
  border-color: -moz-use-text-color;
  border-image: none;
  border-style: dotted;
  border-width: 1px 0 0;
  content: "";
  display: block;
  left: 20px;
  position: absolute;
  top: 20px;
  width: 7px;
  z-index: 1;
  border-color: #9dbdd6;
}

.nav-list>li .submenu>li {
  margin-left: 0;
  position: relative;
}

.nav-list>li>.submenu>li:first-child>a {
  border-top-width: 0;
}

.nav-list>li .submenu>li>a {
  border-top-style: dotted;
  border-top-width: 1px;
  display: block;
  margin: 0;
  padding: 7px 0 9px 37px;
  position: relative;
  background-color: #fff;
  border-top-color: #e4e4e4;
  color: #616161;
}

.nav-list>li .submenu>li a>.menu-icon {
  background-color: inherit;
  display: none;
  font-size: 12px;
  font-weight: 400;
  height: auto;
  left: 10px;
  line-height: 12px;
  position: absolute;
  text-align: center;
  top: 14px;
  width: 18px;
  z-index: 1;
}

.nav-list>li .submenu>li>a:hover,
.nav-list>li .submenu>li.active>a {
  background-color: #f1f5f9;
  color: #4b88b7;
}

.nav-list>li .submenu>li.active>a>.menu-icon,
.nav-list>li .submenu>li:hover>a>.menu-icon {
  display: inline-block;
}

#main-content {
  margin-left: 190px;
  transition: all 0.3s ease;
}

@media only screen and (min-width: 992px) {
  body.sidebar-toggled #sidebar {
  z-index: 1000;
    width: 0;
    opacity: 0;
    border-right-width: 0;
    overflow: hidden;
  }
  body.sidebar-toggled #main-content {
    margin-left: 0;
  }
}

#navigations {
  background-color: #f5f5f5;
  border-bottom: 1px solid #e5e5e5;
  line-height: 40px;
  min-height: 41px;
  padding: 0 12px 0 0;
  position: relative;
  z-index: auto;
}

.content-inner {
  width: 100%;
}

.navigation {
  background-color: transparent;
  border-radius: 0;
  color: #333;
  display: inline-block;
  font-size: 16px;
  line-height: 20px;
  margin: 6px 22px 0 12px;
  padding: 0;
}

.navigation .home-icon {
  font-size: 20px;
  margin-left: 2px;
  margin-right: 2px;
  vertical-align: top;
}

.navigation>li {
  display: inline-block;
}

.navigation>li,
.navigation>li.active {
  color: #555;
  padding: 0 3px;
}

.navigation>li+li::before {
  color: #b2b6bf;
  content: "\f105";
  font-family: FontAwesome;
  font-size: 14px;
  margin: 0 8px 0 0;
  padding: 0;
  position: relative;
  top: 1px;
}

.navigation>li>a {
  color: #4c8fbd;
  display: inline-block;
}

.content {
  background-color: #fff;
  margin: 0;
  padding: 8px 20px 24px;
  position: relative;
}

.page-header {
  border-bottom: 1px dotted #ddd;
  margin: 0px 0px 15px 0px;
  padding-bottom: 7px;
  padding-top: 7px;
  max-height: 64px;
}

.page-header h1 {
  color: #2679b5;
  font-size: 24px;
  font-weight: lighter;
  margin: 0 8px;
  padding: 0;
}

.page-header h1 small {
  color: #8089a0;
  font-size: 14px;
  font-weight: 400;
  margin: 0 6px;
}

.more-icon {
  text-align: center;
}


.page-main-edit {
  max-width: 100%;
}

.order-status {
  line-height: 40px;
  padding: 0px 0px 10px 0px;
}

.saving_data {
  background: url('../images/ajax_loading.gif') no-repeat right center;
  padding-right: 20px;
}

input[type="text"].saving_data {
  transition-duration: 0s;
}

.page-row {
  /*    background-color: #eff3f8;  */
  padding-bottom: 12px;
  padding-top: 12px;
  margin: 0 !important;
  margin-left: -12px;
  margin-right: -12px;
  height: 58px;
}

.data-table {
  border: 1px solid #ddd;
}

.data-table a {
  color: #4c8fbd;
}

.data-table a:hover,
.data-table a:focus {
  text-decoration: underline;
}

.table {
  max-width: 100%;
  width: 100%;
}

.table>thead>tr {
  background: linear-gradient(to bottom, #f8f8f8 0px, #ececec 100%) repeat-x scroll 0 0 #f2f2f2;
  color: #707070;
  font-weight: 400;
}


.table tr th.central {
  text-align: center;
}

.table tr th {
  line-height: 27px;
}

.table>tbody>tr>td {
  line-height: 36px;
}

.table tr th,
.table>tbody>tr>td {
  padding: 8px;
  vertical-align: top;
}

.table>tbody>tr:nth-child(2n+1) {
  background-color: #f9f9f9;
}

.table>tbody>tr>td,
.table>thead>tr>th {
  border-bottom: 1px solid #ddd;
}

.table tr:hover,
.table>tbody>tr:hover {
  background-color: #eff4f7;
  opacity: 1;
}

.btn {
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-block;
  padding: 6px 12px;
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  -ms-touch-action: manipulation;
  touch-action: manipulation;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-image: none;
}

.btn-primary {
  color: #fff;
  background-color: #337ab7;
  border-color: #2e6da4;
}

.btn-primary:hover {
  color: #fff;
  background-color: #286090;
  border-color: #204d74;
}

.btn-default {
  color: #333;
  background-color: #fff;
  border-color: #ccc;
}

.btn-default:hover {
  color: #333;
  background-color: #e6e6e6;
  border-color: #adadad;
}

.btn-success {
  color: #fff;
  background-color: #5cb85c;
  border-color: #4cae4c;
}

.btn-success:hover {
  color: #fff;
  background-color: #449d44;
  border-color: #398439;
}

.btn-info {
  color: #fff;
  background-color: #5bc0de;
  border-color: #46b8da;
}

.btn-info:hover {
  color: #fff;
  background-color: #31b0d5;
  border-color: #269abc;
}

.btn-warning {
  color: #fff;
  background-color: #f0ad4e;
  border-color: #eea236;
}

.btn-warning:hover {
  color: #fff;
  background-color: #ec971f;
  border-color: #d58512;
}

.btn-danger {
  color: #fff;
  background-color: #d9534f;
  border-color: #d43f3a;
}

.btn-danger:hover {
  color: #fff;
  background-color: #c9302c;
  border-color: #ac2925;
}

.btn-default:hover {
  color: #333;
  background-color: #e6e6e6;
  border-color: #adadad;
}



.btn-group>.btn {
  font-size: 24px;
  line-height: 24px;
  padding-bottom: 1px;
  margin-right: 2px;
  width: 23px;
  height: 30px;
  position: relative;
}

.btn-info,
.btn-info:focus {
  background-color: #6fb3e0 !important;
  border-color: #6fb3e0;
}

.btn-info:hover,
.btn-info:active {
  background-color: #4f99c6 !important;
  border-color: #6fb3e0;
}

.btn-edit,
.btn-edit:focus {
  color: #6fb3e0 !important;
}



.btn-remove,
.btn-remove:focus {
  color: #d15b47 !important;
}



.btn-moveup,
.btn-moveup:focus,
.btn-movedown,
.btn-movedown:focus {
  background-color: #87b87f !important;
  border-color: #87b87f;
}

.btn-moveup:hover,
.btn-moveup:active,
.btn-movedown:hover,
.btn-movedown:active {
  background-color: #629b58 !important;
  border-color: #629b58;
}

.btn-submit,
.btn-submit:focus,
.btn-reset,
.btn-reset:focus {
  border-width: 5px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.42857;
  padding: 6px 12px;
}

.btn-submit,
.btn-submit:focus {
  background-color: #6fb3e0 !important;
  border-color: #6fb3e0;
}

.btn-submit:hover,
.btn-submit:active {
  background-color: #b74635 !important;
  border-color: #d15b47;
}

.btn-reset,
.btn-reset:focus {
  background-color: #abbac3 !important;
  border-color: #abbac3;
}

.btn-reset:hover,
.btn-reset:active {
  background-color: #8b9aa3 !important;
  border-color: #abbac3;
}

.toolmenus {
  text-align: right;
  float: right;
  padding: 0px 0px 5px 0px;
}

.toolmenus>.btn {
  position: relative;
}

.toolmenus>.btn {
  text-shadow: none;
  font-size: 16px;
  line-height: 12px;
  padding-bottom: 2px;
}

.toolmenus i {
  color: #ffffff;
}

.btn-add,
.btn-send,
.btn-cancel,
.btn-b2 {
  height: 42px;
  color: #ffffff;
  border-radius: 5px;
  padding: 0px 10px 0px 10px;
}

.btn-add {
  border-color: #6fb3e0;
  background: #2a8bcb linear-gradient(to bottom, #3b98d6 0px, #197ec1 100%) repeat-x scroll 0 0 !important;
}

.btn-add:hover {
  background: #1d6fa6 linear-gradient(to bottom, #267eb8 0px, #136194 100%) repeat-x scroll 0 0 !important;
}

.btn-send {
  background: #2a8bcb linear-gradient(to bottom, #3b98d6 0px, #197ec1 100%) repeat-x scroll 0 0 !important;
  border-color: #6fb3e0;
}

.btn-send:hover {
  background: #1d6fa6 linear-gradient(to bottom, #267eb8 0px, #136194 100%) repeat-x scroll 0 0 !important;
}

.btn-cancel {
  background: #2a8bcb linear-gradient(to bottom, #898989 0px, #696969 100%) repeat-x scroll 0 0 !important;
  border-color: #6fb3e0;
}

.btn-cancel:hover {
  background: #1d6fa6 linear-gradient(to bottom, #7c7c7c 0px, #5c5c5c 100%) repeat-x scroll 0 0 !important;
}

.btn-b2 {
  background: #ffb44b linear-gradient(to bottom, #ffbf66 0px, #ffa830 100%) repeat-x scroll 0 0 !important;
  border-color: #6fb3e0;
}

.btn-b2:hover {
  background: #fe9e19 linear-gradient(to bottom, #fa3 0px, #fc9200 100%) repeat-x scroll 0 0 !important;
}

.btn-add i,
.btn-send i,
.btn-cancel i,
.btn-b2 i {
  display: inline-block;
  font-size: 32px;
  text-align: center;
}

.btn-add i {
  padding-top: 5px;
}

.btn-add i,
.btn-add>span,
.btn-send i,
.btn-send>span,
.btn-cancel i,
.btn-cancel>span,
.btn-b2 i,
.btn-b2>span {
  vertical-align: middle;
}

.btn-tool,
.btn-tool:focus {
  background-color: #FFFFFF !important;
  border-color: #6fb3e0;
}

.btn-tool:hover,
.btn-tool:active {
  background-color: #eef5fa !important;
  border-color: #8fbcd9;
  color: #5896bf !important;
}

.btn-of {
  padding: 5px 0px 0px 0px;
}

/* ?????? */
.btn-lk1 {
  height: 36px;
  color: #ffffff;
  border-radius: 5px;
  padding: 0px 10px 0px 10px;
  display: block;
}

.btn-lk1 {
  border-color: #6fb3e0;
  background: #2a8bcb linear-gradient(to bottom, #3b98d6 0px, #197ec1 100%) repeat-x scroll 0 0 !important;
}

.btn-lk1:hover {
  background: #1d6fa6 linear-gradient(to bottom, #267eb8 0px, #136194 100%) repeat-x scroll 0 0 !important;
}

.data-table .btn-lk1 {
  color: #ffffff;
}

.data-table .btn-lk1:hover {
  text-decoration: none;
}

/* ????????*/
input.more[type="checkbox"]:checked,
input.more[type="radio"]:checked,
input.more[type="checkbox"]:focus,
input.more[type="radio"]:focus {
  outline: 0 none !important;
}

label input.more[type="checkbox"],
label input.more[type="radio"] {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px !important;
  position: absolute;
  width: 1px !important;
  z-index: -100 !important;
}

input.more[type="checkbox"],
input.more[type="radio"] {
  cursor: pointer;
  opacity: 0;
  z-index: 1;
}

input.more[type="checkbox"]+.lbl::before,
input.more[type="radio"]+.lbl::before {
  background-color: #fafafa;
  border: 1px solid #c8c8c8;
  border-radius: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  color: #32a3ce;
  content: "\f10c";
  cursor: pointer;
  display: inline-block;
  font-family: fontAwesome;
  font-size: 12px;
  font-weight: 400;
  height: 16px;
  line-height: 14px;
  margin-right: 1px;
  min-width: 16px;
  position: relative;
  text-align: center;
  top: -1px;
}

input.more.switch[type="checkbox"] {
  height: 25px;
}

input.more.switch {
  width: 60px;
}

input.more.switch[type="checkbox"]+.lbl::after {
  background-color: #fff;
  border-radius: 100%;
  box-shadow: 0 1px 1px 1px rgba(0, 0, 0, 0.3);
  color: #aaa;
  content: "\f10c";
  font-family: fontAwesome;
  font-size: 15px;
  font-weight: 400;
  height: 22px;
  left: -3px;
  letter-spacing: 0;
  line-height: 22px;
  position: absolute;
  text-align: center;
  text-shadow: none;
  top: -2px;
  transition: left 0.3s ease 0s;
  width: 22px;
}

input.more.switch[type="checkbox"]+.lbl::before {
  background-color: #8b9aa3;
  border: 1px solid #8b9aa3;
  border-radius: 12px;
  box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.15) inset;
  box-shadow: none;
  color: #fff;
  content: "YES\a0\a0\a0\a0\a0\a0\a0\a0\a0\a0\a0NO";
  float: left;
  font-size: 12px;
  height: 24px;
  line-height: 24px;
  margin-right: 0;
  overflow: hidden;
  padding: 0;
  top: auto;
  position: relative;
  text-align: left;
  text-indent: 3px;
  text-shadow: 0 0 0 #fff;
  transition: all 0.3s ease 0s;
  width: 56px;
}

input.more.switch.switch-o[type="checkbox"]+.lbl::before {
  text-indent: -30px;
}

input.more.switch.switch-o[type="checkbox"]+.lbl::before {
  content: "YES\a0\a0\a0\a0\a0\a0\a0\a0\a0\a0\a0NO";
}

input.more.switch[type="checkbox"]:checked+.lbl::before {
  background-color: #468fcc;
  border-color: #468fcc;
  text-indent: 7px;
}

input.more.switch[type="checkbox"]:checked+.lbl::after {
  background-color: #fff;
  color: #468fcc;
  left: 34px;
}

input.more.switch[type="checkbox"]+.lbl::after {
  background-color: #fff;
  color: #939393;
  content: " ";
  font-family: fontAwesome;
  font-size: 1.2em;
  height: 20px;
  left: 2px;
  letter-spacing: 0;
  line-height: 20px;
  position: absolute;
  text-shadow: none !important;
  top: 2px;
  transition: all 0.3s ease 0s;
  width: 20px;
  text-align: center;
  padding: 1px 0px 0px 0px;
}

input.more.switch[type="checkbox"]:checked+.lbl::after {
  background-color: #fff;
  color: #98a0a5;
  left: 34px;
}

/* ??????璇???*/
input.more.input-lg[type="checkbox"]+.lbl::before {
  border-radius: 4px;
  font-size: 16px;
  height: 24px;
  line-height: 21px;
  min-width: 24px;
  top: auto;
}

input[type="checkbox"].more+.lbl::before,
input[type="radio"].more+.lbl::before {
  background-color: #fafafa;
  border: 1px solid #c8c8c8;
  border-radius: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  color: #32a3ce;
  content: "\a0";
  cursor: pointer;
  display: inline-block;
  font-family: fontAwesome;
  font-size: 12px;
  font-weight: 400;
  height: 16px;
  line-height: 14px;
  margin-right: 1px;
  min-width: 16px;
  position: relative;
  text-align: center;
  top: -1px;
}

input[type="checkbox"].more:checked+.lbl::before,
input[type="radio"].more:checked+.lbl::before {
  background-color: #f5f8fc;
  border-color: #adb8c0;
  content: "\f00c";
  display: inline-block;
}

.checkbox label input[type="checkbox"].more+.lbl,
.radio label input[type="radio"].more+.lbl {
  margin-left: -10px;
}

input[type="checkbox"].more+.lbl,
input[type="radio"].more+.lbl {
  cursor: pointer;
  display: inline-block;
  font-weight: 400;
  line-height: 20px;
  min-height: 18px;
  min-width: 18px;
  position: relative;
}

.bigger-120 {
  font-size: 120% !important;
}

/* ??ｇ? */
input.more.input-lg[type="radio"]+.lbl::before {
  font-size: 14px;
  height: 24px;
  line-height: 24px;
  min-width: 24px;
  top: auto;
}

input.more[type="radio"]+.lbl::before {
  border-radius: 100%;
  font-family: FontAwesome;
  font-size: 10px;
  height: 17px;
  line-height: 15px;
  min-width: 17px;
  text-shadow: 0 0 1px #32a3ce;
}

input.more[type="radio"]:checked+.lbl::before {
  content: "\f111";
}

/* ?豲?? */
.theme-wrap::after,
.theme-conf::after {
  clear: both;
}

.theme-wrap::before,
.theme-wrap::after,
.theme-conf::before,
.theme-conf::after {
  content: " ";
  display: table;
}


.theme-list {
  float: left;
  width: 22.7%;
  margin: 0px 3% 3% 0px;
  border: 1px solid #dddddd;
}

.theme-list:nth-child(4n) {
  margin-right: 0;
}

.theme-cover img {
  width: 100%;
}

.theme-conf {
  padding: 5px 6px;
  background: #ffffff;
  line-height: 33px;
  border-top: 1px solid #dddddd;
}

.theme-conf.used {
  background: #2f2f2f;
  color: #ffffff;
}

.theme-title {
  float: left;
}

.theme-used {
  float: right;
}

.btn-usetheme {
  border: 1px solid #aaaaaa;
  padding: 2px 7px 3px 7px;
  display: block;
  line-height: 22px;
  color: #08c;
  font-size: 16px;
  margin-top: 2px;
}

.btn-usetheme:hover {
  background: #e4e4e4;
}

.theme-conf.used .btn-usetheme {
  color: #ffffff;
  background: #428bca;
  border: 1px solid #428bca;
}

/* ?雓??豯?? */
.imgs-wrap::after,
.prodimgs-wrap::after {
  clear: both;
}

.imgs-wrap::before,
.imgs-wrap::after,
.prodimgs-wrap::before,
.prodimgs-wrap::after {
  content: " ";
  display: table;
}

.imgs-wrap,
.prodimgs-wrap {
  margin: 0px 0px 20px 0px;
}

.imgs-list {
  float: left;
  width: 23.7%;
  padding: 10px;
  border: 1px solid #dddddd;
  background-color: #fcfcfc;
  min-height: 270px;
  height: auto;
  margin: 0px 1% 1% 0px;
  text-align: center;
  border-radius: 4px;
}

.imgs-list:nth-child(4n) {
  margin-right: 0;
}

.imgs-wrap::after {
  content: " ";
  display: table;
  clear: both;
}

.imgs-list textarea {
  width: 100%;
  height: 88px;
  margin: 5px 0px;
  word-break: break-all;
}

.imgs-list .img {
  height: 220px;
}

.imgs-list img {
  max-width: 100%;
  max-height: 220px;
}

.prodimgs-wrap .imgs-list .imgs {
  height: 230px;
  width: 230px;
}

.prodimgs-wrap .imgs-list img {
  max-height: 200px;
  max-width: 200px;
}

.photo-wrap .imgs-list {
  width: 18.7%;
}

.photo-wrap .imgs-list:nth-child(4n) {
  margin-right: 1%;
}

.photo-wrap .imgs-list:nth-child(5n) {
  margin-right: 0;
}

.photo-wrap .imgs-list textarea {
  height: 62px;
}

/* ??撠???*/
.web_info {
  display: inline-block;
  width: 30%;
  vertical-align: top;
  border: 1px solid #dddddd;
  margin: 5px 20px 20px 0px;
  min-height: 240px;
  height: auto !important;
  height: 240x;
}

.web_info h2 {
  background: #2a8bcb linear-gradient(to bottom, #3b98d6 0px, #197ec1 100%);
  line-height: 38px;
  padding: 0px 10px;
  color: #fff;
  font-size: 18px;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.web_info.c2 h2 {
  background: #85b558 linear-gradient(to bottom, #8ebf60 0px, #7daa50 100%);
}

.web_info.c3 h2 {
  background: #fe9e19 linear-gradient(to bottom, #fa3 0px, #fc9200 100%);
}

.web_info h3 {
  font-size: 17px;
  font-weight: bold;
  padding: 5px 10px 0px 10px;
}

.web_info p {
  font-size: 16px;
  padding: 5px 10px 5px 10px;
}

#contact-view .form-group div,
.form-group div {
  line-height: 36px;
}

.radio-lable label {
  padding: 5px 10px 0px 0px;
}

.radio-lable label span {
  padding: 5px 0px 0px 5px;
}

.view-login {
  background-color: #142849;
  background-image: radial-gradient(circle, #165387, #142849);
  background-repeat: no-repeat;
  padding-top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-group::after {
  clear: both;
}

.login-group::before,
.login-group::after {
  content: " ";
  display: table;
}

.login-group {
  width: 90%;
  max-width: 340px;
  padding: 30px 20px;
  text-align: center;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.login-group input[type="text"],
.login-group input[type="password"] {
  width: 100%;
  padding: 10px 10px 10px 10px;
  margin: 10px 0px 10px 0px;
}

.login-group #btnCancel,
.login-group #btnSubmit,
.login-group #btnForget {
  border: 0px;
  border-radius: 3px;
  width: 45%;
  padding: 5px;
  line-height: 40px;
  margin: 10px 0px;
  color: #fff;
  font-size: 18px;

}

.login-group #btnCancel,
.login-group #btnForget {
  background: #85b558;
  float: right;
}

.login-group #btnCancel:hover,
.login-group #btnForget:hover {
  background: #6c9842;
  transition: background 0.1s linear 0s;
}

.login-group #btnSubmit {
  background: #2a8bcb;
  float: left;
}

.login-group #btnSubmit:hover {
  background: #1d6fa6;
  transition: background 0.1s linear 0s;
}

.login-group label {
  width: 100%;
  position: relative;
}

.login-group label .alertmsg {
  position: absolute;
  color: #ff0000;
  top: 20px;
  right: 10px;
  display: none;
}

.login-group h1 {
  color: #333;
  font-size: 18px;
  line-height: 28px;
}

.login-group h1 i {
  font-size: 24px;
  vertical-align: bottom;
  margin: 0px 3px 0px 0px;
}

.login-group .cr {
  display: block;
  margin-top: 5px;
  color: #333;
}

.float-group::after {
  clear: both;
}

.float-group::before,
.float-group::after {
  content: " ";
  display: table;
}

.code-group * {
  vertical-align: middle;
}


.code-group i {
  height: 100%;
  display: inline-block;
}

.login-group #code {
  width: 150px;
}

.sr-wrap {
  background-color: #fff;
  border: 1px solid #aaaaaa;
  border-radius: 3px !important;
  color: #393939;
  transition-duration: 0.1s;
}

.sr-wrap input[type="text"] {
  border: 0px solid #aaaaaa;
}

.fa-search {
  vertical-align: middle;
  margin-right: 0.0714286em;
  font-size: 2em;
  cursor: pointer;
  color: #555;
}

/* ??? */
.page-direct {
  text-align: center;
}

.page-direct>ul>li {
  display: inline-block;
  vertical-align: middle;
}

.page-direct>ul>li a {
  display: block;
}

.page-direct .disabled {
  background-color: #f7f7f7;
  border-color: #ddd;
  color: #b0b0b0;
  transform: scale(0.9);
}

.page-direct a.disabled {
  cursor: default;
}

.page-direct .cl-icon {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 100%;
  color: gray;
  display: inline-block;
  float: none;
  height: 24px;
  line-height: 22px;
  margin: 0 2px !important;
  padding: 0;
  position: static;
  text-align: center;
  width: 24px;
}

.page-direct .disabled.cl-icon {
  border-radius: 100%;
  display: inline-block;
  float: none;
  height: 24px;
  line-height: 22px;
  margin: 0 2px !important;
  padding: 0;
  position: static;
  text-align: center;
  width: 24px;
  background-color: #f7f7f7;
  border-color: #ddd;
  color: #b0b0b0;
  transform: scale(0.9);
}

.cl-icon:hover {
  border-color: #699ab5;
  color: #699ab5;
}

/* ??減???*/
.grey {
  color: #777 !important;
}

.green {
  color: #69aa46 !important;
}

.red {
  color: #dd5a43 !important;
}

.purple {
  color: #a069c3 !important;
}

.blue {
  color: #2b7dbc;
}

.grey {
  color: #777 !important;
}

/* ???雓?*/
.form-group {
  margin-bottom: 15px;
}

.form-group>label {
  line-height: 36px;
}

.form-group .in-files {
  padding: 5px 0px;
}

.form-group .h2 {
  color: #2679b5;
  font-size: 24px;
  font-weight: lighter;
  margin: 0;
  padding: 20px 0px 0px 0px;
}

.form-group .h2.green {
  border-bottom: 1px solid #cce2c1;
}

.form-group .h2.red {
  border-bottom: 1px solid #f3cdc6;
}

.form-group .h2.grey {
  border-bottom: 1px solid #c3c3c3;
}

.form-group .h2.blue {
  border-bottom: 1px solid #2b7dbc;
}

textarea,
input[type="text"],
input[type="password"],
input[type="datetime"],
input[type="datetime-local"],
input[type="date"],
input[type="month"],
input[type="time"],
input[type="week"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="color"] {
  background-color: #fff;
  border: 1px solid #aaaaaa;
  border-radius: 3px !important;
  box-shadow: none !important;
  color: #393939;
  font-family: inherit;
  font-size: 16px;
  padding: 5px 4px 6px;
  transition-duration: 0.1s;

}

textarea:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="time"]:focus,
input[type="week"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="color"]:focus {
  background-color: #fff;
  border-color: #f59942;
  box-shadow: none;
  color: #696969;
  outline: 0 none;
}

select {
  background-color: #fff;
  border: 1px solid #aaaaaa;
  border-radius: 3px !important;
  color: #393939;
  font-size: 16px;
  padding: 5px 4px 6px;
}

select:focus {
  background-color: #fff;
  border-color: #f59942;
  color: #696969;
  outline: 0 none;
}

.form-group textarea {
  line-height: 26px;
}

/* ???雓?*/
.in-sort {
  text-align: center;
}

.inp-sort {
  width: 20%;
  text-align: center;
}

.inp-file {
  width: 100%;
}

/* ???雓??? */
.th-id {
  width: 80px;
  text-align: center;
}

.th-title {
  text-align: left;
}

.th-date {
  width: 120px;
}

.th-no {
  width: 140px;
}

.th-ls {
  width: 80px;
}

.th-rm {
  width: 80px;
}

.th-sort {
  width: 120px;
}

.th-vws {
  width: 80px;
}

.th-model {
  width: 180px;
}

.th-type {
  width: 100px;
}

.th-argc {
  width: 200px;
}

.th-name,
.th-act,
.th-phone,
.th-stat {
  width: 120px;
}

.th-pagename {
  width: 180px;
}

.th-comp {
  width: 240px;
}

.th-meta,
.th-email,
.th-pagename,
.th-desc,
.th-comp {
  text-align: left;
}

.th-date,
.th-ls,
.th-rm {
  text-align: center;
}

/* ?????渡咯??*/
.fltrt {
  float: right;
  margin-left: 8px;
}

.fltlft {
  float: left;
  margin-right: 8px;
}

.dipib {
  display: inline-block;
}

.central {
  text-align: center;
}

.right {
  text-align: right;
}

.reset {
  clear: both;
  float: none;
  ;
}

.clearfloat {
  clear: both;
  height: 0;
  font-size: 1px;
  line-height: 0px;
}

.menubar {
  display: none;
  border: 1px solid #a1a1a1;
  border-radius: 5px;
  padding: 5px 8px 3px 8px;
  margin: 15px 0px 0px 0px;
  float: right;
  cursor: pointer;
  color: #a1a1a1;
}

.menubar:hover {
  background: #a1a1a1;
  color: #ffffff;
}

.order_data {
  width: 50%;
  float: left;
}

.footer {
  padding: 10px;
  text-align: center;
}

.footer .cr {
  color: #585858;
}

/* ???? */
.col-1,
.col-t-1 {
  width: 8.33%
}

.col-2,
.col-t-2 {
  width: 16.666%
}

.col-3,
.col-t-3 {
  width: 25%
}

.col-4,
.col-t-4 {
  width: 33.333%
}

.col-5,
.col-t-5 {
  width: 41.666%
}

.col-6,
.col-t-6 {
  width: 50%
}

.col-7,
.col-t-7 {
  width: 58.333%
}

.col-8,
.col-t-8 {
  width: 66.666%
}

.col-9,
.col-t-9 {
  width: 75%
}

.col-10,
.col-t-10 {
  width: 83.333%
}

.col-11,
.col-t-11 {
  width: 91.666%
}

.col-12,
.col-t-12 {
  width: 100%
}

.col-1,
.col-2,
.col-3,
.col-4,
.col-5,
.col-6,
.col-7,
.col-8,
.col-9,
.col-10,
.col-11,
.col-12 {
  float: left;
}

.col-1,
.col-2,
.col-3,
.col-4,
.col-5,
.col-6,
.col-7,
.col-8,
.col-9,
.col-10,
.col-11,
.col-12 {
  min-height: 1px;
  padding-left: 12px;
  padding-right: 12px;
  position: relative;
}

.col-md-1 {
  margin-left: 8.33%
}

.col-md-2 {
  margin-left: 16.666%
}

.col-md-3 {
  margin-left: 25%
}

.col-md-4 {
  margin-left: 33.333%
}

.col-md-5 {
  margin-left: 41.666%
}

.col-md-6 {
  margin-left: 50%
}

.col-md-7 {
  margin-left: 58.333%
}

.col-md-8 {
  margin-left: 66.666%
}

.col-md-9 {
  margin-left: 75%
}

.col-md-10 {
  margin-left: 83.333%
}

.col-md-11 {
  margin-left: 91.666%
}

.col-md-12 {
  margin-left: 100%
}

.textarea {
  padding: 5px 4px 6px;
}

textarea.excerpt {
  height: 120px;
}

.pad-tb-2 {
  padding: 20px 0px 20px 0px;
}

.pad-tb-4 {
  padding: 40px 0px 40px 0px;
}

.pad-r-2 {
  padding-right: 20px;
}

#scrollUp {
  background-image: url("../images/top.png");
  bottom: 20px;
  height: 38px;
  right: 20px;
  width: 38px;
}

#scrollUp-active {
  display: none;
}

#infscr-loading {
  text-align: center;
  padding: 20px 0px;
}

.more_home {
  text-align: center;
}

.more_home a {
  color: #585858;
}

.more_home a:hover {
  color: #266cad;
}
/* ==========================================================================
   Responsive Design (RWD) Additions
   ========================================================================== */

@media only screen and (max-width: 991px) {
  #navbar-container {
    padding-left: 0;
    padding-right: 10px;
  }
  
  .navbar-logo .menu-bar {
    display: inline-block;
    padding: 10px 15px;
    font-size: 20px;
  }

  #sidebar {
  z-index: 1000;
    left: -190px;
    position: fixed;
    z-index: 1024;
    transition: left 0.3s ease;
    height: 100%;
    top: 45px;
  }

  body.sidebar-toggled #sidebar {
  z-index: 1000;
    left: 0;
  }

  #sidebar::before {
    display: none;
  }

  #main-content {
    margin-left: 0 !important;
  }

    .navbts {
    display: flex !important;
    gap: 3px !important;
  }
  .navbts li {
    display: block !important;
  }
  .navbts .logout, 
  .navbts .blue, 
  .navbts .black {
    font-size: 12px !important;
    padding: 6px 8px !important;
    white-space: nowrap !important;
    height: auto !important;
    display: flex !important;
    align-items: center;
    gap: 4px;
  }
  .navbts .blue span, 
  .navbts .logout span {
    display: inline !important;
  }
}

@media only screen and (max-width: 767px) {
  .page-header h1 {
    font-size: 20px;
    float: none;
    display: block;
  }
  
  .page-header h1 small {
    display: block;
    margin-left: 0;
  }

  .toolmenus {
    float: none;
    text-align: left;
    margin-top: 10px;
  }

  .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, 
  .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
    width: 100% !important;
    float: none;
    margin-bottom: 10px;
  }

  .right {
    text-align: left;
  }
  
  .form-group > label {
    line-height: normal;
    padding-bottom: 5px;
    font-weight: bold;
  }
}

/* Phase 2: Content Optimization */
@media only screen and (max-width: 767px) {
  /* Table Responsiveness: Force horizontal scroll */
  .data-table, .table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 0;
  }
  
  .data-table thead, .table thead {
    white-space: nowrap;
  }

  .data-table tbody td, .table tbody td {
    white-space: nowrap;
  }

  /* Form and Layout Adjustments */
  .content {
    padding: 10px;
  }

  .page-header h1 {
    margin-bottom: 10px;
  }

  .form-group label.right {
    text-align: left;
    display: block;
    width: 100%;
    padding-bottom: 5px;
  }

  /* Adjust buttons in list pages */
  .toolmenus .btn {
    width: 100%;
    margin-bottom: 5px;
    margin-left: 0 !important;
  }

  /* Search row optimization */
  .page-main .row {
    height: auto !important;
    padding: 10px !important;
  }
  
  .form-inline .form-control {
    width: 100% !important;
    margin-bottom: 10px;
  }
}

/* Refined RWD: Prevent vertical overlaps */
@media only screen and (max-width: 767px) {
  .page-header {
    height: auto !important;
    max-height: none !important;
    padding-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .page-header h1 {
    width: 100%;
    margin: 0 0 10px 0 !important;
    float: none !important;
  }

  .toolmenus {
    width: 100%;
    float: none !important;
    text-align: left !important;
  }

  .page-row {
    height: auto !important;
    max-height: none !important;
    display: block;
    padding: 10px 0;
  }

  .page-row::after {
    content: "";
    display: table;
    clear: both;
  }

  /* Fix col-6 stacking in page-row */
  .page-row > [class*="col-"] {
    float: none !important;
    width: 100% !important;
    margin-bottom: 15px;
  }

  /* Breadcrumb/Navigation crowding */
  #navigations {
    height: auto !important;
    padding: 5px 10px;
  }
}

/* Advanced Refinements: Legacy Modules Optimization */
@media only screen and (max-width: 991px) {
  /* General image optimization */
  img {
    max-width: 100% !important;
    height: auto !important;
  }
}

@media only screen and (max-width: 767px) {
  /* Search wrap expansion */
  .sr-wrap {
    width: 100% !important;
    display: block;
    margin-right: 0;
  }
  
  .sr-wrap input {
    width: 100% !important;
  }

  /* Gallery/Image list grid optimization */
  .imgs-list {
    width: 48.5% !important; /* Side by side on small screens */
    margin-right: 3% !important;
    min-height: auto !important;
    margin-bottom: 20px !important;
  }

  .imgs-list:nth-child(2n) {
    margin-right: 0 !important;
  }
  
  .imgs-list .img {
    height: 150px !important; /* Adjust height for 2-column layout */
  }

  .imgs-list .img img {
    object-fit: contain;
    height: 100%;
  }

  /* Button spacing in toolmenus */
  .toolmenus .btn {
    margin-top: 10px !important;
    display: block !important;
    width: 100% !important;
  }
}

/* Granular Tuning for Small Screens (< 575px) */
@media only screen and (max-width: 575px) {
  .content {
    padding: 8px 10px 20px !important; /* Reduce side padding */
  }

  /* Breadcrumb/Navigation fine-tuning */
  .navigation {
    font-size: 14px !important;
    margin: 4px 0 0 5px !important;
  }
  
  .navigation > li {
    padding: 0 2px !important;
  }

  /* Table cells padding reduction */
  .table tr th, 
  .table > tbody > tr > td {
    padding: 6px 4px !important;
    font-size: 14px !important;
  }

  /* Adjust Page Header for very small screens */
  .page-header h1 {
    font-size: 20px !important;
  }

  .page-header h1 small {
    display: block; /* Stack the subtitle */
    margin: 5px 0 0 0 !important;
  }
}

/* Navbar Logo Fix: Prevent oversized logo on mobile */
.navbar-logo img {
  max-height: 35px !important; /* Cap height to navbar size */
  width: auto !important;     /* Maintain aspect ratio */
}

/* Ensure the logo container doesn't force extra height */
.navbar-logo a {
  height: 45px !important;
  display: flex !important;
  align-items: center;
  padding: 0 10px !important;
}

/* Table to Card View: Better mobile management UI */
@media only screen and (max-width: 767px) {
  .data-table, 
  .data-table tbody, 
  .data-table tr, 
  .data-table td {
    display: block !important;
    width: 100% !important;
  }

  .data-table thead {
    display: none !important; /* Hide headers on mobile */
  }

  .data-table tr {
    margin-bottom: 20px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05) !important;
    background-color: #fff !important;
    overflow: hidden;
  }

  .data-table td {
    border: none !important;
    border-bottom: 1px solid #f0f0f0 !important;
    padding: 12px 15px !important;
    text-align: left !important;
    min-height: 45px;
  }

  .data-table td:last-child {
    border-bottom: none !important;
    background-color: #fafafa;
    text-align: center !important;
  }

  /* Label identification (Implicit) */
  .data-table td:first-child {
    background-color: #f7f9fa;
    font-weight: bold;
    color: #2679b5;
    font-size: 0.9em;
  }

  /* Fix for images in list view */
  .data-table td img {
    margin: 10px 0 !important;
    max-width: 100% !important;
    height: auto !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 5px;
  }

  /* Input fields (Sort order) */
  .in-sort {
    width: 100px !important;
    display: inline-block !important;
    margin-left: 10px;
  }

  /* Checkbox labels spacing */
  .data-table td label.block {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
  }
}

/* Accounting Module RWD Optimization */

/* 1. Accounting Dashboard (accounting.php) */
@media only screen and (max-width: 767px) {
  /* Stack Dashboard Buttons */
  .content .page-header .pull-right {
    float: none !important;
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
  }
  
  .content .page-header .pull-right .btn {
    flex: 1 1 45%; /* Two buttons per row */
    margin-left: 0 !important;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Filter Form Reorganization */
  #filterForm {
    flex-direction: column !important;
    align-items: flex-start !important;
    margin-left: 0 !important;
  }

  #filterForm .form-group {
    width: 100%;
    margin-bottom: 10px !important;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }

  #filterForm .form-group label {
    width: 100%;
    text-align: left;
    margin-bottom: 5px;
  }

  /* Account Cards - ensure they take full width on very small screens */
  .col-sm-6.col-md-3 {
    width: 100% !important;
    margin: 10px 0 !important;
  }
}

/* 2. Voucher Editor (accounting_voucher.php) */
@media only screen and (max-width: 767px) {
  /* Compact Header Navigation */
  .voucher-body-container .row:first-child {
    flex-direction: column !important;
    padding: 10px !important;
  }

  .voucher-body-container .col-sm-5,
  .voucher-body-container .col-sm-7 {
    width: 100% !important;
    padding: 0 !important;
  }

  .voucher-body-container .col-sm-7 div {
    padding-top: 10px !important;
    margin-left: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .voucher-body-container .col-sm-7 .btn {
    width: 100% !important;
    margin: 0 !important;
  }

  /* Voucher Grid to Cards */
  #gridTable {
    border: none !important;
  }

  #gridTable thead {
    display: none;
  }

  #gridBody tr {
    display: block;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 10px;
    background: #fff;
  }

  #gridBody td {
    display: block;
    width: 100% !important;
    border: none !important;
    padding: 8px 0 !important;
    text-align: left !important;
  }
  
  #gridBody td .form-control {
    width: 100% !important;
    margin-top: 5px;
  }

  /* Labeling the fields in card view */
  #gridBody td:nth-child(2)::before { content: "\79D1\76EE\4EE3\865F: "; font-weight: bold; }
  #gridBody td:nth-child(4)::before { content: "\8CEC\6236: "; font-weight: bold; }
  #gridBody td:nth-child(5)::before { content: "\6458\8981: "; font-weight: bold; }
  #gridBody td:nth-child(6)::before { content: "\91D1\984D: "; font-weight: bold; }

  /* Hide sequential number and category name label in card view */
  #gridBody td:nth-child(1),
  #gridBody td:nth-child(3) {
    display: none;
  }

  /* Action Buttons in Grid */
  #gridTable tfoot td {
    display: block;
    width: 100% !important;
    text-align: center !important;
    padding: 10px !important;
  }

  #btnSave, .icon-plus {
    width: 100% !important;
    height: 45px !important;
    font-size: 16px !important;
  }
}

/* Additional Voucher Editor Fixes */
@media only screen and (max-width: 767px) {
  #voucherForm .form-group {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  
  #voucherForm .form-group > div {
    width: 100% !important;
    margin-left: 0 !important;
    margin-bottom: 15px !important;
    justify-content: flex-start !important;
  }

  /* Reset the "import" button container */
  #voucherForm .form-group > div:last-child {
    margin-right: 0 !important;
    margin-bottom: 0 !important;
  }

  #voucherForm .form-group > div:last-child button {
    width: 100% !important; /* Full width button on mobile */
  }

  /* Ensure radio buttons are readable */
  .radio-inline {
    padding-top: 5px;
    padding-bottom: 5px;
  }
}

/* Standard Form Optimization (table-form) */
@media only screen and (max-width: 767px) {
  .table-form, 
  .table-form tbody, 
  .table-form tr, 
  .table-form th, 
  .table-form td {
    display: block !important;
    width: 100% !important;
  }

  .table-form th {
    text-align: left !important;
    padding: 10px 0 5px 0 !important;
    border: none !important;
    color: #2679b5;
    font-size: 1.1em;
  }

  .table-form td {
    padding: 0 0 15px 0 !important;
    border: none !important;
  }

  .table-form .form-control {
    width: 100% !important; /* Force inputs to full width */
    height: 45px !important;
    font-size: 16px !important;
  }

  .table-form textarea.form-control {
    height: auto !important;
  }

  /* Submit area */
  .table-form tr:last-child td {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    padding-top: 20px !important;
  }

  .table-form tr:last-child td .btn {
    width: 100% !important;
    height: 50px !important;
    font-size: 16px !important;
    margin: 0 !important;
  }
}

/* Global Container Optimization for Mobile */
@media only screen and (max-width: 767px) {
  .web_info {
    width: 100% !important;
    margin: 10px 0 !important;
    display: block !important;
  }
}

/* Attendance Roster Settings (attendance_event_roster.php) */
.roster-summary-container {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #eee;
}

@media only screen and (max-width: 767px) {
  .roster-summary-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .roster-summary-container > div {
    width: 100% !important;
  }

  /* Force the import form to stack */
  .roster-summary-container form {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .roster-summary-container form select,
  .roster-summary-container form button {
    width: 100% !important;
    margin: 0 !important;
    height: 45px;
  }
}




/* Voting Dashboard Refined RWD (voting_rounds_panel.php) */
.voting-tools {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.round-row-wrapper {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: stretch;
  gap: 2%;
}

@media only screen and (max-width: 767px) {
  .voting-tools {
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
  }
  
  .voting-tools button,
  .voting-tools a {
    flex: 1 1 45% !important;
    margin: 0 !important;
    height: 45px !important;
    font-size: 13px !important;
  }

  .round-row-wrapper {
    flex-direction: column !important;
    flex-wrap: wrap !important;
  }

  .round-row-wrapper > div {
    width: 100% !important;
    min-width: 100% !important;
    margin-bottom: 20px;
  }
}
/* Ensure Vertical Centering for Mobile Buttons */
@media only screen and (max-width: 767px) {
  .voting-tools button,
  .voting-tools a.btn,
  .roster-summary-container form button,
  .table-form tr:last-child td .btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: normal !important; /* Reset line-height to allow flex centering */
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
}

/* Christmas Registration Stats (christmas_stats.php) */
@media only screen and (max-width: 767px) {
  /* Fix Grid Stacking */
  .row.col-12 {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 10px !important;
  }
  
  .row.col-12 > .col-6,
  .row.col-12 > .col-12,
  .row.col-12 .stat-card .row > .col-6 {
    width: 100% !important;
    min-width: 100% !important;
    padding: 0 !important;
    margin-bottom: 15px;
  }

  /* Fix Header Toolmenus */
  .content .page-header .toolmenus {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    width: 100% !important;
    float: none !important;
    margin-top: 15px;
  }

  .content .page-header .toolmenus > a,
  .content .page-header .toolmenus > div {
    flex: 1 1 100% !important; /* Stack everything on mobile */
    margin: 0 !important;
    width: 100% !important;
  }

  /* Special handling for the status selector container */
  .content .page-header .toolmenus > div {
    justify-content: space-between !important;
  }

  /* Meal Stats Refinement */
  .meal-box {
    flex-direction: column !important;
  }
  
  .meal-item {
    width: 100% !important;
  }
}

/* Refine Christmas Stats Tables (christmas_stats.php) */
@media only screen and (max-width: 767px) {
  .stat-card table.table {
    width: 100% !important;
    margin-top: 10px;
    border-collapse: collapse;
  }
  
  .stat-card table.table th,
  .stat-card table.table td {
    width: 50% !important; /* Force half-width for 2-column stats */
    text-align: center !important;
    padding: 15px 5px !important;
    font-size: 15px !important;
    background: #fff;
  }

  .stat-card table.table thead {
    display: table-header-group !important; /* Ensure headers show up properly */
  }
  
  /* Remove excessive margins in summary table */
  .stat-card .table tr td:first-child {
    color: #666;
  }
  
  .stat-card .table tr td:last-child {
    font-weight: bold;
  }
}

/* Refined Christmas Management (Stats & List) */
@media only screen and (max-width: 767px) {
  /* Stats Overview Grid - Force Stack and Clear Floats */
  .row.col-12 > .col-6,
  .row.col-12 > .col-12,
  .row.col-12 .stat-card .row > .col-6 {
    width: 100% !important;
    min-width: 100% !important;
    padding: 0 !important;
    margin-bottom: 20px !important;
    float: none !important;
    display: block !important;
  }

  /* Stats Tables - Ensure Full Width and Balanced Columns */
  .stat-card table.table {
    width: 100% !important;
    display: table !important; /* Force table behavior if it was blocked */
    border: 1px solid #eee !important;
  }
  
  .stat-card table.table td, 
  .stat-card table.table th {
    width: 50% !important;
    padding: 12px 8px !important;
    box-sizing: border-box;
  }

  /* Christmas Registration List Page (christmas_reg_list.php) */
  .data-table.table thead { display: none !important; }
  .data-table.table, 
  .data-table.table tbody, 
  .data-table.table tr, 
  .data-table.table td {
    display: block !important;
    width: 100% !important;
  }
  
  .data-table.table tr {
    margin-bottom: 15px !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    padding: 10px !important;
    background: #fff !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    position: relative;
  }
  
  .data-table.table td {
    text-align: left !important;
    padding: 10px 5px 10px 40% !important;
    border: none !important;
    border-bottom: 1px solid #f5f5f5 !important;
    position: relative;
    white-space: normal !important;
    min-height: 40px;
  }
  
  .data-table.table td:last-child { border-bottom: none !important; }
  
  .data-table.table td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    width: 35%;
    font-weight: bold;
    color: #666;
    font-size: 0.9em;
  }
  
  /* Special handling for Checkbox and Actions in Card View */
  .data-table.table td:first-child { padding-left: 10px !important; background: #f9f9f9; border-bottom: 2px solid #eee !important; }
  .data-table.table td:first-child::before { content: none; }
  
  .data-table.table td:last-child {
    display: flex !important;
    justify-content: flex-end;
    gap: 15px;
    padding-left: 10px !important;
    background: #fcfcfc;
  }
  .data-table.table td:last-child::before { content: '功能'; position: static; width: auto; margin-right: auto; }
  
  /* Reset Search / Filter Layout */
  .page-main .page-row {
    flex-direction: column !important;
    gap: 15px;
  }
  .page-main .page-row > div {
    width: 100% !important;
    float: none !important;
    text-align: left !important;
  }
  
  #frmFilter {
    flex-wrap: wrap !important;
    gap: 10px !important;
  }
  #frmFilter .filter-group {
    margin: 0 !important;
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px !important;
  }
  #frmFilter select, #frmFilter button {
    width: 100% !important;
    height: 40px !important;
  }
  #frmFilter button { grid-column: span 2; }
}

/* Accounting Category Logic (accounting_category.php) */
.accounting-cat-container {
    text-align: left;
    width: 100%;
    max-width: 1000px;
    border: 1px solid #ddd;
    padding: 15px;
    background: #f9f9f9;
    margin-bottom: 20px;
}

@media only screen and (max-width: 767px) {
    /* Accounting Category Card View Transformation */
    .accounting-cat-container table.table thead { display: none !important; }
    
    .accounting-cat-container table.table, 
    .accounting-cat-container table.table tbody, 
    .accounting-cat-container table.table tr, 
    .accounting-cat-container table.table td {
        display: block !important;
        width: 100% !important;
    }

    .accounting-cat-container table.table tr {
        margin-bottom: 20px !important;
        border: 2px solid #eee !important;
        border-radius: 10px !important;
        padding: 5px !important;
        background: #fff !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05) !important;
    }

    /* Distinguish Main and Sub Categories in Card View */
    .accounting-cat-container table.table tr.main-cat-row {
        border-left: 5px solid #2679b5 !important;
        background: #f0f7ff !important;
    }
    .accounting-cat-container table.table tr.sub-cat-row {
        border-left: 5px solid #ddd !important;
        margin-left: 10px !important;
        width: calc(100% - 10px) !important;
    }

    .accounting-cat-container table.table td {
        text-align: left !important;
        padding: 10px 10px 10px 35% !important;
        border: none !important;
        border-bottom: 1px solid #f0f0f0 !important;
        position: relative;
        min-height: 45px;
    }

    .accounting-cat-container table.table td:last-child {
        border-bottom: none !important;
        display: flex !important;
        justify-content: flex-end;
        align-items: center;
        gap: 10px;
        background: #fafafa;
    }

    .accounting-cat-container table.table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        width: 30%;
        font-weight: bold;
        color: #555;
        font-size: 0.85em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Input fields inside cards */
    .accounting-cat-container .cat-code,
    .accounting-cat-container .cat-name,
    .accounting-cat-container .form-control {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        height: 34px !important;
    }

    /* Functional Label in Mobile */
    .accounting-cat-container td[data-label="功能"]::before,
    .accounting-cat-container td[data-label="子類別功能"]::before {
        content: "操作";
        position: static;
        width: auto;
        transform: none;
        margin-right: auto;
    }

    /* Radio button spacing */
    .accounting-cat-container > div:first-child [style*="dashed"] label {
        display: block !important;
        margin-bottom: 15px !important;
        margin-right: 0 !important;
        width: 100%;
        padding: 10px;
        border: 1px solid #eee;
        border-radius: 5px;
    }
}

/* Christmas Ticket Editing (christmas_ticket_edit.php) */
@media only screen and (max-width: 767px) {
    .content .panel-default .panel-heading {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
        padding: 15px !important;
    }

    .content .panel-default .panel-tools {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        width: 100% !important;
        margin-top: 10px;
    }

    .content .panel-default .panel-tools > button,
    .content .panel-default .panel-tools > div {
        flex: 1 1 100% !important;
        margin: 0 !important;
        width: 100% !important;
        justify-content: flex-start !important;
    }
    
    .content .panel-default .panel-tools select {
        flex: 1 !important;
        width: 100% !important;
    }

    #frmFilter {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px !important;
    }

    #frmFilter > div {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        width: 100% !important;
    }

    #frmFilter select,
    #frmFilter a.btn {
        width: 100% !important;
        margin: 0 !important;
        height: 45px !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    /* Stats Layout for Christmas Ticket */
    .ticket-stats {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .stats-item {
        width: 100% !important;
    }
}

/* Voting Token Action Cards (voting_tokens_list.php) */
@media only screen and (max-width: 767px) {
    .token-action-card-wrapper {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin-bottom: 15px !important;
    }
    
    .token-action-card-wrapper > div {
        margin-bottom: 0 !important; /* Managed by wrapper gap/margin */
    }

    /* Fix table cell labeling if needed in the future, 
       but for now focusing on the action cards per request */
}

/* Voting Events Management Buttons (voting_events_list.php) */
@media only screen and (max-width: 767px) {
    .mgmt-button-group {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        width: 100% !important;
    }
    
    .mgmt-button-group a.btn {
        width: 100% !important;
        margin: 0 !important;
        height: 42px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 15px !important;
    }
}

/* 南門後台統一操作鈕標準 (垂直長方形 28x32) */
.btn-action-standard {
  width: 28px !important;
  height: 32px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 4px !important;
  font-size: 12px !important;
  color: #fff !important;
  border: none !important;
  transition: all 0.2s;
}

.btn-action-standard i {
  color: #fff !important;
}



