* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f7f7f7;
}

header {
  background: #1976d2;
  color: #fff;
  padding: 12px;
  text-align: center;
}

.container {
  padding: 16px;
  max-width: 900px;
  margin: auto;
  background: #fff;
}

/* FORM */
label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}

input, select, textarea {
  width: 100%;
  padding: 8px;
  margin-top: 4px;
  font-size: 14px;
}

textarea {
  resize: vertical;
}

button {
  padding: 8px 14px;
  margin-top: 10px;
  cursor: pointer;
}

/* TABLE */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

th, td {
  border: 1px solid #ccc;
  padding: 6px;
  vertical-align: top;
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #4caf50;
  color: #fff;
  padding: 12px 18px;
  border-radius: 6px;
  display: none;
  z-index: 2000;
  font-size: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

/* CANVAS */
canvas {
  border: 1px solid #ccc;
  width: 100%;
  height: 120px;
}

/* AUTOCOMPLETE */
.suggestions-box {
    max-height: 200px; /* Bắt buộc có chiều cao cố định để xuất hiện thanh cuộn */
    overflow-y: auto;
    background: white;
    border: 1px solid #ccc;
    position: absolute;
    z-index: 1000;
    width: 100%;
}

.suggestion-item {
    padding: 8px;
    cursor: pointer;
}

.suggestion-item.selected {
    background-color: #e0e0e0; /* Màu khi dùng phím mũi tên di chuyển qua */
}
/* Bổ sung vào cuối file main.css */

/* Đảm bảo canvas chữ ký hiển thị tốt trên thiết bị di động */
#signCanvas {
    background-color: #ffffff;
    cursor: crosshair;
    touch-action: none; /* Quan trọng để ký được trên điện thoại */
}

/* Kiểu dáng cho ảnh xem trước chữ ký trong Profile */
#signPreview {
    display: block;
    margin: 10px auto;
    max-height: 120px;
    border: 1px solid #eee;
    padding: 5px;
    background: #fff;
}

/* Kiểu dáng cho lời chào bác sĩ ở màn hình Home */
.user-welcome {
    border-left: 5px solid #1976d2;
    background: #e3f2fd;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* RTE - trình soạn thảo đơn vị công tác */
.rte-btn {
    min-width: 32px;
    padding: 4px 8px;
    margin: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}
.rte-btn:hover { background: #e9e9e9; }
.rte-btn:active { background: #d0d0d0; }

#editOrgName:empty:before {
    content: attr(data-placeholder);
    color: #999;
}
#editOrgName { width: 100%; }
