[hidden] { display: none !important; }
body { background: #f4f6f9; }
.djl-navbar { background: #115E59; }
.djl-navbar .navbar-brand { font-weight: 600; }
.djl-navbar .nav-link { background: none; border: 0; color: rgba(255,255,255,.8); padding: .4rem .8rem; border-radius: 6px; }
.djl-navbar .nav-link.active, .djl-navbar .nav-link:hover { color: #fff; background: rgba(255,255,255,.15); }

/* Work type colors (also used for the calendar) */
.wt { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.wt-Newwork { background: #DBEAFE; color: #1E3A8A; }
.wt-Repair { background: #FEE2E2; color: #991B1B; }
.wt-Maintenance { background: #DCFCE7; color: #166534; }
.wt-Inspection { background: #FEF3C7; color: #92400E; }
.wt-Timeoff { background: #E5E7EB; color: #374151; }

.log-table td { font-size: .88rem; }
.log-table td.notes { max-width: 220px; white-space: normal; color: #4B5563; }
.log-table .site { display: block; font-size: .78rem; color: #6B7280; }
.log-table tr.is-today > td:first-child { box-shadow: inset 4px 0 0 #0F766E; }
.log-table .date-row td { background: #F0FDFA; font-weight: 600; color: #115E59; font-size: .85rem; }
.log-table .btn { padding: 1px 6px; }

/* Month calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: #fff; border: 1px solid #dee2e6; border-radius: 8px; overflow: hidden; }
.cal .dow { padding: 6px; font-size: .75rem; font-weight: 600; text-transform: uppercase; color: #6B7280; text-align: center; border-bottom: 1px solid #dee2e6; background: #F9FAFB; }
.cal .day { min-height: 130px; padding: 4px; border-right: 1px solid #eef0f2; border-bottom: 1px solid #eef0f2; }
.cal .day.other { background: #FAFAFA; }
.cal .day.other .num { color: #9CA3AF; }
.cal .day.today { background: #F0FDFA; }
.cal .num { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0 2px; font-size: .8rem; font-weight: 600; color: #374151; }
.cal .num:hover { color: #0F766E; text-decoration: underline; }
.cal .ev {
  display: block; width: 100%; text-align: left; margin-top: 2px; padding: 1px 5px; border: 0; border-radius: 4px;
  font-size: .72rem; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cal .ev.done { opacity: .6; }
.cal .more { display: block; margin-top: 2px; font-size: .72rem; color: #0F766E; background: none; border: 0; padding: 0 4px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 700px) {
  .cal .day { min-height: 70px; }
  .cal .ev { font-size: 0; height: 6px; padding: 0; margin-top: 2px; }
  .cal .more { font-size: .65rem; }
}

/* Dashboard */
.kpi { border: 0; border-top: 4px solid #0F766E; }
.kpi .label { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: #6B7280; }
.kpi .value { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.kpi .sub { font-size: .8rem; color: #6B7280; }
.mini-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.mini-cal .dow { font-size: .7rem; text-align: center; color: #6B7280; font-weight: 600; }
.mini-cal .cell { border-radius: 6px; padding: 4px 6px; min-height: 54px; background: #F3F4F6; font-size: .75rem; }
.mini-cal .cell.blank { background: transparent; }
.mini-cal .cell .d { font-weight: 600; color: #374151; }
.mini-cal .cell .n { font-size: 1rem; font-weight: 700; }
.mini-cal .cell.today { outline: 2px solid #0F766E; }

/* Job form */
.avail { background: #F9FAFB; border: 1px solid #E5E7EB; border-radius: 6px; padding: 6px 10px; }
.avail .free { color: #166534; }
.avail .busy { color: #92400E; }
.avail .off { color: #991B1B; }

.email-preview { border: 1px solid #dee2e6; border-radius: 6px; padding: 12px; font-size: .85rem; background: #fff; }
.email-preview table { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.email-preview th, .email-preview td { border-bottom: 1px solid #eee; padding: 3px 6px; text-align: left; vertical-align: top; }
.email-preview th { background: #F0FDFA; }
.one-day .c-date { display: none; }
