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

/*

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

*/
/* CR80 ID card: 3.370in × 2.125in. Overflow is clipped the way a printed card clips. */
.mic-card {
  --mic-navy: #1e3a5f;
  --mic-green: #3a7a43;
  --mic-ink: #111111;
  --mic-width: 3.37in;
  --mic-height: 2.125in;
  box-sizing: border-box;
  width: var(--mic-width);
  height: var(--mic-height);
  padding: 0.07in 0.08in 0.06in;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, #f4f7dc 0%, #e7efc4 55%, #f3eec0 100%);
  border: 0.045in solid #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  color: var(--mic-ink);
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.mic-card::before {
  content: "";
  position: absolute;
  inset: 0.02in;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40'%3E%3Cpath d='M0 20 Q10 4 20 20 T40 20 T60 20 T80 20' fill='none' stroke='%23b7c97a' stroke-width='0.6' opacity='0.45'/%3E%3Cpath d='M0 10 Q10 26 20 10 T40 10 T60 10 T80 10' fill='none' stroke='%23c5d48a' stroke-width='0.5' opacity='0.35'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.mic-card > * {
  position: relative;
  z-index: 1;
}

.mic-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.08in;
}

.mic-card-title {
  margin: 0;
  color: var(--mic-navy);
  font-size: 11.5pt;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.05;
  white-space: nowrap;
}

.mic-card-brand {
  display: flex;
  align-items: center;
  gap: 0.05in;
  color: var(--mic-navy);
  font-size: 5.4pt;
  font-weight: 600;
  line-height: 1.15;
  text-align: left;
  max-width: 1.15in;
}

.mic-card-brand svg {
  width: 0.28in;
  height: 0.22in;
  flex-shrink: 0;
}

.mic-card-rules {
  margin: 0.04in 0 0.06in;
  border: 0;
  border-top: 0.012in solid var(--mic-green);
  border-bottom: 0.012in solid var(--mic-green);
  height: 0.034in;
}

.mic-card-body {
  display: grid;
  grid-template-columns: 0.78in 1fr;
  gap: 0.1in;
  min-height: 1.28in;
}

.mic-card-photo-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
}

.mic-card-photo {
  width: 0.78in;
  height: 0.9in;
  object-fit: cover;
  object-position: center;
  background: #d7d7d7;
  display: block;
}

.mic-card-id {
  margin-top: 0.05in;
  font-size: 8pt;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.mic-card-fields {
  display: grid;
  grid-template-columns: 0.72in 1fr;
  column-gap: 0.06in;
  row-gap: 0.012in;
  align-content: start;
  min-width: 0;
  font-size: 6.4pt;
  line-height: 1.15;
}

.mic-card-label {
  color: var(--mic-green);
  font-weight: 600;
}

.mic-card-value {
  font-weight: 800;
  min-width: 0;
  overflow-wrap: anywhere;
}

.mic-card-address-label {
  grid-column: 1 / -1;
  margin-top: 0.02in;
}

.mic-card-address {
  grid-column: 1 / -1;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.mic-card-footer-rule {
  margin: 0.05in 0 0.03in;
  border: 0;
  border-top: 0.012in solid var(--mic-green);
}

.mic-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.08in;
  color: var(--mic-green);
  font-size: 5.6pt;
  font-weight: 600;
}

.mic-card-footer span {
  display: inline-flex;
  align-items: center;
  gap: 0.04in;
  min-width: 0;
}

.mic-card-footer svg {
  width: 0.11in;
  height: 0.11in;
  flex-shrink: 0;
}

.mic-card-wrap-off .mic-card-value,
.mic-card-wrap-off .mic-card-address,
.mic-card-wrap-off .mic-card-id {
  overflow-wrap: normal;
  white-space: nowrap;
}

@media print {
  .mic-card-page .no-print {
    display: none !important;
  }

  .mic-card {
    box-shadow: none;
    page-break-inside: avoid;
  }
}
@media print {
  .no-print { display: none; }
  /* Adjust margins, padding, etc. */
}
/*
 * 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.
 *


 */

[x-cloak] {
  display: none !important;
}
