body {
    background: #121212;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px;
}

h2 {
    color: #00e0ff;
}

.container, .login-container {
    background-color: #1e1e1e;
    padding: 30px;
    border-radius: 12px;
    max-width: 800px;
    margin: auto;
}

.button-group {
    margin-bottom: 20px;
}

.btn {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.refresh { background-color: #4caf50; }
.save { background-color: #2196f3; }
.settings { background-color: #ff9800; }
.logout { background-color: #f44336; }
.login { background-color: #2196f3; }
.back { background-color: #9e9e9e; }

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* ✅ บังคับความกว้างเท่า ๆ กัน */
}

table th, table td {
    padding: 12px 10px;
    text-align: center;       /* ✅ ชิดกลาง */
    white-space: nowrap;      /* ✅ ไม่ให้ขึ้นบรรทัดใหม่ */
    overflow: hidden;
    text-overflow: ellipsis;  /* ✅ ตัดข้อความยาว ๆ */
}

th {
    font-size: 17px;
}

td {
    font-size: 16px;
}

/* ✅ เพิ่มเติมสำหรับเน้นสีแถวพิเศษ */
tr.missing-row {
    background-color: #b53a3a; /* สีแดงเข้ม สำหรับเหรียญที่ไม่มีตั้งค่า */
    color: #ffffff;            /* ตัวหนังสือขาว */
}

tr.normal-row {
    background-color: #1e1e1e; /* เหรียญที่ตั้งค่าแล้ว พื้นหลังดำเข้ม */
}

.container {
    max-width: 1400px;    /* ✅ ให้ container ใหญ่ขึ้นรองรับตาราง */
    margin: auto;
}
#status-bar {
    margin: 10px auto 20px auto;
    padding: 10px;
    max-width: 700px; /* ✅ แถบสถานะกว้างกำลังดี */
    background-color: #000000;
    color: #00e0ff;
    font-weight: bold;
    text-align: center;
    border-radius: 8px; /* ✅ ทำขอบโค้งนิดนึง */
    box-shadow: 0 0 10px rgba(0, 224, 255, 0.5); /* ✅ เพิ่มเงาเบาๆ */
    font-size: 18px;
}
thead tr {
    position: sticky;
    top: 0;
    background-color: #121212; /* สีพื้นหัวตารางเวลาติดบน */
    z-index: 2;
}
.total-row {
    background-color: #222;
    color: #ffffff;
    font-weight: bold;
}

.summary-row {
    background-color: #083d08;
    color: #ffffff;
    font-weight: bold;
}

.summary-row td {
    padding: 10px 8px;
    text-align: right;
    font-size: 15px;
    border-top: 1px solid #282723;
}