:root{
    /*--fuente: 13px -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans,Ubuntu,Droid Sans,Helvetica Neue,sans-serif;*/
    --bordes-grid: 1px solid #99bbe8;
    --margen-grid: 3px;
}
html,body{
    height:100%;
    margin:0;
    width:100%;
    overflow: hidden;
    font: var(--fuente);
}

.noselect {
    -webkit-touch-callout: none; /* iOS Safari */
      -webkit-user-select: none; /* Safari */
       -khtml-user-select: none; /* Konqueror HTML */
         -moz-user-select: none; /* Old versions of Firefox */
          -ms-user-select: none; /* Internet Explorer/Edge */
              user-select: none; /* Non-prefixed version, currently
                                    supported by Chrome, Edge, Opera and Firefox */
  }
.text-bold{
    text-shadow: 1px 0px 0px black;
}
input{
    padding: 4px;
    border: 1px solid #aaa;
    border-radius: 3px;
    font: var(--fuente);
    text-transform: uppercase;
    outline: initial;
}
input:focus{
    box-shadow: 0 0 1pt 1pt #52acfeb8;
}

*{
    box-sizing: border-box;
}

.tdg.content{
    width: 100%;
    height: 100%;
    overflow-x: auto;
    display:flex;
    flex-direction: column;
    /*border: 1px solid rgb(184, 184, 184);
    border-radius: 4px;*/
}
.tdg.content::-webkit-scrollbar {
    display: none;
}
.tdg.content{
    -ms-overflow-style: none;
    scrollbar-width: none; /* Firefox */
}
.tdg .th{
    display:inline-block;
    padding: 4px;
    border-right: 1px solid #b8b8b8;
    justify-content: flex-end;
    display: flex;
    flex-direction: column;
    cursor:default;
}
.tdg .th:first-child{
    margin-left: var(--margen-grid);
}
.tdg .th:last-child{
    margin-right: var(--margen-grid);
    border-right: none;
}
.tdg .lb{
    padding: 2px 4px 5px;
}
.tdg .th .flt{
    width: 100%;
}
.tdg .tf{
    display:inline-block;
    padding: 4px;
    border-right: 1px solid rgb(224, 224, 224);
    border-top: 1px solid rgb(224, 224, 224);
    border-bottom: 1px solid rgb(224, 224, 224);
    justify-content: flex-end;
    display: flex;
    flex-direction: column;
}
.tdg .tf:first-child{
    margin-left: var(--margen-grid);
}
.tdg .tf:last-child{
    margin-right: var(--margen-grid);
    border-right: none;
}
.tdg .pat-record {
    width: 90px;
    min-width: 90px;
    flex: 90;
    text-align: center;
}
.tdg .code {
    width: 100px;
    min-width: 100px;
    flex: 100;
}
.tdg .short-code {
    width: 40px;
    min-width: 40px;
    flex: 40;
}
.tdg .td>div{
    padding:4px;
}
.tdg .code>div{
    text-align: center;
}
.tdg .short-code>div{
    text-align: center;
}
.tdg .propername, .tdg .personname{
    width: 150px;
    min-width: 150px;
    flex: 150;
}
.tdg .shortname{
    width: 100;
    min-width: 100px;
    flex: 100;
}
.tdg .sex{
    width: 50px;
    min-width: 50px;
    flex: 50;
    text-align: center;
}
.tdg .age{
    width: 94px;
    min-width: 94px;
    flex: 94;
    text-align: center;
}
.tdg .date {
    width: 100px;
    min-width: 100px;
    max-width: 156px;
    flex: 100;
    text-align: center;
}
.tdg .datetime{
    width: 130px;
    min-width: 130px;
    max-width: 220px;
    flex: 130;
    text-align: center;
}

.tdg .rn{
    width: 50px;
    min-width: 50px;
    text-align: right;
    font-size: 12px!important;
}
.tdg .docid{
    width: 125px;
    min-width: 125px;
    flex: 125;
}

.tdg .header, .tdg .footer{
    /*white-space: nowrap;*/
    display:flex;
    width: min-content;
    min-width: 100%;
}

.tdg .header{
    /*background-image: -webkit-linear-gradient(#DAE6F3, #C2D5ED);
    background-image: -moz-linear-gradient(#DAE6F3, #C2D5ED);
    background-image: -ms-linear-gradient(#DAE6F3, #C2D5ED);
    background-image: -o-linear-gradient(#DAE6F3, #C2D5ED);
    background-image: linear-gradient(#DAE6F3, #C2D5ED);
    filter: progid:dximagetransform.microsoft.gradient(startColorstr='#ffdae6f3', endColorstr='#ffc2d5ed', GradientType=0);*/
    background-color: #F2F2F2;
    border-bottom: 1px solid rgb(184, 184, 184);
}
.tdg .footer{
    background-color: #fff7df;
}

.tdg .body{
    flex:1;
    max-height:100%;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    white-space: nowrap;
    width: fit-content;
    width: -moz-fit-content;
    min-width: 100%;
    background-color: #fff;
}
.tdg .body::-webkit-scrollbar {
    display: none;
}
.tdg .body {
    -ms-overflow-style: none;
    scrollbar-width: none; /* Firefox */
    outline: none;
}
.tdg .tf{
    min-height: 24px;
}
.tdg .fc{
    border-right: 1px solid rgb(224, 224, 224);
    min-height:100%;
    display:inline-block;
    white-space: normal;
    padding: 4px;
}
.tdg .fc:first-child{
    margin-left: var(--margen-grid);
}
.tdg .fc:last-child{
    margin-right: var(--margen-grid);
    border-right: none;
}

.tdg .fake{
    width: fit-content;
    min-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    left: 0;
    top: 0;
}

.tdg .dbox{
    width: fit-content;
    min-width: 100%;
    position: absolute;
    top: 0;
}

/*.tdg .dbox:focus-within{
    background-color: #f2f2f2;
}*/

.tdg .tr{
    width: fit-content;
    min-width: 100%;
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid rgb(224, 224, 224);
}

.tdg .tr.sel {
    background-color: #e9f2fd;
}
/*.tdg .tr:nth-child(even){
    background-color: #f6fcff;
}*/

/*.tdg .dbox:focus-within .tr:nth-child(even){
    background-color: #f2f2f2;
}*/

.tdg .tr:first-child{
    margin-top: var(--margen-grid);
}
.tdg .tr:last-child{
    margin-bottom: var(--margen-grid);
}

.tdg .td{
    padding: 4px;
    border-right: 1px solid rgb(224, 224, 224);
    white-space: break-spaces;
}
.tdg .td div {
	overflow-x: hidden;
}

.tdg .td:first-child{
    margin-left: var(--margen-grid);
}
.tdg .td:last-child{
    margin-right: var(--margen-grid);
    border-right: none;
}
.tdg .td>div:focus-within, .tdg .td.focused{
   background-color: #fff;
}
.tdg .sel .td:focus-within{
    outline: 3px solid #52acfeb8;
    border-radius: 3px;
}

.tdg small.tm{
    opacity: 0.6;
}

.tdg small.md{
    opacity: 0.6;
}

.tdg .td input{
    border: none;
    outline: none;
    padding: 0px;
}
.tdg .td input:focus{
    box-shadow: none;
}
.demo{
    position: absolute;
    top: 100px;
    left: 200px;
    width: 800px;
    height: 500px;
}
.male{
    color: #44F;
}
.female{
    color: #F66;
}

.tdg .action{
    width: 32px;
    min-width: 32px;
    max-width: 32px;
    flex: 32;
    text-align: center;
}

.space-next{
	height:3px;
	text-align: center;
}

.progress-line, .progress-line:before {
  height: 3px;
  width: 100%;
  margin: 0;
}
.progress-line {
  background-color: #58a700;
  display: -webkit-flex;
  display: flex;
}
.progress-line:before {
  background-color: #2f5400;
  content: '';
  -webkit-animation: running-progress 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation: running-progress 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@-webkit-keyframes running-progress {
  0% { margin-left: 0px; margin-right: 100%; }
  50% { margin-left: 25%; margin-right: 0%; }
  100% { margin-left: 100%; margin-right: 0; }
}
@keyframes running-progress {
  0% { margin-left: 0px; margin-right: 100%; }
  50% { margin-left: 25%; margin-right: 0%; }
  100% { margin-left: 100%; margin-right: 0; }
}

.dg-btm-buttons {
    display:flex;
    justify-content: end;
    padding-right: 28px;
}
.dg-btm-buttons > div {
    display:flex;
    justify-self: end;
    padding: 0px 12px;
    margin-bottom: 4px;
    font-size: 1.1em;
}
.dg-btm-buttons .dg-btn {
    min-width: 48px;
    padding: 2px 8px;
    border: 1px solid #e0e0e0;
    text-align: center;
    background-color: #fff;
}
.dg-btm-buttons .dg-btn:first-child{
    padding-left: 12px;
    border-bottom-left-radius: 12px;
}
.dg-btm-buttons .dg-btn:last-child{
    padding-right: 12px;
    border-bottom-right-radius: 12px;
}
.dbox .tr .td{
    outline:none;
}