/* Package Delivery - Dock Logging (Figma: Q3 2026 Epics) */

/* Package Delivery menu row */
.dl-entry {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 0 0 0 16px;
    cursor: pointer;
}

.dl-entry-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 50%;
    background: #dde9fa;
    color: #1f6fc5;
    font-size: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
}

.dl-entry-label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    padding-right: 16px;
    border-bottom: 1px solid #e3e3e3;
    font-size: 16px;
    color: #1d1d1d;
}

.dl-entry-chevron {
    color: #b5b5b5;
    font-size: 15px;
}

/* Views */
.dl-view {
    padding: 0 12px 110px;
    text-align: left;
}

.dl-title {
    font-size: 23px;
    font-weight: 600;
    color: #333;
    margin: 22px 0 16px;
    text-align: left;
}

.dl-list {
    text-align: left;
}

.dl-card {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
    padding: 16px 16px 14px;
    margin-bottom: 14px;
}

.dl-card-open {
    cursor: pointer;
}

.dl-card-carrier {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    word-break: break-word;
}

.dl-card-date {
    font-size: 21px;
    font-weight: 600;
    color: #333;
    margin: 4px 0 8px;
}

.dl-card-line {
    font-size: 14px;
    color: #8a8a8a;
    line-height: 1.65;
}

.dl-status {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    border-radius: 12px;
    padding: 6px 10px;
    margin-bottom: 8px;
}

.dl-status-complete {
    background: #d9efe1;
    color: #237a45;
}

.dl-status-progress {
    background: #fde0cc;
    color: #e0701c;
}

.dl-empty {
    text-align: center;
    font-size: 15px;
    color: #777;
    padding-top: 28vh;
}

/* Active session */
.dl-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.dl-search {
    flex: 1;
    height: 42px;
    border: none;
    border-radius: 21px;
    padding: 8px 18px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    font-size: 15px;
}

.dl-search::placeholder {
    font-style: italic;
    color: #8a8a8a;
}

.dl-btn-add {
    background: #cde6fb;
    color: #1b4f86;
    border-radius: 21px;
    height: 42px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.dl-btn-add i {
    font-size: 11px;
    margin-left: 8px;
}

.dl-session-empty {
    text-align: center;
    padding-top: 12vh;
}

.dl-scan-illustration {
    width: 130px;
    height: auto;
}

.dl-session-empty p {
    margin-top: 28px;
    font-size: 15px;
    color: #666;
}

.dl-package-number {
    font-size: 21px;
    font-weight: 600;
    color: #333;
    padding-right: 32px;
    word-break: break-all;
}

.dl-package .dl-card-line,
.dl-complete-package .dl-card-line {
    margin-top: 6px;
}

.dl-package-delete {
    position: absolute;
    top: 12px;
    right: 10px;
    border: none;
    background: none;
    padding: 4px 6px;
    color: #d0021b;
    font-size: 17px;
    line-height: 1;
}

/* Add Package */
.dl-field {
    margin-bottom: 18px;
}

.dl-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}

.dl-required {
    color: #e0283a;
}

.dl-input {
    height: 44px;
    border: 1px solid #dadde1;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 16px;
    color: #333;
    background-color: #fff;
}

.dl-input::placeholder {
    font-style: normal;
    color: #8a9099;
}

.dl-input:disabled {
    background-color: #fff;
}

select.dl-select {
    -webkit-appearance: none;
    appearance: none;
    padding: 8px 36px 8px 14px !important;
    border-width: 1px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23333' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 10px 6px;
}

.dl-select:invalid,
.dl-select.dl-placeholder {
    color: #8a9099;
}

.dl-notes {
    height: 116px;
    resize: none;
}

.dl-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 30px 4px;
    font-size: 13px;
    font-weight: 600;
    color: #444;
}

.dl-check input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.dl-form-actions {
    text-align: center;
}

/* Buttons */
.dl-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 24px;
    text-align: center;
    z-index: 5;
    pointer-events: none;
}

.dl-footer .btn {
    pointer-events: auto;
}

.dl-btn-primary,
.dl-btn-finish {
    border: none;
    border-radius: 28px;
    padding: 13px 30px;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
}

.dl-btn-primary {
    background: #0470ba;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.dl-btn-primary:hover,
.dl-btn-primary:focus {
    color: #fff;
}

.dl-btn-primary:disabled {
    background: #ced3d9;
    color: #fff;
    box-shadow: none;
    opacity: 1;
}

#dlLogPackageBtn {
    padding: 14px 48px;
    font-size: 18px;
}

.dl-btn-finish {
    background: linear-gradient(90deg, #ff6a00 0%, #f08a3e 100%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.dl-btn-finish:hover,
.dl-btn-finish:focus {
    color: #fff;
}

.dl-btn-finish i {
    font-size: 14px;
    margin-left: 6px;
}

.dl-btn-outline {
    background: #fff;
    color: #333;
    border: 1px solid #333;
    border-radius: 28px;
    padding: 12px 20px;
    font-size: 17px;
}

/* Dialog */
.dl-dialog {
    border: none;
    border-radius: 8px;
    padding: 30px 24px 24px;
    text-align: center;
}

.dl-dialog-icon {
    font-size: 34px;
    color: #e03140;
}

.dl-dialog-text {
    margin: 26px 0 28px;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

.dl-dialog-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.dl-dialog-actions .btn {
    flex: 1;
    max-width: 220px;
    padding: 10px 6px;
    font-size: 16px;
    white-space: nowrap;
}

/* Search with clear button */
.dl-search-wrap {
    position: relative;
    flex: 1;
}

.dl-search-wrap .dl-search {
    width: 100%;
    padding-right: 38px;
}

.dl-search:focus {
    border: 1px solid #0470ba;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.dl-search-clear {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    border: none;
    background: none;
    padding: 4px;
    color: #555;
    font-size: 13px;
    line-height: 1;
}

#dlPackagesNoResults {
    padding-top: 18vh;
}

/* Package card extras */
.dl-package {
    cursor: pointer;
}

.dl-status-damaged {
    background: #fde2e4;
    color: #d0283a;
    font-weight: 600;
    margin: 10px 0 0;
}

.dl-status-damaged i {
    margin-left: 4px;
}

.dl-package-note {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #777;
    white-space: pre-wrap;
    word-break: break-word;
}

.dl-package-note strong {
    color: #555;
}

/* Titled dialog (Finish Session) */
.dl-dialog.dl-dialog-titled {
    padding: 0;
    text-align: left;
}

.dl-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 14px;
    border-bottom: 1px solid #ddd;
}

.dl-dialog-title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #222;
}

.dl-dialog-close {
    border: none;
    background: none;
    padding: 2px 4px;
    font-size: 18px;
    color: #222;
    line-height: 1;
}

.dl-dialog-titled .dl-dialog-text {
    margin: 0;
    padding: 18px 16px 22px;
    color: #777;
    border-bottom: 1px solid #ddd;
}

.dl-dialog-titled .dl-dialog-actions {
    padding: 16px;
    gap: 10px;
}

.dl-dialog-titled .dl-dialog-actions .btn {
    max-width: none;
}

.dl-btn-finish.dl-dialog-ok {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}
