div,fieldset,input,select{padding:5px;font-size:1em;}
fieldset{background: #4f4f4f;}
p{margin:0.5em 0;}
input{width:100%;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#dddddd;color:#000000;}
input[type=checkbox],input[type=radio]{width:1em;margin-right:6px;vertical-align:-1px;}
input[type=range]{width:99%;}
select{width:100%;background:#dddddd;color:#000000;}
textarea{resize:vertical;width:98%;height:318px;padding:5px;overflow:auto;background:#1f1f1f;color:#65c115;}
body{text-align:center;font-family:verdana,sans-serif;background:#252525;}
.index-header{
  text-align:center;
  color:#f2f7fb;
  margin:0 0 0.8rem;
  padding:0.8rem 1rem 0.9rem;
  border:1px solid #3b4d5b;
  border-radius:0.55rem;
  background:linear-gradient(180deg,#344653 0%, #2a3944 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.05);
}
.index-header h1{
  margin:0;
  font-size:1.55rem;
  letter-spacing:0.02em;
}
.index-header p{
  margin:0.2rem 0 0;
  color:#b8c9d6;
  font-size:0.95rem;
}
.view-switch{
  margin:0.6rem auto 0.25rem;
  display:inline-flex;
  border:1px solid #4a6070;
  border-radius:0.45rem;
  overflow:hidden;
}
.view-switch a{
  display:inline-block;
  padding:0.35rem 0.85rem;
  background:#2b3b46;
  color:#b9cad7;
  font-size:0.85rem;
  border-right:1px solid #4a6070;
  text-decoration:none;
}
.view-switch a:last-child{border-right:0;}
.view-switch a:hover{background:#3a4f5d;color:#e8f1f7;}
.view-switch a.active{background:#1fa3ec;color:#faffff;font-weight:bold;}
.index-toolbar{
  display:grid;
  grid-template-columns:1fr 170px 110px;
  gap:0.5rem;
  margin:0 0 0.65rem;
}
.index-toolbar input,.index-toolbar select{
  background:#d9e4ea;
  color:#1e2a32;
  border:1px solid #7991a3;
}
.index-toolbar button{
  width:100%;
  line-height:2rem;
  font-size:1rem;
  background:#4f6777;
}
.index-toolbar button:hover{
  background:#3a4f5d;
}
button{border:0;border-radius:0.3rem;background:#1fa3ec;color:#faffff;line-height:2.4rem;font-size:1.2rem;width:100%;-webkit-transition-duration:0.4s;transition-duration:0.4s;cursor:pointer;}
button:hover{background:#0e70a4;}
.txwd-action-btn{width:2.2rem;min-width:2.2rem;line-height:2.2rem;height:2.2rem;padding:0;display:inline-flex;align-items:center;justify-content:center;border-radius:0.35rem;}
.txwd-add-btn{background:#37a35b;font-size:1rem;font-weight:bold;}
.txwd-add-btn:hover{background:#2b7f47;}
.txwd-add-btn img{width:16px;height:16px;display:block;}
.txwd-delete-btn{background:#b64a4a;}
.txwd-delete-btn:hover{background:#8a3333;}
.txwd-delete-btn img{width:16px;height:16px;display:block;}
.txwd-table{font-size:1.08em;background:#2f414d;border:1px solid #4a6070;border-radius:0.35rem;overflow:hidden;}
.txwd-table th{padding:0.2rem 0.35rem;}
.txwd-table td{padding:0.1rem 0.15rem;background:#2f414d;}
.txwd-table input,.txwd-table select{font-size:1.02em;padding:0.35rem;}
.txwd-section-row td{padding:0.35rem 0.45rem;font-weight:600;color:#a9c0cf;background:#2f414d;border-top:1px solid #4a6070;border-bottom:1px solid #4a6070;}
.txwd-section-new td{color:#d3f1dd;background:#2d4737;border-top:1px solid #3f6e53;border-bottom:1px solid #3f6e53;}
.txwd-save-row td{padding:0.4rem 0.2rem;background:#253742;border-bottom:1px solid #4a6070;}
.txwd-inline-save{max-width:320px;width:100%;line-height:2rem;font-size:1rem;background:#3b7ea1;}
.txwd-inline-save:hover{background:#2f6480;}
.txwd-new-row td{background:#213327;}
.txwd-new-row input,.txwd-new-row select{border:1px solid #5a8869;background:#2a4332;color:#e7f5eb;}
.bred{background:#d43535;}
.bred:hover{background:#931f1f;}
.bgrn{background:#47c266;}
.bgrn:hover{background:#5aaf6f;}
.byel{background:#b8b50b;}
.byel:hover{background:#ddda09;}
.bsil{background:#eee;}
.bsil:hover{background: #bbb;}
.status-pill{display:inline-block;padding:0.14rem 0.45rem;border-radius:0.3rem;font-size:0.76rem;line-height:1.2rem;white-space:nowrap;}
.status-pill-muted{background:#3a2f1c;border:1px solid #75603a;color:#d7c48b;}
a{color:#1fa3ec;text-decoration:none;}
.p{float:left;text-align:left;}
.q{float:right;text-align:right;}
.r{border-radius:0.3em;padding:2px;margin:6px 2px;}
.fixTableHead {overflow-y: auto; height: 110px;} 
.fixTableHead thead th {position: sticky; top: 0;} 
table {border-collapse: collapse; width: 100%;} 
/* th,td {padding: 2px 4px; border: 2px solid #faffff; }  */
td{padding:0px;}
#dataTable{font-size:1.08em;}
#dataTable th,#dataTable td{padding:0.2rem 0.35rem;}
#dataTable thead th{background:#2f414d;border-bottom:1px solid #4a6070;}
#dataTable thead th button{background:transparent;color:#dce9f2;padding:0.45rem 0.75rem;font-weight:600;}
#dataTable thead th button:hover{background:#3b5160;}
tbody tr:nth-child(even) {background-color: #4f4f4f;}

.table-container {
    margin: auto;
    max-width: 1200px;
  min-height: 0;
    /*overflow: scroll;*/
    width: 100%;
  }

.access-denied-wrap{display:inline-block;text-align:left;color:#eaeaea;min-width:340px;width:min(640px,96vw);margin-top:2rem;}
.access-denied-card{border:1px solid #4a6070;border-radius:0.55rem;background:#2f414d;padding:1.2rem 1rem 1rem;text-align:center;}
.access-denied-card p{margin:0.45rem 0;}
.access-denied-code{font-size:2rem;font-weight:bold;color:#f4b05c;letter-spacing:0.04em;}

  th {
    font-weight: bold;
    height: inherit;
    padding: 0;
  }

  
  th button {
    background-color: #1fa3ec;
    border: none;
    cursor: pointer;
    display: block;
    font: inherit;
    height: 100%;
    margin: 0;
    min-width: max-content;
    padding: 0.5rem 1rem;
    position: relative;
    text-align: left;
    width: 100%;
  }
  
  th button::after {
    position: absolute;
    right: 0.5rem;
  }
  
  th button[data-dir="asc"]::after {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpolygon points='0, 0 8,0 4,8 8' fill='%23818688'/%3E%3C/svg%3E");
  }
  
  th button[data-dir="desc"]::after {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpolygon points='4 0,8 8,0 8' fill='%23818688'/%3E%3C/svg%3E");
  }
  
  
  footer {
    background-color: #ffdfb9;
    margin: 2rem -8px -8px;
    padding: 1rem;
    text-align: center;
  }
  
  footer a {
    color: inherit;
    text-decoration: none;
  }
  
  footer .heart {
    color: #dc143c;
  }