/**
 * Blue City Assessor theme
 *
 * @format
 */

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: #202331;
  background: #f7f9fc;
  font-size: 13px;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
.app {
  min-height: 100vh;
}
.sidebar {
  width: 250px;
  background: #0756a3;
  color: #fff;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
}
.side-brand {
  min-height: 105px;
  padding: 18px 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.side-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 6px;
}
.side-brand b {
  display: block;
  font-size: 14px;
  color: #fff;
  line-height: 1.15;
}
.side-brand span {
  display: block;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.3;
  margin-top: 4px;
}
.logo-box {
  width: 52px;
  height: 52px;
  overflow: hidden;
}
.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.main-nav {
  padding: 15px 12px 5px;
  overflow: auto;
}
.main-nav > a,
.nav-group > a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 15px;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  margin-bottom: 4px;
}
.main-nav > a i,
.nav-group > a i {
  width: 22px;
  text-align: center;
  font-style: normal;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
}
.main-nav > a.active,
.nav-group > a.active {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 600;
}
.main-nav > a.active i,
.nav-group > a.active i {
  color: #fff;
}
.main-nav > a:hover,
.nav-group > a:hover {
  background: rgba(255, 255, 255, 0.1);
}
.main-nav > a.active:hover,
.nav-group > a.active:hover {
  background: rgba(255, 255, 255, 0.22);
}
.nav-label {
  padding: 12px 15px 5px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}
.nav-label b {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}
.nav-sep {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 15px 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.nav-sep i {
  font-size: 11px;
  opacity: 0.85;
}
.quick-create {
  margin: 15px 13px 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}
.quick-create > b {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
}
.quick-create a {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 9px 8px;
  border-radius: 7px;
  font-size: 12px;
  margin: 2px 0;
  color: #fff;
}
.quick-create a:hover {
  background: rgba(255, 255, 255, 0.12);
}
.logout {
  margin: auto 13px 5px;
  padding: 11px 15px;
  display: flex;
  gap: 13px;
  color: rgba(255, 255, 255, 0.8);
}
.logout:hover {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 7px;
}
.logout i {
  font-style: normal;
  font-size: 16px;
  width: 22px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}
.copyright {
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 9px;
  padding: 0 8px 12px;
}
.main {
  margin-left: 250px;
  min-height: 100vh;
}
.topbar {
  height: 94px;
  background: #fff;
  border-bottom: 1px solid #e3e8ef;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  gap: 20px;
}
.top-title {
  display: flex;
  align-items: center;
  gap: 15px;
}
.top-title h1 {
  font-size: 22px;
  margin: 0 0 4px;
  letter-spacing: -0.4px;
  color: #172b4d;
}
.top-title p {
  margin: 0;
  color: #6b778c;
  font-size: 12px;
}
.menu-toggle {
  display: none;
  border: 0;
  background: none;
  font-size: 21px;
  color: #0756a3;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.global-search {
  width: 390px;
  height: 40px;
  border: 1px solid #dce3eb;
  border-radius: 8px;
  display: flex;
  background: #fff;
}
.global-search input {
  border: 0;
  outline: 0;
  flex: 1;
  padding: 0 13px;
  background: transparent;
  color: #333;
}
.global-search button {
  width: 44px;
  border: 0;
  background: none;
  font-size: 21px;
  color: #0756a3;
}
.notify {
  position: relative;
  font-size: 23px;
  color: #155aa8;
}
.notify b {
  position: absolute;
  top: -7px;
  right: -8px;
  background: #0756a3;
  color: #fff;
  font-size: 8px;
  min-width: 15px;
  height: 15px;
  border-radius: 20px;
  display: grid;
  place-items: center;
}
.profile {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.profile strong,
.profile small {
  display: block;
}
.profile strong {
  font-size: 11px;
  color: #243b53;
}
.profile small {
  font-size: 10px;
  color: #777;
}
.logout-btn {
  position: relative;
  border: 1px solid #dce3eb;
  background: #fff;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  color: #8896a8;
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.logout-btn i {
  font-size: 17px;
  line-height: 1;
}
.logout-btn:hover {
  background: #fdecec;
  border-color: #f5c2c2;
  color: #c0392b;
}
.avatar {
  width: 37px;
  height: 37px;
  border-radius: 50%;
  background: #e7f0fb;
  color: #0756a3;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.bell {
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid #dce3eb;
  background: #fff;
  border-radius: 9px;
  color: #155aa8;
  font-size: 17px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.bell:hover {
  background: #eef4fc;
}
.bell-dot {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #e03131;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 10px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}
.notif-panel {
  position: absolute;
  top: 60px;
  right: 10px;
  width: min(350px, 92vw);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(10, 30, 60, 0.16);
  z-index: 1050;
  overflow: hidden;
}
.notif-panel-head {
  padding: 13px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #12365d;
  border-bottom: 1px solid #eef2f6;
  background: #fafbfc;
}
.notif-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  max-height: 300px;
  overflow-y: auto;
}
.notif-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 10px 16px;
  font-size: 12px;
  border-bottom: 1px solid #f2f4f7;
}
.notif-list li:last-child {
  border-bottom: 0;
}
.notif-list li > i {
  margin-top: 2px;
  font-size: 15px;
}
.notif-list li.success > i,
.notif-list li i.fa-circle-check {
  color: #1b7c3d;
}
.notif-list li.error > i,
.notif-list li i.fa-circle-xmark {
  color: #a31e31;
}
.notif-list li.info > i,
.notif-list li i.fa-circle-info {
  color: #0756a3;
}
.notif-list li.warning > i,
.notif-list li i.fa-triangle-exclamation {
  color: #c77700;
}
.notif-list li b {
  display: block;
  color: #243b53;
  font-size: 12px;
}
.notif-list li span {
  display: block;
  color: #5a6675;
  margin-top: 2px;
}
.notif-list li.notif-empty {
  color: #9aa4b0;
  justify-content: center;
  padding: 22px;
}
.notif-clear {
  width: 100%;
  border: 0;
  border-top: 1px solid #eef2f6;
  border-radius: 0;
  padding: 11px;
  font-size: 12px;
  color: #0756a3;
}
.notif-clear:hover {
  background: #eef4fc;
}
.content {
  padding: 20px 28px 32px;
}
.alert {
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 15px;
}
.alert.success {
  background: #e8f7ed;
  color: #1b7c3d;
}
.alert.danger {
  background: #fdeaea;
  color: #a31e31;
}
.alert.info {
  background: #e8f0fd;
  color: #0756a3;
}
.alert.warning {
  background: #fff5e6;
  color: #8a5a00;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #d8e0e8;
  background: #fff;
  border-radius: 7px;
  padding: 9px 14px;
  font-weight: 600;
  cursor: pointer;
}
.btn.primary {
  background: #0756a3;
  color: #fff;
  border-color: #0756a3;
}
.btn.full {
  width: 100%;
}
.btn.light {
  background: #fff;
}
.panel {
  background: #fff;
  border: 1px solid #e5eaf0;
  border-radius: 9px;
  box-shadow: 0 2px 10px rgba(20, 40, 70, 0.025);
}
.panel-head {
  padding: 16px 17px;
  border-bottom: 1px solid #edf0f4;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-head h2 {
  margin: 0;
  font-size: 14px;
  color: #172b4d;
}
.panel-head p {
  margin: 4px 0 0;
  color: #858f9f;
  font-size: 11px;
}
.text-link {
  color: #0756a3;
  font-weight: 600;
  font-size: 11px;
}
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #edf0f4;
  margin-bottom: 16px;
}
.tabs a {
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 600;
  color: #6b778c;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.tabs a.selected,
.tabs a:hover {
  color: #0756a3;
  border-bottom-color: #0756a3;
}
.row-selected {
  background: #f0f7ff !important;
}
.row-clickable {
  cursor: pointer;
  transition: background 0.15s;
}
.row-clickable:hover {
  background: #f5f9fd !important;
}
.row-radio {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #c5ced8;
  border-radius: 50%;
  position: relative;
}
.row-radio.on {
  border-color: #0756a3;
}
.row-radio.on::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 8px;
  height: 8px;
  background: #0756a3;
  border-radius: 50%;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.dashboard-stats {
  margin-bottom: 18px;
}
.stat-card {
  position: relative;
  min-height: 138px;
  padding: 18px;
  border: 1px solid #e5eaf0;
  border-radius: 9px;
  overflow: hidden;
}
.stat-card small {
  display: block;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #334e68;
}
.stat-card strong {
  display: block;
  font-size: 28px;
  margin: 5px 0 1px;
  color: #172b4d;
}
.stat-card span {
  display: block;
  color: #6d7785;
  font-size: 10px;
}
.stat-card em {
  display: block;
  margin-top: 16px;
  font-size: 10px;
  font-style: normal;
  color: #4b9b6b;
}
.stat-icon {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 47px;
  height: 47px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 24px;
}
.purple,
.blue {
  background: #eef6ff;
}
.purple .stat-icon,
.blue .stat-icon {
  background: #dcecff;
  color: #0756a3;
}
.orange {
  background: #fff9ed;
}
.orange .stat-icon {
  background: #fff0c9;
  color: #d99618;
}
.green {
  background: #f2faf5;
}
.green .stat-icon {
  background: #dcefe4;
  color: #15925c;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}
.recent-panel {
  grid-row: span 2;
}
.recent-tabs {
  height: 44px;
  border-bottom: 1px solid #edf0f4;
  display: flex;
  gap: 25px;
  padding: 0 17px;
}
.recent-tabs a {
  padding: 14px 0 11px;
  font-size: 11px;
}
.recent-tabs .selected {
  color: #0756a3;
  border-bottom: 2px solid #0756a3;
}
.recent-list {
  padding: 0;
}
.recent-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 17px;
  border-bottom: 1px solid #eef1f5;
}
.recent-item:hover {
  background: #f7fbff;
}
.recent-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex: none;
}
.recent-icon.in {
  background: #e7f0fb;
  color: #0756a3;
}
.recent-icon.out {
  background: #e7f7ee;
  color: #10935c;
}
.recent-item > div {
  flex: 1;
  min-width: 0;
}
.recent-item strong,
.recent-item small {
  display: block;
}
.recent-item strong {
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recent-item small {
  font-size: 9px;
  color: #858690;
  margin-top: 2px;
}
.badge {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}
.status-received,
.status-completed,
.status-approved,
.status-sent,
.status-replied {
  background: #e7f6ec;
  color: #1d7c40;
}
.status-pending,
.status-forwarded,
.status-draft,
.status-for_approval,
.status-for_review,
.status-for_action {
  background: #fff4dc;
  color: #a06c0a;
}
.status-archived {
  background: #f0f1f4;
  color: #6d7078;
}
.schedule-list {
  padding: 5px 14px;
}
.schedule-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 3px;
  border-bottom: 1px solid #f0f2f5;
}
.schedule-item:last-child {
  border-bottom: 0;
}
.date-box {
  width: 38px;
  text-align: center;
  border-right: 1px solid #e5e9ee;
  padding-right: 8px;
  flex: none;
}
.date-box b,
.date-box strong,
.date-box small {
  display: block;
}
.date-box b {
  font-size: 8px;
  color: #0756a3;
}
.date-box strong {
  font-size: 17px;
  color: #172b4d;
}
.date-box small {
  font-size: 8px;
  color: #777;
}
.schedule-item > div:nth-child(2) {
  flex: 1;
}
.schedule-item > div:nth-child(2) strong,
.schedule-item > div:nth-child(2) span,
.schedule-item > div:nth-child(2) small {
  display: block;
}
.schedule-item > div:nth-child(2) strong {
  font-size: 10px;
}
.schedule-item > div:nth-child(2) span,
.schedule-item > div:nth-child(2) small {
  font-size: 9px;
  color: #777;
  margin-top: 3px;
}
.schedule-item > em {
  font-style: normal;
  font-size: 8px;
  padding: 4px 6px;
  background: #e8f1fb;
  color: #0756a3;
  border-radius: 4px;
}
.calendar-widget {
  overflow: hidden;
}
.calendar-switch {
  display: flex;
  border: 1px solid #dfe5ec;
  border-radius: 6px;
  overflow: hidden;
}
.calendar-switch button,
.calendar-switch a {
  border: 0;
  background: #fff;
  padding: 6px 10px;
  font-size: 9px;
}
.calendar-switch .selected {
  background: #0756a3;
  color: #fff;
}
.mini-calendar {
  overflow: auto;
}
.calendar-head,
.calendar-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  min-width: 550px;
}
.calendar-head {
  border-bottom: 1px solid #edf0f4;
}
.calendar-head span {
  padding: 10px 5px;
  text-align: center;
  font-size: 8px;
  color: #777;
}
.calendar-head b {
  display: block;
  font-size: 11px;
  color: #222;
  margin-top: 4px;
}
.day-col {
  min-height: 210px;
  border-right: 1px solid #f0f2f5;
  padding: 7px 4px;
}
.day-col:last-child {
  border-right: 0;
}
.cal-event {
  background: #eaf3fc;
  border-left: 3px solid #0756a3;
  border-radius: 4px;
  padding: 6px;
  margin-bottom: 6px;
}
.cal-event b,
.cal-event small {
  display: block;
  font-size: 8px;
}
.cal-event small {
  margin-top: 3px;
  color: #777;
}
.tasks-widget {
  margin-top: 16px;
}
.task-row-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.task-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid #f0f2f5;
}
.task-check {
  width: 17px;
  height: 17px;
  border: 1px solid #d8d9df;
  border-radius: 50%;
  flex: none;
}
.task-row div {
  flex: 1;
}
.task-row strong,
.task-row small {
  display: block;
}
.task-row strong {
  font-size: 10px;
}
.task-row small {
  font-size: 9px;
  color: #888;
  margin-top: 3px;
}
.priority {
  font-size: 8px;
  padding: 4px 6px;
  border-radius: 4px;
}
.priority.low {
  background: #edf5ff;
  color: #3071b8;
}
.priority.medium {
  background: #fff4dc;
  color: #9a6a00;
}
.priority.high,
.priority.urgent {
  background: #fde9ec;
  color: #c32b42;
}
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.quick-actions a {
  background: #fff;
  border: 1px solid #e5eaf0;
  border-radius: 8px;
  padding: 16px 12px;
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 11px;
  color: #0756a3;
}
.quick-actions a:hover {
  background: #f3f8fe;
  border-color: #cbdcf0;
}
.quick-actions b {
  color: #333;
  font-size: 10px;
}
.toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}
.filters {
  background: #fff;
  border: 1px solid #e5eaf0;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}
.filters input,
.filters select {
  width: auto;
  flex: 1 1 150px;
  min-width: 135px;
}
.filters .btn {
  flex: none;
}
.filters input,
.filters select,
input,
select,
textarea {
  width: 100%;
  border: 1px solid #dce3eb;
  border-radius: 6px;
  padding: 9px 10px;
  background: #fff;
  color: #333;
  outline: 0;
}
.filters input:focus,
select:focus,
textarea:focus {
  border-color: #0756a3;
  box-shadow: 0 0 0 2px rgba(7, 86, 163, 0.08);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1000px;
}
th,
td {
  padding: 14px 14px;
  border-bottom: 1px solid #edf0f4;
  text-align: left;
  vertical-align: middle;
}
th {
  background: #f7f9fc;
  font-size: 11px;
  color: #555862;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
td {
  font-size: 12px;
}
.table-wrap {
  overflow: auto;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  min-width: 29px;
  height: 29px;
  border: 1px solid #dce3eb;
  border-radius: 6px;
  background: #fff;
  color: #0756a3;
  margin-right: 3px;
}
.icon-btn.edit {
  color: #0756a3;
}
.icon-btn.delete {
  color: #d3293e;
}
.actions {
  white-space: nowrap;
}
.form-panel,
.detail-card {
  background: #fff;
  border: 1px solid #e5eaf0;
  border-radius: 8px;
  padding: 20px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.wide {
  grid-column: 1/-1;
}
.form-grid label {
  font-size: 11px;
  font-weight: 600;
}
.form-grid input,
.form-grid select,
.form-grid textarea {
  margin-top: 5px;
}
.req {
  color: #0756a3;
}

/* Combobox (type + select) for office Sender / Recipient */
.oc-combobox {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 5px;
}
.oc-hint {
  display: block;
  margin-top: 6px;
  font-size: 9px;
  color: #c0392b;
  font-weight: 500;
}
.case-fields {
  grid-column: 1 / -1;
  background: #f7f9fc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #0756a3;
  border-radius: 10px;
  padding: 16px;
  margin: 4px 0 8px;
  width: 100%;
  box-sizing: border-box;
}
.case-fields .form-grid {
  margin: 0;
}
.oc-combobox input {
  flex: 1;
  padding-right: 34px;
  margin-top: 0;
}
.oc-cb-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  padding: 4px;
  line-height: 1;
}
.oc-cb-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 30;
  background: #fff;
  border: 1px solid #d9dde3;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  max-height: 200px;
  overflow: auto;
  list-style: none;
  margin: 6px 0 0;
  padding: 4px;
}
.oc-cb-list li {
  padding: 8px 10px;
  cursor: pointer;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #1b2430;
}
.oc-cb-list li:hover {
  background: #eef2ff;
}
.oc-cb-list li.oc-cb-empty {
  color: #999;
  cursor: default;
  font-weight: 400;
}
.oc-cb-list li.oc-cb-empty:hover {
  background: none;
}
.oc-combobox .oc-cb-list.oc-cb-empty::after {
  content: "No matching offices found";
  display: block;
  padding: 8px 10px;
  font-size: 12px;
  color: #999;
  font-weight: 400;
}
.oc-cb-list li.oc-cb-add {
  margin-top: 4px;
  border-top: 1px dashed #d8e0ea;
  border-radius: 0 0 6px 6px;
  color: #0756a3;
  font-weight: 600;
}
.oc-cb-list li.oc-cb-add span {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
}
.oc-cb-list li.oc-cb-add i {
  font-size: 11px;
}
.oc-cb-list li.oc-cb-add:hover {
  background: #e8f0fd;
}

/* Toast notifications */
.toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
}
.toast {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #e3e8ef;
  border-left: 4px solid #6b7280;
  border-radius: 10px;
  padding: 13px 14px;
  box-shadow: 0 10px 30px rgba(10, 30, 60, 0.14);
  opacity: 0;
  transform: translateX(20px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}
.toast.show {
  opacity: 1;
  transform: translateX(0);
}
.toast > i {
  font-size: 20px;
  margin-top: 1px;
}
.toast-success {
  border-left-color: #1b7c3d;
}
.toast-success > i {
  color: #1b7c3d;
}
.toast-error {
  border-left-color: #a31e31;
}
.toast-error > i {
  color: #a31e31;
}
.toast-info {
  border-left-color: #0756a3;
}
.toast-info > i {
  color: #0756a3;
}
.toast-warning {
  border-left-color: #c77700;
}
.toast-warning > i {
  color: #c77700;
}
.toast-body {
  flex: 1;
}
.toast-body b {
  display: block;
  font-size: 13px;
  color: #16202c;
}
.toast-body span {
  display: block;
  font-size: 12px;
  color: #5a6675;
  margin-top: 2px;
  word-break: break-word;
}
.toast-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #9aa4b0;
  padding: 2px;
  line-height: 1;
}
.toast-close:hover {
  color: #333;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}
.empty {
  text-align: center;
  padding: 30px;
  color: #999;
}
.detail-head {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  padding-bottom: 16px;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}
.detail-grid small,
.detail-grid b {
  display: block;
}
.detail-grid small {
  font-size: 9px;
  color: #888;
  margin-bottom: 5px;
}
.detail-text {
  padding-top: 16px;
}
.detail-text h3 {
  font-size: 12px;
}
.detail-text p {
  line-height: 1.7;
  color: #555;
}

/* Communication layout (list left + detail sidebar right) */
.communication-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 16px;
}
.detail-side {
  position: sticky;
  top: 20px;
  align-self: start;
}
.detail-side-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 17px;
  border-bottom: 1px solid #edf0f4;
}
.detail-side-head h2 {
  margin: 0;
  font-size: 14px;
  color: #172b4d;
}
.detail-side-head a {
  font-size: 16px;
  color: #888;
}
.detail-actions {
  padding: 12px 17px;
  display: flex;
  gap: 6px;
  border-bottom: 1px solid #edf0f4;
}
.detail-actions .btn {
  font-size: 11px;
  padding: 6px 10px;
}
.side-details {
  padding: 16px 17px;
}
.side-details > div {
  margin-bottom: 14px;
}
.side-details > div:last-child {
  margin-bottom: 0;
}
.side-details small {
  display: block;
  font-size: 9px;
  color: #888;
  margin-bottom: 4px;
}
.side-details b {
  display: block;
  font-size: 11px;
  color: #222;
}
.side-details b a {
  color: #0756a3;
  text-decoration: underline;
  font-weight: 600;
}
.detail-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}
.detail-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f0f4f8;
  display: grid;
  place-items: center;
  font-size: 28px;
  color: #99a8b7;
  margin-bottom: 16px;
}
.detail-empty p {
  font-size: 14px;
  font-weight: 600;
  color: #555;
  margin: 0 0 6px;
}
.detail-empty small {
  font-size: 11px;
  color: #999;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 3000;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.modal-overlay.active {
  display: flex;
  opacity: 1;
}
.modal-overlay.closing {
  opacity: 0;
}
.modal-box {
  position: relative;
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 820px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
  animation: modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center top;
}
.modal-overlay.closing .modal-box {
  animation: modalSlideOut 0.2s ease forwards;
}
@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes modalSlideOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-20px) scale(0.97);
  }
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #edf0f4;
}
.modal-head h2 {
  margin: 0;
  font-size: 16px;
  color: #172b4d;
}
.modal-body {
  padding: 24px;
  max-height: 70vh;
  overflow-y: auto;
}
.modal-loading {
  text-align: center;
  padding: 60px 40px;
  color: #999;
}
#logoutModal .modal-box {
  margin: auto;
  max-width: 380px;
  text-align: center;
  padding: 34px 30px 28px;
}
#logoutModal .modal-box h2 {
  margin: 14px 0 6px;
  font-size: 20px;
  color: #172b4d;
}
#logoutModal .modal-box p {
  margin: 0 0 22px;
}
.logout-modal-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto;
  border-radius: 50%;
  background: #fdecea;
  color: #c0392b;
  font-size: 24px;
  display: grid;
  place-items: center;
}
.logout-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.logout-modal-actions .btn {
  min-width: 118px;
}

.modal-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}
.modal-logo-wrap img {
  width: 64px;
  height: 64px;
  animation: logoPulse 1.2s ease-in-out infinite;
}
@keyframes logoPulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}
.modal-loading p {
  margin: 0;
  font-size: 13px;
  color: #888;
}
.modal-action-loading {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 12px;
}
.modal-action-loading .modal-loading {
  padding: 40px;
}
.modal-action-loading .modal-logo-wrap img {
  width: 52px;
  height: 52px;
}
.modal-content-fade {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}
.modal-content-fade.visible {
  opacity: 1;
  transform: translateY(0);
}
.modal-body .form-panel,
.modal-body .detail-card {
  border: none;
  padding: 0;
  box-shadow: none;
}
.modal-body .form-grid {
  grid-template-columns: 1fr 1fr;
}
.modal-body .detail-grid {
  grid-template-columns: repeat(3, 1fr);
}
.modal-body .detail-head {
  border-bottom: 1px solid #eee;
}
.modal-body .form-actions,
.modal-body .detail-head > div:last-child {
  padding-top: 16px;
}

/* Stats compact (reports) */
.stats.compact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.stats.compact .stat {
  background: #f7f9fc;
  border: 1px solid #e5eaf0;
  border-radius: 7px;
  padding: 14px 16px;
  text-align: center;
}
.stats.compact .stat span {
  display: block;
  font-size: 10px;
  color: #6d7785;
}
.stats.compact .stat strong {
  display: block;
  font-size: 22px;
  color: #172b4d;
  margin-top: 4px;
}
.report-hint {
  text-align: center;
  padding: 12px;
  font-size: 12px;
  color: #999;
}
.report-hint a {
  color: #0756a3;
  text-decoration: underline;
}
.report-month-group {
  margin-top: 20px;
  border: 1px solid #edf0f4;
  border-radius: 10px;
  overflow: hidden;
}
.report-month-group:first-of-type {
  margin-top: 0;
}
.report-month-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #f7f9fc;
  border-bottom: 1px solid #edf0f4;
}
.report-month-head h3 {
  margin: 0;
  font-size: 14px;
  color: #172b4d;
}
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #06519a 0%, #0a3d74 100%);
}
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.login-hero {
  position: relative;
  display: grid;
  place-items: center;
  color: #fff;
  background:
    radial-gradient(
      circle at 20% 15%,
      rgba(255, 255, 255, 0.14),
      transparent 45%
    ),
    radial-gradient(
      circle at 85% 90%,
      rgba(255, 255, 255, 0.1),
      transparent 40%
    ),
    linear-gradient(135deg, #0a3d74 0%, #0756a3 55%, #06519a 100%);
  overflow: hidden;
}
.login-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.03) 0 2px,
    transparent 2px 12px
  );
}
.login-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 460px;
  padding: 40px;
}
.hero-brand {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
}
.hero-logo {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: #fff;
  padding: 4px;
}
.hero-brand b {
  display: block;
  font-size: 16px;
  letter-spacing: 0.5px;
}
.hero-brand span {
  display: block;
  font-size: 12px;
  opacity: 0.85;
  margin-top: 2px;
}
.login-hero h2 {
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 14px;
  font-weight: 800;
}
.login-hero p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 26px;
}
.hero-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.hero-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.hero-features i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  font-size: 14px;
}
.login-main {
  display: grid;
  place-items: center;
  padding: 30px;
}
.login-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 38px;
  box-shadow: 0 20px 60px rgba(5, 30, 60, 0.25);
}
.login-card h1 {
  font-size: 25px;
  color: #12365d;
  margin: 0 0 4px;
}
.login-card .muted {
  margin-top: 0;
}
.login-mobile-brand {
  display: none;
}
.login-form label {
  display: block;
  margin-top: 16px;
  font-size: 11px;
  font-weight: 700;
  color: #2c3a4c;
}
.input-icon {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 6px;
}
.input-icon > i {
  position: absolute;
  left: 12px;
  color: #8a96a4;
  font-size: 14px;
}
.input-icon input {
  width: 100%;
  padding: 11px 12px 11px 36px;
}
.pw-toggle {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: #8a96a4;
  cursor: pointer;
  padding: 6px;
}
.pw-toggle:hover {
  color: #333;
}
.login-form .btn {
  width: 100%;
  margin-top: 22px;
  padding: 12px;
  font-size: 14px;
}
.hint {
  font-size: 10px;
  color: #9aa4b0;
  text-align: center;
  margin-top: 20px;
}
.muted {
  color: #888;
}
.logout-card {
  text-align: center;
  padding: 44px 38px;
}
.logout-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fdeaea;
  color: #a31e31;
  font-size: 26px;
}
.logout-card .btn.danger {
  background: #a31e31;
  border-color: #a31e31;
  color: #fff;
}
.logout-actions {
  margin-top: 22px;
}
.logout-cancel {
  margin-top: 10px;
}

@media (max-width: 900px) {
  .login-shell {
    grid-template-columns: 1fr;
  }
  .login-hero {
    display: none;
  }
  .login-main {
    padding: 20px;
  }
  .login-mobile-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
    justify-content: center;
  }
  .login-mobile-brand img {
    width: 48px;
    height: 48px;
  }
  .login-mobile-brand b {
    display: block;
    color: #12365d;
    font-size: 14px;
  }
  .login-mobile-brand span {
    display: block;
    color: #657084;
    font-size: 11px;
  }
}
@media (max-width: 1200px) {
  .global-search {
    width: 270px;
  }
  .quick-actions {
    grid-template-columns: repeat(3, 1fr);
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .recent-panel {
    grid-row: auto;
  }
  .communication-layout {
    grid-template-columns: 1fr;
  }
  .task-row-list {
    grid-template-columns: 1fr;
  }
  .filters {
    flex-direction: column;
    align-items: stretch;
  }
  .filters input,
  .filters select {
    flex: 1 1 auto;
    width: 100%;
  }
}
@media (max-width: 800px) {
  .sidebar {
    width: 70px;
  }
  .side-brand {
    justify-content: center;
    padding: 18px 10px;
  }
  .side-brand > div:not(.logo-box) {
    display: none;
  }
  .side-brand img {
    width: 42px;
    height: 42px;
  }
  .nav-label,
  .main-nav span,
  .quick-create,
  .logout span,
  .copyright {
    display: none;
  }
  .main-nav > a,
  .nav-group > a {
    justify-content: center;
    padding: 12px;
  }
  .main-nav > a i,
  .nav-group > a i {
    font-size: 20px;
  }
  .main {
    margin-left: 70px;
  }
  .topbar {
    padding: 14px 16px;
    height: auto;
  }
  .menu-toggle {
    display: block;
  }
  .top-actions {
    gap: 10px;
  }
  .global-search {
    display: none;
  }
  .profile-id {
    display: none;
  }
  .content {
    padding: 15px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .wide {
    grid-column: auto;
  }
  .filters {
    flex-direction: column;
    align-items: stretch;
  }
  .quick-actions {
    grid-template-columns: 1fr 1fr;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .stats.compact {
    grid-template-columns: 1fr;
  }
  .side-brand {
    min-height: 76px;
  }
}

/* ============ New status badges ============ */
.status-in_progress {
  background: #e8f1fb;
  color: #0756a3;
}
.status-scheduled {
  background: #f1ebfb;
  color: #6b3fb8;
}
.status-cancelled {
  background: #fde9ec;
  color: #c32b42;
}
.badge.blue {
  background: #e8f1fb;
  color: #0756a3;
}
.badge.green {
  background: #e7f6ec;
  color: #1d7c40;
}

/* ============ Buttons / icon buttons ============ */
.btn.success {
  background: #1d7c40;
  color: #fff;
  border-color: #1d7c40;
}
.btn.danger {
  background: #fff;
  color: #c32b42;
  border-color: #eec4cb;
}
.btn.danger:hover {
  background: #fdeaea;
}
.icon-btn.sched {
  color: #6b3fb8;
}
.icon-btn.unsched {
  color: #a06c0a;
}
.icon-btn.done {
  color: #1d7c40;
}
.icon-btn.cancel {
  color: #d3293e;
}
.inline-form {
  display: inline-block;
}
.detail-actions {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  flex-wrap: wrap;
}
.sched-cell small {
  display: block;
  font-size: 10px;
  color: #777;
}
.toolbar-note {
  align-self: center;
  font-size: 11px;
  color: #858f9f;
}

/* ============ Schedule form summary ============ */
.sched-summary {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: #f5f9fd;
  border: 1px solid #dbe7f3;
  border-radius: 7px;
  padding: 11px 13px;
  margin-bottom: 15px;
}
.sched-summary b {
  font-size: 12px;
  color: #0756a3;
}
.sched-summary span {
  font-size: 11px;
  color: #55606e;
}

/* ============ Scheduled communications calendar ============ */
.calendar-full .panel-head {
  flex-wrap: wrap;
  gap: 10px;
}
.month-grid {
  min-width: 720px;
}
.month-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid #edf0f4;
}
.month-weekdays b {
  padding: 9px 6px;
  text-align: center;
  font-size: 10px;
  color: #858f9f;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.month-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.month-day {
  min-height: 108px;
  border-right: 1px solid #f0f2f5;
  border-bottom: 1px solid #f0f2f5;
  padding: 7px;
}
.month-day:nth-child(7n) {
  border-right: 0;
}
.month-day strong {
  font-size: 11px;
  color: #172b4d;
}
.month-day.muted-day {
  background: #fafbfc;
}
.month-day.muted-day strong {
  color: #c3c9d2;
}
.month-day.today {
  background: #f0f7ff;
}
.month-day.today strong {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  background: #0756a3;
  color: #fff;
  border-radius: 50%;
}
.month-event {
  display: block;
  margin-top: 6px;
  padding: 5px 6px;
  border-radius: 5px;
  border-left: 3px solid #0756a3;
  background: #eaf3fc;
}
.month-event.outgoing {
  border-left-color: #1d7c40;
  background: #e7f6ec;
}
.month-event b,
.month-event small {
  display: block;
  font-size: 9px;
  line-height: 1.35;
}
.month-event small {
  color: #777;
  font-weight: 400;
}
.month-event:hover {
  filter: brightness(0.96);
}
.cal-legend {
  display: flex;
  gap: 18px;
  padding: 12px 17px;
  border-top: 1px solid #edf0f4;
  font-size: 10px;
  color: #6b778c;
}
.cal-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cal-legend .dot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  display: inline-block;
}
.cal-legend .dot.incoming {
  background: #0756a3;
}
.cal-legend .dot.outgoing {
  background: #1d7c40;
}

/* Schedule Calendar: calendar + per-user Today's Schedule */
.cal-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 16px;
  align-items: start;
}
.today-panel {
  background: #fff;
  border: 1px solid #edf0f4;
  border-radius: 12px;
  padding: 16px;
  position: sticky;
  top: 20px;
}
.today-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #edf0f4;
}
.today-panel-head i {
  font-size: 18px;
  color: #0756a3;
}
.today-panel-head b {
  display: block;
  font-size: 13px;
  color: #172b4d;
}
.today-panel-head small {
  font-size: 10px;
  color: #98a1ae;
}
.today-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.today-items li a {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #edf0f4;
  border-radius: 8px;
  padding: 9px 11px;
}
.today-items li a:hover {
  border-color: #bcd6ef;
  background: #f5f9fe;
}
.today-items .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.today-items .dot.incoming {
  background: #4fa3ff;
}
.today-items .dot.outgoing {
  background: #3ec77a;
}
.today-items .ti-time {
  font-weight: 700;
  font-size: 11px;
  color: #0756a3;
  min-width: 58px;
}
.today-items .ti-body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.today-items .ti-body b {
  font-size: 11.5px;
  color: #202331;
}
.today-items .ti-body small {
  font-size: 10px;
  color: #98a1ae;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 900px) {
  .cal-layout {
    grid-template-columns: 1fr;
  }
  .today-panel {
    position: static;
  }
}

/* ============ Font Awesome helpers ============ */
.btn i {
  font-size: 11.5px;
}
.tabs a i {
  margin-right: 7px;
  font-size: 11px;
}
.icon-btn i {
  font-size: 12px;
}
.stat-icon i {
  font-size: 22px;
}
.quick-actions a i {
  font-size: 15px;
  color: #0756a3;
}
.recent-item .recent-icon i {
  font-size: 13px;
}
.month-event b i {
  margin-right: 2px;
}
.file-download i {
  font-size: 12px;
}

/* ============ Attachment file card ============ */
.file-card {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 440px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 10px 13px;
  background: #fafbfc;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    background 0.15s;
}
.file-card:hover {
  border-color: #bcd6ef;
  background: #fff;
  box-shadow: 0 2px 10px rgba(20, 40, 70, 0.07);
}
.file-icon {
  width: 42px;
  height: 48px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 6px;
  position: relative;
  background: #eef1f5;
  color: #5b6673;
}
.file-icon::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-style: solid;
  border-width: 0 9px 9px 0;
  border-color: transparent #fff transparent transparent;
  filter: drop-shadow(-1px 1px 1px rgba(20, 40, 70, 0.08));
}
.file-icon b {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
}
.file-card.ext-pdf .file-icon,
.ext-file .file-icon {
  background: #fdeaea;
  color: #c0392b;
}
.file-card.ext-doc .file-icon,
.file-card.ext-docx .file-icon {
  background: #e8f1fb;
  color: #2b579a;
}
.file-card.ext-xls .file-icon,
.file-card.ext-xlsx .file-icon {
  background: #e7f6ec;
  color: #1d7c40;
}
.file-card.ext-jpg .file-icon,
.file-card.ext-jpeg .file-icon,
.file-card.ext-png .file-icon {
  background: #f1ebfb;
  color: #6b3fb8;
}
.file-info {
  flex: 1;
  min-width: 0;
}
.file-info strong {
  display: block;
  font-size: 11.5px;
  color: #172b4d;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-info small {
  display: block;
  font-size: 9.5px;
  color: #98a1ae;
  margin-top: 3px;
}
.file-download {
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #dce3eb;
  border-radius: 6px;
  background: #fff;
  color: #0756a3;
}

/* ============ Remarks / comment thread ============ */
.remark-thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 12px 0 16px;
}
.remark-item {
  display: flex;
  gap: 10px;
}
.remark-avatar {
  width: 28px;
  height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  background: #0756a3;
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}
.remark-bubble {
  flex: 1;
  background: #f5f7fa;
  border: 1px solid #e7ebf1;
  border-radius: 8px;
  padding: 9px 12px;
}
.remark-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.remark-meta b {
  font-size: 11px;
  color: #172b4d;
}
.remark-meta small {
  font-size: 9px;
  color: #98a1ae;
}
.remark-bubble p {
  margin: 5px 0 0;
  font-size: 11.5px;
  color: #3d4552;
}
.muted-empty {
  font-size: 11px;
  color: #98a1ae;
  margin: 6px 0;
}
.remark-form {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 4px;
}
.remark-form textarea {
  flex: 1;
  resize: vertical;
}
.remark-form.standalone {
  max-width: 640px;
}

/* ============ Tasks module ============ */
.task-day-panel {
  margin-bottom: 18px;
}
.task-day-panel.today-panel {
  border-color: #bcd6ef;
  box-shadow: 0 2px 12px rgba(7, 86, 163, 0.09);
}
.task-group {
  padding: 13px 17px 15px;
}
.task-group + .task-group {
  border-top: 1px dashed #e7ebf1;
}
.task-group h4 {
  margin: 0 0 9px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #858f9f;
}
.task-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 9px 10px;
  border: 1px solid #edf0f4;
  border-radius: 8px;
  margin-bottom: 8px;
  transition:
    opacity 0.15s,
    background 0.15s;
}
.task-item:hover {
  background: #fafcfe;
}
.tick-form {
  display: inline-flex;
  margin-top: 1px;
}
.task-check-label {
  cursor: pointer;
  display: inline-grid;
  place-items: center;
}
.task-check-label input {
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  border: 1.5px solid #c5ced8;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: all 0.15s;
}
.task-check-label input:hover {
  border-color: #0756a3;
}
.task-check-label input:checked {
  background: #1d7c40;
  border-color: #1d7c40;
}
.task-check-label input:checked::after {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}
.task-info {
  flex: 1;
  min-width: 0;
}
.task-info strong {
  display: block;
  font-size: 12px;
  color: #172b4d;
}
.task-info small {
  display: block;
  font-size: 10px;
  color: #858f9f;
  margin-top: 2px;
}
.task-item.done {
  background: #fafbfc;
}
.task-item.done .task-info strong {
  text-decoration: line-through;
  color: #98a1ae;
}
.task-item.done .task-info small {
  color: #b6bdc8;
}
.task-item.done .badge.blue {
  background: #f0f1f4;
  color: #6d7078;
}
.task-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.done-at {
  font-size: 9px;
  color: #1d7c40;
}
.group-empty {
  font-size: 11px;
  color: #b6bdc8;
  font-style: italic;
  margin: 2px 0;
}

/* ============ User Management / RBAC ============ */
.role-admin {
  background: #f1ebfb;
  color: #6b3fb8;
}
.role-encoder {
  background: #e8f1fb;
  color: #0756a3;
}
.role-viewer {
  background: #f0f1f4;
  color: #6d7078;
}
.user-cell {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.user-cell b {
  font-size: 12px;
}
.user-cell small {
  font-size: 9px;
  color: #98a1ae;
}
.user-avatar {
  width: 27px;
  height: 27px;
  flex: none;
  display: grid;
  place-items: center;
  background: #0756a3;
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}
.row-muted td {
  opacity: 0.55;
}
.task-check-static {
  display: block;
  width: 17px;
  height: 17px;
  border: 1.5px solid #c5ced8;
  border-radius: 50%;
  background: #fff;
}
.task-check-static.checked {
  background: #1d7c40;
  border-color: #1d7c40;
}

@media (max-width: 800px) {
  .month-grid {
    min-width: 560px;
  }
  .remark-form {
    flex-direction: column;
  }
  .remark-form .btn {
    align-self: flex-end;
  }
}

/* ============ Particulars tab (communication detail) ============ */
.particulars {
  margin-top: 18px;
  border: 1px solid #edf0f4;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.part-tabs {
  display: flex;
  gap: 2px;
  background: #f3f6fb;
  border-bottom: 1px solid #edf0f4;
  padding: 6px 6px 0;
  overflow-x: auto;
}
.part-tab {
  border: none;
  background: transparent;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7686;
  cursor: pointer;
  border-radius: 7px 7px 0 0;
  white-space: nowrap;
}
.part-tab:hover {
  color: #0756a3;
  background: #e9f0f9;
}
.part-tab.is-active {
  color: #0756a3;
  background: #fff;
  box-shadow: inset 0 -2px 0 #0756a3;
}
.part-panel {
  padding: 18px;
}
.part-panel[hidden] {
  display: none;
}
.part-group {
  padding: 14px 18px 18px;
}
.part-group + .part-group-title {
  border-top: 1px solid #edf0f4;
  margin-top: 4px;
  padding-top: 14px;
}
.part-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px 0;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #172b4d;
}
.part-group-title i {
  color: #0756a3;
  font-size: 12px;
}
.part-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 14px;
}
.part-grid small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #98a1ae;
  margin-bottom: 4px;
}
.part-grid b {
  font-size: 13px;
  color: #202331;
}
.part-block {
  margin-bottom: 14px;
}
.part-block small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #98a1ae;
  margin-bottom: 5px;
}
.part-block p {
  margin: 0;
  line-height: 1.6;
  color: #4a5462;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #eef4fb;
  color: #0756a3;
  border: 1px solid #d6e4f3;
  border-radius: 20px;
  padding: 4px 11px;
  font-size: 11.5px;
  font-weight: 500;
}
.chip i {
  font-size: 10px;
}
.multi-select {
  min-height: 110px;
}

/* ============ Sidebar: Today's Schedule + mini calendar ============ */
.side-schedule {
  margin: 14px 14px 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 12px;
}
.side-sched-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  color: #cfe3f7;
  margin-bottom: 10px;
}
.side-sched-head i {
  color: #8fc4f5;
}
.mini-cal {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 7px;
  margin-bottom: 10px;
}
.mini-weekdays,
.mini-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.mini-weekdays b {
  text-align: center;
  font-size: 8.5px;
  font-weight: 700;
  color: #9cc2e8;
  padding: 2px 0;
}
.mini-day {
  text-align: center;
  font-size: 10px;
  padding: 3px 0;
  border-radius: 4px;
  color: #e7f0fa;
}
.mini-day.muted {
  color: rgba(231, 240, 250, 0.35);
}
.mini-day.is-today {
  background: #ffd23f;
  color: #5a4500;
  font-weight: 700;
}
.side-sched-list b {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #9cc2e8;
  margin-bottom: 6px;
}
.side-sched-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 180px;
  overflow-y: auto;
}
.side-sched-list li a {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 11px;
  color: #eaf3fc;
}
.side-sched-list li a:hover {
  background: rgba(255, 255, 255, 0.2);
}
.side-sched-list .sched-time {
  font-weight: 700;
  color: #ffd23f;
  min-width: 56px;
}
.side-sched-list .sched-ref {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side-sched-list .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.side-sched-list .dot.incoming {
  background: #4fa3ff;
}
.side-sched-list .dot.outgoing {
  background: #3ec77a;
}

/* ===== Print Reports ===== */
.filters.gapbig { gap: 12px 14px; }
.filters label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #55657a;
  flex: 1 1 150px;
  min-width: 135px;
}
.filters label select { width: 100%; }
.filters .btn { margin-left: 2px; }

.print-sheet {
  background: #fff;
  border: 1px solid #e5eaf0;
  border-radius: 10px;
  padding: 34px 38px;
  box-shadow: 0 3px 16px rgba(15, 23, 42, 0.06);
}
.report-letterhead {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid #172b4d;
  margin-bottom: 18px;
}
.report-letterhead img { width: 74px; height: 74px; object-fit: contain; }
.report-letterhead h1 {
  margin: 0;
  font-size: 15px;
  color: #172b4d;
  letter-spacing: 0.02em;
}
.report-letterhead h2 {
  margin: 2px 0;
  font-size: 17px;
  color: #172b4d;
}
.report-letterhead p { margin: 0; font-size: 12px; color: #55657a; }
.report-title { text-align: center; margin-bottom: 20px; }
.report-title h2 { margin: 0 0 4px; font-size: 17px; color: #172b4d; }
.report-title p { margin: 0; font-size: 12.5px; color: #55657a; }

.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.report-table th,
.report-table td {
  border: 1px solid #d4d9e0;
  padding: 7px 9px;
  text-align: left;
  vertical-align: top;
}
.report-table th {
  background: #f1f4f8;
  color: #172b4d;
  font-weight: 700;
}
.report-table .num { text-align: right; white-space: nowrap; }
.report-table tr.total td {
  background: #f1f4f8;
  font-weight: 700;
}
.report-total {
  margin-top: 12px;
  font-size: 12px;
  color: #172b4d;
  text-align: right;
}
.report-sign {
  display: flex;
  justify-content: space-between;
  margin-top: 34px;
  font-size: 12.5px;
  color: #333;
}

.print-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

@media print {
  body { background: #fff !important; }
  .sidebar,
  .topbar,
  #reportSelection,
  .alert,
  .no-print {
    display: none !important;
  }
  .app { margin: 0; }
  .main {
    margin-left: 0 !important;
    padding: 0 !important;
  }
  .content {
    padding: 0 !important;
    margin: 0 !important;
  }
  .print-sheet {
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 10px 0;
  }
  .report-table th,
  .report-table td {
    padding: 5px 7px;
  }
}

/* ===== Modern Dashboard ===== */
.dash-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(120deg, #0756a3 0%, #0b7ad1 60%, #12a5e0 100%);
  border-radius: 14px;
  padding: 22px 26px;
  color: #fff;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px rgba(7, 86, 163, 0.22);
  position: relative;
  overflow: hidden;
}
.dash-hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%);
}
.dash-hero-kicker {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 6px;
}
.dash-hero-text h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}
.dash-hero-text p {
  margin: 6px 0 0;
  font-size: 12px;
  opacity: 0.9;
}
.dash-hero-flag {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  padding: 12px 18px;
  position: relative;
  z-index: 1;
  flex: none;
}
.dash-hero-flag i {
  font-size: 24px;
}
.dash-hero-flag b {
  display: block;
  font-size: 20px;
  line-height: 1;
}
.dash-hero-flag span {
  font-size: 10px;
  opacity: 0.9;
}

.dash-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  margin-bottom: 16px;
}

/* By particulars bars */
.bar-list {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bar-label {
  width: 130px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #334e68;
}
.bar-label i {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 13px;
}
.bar-label i.part-in  { background: #e7f0fb; color: #0756a3; }
.bar-label i.part-out { background: #e7f7ee; color: #10935c; }
.bar-label i.part-fin { background: #e6f7f5; color: #0e8f87; }
.bar-label i.part-case{ background: #ecebfd; color: #5a54d6; }
.bar-label i.part-cmp { background: #fdeaea; color: #d64545; }
.bar-track {
  flex: 1;
  height: 9px;
  background: #eef1f6;
  border-radius: 6px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.bar-fill.part-in  { background: #3b82f6; }
.bar-fill.part-out { background: #22a06b; }
.bar-fill.part-fin { background: #14b8a6; }
.bar-fill.part-case{ background: #6d69e0; }
.bar-fill.part-cmp { background: #ec5b5b; }
.bar-val {
  width: 32px;
  text-align: right;
  font-weight: 700;
  font-size: 13px;
  color: #172b4d;
}

/* Donut */
.donut-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 24px;
}
.donut {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  flex: none;
}
.donut-hole {
  width: 104px;
  height: 104px;
  margin: 23px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.donut-hole b {
  font-size: 24px;
  color: #172b4d;
}
.donut-hole span {
  font-size: 9px;
  color: #8a94a3;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.donut-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.donut-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #4a5462;
}
.donut-legend li b {
  margin-left: auto;
  color: #172b4d;
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex: none;
}

/* Monthly chart */
.chart-panel {
  margin-bottom: 16px;
}
.month-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 210px;
  padding: 26px 24px 16px;
}
.month-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}
.month-val {
  font-size: 10px;
  font-weight: 600;
  color: #8a94a3;
  margin-bottom: 4px;
}
.month-bar {
  width: 100%;
  max-width: 34px;
  border-radius: 7px 7px 0 0;
  background: linear-gradient(180deg, #4aa3ff, #2b7fdb);
  min-height: 3px;
}
.month-bar.is-now {
  background: linear-gradient(180deg, #ffd36b, #f0a92e);
  position: relative;
}
.month-label {
  margin-top: 8px;
  font-size: 10px;
  font-weight: 600;
  color: #6b778c;
}

/* Upcoming schedule list */
.sched-list {
  padding: 6px 0;
}
.sched-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 17px;
  border-bottom: 1px solid #eef1f5;
}
.sched-item:hover {
  background: #f7fbff;
}
.sched-item > div {
  flex: 1;
  min-width: 0;
}
.sched-item strong {
  display: block;
  font-size: 11px;
  color: #172b4d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sched-item small {
  font-size: 9px;
  color: #858690;
  margin-top: 2px;
  display: block;
}
.sched-date {
  width: 42px;
  height: 46px;
  border-radius: 9px;
  background: #f1f6fd;
  border: 1px solid #dfe9f6;
  color: #0756a3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: none;
}
.sched-date b {
  font-size: 15px;
  line-height: 1;
}
.sched-date small {
  font-size: 9px;
  text-transform: uppercase;
  margin-top: 3px;
}

/* Recent icon color classes (dashboard) */
.recent-icon.part-incoming { background: #e7f0fb; color: #0756a3; }
.recent-icon.part-outgoing { background: #e7f7ee; color: #10935c; }
.recent-icon.part-financials{ background: #e6f7f5; color: #0e8f87; }
.recent-icon.part-case    { background: #ecebfd; color: #5a54d6; }
.recent-icon.part-complaints{ background: #fdeaea; color: #d64545; }
.recent-icon.part-general  { background: #eef1f6; color: #6b778c; }

@media (max-width: 1100px) {
  .dash-grid,
  .dash-grid.list-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .dash-hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .donut-wrap {
    flex-direction: column;
  }
  .stats.dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Communication form sections ===== */
.field-section {
  border: 1px solid #e5eaf0;
  border-radius: 12px;
  padding: 18px 18px 12px;
  margin: 0 0 18px;
  background: #fff;
}
.field-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #172b4d;
  margin: 0 0 14px;
}
.field-section-head i {
  color: #0756a3;
  font-size: 13px;
}
.field {
  font-size: 11px;
  font-weight: 600;
  color: #334e68;
}
.field .field-hint {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: #8a94a3;
  margin: 2px 0 4px;
}
.case-head {
  margin-bottom: 14px;
}
.case-head i {
  color: #5a54d6;
}
.field .oc-hint {
  margin-top: 5px;
}

/* ===== Today schedule assignee ===== */
.ti-assignee {
  display: block;
  margin-top: 3px;
  color: #0756a3;
  font-size: 10px;
  font-weight: 600;
}
.ti-assignee i {
  margin-right: 3px;
}

/* ===== Schedule attendee chip picker ===== */
.attendee-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.attendee-picker .chips {
  min-height: 26px;
}
.chip-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  line-height: 1;
  margin-left: 2px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(7, 86, 163, 0.12);
  color: #0756a3;
  font-size: 13px;
  cursor: pointer;
}
.chip-x:hover {
  background: #d9534f;
  color: #fff;
}
.attendee-add-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.attendee-select {
  flex: 1;
}

/* ===== Professional header: topbar, breadcrumb, profile ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 900;
  height: 72px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid #e8edf4;
  box-shadow: 0 1px 3px rgba(16, 37, 68, 0.05);
  padding: 0 28px;
}
.top-title {
  display: flex;
  align-items: center;
  gap: 14px;
}
.crumb-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0756a3, #0b74d0);
  color: #fff;
  font-size: 18px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(7, 86, 163, 0.25);
  flex: none;
}
.top-title h1 {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 3px;
  letter-spacing: -0.3px;
  color: #172b4d;
}
.crumb {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
}
.crumb a {
  color: #6b778c;
  text-decoration: none;
  font-weight: 500;
}
.crumb a:hover {
  color: #0756a3;
}
.crumb i {
  font-size: 8px;
  color: #b6c0cc;
}
.crumb span {
  color: #0756a3;
  font-weight: 600;
}
.bell-wrap {
  position: relative;
}
.profile {
  position: relative;
}
.profile-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e3e9f1;
  background: #fff;
  border-radius: 10px;
  padding: 5px 12px 5px 6px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.profile-btn:hover {
  border-color: #c4d3e6;
  box-shadow: 0 2px 8px rgba(16, 37, 68, 0.08);
}
.profile-id strong,
.profile-id small {
  display: block;
}
.profile-id strong {
  font-size: 12px;
  color: #243b53;
  line-height: 1.2;
}
.profile-id small {
  font-size: 10.5px;
  color: #7a8797;
  text-transform: capitalize;
}
.profile-caret {
  font-size: 10px;
  color: #8b98a7;
  margin-left: 2px;
}
.profile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 260px;
  background: #fff;
  border: 1px solid #e3e9f1;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(10, 30, 60, 0.16);
  overflow: hidden;
  z-index: 1060;
  animation: menuIn 0.15s ease;
}
@keyframes menuIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.profile-menu-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px;
  background: linear-gradient(135deg, #0b4c8f, #0b74d0);
  color: #fff;
}
.profile-menu-head strong,
.profile-menu-head small {
  display: block;
}
.profile-menu-head strong {
  font-size: 13px;
}
.profile-menu-head small {
  font-size: 11px;
  opacity: 0.85;
  text-transform: capitalize;
}
.profile-menu-items a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 16px;
  font-size: 12.5px;
  color: #33475c;
  text-decoration: none;
}
.profile-menu-items a:hover {
  background: #f1f6fc;
  color: #0756a3;
}
.profile-menu-items a i {
  width: 18px;
  text-align: center;
  color: #5b7a99;
}
.profile-menu-foot {
  padding: 12px;
  border-top: 1px solid #eef2f6;
  background: #fafbfc;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0756a3, #15a0a1);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
}
.avatar-lg {
  width: 42px;
  height: 42px;
  font-size: 16px;
}

/* ===== Cancellation confirmation modal ===== */
.logout-modal-icon.cancel {
  background: #fdecea;
  color: #c0392b;
}
.cancel-remarks {
  display: block;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #334e68;
  margin: 4px 0 18px;
}
.cancel-remarks textarea {
  width: 100%;
  margin-top: 7px;
  padding: 10px 12px;
  border: 1px solid #dce3eb;
  border-radius: 9px;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  color: #172b4d;
  background: #fff;
}
.cancel-remarks textarea:focus {
  outline: none;
  border-color: #0756a3;
  box-shadow: 0 0 0 3px rgba(7, 86, 163, 0.12);
}
