
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@100;200;300;400;500;600;700&display=swap');

body {
  font-family: "IBM Plex Sans Thai", sans-serif;
  background-color: #ebedef;
  font-size: 16px;
}

a {
  text-decoration: none;
  color: #808b96
}

input:focus::placeholder {
  color: transparent; /* ทำให้สีของ placeholder เป็นโปร่งใส */
  /* หรือ opacity: 0; เพื่อทำให้มันหายไป */
}

/* สำหรับ Browser ที่เป็น Webkit (Chrome, Safari) */
input:focus::-webkit-input-placeholder {
  color: transparent;
}

/* สำหรับ Firefox (รุ่นเก่าและใหม่) */
input:focus::-moz-placeholder {
  color: transparent;
}

input:focus:-moz-placeholder { /* สำหรับ Firefox รุ่นเก่า */
  color: transparent;
}

/* สำหรับ Internet Explorer 10+ */
input:focus:-ms-input-placeholder {
  color: transparent;
}

input:read-only {
  background-color: #ebedef;
}

label.form-label {
  font-weight: 600;;
}

#main-content {
  margin-top: 30px;
}

.btn {
  padding: 0.35;
  font-size: 0.7875rem;
}

.btn-danger {
  color: white !important;
}

/* * Base style for our mobile button.
  * Add this class along with Bootstrap's .btn class.
  */
.btn-mobile {
    padding: 0.8rem 1.5rem; /* Larger padding for a better touch target */
    border-radius: 12px; /* Softer, rounded corners */
    font-weight: 600; /* Bolder text */
    font-size: 1rem;
    border: none; /* Remove default border */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* Soft shadow for depth */
    transition: all 0.2s ease-in-out; /* Smooth transition for interactions */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem; /* Space between icon and text */
}

/* Interaction states */
.btn-mobile:hover {
    transform: translateY(-2px); /* Lift button on hover */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.btn-mobile:active {
    transform: translateY(1px) scale(0.98); /* Simulate pressing the button down */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Primary Button Style */
.btn-mobile.btn-primary {
    background-color: #0d6efd;
    color: white;
}
.btn-mobile.btn-primary:hover {
  background-color: #0b5ed7;
  color: white;
}

/* Secondary Button Style (Outline/Ghost style) */
.btn-mobile.btn-secondary {
  background-color: #ffffff;
  color: #0d6efd;
  border: 1px solid #dee2e6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.btn-mobile.btn-secondary:hover {
  background-color: #f8f9fa;
  border-color: #ced4da;
}
/* --- Special Button Types --- */

/* Full-width button for forms or main actions */
.btn-mobile.btn-full {
  width: 100%;
  display: block; /* Override inline-flex for block behavior */
}

/* Pill-shaped button */
.btn-mobile.btn-pill {
  border-radius: 50px;
}

/* Icon-only button (circular) */
.btn-mobile.btn-icon {
  width: 50px;   /* Fixed width */
  height: 50px;  /* Fixed height */
  border-radius: 50%; /* Make it a circle */
  padding: 0; /* Reset padding */
  font-size: 1.25rem; /* Make icon larger */
}

.btn-outline-danger {
  color: #cd6155;
  border: 1px solid #cd6155;
}

.btn-info {
  background-color: #5dade2;
  border: 1px solid #5dade2;
  color: black;
}

.btn-info:hover {
  background-color: #26afff;
  color: white;
}

.btn-light {
    border: 1px solid #808b96;
}

.btn-primary {
  background-color: #3498db;
  border-color: #3498db;
  color: white !important;
}

.btn-secondary {
  background-color: #d0d5e1;
  border-color: #d0d5e1;
  color: black;
}

.btn-secondary:hover {
  background-color: #c0c4cc;
  color: black;
}

.btn-success {
  background-color: #52be80;
  color: black !important;
}

.card {
  border-radius: 0;
  border: none;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

.card-content {
  padding-left: 15px;
  line-height: 1.22;
  font-weight: 600;
}

.card-footer {
  border-top: 1px dashed #E2E2E2;
  background-color: white;
  color: #808b96;
  padding: 16px;
}

.card-footer a {
  color: #808b96;
  text-decoration: none;
}

.card-header {
  background-color: white;
  border-bottom: 1px dashed #E2E2E2;
}

.card-icon {
  max-width: 45px;
  max-height: 45px;
  border-radius: 50%;
  /* border: 1px solid black; */
}

.card-icon img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.col-amount {
  width: 130px;
}

.col-date {
  width: 125px;
}

.col-code {
  width: 125px;
}

.col-mgr {
  width: 135px;
}

.col-mgr-sm {
  width: 115px;
}

.col-row {
  width: 45px;
}

.col-status {
  width: 95px;
}

.col-status-lg {
  width: 125px;
}

.download-box {
  cursor: pointer;
  max-width: 65px;
  border: 1px dashed #d5d8dc;
  padding: 8px;
  border-radius: 12px;
}

.form-control {
  padding: .375rem .75rem;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.5;
  border: 1px solid #d0d5e1;
  border-radius: 0.5rem;
}

.form-control:focus, .form-select:focus {
    outline: 2px solid black;
    box-shadow: none;
    border: none;
}

.i-date {
  background-color: #f9ebea;
}

.i-number {
  background-color: #eaf2f8;
}

.i-textarea {
  background-color: #F2D2BD;
}

.link {
  cursor: pointer;
}

.logo-view {
  border: 2px dashed #d5d8dc;
  border-radius: 16px;
  min-height: 105px;
}

.logo-view img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
}

.modal-footer {
  border-top: 1px dashed #E2E2E2;
  background-color: white;
  padding: 16px;
}

.modal-header {
  border-bottom: 1px dashed #E2E2E2;
}

.navbar {
  background-color: white;
}

.navbar-nav a {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.navbar-nav a:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  background-color: #f2f4f4;
}

.phone-number {
  color: #d9534f; /* สีแดงเด่นชัด */
  font-size: 1.2em;
  font-weight: bold;
  background-color: #fcebeb; /* พื้นหลังสีอ่อน */
  padding: 8px 15px;
  border-radius: 20px;
  border: 2px solid #d9534f;
  display: inline-block;
  margin-top: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-decoration: none; /* ลบเส้นใต้ลิงก์ */
}

.phone-number:hover {
  background-color: #d9534f;
  color: #fff;
  transform: scale(1.05); /* ขยายขนาดเมื่อเมาส์ชี้ */
}

.profile-pic {
  display: inline-block;
  vertical-align: middle;

  width: 50px;
    height: 50px;
    overflow: hidden;
   border-radius: 50%;
}

.profile-pic img {
  width: 100%;
  height: auto;
  object-fit: cover;
}