@tailwind base;
@tailwind components;
@tailwind utilities;

/*

@layer components {
  .btn-primary {
    @apply py-2 px-4 bg-blue-200;
  }
}

*/
.shopping-list-print {
  display: none;
}

@media print {
  @page {
    margin: 15mm;
  }

  body.shopping-list-page {
    height: auto;
    color: #000;
    background: #fff;
  }

  .shopping-list-page .shopping-list-screen,
  .shopping-list-page .dashboard-navigation,
  .shopping-list-page .dashboard-breadcrumbs,
  .shopping-list-page #flash-messages {
    display: none !important;
  }

  .shopping-list-page main,
  .shopping-list-page .dashboard-content {
    display: block;
    padding: 0;
  }

  .shopping-list-page .dashboard-container {
    max-width: none;
    margin: 0;
  }

  .shopping-list-print {
    display: block;
    font-size: 11pt;
    line-height: 1.4;
  }

  .shopping-list-print h1 {
    margin: 0 0 4mm;
    font-size: 20pt;
    font-weight: 700;
    overflow-wrap: anywhere;
  }

  .shopping-list-print h2 {
    margin: 7mm 0 2mm;
    font-size: 13pt;
    font-weight: 600;
    break-after: avoid;
  }

  .shopping-list-print table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
  }

  .shopping-list-print thead {
    display: table-header-group;
  }

  .shopping-list-print tr {
    break-inside: avoid;
  }

  .shopping-list-print th,
  .shopping-list-print td {
    padding: 3mm 2mm;
    border-bottom: 1px solid #aaa;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
  }

  .shopping-list-print .shopping-list-print-status {
    width: 15mm;
    text-align: center;
  }

  .shopping-list-print .shopping-list-print-amount {
    width: 25mm;
    text-align: right;
  }

  .shopping-list-print-checkbox {
    display: inline-block;
    width: 4mm;
    height: 4mm;
    border: 1px solid #000;
    line-height: 4mm;
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

/* Hide the dropdown menu by default */
#options-menu-0-button + div {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  transition: opacity 75ms ease-in, transform 75ms ease-in;
}

/* Show the dropdown menu when the button is focused */
#options-menu-0-button:focus + div,
#options-menu-0-button + div:focus-within {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pagination em {
  display: block;
  padding: 0.5em 1em;
  margin: 0 0.25em;
  border-radius: 0.25em;
  background-color: #df1b21;
  color: white;
}

.pagination a {
  display: block;
  padding: 0.5em 1em;
  margin: 0 0.25em;
  border-radius: 0.25em;
  background-color: #eee;
  text-decoration: none;
}

.pagination a:hover {
  background-color: #ccc;
}

.pagination .next_page {
  content: "Next";
}

.pagination .previous_page {
  content: "Previous";
}

.pagination .disabled {
  pointer-events: none;
  opacity: 0.5;
  padding: 0.5em 1em;
  margin: 0 0.25em;
  border-radius: 0.25em;
  background-color: #eee;
}
