/* ============================================================
   WP Inventory Manager — Admin Styles
   Restyled 2026-07-21 to the WP Inventory Design System
   (navy palette, April 2026 — see Design/design_system/)

   RULES APPLIED:
   - No selectors renamed or removed. No specificity changes.
   - Property VALUES updated only; a few properties ADDED
     (border-radius, box-shadow) where marked with "DS+".
   - No web-font imports in wp-admin (system font retained).

   TOKEN MAP (hex used below → token):
   #2D5FAA  primary-500 (brand accent)   #244E8E primary-600
   #1C3D72  primary-700                   #EEF3FB primary-50
   #A8C0E9  primary-200                   #1E2D5A navy-700 (header)
   #16213F  navy-800 (tooltips)
   #F5F6F7  neutral-100  #EAECEF neutral-200  #D8DBE0 neutral-300
   #C8CDD8  neutral-400  #9DA4AE neutral-500  #7A8290 neutral-600
   #555C65  neutral-700  #3A4049 neutral-800  #2C3136 neutral-900
   #1A9E6B  success-500  #12714C success-700  #ECFDF5 success-50
   #D97706  warning-500  #FFFBEB warning-50
   #DC2626  danger-500   #9B1C1C danger-700   #FEF2F2 danger-50
   ============================================================ */

#wpcontent {
    background: #fff;
}

.inventorywrap .wpinventory-add-container {
    margin-top: 15px;
}

.inventorywrap * {
    vertical-align: top;
}

.inventorywrap #inventory_search span,
.inventorywrap #inventory_search input[type="text"],
.inventorywrap #inventory_search select,
.inventorywrap #inventory_search label {
    font-size: 13px;
}

.inventorywrap #inventory_search label {
    margin-right: 4px;
}

.inventorywrap #inventory_search span + span {
    margin-left: 15px;
}

.inventorywrap #inventory_search .search {
    font-size: 12px;
    color: inherit;
    background-color: transparent;
}

.inventorywrap th {
    padding: 10px 10px 10px 0;
}

.inventorywrap td {
    padding: 10px;
}

.inventorywrap td h3,
.inventorywrap th h3 {
    margin: 0;
    padding: 0;
    text-decoration: none; /* was underline */
}

.inventorywrap textarea {
    width: 500px;
    height: 100px;
}

.inventorywrap .grid {
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px; /* was 16px — text-base token */
}

.inventorywrap a.delete,
.inventorywrap a[class*="delete-"] {
    color: #9B1C1C; /* was #900 */
}

.inventorywrap .mediasortable {
    border: 1px solid #D8DBE0; /* was #ccc */
    border-radius: 5px;
    padding: 5px;
    min-height: 20px;
    overflow: hidden;
    margin-bottom: 10px;
}

.inventorywrap .media-container:empty {
    display: none;
}

.inventorywrap .imagewrapper,
.inventorywrap .imageplaceholder {
    border: 1px solid #D8DBE0; /* was #ccc */
    padding: 11px 11px 10px 10px;
    display: inline-block;
    zoom: 1;
    *display: inline;
    text-align: center;
    margin: 0 5px 5px 0;
    vertical-align: top;
    cursor: crosshair;
    border-radius: 5px; /* DS+ */
    background: #fff;   /* DS+ */
}

.inventorywrap .imagecontainer {
    height: 100px;
    position: relative;
    margin-bottom: 10px;
}

.inventorywrap div.mediacontainer {
    line-height: 15px;
    font-size: 14px;
    border: 1px solid #D8DBE0; /* was #ccc */
    margin: 12px 20px 0 0;
    padding: 5px 10px;
    position: relative;
    border-radius: 5px; /* DS+ */
}

.inventorywrap div.mediacontainer p {
    margin: 5px 0;
}

.inventorywrap div.mediacontainer p.media_url {
    font-size: 12px;
    color: #7A8290; /* was #888 */
    line-height: 15px;
    margin-top: 0;
    vertical-align: baseline;
}

.inventorywrap div.mediacontainer p.media_url label {
    margin-right: 5px;
    vertical-align: baseline;
}

.inventorywrap .imagecontainer img {
    height: 100px;
    width: auto;
}

.inventorywrap .ui-sortable-placeholder {
    visibility: visible !important;
    border: 2px dashed #C8CDD8; /* was #ccc */
    background: #F5F6F7;        /* was #eee */
    padding: 10px 10px 9px 9px;
}

.inventorywrap .sortable-handle {
    color: #7A8290; /* was #666 */
}

.inventorywrap .ui-sortable-helper {
    opacity: .7;
}

.inventorywrap .media-container a.delete {
    display: block;
    position: absolute;
    top: -10px;
    right: -10px;
    background: #DC2626; /* was red */
    color: white;
    width: 20px;
    height: 20px;
    font-size: 13px;
    line-height: 20px;
    text-align: center;
    text-decoration: none;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    -ms-filter: "alpha(opacity=60)"; /* IE8 */
    filter: alpha(opacity=60); /* Old IE */
    -khtml-opacity: 0.60; /* Old Safari */
    -moz-opacity: 0.60; /* Old Firefox, Netscape */
    opacity: 0.60; /* Standard */
}

.inventorywrap .media-container a.delete:hover {
    -ms-filter: "alpha(opacity=100)"; /* IE8 */
    filter: alpha(opacity=100); /* Old IE */
    -khtml-opacity: 1; /* Old Safari */
    -moz-opacity: 1; /* Old Firefox, Netscape */
    opacity: 1; /* Standard */
}

.inventorywrap .media-container .media-deleted {
    border: 1px dashed #DC2626; /* was red */
    background: #FEF2F2;        /* was #fcc */
}

.inventorywrap .sortnotice {
    background: #F5F6F7; /* was #ccc */
    font-weight: bold;
    color: #555C65;      /* was #444 */
    padding: 5px 10px;
    margin-top: 0;
}

.inventorywrap {
    /* background: #f1f1f1; */
    margin: 10px 20px 0 2px;
    /*font-size: 20px;*/
    line-height: normal;
}

.inventorywrap li {
    margin: 0 0 15px;
}

.hide_header h2 {
    display: none !important;
}

.wpim_header h2 {
    display: block;
    background: #1E2D5A url(../images/admin-h-icon.png) 30px center no-repeat; /* was #1e9ee5 — brand navy */
    color: white;
    margin: -10px -20px 10px -22px;
    padding: 10px 20px 10px 148px;
    height: 100px;
    line-height: 100px;
}

.wpim_header h2 span.support-and-version {
    float: right;
    margin-right: 30px;
    font-size: 13px;
    position: relative;
    width: 200px;
    display: block;
    line-height: 20px;
    text-align: right;
    height: 100px;
    min-width: 200px;
}

.wpim_header h2 span.support-and-version a {
    font-size: 35px;
    color: white;
    margin-left: 20px;
}

.wpim_header h2 span.support-and-version span.support {
    display: block;
    margin-top: 20px;
}

.wpim_header h2 span.support-and-version span.version {
    color: white;
    display: block;
    margin-top: 20px;
    position: absolute;
    bottom: 0;
    right: 0;
}

.inventorywrap th {
    padding: 10px 10px 10px 0;
    text-align: left;
}

.inventorywrap td {
    padding: 10px;
}

.inventorywrap td h3,
.inventorywrap th h3 {
    margin: 0;
    padding: 0;
    text-decoration: none; /* was underline */
}

.inventorywrap textarea {
    width: 500px;
    height: 100px;
}

.theme_row {
    display: block;
    width: 100%;
}

.theme_row th,
.theme_row td {
    display: block;
    width: 100%;
}

.inventorywrap .theme_screenshot {
    display: block;
    height: auto;
    vertical-align: top;
    width: 100%;
}

.inventorywrap .grid {
    border-collapse: collapse;
    margin: 20px 0;
}

.inventorywrap tr.title {
    font-size: 14px; /* was 15px */
}

.inventorywrap .grid td,
.inventorywrap .grid th {
    padding: 4px 8px;
}

.inventorywrap .grid td {
    border: 1px solid #EAECEF; /* was #ddd */
}

.inventorywrap th.name,
.inventorywrap td.name {
    width: 250px;
}

.inventorywrap th.number,
.inventorywrap td.number {
    text-align: right;
}

.inventorywrap tr.not_used th,
.inventorywrap tr.not_used th label,
.inventorywrap tr.not_used td span,
.inventorywrap tr.not_used input[type="text"] {
    color: #9DA4AE; /* was #999 */
    text-decoration: line-through;
}

.inventorywrap tr.not_used input[type="checkbox"] + label {
    color: #3A4049; /* was #444 */
    text-decoration: none;
}

.inventorywrap .grid td.action a {
    position: relative;
}

.inventorywrap .grid td.action a .dashicons,
.inventorywrap .grid td.action a .dashicons:before {
    margin: 0 0;
    font-size: 19px;
    text-decoration: none;
}

.inventorywrap .grid td.action a span.tip {
    display: none;
    position: absolute;
    background: #16213F; /* was black */
    color: white;
    left: -15px;
    top: -25px;
    height: 15px;
    line-height: 15px;
    padding: 2px 4px;
    font-size: 11px;
    border-radius: 3px; /* was 2px */
    white-space: nowrap;
}

.inventorywrap .grid td.action a span.tip:after {
    content: '';
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #16213F; /* was black */
    position: absolute;
    top: 19px;
    left: 30%;
}

.inventorywrap .grid td.action a:hover span.tip {
    display: inline-block;
}

.inventorywrap .grid tr.title th {
    background: #EAECEF; /* was #ccc */
}

.inventorywrap .grid tr.title th strong {
    margin-left: 5px;
}

.inventorywrap .grid td,
.inventorywrap .grid th {
    padding: 10px;
}

.inventorywrap .grid td {
    border: 1px solid #EAECEF; /* was #ddd */
}

.inventorywrap .gridsmall td,
.inventorywrap .gridsmall th,
.inventorywrap .gridsmall input,
.inventorywrap .gridsmall select {
    font-size: .9em;
    line-height: 1.1em;
    padding: 3px 4px;
}

.inventorywrap th.name,
.inventorywrap td.name {
    width: 250px;
}

.inventorywrap th.number,
.inventorywrap td.number {
    text-align: right;
}

.inventorywrap tr.not_used th,
.inventorywrap tr.not_used th label,
.inventorywrap tr.not_used td span,
.inventorywrap tr.not_used input[type="text"] {
    color: #9DA4AE; /* was #999 */
    text-decoration: line-through;
}

.inventorywrap tr.not_used input[type="checkbox"] + label {
    color: #3A4049; /* was #444 */
    text-decoration: none;
}

.inventorywrap .grid td.action a {
    margin: 0 6px;
}

.inventorywrap .grid tr.title th {
    background: #EAECEF; /* was #ccc */
}

.inventorywrap .grid tr.title th strong {
    margin-left: 5px;
}

.inventorywrap a.delete {
    color: #9B1C1C; /* was #900 */
}

.inventorywrap .mediasortable {
    border: 1px solid #D8DBE0; /* was #ccc */
    border-radius: 5px;
    padding: 5px;
    min-height: 20px;
    overflow: hidden;
}

.inventorywrap .imagewrapper,
.inventorywrap .imageplaceholder {
    border: 1px solid #D8DBE0; /* was #ccc */
    padding: 11px 11px 10px 10px;
    display: inline-block;
    zoom: 1;
    *display: inline;
    text-align: center;
    margin: 0 5px 5px 0;
    vertical-align: top;
    cursor: crosshair;
}

.inventorywrap .imagecontainer {
    height: 100px;
    position: relative;
    margin-bottom: 10px;
}

.inventorywrap div.mediacontainer {
    line-height: 15px;
    font-size: 14px;
    border: 1px solid #D8DBE0; /* was #ccc */
    margin: 12px 20px 0 0;
    padding: 5px 10px;
    position: relative;
}

.inventorywrap div.mediacontainer p {
    margin: 5px 0;
}

.inventorywrap div.mediacontainer p.media_url {
    font-size: 12px;
    color: #7A8290; /* was #888 */
    line-height: 15px;
    margin-top: 0;
    vertical-align: baseline;
}

.inventorywrap div.mediacontainer p.media_url label {
    margin-right: 5px;
    vertical-align: baseline;
}

.inventorywrap .imagecontainer img {
    height: 100px;
    width: auto;
}

.inventorywrap div.ui-sortable-placeholder {
    visibility: visible !important;
    border: 2px dashed #C8CDD8; /* was #ccc */
    background: #F5F6F7;        /* was #eee */
    padding: 10px 10px 9px 9px;
}

.inventorywrap .ui-sortable-helper {
    opacity: .7;
}

.inventorywrap .media-container a.delete {
    display: block;
    position: absolute;
    top: -10px;
    right: -10px;
    background: #DC2626; /* was red */
    color: white;
    width: 20px;
    height: 20px;
    font-size: 13px;
    line-height: 20px;
    text-align: center;
    text-decoration: none;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    -ms-filter: "alpha(opacity=60)"; /* IE8 */
    filter: alpha(opacity=60); /* Old IE */
    -khtml-opacity: 0.60; /* Old Safari */
    -moz-opacity: 0.60; /* Old Firefox, Netscape */
    opacity: 0.60; /* Standard */
}

.inventorywrap .media-container a.delete:hover {
    -ms-filter: "alpha(opacity=100)"; /* IE8 */
    filter: alpha(opacity=100); /* Old IE */
    -khtml-opacity: 1; /* Old Safari */
    -moz-opacity: 1; /* Old Firefox, Netscape */
    opacity: 1; /* Standard */
}

.inventorywrap .media-container .media-deleted {
    border: 1px dashed #DC2626; /* was red */
    background: #FEF2F2;        /* was #fcc */
}

.inventorywrap .sortnotice {
    background: #F5F6F7; /* was #ccc */
    font-weight: bold;
    color: #555C65;      /* was #444 */
    padding: 5px 10px;
    margin-top: 0;
}

.inventorywrap .inventory-config tr th {
    width: 270px;
}

.inventorywrap div.lists {
    overflow: auto;
    padding: 0;
    transition: padding-left .5ms;
    position: relative;
    max-width: 1200px;
}

.inventorywrap div.display_setting_fields {
    background: transparent url(../images/drag_drop_arrow.png) 20% 0 no-repeat;
    padding-top: 55px;
}

.inventorywrap .wpim_available_display_fields {
    width: 30%;
    display: inline-block;
}

.inventorywrap .list_available li .remove {
    display: none;
}

.inventorywrap .wpim_field_views {
    display: inline-block;
    width: calc(69% - 30px);
    padding: 0 0 0 30px;
}

.inventorywrap .list-wide {
    width: 38%;
    max-width: 38%;
}

.inventorywrap .list_selected {
    border: 1px dashed #2D5FAA; /* was #1e9ee5 */
}

.inventorywrap .wpim_field_views .list ul {
     min-height: 0;
     max-height: 0;
     overflow: hidden;
     transition: max-height .5s ease;
 }

.inventorywrap .wpim_field_views .list.expanded ul {
    min-height: 200px;
    max-height: 2000px;
    padding-bottom: 40px;
}

.inventorywrap .wpim_field_views .add_all {
    display: none;
    padding: 10px 14px;
    font-size: 15px;
    font-style: italic;
    text-align: center;
    text-transform: uppercase;
    border-top: 1px dashed #A8C0E9; /* was #1e9ee5 */
}

.inventorywrap .wpim_field_views .expanded .add_all {
    display: block;
}

.inventorywrap .list h3 {
    background: #244E8E; /* was #1e9ee5 — primary-600 */
    color: #fff;
    margin: 0;
    padding: 10px;
    font-size: 15px; /* was 16px */
    cursor: pointer;
    position: relative;
    border-radius: 5px 5px 0 0; /* DS+ */
}

.inventorywrap .list h3::after {
    position: absolute;
    top: calc(50% - 10px);
    right: 15px;
    font-family: "dashicons";
    content: "\f347";
    transform: rotate(0);
    transition: transform .5s ease;
}

.inventorywrap .list.expanded h3::after {
    transform: rotate(180deg);
}

.inventorywrap .sortable {
    padding: 0;
    min-height: 200px;
    margin: 0;
}

.inventorywrap .sortable li {
    border: 1px solid #A8C0E9; /* was #1e9ee5 — primary-200 */
    display: block;
    width: auto;
    padding: 5px;
    margin: 1px 0 3px;
    border-radius: 5px;
    cursor: move;
    font-size: 12px;
    min-height: 17px;
    position: relative;
    background: #fff; /* DS+ */
}

.inventorywrap .sortable li.ui-state-highlight {
    padding: 4px;
    border: 2px dashed #9DA4AE; /* was #888 */
    color: #9DA4AE;             /* was #888 */
    background: white;
}

.inventorywrap .wpim_field_views .list .remove {
    color: #DC2626; /* was red */
    cursor: pointer;
    position: absolute;
    right: 30px;
    top: calc(50% - 10px);
    opacity: .3;
}

.inventorywrap .wpim_field_views .list li:hover .remove {
    opacity: 1;
}

.inventorywrap .sortable .more-tag {
    border: 1px solid #2D5FAA;      /* was #1e9ee5 */
    font-size: 20px;
    padding: 10px 20px !important;
    background: #2D5FAA !important; /* was #1e9ee5 */
    color: #fff !important;
}

.inventorywrap .sortable .more-tag:before,
.inventorywrap .sortable .more-tag:after {
    border-bottom: 1px solid #fff !important;
}

div.wpinventory_pagination {
    text-align: right;
}

div.wpinventory_pagination span {
    float: left;
    color: #7A8290; /* was #888 */
}

div.wpinventory_pagination a {
    display: inline-block;
    zoom: 1;
    *display: inline;
    color: #2C3136;                /* was white */
    background: #fff;              /* was #aaa */
    width: auto;
    padding: 0 6px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    margin-right: 2px;
    text-decoration: none;
    border: 1px solid #D8DBE0;     /* was transparent */
    border-radius: 3px;            /* DS+ */
}

div.wpinventory_pagination a.page_prev {
    margin-right: 6px;
}

div.wpinventory_pagination a.page_next {
    margin-left: 4px;
}

div.wpinventory_pagination a.page_current {
    font-weight: bold;
    background: #2D5FAA; /* was #444 */
    color: #fff;         /* DS+ */
    border-color: #2D5FAA; /* DS+ */
}

div.wpinventory_pagination a:hover {
    border: 1px solid #2D5FAA; /* was #444 */
    color: #1C3D72;            /* was #444 */
    background: #EEF3FB;       /* was #ccc */
}

.inventorywrap div.add_on {
    display: inline-block;
    zoom: 1;
    *display: inline;
    width: 300px;
    height: 460px;
    border: 1px solid #D8DBE0; /* was #aaa */
    padding: 0 10px 10px 10px;
    background: white;
    margin: 0 10px 10px 0;
    border-radius: 8px;                                             /* DS+ */
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04); /* DS+ */
}

.inventorywrap div.add_on_installed {
    opacity: .7;
}

.inventorywrap div.add_on h3 {
    font-size: 16px;                  /* was 18px */
    border-bottom: 1px solid #EAECEF; /* was #aaa */
    margin: 0 -10px 10px;
    padding: 10px 20px;
}

.inventorywrap .inventory-config h3 {
    text-decoration: none; /* was underline */
}

.inventorywrap .inventory-config th h4 {
    display: inline-block;
    font-size: 1.10em;
    text-decoration: none; /* was underline */
    padding-bottom: 0;
    margin-bottom: 0;
}

.inventorywrap div.add_on .image {
    overflow: hidden;
    height: 250px;
    text-align: center;
    position: relative;
}

.inventorywrap div.add_on .image span {
    position: absolute;
    top: 50%;
    left: 35px;
    right: 35px;
    font-size: 25px;
    background: rgba(26, 158, 107, .85); /* was rgba(0,90,0,.7) */
    color: white;
    display: block;
    padding: 10px 0;
    font-weight: bold;
    margin-top: -19px;
    border-radius: 5px; /* DS+ */
}

.inventorywrap div.add_on img {
    display: inline-block;
    zoom: 1;
    *display: inline;
    vertical-align: middle;
    margin: 0 auto;
    width: 250px;
    height: auto;
}

.inventorywrap div.add_on div.description {
    height: 100px;
    overflow: hidden;
}

.inventorywrap div.add_on p.learn_more {
    text-align: center;
}

.inventorywrap div.add_on p.learn_more a {
    display: inline-block;
    zoom: 1;
    *display: inline;
    margin: 0 auto;
    padding: 8px 16px;
    background: #2D5FAA;        /* was #090 */
    border: 1px solid #2D5FAA;  /* was #090 */
    color: white;
    font-weight: bold;
    text-decoration: none;
    font-size: 15px;            /* was 16px */
    border-radius: 5px;         /* DS+ */
    transition: background 150ms ease-out; /* DS+ */
}

.inventorywrap div.add_on p.learn_more a:hover {
    background: #244E8E; /* was #0a0 */
}

.inventorywrap form.donate {
    float: right;
    margin-bottom: -40px;
}

tr.license_keys td:first-child {
    vertical-align: top;
    font-weight: 700;
    font-size: 16px;
    padding: 0;
}

.form-table td p.license {
    display: inline-block;
    zoom: 1;
    *display: inline;
    color: white;
    font-size: 12px;
    border-radius: 3px;
    padding: 3px 5px;
}

.form-table td p.license_valid {
    background: #1A9E6B; /* was #080 */
}

.form-table td p.license_invalid {
    background: #DC2626; /* was #800 */
}

form.inventory-config {
    position: relative;
}

.wpim_tabs {
    margin-top: 10px;
    padding: 0 15px;
    border-bottom: 1px solid #D8DBE0; /* was #aaa */
}

form.inventory-config .wpim_tabs {
    padding: 0;
    border-bottom: 1px solid #D8DBE0; /* was #aaa */
    width: 25%;
    display: inline-block;
}

.wpim_main_content {
    width: calc(74% - 25px);
    display: inline-block;
    padding: 0 0 0 25px;
}

.wpim_tabs a {
    outline: 0;
    display: inline-block;
    vertical-align: bottom;
    border: 1px solid #D8DBE0; /* was #aaa */
    box-shadow: none;
    padding: 5px 10px;
    background: #F5F6F7;       /* was #ccc */
    text-decoration: none;
    margin-right: -1px;
    border-bottom: 1px solid #D8DBE0; /* was #ccc */
    color: #555C65;            /* DS+ */
    border-radius: 5px 5px 0 0; /* DS+ */
}

form.inventory-config .wpim_tabs a {
    padding: 10px;
    background: #fff;
    color: #2C3136; /* was #000 */
    display: block;
    transition: font-size .2s ease;
    border: none;
}

.wpim_tabs a.active {
    background: #fff;               /* was transparent */
    border-bottom: 1px solid #fff;  /* was #eee */
    font-weight: bold;
    margin-bottom: -1px;
    padding: 7px 15px;
    color: #1C3D72;                 /* DS+ */
}

form.inventory-config .wpim_tabs a.active,
form.inventory-config .wpim_tabs a:hover {
    font-size: 1rem;   /* was 1.2rem — no jumpy grow effect */
    border: none;
    font-weight: 500;  /* was 400 */
}

form.inventory-config .wpim_tabs a.active {
    background: #2D5FAA; /* was #349ce4 */
    color: #fff;
    border-radius: 5px;  /* DS+ */
}

.wpim_subtabs {
    display: none;
}

.wpim_subtabs.active {
    display: block;
}

.wpim_subtabs a {
    display: inline-block;
    position: relative;
    margin: 0;
    padding: 5px 10px 5px 0;
    font-size: 14px; /* was 16px */
}

.wpim_subtabs a.active {
    font-weight: bold;
}

input[type="checkbox"].toggle-switch {
    display: none;
}

input[type="checkbox"].toggle-switch + .toggle-container {
    display: none;
    overflow: hidden;
    -webkit-transform-origin: top left;
    -moz-transform-origin: top left;
    -ms-transform-origin: top left;
    -o-transform-origin: top left;
    transform-origin: top left;
}

input[type="checkbox"].toggle-switch:checked + .toggle-container {
    display: block;
    -webkit-animation: slideDown .5s;
    -moz-animation: slideDown .5s;
    -o-animation: slideDown .5s;
    animation: slideDown .5s;
}

h1 .wpim-toggle-section,
h2 .wpim-toggle-section,
h3 .wpim-toggle-section,
h4 .wpim-toggle-section,
h5 .wpim-toggle-section {
    font-size: 12px;
    margin-left: 10px;
}

.wpim_notice {
    border: 1px solid #D8DBE0;      /* was black */
    border-left: 6px solid #2D5FAA; /* was black */
    background: white;
    margin: 5px 0;
    padding: 10px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08); /* was 1px 1px 3px #aaa */
    border-radius: 3px; /* DS+ */
}

.wpim_error,
.wpim_danger,
.inventorywrap .grid .wpim_error,
.inventorywrap .grid .wpim_danger {
    border-left: 6px solid #DC2626; /* was red */
}

.wpim_warning,
.inventorywrap .grid .wpim_warning {
    border-left: 6px solid #D97706; /* was #ffa500 */
}

.wpim_success,
.inventorywrap .grid .wpim_success {
    border-left: 6px solid #1A9E6B; /* was green */
}

.wpim_status_notice {
    position: relative;
    padding-left: 50px;
}

.wpim_status_notice:before {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 26px;
    font-family: dashicons;
}

.wpim_status_notice.wpim_error:before,
.wpim_status_notice.wpim_danger:before {
    color: #DC2626; /* was #aa0000 */
    content: "\f534";
}

.wpim_status_notice.wpim_warning:before {
    color: #D97706; /* was #ffa500 */
    content: "\f227";
}

.wpim_status_notice.wpim_success:before {
    color: #1A9E6B; /* was #00aa00 */
    content: "\f147";
}

.wpim-widefat {
    width: 90%;
}

.button-small + input[type="text"] {
    margin-top: -1px;
}

.wpim-status-panel {
    box-sizing: border-box;
    display: inline-block;
    vertical-align: top;
    padding: 15px;
    border: 1px solid #D8DBE0; /* was 2px solid #aaa */
    border-radius: 8px;        /* was 4px */
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04); /* was 0 0 4px #888 */
    background: white;
    margin: 0 10px 20px;
}

.wpim-status-panel h3 {
    margin: -7px -15px 8px;
    padding: 0 15px 8px;
    border-bottom: 1px solid #EAECEF; /* was #aaa */
    text-align: center;
}

.wpim-status-panel .status-primary {
    display: inline-block;
    vertical-align: top;
    text-align: center;
    padding: 0;
    margin: 0;
}

.wpim-status-panel .status-primary p {
    display: inline-block;
    margin: 0;
    padding: 5px 15px;
    width: auto;
    min-width: 60px;
    height: 60px;
    line-height: 57px;
    border-radius: 60px;
    color: white;
    font-size: 50px;
    font-weight: bold;
}

.wpim-status-panel .status-primary span {
    display: block;
    font-size: 11px;
    max-width: 90%;
    margin: 3px auto 0;
    line-height: 13px;
}

.wpim-status-panel .status-related {
    display: inline-block;
    margin-left: 3px;
}

.wpim-status-panel .status-related p {
    font-size: 12px;
    color: #555C65; /* was #444 */
    margin: 0;
    padding: 0;
    line-height: 17px;
}

.wpim-status-panel .status-related p span {
    font-weight: bold;
}

.wpim-status-panel .status-related p:nth-child(1) {
    margin-left: -2px;
}

.wpim-status-panel .status-related p:nth-child(2) {
    margin-left: 5px;
}

.wpim-status-panel .status-related p:nth-child(3) {
    margin-left: 7px;
}

.wpim-status-panel .status-related p:nth-child(4) {
    margin-left: 0;
}

.wpim-status-success {
    border-color: #1A9E6B; /* was green */
}

.wpim-status-success .status-primary p {
    background: #1A9E6B; /* was green */
}

.wpim-status-warning {
    border-color: #D97706; /* was #ffa500 */
}

.wpim-status-warning .status-primary p {
    background: #D97706; /* was #ffa500 */
}

.wpim-status-danger {
    border-color: #DC2626; /* was #aa0000 */
}

.wpim-status-danger .status-primary p {
    background: #DC2626; /* was #aa0000 */
}

tr.warning td {
    background: #FEF2F2;                 /* was #fdd */
    border: 1px solid #F3C0C0 !important; /* was #fba0a0 */
}

.wpim-tooltip {
    display: inline-block;
    position: relative;
    padding-right: 25px;
    line-height: normal;
    cursor: pointer;
}

.wpim-tooltip:after {
    font-family: Dashicons;
    font-size: 19px;
    content: "\f223";
    position: absolute;
    top: 0;
    right: 0;
}

.wpim-tooltip span {
    display: none;
    position: absolute;
    top: 25px;
    left: 0;
    background: #16213F; /* was black */
    border-radius: 5px;
    color: white;
    font-size: 13px;
    line-height: 15px;
    padding: 5px;
    max-width: 250px;
    width: 30vw;
    z-index: 255555;
}

.wpim-tooltip span:before {
    content: '';
    position: absolute;
    top: -5px;
    left: 20%;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #16213F; /* was black */
    z-index: 255555;
}

.wpim-tooltip:hover span,
.wpim-tooltip:hover span:before {
    display: inline-block;
}

#inventory_item_form .sub-entry {
    border: 1px solid #D8DBE0; /* was #aaa */
    padding: 0 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08); /* was 0 0 5px #aaa */
    background: white;
    border-radius: 5px; /* DS+ */
}

.inventorywrap .dashicons-spin {
    display: inline-block;
    -webkit-animation: spinner-loader 2s infinite linear; /* Safari 4+ */
    -moz-animation: spinner-loader 2s infinite linear; /* Fx 5+ */
    -o-animation: spinner-loader 2s infinite linear; /* Opera 12+ */
    animation: spinner-loader 2s infinite linear;
}

/*  Columns  */

.wpim_column_row {
    clear: both;
    padding: 30px 0;
}

.wpim_column {
    float: left;
}

.wpim_column div.list {
    width: 100%;
    max-width: none;
}

.wpim_last_column {
    margin: 0 0 30px !important;
}

.wpim_one_quarter {
    width: 20.5%;
    margin: 0 6.5% 30px 0;
}

.wpim_one_third {
    width: 30%;
    margin: 0 5% 30px 0;
}

.wpim_one_half {
    width: 42%;
    margin: 0 8% 30px 0;
}

.wpim_three_quarter {
    width: 70%;
    margin: 0 10% 30px 0;
}

.wpim_setting_omitted {
    font-style: italic;
    color: #7A8290; /* was #666 */
}

/*  End columns  */

@-webkit-keyframes slideDown {
    0% {
        display: none;
        opacity: 0;
    }
    1% {
        display: block;
        opacity: 0;
        -webkit-transform: scaleY(0);
    }
    100% {
        opacity: 1;
        -webkit-transform: scaleY(1);
    }
}

@-moz-keyframes slideDown {
    0% {
        display: none;
        opacity: 0;
    }
    1% {
        display: block;
        opacity: 0;
        -moz-transform: scaleY(0);
    }
    100% {
        opacity: 1;
        -moz-transform: scaleY(1);
    }
}

@-o-keyframes slideDown {
    0% {
        display: none;
        opacity: 0;
    }
    1% {
        display: block;
        opacity: 0;
        -o-transform: scaleY(0);
    }
    100% {
        opacity: 1;
        -o-transform: scaleY(1);
    }
}

@keyframes slideDown {
    0% {
        display: none;
        opacity: 0;
        max-height: 0;
    }
    1% {
        display: block;
        opacity: 0;
        transform: scaleY(0);
        max-height: 1000px;
    }
    100% {
        opacity: 1;
        transform: scaleY(1);
    }
}

@-moz-keyframes spinner-loader {
    0% {
        -moz-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -moz-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-webkit-keyframes spinner-loader {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes spinner-loader {
    0% {
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

img.not_the_page {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/*  Media Queries  */

@media only screen and (max-width: 700px) {
    form.inventory-config {
        padding-left: 0;
    }

    form.inventory-config .wpim_tabs {
        display: block;
        max-width: none;
        position: relative;
        top: unset;
        left: unset;
    }
}

@media only screen and (max-width: 890px) {
    /*  This is where EVERYTHING breaks down to one column  */
    .wpim_one_quarter,
    .wpim_three_quarter {
        width: 46.7%;
    }
}

@media only screen and (max-width: 550px) {
    /*  This is where EVERYTHING breaks down to one column  */
    .wpim_one_quarter,
    .wimone_third,
    .wpim_one_half,
    .wpim_one_quarter + .wpim_three_quarter {
        clear: both !important;
        width: 100% !important;
        margin: 0 0 30px !important;
        padding: 0 !important;
        float: none !important;
        display: block !important;
    }
}

/* First-run panel shown when the inventory has no items yet */
.inventorywrap .wpim-empty-state {
    max-width: 720px;
    margin: 20px auto 0;
    padding: 40px 20px;
    background: #fff;
    border: 1px solid #D8DBE0;
    border-radius: 4px;
    text-align: center;
}

.inventorywrap .wpim-empty-state h2 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
}

.inventorywrap .wpim-empty-state .wpim-empty-state-lead {
    margin: 0 0 20px;
    color: #555C65;
    font-size: 14px;
}

.inventorywrap .wpim-empty-state-teaser {
    max-width: 420px;
    margin: 32px auto 0;
    padding-top: 20px;
    border-top: 1px solid #EAECEF;
}

.inventorywrap .wpim-empty-state-teaser .wpim-teaser-lead {
    margin: 0 0 4px;
    color: #555C65;
}

.inventorywrap .wpim-empty-state-teaser p {
    margin: 0 0 4px;
}

.inventorywrap .wpim-empty-state-teaser .wpim-teaser-dismiss {
    margin-top: 12px;
}

.inventorywrap .wpim-empty-state-teaser .wpim-teaser-dismiss a {
    color: #7A8290;
    font-size: 12px;
    text-decoration: none;
}

.inventorywrap .wpim-empty-state-teaser .wpim-teaser-dismiss a:hover {
    color: #DC2626;
}

/* Contextual add-on teasers: item editor field list and Labels screen */
.inventorywrap .wpim-field-teaser td {
    padding-top: 14px;
    border-top: 1px solid #EAECEF;
    color: #7A8290;
    font-size: 13px;
}

.inventorywrap .wpim-field-teaser a {
    white-space: nowrap;
}

.inventorywrap .wpim-field-teaser .wpim-teaser-dismiss {
    margin-left: 12px;
    white-space: nowrap;
}

.inventorywrap .wpim-field-teaser .wpim-teaser-dismiss a {
    color: #7A8290;
    font-size: 12px;
    text-decoration: none;
}

.inventorywrap .wpim-field-teaser .wpim-teaser-dismiss a:hover {
    color: #DC2626;
}

.inventorywrap .wpim-labels-teaser {
    margin: 15px 0;
    padding: 12px 15px;
    background: #fff;
    border: 1px solid #D8DBE0;
    border-left: 3px solid #2D5FAA;
    border-radius: 0 3px 3px 0;
}

.inventorywrap .wpim-labels-teaser p {
    margin: 0;
    color: #555C65;
}

.inventorywrap .wpim-labels-teaser .wpim-teaser-dismiss {
    margin-top: 6px;
}

.inventorywrap .wpim-labels-teaser .wpim-teaser-dismiss a {
    color: #7A8290;
    font-size: 12px;
    text-decoration: none;
}

.inventorywrap .wpim-labels-teaser .wpim-teaser-dismiss a:hover {
    color: #DC2626;
}

/* ============================================================
   2.5.0 admin UI — quality-pass polish  (DS+ additive, low-risk)
   Adds row feedback, a pinned header, calm action icons and keyboard
   focus. Table STRUCTURE is unchanged: same .grid / tr.title / td.action
   markup, so custom CSS and add-ons that hook the listing keep working.
   ============================================================ */

/* Zebra striping — the header is tr.title (first row, th cells), so it is
   never matched by these td rules and stays its own shade. */
.inventorywrap .grid tr:nth-child(even) td {
    background: #FAFBFC; /* neutral-50 */
}

/* Row hover — same specificity as zebra, declared after it so it wins.
   Header uses th, so it is never hover-highlighted. */
.inventorywrap .grid tr:hover td {
    background: #EEF3FB; /* primary-50 */
}

/* Sticky header — under a collapsed table the cell border disappears when the
   header sticks, so redraw the bottom edge with an inset shadow. */
.inventorywrap .grid tr.title th {
    position: sticky;
    top: 32px;                       /* clears the fixed WP admin bar */
    z-index: 2;
    box-shadow: inset 0 -1px 0 #D8DBE0;
}
@media screen and (max-width: 782px) { .inventorywrap .grid tr.title th { top: 46px; } }
@media screen and (max-width: 600px) { .inventorywrap .grid tr.title th { top: 0; } }

/* Action-icon hierarchy — neutral at rest (incl. delete), intent on hover only. */
.inventorywrap .grid td.action a {
    border-radius: 5px;
    padding: 2px 4px;
    transition: background .12s ease, color .12s ease;
}
.inventorywrap .grid td.action a .dashicons,
.inventorywrap .grid td.action a .dashicons:before { color: #7A8290; }
.inventorywrap .grid td.action a:hover { background: #EEF3FB; }
.inventorywrap .grid td.action a:hover .dashicons,
.inventorywrap .grid td.action a:hover .dashicons:before { color: #2D5FAA; }
.inventorywrap .grid td.action a.delete:hover { background: #FEF2F2; }
.inventorywrap .grid td.action a.delete:hover .dashicons,
.inventorywrap .grid td.action a.delete:hover .dashicons:before { color: #DC2626; }

/* Keyboard focus — mouse clicks show nothing (:focus-visible), keyboard shows a ring. */
.inventorywrap .grid td.action a:focus-visible,
.inventorywrap .wpim_tabs a:focus-visible,
.inventorywrap .button:focus-visible,
.inventorywrap input:focus-visible,
.inventorywrap select:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(45,95,170,.30);
    border-radius: 5px;
}

/* ============================================================
   2.5.0 cosmetic — round 2 (dev-site feedback)
   Inventory Items page + Status page. CSS only, no markup change.
   ============================================================ */

/* --- Search / filter row: align labels with their fields --------------- */
.inventorywrap #inventory_search {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 0 0 16px;
}
.inventorywrap #inventory_search > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}
.inventorywrap #inventory_search label {
    color: #555C65;
    font-size: 13px;
    white-space: nowrap;
    margin: 0;
}
.inventorywrap #inventory_search input[type="text"],
.inventorywrap #inventory_search select {
    height: 34px;
    border: 1px solid #D8DBE0;
    border-radius: 5px;
    padding: 0 10px;
    font-size: 13px;
    background: #fff;
    margin: 0;
}

/* --- Category cells as chips (visualise items per category) ------------- */
.inventorywrap .grid td.inventory_category a {
    display: inline-block;
    padding: 2px 11px;
    background: #EEF3FB;
    color: #244E8E;
    border: 1px solid #DCE7F7;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.7;
    text-decoration: none;
}
.inventorywrap .grid td.inventory_category a:hover {
    background: #DCE7F7;
    text-decoration: none;
}

/* --- Action column: words instead of bare icons ------------------------ */
.inventorywrap .grid td.action { white-space: nowrap; }
.inventorywrap .grid td.action a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    margin: 0 3px 3px 0;
    border: 1px solid #D8DBE0;
    border-radius: 5px;
    background: #fff;
    color: #555C65;
    font-size: 12px;
    line-height: 1.4;
    text-decoration: none;
    transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.inventorywrap .grid td.action a .dashicons,
.inventorywrap .grid td.action a .dashicons:before { font-size: 15px; width: 15px; height: 15px; color: inherit; }
.inventorywrap .grid td.action a span.tip {          /* the label was a hidden tooltip; show it inline */
    display: inline;
    position: static;
    background: none;
    box-shadow: none;
    color: inherit;
    padding: 0;
    margin: 0;
    font-size: 12px;
    text-transform: capitalize;
    white-space: nowrap;
}
.inventorywrap .grid td.action a span.tip:after { display: none; }   /* kill tooltip arrow */
.inventorywrap .grid td.action a:hover { background: #EEF3FB; border-color: #2D5FAA; color: #2D5FAA; }
.inventorywrap .grid td.action a.delete:hover { background: #FEF2F2; border-color: #DC2626; color: #DC2626; }

/* --- Status dashboard: flatten the hierarchy, drop the coloured circles - */
.wpim-status-panel { padding: 20px 22px; min-width: 260px; }
.wpim-status-panel h3 {
    margin: 0 0 14px;
    padding: 0 0 12px;
    border-bottom: 1px solid #EAECEF;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #7A8290;
}
.wpim-status-panel .status-primary { text-align: left; display: block; }
.wpim-status-panel .status-primary p {           /* the big number — plain, no circle */
    background: none !important;
    color: #16213F !important;
    width: auto; min-width: 0; height: auto;
    padding: 0; margin: 0; border-radius: 0;
    font-size: 40px; line-height: 1; font-weight: 700;
    box-shadow: none;
}
.wpim-status-panel .status-primary span {
    text-align: left; margin: 6px 0 0; max-width: none;
    font-size: 12px; color: #7A8290; line-height: 1.4;
}
.wpim-status-panel .status-related {
    display: block; margin: 12px 0 0;
    border-top: 1px solid #F0F1F3; padding-top: 12px;
}
.wpim-status-panel .status-related p { font-size: 13px; color: #2C3136; line-height: 1.7; }

/* --- Round 3: action buttons text-only (match Categories), status align --- */
/* Hide the row-action icons so buttons are text-only, like the Categories page */
.inventorywrap .grid td.action a .dashicons,
.inventorywrap .grid td.action a .dashicons:before { display: none; }
.inventorywrap .grid td.action a { gap: 0; }

/* Reserve/status panel: force the summary lines flush-left, kill stray indent */
.wpim-status-panel .status-related,
.wpim-status-panel .status-related p {
    text-align: left;
    text-indent: 0;
    margin: 0;
    padding: 0;
}
.wpim-status-panel .status-related p { line-height: 1.95; }

/* --- Status dashboard: at-a-glance stat strip -------------------------- */
.wpim-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 20px 0 24px;
}
.wpim-stat {
    flex: 1 1 130px;
    min-width: 118px;
    background: #fff;
    border: 1px solid #E4E7EB;
    border-top: 3px solid #E4E7EB;
    border-radius: 10px;
    padding: 18px 20px;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.wpim-stat-num { font-size: 30px; font-weight: 700; color: #16213F; line-height: 1.05; }
.wpim-stat-label { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #7A8290; }
.wpim-stat--warn   { border-top-color: #D97706; }
.wpim-stat--warn   .wpim-stat-num { color: #9A5304; }
.wpim-stat--danger { border-top-color: #DC2626; }
.wpim-stat--danger .wpim-stat-num { color: #B32020; }

/* ============================================================
   2.5.0 cosmetic — round 4 batch (dev feedback)
   Banner cube+wordmark · Reserve redesign · Labels/Statuses · Add-Ons
   ============================================================ */

/* --- Banner: cube logo + wordmark (replaces the circular badge) --------- */
.wpim_header h2 {
    background: #1E2D5A url(../images/wpim-cube.png) 22px center no-repeat !important;
    background-size: 46px 46px !important;
    padding-left: 86px !important;
}
.wpim_header h2::before {
    content: "WP Inventory Manager";
    display: inline-block;
    vertical-align: middle;
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: .015em;
    line-height: 100px;
}

/* --- Reserve panel: small status badge + clean flush-left summary -------- */
.wpim-status-panel { max-width: 460px; }
.wpim-status-panel .status-primary { display: block; }
.wpim-status-panel .status-primary p {
    display: inline-block;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #12714C !important;
    background: #ECFDF5;
    padding: 3px 13px !important;
    border-radius: 999px !important;
    line-height: 1.6 !important;
}
.wpim-status-panel .status-primary span {
    display: inline;
    margin-left: 8px;
    font-size: 12px;
    color: #7A8290;
}
.wpim-status-panel .status-related {
    display: block;
    margin: 14px 0 0;
    border-top: 1px solid #F0F1F3;
    padding-top: 12px;
}
.wpim-status-panel .status-related p {
    display: block;
    text-align: left !important;
    text-indent: 0 !important;
    white-space: normal !important;
    margin: 0 !important;
    padding: 3px 0 !important;
    font-size: 13px;
    color: #2C3136;
    line-height: 1.6;
}

/* --- Labels / Statuses (WP .form-table): give the rows structure -------- */
.inventorywrap .form-table th,
.inventorywrap .form-table td {
    padding: 11px 14px !important;
    border-bottom: 1px solid #F0F1F3;
    vertical-align: middle;
}
.inventorywrap .form-table th { font-weight: 600; color: #2C3136; }
.inventorywrap .form-table input[type="text"] {
    border: 1px solid #D8DBE0;
    border-radius: 5px;
    height: 32px;
    padding: 0 10px;
}
/* WordPress sizes .small-text at 50px for a couple of digits. With the padding above
   that leaves 28px of text, so a cost such as "165.00" or an order number clips to
   "165.(" — in Core and in every add-on that uses the class (Ledger, Locations). */
.inventorywrap input.small-text,
.inventorywrap .form-table input[type="text"].small-text {
    width: 90px;
    max-width: none;
    padding: 0 8px;
}
.inventorywrap .wpim_statuses th { color: #7A8290; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }

/* --- Add-Ons: denser grid, small icons, no endless scroll --------------- */
.inventorywrap div.add_on {
    width: 240px !important;
    vertical-align: top;
}
.inventorywrap div.add_on .image {
    height: 96px !important;
}
.inventorywrap div.add_on img { max-height: 72px; width: auto; }
.inventorywrap div.add_on div.description { height: auto !important; min-height: 54px; }

/* Add-Ons: let cards size to content (was fixed height:460px) + tidy grid */
.inventorywrap div.add_on {
    height: auto !important;
    margin: 0 12px 12px 0;
    padding-bottom: 14px !important;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,.05);
    vertical-align: top;
}
.inventorywrap div.add_on .image span { font-size: 13px; }   /* the hover overlay text */
.inventorywrap div.add_on p.learn_more { margin-top: 8px; }

/* ============================================================
   2.5.0 cosmetic — round 5 (dev feedback)
   Banner cube/wordmark · equal-height add-on tiles · Labels/Statuses tags
   ============================================================ */

/* --- Banner: wordmark only (cube removed per feedback) ------------------ */
.wpim_header h2 {
    background: #1E2D5A !important;
    padding-left: 24px !important;
}
.wpim_header h2::before {
    content: "WP Inventory Manager";
    display: inline-block;
    vertical-align: middle;
    color: #fff;
    font-size: 18px;
    font-weight: 600;          /* was 700 — less heavy */
    letter-spacing: .005em;
    line-height: 100px;
}
/* Add-on page title after the wordmark, e.g. "WP Inventory Manager | Advanced Search" */
.wpim_header h2 .wpim-page-title {
    display: inline-block;
    vertical-align: middle;
    margin-left: 14px;
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, .35);
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;          /* keeps the divider at text height, not the banner's 100px */
}

/* --- Add-Ons: real grid so every tile is the same size ------------------ */
.inventorywrap .wpim-addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
    margin-top: 16px;
    align-items: stretch;
}
.inventorywrap .wpim-addons-grid div.add_on {
    width: auto !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
}
.inventorywrap .wpim-addons-grid div.add_on div.description {
    flex: 1 1 auto;            /* pushes the button to the bottom -> tiles align */
    min-height: 0;
}
.inventorywrap .wpim-addons-grid div.add_on p.learn_more { margin-top: auto; }

/* --- Status tags (Labels: Shown/Hidden · Statuses: Items visible/hidden) - */
.wpim-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.6;
    white-space: nowrap;
}
.wpim-tag--on  { background: #ECFDF5; color: #12714C; }
.wpim-tag--off { background: #F1F2F4; color: #7A8290; }
.inventorywrap .form-table tr.not_used th label { color: #9DA4AE; }

/* --- Status dashboard: Quick Actions row -------------------------------- */
.wpim-section-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #7A8290;
    margin: 26px 0 12px;
}
.wpim-quick-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.wpim-qa {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 108px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #E4E7EB;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
    text-decoration: none;
    color: #2C3136;
    font-weight: 600;
    font-size: 13px;
    transition: border-color .12s ease, box-shadow .12s ease, color .12s ease;
}
.wpim-qa:hover { border-color: #2D5FAA; box-shadow: 0 2px 8px rgba(45,95,170,.14); color: #2D5FAA; }
.wpim-qa .dashicons { font-size: 24px; width: 24px; height: 24px; color: #2D5FAA; }
.wpim-qa-label { line-height: 1.2; }
.wpim-qa--primary { background: #2D5FAA; border-color: #2D5FAA; color: #fff; }
.wpim-qa--primary .dashicons { color: #fff; }
.wpim-qa--primary:hover { background: #244E8E; border-color: #244E8E; color: #fff; }
.wpim-qa--upsell .dashicons { color: #D97706; }

/* --- Add-Ons: clean square icons (bundled add-on icon set) -------------- */
.inventorywrap .wpim-addons-grid div.add_on .image {
    height: auto !important;
    padding: 14px 0 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
}
.inventorywrap .wpim-addons-grid div.add_on .image img {
    max-height: 66px !important;
    max-width: 66px;
    width: auto;
    border-radius: 14px;
}
.inventorywrap .wpim-addons-grid div.add_on .image span { display: none; }  /* old grey overlay off */
