/* VOYA Operations — shared presentation layer, 20 October 2026.
 * Reversible: remove app_include_css from the site's configuration.
 * Navigation visibility is presentation only; Frappe permissions remain authoritative.
 */
html[data-theme="light"] {
  --primary: #245d59;
  --btn-primary: #245d59;
  --primary-color: #245d59;
  --primary-light: #edf3f0;
}
#page-desktop .desktop-wrapper {
  min-height: 100vh;
  background: #f7f6f2;
  color: #233d39;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
#page-desktop .desktop-navbar {
  min-height: 100px;
  padding: 20px clamp(24px, 5vw, 88px);
  background: #f7f6f2;
  border-bottom: 1px solid #dedfd7;
  box-shadow: none;
}
#page-desktop #brand-logo {
  width: 112px;
  height: 56px;
  max-height: 56px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
#page-desktop .search-widget-wrapper { max-width: 380px; }
#page-desktop .search-widget-button {
  border: 1px solid #dedfd7;
  background: #fffefa;
  border-radius: 10px;
  min-height: 42px;
  color: #586660;
}
#page-desktop .desktop-navbar .icon { color: #365d54; stroke: currentColor; }
#page-desktop .desktop-avatar .avatar-frame {
  background: #e2ebe5 !important;
  color: #245d59 !important;
}
#page-desktop .desktop-container {
  display: block;
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: clamp(50px, 7vh, 100px) clamp(24px, 4vw, 64px) 32px;
}
#page-desktop .desktop-container::before {
  content: "VOYA OPERATIONS";
  display: block;
  margin: 0 0 20px;
  color: #6b7f73;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
}
#page-desktop .icons-container { display: block; width: 100%; padding: 0; margin: 0; }
#page-desktop .icons-container::before {
  content: "VOYA Apps";
  display: block;
  max-width: 720px;
  margin: 0 0 16px;
  color: #233d39;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: -.035em;
  font-weight: 400;
}
#page-desktop .icons {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto;
  height: auto;
  align-content: start;
  width: 100%;
  gap: 24px;
  padding: 0;
  margin: 0;
  align-items: stretch;
}
#page-desktop .icons::before {
  content: "Select an application to continue.";
  display: block;
  grid-column: 1 / -1;
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.7;
  color: #718078;
}
/* Keep ERPNext and Framework installed: HR depends on them.
 * Only the two operational apps are presented on the shared launcher. */
#page-desktop .desktop-icon { display: none !important; }
#page-desktop .desktop-icon:has(.icon-title[href="/desk/hr-setup"]),
#page-desktop .desktop-icon:has(.icon-title[href="/crm"]) {
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 274px;
  margin: 0;
  padding: 30px;
  background: #fffefa;
  border: 1px solid #dde1d8;
  border-radius: 16px;
  box-shadow: 0 5px 16px #233d3904;
  text-align: left;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
#page-desktop .desktop-icon:hover,
#page-desktop .desktop-icon:focus-within {
  transform: translateY(-3px);
  border-color: #80988c;
  box-shadow: 0 16px 34px #233d3910;
}
#page-desktop .desktop-icon:has(.icon-title[href="/crm"]) { background: #edf2ed; }
#page-desktop .desktop-icon > .icon-link {
  position: absolute;
  inset: 0;
  display: block;
  padding: 30px;
  border-radius: inherit;
}
#page-desktop .desktop-icon .icon-container {
  width: 46px;
  height: 46px;
  margin: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}
#page-desktop .desktop-icon .app-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  filter: grayscale(.85);
}
#page-desktop .desktop-icon .icon-caption {
  display: block;
  height: auto;
  white-space: normal;
  pointer-events: none;
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 74px 0 0;
  text-align: left;
}
#page-desktop .desktop-icon .icon-title {
  position: relative;
  pointer-events: auto;
  display: inline-block;
  max-width: none;
  margin: 0 0 12px;
  color: #233d39 !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  font-weight: 400;
  line-height: 1.25;
  white-space: normal;
  overflow: visible;
  text-decoration: none;
}
#page-desktop .desktop-icon .icon-caption::after {
  display: block;
  max-width: 300px;
  font-size: 14px;
  line-height: 1.7;
  color: #687a70;
}
#page-desktop .desktop-icon:has(.icon-title[href="/desk/hr-setup"]) .icon-caption::after {
  content: "Employees, attendance, leave and payroll.";
}
#page-desktop .desktop-icon:has(.icon-title[href="/crm"]) .icon-caption::after {
  content: "Contacts, leads, deals and follow-ups.";
}
#page-desktop .desktop-icon::after {
  content: "\2197";
  position: absolute;
  right: 28px;
  top: 30px;
  color: #597568;
  font-size: 26px;
  pointer-events: none;
}
#page-desktop .desktop-container::after {
  content: "VOYA BOUTIQUE HOTEL  /  HAVANA";
  display: block;
  margin-top: 60px;
  padding-top: 22px;
  border-top: 1px solid #dedfd7;
  color: #8a958a;
  font-size: 10px;
  letter-spacing: .18em;
}
#page-desktop a:focus-visible,
#page-desktop button:focus-visible { outline: 2px solid #245d59; outline-offset: 5px; }
@media (max-width: 620px) {
  #page-desktop .desktop-navbar { min-height: 82px; padding: 14px 22px; }
  #page-desktop #brand-logo { width: 92px; height: 48px; }
  #page-desktop .search-widget-wrapper { max-width: 160px; }
  #page-desktop .icons { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  #page-desktop .desktop-container { padding-top: 44px; }
  #page-desktop .desktop-icon:has(.icon-title) { min-height: 254px; padding: 26px; }
  #page-desktop .desktop-icon > .icon-link { padding: 26px; }
  #page-desktop .desktop-container::after { margin-top: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  #page-desktop .desktop-icon { transition: none; }
  #page-desktop .desktop-icon:hover { transform: none; }
}
/* Shared login styling. The login form and authentication flow stay native. */
body[data-path="login"] {
  background: #f7f6f2;
  color: #233d39;
}
body[data-path="login"] .navbar,
body[data-path="login"] .web-footer { display: none; }
body[data-path="login"] .for-login .page-card,
body[data-path="login"] .for-forgot .page-card,
body[data-path="login"] .for-email-login .page-card {
  background: #fffefa;
  border: 1px solid #dde1d8;
  border-radius: 18px;
  box-shadow: 0 20px 60px #233d390a;
  padding: 34px;
}
body[data-path="login"] .page-card-head h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  color: #233d39;
  font-size: 28px;
  letter-spacing: -.025em;
}
body[data-path="login"] .page-card-head .app-logo { max-height: 76px; width: auto; }
body[data-path="login"] .btn-primary {
  background: #245d59;
  border-color: #245d59;
  border-radius: 8px;
  min-height: 42px;
}
body[data-path="login"] .btn-primary:hover { background: #194b47; }
body[data-path="login"] .form-control {
  background: #f4f5f0;
  border-radius: 8px;
  min-height: 42px;
}
body[data-path="login"] .form-control:focus {
  border-color: #648c7c;
  box-shadow: 0 0 0 3px #245d5912;
}
