﻿@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --brand-green: #4f8f2f;
  --brand-blue: #0e8ec4;
  --brand-dark: #13384a;
  --bg: #f3f7fb;
  --text: #0f2c3a;
  --white: #ffffff;
  --border: #d6e4ee;
  --surface: #f8fbfe;
  --success: #1f7a52;
  --error: #ac2f2f;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  background:
    radial-gradient(860px 360px at 84% -10%, rgba(14, 142, 196, 0.1), transparent 58%),
    radial-gradient(760px 320px at -4% 104%, rgba(79, 143, 47, 0.11), transparent 52%),
    linear-gradient(180deg, #edf4f9 0%, #f6f9fc 52%, #ffffff 100%);
  color: var(--text);
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid #d9e6ef;
  box-shadow: 0 10px 30px rgba(19, 56, 74, 0.07);
}

.bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.72rem 0;
  gap: 1.1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.78rem;
  color: var(--brand-dark);
  text-decoration: none;
}

.logo {
  width: 92px;
  max-width: 24vw;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 20px rgba(9, 29, 40, 0.14));
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.33rem 0.7rem;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1d4b62;
  background: linear-gradient(135deg, #e9f4fa, #eff7ec);
  border: 1px solid #d4e6ef;
  border-radius: 999px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.topnav a {
  color: #1a4a60;
  text-decoration: none;
  font-weight: 700;
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
  transition: background-color 0.16s ease;
}

.topnav a:hover {
  background: #edf5fa;
}

.content {
  padding: 2.15rem 0 2.8rem;
  display: grid;
  gap: 1rem;
}

.panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 16px 40px rgba(19, 56, 74, 0.08);
}

.auth-panel {
  max-width: 530px;
  margin: 3.2rem auto;
  background: linear-gradient(180deg, #ffffff 0%, #fafdff 100%);
}

h1,
h2 {
  margin: 0 0 0.68rem;
  color: var(--brand-dark);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
}

.subtle,
.hint {
  color: #4f6f80;
  margin-top: 0;
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}

.row-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

label {
  display: grid;
  gap: 0.33rem;
  font-size: 0.96rem;
  font-weight: 700;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  border: 1px solid #c9dbe7;
  border-radius: 12px;
  padding: 0.7rem 0.78rem;
  background: var(--surface);
  transition: border-color 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #4ba7d0;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(14, 142, 196, 0.12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3f8524, #6aa838);
  border: none;
  color: var(--white);
  border-radius: 12px;
  padding: 0.66rem 1.02rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: saturate(1.06);
}

.btn-light {
  background: linear-gradient(135deg, var(--brand-blue), #3ca8d6);
}

.alert {
  border-radius: 12px;
  padding: 0.72rem 0.92rem;
  font-weight: 700;
}

.alert-success {
  background: #e7f7ef;
  color: var(--success);
  border: 1px solid #bce8cc;
}

.alert-error {
  background: #fdeeee;
  color: var(--error);
  border: 1px solid #f5c9c9;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.inline-form {
  display: flex;
  align-items: end;
  gap: 0.7rem;
  flex-wrap: wrap;
}

#calendar {
  margin-top: 0.9rem;
}

.fc {
  --fc-border-color: #d6e5ee;
  --fc-page-bg-color: #fff;
  --fc-now-indicator-color: #0e8ec4;
}

.fc .fc-daygrid-day.fc-selected-date {
  box-shadow: inset 0 0 0 2px #3f8524;
}

.report-list {
  display: grid;
  gap: 0.85rem;
}

.report-item {
  border: 1px solid #dbe8f0;
  border-radius: 14px;
  padding: 0.86rem;
  background: linear-gradient(180deg, #fcfeff 0%, #f7fbfe 100%);
}

.item-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.item-sub {
  color: #4a6a79;
  font-size: 0.92rem;
  margin-top: 0.24rem;
}

.user-report-groups {
  display: grid;
  gap: 0.95rem;
}

.user-report-group {
  border: 1px solid #d4e5ef;
  border-radius: 14px;
  background: linear-gradient(180deg, #f9fdff 0%, #f4faff 100%);
  padding: 0.76rem;
}

.user-report-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.7rem;
  padding: 0.36rem 0.5rem;
  border-radius: 10px;
  background: #eaf4fb;
  color: #244f64;
}

.user-report-group-head strong {
  font-size: 0.98rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid #e1eaf0;
  padding: 0.64rem;
}

th {
  font-weight: 800;
  color: #2a546a;
}

@media (max-width: 760px) {
  .row-two {
    grid-template-columns: 1fr;
  }

  .bar-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo {
    width: 72px;
  }

  .auth-panel {
    margin-top: 1.3rem;
  }
}

.btn-danger {
  background: linear-gradient(135deg, #b83535, #d34a4a);
}

.btn-danger:hover {
  filter: saturate(1.08);
}


.account-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: #1a4a60;
  font-weight: 700;
  border: 1px solid #d4e4ee;
  background: #f6fbff;
  border-radius: 12px;
  padding: 0.48rem 0.6rem;
}

.account-btn:hover {
  background: #edf6fc;
}

.account-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}


.nav-shell {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.account-menu {
  position: relative;
}

.account-trigger {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #d4e4ee;
  background: #f6fbff;
  color: #1a4a60;
  border-radius: 12px;
  cursor: pointer;
}

.account-trigger::-webkit-details-marker {
  display: none;
}

.account-trigger:hover {
  background: #edf6fc;
}

.account-trigger svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.account-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 170px;
  background: #fff;
  border: 1px solid #d9e6ef;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(19, 56, 74, 0.16);
  padding: 0.35rem;
  display: grid;
  gap: 0.2rem;
  z-index: 40;
}

.account-dropdown a,
.menu-logout {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: #1a4a60;
  text-decoration: none;
  font-weight: 700;
  border-radius: 9px;
  padding: 0.52rem 0.58rem;
  cursor: pointer;
}

.account-dropdown a:hover,
.menu-logout:hover {
  background: #eef5fa;
}

@media (max-width: 760px) {
  .nav-shell {
    width: 100%;
    justify-content: flex-start;
  }

  .account-dropdown {
    right: auto;
    left: 0;
  }
}

.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid #d4e4ee;
  background: #f6fbff;
  color: #1a4a60;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-menu-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.mobile-menu-toggle:hover {
  background: #edf6fc;
}
@media (max-width: 760px) {
  .mobile-menu-toggle {
    display: inline-flex;
  }

  .nav-shell {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
    padding-top: 0.4rem;
  }

  .nav-shell.is-open {
    display: flex;
  }

  .topnav {
    width: 100%;
    display: grid;
    gap: 0.2rem;
  }

  .topnav a {
    width: 100%;
    border: 1px solid #e1ebf2;
    background: #f8fbff;
  }

  .account-menu {
    align-self: flex-start;
  }
}

.fc .fc-toolbar {
  gap: 0.45rem;
}

.fc .fc-toolbar-title {
  font-size: 1.05rem;
  line-height: 1.2;
  font-weight: 800;
}

.fc .fc-button {
  padding: 0.32rem 0.55rem;
  font-size: 0.86rem;
}

@media (max-width: 760px) {
  .fc .fc-toolbar {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
  }

  .fc .fc-toolbar-chunk {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
  }

  .fc .fc-toolbar-title {
    font-size: 0.9rem;
    letter-spacing: 0;
    margin: 0;
  }

  .fc .fc-button {
    padding: 0.28rem 0.45rem;
    font-size: 0.78rem;
  }
}


/* Global mobile header layout: logo left, hamburger right, menu below */
@media (max-width: 760px) {
  .bar-content {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center !important;
    row-gap: 0.45rem;
  }

  .brand {
    min-width: 0;
    grid-column: 1;
    grid-row: 1;
  }

  .mobile-menu-toggle {
    display: inline-flex !important;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    margin-left: 0 !important;
  }

  .nav-shell {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
  }

  .nav-shell.is-open {
    display: flex;
  }
}

.settings-panel {
  padding: 1rem;
}

.settings-form {
  gap: 0.75rem;
}

@media (max-width: 760px) {
  .settings-panel {
    padding: 0.9rem;
  }

  .settings-form {
    gap: 0.62rem;
  }

  .settings-form .row-two {
    grid-template-columns: 1fr;
    gap: 0.62rem;
  }

  .settings-form .btn {
    width: 100%;
  }

  .settings-form h2 {
    font-size: 1.08rem;
    margin-bottom: 0.45rem;
  }
}

.content > * {
  min-width: 0;
}

.settings-form * {
  min-width: 0;
}


@media (max-width: 760px) {
  .fc .fc-daygrid-event {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    min-height: 10px;
  }

  .fc .fc-daygrid-event .fc-event-main {
    display: flex;
    justify-content: center;
    align-items: center;
    color: transparent;
    font-size: 0;
    line-height: 0;
  }

  .fc .fc-daygrid-event .fc-event-main::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--brand-blue);
    display: inline-block;
  }
}

.view-switch {
  margin-top: 0.45rem;
  display: inline-flex;
  align-items: center;
  gap: 0.26rem;
  padding: 0.26rem;
  border: 1px solid #d8e6ef;
  border-radius: 999px;
  background: linear-gradient(180deg, #f8fcff 0%, #edf5fb 100%);
}

.view-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #1d4b62;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1;
  min-width: 2.6rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
}

.view-switch a.active {
  color: #ffffff;
  background: linear-gradient(135deg, #0e8ec4, #2f9ecf);
  box-shadow: 0 8px 18px rgba(14, 142, 196, 0.26);
}

.properties-view {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.property-list {
  display: grid;
  gap: 0.55rem;
}

.property-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid #d7e5ef;
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfe 100%);
}

.property-link:hover {
  border-color: #bfd9e8;
  background: #f3f9fe;
}

.property-link.active {
  border-color: #7fc0df;
  box-shadow: 0 8px 22px rgba(14, 142, 196, 0.18);
  background: linear-gradient(180deg, #edf8ff 0%, #f7fcff 100%);
}

.property-main {
  min-width: 0;
  display: grid;
  gap: 0.16rem;
}

.property-address {
  color: #537183;
  font-size: 0.88rem;
}

.property-count {
  flex: 0 0 auto;
  min-width: 2rem;
  text-align: center;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.83rem;
  padding: 0.2rem 0.5rem;
  color: #1a4a60;
  background: #dff0fa;
  border: 1px solid #c4dfef;
}

.employee-hours-grid {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.hours-block {
  border: 1px solid #dbe8f0;
  border-radius: 14px;
  padding: 0.85rem;
  background: linear-gradient(180deg, #fcfeff 0%, #f7fbfe 100%);
}

.hours-block h2 {
  margin-bottom: 0.4rem;
}

.hours-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.hours-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.24rem 0.55rem;
  border: 1px solid #d2e3ef;
  border-radius: 999px;
  color: #285166;
  background: #edf6fc;
  font-size: 0.86rem;
}

.hours-pill-net {
  color: #194359;
  border-color: #9dcbe2;
  background: #def1fc;
}

@media (max-width: 760px) {
  .view-switch {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .view-switch a {
    text-align: center;
  }

  .properties-view {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .employee-hours-grid {
    grid-template-columns: 1fr;
  }
}

.properties-view {
  margin-top: 0.85rem;
}

.properties-accordion {
  display: grid;
  gap: 0.6rem;
}

.property-accordion-item {
  border: 1px solid #d7e5ef;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfe 100%);
  overflow: hidden;
}

.property-accordion-item.open {
  border-color: #7fc0df;
  box-shadow: 0 10px 24px rgba(14, 142, 196, 0.16);
}

.property-link {
  border: 0;
  border-radius: 0;
  margin: 0;
}

.property-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
}

.property-caret {
  width: 1.8rem;
  height: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eaf3f9;
  border: 1px solid #d0e2ee;
  color: #1a4a60;
  font-weight: 800;
}

.property-reports {
  border-top: 1px solid #dbe8f0;
  padding: 0.85rem;
  background: #fdfefe;
}

.property-reports h2 {
  margin-bottom: 0.38rem;
}

@media (max-width: 760px) {
  .property-reports {
    padding: 0.72rem;
  }

  .property-caret {
    width: 1.6rem;
    height: 1.6rem;
  }
}

.report-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: 0.65rem;
}

.report-actions form {
  margin: 0;
}
