.equipment-content {
    padding-bottom: 45px;
}

.equipment-heading,
.equipment-panel-heading,
.equipment-form-actions,
.equipment-actions,
.equipment-pagination {
    display: flex;
    align-items: center;
}

.equipment-heading {
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 23px;
}

.equipment-heading h1,
.equipment-panel-heading h2 {
    margin: 2px 0 0;
    color: var(--navy);
    letter-spacing: -.03em;
}

.equipment-heading h1 {
    font-size: 31px;
}

.equipment-heading p,
.equipment-panel-heading p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.equipment-primary-button,
.equipment-secondary-button,
.equipment-filter-button,
.equipment-clear-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 17px;
    border: 0;
    border-radius: 11px;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.equipment-primary-button {
    color: #fff;
    background: linear-gradient(135deg, #073a6b, #0a5a9b);
    box-shadow: 0 8px 18px rgba(7, 58, 107, .18);
}

.equipment-secondary-button,
.equipment-clear-button {
    color: #536577;
    border: 1px solid #dfe6ed;
    background: #fff;
}

.equipment-alert {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 18px;
    padding: 13px 15px;
    border: 1px solid;
    border-radius: 12px;
    font-size: 12px;
}

.equipment-alert > span {
    display: grid;
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    font-weight: 900;
    place-items: center;
}

.equipment-alert ul {
    margin: 7px 0 0;
    padding-left: 18px;
}

.alert-success {
    color: #087553;
    border-color: #b8e1d4;
    background: #effaf6;
}

.alert-success > span {
    color: #fff;
    background: #20a679;
}

.alert-error {
    color: #9e3349;
    border-color: #efc4cc;
    background: #fff3f5;
}

.alert-error > span {
    color: #fff;
    background: #d3566e;
}

.equipment-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 13px;
    margin-bottom: 23px;
}

.equipment-summary-card {
    min-height: 112px;
    padding: 17px;
    border: 1px solid;
    border-radius: 14px;
}

.equipment-summary-card span,
.equipment-summary-card strong,
.equipment-summary-card small {
    display: block;
}

.equipment-summary-card span {
    color: #536476;
    font-size: 11px;
    font-weight: 800;
}

.equipment-summary-card strong {
    margin: 8px 0 5px;
    color: var(--navy);
    font-size: 29px;
}

.equipment-summary-card small {
    color: #758493;
    font-size: 9px;
}

.summary-blue {
    border-color: #c5daed;
    background: #f2f8fd;
}

.summary-green {
    border-color: #bee2d6;
    background: #effaf6;
}

.summary-violet {
    border-color: #d8ccec;
    background: #f8f4fc;
}

.summary-red {
    border-color: #edc8ce;
    background: #fff4f6;
}

.summary-orange {
    border-color: #efd8b8;
    background: #fff8ed;
}

.equipment-form-panel,
.equipment-list-panel {
    margin-bottom: 23px;
    overflow: hidden;
    border: 1px solid #e1e8ee;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 9px 28px rgba(25, 50, 77, .05);
}

.equipment-panel-heading {
    justify-content: space-between;
    gap: 20px;
    padding: 20px 22px;
    border-bottom: 1px solid #edf1f4;
}

.equipment-panel-heading h2 {
    font-size: 20px;
}

.equipment-close-button {
    display: grid;
    width: 36px;
    height: 36px;
    color: #6d7d8d;
    border: 1px solid #e0e7ed;
    border-radius: 10px;
    background: #f8fafb;
    font-size: 22px;
    text-decoration: none;
    place-items: center;
}

.equipment-form {
    padding: 0 22px 22px;
}

.equipment-form-section {
    padding: 21px 0;
    border-bottom: 1px solid #edf1f4;
}

.equipment-form-section h3 {
    margin: 0 0 16px;
    color: var(--navy);
    font-size: 14px;
}

.equipment-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field-group > span,
.choice-title {
    color: #465a6d;
    font-size: 11px;
    font-weight: 800;
}

.field-group input,
.field-group select,
.field-group textarea,
.equipment-filters input,
.equipment-filters select {
    width: 100%;
    border: 1px solid #dce4ea;
    border-radius: 10px;
    outline: none;
    background: #fff;
    color: #243a4f;
    font: inherit;
    font-size: 12px;
    transition: border-color .2s, box-shadow .2s;
}

.field-group input,
.field-group select,
.equipment-filters input,
.equipment-filters select {
    min-height: 42px;
    padding: 0 12px;
}

.field-group textarea {
    resize: vertical;
    padding: 11px 12px;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus,
.equipment-filters input:focus,
.equipment-filters select:focus {
    border-color: #4d91c8;
    box-shadow: 0 0 0 3px rgba(77, 145, 200, .12);
}

.field-full {
    grid-column: 1 / -1;
}

.choice-section + .choice-section {
    margin-top: 18px;
}

.choice-title {
    display: block;
    margin-bottom: 9px;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.choice-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 600px;
}

.weight-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.choice-card {
    position: relative;
    cursor: pointer;
}

.choice-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-card span {
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 8px;
    color: #536577;
    border: 1px solid #dce4ea;
    border-radius: 10px;
    background: #fff;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
}

.choice-card input:checked + span {
    color: #07528f;
    border-color: #68a7d6;
    background: #edf7ff;
    box-shadow: 0 0 0 2px rgba(83, 155, 208, .11);
}

.switch-field {
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 9px;
    padding: 0 12px;
    border: 1px solid #dce4ea;
    border-radius: 10px;
    cursor: pointer;
}

.switch-field input {
    width: 17px;
    min-height: auto;
    height: 17px;
}

.switch-field span {
    color: #43586b;
    font-size: 11px;
    font-weight: 700;
}

.equipment-form-actions {
    justify-content: flex-end;
    gap: 10px;
    padding-top: 20px;
}

.equipment-form-section[hidden],
[data-other-capacity-field][hidden],
[data-charger-voltage-field][hidden] {
    display: none !important;
}

.equipment-filters {
    display: grid;
    grid-template-columns:
        minmax(220px, 1fr)
        minmax(150px, .42fr)
        minmax(160px, .42fr)
        auto
        auto;
    gap: 10px;
    padding: 17px 22px;
    border-bottom: 1px solid #edf1f4;
}

.equipment-search {
    position: relative;
}

.equipment-search > span {
    position: absolute;
    top: 50%;
    left: 12px;
    color: #8a99a8;
    transform: translateY(-50%);
}

.equipment-search input {
    padding-left: 34px;
}

.equipment-filter-button {
    color: #fff;
    background: #0b5b96;
}

.equipment-table-wrapper {
    overflow-x: auto;
}

.equipment-table {
    width: 100%;
    border-collapse: collapse;
}

.equipment-table th,
.equipment-table td {
    padding: 14px 13px;
    border-bottom: 1px solid #edf1f4;
    text-align: left;
    vertical-align: middle;
}

.equipment-table th {
    color: #718190;
    background: #f8fafb;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.equipment-table td {
    color: #45596b;
    font-size: 11px;
}

.equipment-table tbody tr:hover {
    background: #fbfdfe;
}

.equipment-code {
    color: #07558f;
}

.equipment-name strong,
.equipment-name span,
.equipment-table td > small {
    display: block;
}

.equipment-name strong {
    color: #263d51;
    font-size: 12px;
}

.equipment-name span,
.equipment-table td > small {
    margin-top: 4px;
    color: #82909d;
    font-size: 9px;
}

.equipment-status {
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 900;
}

.status-available {
    color: #087553;
    background: #dff5ed;
}

.status-rented {
    color: #6842a1;
    background: #eee6f8;
}

.status-fault {
    color: #a03c50;
    background: #fbe4e8;
}

.status-maintenance {
    color: #9a600e;
    background: #fff0d6;
}

.status-inactive {
    color: #657381;
    background: #e9edf0;
}

.actions-column {
    text-align: right !important;
}

.equipment-actions {
    justify-content: flex-end;
    gap: 7px;
}

.equipment-actions form {
    margin: 0;
}

.action-edit,
.action-delete {
    display: inline-flex;
    min-height: 31px;
    align-items: center;
    gap: 5px;
    padding: 0 9px;
    border: 1px solid;
    border-radius: 8px;
    background: #fff;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.action-edit {
    color: #17669d;
    border-color: #c9deec;
}

.action-delete {
    color: #b04054;
    border-color: #eccbd1;
}

.equipment-empty-state {
    display: grid;
    min-height: 245px;
    color: #8493a0;
    text-align: center;
    place-content: center;
}

.equipment-empty-state > span {
    color: #aab6c0;
    font-size: 31px;
}

.equipment-empty-state strong {
    margin-top: 10px;
    color: #4b5f72;
    font-size: 13px;
}

.equipment-empty-state p {
    margin: 6px 0 0;
    font-size: 10px;
}

.equipment-pagination {
    justify-content: center;
    gap: 14px;
    padding: 17px;
}

.equipment-pagination a,
.equipment-pagination span {
    padding: 8px 11px;
    border: 1px solid #dce4ea;
    border-radius: 8px;
    color: #436077;
    background: #fff;
    font-size: 10px;
    text-decoration: none;
}

.equipment-pagination .disabled {
    color: #a4afb8;
    background: #f6f8f9;
}

.equipment-pagination strong {
    color: #647687;
    font-size: 10px;
}

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

    .weight-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .equipment-filters {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .equipment-content {
        padding-left: 14px;
        padding-right: 14px;
    }

    .equipment-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .equipment-heading .equipment-primary-button {
        width: 100%;
    }

    .equipment-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .equipment-summary-card {
        min-height: 100px;
        padding: 14px;
    }

    .equipment-fields-grid,
    .choice-grid.compact,
    .weight-grid,
    .equipment-filters {
        grid-template-columns: 1fr;
    }

    .equipment-panel-heading,
    .equipment-form,
    .equipment-filters {
        padding-left: 15px;
        padding-right: 15px;
    }

    .equipment-form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .equipment-form-actions a,
    .equipment-form-actions button {
        width: 100%;
    }

    .equipment-table,
    .equipment-table tbody,
    .equipment-table tr,
    .equipment-table td {
        display: block;
        width: 100%;
    }

    .equipment-table thead {
        display: none;
    }

    .equipment-table tr {
        padding: 14px;
        border-bottom: 8px solid #f2f5f7;
    }

    .equipment-table td {
        display: grid;
        grid-template-columns: 105px minmax(0, 1fr);
        gap: 10px;
        padding: 9px 0;
        border: 0;
    }

    .equipment-table td::before {
        color: #8795a1;
        font-size: 9px;
        font-weight: 900;
        content: attr(data-label);
        text-transform: uppercase;
    }

    .equipment-actions {
        justify-content: flex-start;
    }

    .equipment-actions::before {
        align-self: center;
    }

    .action-edit,
    .action-delete {
        min-height: 34px;
    }
}

@media (max-width: 390px) {
    .equipment-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* DM_EQUIPMENT_IMAGES_CSS_BEGIN */
.equipment-image-editor {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    max-width: 760px;
}

.equipment-image-preview {
    position: relative;
    display: grid;
    width: 180px;
    height: 135px;
    overflow: hidden;
    border: 1px dashed #c8d5df;
    border-radius: 14px;
    background: linear-gradient(145deg, #f8fafc, #eef3f7);
    place-items: center;
}

.equipment-image-preview img {
    width: 100%;
    height: 100%;
    padding: 7px;
    background: #fff;
    object-fit: contain;
    box-sizing: border-box;
}

.equipment-image-preview > span {
    display: grid;
    gap: 5px;
    color: #7d8c99;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    place-items: center;
}

.equipment-image-preview > span b {
    color: #9cabb7;
    font-size: 29px;
    line-height: 1;
}

.equipment-image-controls {
    display: grid;
    min-width: 0;
    gap: 9px;
}

.equipment-image-controls input[type="file"] {
    min-height: 46px;
    padding: 5px 7px;
    color: #536577;
    border: 1px solid #dce4ea;
    border-radius: 10px;
    background: #fff;
    font-size: 11px;
}

.equipment-image-controls input[type="file"]::file-selector-button {
    min-height: 34px;
    margin-right: 10px;
    padding: 0 13px;
    color: #07558f;
    border: 0;
    border-radius: 8px;
    background: #eaf4fb;
    font: inherit;
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
}

.equipment-image-help {
    color: #81909d;
    font-size: 10px;
}

.equipment-remove-image {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    margin-top: 3px;
    color: #a13d50;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.equipment-remove-image input {
    width: 16px;
    min-height: auto;
    height: 16px;
    margin: 0;
}

.equipment-photo-cell {
    width: 82px;
}

.equipment-photo-link,
.equipment-photo-thumbnail,
.equipment-photo-placeholder {
    display: block;
    width: 68px;
    height: 54px;
    border-radius: 10px;
}

.equipment-photo-link {
    overflow: hidden;
    border: 1px solid #dce5ec;
    background: #fff;
    box-shadow: 0 3px 9px rgba(25, 50, 77, .08);
}

.equipment-photo-thumbnail {
    padding: 3px;
    background: #fff;
    object-fit: contain;
    box-sizing: border-box;
    transition: transform .18s ease;
}

.equipment-photo-link:hover .equipment-photo-thumbnail {
    transform: scale(1.06);
}

.equipment-photo-placeholder {
    display: grid;
    padding: 5px;
    color: #8b99a5;
    border: 1px dashed #cdd8e1;
    background: #f5f8fa;
    font-size: 8px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    box-sizing: border-box;
    place-items: center;
}

@media (max-width: 760px) {
    .equipment-image-editor {
        grid-template-columns: 1fr;
    }

    .equipment-image-preview {
        width: 100%;
        max-width: 260px;
        height: 180px;
        justify-self: center;
    }

    .equipment-table td.equipment-photo-cell {
        align-items: center;
    }

    .equipment-photo-link,
    .equipment-photo-thumbnail,
    .equipment-photo-placeholder {
        width: 82px;
        height: 66px;
    }
}
/* DM_EQUIPMENT_IMAGES_CSS_END */
