<style>
@font-face {
  font-family: 'Sarabun';
  src: url('แบบอักษร/Sarabun-Bold.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Sarabun';
  src: url('แบบอักษร/Sarabun-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Trirong';
  src: url('แบบอักษร/Trirong-Bold.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Trirong';
  src: url('แบบอักษร/Trirong-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

a, p {
color: black;
text-decoration: none;
}

.center-image {
display: flex;
justify-content: center;
margin-top: 10px;
margin-bottom: 20px;
}
.center-image img {
width: 180px;
height: auto;
}
.tape90-image {
display: flex;
justify-content: center;
margin: 0px 0;
}
.tape90-image img {
width: 240px;
height: auto;
}

body {
font-family: 'Trirong', sans-serif;
background-color: black;
margin: 10;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
padding: 0px;
box-sizing: border-box;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
-webkit-touch-callout: none;
-webkit-tap-highlight-color: transparent;
}

.distance-display {
background-color: white;
padding-top: 10px;
padding-bottom: 10px;
padding-left: 10px;
padding-right: 10px;
border-bottom: 1px dotted #ddd;
border-radius: 5px 5px 0 0;
display: flex;
width: 100%;
box-sizing: border-box;
justify-content: space-between;
align-items: center;
}
.left-align {
color: #545859;
background-color: white;
padding-left: 10px;
padding-right: 10px;
border-radius: 2px;
border: 1px solid white;
font-size: 14px;
}
.right-align {
color: #545859;
background-color: white;
padding-left: 10px;
padding-right: 10px;
border-radius: 2px;
border: 1px solid white;
font-size: 14px;
}
.button-read {
padding-left: 10px;
padding-right: 10px;
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 10px;
}
.button-read-left {
color: #545859;
}
.button-read-right {
color: #545859;
}
.password-group {
position: relative;
}
.toggle-eye {
position: absolute;
right: 15px;
top: 55px;
transform: translateY(-50%);
cursor: pointer;
font-size: 18px;
}
.input-wrapper {
position: relative;
display: flex;
align-items: center;
background-color: #fff;
width: 100%;
border-radius: 5px;
margin-bottom: 10px;
border: none;
}
.input-wrapper .ico {
position: absolute;
left: 20px;
top: 35%;
transform: translateY(-50%);
width: 20px;
height: 20px;
}
.input-wrapper input {
padding-left: 30px;
border: none;
outline: none;
width: 100%;
font-size: 14px;
box-sizing: border-box;
}
.container {
background-color: white;
margin: 0;
padding: 20px;
border-radius: 10px;
width: 100%;
max-width: 340px;
justify-content: center;
align-items: center;
box-sizing: border-box;
}
.container-tape {
background-color: black;
margin-top: 0 auto;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
width: 100%;
box-sizing: border-box;
}
.button-container {
display: flex;
justify-content: center;
gap: 30px;
margin-top: 10px;
}
h1, h2, h3, h4, h5, h6 {
text-align: center;
font-family: 'Trirong', sans-serif;
margin-bottom: 10px;
}
.table-container {
max-width: 100%;
border: 2px solid #ffd100;
border-radius: 5px;
overflow: hidden;
box-shadow: 0px 4px 6px rgba(0,0,0,0.5);
margin-bottom: 20px;
font-family: 'Trirong', sans-serif;
}
.table-monitor {
width: 100%;
border-collapse: separate;
border-spacing: 0;
table-layout: fixed;
}
.table-monitor th, .table-monitor td {
padding: 0.3em;
text-align: center;
word-wrap: break-word;
}
.table-monitor th {
background-color: #ffd100;
color: white;
font-size: 12px;
}
.table-monitor td {
background-color: #f9f9f9;
font-size: 11px;
}
.table-monitor tr:nth-child(even) td {
background-color: #e8f5e9;
}
.table-monitor tr:hover td {
background-color: #ddd;
}
.table-monitor td:last-child a {
color: red;
font-weight: bold;
text-decoration: none;
}
.table-monitor td:last-child a:hover {
text-decoration: underline;
}
.table-monitor td.status-up {
background-color: none;
color: green;
font-weight: bold;
}
.table-monitor td.status-down {
background-color: none;
color: red;
font-weight: bold;
}
.table-monitor td.status-unknown {
background-color: none;
color: blue;
font-weight: bold;
}
.datetext {
text-align: center;
color: #545859;
font-family: 'Trirong', sans-serif;
font-size: 10px;
margin-top: 30px;
}
.details {
font-size: 16px;
color: black;
line-height: 1.6;
word-wrap: break-word;
}
label {
font-size: 16px;
font-weight: bold;
color: black;
display: block;
margin-bottom: 5px;
}
input::placeholder {
font-family: 'Trirong', sans-serif;
font-size: 16px;
font-weight: 700;
opacity: 0.5;
color: black;
}
input::-ms-input-placeholder {
font-family: 'Trirong', sans-serif;
font-size: 16px;
font-weight: 700;
opacity: 0.5;
color: black;
}
input[type="text"],
input[type="number"],
input[type="password"],
input[type="date"],
select {
width: 100%;
padding: 10px;
border: 2px solid #ddd;
border-radius: 5px;
margin-bottom: 20px;
font-family: 'Trirong', sans-serif;
font-size: 16px;
text-align: center;
background-color: #fafafa;
box-sizing: border-box;
}
textarea {
width: 100%;
padding: 12px;
border: 2px solid #ddd;
border-radius: 5px;
margin-top: 20px;
margin-bottom: 20px;
font-family: 'Trirong', sans-serif;
font-size: 14px;
color: black;
background-color: #fafafa;
box-sizing: border-box;
resize: none;
}
.custom-textarea {
border: none;
padding: 0px;
position: relative;
}
.custom-textarea legend {
font-weight: 700;
position: absolute;
top: 5px;
left: 20px;
background-color: #fafafa;
padding: 0 5px;
}
button, input[type="submit"] {
width: 100%;
padding: 10px;
color: white;
background-color: #4CAF50;
border: none;
border-radius: 5px;
font-family: 'Trirong', sans-serif;
font-size: 18px;
cursor: pointer;
margin-bottom: 10px;
transition: background-color 0.3s ease;
}
.button-black { background-color: black; }
.button-red { background-color: red; }
.button-yellow { background-color: gold; }
.button-violet { background-color: #e772f5; }
.button-darkviolet { background-color: magenta; }
.button-green { background-color: green; }
.button-orange { background-color: #F54927; }
.button-tomato { background-color: tomato; }
.button-bluesky { background-color: #008CBA; }
.button-blue { background-color: #008AFF; }
.button-purple { background-color: #a200ff; }
.button-red-close {
background-color: tomato;
margin-top: 20px;
width: 70px;
}
.button-blue-tape90 {
background-color: #008CBA;
margin-top: 20px;
margin-bottom: 30px;
width: 71px;
}
.button-darkviolet-tape90 {
background-color: #e772f5;
margin-top: 20px;
margin-bottom: 30px;
width: 71px;
}
.button-lemon-tape90 {
background-color: #bac256;
margin-top: 20px;
margin-bottom: 30px;
width: 71px;
}
.button-red-tape90 {
background-color: tomato;
margin-top: 20px;
width: 71px;
}
.button-lemon-edit {
background-color: #bac256;
margin-top: 20px;
margin-bottom: 30px;
width: 70px;
}
.button-gray-del {
background-color: gray;
margin-top: 20px;
width: 70px;
height: 50px;
}
.button-map {
background-color: #008CBA;
}
button:hover, input[type="submit"]:hover {
background-color: gray;
}
.button-gray-del:hover{
background-color: #e772f5;
}
button:focus {
outline: none;
}
.record {
padding-top: 0px;
padding-bottom: 10px;
width: 100%;
border: 1px solid #ddd;
border-radius: 5px;
overflow: hidden;
box-shadow: 0 4px 6px rgba(0,0,0,0.3);
margin: 10px auto;
}
.record a {
padding-left: 10px;
padding-right: 10px;
border: 1px solid #ddd;
border-radius: 5px;
overflow: hidden;
text-decoration: none;
font-size: 16px;
}
.record a:hover {
color: red;
text-decoration: none;
}
.record p {
padding-left: 10px;
padding-right: 10px;
}
.role-box {
border: 2px solid #ddd;
padding: 12px;
margin-bottom: 30px;
border-radius: 5px;
display: flex;
gap: 50px;
align-items: center;
flex-wrap: wrap;
}
.role-box legend {
font-weight: 700;
margin-bottom: 8px;
width: auto;
}
.role-box label {
display: flex;
align-items: center;
font-size: 16px;
font-weight: 400;
gap: 6px;
}
.role-big {
border: 2px solid #ddd;
padding: 20px;
margin-top: 10px;
margin-bottom: 30px;
border-radius: 5px;
display: flex;
flex-direction: column;
gap: 0px;
align-items: flex-start;
font-size: 16px;
}
.role-big legend {
font-weight: 700;
margin-bottom: 0px;
width: auto;
}
.role-tape90 {
border: 2px solid #ddd;
padding: 10px;
margin-bottom: 10px;
border-radius: 5px;
display: flex;
gap: 0px;
align-items: center;
flex-wrap: wrap;
}
.role-tape90 legend {
font-weight: 700;
margin-bottom: 0px;
width: auto;
}

.popup {
display: none;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: #fff;
padding: 20px;
border-radius: 10px;
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
z-index: 9999;
text-align: center;
width: 280px;
animation: fadeIn 0.3s ease-out;
}
.popup.success {
border: 2px solid #4CAF50;
}
.popup.error {
border: 2px solid tomato;
}
.popup.info {
background-color: #2196F3;
}
.popup.success button {
padding: 10px;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
margin-top: 20px;
width: 70px;
}
.popup.error button {
padding: 10px;
background-color: tomato;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
margin-top: 20px;
width: 70px;
}
.popup button:hover {
background-color: gray;
}
@keyframes fadeIn {
0% {
opacity: 0;
transform: translate(-50%, -40%);
}
100% {
opacity: 1;
transform: translate(-50%, -50%);
}
}
.confirm-popup {
display: none;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: #fff;
padding: 20px;
border-radius: 10px;
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
z-index: 9999;
text-align: center;
width: 280px;
max-width: 100%;
animation: fadeIn 0.3s ease-out;
border: 2px solid tomato;
}
.confirm-popup .cancel-btn {
background-color: tomato;
margin: 20px;
width: 70px;
}
.confirm-popup .confirm-btn {
background-color: #4CAF50;
margin: 20px;
width: 70px;
}
</style>
