
    /* ===== Filter UI polish ===== */
    :root{
    --ui-bg: #ffffff;
    --ui-border: #e5e7eb;          /* gray-200 */
    --ui-border-hover: #e5e7eb;    /* gray-300 */
    --ui-text: #111827;            /* gray-900 */
    --ui-muted: #6b7280;           /* gray-500 */
    --ui-placeholder: #9ca3af;     /* gray-400 */
    --ui-primary: #15a9e1;         /* your blue */
    --ui-ring: rgba(22,115,255,.15);
    --ui-radius: 12px;
    --ui-field-h: 44px;
    }

    .reports-filters{
    display: grid;
    grid-template-columns: repeat(12, minmax(0,1fr));
    gap: 16px 20px;
    align-items: end;
    margin: 14px 0 6px;
    }
    .reports-filters .filter-block{
    grid-column: span 3; /* 4-up on desktop; adjust as needed */
    min-width: 220px;
    }
    @media (max-width: 1024px){
    .reports-filters .filter-block{ grid-column: span 6; } /* 2-up */
    }
    @media (max-width: 640px){
    .reports-filters .filter-block{ grid-column: 1 / -1; } /* stack */
    }

    .reports-filters label{
    display: block;
    margin-bottom: 6px;
    font-size: .9rem;
    color: var(--ui-muted);
    }

    /* Selects */
    .select-wrap{ position: relative; }
    .select-wrap select{
    appearance: none;
    width: 100%;
    height: var(--ui-field-h);
    padding: 0 38px 0 14px;
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius);
    background: var(--ui-bg);
    color: var(--ui-text);
    font: inherit;
    line-height: 1.1;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
    }
    .select-wrap select:hover{ border-color: var(--ui-border-hover); }
    .select-wrap select:focus{
    outline: 0;
    border-color: var(--ui-primary);
    box-shadow: 0 0 0 4px var(--ui-ring);
    }
    .select-wrap i.fa-chevron-down{
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--ui-muted);
    font-size: .9rem;
    }

    /* Search */
    .search-wrap{
    position: relative;
    }
    .search-wrap i.fa-magnifying-glass{
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ui-placeholder);
    font-size: .95rem;
    }
    .search-wrap input[type="search"]{
    width: 100%;
    height: var(--ui-field-h);
    padding: 0 12px 0 38px; /* room for icon */
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius);
    background: var(--ui-bg);
    color: var(--ui-text);
    font: inherit;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
    }
    .search-wrap input::placeholder{ color: var(--ui-placeholder); }
    .search-wrap input:hover{ border-color: var(--ui-border-hover); }
    .search-wrap input:focus{
    outline: 0;
    border-color: var(--ui-primary);
    box-shadow: 0 0 0 4px var(--ui-ring);
    }

    /* Buttons (same height as fields) */
    .btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--ui-field-h);
    padding: 0 16px;
    border-radius: var(--ui-radius);
    font-weight: 600;
    line-height: 1;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .02s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
    }
    .btn:active{ transform: translateY(1px); }

    /* Primary */
    .btn-primary{
    background: var(--ui-primary);
    color: #fff;
    box-shadow: 0 6px 14px rgba(22,115,255,.18);
    }
    .btn-primary:hover{ box-shadow: 0 8px 18px rgba(22,115,255,.22); }
    .btn-primary:focus{ outline: 0; box-shadow: 0 0 0 4px var(--ui-ring); }

    /* Light / secondary */
    .btn-light{
    background: #f3f4f6;
    color: var(--ui-text);
    border-color: var(--ui-border);
    }
    .btn-light:hover{ background: #e5e7eb; }
    .btn-light:focus{ outline: 0; box-shadow: 0 0 0 4px var(--ui-ring); }

    /* Keep the share icons aligned with fields height */
    .share-icons .share-btn{
    width: var(--ui-field-h);
    height: var(--ui-field-h);
    border-radius: 50%;
    }

  .pdf-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3; /* keeps grid consistent */
    background: #f3f3f3;
    display: grid;
    place-items: center;
    overflow: hidden;
  }
  .pdf-thumb canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .pdf-badge {
    position: absolute;
    right: .5rem;
    bottom: .5rem;
    font-size: .75rem;
    background: #d32f2f;
    color: #fff;
    padding: .15rem .35rem;
    border-radius: .25rem;
    letter-spacing: .03em;
  }
  
  .share-icons { display: flex; gap: .5rem; align-items: center; }
  .share-btn {
    display: grid; place-items: center;
    width: 36px; height: 36px;
    border: 0; border-radius: 50%;
    background: #15a9e1; cursor: pointer;
  }
  .share-btn:hover { background: #e5e7eb; }
  .share-btn i { font-size: 14px; }
  .share-toast {
    margin-top: .5rem;
    background: #111827; color: #fff;
    font-size: .85rem; padding: .25rem .5rem;
    border-radius: .25rem; display: inline-block;
  }
  