
    /* ===== 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;
  }
  
    /* Lightbox modal */
    .work-modal {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.65);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 9999;
        padding: 18px;
    }
    .work-modal.is-open { display: flex; }

    .work-modal__dialog {
        width: min(980px, 96vw);
        max-height: 92vh;
        background: #fff;
        border-radius: 14px;
        overflow: hidden;
        box-shadow: 0 20px 60px rgba(0,0,0,.25);
        display: flex;
        flex-direction: column;
    }

    .work-modal__header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        padding: 14px 16px;
        border-bottom: 1px solid #eee;
    }

    .work-modal__title {
        margin: 0;
        font-size: 16px;
        line-height: 1.25;
        font-weight: 700;
        color: #111;
    }

    .work-modal__meta {
        margin-top: 4px;
        font-size: 12px;
        color: #666;
        word-break: break-word;
    }

    .work-modal__close {
        border: 0;
        background: transparent;
        font-size: 20px;
        line-height: 1;
        padding: 6px 8px;
        cursor: pointer;
        color: #111;
        opacity: .7;
    }
    .work-modal__close:hover { opacity: 1; }

    .work-modal__body {
        padding: 12px 16px 16px;
        overflow: auto;
        display: grid;
        gap: 12px;
    }

    .work-modal__viewer {
        width: 100%;
        background: transparent;
        border: 0;
        border-radius: 0;
        overflow: hidden;
        min-height: 360px;
        display: grid;
        place-items: center;
        padding: 4px;
    }

    .work-modal__viewer iframe,
    .work-modal__viewer video,
    .work-modal__viewer img {
        width: 100%;
        height: 70vh;
        max-height: 70vh;
        border: 0;
        display: block;
        background: transparent;
        object-fit: contain;
    }

    .work-modal__viewer img {
        background: #fff;
        height: auto;
        max-height: 70vh;
    }

    .work-modal__actions {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
        justify-content: flex-end;
    }

    .work-modal__btn {
        appearance: none;
        border: 1px solid #e5e5e5;
        background: #fff;
        padding: 10px 12px;
        border-radius: 10px;
        cursor: pointer;
        font-size: 13px;
        font-weight: 600;
        color: #111;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        text-decoration: none;
    }
    .work-modal__btn:hover { background: #f7f7f7; }

    .work-modal__btn.primary {
        background: #111;
        color: #fff;
        border-color: #111;
    }
    .work-modal__btn.primary:hover { background: #000; }

    .work-modal__toast {
        position: fixed;
        left: 50%;
        bottom: 18px;
        transform: translateX(-50%);
        background: rgba(0,0,0,.85);
        color: #fff;
        padding: 10px 12px;
        border-radius: 10px;
        font-size: 13px;
        display: none;
        z-index: 10000;
    }
    .work-modal__toast.is-show { display: block; }

    /* Make the card clickable but use button for accessibility */
    .work-card {
        cursor: pointer;
    }

    /* Simple play badge overlay for video/youtube thumbs (optional) */
    .thumb-wrap {
        position: relative;
        width: 100%;
        height: 100%;
        overflow: hidden;
        border-radius: 12px;
    }
    .thumb-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    .thumb-play {
        position: absolute;
        inset: 0;
        display: grid;
        place-items: center;
        pointer-events: none;
    }
    .thumb-play span {
        width: 54px;
        height: 54px;
        border-radius: 999px;
        background: rgba(0,0,0,.55);
        display: grid;
        place-items: center;
        color: #fff;
        font-size: 18px;
    }
    .thumb-badge {
        position: absolute;
        left: 10px;
        top: 10px;
        background: rgba(0,0,0,.7);
        color: #fff;
        padding: 4px 8px;
        border-radius: 999px;
        font-size: 11px;
        font-weight: 700;
    }

    /* Remove default button chrome (often looks like a border/box) */
button.work-card {
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  outline: none !important;
}

/* Remove any borders/frames around thumbnails */
.work-card img,
.work-card .thumb-wrap,
.work-card .pdf-thumb,
.work-card .pdf-thumb canvas {
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  background: transparent !important;
}
