/* Hammelk Enterprise UI v7
   Final visual layer: calm white workspace, accessible contrast, hotel-style booking. */
:root{
  --hm7-bg:#ffffff;
  --hm7-surface:#ffffff;
  --hm7-surface-2:#fbfcfe;
  --hm7-text:#172033;
  --hm7-muted:#667085;
  --hm7-soft:#8b95a7;
  --hm7-border:#e5eaf1;
  --hm7-border-strong:#d7dfeb;
  --hm7-accent:#7895e8;
  --hm7-accent-strong:#6786dc;
  --hm7-accent-soft:#eef2ff;
  --hm7-accent-faint:#f7f9ff;
  --hm7-blue:#62add8;
  --hm7-blue-soft:#eef8fd;
  --hm7-pink:#e487ad;
  --hm7-pink-soft:#fff2f7;
  --hm7-danger:#d95858;
  --hm7-danger-soft:#fff3f3;
  --hm7-success:#2f9b78;
  --hm7-success-soft:#eefaf6;
  --hm7-warning:#c78b35;
  --hm7-warning-soft:#fff8eb;
  --hm7-shadow:0 10px 32px rgba(31,42,68,.07);
  --hm7-shadow-lg:0 22px 70px rgba(25,39,68,.14);
}

html,body{background:var(--hm7-bg)!important;color:var(--hm7-text)!important}
body{font-feature-settings:"ss01" 1,"tnum" 1}
.app-shell{background:var(--hm7-bg)!important}
.app-shell .workspace{background:var(--hm7-bg)!important}
.app-shell .page-content{max-width:1680px;width:100%;margin-inline:auto;padding-top:22px!important}

/* Top bar: visually integrated with the product, not a floating card. */
.app-shell .topbar,.app-shell .topbar.topbar-modern{
  background:rgba(255,255,255,.96)!important;
  border-bottom:1px solid var(--hm7-border)!important;
  box-shadow:0 1px 0 rgba(23,32,51,.02)!important;
  backdrop-filter:saturate(140%) blur(12px);
}
.app-shell .topbar-title>b{color:#202b3d!important;font-weight:850!important;letter-spacing:-.02em}
.app-shell .topbar-meta,.app-shell .topbar-meta small{color:#8993a4!important}
.app-shell .topbar-quick{background:#fff!important;border:1px solid var(--hm7-border)!important;color:#4e5b70!important}
.app-shell .topbar-quick:hover{background:var(--hm7-accent-faint)!important;border-color:#cad5fb!important;color:#4f6ed5!important}
.app-shell .icon-button{background:#fff!important;border-color:var(--hm7-border)!important;color:#536176!important}

/* Sidebar */
.app-shell .sidebar{background:#fff!important;border-left:1px solid var(--hm7-border)!important;box-shadow:none!important}
.app-shell .brand{border-bottom:1px solid #edf1f6!important}
.app-shell .brand-copy strong{color:#202a3b!important}
.app-shell .brand-copy span{color:#717d90!important}
.app-shell .sidebar-property{
  background:linear-gradient(180deg,#fff 0%,#fbfcff 100%)!important;
  border:1px solid var(--hm7-border)!important;
  box-shadow:0 6px 20px rgba(40,54,82,.035)!important;
}
.app-shell .suite-overview-head small{color:#4b586d!important;font-weight:850!important}
.app-shell .property-year{background:#f2f5fa!important;border:1px solid #e2e8f1!important;color:#536176!important;font-weight:800!important}
.app-shell .suite-overview-item{
  background:#fff!important;border:1px solid #e6ebf2!important;color:#273247!important;opacity:1!important;
  min-width:0!important
}
.app-shell .suite-overview-item b{color:#273247!important;opacity:1!important;font-weight:850!important;text-shadow:none!important}
.app-shell .suite-overview-item .suite-color-dot.blue{background:var(--hm7-blue)!important;box-shadow:0 0 0 4px var(--hm7-blue-soft)!important}
.app-shell .suite-overview-item .suite-color-dot.pink{background:var(--hm7-pink)!important;box-shadow:0 0 0 4px var(--hm7-pink-soft)!important}
.app-shell .sidebar-nav .menu-section{
  color:#445166!important;border:1px solid transparent!important;background:transparent!important;font-weight:780!important
}
.app-shell .sidebar-nav .menu-section:hover{background:#f8faff!important;color:#33415a!important}
.app-shell .sidebar-nav .menu-section.active{
  color:#4d6dda!important;background:#f1f4ff!important;border-color:#dce4ff!important;
  box-shadow:inset -3px 0 0 #6f8df7!important
}
.app-shell .sidebar-nav .menu-section.active .icon{color:#5f7fee!important}
.app-shell .menu-open-mark{color:#a1aabb!important}

/* PWA install is a real action, not a disabled-looking ghost. */
.app-shell #installApp.sidebar-install{
  color:#4d5f7d!important;background:#f8faff!important;border:1px solid #dce4f3!important;
  opacity:1!important;font-weight:850!important;box-shadow:none!important
}
.app-shell #installApp.sidebar-install:hover{color:#4967ca!important;background:#eef3ff!important;border-color:#c5d3ff!important}
.app-shell #installApp.sidebar-install[hidden]{display:none!important}

/* General product surfaces */
.app-shell .panel,.app-shell .page-hero,.app-shell .section-hub-hero,.app-shell .section-hub-card,
.app-shell .dashboard-card,.app-shell .card,.app-shell .stat-card{
  background:#fff!important;border:1px solid var(--hm7-border)!important;box-shadow:var(--hm7-shadow)!important
}
.app-shell .panel,.app-shell .section-hub-card,.app-shell .page-hero{border-radius:18px!important}
.app-shell .section-hub-card{transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease!important}
.app-shell .section-hub-card:hover{transform:translateY(-2px)!important;border-color:#d2dcf1!important;box-shadow:0 14px 34px rgba(37,50,82,.09)!important}
.app-shell h1,.app-shell h2,.app-shell h3{color:#1d2738!important;letter-spacing:-.025em}
.app-shell .eyebrow{color:#6e7b90!important;font-weight:850!important;letter-spacing:.015em}
.app-shell p,.app-shell small,.app-shell .muted{color:var(--hm7-muted)!important}
.app-shell input,.app-shell select,.app-shell textarea{
  background:#fff!important;color:#253147!important;border:1px solid #dce3ed!important;border-radius:11px!important;
  box-shadow:0 1px 0 rgba(26,36,56,.015)!important
}
.app-shell input:focus,.app-shell select:focus,.app-shell textarea:focus{
  border-color:#9fb2f3!important;box-shadow:0 0 0 4px rgba(111,141,247,.12)!important;outline:none!important
}
.app-shell .button.primary,.app-shell button.button:not(.secondary):not(.danger){
  background:var(--hm7-accent)!important;border-color:var(--hm7-accent)!important;color:#fff!important;
  box-shadow:0 7px 18px rgba(88,119,232,.18)!important
}
.app-shell .button.primary:hover,.app-shell button.button:not(.secondary):not(.danger):hover{background:var(--hm7-accent-strong)!important;border-color:var(--hm7-accent-strong)!important}
.app-shell .button.secondary{background:#fff!important;border-color:#dce3ed!important;color:#48566d!important;box-shadow:none!important}
.app-shell .button.secondary:hover{background:#f8faff!important;border-color:#cad5e7!important}

/* Tables */
.app-shell table{background:#fff!important;border-collapse:separate!important;border-spacing:0!important}
.app-shell thead th{background:#f8fafc!important;color:#607086!important;border-bottom:1px solid #e4eaf2!important;font-weight:850!important}
.app-shell tbody td{border-bottom:1px solid #edf1f6!important;color:#2c374b!important}
.app-shell tbody tr:hover td{background:#fbfcff!important}

/* Main calendar becomes a crisp white scheduling surface. */
.app-shell .calendar-command-center,.app-shell .calendar-board,.app-shell .calendar-agenda-card{
  background:#fff!important;border:1px solid var(--hm7-border)!important;box-shadow:var(--hm7-shadow)!important
}
.app-shell .calendar-command-center{border-radius:18px!important}
.app-shell .calendar-board{border-radius:16px!important;overflow:hidden!important}
.app-shell .calendar-week-head{background:#f8fafc!important;border-bottom:1px solid var(--hm7-border)!important}
.app-shell .calendar-week-head>span{color:#6e7b8f!important;font-weight:820!important}
.app-shell .calendar-day:not(.empty){
  background:#fff!important;color:#2c374b!important;border:0!important;border-left:1px solid #e8edf3!important;border-bottom:1px solid #e8edf3!important;
  box-shadow:none!important;border-radius:0!important;transition:background .14s ease,box-shadow .14s ease!important
}
.app-shell .calendar-day:not(.empty):hover{background:#fafbff!important;box-shadow:inset 0 0 0 2px #e5eaff!important}
.app-shell .calendar-day.today:not(.empty){background:#f8faff!important;box-shadow:inset 0 0 0 2px #b8c7fa!important}
.app-shell .calendar-day.holiday:not(.empty){background:#fffdfd!important}
.app-shell .calendar-day-number{color:#354258!important;background:#f4f6f9!important}
.app-shell .calendar-day.today .calendar-day-number{background:var(--hm7-accent)!important;color:#fff!important}
.app-shell .day-item{background:#f8fafc!important;border:1px solid #e7ebf1!important;color:#536177!important;box-shadow:none!important}
.app-shell .day-item.period.blue{background:var(--hm7-blue-soft)!important;border-color:#d3ebf7!important;color:#356985!important}
.app-shell .day-item.period.pink{background:var(--hm7-pink-soft)!important;border-color:#f0d6e1!important;color:#935373!important}
.app-shell .day-item.event{background:#f4f1ff!important;border-color:#e5ddff!important;color:#6b5aa4!important}
.app-shell .day-item.occasion{background:#fffaf0!important;border-color:#f2e7c7!important;color:#806a35!important}
.app-shell .holiday-mark{background:var(--hm7-danger-soft)!important;color:#c65353!important;border:1px solid #f2cece!important}

/* Hotel booking dialog */
.app-shell .booking-overlay{background:rgba(31,40,58,.34)!important;backdrop-filter:blur(6px)!important}
.app-shell .booking-dialog{background:#fff!important;border:1px solid #e4e9f1!important;box-shadow:var(--hm7-shadow-lg)!important;border-radius:22px!important;overflow:hidden!important}
.app-shell .booking-dialog-head{background:#fff!important;border-bottom:1px solid #e8edf3!important}
.app-shell .booking-close{background:#f1f4ff!important;color:#5574df!important;border:1px solid #d9e1ff!important;box-shadow:none!important}
.app-shell .booking-step{border-bottom:1px solid #edf1f5!important;background:#fff!important}
.app-shell .booking-step-no{background:#eef2ff!important;color:#5b77db!important}
.app-shell .booking-step-head h3{color:#202c3f!important}
.app-shell .booking-suite-card{background:#fff!important;border:1px solid #dfe5ee!important;color:#334158!important;box-shadow:none!important}
.app-shell .booking-suite-card:hover{border-color:#c7d3e8!important;background:#fcfdff!important}
.app-shell .booking-suite-card:has(input:checked){background:#f6f8ff!important;border-color:#9fb2f3!important;box-shadow:0 0 0 3px rgba(111,141,247,.10)!important}
.app-shell .booking-suite-card.blue:has(input:checked){background:#f3faff!important;border-color:#abd9ef!important}
.app-shell .booking-suite-card.pink:has(input:checked){background:#fff5f8!important;border-color:#ecc2d3!important}
.app-shell .booking-suite-check{background:var(--hm7-accent)!important;color:#fff!important}
.app-shell .booking-calendar-shell{background:#fff!important;border:1px solid #e1e7ef!important;border-radius:15px!important;overflow:hidden!important}
.app-shell .booking-calendar-toolbar{background:#fbfcfe!important;border-bottom:1px solid #e7ecf2!important}
.app-shell .booking-month-nav{background:#f1f4ff!important;color:#5574df!important;border:1px solid #d9e1ff!important;box-shadow:none!important}
.app-shell .booking-weekdays{background:#fff!important;color:#8a95a6!important}

/* IMPORTANT: a free date is white. Only the chosen range becomes colored. */
.app-shell .booking-date-grid .booking-date{
  background:#fff!important;color:#2f3b50!important;border:1px solid #e1e7ef!important;border-radius:10px!important;
  box-shadow:none!important;min-height:52px!important;transition:background .12s ease,border-color .12s ease,transform .12s ease!important
}
.app-shell .booking-date-grid .booking-date:hover:not(.busy){background:#f9fbff!important;border-color:#bfcdf4!important;transform:translateY(-1px)!important}
.app-shell .booking-date-grid .booking-date i{color:#9aa4b3!important;font-weight:700!important}
.app-shell .booking-date-grid .booking-date.today{box-shadow:inset 0 0 0 2px #d7e0ff!important;border-color:#bccaf8!important}
.app-shell .booking-date-grid .booking-date.in-range{
  background:#eef3ff!important;color:#405dbd!important;border-color:#c9d5ff!important;box-shadow:none!important
}
.app-shell .booking-date-grid .booking-date.checkin,
.app-shell .booking-date-grid .booking-date.checkout{
  background:#dfe8ff!important;color:#314fae!important;border-color:#8ea7f2!important;box-shadow:inset 0 0 0 2px #adc0f8!important
}
.app-shell .booking-date-grid .booking-date.checkin i,
.app-shell .booking-date-grid .booking-date.checkout i,
.app-shell .booking-date-grid .booking-date.in-range i{color:#5572cb!important}
.app-shell .booking-date-grid .booking-date.busy{
  background:#f1f3f6!important;color:#9aa3b1!important;border-color:#e4e8ed!important;cursor:not-allowed!important;opacity:.82!important
}
.app-shell .booking-date-grid .booking-date.busy i{color:#a2aab7!important}
.app-shell .booking-calendar-legend .free{background:#fff!important;border:1px solid #dfe5ed!important}
.app-shell .booking-calendar-legend .selected{background:#dfe8ff!important;border:1px solid #9db1ef!important}
.app-shell .booking-calendar-legend .busy{background:#eceff3!important;border:1px solid #dde2e8!important}
.app-shell .booking-date-summary{background:#f8faff!important;border:1px solid #e1e7f5!important}
.app-shell .booking-summary-card{background:linear-gradient(180deg,#fbfcff,#f7f9fd)!important;border-left:1px solid #e6ebf2!important;color:#2f3b50!important}
.app-shell .booking-summary-status.ready{background:var(--hm7-success-soft)!important;color:#25785f!important;border-color:#ccebdd!important}

/* Quota approval and owner selector */
.app-shell .owner-picker-results{background:#fff!important;border:1px solid #dde4ee!important;box-shadow:0 16px 42px rgba(25,39,68,.13)!important}
.app-shell #periodOwnerResults .owner-result{background:#fff!important;color:#2b374b!important;border-bottom:1px solid #edf1f5!important;opacity:1!important}
.app-shell #periodOwnerResults .owner-result:hover{background:#f8faff!important}
.app-shell #periodOwnerResults .owner-result.quota-full{background:#fffaf2!important}
.app-shell #periodOwnerResults .owner-result.quota-full em{background:#fff1d8!important;color:#9a6d2b!important}
.app-shell .owner-selected-summary{background:#f8faff!important;border:1px solid #e0e6f5!important}
.app-shell .quota-approval-card{margin-top:12px;padding:14px;border-radius:14px;background:var(--hm7-warning-soft)!important;border:1px solid #f0dfb8!important;display:grid;gap:11px}
.app-shell .quota-approval-card[hidden]{display:none!important}
.app-shell .quota-approval-head{display:flex;align-items:flex-start;gap:10px}
.app-shell .quota-warning-icon{width:27px;height:27px;border-radius:9px;display:grid;place-items:center;background:#fff0cd;color:#9a6a24;font-weight:900;flex:0 0 auto}
.app-shell .quota-approval-head div{display:grid;gap:3px}.app-shell .quota-approval-head b{color:#70511f!important}.app-shell .quota-approval-head small{color:#94723a!important;line-height:1.65}
.app-shell .quota-approval-check{display:flex!important;align-items:center;gap:8px!important;background:#fff!important;border:1px solid #eedfbf!important;padding:10px 12px!important;border-radius:11px!important;color:#604a25!important}
.app-shell .quota-approval-check input{width:18px!important;height:18px!important;box-shadow:none!important}
.app-shell .quota-approval-note{display:grid!important;gap:6px!important}.app-shell .quota-approval-note span{font-weight:800;color:#70511f!important}

/* Communications API center */
.app-shell .comms-hero{display:flex;align-items:center;justify-content:space-between;gap:24px}
.app-shell .hero-status{display:flex;align-items:center;gap:8px;padding:10px 13px;border-radius:999px;background:#f6f8fb;border:1px solid #e3e8ef;color:#5d6a7d;white-space:nowrap}
.app-shell .hero-status i{width:8px;height:8px;border-radius:50%;background:#a0a9b7}.app-shell .hero-status.ok{background:var(--hm7-success-soft);border-color:#d2ece2;color:#26745c}.app-shell .hero-status.ok i{background:#42a987}.app-shell .hero-status.warn{background:var(--hm7-warning-soft);border-color:#f1dfb6;color:#8b672e}.app-shell .hero-status.warn i{background:#d5a34b}
.app-shell .provider-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:18px}
.app-shell .provider-card{position:relative;background:#fff;border:1px solid var(--hm7-border);border-radius:18px;box-shadow:var(--hm7-shadow);overflow:hidden;padding:18px}
.app-shell .provider-card.enabled{border-color:#d4def8}.app-shell .provider-head{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;padding-bottom:15px;border-bottom:1px solid #edf1f5}
.app-shell .provider-mark{width:42px;height:42px;border-radius:13px;background:#f0f4ff;color:#5875dc;display:grid;place-items:center;font-weight:900;font-size:1.05rem}.app-shell .provider-head h2{margin:0 0 3px;font-size:1rem}.app-shell .provider-head p{margin:0;font-size:.75rem}.app-shell .provider-state{font-size:.72rem;padding:6px 9px;border-radius:999px;background:#f2f4f7;color:#687386}.app-shell .provider-state.ok{background:var(--hm7-success-soft);color:#28755e}.app-shell .provider-state.error{background:var(--hm7-danger-soft);color:#ad4d4d}
.app-shell .provider-form{display:grid;gap:14px;padding-top:15px}.app-shell .switch-line{display:flex!important;align-items:center;justify-content:space-between;gap:15px;padding:10px 12px;background:#fafbfc;border:1px solid #edf0f4;border-radius:12px}.app-shell .switch-line span{display:grid;gap:2px}.app-shell .switch-line b{font-size:.82rem;color:#344158}.app-shell .switch-line input{width:20px!important;height:20px!important;box-shadow:none!important}
.app-shell .provider-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.app-shell .provider-fields label{display:grid!important;gap:6px!important}.app-shell .provider-fields label.wide{grid-column:1/-1}.app-shell .provider-fields label>span{font-size:.76rem;font-weight:800;color:#536074}.app-shell .provider-fields label>small{font-size:.67rem}.app-shell .provider-last-error{padding:10px 12px;border-radius:10px;background:var(--hm7-danger-soft);border:1px solid #f2d2d2;color:#9f4b4b;font-size:.76rem}.app-shell .provider-actions{display:flex;justify-content:flex-end}.app-shell .provider-test-form{position:absolute;left:18px;bottom:18px}.app-shell .comms-note{margin-top:18px}

/* Audit timeline */
.app-shell .audit-timeline-panel{margin-top:18px}.app-shell .audit-timeline{display:grid}.app-shell .audit-item{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:start;padding:13px 4px;border-bottom:1px solid #edf1f5}.app-shell .audit-item:last-child{border-bottom:0}.app-shell .audit-dot{width:9px;height:9px;border-radius:50%;background:#8ea7f2;margin-top:6px;box-shadow:0 0 0 4px #f0f4ff}.app-shell .audit-copy{display:grid;gap:3px}.app-shell .audit-copy b{color:#2e3a4f}.app-shell .audit-copy span{font-size:.77rem;color:#5e6b7f}.app-shell .audit-copy small{font-size:.7rem}.app-shell .audit-meta{text-align:left;display:grid;gap:3px;color:#748096;font-size:.7rem}

@media(max-width:1000px){
  .app-shell .provider-grid{grid-template-columns:1fr}
  .app-shell .comms-hero{align-items:flex-start;flex-direction:column}
}
@media(max-width:760px){
  .app-shell .page-content{padding:14px 10px 82px!important}
  .app-shell .booking-dialog{border-radius:18px 18px 0 0!important;max-height:94dvh!important}
  .app-shell .booking-layout{grid-template-columns:1fr!important}
  .app-shell .booking-summary-card{border-left:0!important;border-top:1px solid #e7ebf2!important}
  .app-shell .booking-date-grid .booking-date{min-height:44px!important;border-radius:8px!important;padding:5px 2px!important}
  .app-shell .booking-date-grid .booking-date i{font-size:.55rem!important}
  .app-shell .provider-card{padding:14px}.app-shell .provider-fields{grid-template-columns:1fr}.app-shell .provider-fields label.wide{grid-column:auto}.app-shell .provider-test-form{position:static;margin-top:10px;display:flex;justify-content:flex-end}
  .app-shell .audit-item{grid-template-columns:auto 1fr}.app-shell .audit-meta{grid-column:2;text-align:right}
}

/* Provider test-send affordance: explicit, compact and non-intrusive. */
.app-shell .provider-send-test{margin-top:14px;border-top:1px solid #edf1f5;padding-top:12px}
.app-shell .provider-send-test summary{cursor:pointer;color:#526177;font-size:.78rem;font-weight:850;list-style:none;display:flex;align-items:center;gap:7px}
.app-shell .provider-send-test summary::-webkit-details-marker{display:none}
.app-shell .provider-send-test summary::before{content:'+';width:20px;height:20px;border-radius:7px;background:#f1f4ff;color:#617dde;display:grid;place-items:center;font-weight:900}
.app-shell .provider-send-test[open] summary::before{content:'−'}
.app-shell .provider-send-test form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:9px;align-items:end;padding-top:11px}
.app-shell .provider-send-test label{display:grid;gap:5px}.app-shell .provider-send-test label>span{font-size:.72rem;font-weight:800;color:#5a687d}
.app-shell .provider-adapter-note{margin-top:14px;padding:10px 12px;border-radius:10px;background:#f8fafc;border:1px dashed #dfe5ed;color:#728096;font-size:.72rem;line-height:1.7}
@media(max-width:760px){.app-shell .provider-send-test form{grid-template-columns:1fr}.app-shell .provider-send-test form .button{width:100%}}
.app-shell .provider-test-form{position:static!important;margin-top:10px;display:flex;justify-content:flex-start}
