/* Secure Files — password prompt.
   Self-contained rather than reusing .lightbox-*: this dialog has to be able to
   appear on top of an already-open lightbox (e.g. unlocking mid-flow), so it
   sits at a higher stacking level and manages its own overlay. */

.od-secure-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 10050; /* above .lightbox-wrapper */
    display: flex;
    align-items: center;
    justify-content: center;
}

.od-secure-dialog {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, .3);
    padding: 24px;
    width: 400px;
    max-width: calc(100% - 32px);
    box-sizing: border-box;
}

.od-secure-title {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.3;
}

.od-secure-text {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.5;
    color: #666;
}

.od-secure-input {
    width: 100%;
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
}

.od-secure-error {
    margin: 8px 0 0;
    min-height: 18px;
    font-size: 13px;
    line-height: 18px;
    color: #d9534f;
}

.od-secure-buttons {
    margin-top: 16px;
    text-align: right;
}

.od-secure-buttons > a {
    margin-left: 8px;
}

.od-secure-buttons > a.disabled {
    opacity: .6;
    pointer-events: none;
}

/* Lock badge on encrypted items in the file list.
   Matched on the specific values, not [data-encrypted] — every item carries the
   attribute and normal ones are "0". */
.js-content-item[data-encrypted="1"] .file-name:after,
.js-content-item[data-encrypted="2"] .file-name:after,
.js-content-item[data-encrypted="1"] .folder-name:after,
.js-content-item[data-encrypted="2"] .folder-name:after {
    content: "\f023"; /* fa-lock */
    font-family: FontAwesome;
    margin-left: 6px;
    opacity: .6;
}
