/* Identidad compartida y Configuración General */

.dm-sidebar-brand {
    min-height: 94px;
    justify-content: center;
    padding: 12px 16px 14px;
}

.dm-sidebar-brand img {
    display: block;
    width: 100%;
    max-width: 180px;
    max-height: 68px;
    object-fit: contain;
}

.sidebar-nav {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    scrollbar-width: thin;
}

.sidebar-developer {
    flex: 0 0 auto;
    padding: 11px 18px 9px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    text-align: center;
}

.sidebar-developer img {
    display: block;
    width: auto;
    max-width: 70px;
    max-height: 46px;
    margin: 0 auto 5px;
    object-fit: contain;
}

.sidebar-developer span {
    display: block;
    color: rgba(255, 255, 255, .67);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .04em;
}

.sidebar-user {
    flex: 0 0 auto;
    margin-top: 0;
}

.settings-content {
    padding-bottom: 48px;
}

.settings-heading {
    margin-bottom: 22px;
}

.settings-heading h1 {
    margin: 3px 0 0;
    color: var(--navy);
    font-size: 31px;
    letter-spacing: -.03em;
}

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

.settings-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 17px;
    padding: 13px 15px;
    color: #087553;
    border: 1px solid #b8e1d4;
    border-radius: 12px;
    background: #effaf6;
    font-size: 12px;
}

.settings-alert > span {
    display: grid;
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    color: #fff;
    border-radius: 50%;
    background: #20a679;
    font-weight: 900;
    place-items: center;
}

.settings-alert p {
    margin: 3px 0 0;
}

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

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

.settings-master-form {
    display: grid;
    gap: 18px;
}

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

.settings-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px;
    border-bottom: 1px solid #edf1f4;
}

.settings-panel-heading h2 {
    margin: 3px 0 0;
    color: var(--navy);
    font-size: 20px;
}

.settings-panel-heading .eyebrow {
    margin-bottom: 0;
}

.settings-logo-preview {
    display: grid;
    width: 190px;
    min-height: 82px;
    padding: 10px;
    border: 1px solid #dce5ed;
    border-radius: 13px;
    background:
        linear-gradient(45deg, #f4f7f9 25%, transparent 25%),
        linear-gradient(-45deg, #f4f7f9 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f4f7f9 75%),
        linear-gradient(-45deg, transparent 75%, #f4f7f9 75%),
        #fff;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    background-size: 16px 16px;
    place-items: center;
}

.settings-logo-preview img {
    display: block;
    max-width: 100%;
    max-height: 66px;
    object-fit: contain;
}

.version-preview {
    min-width: 145px;
    padding: 13px 17px;
    border: 1px solid #c8dded;
    border-radius: 12px;
    background: #f1f8fd;
    text-align: center;
}

.version-preview small,
.version-preview strong {
    display: block;
}

.version-preview small {
    color: #72879a;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .07em;
}

.version-preview strong {
    margin-top: 5px;
    color: var(--blue);
    font-size: 20px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding: 22px;
}

.settings-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.settings-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
}

.settings-field > span {
    color: #465a6d;
    font-size: 11px;
    font-weight: 800;
}

.settings-field input,
.settings-field select {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    color: #243a4f;
    border: 1px solid #dce4ea;
    border-radius: 10px;
    outline: none;
    background: #fff;
    font-size: 12px;
}

.settings-field input:focus,
.settings-field select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(77, 145, 200, .12);
}

.settings-field small {
    color: #83919e;
    font-size: 9px;
    line-height: 1.45;
}

.settings-file-field input {
    padding: 9px 10px;
}

.settings-file-field input::file-selector-button {
    margin-right: 10px;
    padding: 7px 10px;
    color: var(--blue);
    border: 0;
    border-radius: 7px;
    background: #edf6fc;
    cursor: pointer;
    font-weight: 800;
}

.settings-color-field > div {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border: 1px solid #dce4ea;
    border-radius: 10px;
}

.settings-color-field input[type="color"] {
    width: 48px;
    min-height: 30px;
    padding: 0;
    border: 0;
    cursor: pointer;
}

.settings-color-field b {
    color: #4b5d6f;
    font-size: 11px;
    letter-spacing: .04em;
}

.settings-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border: 1px solid #dce5ed;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 9px 28px rgba(25, 50, 77, .05);
}

.settings-actions p {
    max-width: 650px;
    margin: 0;
    color: #71808f;
    font-size: 10px;
    line-height: 1.5;
}

.settings-save-button {
    min-height: 44px;
    padding: 0 20px;
    color: #fff;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    box-shadow: 0 8px 18px rgba(7, 58, 107, .17);
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

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

@media (max-width: 850px) {
    .dm-sidebar-brand {
        min-height: 82px;
        padding-right: 44px;
    }
}

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

    .settings-panel-heading,
    .settings-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .settings-grid,
    .settings-grid-three {
        grid-template-columns: 1fr;
    }

    .settings-logo-preview,
    .version-preview,
    .settings-save-button {
        width: 100%;
    }
}
/* DM_SIDEBAR_NO_SCROLLBAR_BEGIN */
/* El menu conserva el desplazamiento, pero oculta la barra visual. */
#main-sidebar .sidebar-nav {
    overflow-y: auto !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

#main-sidebar .sidebar-nav::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}
/* DM_SIDEBAR_NO_SCROLLBAR_END */
