/* tetradic colors: */
/* red-orange: #e34435   hsl(5, 76%, 55%)  rgb(227, 68, 53); */
/* yellow-orange (amber): #ffae42   hsl(34, 100%, 63%)   rgb(255, 174, 66); */
/* blue-green (teal): #008080   hsl(180, 100%, 25%)  rgb(0, 128, 128); */
/* blue-purple (indigo): #4b0082  hsl(275, 100%, 25%)   rgb(75, 0, 130); */
 /* &#9881;&#65039;  cogwheel */

.div-parenttable-grid table {
  width: 100%;
  table-layout: fixed;
  height: inherit;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--clr-onyx);
  border-bottom: none;
  margin: 0;
}
.div-parenttable-grid table, .div-parenttable-grid td {
  background-color: var(--color-illuminating);
  color: var(--color-black);
}
.div-parenttable-grid td, .div-parenttable-grid th {
  overflow: hidden;
  -o-text-overflow: ellipsis;
  text-overflow: ellipsis;
}
.div-parenttable-grid td {
  padding: 0 4px;
  white-space: nowrap;
  max-width: 200px; /* így méretezhető a text-overflow-val ?!*/
  height: 25.8px;
  border-bottom: 1px solid var(--clr-onyx);
  border-right: 1px solid var(--clr-onyx);
}
.div-parenttable-grid table td:first-child {border-right: 1px solid var(--clr-onyx);}
.div-parenttable-grid th {
  font-weight: 600;
  height: 2rem;
  padding-left: 2px;
  background-color: var(--color-cerulean);
  position: -webkit-sticky; /*safari*/
  position: sticky;
  top: 0;
  padding-right: 4px;
  z-index: 100;
  white-space: nowrap;
}
.div-parenttable-grid table tr th,
.div-parenttable-grid table tr td {text-align: left;}
.div-parenttable-grid table tr td:last-child {border-right: none;}

/* tblu tábla */
.tbl-tblu tr > :nth-of-type(1) {
  width: 10%;
  text-align: center;
}
/* pattern="(\s*)?(\+)?([- _():=+]?\d[- _():=+]?){10,14}(\s*)?" */
.tbl-tblu tr > :nth-of-type(2) {width: 15%;}
.tbl-tblu tr > :nth-of-type(3) {width: 25%;}
.tbl-tblu tr > :nth-of-type(4) {width: 30%;}
.tbl-tblu tr > :nth-of-type(5) {width: 20%;}

tr.normal td {color: var(--clr-black);}
tr.highlighted td {
    color: var(--clr-creamywhite);
    background-color: var(--clr-darkgrey);
}

.div-auxiliary {
  -webkit-display: flex;
  display: flex;
  justify-content: space-between;
  background-color: var(--clr-paynesgray);
  margin: 2px 0;
  padding: 0 4px;
  height: 40px;
}
.div-auxiliary > div {align-self: center;}
.btn-moverec, .btn-operation {
  background-color: var(--color-marigold06);
  color: var(--color-black);
  width: 36px;
  height: 32px;
  border: none;
  padding-bottom: 4px;
  border-right: 1px solid var(--color-black);
  cursor: pointer;
  font-size: 22px;
  margin: inherit;
}
.btn-moverec:hover, .btn-operation:hover {background-color: var(--color-marigold);}

#btn-copy2clipboard {
  position: relative;  
  display: inline-block;
}
#btn-copy2clipboard #spn-c2cb {
  visibility: hidden;
  width: 140px;
  background-color: var(--clr-darkgrey);
  color: var(--clr-creamywhite);
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 501;
  bottom: -70px;
  left: 50%;
  margin-left: -75px;
  opacity: 0;
  transition: opacity 0.3s;
}
#btn-copy2clipboard #spn-c2cb::after {
  content: "";
  position: absolute;
  top: -15%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent var(--clr-darkgrey) transparent;
}
#btn-copy2clipboard img {
  top: 6px;
  position: relative;
  width: 26px;
  height: 24px;
}
.div-operation #btn-edit {
  rotate: 90deg;
  width: 32px;
}

/* modális ablak ********************************************************/
#div-modal, #div-modal2 {
  -webkit-display: none;
  display: none;
  position: fixed;
  z-index: 600;
  left: 0;
  top: -8px;
  width: 100vw;
  height: calc(100vh + 8px);
  height: calc(100svh + 8px);
  background-color: var(--clr-layer);
  padding-top: 8px;
  min-width: 360px;
  overflow: auto;
}

.modal-content {
  position: relative;
  background-color: var(--color-marigold);
  margin: 0 auto;
  /* max-width: 80%; */
  max-width: 960px;
  width: 80%;
  border: 5px solid var(--color-darkbrown);
  box-shadow: 10px 14px 8px 0 var(--color-rgba000025), 0 6px 20px 0 var(--color-rgba000025);
  z-index: 500;
  opacity: 0.2;
  -webkit-transform: scale(0.4);
  transform: scale(0.4);
  transition: transform 400ms cubic-bezier(0.18, 0.89, 0.43, 1.19);
  top: 13%;
}
.modal-content.active {
  -webkit-transform: scale(1);
  transform: scale(1);
  opacity: 1;
  transition: transform 400ms cubic-bezier(0.18, 0.89, 0.43, 1.19);
}
.modal-header, .modal-footer {
  background-color: var(--clr-grey);
  padding: 2px 16px;
  height: 38px;
}

.modal-header h2 {
  font-size: 1.1rem;
  padding-top: 6px;
  color: var(--clr-creamywhite);
}
.modal-header #h2-new::before {background: url('../images/new.png') no-repeat left center;}
.modal-header #h2-edit::before {background: url('../images/edit.png') no-repeat left center;}
.modal-header #h2-read::before {background: url('../images/notepad.png') no-repeat left center;}
.modal-header #h2-delete::before {background: url('../images/delete.png') no-repeat left center;}
.modal-header #h2-new::before, .modal-header #h2-edit::before, .modal-header #h2-read::before, .modal-header #h2-delete::before {
  content: "";
  -webkit-display: block;
  display: block;
  background-size: 100%;
  margin: -8px 8px 0 -16px;
  float: left;
  width: 38px;
  height: 38px;
}

.modal-body {padding: 0 8px 8px;}
.modal-footer {
  -webkit-display: flex;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 50px;
}
#modal-content-tblu .modal-footer {justify-content: space-evenly;}

/* modális ablak jobb felső sarok bezár gomb (span) */
.close {
  font-size: 32px;
  float: right;
  color: var(--color-frenchblue);
  font-weight: bold;
  -webkit-user-select: none;
  user-select: none;
  width: 38px;
  right: -16px;
  position: relative;
  background-color: var(--clr-creamywhite);
  height: 38px;
  text-align: center;
  top: -2px;
  cursor: pointer;
}
.close:hover {
  color: var(--clr-creamywhite);
  background-color: var(--clr-darkgrey);
}
#frm-edit fieldset {
  padding: 0;
  /*0.35em 0.75em 0.625em 0.75em;*/
  border: 1px solid var(--clr-grey);
  background-color: var(--clr-lightgreen);
  width: 100%;
  margin: auto;
  min-width: inherit;
}
#frm-edit fieldset legend {
  padding: 0 0.35rem;
  font-size: 1.3rem;
  font-weight: bold;
  margin-left: 0.9rem;
}
#btn-save, .btn-esc {
  font-size: 14px;
  width: 122px;
  height: 34px;
  color: var(--clr-creamywhite);
  background-color: var(--color-frenchblue);
  text-align: center;
  min-width: 122px;
  cursor: pointer;
  /* transform: translate(-50%); */
}

#btn-save:hover, .btn-esc:hover {
  font-size: 1.1em;
  font-weight: bolder;
}

.div-modal label {
  -webkit-display: inline-block;
  display: inline-block;
  width: 12ch;  /*150px;*/
  margin-left: 4px;
  text-align: right;
  text-shadow: 0 .5px var(--color-frenchblue);
  min-width: 12ch;  /*150px;*/
}
.div-modal input + p {
  margin-left: calc(12ch + 4px + 8px);
  font-size: 0.9rem;
  width: calc(100% - 12ch - 20px);
}


.btn-esc {background-color: var(--clr-red);}

/* adatlap mezők és beállításai */
fieldset input, fieldset textarea, fieldset select {
  padding: 4px;
  margin: 2px 4px;
  /* 100% - címke hossz(12ch) - 16px a 2*8px padding + 4px ráhagyás, ezért 20px */
  width: calc(100% - 12ch - 20px); /*44vw;*/
  border: 1px solid var(--clr-darkgrey);
  resize: none;
  outline: none;
  /* display: block; */
}
fieldset input:focus, fieldset textarea:focus, fieldset select:focus, fieldset checkbox:focus {
  box-shadow: inset 0 0 1px 1px var(--color-purple);
}
fieldset select {padding: 4px 0;}
fieldset textarea {vertical-align: top;}

/* pipáló címkéjének elmozdítása */
#lbl-input-aktiv {transform: translate(0, -4px);}

#lbl-chk-pwd {
  width: 180px;
  text-align: left;
  transform: translate(215px, -3px);
}
.obligatedfield {border-left: 5px solid var(--color-frenchblue);}
#input-loginname {width: 120px;}
#input-insert_dt, #input-update_dt {
  position: relative;
  width: 190px;
}
/* #input-insert_usr, #input-update_usr {width: 230px;} */
.insert-datas input, .update-datas input {width: 230px;}

#frm-edit fieldset #input-aktiv:not(:checked):after,
#frm-edit fieldset #chk-pwd:not(:checked):after {
  background-color: var(--clr-creamywhite);
}
input[type=text]:read-only, input[type=datetime-local]:read-only, textarea:read-only, input[type=tel]:read-only, input[type=date]:read-only {
  background-color: var(--clr-silver);
  color: var(--color-black);
}
#input-aktiv, #input-pwd, #chk-pwd {
  margin-left: 7px;
  transform: scale(1.5);
  width: 14px;
  color: var(--clr-forestgreen);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 1px solid var(--color-black);
  height: 14px;
  background-color: var(--clr-creamywhite);
}
#frm-edit fieldset #input-aktiv:checked:after, #frm-edit fieldset #chk-pwd:checked:after {
  content: '\2714';
  position: absolute;
  top: -3px;
  left: 1px;  
  height: 17px;
  width: 14px;
  transform: scale(1.1);
}
#div-result {
  /* width: 97.5%; */
  max-height: 50%;
  height: 50%;
  /* background-color: var(--clr-creamywhite); */
  /* -webkit-display: block;
  display: block; */
  position: fixed;
  left: 50%;
  top: 50%;
  -webkit-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
  opacity: 1;
  font-size: 1.2rem;
  padding: 20px;
  z-index: 100;
  /* border: 5px solid blue; */
  margin: 0 auto;
  /* overflow: auto; */
}
.valid {box-shadow: 0 0 0 3px var(--clr-green) !important;}
.invalid {box-shadow: 0 0 0 3px var(--clr-red) !important;}

.div-haspwd {
  margin-top: 8px;
  /* -webkit-display: flex;
  display: flex; */
  height: 28px;
  margin-left: -50px;
}
.div-modal.div-tblu-rights > * {align-self: center;}

.tbl-openclients {width: 100%;}
.tbl-openclients tbody td:first-child {
  text-align: center;
  min-width: 55px;
}
.tbl-openclients tbody td:first-child input[type="checkbox"] {transform: scale(1.4);}


/* ******************************************* */
@media only screen and (max-width: 720px) {
  .insert-datas, .update-datas {
    display: grid;
    grid-template-columns: 13ch 100% 0;
  }
  .insert-datas label, .update-datas label {
    grid-row: 1 / 3;
    align-self: center;
  }
  .insert-datas input, .update-datas input {
    grid-column: 2 / 4;
    width: calc(100% - 12ch - 20px);
  }
  .div-modal.div-tblu-rights > label {
    align-self: center;
    grid-column: 1 / 2;
    text-align: center;
  }
  .div-modal.div-tblu-rights {
    grid-template-columns: 80px 50px;
    gap: 1.5rem;
    margin: 1.5rem 0;
    height: auto;
  }
}
/* ******************************************* */
@media only screen and (max-width: 600px) {
  /* .div-grid-container .div-group.grid-item > :first-child {visibility: hidden;}  */
  /* .div-grid-container .grid-item.grid-label ~ .div-group.grid-item */
  .div-modal > * {
    display: block;
  }
  .div-modal.div-tblu-rights > label {
    align-self: center;
    grid-column: 1 / 2;
  }
  .div-modal label {
    text-align: left;
    display: block;
  }
  .insert-datas input, .update-datas input,
  fieldset input, fieldset textarea, fieldset select {
    width: calc(100% - 8px);
  }
  #lbl-chk-pwd {transform: unset;}
  .div-haspwd, .div-aktiv {
    /* flex-direction: row-reverse; */
    margin: -4px 0 12px 30px;
  }
  #lbl-input-aktiv, #lbl-chk-pwd {
    transform: translate(25px, 18px);
  }
}
fieldset fieldset {
  margin: 8px;
  width: calc(100% - 16px);
  /* height: 8rem; */
}
fieldset fieldset legend {font-size: 1.1rem;}
.div-tblu-rights {
  -webkit-display: grid;
  display: grid;
  height: 5rem;
  gap: 0.25rem;
  margin-top: 0.5rem;
  /* grid-template-columns: repeat(12, 1fr); */
  /* grid-template-columns: 105px 50px 105px 50px 105px 50px; */
  grid-template-columns: 105px 20px 105px 20px 105px 40px 105px 0;
}

.nechk {
  margin-left: 7px;
  transform: scale(1.5);
  width: 12px;
  color: var(--clr-forestgreen);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 1px solid var(--color-black);
  height: 11px;
  margin-right: 0.5rem;
}
.nechk:not(disabled) {
  background-color: var(--clr-creamywhite);
}

.nechk:checked::after {
  content: '\2714';
  position: absolute;
  top: -5px;
  left: 0;
  color: var(--clr-forestgreen);
  height: 11px;
  width: 12px;
  /* transform: scale(1.1); */
}

@media only screen and (max-width: 660px) {
  .tbl-tblu tr > :nth-of-type(4),
  .tbl-tblu tr > :nth-of-type(5) {
    -webkit-display: none;
    display: none;
  }
  .tbl-tblu tr > :nth-of-type(3) {border-right: none;}
  .tbl-tblu tr > :nth-of-type(1) {width: 15%;}
  .tbl-tblu tr > :nth-of-type(2) {width: 30%;}
  .tbl-tblu tr > :nth-of-type(3) {width: 55%;}
}