/* NOW HIRE staff: visual-only overrides. */
#header{min-height:80px!important;padding:10px 22px!important;background:#10131e!important;border-bottom:1px solid #514473!important;gap:22px!important}
#site-name.nh-admin-brand{margin:0!important;font-size:initial!important;letter-spacing:normal!important}
.nh-admin-brand a{display:flex!important;align-items:center;gap:12px;text-decoration:none!important}
.nh-admin-brand img{width:180px;height:auto;max-height:63px;object-fit:contain}
.nh-admin-brand-label{display:inline-flex;border:1px solid #565070;padding:5px 8px;border-radius:6px;font-size:10px;letter-spacing:.14em;color:#a8dff3;font-weight:800;white-space:nowrap}
.nh-staff-nav{gap:6px!important}
.nh-staff-nav a{border:1px solid #3b4155!important;background:#1b2030!important;border-radius:8px!important;font-size:13px!important;padding:9px 12px!important}
.nh-staff-nav a:hover{border-color:#7c77c4!important;background:#2a2c43!important}
#user-tools{font-size:11px!important}
#content{padding:28px 30px!important}
#content h1{font-size:clamp(25px,2.5vw,34px)!important;letter-spacing:-.03em;margin:0 0 22px!important}
.change-form #content-main{max-width:1330px;margin:0 auto}
.change-form fieldset.module,.change-form .inline-group,.change-form .submit-row{border:1px solid #3d4358!important;border-radius:13px!important;overflow:hidden;margin-bottom:18px!important;background:#1c2030!important}
.change-form fieldset.module>h2,.change-form .inline-group>h2{background:#272b3d!important;padding:14px 20px!important;font-size:14px!important;letter-spacing:.015em}
.change-form .form-row{padding:15px 20px!important;border-bottom:1px solid #30374b!important}
.change-form .form-row:last-child{border-bottom:0!important}
.change-form .form-row label{font-size:13px!important;font-weight:750!important;color:#dfe6f2!important}
.change-form .form-row .help{font-size:12px!important;color:#aebbd1!important}
.change-form input[type="text"],.change-form input[type="number"],.change-form textarea,.change-form select{border:1px solid #535b70!important;border-radius:8px!important;background:#151a27!important}
.change-form input[type="file"],.nh-upload-drop input[type="file"]{border:1px dashed #6b608b!important;border-radius:10px!important;padding:10px!important;background:#181b2b!important;color:#e8e9f6!important;max-width:100%}
.change-form input[type="file"]::file-selector-button,.nh-upload-drop input[type="file"]::file-selector-button{background:#56439a;border:0;border-radius:6px;color:#fff;padding:9px 13px;margin-right:12px;font-weight:750;cursor:pointer}
.change-form .form-row img{max-width:min(100%,340px)!important;max-height:310px!important;width:auto;height:auto;object-fit:contain;border:1px solid #42485a;border-radius:9px;background:#f5f6f8;padding:6px}
.change-form .submit-row{padding:16px!important;display:flex;align-items:center;flex-wrap:wrap;gap:9px}
.change-form .submit-row input,.nh-upload-actions input{min-height:42px;border-radius:8px!important}
#nav-sidebar{border-right:1px solid #363a4d}
#nav-sidebar .module caption{padding:12px!important}
#changelist table td,#changelist table th{padding:11px!important}
.nh-upload-page{max-width:930px;margin:0 auto 60px;color:#f4f6ff}
.nh-upload-kicker{color:#72dff3!important;font-size:11px!important;letter-spacing:.17em;font-weight:800}
.nh-upload-intro{margin:0 0 24px}.nh-upload-intro h1{margin:5px 0 9px!important}.nh-upload-intro>p:last-child{color:#b9c4d7!important;font-size:15px}
.nh-upload-card{border:1px solid #42475c;background:#1b2030;border-radius:15px;overflow:hidden}
.nh-upload-asset{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:24px 26px;border-bottom:1px solid #373c50;background:#27283c}
.nh-upload-asset span:first-child{display:block;font-size:11px;letter-spacing:.12em;color:#b4bdd0}.nh-upload-asset strong{display:block;font-size:25px;color:#fff;margin:4px 0}.nh-upload-asset p{margin:0;color:#c5cede}
.nh-private-tag{padding:7px 11px;border-radius:999px;border:1px solid #53627d;color:#a5e8f5!important;font-size:10px!important;white-space:nowrap}
.nh-upload-drop{padding:36px 26px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px}
.nh-upload-symbol{display:grid;place-items:center;width:52px;height:52px;border:1px solid #64588d;border-radius:13px;background:#302b4b;color:#a6e8fa;font-size:30px}
.nh-upload-drop label{font-size:19px!important;font-weight:800!important;color:#fff!important}.nh-upload-drop p{color:#b5c0d1!important;font-size:13px;margin:0 0 12px}
.nh-upload-drop input{width:min(100%,520px)}
.nh-upload-actions{padding:19px 26px;background:#232739;border-top:1px solid #373c50;display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.nh-upload-actions input{background:#654bb2;color:white;border:0;padding:10px 18px;cursor:pointer}.nh-upload-actions a{color:#9be8f5;text-decoration:none}
.nh-upload-note{font-size:12px;color:#aeb9cc!important;margin:18px 0}
@media(max-width:850px){#header{padding:12px!important;gap:10px!important}.nh-admin-brand img{width:145px}.nh-admin-brand-label{display:none}#content{padding:18px!important}}
@media(max-width:620px){.nh-upload-asset{align-items:flex-start;flex-direction:column}.nh-upload-drop{padding:24px 15px}.nh-upload-actions{padding:18px}.change-form .form-row{padding:12px!important}}

/* NH V1.3 mobile inventory: scoped responsive admin layout */
@media(max-width:850px){
 body.change-list #content,body.change-form #content{min-width:0!important;max-width:100%!important;box-sizing:border-box}
 #content-main,#content-main .module,#content-main .form-row,.inline-group{max-width:100%;min-width:0;box-sizing:border-box}
 .change-list #changelist,.change-list #changelist-form,.change-list .results{max-width:100%;min-width:0}
 .change-list .results{overflow-x:auto;-webkit-overflow-scrolling:touch}
 .change-list .results table{width:max-content;min-width:100%}
 .change-form input:not([type=checkbox]):not([type=radio]),.change-form select,.change-form textarea{max-width:100%;box-sizing:border-box}
 .change-form .aligned .form-row>div{max-width:100%;min-width:0}
 .inline-group{overflow-x:auto;-webkit-overflow-scrolling:touch}
 .inline-group table{min-width:600px}
 .submit-row{display:flex;flex-wrap:wrap;gap:8px}
 img{max-width:100%;height:auto}
}


/* NH_V13_STAFF_MOBILE_FINAL */
/* Staff/admin-only responsive changes. No public-site styles or business logic. */
@media (max-width: 850px) {
  html, body { max-width: 100%; }
  #header {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 14px !important;
    height: auto !important;
    min-height: 0 !important;
  }
  #branding { flex: 1 1 auto; min-width: 0; }
  .nh-admin-brand img { width: 135px !important; max-width: 100%; }
  #user-tools {
    flex: 1 1 100%; width: 100%; min-width: 0;
    white-space: normal !important;
    overflow-wrap: anywhere;
    font-size: 11px !important;
    line-height: 1.8;
  }
  .nh-staff-nav {
    display: flex !important;
    flex: 1 1 100%;
    width: 100% !important;
    min-width: 0;
    flex-wrap: wrap !important;
    gap: 6px !important;
    justify-content: flex-start !important;
  }
  .nh-staff-nav a, .nh-staff-nav button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 1 1 130px !important;
    min-height: 44px;
    box-sizing: border-box;
    white-space: normal;
    text-align: center;
  }
  .nh-staff-nav form { display: contents !important; }
  #container, #content, #content-main, #changelist, #changelist-form {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  #content { padding: 14px !important; }
  #content h1 { font-size: clamp(20px, 5vw, 27px) !important; overflow-wrap: anywhere; }
  #changelist .changelist-form-container, #changelist .results,
  .inline-group .tabular, .change-list #content-main .results {
    max-width: 100%;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  #changelist .results table, .inline-group .tabular table {
    width: max-content;
    min-width: 100%;
  }
  #changelist .results th, #changelist .results td {
    white-space: normal;
    min-width: 85px;
    overflow-wrap: anywhere;
  }
  #changelist .results th a { overflow-wrap: anywhere; }
  #changelist-search, #changelist .actions { max-width: 100%; box-sizing: border-box; }
  #changelist-search input[type="text"] { min-width: 0; max-width: 100%; }
  .change-form .form-row, .change-form fieldset.module, .change-form .inline-group {
    min-width: 0; max-width: 100%; box-sizing: border-box;
  }
  .change-form input:not([type="checkbox"]):not([type="radio"]),
  .change-form select, .change-form textarea {
    max-width: 100%; box-sizing: border-box;
  }
  .change-form .form-row img { max-width: 100% !important; height: auto !important; }
  .change-form .submit-row { display: flex; flex-wrap: wrap; gap: 8px; }
}
@media (max-width: 430px) {
  #header { padding: 10px !important; }
  #content { padding: 10px !important; }
  .nh-staff-nav a, .nh-staff-nav button { flex-basis: 125px !important; }
  #changelist .results::before {
    content: 'Swipe sideways to see more columns →';
    display: block;
    color: #9ce8f5;
    font-size: 12px;
    padding: 8px 6px;
  }
}

/* NOW HIRE V1.3 — desktop staff navigation correction */
@media (min-width: 901px) {
    #header .nh-staff-mobile-bar,
    #header .nh-staff-mobile-menu,
    #header .nh-staff-mobile-dropdown {
        display: none !important;
    }

    #header .nh-staff-desktop-nav,
    #header .nh-staff-nav {
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* NOW HIRE — consistent staff dropdown across all screen sizes */
@media (min-width: 901px) {
    #header .nh-staff-mobile-bar {
        display: flex !important;
        position: relative !important;
        width: auto !important;
        max-width: none !important;
        height: auto !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    #header .nh-staff-mobile-bar .nh-mobile-logo {
        display: none !important;
    }

    #header .nh-staff-mobile-dropdown {
        display: block !important;
        position: relative !important;
    }

    #header .nh-staff-mobile-dropdown > summary {
        display: flex !important;
        align-items: center !important;
        min-height: 44px !important;
        padding: 10px 16px !important;
        background: #654bb2 !important;
        color: #fff !important;
        border: 1px solid #a98aff !important;
        border-radius: 10px !important;
        font-weight: 800 !important;
        cursor: pointer !important;
        list-style: none !important;
    }

    #header .nh-staff-mobile-dropdown > nav {
        position: absolute !important;
        top: calc(100% + 10px) !important;
        right: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 5px !important;
        width: 290px !important;
        padding: 12px !important;
        background: #1c1d2c !important;
        border: 1px solid #6d6095 !important;
        border-radius: 12px !important;
        box-shadow: 0 15px 35px #000a !important;
        z-index: 10000 !important;
    }

    #header .nh-staff-mobile-dropdown:not([open]) > nav {
        display: none !important;
    }

    #header .nh-staff-mobile-dropdown nav a,
    #header .nh-staff-mobile-dropdown nav button {
        display: block !important;
        box-sizing: border-box !important;
        width: 100% !important;
        padding: 12px !important;
        background: #292a40 !important;
        color: white !important;
        border: 1px solid #45435c !important;
        border-radius: 8px !important;
        text-decoration: none !important;
        font-weight: 700 !important;
        text-align: left !important;
    }

    #header .nh-staff-mobile-dropdown nav form {
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* NOW HIRE — hide legacy staff menu, retain purple navigation */
#header .nh-staff-desktop-nav > details > summary {
    display: none !important;
}

/* NH_CATALOGUE_MOBILE_THUMBNAILS_V1: catalogue list only, not asset inventory */
@media (max-width: 768px) {
  body.app-catalogue.model-catalogueproduct.change-list #result_list td img,
  body.app-catalogue.model-catalogueproduct.change-list #result_list th img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 110px !important;
    max-height: 110px !important;
    object-fit: contain !important;
  }
  body.app-catalogue.model-catalogueproduct.change-list #result_list td,
  body.app-catalogue.model-catalogueproduct.change-list #result_list th {
    padding: 7px 9px !important;
    vertical-align: middle !important;
  }
  body.app-catalogue.model-catalogueproduct.change-list #result_list td img {
    box-sizing: border-box !important;
  }
}
