/* PAW Admin - Jazzmin sidebar readability */

/* Parent category rows */
#jazzy-navigation > .nav-item.has-treeview > .nav-link {
    margin: 4px 8px;
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

/* Open parent category */
#jazzy-navigation > .nav-item.has-treeview.menu-open > .nav-link,
#jazzy-navigation > .nav-item.has-treeview > .nav-link.active {
    background: rgba(255, 255, 255, 0.12);
}

/* Parent category icons */
#jazzy-navigation > .nav-item.has-treeview > .nav-link > .nav-icon {
    opacity: 0.95;
}

/* Child page list */
#jazzy-navigation .nav-treeview {
    margin: 0 8px 6px 18px;
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

/* Child page rows */
#jazzy-navigation .nav-treeview .nav-link {
    margin: 2px 0;
    padding-left: 12px;
    border-radius: 6px;
    font-weight: 400;
    opacity: 0.88;
}

/* Child page icons smaller/subtler */
#jazzy-navigation .nav-treeview .nav-icon {
    font-size: 0.82rem;
    opacity: 0.72;
}

/* Child active/hover */
#jazzy-navigation .nav-treeview .nav-link:hover,
#jazzy-navigation .nav-treeview .nav-link.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.10);
}

/* Arrow visibility */
#jazzy-navigation > .nav-item.has-treeview > .nav-link .nav-arrow {
    opacity: 0.8;
}\n\n

/* PAW Admin - project DBC/CAN inline pickers, vertical operator layout */
.paw-inline-picker {
    position: relative;
    margin: 4px 0 18px 0;
    max-width: 1100px;
}

.paw-inline-picker-label {
    display: none;
}

.paw-inline-picker-chips {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    min-height: 42px;
    max-height: 430px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid #cfd7df;
    border-radius: 6px;
    background: #fff;
}

/* One selected item = one full row */
.paw-inline-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 5px 8px;
    border-radius: 4px;
    background: #f1f3f5;
    border: 1px solid #d8dee4;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.86rem;
    line-height: 1.35;
}

.paw-inline-chip-text {
    overflow-wrap: anywhere;
}

.paw-inline-chip-remove {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: #b00020;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

/* The add field is the last clear row in the list */
.paw-inline-picker-input {
    display: block;
    width: 100%;
    min-height: 34px;
    border: 1px dashed #b8c2cc;
    border-radius: 4px;
    outline: 0;
    padding: 6px 8px;
    background: #ffffff;
    font-size: 0.92rem;
}

.paw-inline-picker-input:focus {
    border-color: #3c8dbc;
    box-shadow: 0 0 0 2px rgba(60, 141, 188, 0.16);
}

/* Dropdown is normal document flow, directly below the add field */
.paw-inline-picker-dropdown {
    position: static;
    width: 100%;
    max-height: 520px;
    overflow: auto;
    margin-top: 4px;
    border: 1px solid #cfd7df;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}

.paw-inline-picker-result {
    display: block;
    width: 100%;
    border: 0;
    border-bottom: 1px solid #edf0f2;
    padding: 8px 10px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.88rem;
}

.paw-inline-picker-result:hover {
    background: #eaf4ff;
}

.paw-inline-picker-status {
    margin-top: 5px;
    font-size: 0.86rem;
    color: #5f6b76;
}

.paw-inline-picker-error {
    color: #b00020;
    font-weight: 600;
}

/* PAW Admin - compact submit row */
.paw-submit-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
    margin: 0 0 14px 0;
    padding: 0;
}

.paw-submit-row .btn {
    min-width: 120px;
}

.change-form .submit-row,
.submit-row {
    box-shadow: none !important;
}

/* Jazzmin renders submit buttons in a side area on wide screens.
   Keep it compact so it does not steal form width. */
@media (min-width: 992px) {
    .change-form .col-lg-3,
    .change-form .col-md-3 {
        max-width: 180px;
        flex: 0 0 180px;
    }

    .change-form .col-lg-9,
    .change-form .col-md-9 {
        max-width: calc(100% - 180px);
        flex: 0 0 calc(100% - 180px);
    }
}

/* PAW Admin - top change form actions */
.paw-top-actions {
    display: flex;
    justify-content: flex-start;
    margin: 0 0 12px 0;
}

.paw-top-actions #jazzy-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    width: auto;
    padding: 0;
    margin: 0;
    background: transparent;
    box-shadow: none;
}

.paw-top-actions .paw-submit-row {
    margin: 0;
}

.paw-top-actions .object-tools {
    margin: 0;
}

.paw-top-actions .btn {
    min-width: 120px;
}


/* PAW Admin - project form layout */
.model-organization.change-form .field-bootstrap_api_base_url input,
.model-organization.change-form .field-bootstrap_config_path input {
    width: 100% !important;
    max-width: 900px !important;
    box-sizing: border-box;
}

.model-organization.change-list .field-copy_project_link,
.model-organization.change-list td.field-copy_project_link {
    white-space: nowrap;
    text-align: right;
}

.model-organization.change-list .paw-project-copy-button {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    text-decoration: none;
}

/* PAW Admin - project list copy action button */
.model-organization.change-list td.field-copy_project_link {
    text-align: right;
    white-space: nowrap;
}

.model-organization.change-list .paw-project-copy-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    padding: 4px 10px !important;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none !important;
    line-height: 1.4;
}
