/* ==========================================================
   PROPNOOK SOFTWARE WORKSPACES
   Scoped ONLY to .pn-workspace
   ========================================================== */

.pn-workspace {
    width: min(100%, 1320px);
    margin: 0 auto;
    padding: 30px 0 44px;
    box-sizing: border-box;
}

.pn-workspace *,
.pn-workspace *::before,
.pn-workspace *::after {
    box-sizing: border-box;
}


/* HEADER */

.pn-workspace-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 22px;
}

.pn-workspace-heading {
    min-width: 0;
}

.pn-workspace-kicker {
    display: block;
    margin-bottom: 7px;

    color: #667085;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.pn-workspace-header h1 {
    margin: 0 0 6px;
    color: #172033;
    font-size: 30px;
    line-height: 1.15;
}

.pn-workspace-header p {
    margin: 0;
    color: #667085;
    font-size: 14px;
}


/* PANEL */

.pn-workspace-panel {
    margin-bottom: 20px;
    overflow: hidden;

    border: 1px solid #e1e5ec;
    border-radius: 10px;

    background: #fff;

    box-shadow: 0 1px 2px rgba(16,24,40,.035);
}

.pn-workspace-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    min-height: 64px;
    padding: 15px 20px;

    border-bottom: 1px solid #e8ebf0;

    background: #fafbfc;
}

.pn-workspace-panel-title {
    display: flex;
    align-items: center;
    gap: 11px;
}

.pn-workspace-panel-icon {
    display: grid;
    place-items: center;

    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    border: 1px solid #dfe3ea;
    border-radius: 8px;

    background: #fff;

    color: #17214e;
    font-size: 16px;
}

.pn-workspace-panel-head h2 {
    margin: 0 0 2px;
    color: #1c2537;
    font-size: 15px;
}

.pn-workspace-panel-head p {
    margin: 0;
    color: #7a8494;
    font-size: 12px;
}

.pn-workspace-panel-body {
    padding: 20px;
}


/* FORMS */

.pn-software-form {
    display: grid;
    gap: 16px;
}

.pn-form-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}

.pn-field {
    grid-column: span 3;
    min-width: 0;
}

.pn-field-wide {
    grid-column: span 6;
}

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

.pn-field label {
    display: block;
    margin: 0 0 6px;

    color: #475467;
    font-size: 12px;
    font-weight: 700;
}

.pn-field input:not([type="hidden"]),
.pn-field select,
.pn-field textarea {
    display: block;
    width: 100%;
    min-width: 0;

    border: 1px solid #d7dce5;
    border-radius: 7px;

    background: #fff;

    color: #1d2939;
    font: inherit;
    font-size: 14px;

    outline: none;
}

.pn-field input:not([type="hidden"]),
.pn-field select {
    height: 42px;
    padding: 0 11px;
}

.pn-field textarea {
    min-height: 110px;
    padding: 11px;
    resize: vertical;
}

.pn-field input[type="file"] {
    padding: 8px;
    height: auto;
    min-height: 42px;
}

.pn-field input:focus,
.pn-field select:focus,
.pn-field textarea:focus {
    border-color: #6673a8;
    box-shadow: 0 0 0 3px rgba(48,63,123,.08);
}

.pn-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;

    padding-top: 3px;
}

.pn-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 40px;
    padding: 0 16px;

    border: 1px solid #11194f;
    border-radius: 7px;

    background: #11194f;
    color: #fff;

    font: inherit;
    font-size: 13px;
    font-weight: 700;

    cursor: pointer;
    text-decoration: none;
}

.pn-primary-button:hover {
    background: #1b2664;
}


/* RECORD LIST */

.pn-record-list {
    display: flex;
    flex-direction: column;
}

.pn-record-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    min-height: 68px;
    padding: 13px 20px;

    border-bottom: 1px solid #edf0f4;
}

.pn-record-row:last-child {
    border-bottom: 0;
}

.pn-record-main {
    min-width: 0;
}

.pn-record-main strong {
    display: block;
    margin-bottom: 4px;

    overflow: hidden;
    text-overflow: ellipsis;

    color: #202939;
    font-size: 14px;
    white-space: nowrap;
}

.pn-record-main span,
.pn-record-main small {
    display: block;
    color: #7a8494;
    font-size: 12px;
}

.pn-record-actions {
    display: flex;
    align-items: center;
    gap: 8px;

    flex: 0 0 auto;
}

.pn-record-actions form {
    margin: 0;
}

.pn-secondary-action,
.pn-record-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 34px;
    padding: 0 11px;

    border: 1px solid #d8dde6;
    border-radius: 6px;

    background: #fff;

    color: #344054;

    font: inherit;
    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
    text-decoration: none;
}

.pn-record-actions .pn-danger {
    color: #b42318;
}


/* EMPTY WORKSPACE */

.pn-software-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 220px;
    padding: 38px 24px;

    text-align: center;
}

.pn-software-empty-icon {
    display: grid;
    place-items: center;

    width: 48px;
    height: 48px;

    margin-bottom: 13px;

    border: 1px solid #e0e4eb;
    border-radius: 10px;

    background: #f8f9fb;

    color: #17214e;
    font-size: 20px;
}

.pn-software-empty strong {
    margin-bottom: 5px;
    color: #293244;
    font-size: 14px;
}

.pn-software-empty span {
    max-width: 420px;
    color: #7a8494;
    font-size: 13px;
}


/* CONTACT / NOTE CARDS */

.pn-record-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fill,
        minmax(260px, 1fr)
    );
    gap: 14px;

    padding: 20px;
}

.pn-record-card {
    min-width: 0;
    padding: 17px;

    border: 1px solid #e3e7ed;
    border-radius: 8px;

    background: #fff;
}

.pn-record-card h3 {
    margin: 0 0 5px;
    color: #202939;
    font-size: 15px;
}

.pn-record-card p {
    margin: 4px 0;
    color: #667085;
    font-size: 13px;
}

.pn-record-card small {
    color: #8a93a2;
}

.pn-card-actions {
    display: flex;
    justify-content: flex-end;

    margin-top: 15px;
    padding-top: 12px;

    border-top: 1px solid #edf0f4;
}

.pn-card-actions form {
    margin: 0;
}

.pn-card-actions button {
    border: 0;
    background: transparent;
    color: #b42318;

    font: inherit;
    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
}


/* RESPONSIVE */

@media (max-width: 1100px) {
    .pn-field {
        grid-column: span 6;
    }

    .pn-field-wide {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .pn-workspace {
        padding-top: 20px;
    }

    .pn-workspace-header {
        flex-direction: column;
    }

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

    .pn-record-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .pn-record-actions {
        width: 100%;
    }
}
