
/* PRAWNIKOM PRO - DRUKI SADOWE */

main.cf-shell {
    --cf-navy: #142641;
    --cf-gold: #c6a46a;
    --cf-border: #d7e0eb;
    --cf-muted: #526277;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 24px !important;
    background: #f1f5f9;
    color: var(--cf-navy);
    font: 15px/1.6 "Inter","Segoe UI",Arial,sans-serif;
    box-sizing: border-box;
}

.cf-shell * {
    box-sizing: border-box;
}

.cf-shell [hidden] {
    display: none !important;
}

.cf-shell a {
    text-decoration: none !important;
}

.cf-shell :is(input,textarea,select,button,a):focus-visible {
    outline: 2px solid #96702d;
    outline-offset: 3px;
}

/* NAGLOWEK */

.cf-shell .cf-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    padding: 36px;
    margin-bottom: 20px;
    background: linear-gradient(120deg,#101c30,#203957);
    border-bottom: 3px solid #c6a46a;
    color: white;
}

.cf-shell .cf-eyebrow {
    color: #e0bd7d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.cf-shell .cf-title h1 {
    margin: 10px 0;
    font: 400 clamp(30px,3vw,46px)/1.2 Georgia,serif;
    color: white !important;
}

.cf-shell .cf-title p {
    margin: 0;
    color: #d7e0eb;
    font-size: 16px;
}

.cf-shell .cf-title > a {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    min-height: 46px;
    background: #c6a46a;
    color: #142641 !important;
    font-weight: 700;
}

/* ETAPY PRZYGOTOWANIA PISMA */

.cf-shell .cf-workflow {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.cf-shell .cf-workflow > span {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: white;
    border: 1px solid #d7e0eb;
    font-weight: 600;
}

.cf-shell .cf-workflow b {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    height: 38px;
    background: #142641;
    color: #e0bd7d;
    font-size: 18px;
}

.cf-shell .cf-notice {
    margin: 0 0 16px;
    padding: 16px 20px;
    background: #fffaf0;
    border: 1px solid #e6d7b8;
    border-left: 4px solid #c6a46a;
    color: #715326;
    font-size: 14px;
}

.cf-shell #cf-status {
    padding: 12px 18px;
    margin-bottom: 20px;
    background: white;
    border: 1px solid #d7e0eb;
    color: #526277;
    font-weight: 600;
}

/* KATALOG */

.cf-shell .cf-catalog-layout {
    display: grid !important;
    grid-template-columns: 260px minmax(0,1fr);
    align-items: start;
    gap: 20px;
    width: 100%;
    min-width: 0;
}

.cf-shell .cf-catalog-layout > * {
    min-width: 0;
}

/* MENU KATEGORII */

.cf-shell .cf-sidebar {
    position: sticky;
    top: calc(var(--pp-header-offset,120px) + 16px);
    padding: 18px;
    background: white;
    border: 1px solid #d7e0eb;
    border-top: 3px solid #c6a46a;
}

.cf-shell .cf-sidebar h2 {
    margin: 0 0 18px;
    font: 400 23px Georgia,serif;
    color: #142641;
}

.cf-shell #cf-categories {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cf-shell #cf-categories button {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    width: 100% !important;
    min-height: 46px;
    padding: 10px 12px;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0 !important;
    color: #142641 !important;
    text-align: left;
    font-size: 13px;
    white-space: normal;
}

.cf-shell #cf-categories button span {
    flex-shrink: 0;
    padding: 3px 7px;
    background: #e9eef4;
    font-size: 11px;
}

.cf-shell #cf-categories button[aria-pressed="true"] {
    background: #142641 !important;
    color: white !important;
    border-color: #142641 !important;
    border-left: 3px solid #c6a46a !important;
}

.cf-shell #cf-categories button[aria-pressed="true"] span {
    background: #c6a46a;
    color: #142641;
}

.cf-shell #cf-categories button:hover:not([aria-pressed="true"]) {
    background: #f6f0e5 !important;
}

.cf-shell .cf-sidebar > a {
    display: block;
    margin-top: 18px;
    padding: 12px;
    background: #f1f5f9;
    color: #142641;
    font-weight: 600;
}

/* WYSZUKIWARKA */

.cf-shell #cf-search {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px;
    margin-bottom: 16px;
    background: white;
    border: 1px solid #d7e0eb;
}

.cf-shell #cf-search label {
    display: flex;
    flex-direction: column;
    flex: 1 1 240px;
    gap: 8px;
    min-width: 0;
    font-weight: 600;
}

.cf-shell #cf-count {
    padding: 12px 0;
    color: #526277;
    font-size: 13px;
}

/* POLA FORMULARZY */

.cf-shell input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.cf-shell select,
.cf-shell textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 0 !important;
    background: #fff;
    color: #142641;
    font: inherit;
}

.cf-shell textarea {
    resize: vertical;
}

.cf-shell input::placeholder,
.cf-shell textarea::placeholder {
    color: #64748b;
}

/* LISTA DRUKOW */

.cf-shell .cf-rows {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 10px;
}

.cf-shell .cf-row {
    display: grid !important;
    grid-template-columns: 58px minmax(0,1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 20px;
    background: white;
    border: 1px solid #d7e0eb;
    min-width: 0;
}

.cf-shell .cf-row:hover {
    border-color: #b39359;
    background: #fffefa;
}

.cf-shell .cf-row-number {
    display: grid;
    place-items: center;
    width: 58px;
    height: 64px;
    background: #f1f5f9;
    border-left: 3px solid #c6a46a;
    color: #142641;
    font: 400 23px Georgia,serif;
}

.cf-shell .cf-row small {
    color: #82612b;
    font-size: 12px;
    font-weight: 600;
}

.cf-shell .cf-row h2 {
    margin: 5px 0;
    font: 400 23px/1.3 Georgia,serif;
    color: #142641;
    overflow-wrap: anywhere;
}

.cf-shell .cf-row p {
    margin: 5px 0 0;
    color: #526277;
    font-size: 14px;
    line-height: 1.6;
}

.cf-shell .cf-row > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    background: #142641;
    color: #e0bd7d !important;
    font-weight: 600;
    font-size: 13px;
}

.cf-shell .cf-row > a:hover {
    background: #c6a46a;
    color: #142641 !important;
}

/* PAGINACJA */

.cf-shell .cf-pages {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    padding: 18px;
    margin-top: 16px;
    background: white;
    border: 1px solid #d7e0eb;
}

.cf-shell button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

/* EDYTOR PISMA */

.cf-shell .cf-editor-title {
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 20px;
    margin-bottom: 20px;
    background: white;
    border: 1px solid #d7e0eb;
    border-top: 3px solid #c6a46a;
}

.cf-shell .cf-editor-title h2 {
    margin: 4px 0;
    font: 400 28px Georgia,serif;
}

.cf-shell #cf-template-meta {
    color: #96702d;
    font-size: 12px;
}

.cf-shell .cf-editor-layout {
    display: grid !important;
    grid-template-columns: minmax(300px,.8fr) minmax(0,1.2fr);
    align-items: start;
    gap: 20px;
}

.cf-shell .cf-fields,
.cf-shell .cf-document-panel {
    width: 100%;
    min-width: 0;
}

/* SEKCJE FORMULARZA */

.cf-shell .cf-fields details {
    margin-bottom: 14px;
    background: white;
    border: 1px solid #d7e0eb;
}

.cf-shell .cf-fields summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background: #142641;
    color: white;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.cf-shell .cf-fields summary::-webkit-details-marker {
    display: none;
}

.cf-shell .cf-fields summary::after {
    content: "+";
    color: #e0bd7d;
    font-size: 22px;
}

.cf-shell .cf-fields details[open] > summary::after {
    content: "−";
}

.cf-shell .cf-section-body {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 16px;
    padding: 20px;
}

.cf-shell .cf-section-body label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    color: #142641;
    font-size: 13px;
    font-weight: 600;
}

.cf-shell .cf-section-body p,
.cf-shell .cf-section-body small {
    margin: 0;
    color: #526277;
    line-height: 1.6;
}

.cf-shell #cf-specific-fields {
    display: grid;
    gap: 16px;
}

.cf-shell .cf-section-body .cf-check {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    background: #f6f0e5;
}

.cf-shell input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: #142641;
}

.cf-shell #cf-court-status:not(:empty),
.cf-shell #cf-court-source:not(:empty) {
    padding: 14px;
    background: #f1f5f9;
    border-left: 3px solid #c6a46a;
}

.cf-shell .pp-date-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cf-shell .pp-date-options button {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 11px;
}

/* PRZYCISKI */

.cf-shell button {
    border-radius: 0 !important;
}

.cf-shell #cf-find-court,
.cf-shell #cf-generate,
.cf-shell #cf-print {
    background: #142641 !important;
    color: #e0bd7d !important;
    border: 1px solid #142641 !important;
}

.cf-shell #cf-generate,
.cf-shell #cf-keep-text {
    width: 100%;
    min-height: 48px;
    margin-bottom: 10px;
}

.cf-shell .cf-help {
    padding: 14px;
    background: white;
    border-left: 3px solid #c6a46a;
    color: #526277;
    font-size: 13px;
}

/* PANEL DOKUMENTU */

.cf-shell .cf-document-panel {
    padding: 20px;
    background: #e8edf3;
    border: 1px solid #d7e0eb;
}

.cf-shell .cf-document-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px;
    margin: -20px -20px 20px;
    background: #142641;
    color: white;
}

.cf-shell .cf-document-toolbar b {
    display: block;
    font: 400 22px Georgia,serif;
    color: white;
}

.cf-shell .cf-document-toolbar small {
    display: block;
    color: #cbd5e1;
    font-size: 12px;
}

.cf-shell .cf-document-toolbar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cf-shell .cf-document-toolbar button {
    min-height: 38px;
    padding: 8px 12px;
    background: white !important;
    color: #142641 !important;
    font-size: 12px;
}

.cf-shell .cf-document-toolbar #cf-print {
    background: #c6a46a !important;
    color: #142641 !important;
}

.cf-shell .cf-editor-hint {
    margin: 0 0 16px;
    padding: 12px;
    background: #fffaf0;
    border-left: 3px solid #c6a46a;
    color: #715326;
    font-size: 13px;
}

/* BIALA KARTKA DOKUMENTU */

.cf-shell .cf-paper-label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
}

.cf-shell textarea#cf-document {
    display: block !important;
    width: 100% !important;
    min-height: 950px;
    padding: clamp(20px,3vw,48px) !important;
    background: white !important;
    border: 1px solid #cbd5e1 !important;
    color: #172033 !important;
    font: 400 16px/1.65 "Times New Roman",serif !important;
    box-shadow: 0 3px 14px #1426410d;
    resize: vertical;
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

/* LISTA KONTROLNA */

.cf-shell .cf-checklist {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-top: 3px solid #c6a46a;
}

.cf-shell .cf-checklist h3 {
    margin: 0 0 10px;
    font: 400 23px Georgia,serif;
}

.cf-shell .cf-checklist p {
    color: #526277;
    font-size: 14px;
}

.cf-shell .cf-checklist a {
    color: #142641;
    font-weight: 600;
}

/* ZABEZPIECZENIE SZEROKOSCI STRONY */

body:has(main.cf-shell) #app,
body:has(main.cf-shell) .portal,
body:has(main.cf-shell) .shell,
body:has(main.cf-shell) .department-workspace {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

@media(min-width:1025px) {
    body:has(main.cf-shell) {
        padding-left: 280px !important;
        box-sizing: border-box;
    }

    body.pp-sidebar-collapsed:has(main.cf-shell) {
        padding-left: 64px !important;
    }

    body:has(main.cf-shell) #app,
    body:has(main.cf-shell) .shell {
        margin-left: 0 !important;
    }
}

/* RESPONSYWNOSC */

@media(max-width:1250px) {
    .cf-shell .cf-editor-layout {
        grid-template-columns: minmax(0,1fr);
    }

    .cf-shell .cf-catalog-layout {
        grid-template-columns: 220px minmax(0,1fr);
    }

    .cf-shell .cf-row {
        grid-template-columns: 48px minmax(0,1fr);
    }

    .cf-shell .cf-row-number {
        width: 48px;
    }

    .cf-shell .cf-row > a {
        grid-column: 2;
        justify-self: start;
    }
}

@media(max-width:1024px) {
    body:has(main.cf-shell) {
        padding-left: 0 !important;
    }

    .cf-shell .cf-sidebar {
        position: static;
    }
}

@media(max-width:760px) {
    main.cf-shell {
        padding: 12px !important;
    }

    .cf-shell .cf-title {
        padding: 24px;
    }

    .cf-shell .cf-workflow,
    .cf-shell .cf-catalog-layout,
    .cf-shell .cf-editor-title {
        grid-template-columns: minmax(0,1fr);
    }

    .cf-shell #cf-categories {
        display: grid;
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .cf-shell .cf-sidebar {
        padding: 12px;
    }

    .cf-shell .cf-row {
        padding: 14px;
        gap: 12px;
    }

    .cf-shell .cf-row h2 {
        font-size: 20px;
    }

    .cf-shell .cf-row > a {
        grid-column: 1 / -1;
        width: 100%;
    }

    .cf-shell .cf-section-body {
        padding: 14px;
    }

    .cf-shell textarea#cf-document {
        min-height: 700px;
        padding: 20px !important;
    }
}

@media(max-width:420px) {
    .cf-shell #cf-categories {
        grid-template-columns: minmax(0,1fr);
    }
}

