/* Integration with the shared StakeholderMap header, navigation and footer.
   This stylesheet is loaded only by weekly-planner.php. */

html,
body {
  background: #fff;
}

.sm-weekly-site-nav {
  margin-bottom: 0;
  padding-bottom: 0;
}

.sm-weekly-layout {
  display: block;
  width: 100%;
  margin-top: 12px;
  margin-bottom: 24px;
  padding-top: 0;
  background: #fff;
}

.sm-weekly-page {
  display: block;
  grid-template: none;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin-top: 0;
  padding-top: 0;
}

#sm-weekly-content {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin-top: 0;
  padding-top: 0;
}

.sm-weekly-breadcrumb {
  margin: 0 0 18px;
}

.sm-weekly-breadcrumb .breadcrumb {
  margin: 0;
  padding: 0;
}

#weekly-planner-app {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0 0 8px;
  line-height: 1.4;
  text-align: left;
  isolation: isolate;
}

/* Bootstrap applies its own typography and margins. These resets belong
   only to the planner, leaving the shared navigation and footer untouched. */
#weekly-planner-app input,
#weekly-planner-app select,
#weekly-planner-app textarea,
#weekly-planner-app button {
  margin: 0;
}

#weekly-planner-app .planner-main {
  width: auto;
  max-width: 1280px;
  margin-left: 28px;
  margin-right: 28px;
}

#weekly-planner-app .settings-dialog {
  margin: auto;
}

#weekly-planner-app .dialog-heading h2 {
  line-height: 1.2;
}

@media (max-width: 760px) {
  #weekly-planner-app .planner-main {
    margin-left: 18px;
    margin-right: 18px;
  }
}

@media print {
  /* Hide the surrounding website at every standard template level.
     The planner itself keeps its existing print and weather rules. */
  body > :not(.sm-weekly-layout),
  .sm-weekly-layout > :not(.sm-weekly-page),
  .sm-weekly-page > :not(#sm-weekly-content),
  #sm-weekly-content > :not(#weekly-planner-app) {
    display: none !important;
  }

  html,
  body,
  .sm-weekly-layout,
  .sm-weekly-page,
  #sm-weekly-content,
  #weekly-planner-app,
  #weekly-planner-app .planner-main {
    display: block !important;
    position: static !important;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: white;
  }

  #weekly-planner-app {
    isolation: auto;
  }
}
