.widget-postit {
  height: 100%; }
  .widget-postit .card-body {
    overflow: hidden; }

.postit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 1rem;
  grid-template-rows: 50%;
  height: 100%;
  padding: 1rem; }

.postit-note {
  position: relative;
  display: flex;
  flex-direction: column; }

.postit-body {
  flex: 1;
  padding: 0.5rem  1rem;
  overflow: auto; }

.postit-header {
  flex: none; }

.postit-footer {
  flex: none;
  position: relative;
  height: 1.5rem; }

.postit-footer:before {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  border-width: 1.5rem 1.5rem 0 0;
  border-style: solid;
  border-color: #f7ecb5 transparent; }

.postit-footer:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 1.5rem;
  border-width: 0.75rem;
  border-style: solid;
  border-color: #fcf8e3;
  border-bottom-left-radius: 0.25rem; }

.postit-body,
.postit-header {
  background-color: #fcf8e3; }

.postit-header {
  border-top-left-radius: 0.25rem;
  border-top-right-radius: 0.25rem; }

.postit-note.success .postit-body,
.postit-note.success .postit-header {
  background-color: #d8e7c8; }

.postit-note.success .postit-footer::after {
  border-color: #d8e7c8; }

.postit-note.success .postit-footer::before {
  border-color: #bfd8a4 transparent; }

.postit-note.danger .postit-body,
.postit-note.danger .postit-header {
  background-color: #f2dede; }

.postit-note.danger .postit-footer::after {
  border-color: #f2dede; }

.postit-note.danger .postit-footer::before {
  border-color: #e4b9b9 transparent; }

.postit-note.info .postit-body,
.postit-note.info .postit-header {
  background-color: #bce8f1; }

.postit-note.info .postit-footer::after {
  border-color: #bce8f1; }

.postit-note.info .postit-footer:before {
  border-color: #92dae8 transparent; }

.postit-note.light .postit-body,
.postit-note.light .postit-header {
  background-color: #f4f5f1; }

.postit-note.light .postit-footer::after {
  border-color: #f4f5f1; }

.postit-note.light .postit-footer:before {
  border-color: #dde0d3 transparent; }

.postit-note.dark .postit-body,
.postit-note.dark .postit-header {
  background-color: #c9c9c9; }

.postit-note.dark .postit-footer::after {
  border-color: #c9c9c9; }

.postit-note.dark .postit-footer:before {
  border-color: #b0b0b0 transparent; }

.postit-note.is-empty {
  align-items: center;
  justify-content: center;
  padding-bottom: 1rem;
  border-radius: 0.25rem; }

.postit-note.is-empty,
.postit-note.is-empty .postit-body,
.postit-note.is-empty .postit-header {
  background-color: #f4f5f1; }

.postit-note .btn-icon {
  min-width: 1.75rem; }

.postit-header .action-block {
  align-items: flex-start; }
  .postit-header .action-block .btn {
    flex: none;
    width: fit-content; }
    .postit-header .action-block .btn:first-child {
      margin-left: 0;
      margin-right: auto; }
    .postit-header .action-block .btn:last-child {
      margin-right: 0; }

.postit-footer .action-block {
  position: relative;
  z-index: 3;
  margin-top: -0.75rem; }

.postit-footer .btn {
  min-width: 5rem; }

.postit-edit-note {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.5);
  right: 0;
  left: 0;
  top: 0;
  bottom: 0;
  padding: 2rem; }
  .postit-edit-note .postit-note, .postit-edit-note form {
    height: 100%;
    width: 100%; }
  .postit-edit-note .postit-content {
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: inset 1px 1px 1px rgba(0, 0, 0, 0.2);
    border: 1px solid #adacac; }
  .postit-edit-note .postit-body {
    padding-bottom: 1.25rem; }
  .postit-edit-note .action-block {
    padding-left: 1rem; }
  .postit-edit-note .postit-header {
    padding-top: 0.25rem; }
    .postit-edit-note .postit-header .btn-icon .am-icon {
      font-size: 1.25em; }
    .postit-edit-note .postit-header button.btn {
      padding: 0; }
      .postit-edit-note .postit-header button.btn + .btn {
        margin-left: .5rem; }

.postit-note.is-empty .postit-body {
  flex: none;
  height: fit-content; }

.postit-note.is-empty .call-to-action .libelle {
  opacity: 0;
  transition: opacity .3s; }

.postit-note.is-empty .stretched-link:hover, .postit-note.is-empty .stretched-link:focus {
  outline: none; }
  .postit-note.is-empty .stretched-link:hover ~ .postit-body .libelle, .postit-note.is-empty .stretched-link:focus ~ .postit-body .libelle {
    color: #0062ac;
    opacity: 1; }
  .postit-note.is-empty .stretched-link:hover ~ .postit-body .icon-postit, .postit-note.is-empty .stretched-link:focus ~ .postit-body .icon-postit {
    color: #8a8b8b; }
    .postit-note.is-empty .stretched-link:hover ~ .postit-body .icon-postit::before, .postit-note.is-empty .stretched-link:focus ~ .postit-body .icon-postit::before {
      content: "\e223"; }

.call-to-action {
  text-align: center; }
  .call-to-action span {
    display: block; }
  .call-to-action .am-icon {
    font-size: 3em;
    color: #c3c3c1; }

.color-swatch {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.25rem;
  border: 2px solid #adacac;
  margin: 0 .25rem;
  background-color: #fcf8e3; }

.color-picker {
  margin: 0; }
  .color-picker:hover {
    cursor: pointer; }
  .color-picker input {
    position: absolute;
    z-index: -1;
    opacity: 0; }
  .color-picker input:checked ~ .color-swatch {
    border-color: #555555; }

.color-swatch.success {
  background-color: #d8e7c8; }

.color-swatch.danger {
  background-color: #f2dede; }

.color-swatch.info {
  background-color: #bce8f1; }

.color-swatch.light {
  background-color: #f4f5f1; }
