:root{--bg:#f4f7fb;--panel:#fff;--text:#172033;--muted:#68758a;--line:#dfe6ef;--brand:#184fbf;--brand2:#0f387f;--ok:#087443}
*{box-sizing:border-box}body{margin:0;background:var(--bg);font-family:Arial,Helvetica,sans-serif;color:var(--text)}a{color:var(--brand);text-decoration:none}a:hover{text-decoration:underline}.wrap{max-width:1180px;margin:auto;padding:28px 18px 60px}.hero{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:24px}.hero h1{font-size:42px;margin:4px 0 8px}.hero p{margin:0;color:var(--muted);font-size:17px}.eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:.14em;color:var(--brand);font-weight:700}.admin-link{border:1px solid var(--line);background:white;padding:10px 16px;border-radius:9px}.panel{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:22px;box-shadow:0 8px 30px rgba(15,35,80,.05)}.searchrow{display:grid;grid-template-columns:1fr 140px;gap:10px;margin-bottom:12px}.searchrow input,.filters select,.admin-form input,.admin-form textarea{width:100%;padding:12px 13px;border:1px solid #ccd6e3;border-radius:8px;background:#fff;font:inherit}.searchrow button,.admin-form button{border:0;background:var(--brand);color:#fff;border-radius:8px;padding:12px 18px;font-weight:700;cursor:pointer}.searchrow button:hover,.admin-form button:hover{background:var(--brand2)}.grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}.results-head{display:flex;justify-content:space-between;align-items:center;margin:22px 2px 12px}.cards{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px}.card h2,.card h3{margin:9px 0 10px}.topline{display:flex;align-items:center;justify-content:space-between;gap:10px}.manufacturer{font-size:13px;font-weight:700;color:#34435b}.verified{font-size:11px;padding:5px 8px;border-radius:999px;background:#e9f8f0;color:var(--ok);font-weight:700}.meta{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0}.meta span{font-size:12px;background:#f0f4f9;border-radius:999px;padding:6px 9px;color:#4c5c73}.card p{color:#536179;line-height:1.5;font-size:14px}.details{font-weight:700;font-size:14px}.empty{background:white;border:1px dashed var(--line);padding:30px;text-align:center;color:var(--muted);grid-column:1/-1}.back{display:inline-block;margin-bottom:15px}.detail-wrap{max-width:960px}.detail h1{font-size:38px;margin:10px 0 22px}.facts{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin:18px 0 26px}.facts div{background:#f5f8fc;border-radius:10px;padding:12px}.facts small{display:block;color:var(--muted);margin-bottom:5px}.detail section{border-top:1px solid var(--line);padding-top:17px;margin-top:20px}.detail section p{line-height:1.7}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:28px}.btn{display:inline-block;border:1px solid var(--line);padding:11px 15px;border-radius:9px;background:white;font-weight:700}.btn.primary{background:var(--brand);color:white;border-color:var(--brand)}.related{margin-top:28px}.muted{color:var(--muted)}.admin-wrap{max-width:800px}.admin-form{display:grid;grid-template-columns:1fr 1fr;gap:14px}.admin-form label{font-size:13px;font-weight:700;display:block}.admin-form label input,.admin-form label textarea{margin-top:6px;font-weight:400}.admin-form label:nth-of-type(8),.admin-form label:nth-of-type(9),.admin-form label:nth-of-type(10),.admin-form .check,.admin-form button{grid-column:1/-1}.check{display:flex!important;align-items:center;gap:9px}.check input{width:auto!important;margin:0!important}.note{background:#fff8dc;border:1px solid #f0df9b;padding:12px;border-radius:8px;color:#6a5b1c}.success,.error{padding:12px;border-radius:8px;margin-bottom:15px}.success{background:#e8f8ef;color:#087443}.error{background:#ffecec;color:#a32727}
@media(max-width:850px){.grid{grid-template-columns:1fr 1fr}.cards{grid-template-columns:1fr}.facts{grid-template-columns:1fr 1fr}.admin-form{grid-template-columns:1fr}.admin-form label{grid-column:1/-1}.hero h1{font-size:32px}}
@media(max-width:520px){.searchrow{grid-template-columns:1fr}.grid{grid-template-columns:1fr}.facts{grid-template-columns:1fr}.hero{display:block}.admin-link{display:inline-block;margin-top:14px}}

.admin-nav{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.login-wrap{max-width:480px;padding-top:70px}.login-panel h1{margin:7px 0 20px}.login-form{display:grid;gap:14px}.login-form label{font-size:13px;font-weight:700}.login-form input{width:100%;padding:12px 13px;border:1px solid #ccd6e3;border-radius:8px;margin-top:6px;font:inherit}.login-form button{border:0;background:var(--brand);color:#fff;border-radius:8px;padding:12px 18px;font-weight:700;cursor:pointer}.small{font-size:12px}.file-field{grid-column:1/-1;border:1px dashed #b9c6d8;border-radius:10px;padding:14px}.file-field input{border:0!important;padding:8px 0!important}.file-field span{display:block;font-size:12px;margin-top:5px}.catalogue-cover{margin:0 0 24px;max-width:150px}.catalogue-cover img{width:auto;max-width:150px;height:auto;max-height:220px;display:block;border:1px solid var(--line);border-radius:10px}.card-thumb{display:flex;align-items:center;justify-content:center;min-height:150px;background:#f2f5f9;border-radius:8px;margin-bottom:14px;overflow:hidden;text-align:center}.card-thumb img{width:auto;height:auto;max-width:150px;max-height:190px;object-fit:contain}

.admin-wide{max-width:1250px}.admin-list-panel{margin-top:24px}.section-head{display:flex;align-items:center;justify-content:space-between}.section-head h2{margin:0}.section-head p{margin:5px 0 0}.admin-table-wrap{overflow-x:auto}.admin-table{width:100%;border-collapse:collapse;margin-top:15px}.admin-table th,.admin-table td{text-align:left;padding:10px;border-bottom:1px solid var(--line);vertical-align:middle;font-size:13px}.admin-table th{background:#f6f8fb;color:#4c5c73}.admin-thumb{width:48px;height:66px;object-fit:contain;border:1px solid var(--line);border-radius:5px;background:#fff}.no-thumb{display:inline-block;width:48px;font-size:10px;text-align:center;color:var(--muted)}.row-actions{white-space:nowrap}.mini-btn{display:inline-block;padding:7px 9px;border:1px solid var(--line);border-radius:6px;margin:2px;background:#fff;font-weight:700;font-size:12px}.mini-btn.danger{color:#a32727;border-color:#e5b8b8}.status-ok{color:var(--ok);font-weight:700}.edit-cover{display:flex;align-items:center;gap:12px;margin:0 0 18px}.edit-cover img{width:90px;max-height:120px;object-fit:contain;border:1px solid var(--line);border-radius:7px}.edit-cover span{color:var(--muted);font-size:13px}.delete-form{display:grid;gap:14px;margin-top:20px}.delete-form label{font-size:13px;font-weight:700}.delete-form input{width:100%;padding:12px 13px;border:1px solid #ccd6e3;border-radius:8px;margin-top:6px;font:inherit}.danger-button{border:0;background:#a32727;color:#fff;border-radius:8px;padding:12px 18px;font-weight:700;cursor:pointer}


/* Manufacturer searchable picker */
.manufacturer-picker{position:relative}
.manufacturer-search{width:100%}
.manufacturer-dropdown{
    position:absolute;
    z-index:1000;
    left:0;
    right:0;
    top:calc(100% + 4px);
    max-height:320px;
    overflow-y:auto;
    background:#fff;
    border:1px solid #d0d5dd;
    border-radius:10px;
    box-shadow:0 12px 30px rgba(16,24,40,.14);
}
.manufacturer-option{
    display:block;
    width:100%;
    text-align:left;
    padding:10px 12px;
    border:0;
    border-bottom:1px solid #eef2f6;
    border-radius:0;
    background:#fff;
    color:#172033;
    cursor:pointer;
}
.manufacturer-option:hover{background:#f2f4f7}
.manufacturer-option strong{display:block;font-size:14px}
.manufacturer-option span{display:block;margin-top:3px;font-size:12px;color:#667085;font-weight:400}
.manufacturer-empty{padding:12px;color:#667085;font-size:13px}


.manufacturer-select-wrap{display:grid;gap:8px}
#manufacturerSearch,#manufacturerInput,#manufacturerSelect{width:100%}
#manufacturerSelect{
    min-height:240px;
    max-height:320px;
    overflow-y:auto;
    border:1px solid #d0d5dd;
    border-radius:8px;
    padding:6px;
    background:#fff;
}
#manufacturerSelect option{padding:6px}

.manufacturer-site{margin-top:4px;font-size:13px}
.manufacturer-site a{word-break:break-all}

.card-links{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-top:12px}


/* V4.11 compact filtered catalogue layout */
.wrap{
    max-width:1280px;
    width:100%;
    overflow-x:hidden;
}

.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:12px;
    width:100%;
    min-width:0;
}

.card{
    min-width:0;
    width:100%;
    overflow:hidden;
    padding:14px;
}

.card h2,
.card h3{
    font-size:17px;
    line-height:1.25;
    overflow-wrap:anywhere;
    word-break:break-word;
}

.card p,
.card .manufacturer,
.card .meta,
.card-links{
    min-width:0;
    overflow-wrap:anywhere;
    word-break:break-word;
}

.card-thumb{
    width:100%;
    min-width:0;
    height:150px;
    min-height:150px;
    max-height:150px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    background:#f2f5f9;
    border-radius:8px;
    margin-bottom:12px;
}

.card-thumb img{
    display:block;
    width:auto !important;
    height:auto !important;
    max-width:120px !important;
    max-height:140px !important;
    object-fit:contain;
}

.catalogue-cover{
    width:150px;
    max-width:100%;
    overflow:hidden;
}

.catalogue-cover img{
    display:block;
    width:auto !important;
    height:auto !important;
    max-width:150px !important;
    max-height:220px !important;
    object-fit:contain;
}

.filters,
.grid,
.searchrow{
    min-width:0;
}

.filters select,
.searchrow input,
.searchrow button{
    max-width:100%;
    min-width:0;
}

@media(max-width:1100px){
    .cards{grid-template-columns:repeat(3,minmax(0,1fr));}
}

@media(max-width:850px){
    .cards{grid-template-columns:repeat(2,minmax(0,1fr));}
}

@media(max-width:560px){
    .cards{grid-template-columns:1fr;}
    .card-thumb{
        height:135px;
        min-height:135px;
        max-height:135px;
    }
    .card-thumb img{
        max-width:110px !important;
        max-height:125px !important;
    }
}


/* V4.12 smaller catalogue thumbnails */
.cards{
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:10px;
}

.card{
    padding:12px;
}

.card-thumb{
    width:100%;
    height:110px !important;
    min-height:110px !important;
    max-height:110px !important;
    margin-bottom:10px;
    padding:6px;
}

.card-thumb img{
    width:auto !important;
    height:auto !important;
    max-width:90px !important;
    max-height:100px !important;
    object-fit:contain !important;
}

.card h2,
.card h3{
    font-size:16px;
    margin:7px 0 8px;
}

.card p{
    font-size:13px;
    margin:7px 0;
}

.card-links{
    margin-top:8px;
    gap:9px;
}

@media(min-width:1200px){
    .cards{
        grid-template-columns:repeat(4,minmax(0,1fr));
    }
}

@media(max-width:850px){
    .cards{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:560px){
    .cards{
        grid-template-columns:1fr;
    }
    .card-thumb{
        height:100px !important;
        min-height:100px !important;
        max-height:100px !important;
    }
    .card-thumb img{
        max-width:80px !important;
        max-height:90px !important;
    }
}


/* V4.13 FINAL compact catalogue cards */
.results-head{
    max-width:1180px;
}

.cards{
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:12px !important;
    align-items:start !important;
    grid-auto-rows:auto !important;
    width:100% !important;
}

.card{
    align-self:start !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    overflow:hidden !important;
    padding:12px !important;
}

.card-thumb{
    width:100% !important;
    height:105px !important;
    min-height:105px !important;
    max-height:105px !important;
    padding:6px !important;
    margin:0 0 9px 0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    overflow:hidden !important;
    background:#f5f7fa !important;
    border-radius:7px !important;
}

.card-thumb img{
    display:block !important;
    width:auto !important;
    height:auto !important;
    max-width:85px !important;
    max-height:95px !important;
    object-fit:contain !important;
}

.card .topline{
    align-items:flex-start !important;
}

.card h2,
.card h3{
    margin:7px 0 !important;
    font-size:15px !important;
    line-height:1.25 !important;
}

.card p{
    margin:5px 0 !important;
    line-height:1.35 !important;
}

.card .meta{
    margin:6px 0 !important;
}

.card-links{
    margin-top:7px !important;
    gap:8px !important;
}

.card-links .details{
    font-size:12px !important;
}

.manufacturer-site{
    font-size:11px !important;
}

@media(max-width:1100px){
    .cards{
        grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    }
}

@media(max-width:780px){
    .cards{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    }
}

@media(max-width:520px){
    .cards{
        grid-template-columns:1fr !important;
    }
    .card-thumb{
        height:95px !important;
        min-height:95px !important;
        max-height:95px !important;
    }
    .card-thumb img{
        max-width:75px !important;
        max-height:85px !important;
    }
}


/* V4.14 — one catalogue per row */
.cards{
    display:block !important;
    width:100% !important;
}

.single-catalogue-row{
    display:block !important;
    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    margin:0 0 12px 0 !important;
    padding:14px !important;
    overflow:hidden !important;
}

.catalogue-topic-title{
    margin:0 0 10px 0 !important;
    font-size:18px !important;
    line-height:1.25 !important;
    font-weight:700 !important;
}

.catalogue-topic-title a{
    color:var(--brand) !important;
    text-decoration:none !important;
}

.catalogue-topic-title a:hover{
    text-decoration:underline !important;
}

.single-catalogue-content{
    display:flex !important;
    align-items:flex-start !important;
    gap:14px !important;
    width:100% !important;
    min-width:0 !important;
}

.single-catalogue-cover{
    width:85px !important;
    min-width:85px !important;
    max-width:85px !important;
    height:95px !important;
    min-height:95px !important;
    max-height:95px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    overflow:hidden !important;
    background:#f5f7fa !important;
    border:1px solid var(--line) !important;
    border-radius:6px !important;
}

.single-catalogue-cover a{
    display:flex !important;
    width:100% !important;
    height:100% !important;
    align-items:center !important;
    justify-content:center !important;
}

.single-catalogue-cover img{
    display:block !important;
    width:auto !important;
    height:auto !important;
    max-width:85px !important;
    max-height:95px !important;
    object-fit:contain !important;
}

.single-catalogue-info{
    flex:1 1 auto !important;
    min-width:0 !important;
}

.single-catalogue-info .topline{
    justify-content:flex-start !important;
    gap:10px !important;
}

.single-catalogue-info p{
    margin:5px 0 !important;
    font-size:13px !important;
    line-height:1.35 !important;
}

.single-catalogue-info .meta{
    margin:6px 0 !important;
}

.single-catalogue-info .card-links{
    margin-top:7px !important;
}

@media(max-width:560px){
    .single-catalogue-content{
        gap:10px !important;
    }

    .single-catalogue-cover{
        width:75px !important;
        min-width:75px !important;
        max-width:75px !important;
        height:85px !important;
        min-height:85px !important;
        max-height:85px !important;
    }

    .single-catalogue-cover img{
        max-width:75px !important;
        max-height:85px !important;
    }
}


/* V4.15 exact imported catalogue thumbnail */
.single-catalogue-cover,
.single-catalogue-cover a{
    width:85px !important;
    min-width:85px !important;
    max-width:85px !important;
    height:95px !important;
    min-height:95px !important;
    max-height:95px !important;
}

.single-catalogue-cover img{
    width:85px !important;
    height:95px !important;
    max-width:85px !important;
    max-height:95px !important;
    object-fit:contain !important;
}

/* V4.16 thumbnail is always an image, never PDF */
.single-catalogue-cover img{
    width:auto !important;
    height:auto !important;
    max-width:85px !important;
    max-height:95px !important;
    object-fit:contain !important;
}


/* V4.22 integrated Catalogue Admin actions */
.catalogue-admin-actions{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
    margin-top:12px;
}
.catalogue-admin-actions form{
    margin:0;
}
.catalogue-admin-actions button{
    border:0;
    background:var(--brand);
    color:#fff;
    border-radius:8px;
    padding:10px 14px;
    font-weight:700;
    cursor:pointer;
}
.catalogue-admin-actions button:hover{
    background:var(--brand2);
}
.catalogue-admin-help{
    margin:10px 0 0;
    font-size:12px;
    line-height:1.45;
}


/* V4.31 manual manufacturer assignment */
.manual-assign-inline{
    display:flex;
    align-items:center;
    gap:6px;
    min-width:320px;
    margin:0 0 7px 0;
}
.manual-assign-inline select{
    flex:1 1 auto;
    min-width:220px;
    max-width:360px;
    padding:6px 8px;
    border:1px solid #ccd6e3;
    border-radius:6px;
    background:#fff;
}
.manual-assign-inline .manual-assign-btn{
    background:#175cd3;
    color:#fff;
    border-color:#175cd3;
}
.row-actions-secondary{
    display:flex;
    gap:6px;
    flex-wrap:wrap;
}
@media(max-width:760px){
    .manual-assign-inline{
        min-width:0;
        width:100%;
        flex-wrap:wrap;
    }
    .manual-assign-inline select{
        min-width:0;
        width:100%;
        max-width:none;
    }
}


/* V4.32 inline manufacturer save */
.manual-assign-inline{
    display:flex !important;
    align-items:center !important;
    gap:8px !important;
    flex-wrap:nowrap !important;
}
.manual-assign-inline select{
    flex:1 1 auto !important;
    min-width:260px !important;
}
.manual-assign-inline .manual-assign-btn{
    display:inline-block !important;
    flex:0 0 auto !important;
    min-width:70px !important;
    background:#175cd3 !important;
    color:#fff !important;
    border:1px solid #175cd3 !important;
    padding:7px 12px !important;
    border-radius:7px !important;
    font-weight:700 !important;
    cursor:pointer !important;
}
@media(max-width:760px){
    .manual-assign-inline{
        flex-wrap:wrap !important;
    }
    .manual-assign-inline select{
        min-width:0 !important;
        width:100% !important;
    }
}


/* V4.36 Catalogue Admin full filters */
.catalogue-filter-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:10px;
}
.catalogue-filter-grid label{
    display:block;
    font-size:12px;
    font-weight:700;
}
.catalogue-filter-grid input,
.catalogue-filter-grid select{
    display:block;
    width:100%;
    margin-top:5px;
    padding:9px 10px;
    border:1px solid #ccd6e3;
    border-radius:7px;
    background:#fff;
    min-width:0;
}
.catalogue-filter-actions{
    display:flex;
    gap:8px;
    margin-top:12px;
}
.catalogue-filter-actions button,
.catalogue-filter-actions a{
    display:inline-block;
    border:0;
    border-radius:7px;
    padding:9px 13px;
    font-weight:700;
}
.catalogue-filter-actions button{
    background:#175cd3;
    color:#fff;
    cursor:pointer;
}
.catalogue-filter-actions a{
    background:#667085;
    color:#fff;
}
@media(max-width:1100px){
    .catalogue-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
    .catalogue-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:520px){
    .catalogue-filter-grid{grid-template-columns:1fr}
}


/* V4.37 filters live directly inside Catalogue Management table headers */
.catalogue-filter-table thead th{
    vertical-align:top;
    min-width:130px;
}
.catalogue-filter-head .filter-title{
    font-size:15px;
    font-weight:800;
    margin-bottom:7px;
}
.catalogue-filter-head select,
.catalogue-filter-head input[type="search"],
.catalogue-filter-head input[type="text"]{
    display:block;
    width:100%;
    min-width:0;
    box-sizing:border-box;
    margin:0 0 6px 0;
    padding:7px 8px;
    border:1px solid #cbd5e1;
    border-radius:6px;
    background:#fff;
    font-size:12px;
}
.header-filter-actions{
    display:flex;
    gap:6px;
    margin-bottom:6px;
}
.header-filter-actions button,
.header-filter-actions a{
    display:inline-block;
    border:0;
    padding:7px 11px;
    border-radius:6px;
    font-size:12px;
    font-weight:700;
}
.header-filter-actions button{
    background:#175cd3;
    color:#fff;
    cursor:pointer;
}
.header-filter-actions a{
    background:#667085;
    color:#fff;
}
.more-filters summary{
    cursor:pointer;
    color:#175cd3;
    font-weight:700;
    font-size:12px;
}
.more-filter-box{
    min-width:260px;
    margin-top:8px;
    padding:8px;
    background:#fff;
    border:1px solid #dbe3ee;
    border-radius:7px;
}
.more-filter-box label{
    display:block;
    font-size:11px;
    font-weight:700;
    margin-bottom:6px;
}

.status.nondbs{display:inline-block;background:#fff1f0;color:#b42318;border:1px solid #fecdca;border-radius:999px;padding:4px 9px;font-weight:700}


/* V4.52 — Catalogue Admin responsive fit */
html, body{
    max-width:100%;
    overflow-x:hidden;
}

.wrap,
.admin-wide{
    width:100% !important;
    max-width:100% !important;
    box-sizing:border-box !important;
}

.admin-table-wrap{
    width:100% !important;
    max-width:100% !important;
    overflow-x:auto !important;
    -webkit-overflow-scrolling:touch;
}

.admin-table{
    width:100% !important;
    table-layout:auto !important;
}

.admin-table th,
.admin-table td{
    box-sizing:border-box !important;
    vertical-align:top !important;
}

.admin-table th:nth-child(1),
.admin-table td:nth-child(1){
    width:90px !important;
    min-width:70px !important;
}

.admin-table th:nth-child(2),
.admin-table td:nth-child(2){
    min-width:180px !important;
}

.admin-table th:nth-child(3),
.admin-table td:nth-child(3){
    min-width:110px !important;
    width:140px !important;
}

.admin-table th:nth-child(4),
.admin-table td:nth-child(4){
    min-width:90px !important;
    width:110px !important;
}

.admin-table th:nth-child(5),
.admin-table td:nth-child(5){
    min-width:90px !important;
    width:105px !important;
}

.admin-table th:nth-child(6),
.admin-table td:nth-child(6){
    min-width:260px !important;
    width:auto !important;
}

.manual-assign-inline{
    display:flex !important;
    flex-wrap:wrap !important;
    align-items:center !important;
    gap:6px !important;
    width:100% !important;
    min-width:0 !important;
}

.manual-manufacturer-select{
    flex:1 1 170px !important;
    width:auto !important;
    min-width:140px !important;
    max-width:100% !important;
}

.manual-save-ajax{
    flex:0 0 68px !important;
    width:68px !important;
    min-width:68px !important;
}

.manual-save-status{
    flex:0 0 auto !important;
    min-width:0 !important;
}

.row-actions-secondary{
    display:flex !important;
    flex-wrap:wrap !important;
    gap:5px !important;
    width:100% !important;
}

.row-actions-secondary .mini-btn{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    flex:0 0 auto !important;
    white-space:nowrap !important;
    padding:6px 9px !important;
    font-size:12px !important;
}

.catalogue-filter-table .catalogue-filter-head th{
    min-width:0 !important;
}

@media (max-width:1200px){
    .admin-table{
        font-size:12px !important;
    }

    .admin-table th,
    .admin-table td{
        padding:7px !important;
    }

    .admin-table th:nth-child(2),
    .admin-table td:nth-child(2){
        min-width:160px !important;
    }

    .admin-table th:nth-child(6),
    .admin-table td:nth-child(6){
        min-width:240px !important;
    }
}

@media (max-width:900px){
    .admin-table th:nth-child(1),
    .admin-table td:nth-child(1){
        width:70px !important;
        min-width:60px !important;
    }

    .admin-thumb{
        max-width:55px !important;
        max-height:65px !important;
    }

    .manual-manufacturer-select{
        flex-basis:150px !important;
        min-width:120px !important;
    }

    .row-actions-secondary .mini-btn{
        padding:5px 7px !important;
        font-size:11px !important;
    }
}

@media (max-width:700px){
    .admin-table-wrap{
        overflow-x:auto !important;
    }

    .admin-table{
        min-width:680px !important;
    }
}


/* V4.55 fast Catalogue Admin */
.admin-pagination{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:14px;
    flex-wrap:wrap;
    padding:14px 8px 4px;
}
.admin-pagination a{
    display:inline-block;
    padding:8px 12px;
    border:1px solid #ccd6e3;
    border-radius:7px;
    background:#fff;
    font-weight:700;
}
.admin-pagination span{
    color:#667085;
    font-size:13px;
    font-weight:700;
}


/* V4.58 Data Quality dashboard */
.quality-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:10px;
}
.quality-grid > div{
    border:1px solid #dbe3ee;
    background:#f8fafc;
    border-radius:10px;
    padding:12px;
    min-width:0;
}
.quality-grid strong{
    display:block;
    font-size:24px;
    line-height:1.1;
    margin-bottom:4px;
}
.quality-grid span{
    display:block;
    font-size:12px;
    color:#667085;
    font-weight:700;
}
@media(max-width:900px){
    .quality-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:520px){
    .quality-grid{grid-template-columns:1fr}
}
