:root {
    --doc-shadow: 0 10px 34px rgba(23,55,112,.075)
}

.document-page {
    background: #fff
}

.document-hero {
    padding: 24px 0 36px;
    background: linear-gradient(135deg,#f2f6ff,#fbfdff);
    border-bottom: 1px solid var(--line)
}

.document-hero.compact {
    padding: 20px 0
}

.document-hero-row {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.doc-eyebrow {
    font-size: 11px;
    font-weight: 700;
    color: var(--blue2);
    letter-spacing: .11em;
    text-transform: uppercase
}

.document-hero h1 {
    font-size: clamp(27px,3vw,42px);
    font-weight: 800;
    color: var(--blue);
    margin: 8px 0 9px
}

.document-hero p {
    color: var(--muted);
    margin: 0;
    line-height: 1.7
}

.hero-doc-icon {
    font-size: 90px;
    color: #d9e6fa;
    margin-right: 6%
}

.document-search-panel {
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--doc-shadow)
}

.doc-search-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3,1fr);
    gap: 15px
}

.doc-field {
    display: grid;
    gap: 8px
}

.doc-field>span {
    font-size: 12px;
    color: #55627a;
    font-weight: 650
}

.doc-field select,.field-control {
    width: 100%;
    height: 46px;
    border: 1px solid #dfe5ef;
    border-radius: 8px;
    background: #fff;
    color: #4c5870
}

.doc-field select {
    padding: 0 12px;
    font-size: 12px
}

.field-control {
    display: flex;
    align-items: center
}

.field-control i {
    color: #8b96a9;
    margin-left: 13px
}

.field-control input {
    border: 0;
    outline: 0;
    min-width: 0;
    flex: 1;
    padding: 0 12px;
    font-size: 12px
}

.doc-search-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 18px
}

.doc-search-actions :is(button,a) {
    height: 42px;
    padding: 0 20px;
    border-radius: 7px;
    font-weight: 650;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none
}

.doc-reset {
    border: 1px solid var(--line);
    background: #fff;
    color: #536078
}

.doc-submit {
    border: 1px solid var(--blue);
    background: var(--blue);
    color: #fff
}

.document-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 7px;
    margin-bottom: 14px;
    scrollbar-width: none
}

.document-tabs::-webkit-scrollbar {
    display: none
}

.document-tabs :is(button,a) {
    flex: 0 0 auto;
    height: 43px;
    padding: 0 17px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: #536078;
    font-size: 11px;
    font-weight: 650;
    display: inline-flex;
    align-items: center;
    text-decoration: none
}

.document-tabs :is(button,a).active {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff
}

.document-result-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 2px solid var(--blue)
}

.document-result-head h2 {
    font-size: 20px;
    color: var(--blue);
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 4px
}

.document-result-head span {
    font-size: 12px;
    color: var(--muted)
}

.document-result-head select {
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 0 10px;
    color: #5a657b;
    font-size: 12px;
}

.document-item {
    display: grid;
    grid-template-columns: 64px minmax(0,1fr) 42px;
    gap: 17px;
    padding: 21px 0;
    border-bottom: 1px solid var(--line)
}

.doc-type-icon {
    width: 64px;
    height: 74px;
    border-radius: 9px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: #fff1f1;
    color: #d92d36
}

.doc-type-icon i {
    font-size: 31px
}

.doc-type-icon span {
    font-size: 11px;
    font-weight: 800
}

.doc-type-icon.word {
    background: #edf4ff;
    color: #1769d4
}

.doc-type-icon.excel {
    background: #edf9f2;
    color: #15935c
}

.doc-item-top {
    display: flex;
    gap: 8px;
    align-items: center
}

.doc-kind,.doc-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase
}

.doc-kind {
    background: #edf3ff;
    color: var(--blue)
}

.doc-status.active {
    background: #eaf8f1;
    color: #138757
}

.doc-status.expired {
    background: #f1f2f5;
    color: #7a8495
}

.doc-item-main h3 {
    font-size: 15px;
    line-height: 1.6;
    font-weight: 700;
    margin: 9px 0 13px
}

.doc-item-main h3 a:hover {
    color: var(--blue2)
}

.doc-properties {
    display: grid;
    grid-template-columns: .8fr .9fr 1.4fr;
    gap: 13px
}

.doc-properties span {
    display: grid;
    gap: 3px
}

.doc-properties small {
    font-size: 12px;
    color: #8a94a8
}

.doc-properties b {
    font-size: 12px;
    color: #59657b;
    font-weight: 600
}

.doc-item-actions {
    display: grid;
    align-content: center;
    gap: 7px
}

.doc-item-actions a,.doc-item-actions button {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    color: var(--blue);
    display: grid;
    place-items: center
}

.doc-item-actions a:hover,.doc-item-actions button:hover {
    background: var(--blue);
    color: #fff
}

.document-empty {
    text-align: center;
    padding: 55px 20px;
    color: #758096
}

.document-empty>i {
    font-size: 50px;
    color: #c7d3e7
}

.document-empty h3 {
    font-size: 17px;
    color: #42506a;
    margin: 12px 0 5px
}

.document-sidebar {
    top: 20px;
    display: grid;
    gap: 18px
}

.doc-stat-box {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 8px
}

.doc-stat-box>div {
    padding: 16px 7px;
    border-radius: 9px;
    background: linear-gradient(145deg,#0a52c5,#063587);
    color: #fff;
    text-align: center
}

.doc-stat-box i {
    font-size: 23px
}

.doc-stat-box span {
    display: grid;
    font-size: 9px;
    margin-top: 7px;
    color: #dce8fb
}

.doc-stat-box strong {
    font-size: 17px;
    color: #fff
}

.doc-side-card {
    padding: 21px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(22,53,108,.05)
}

.doc-side-card>h2 {
    font-size: 15px;
    color: var(--blue);
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 15px;
    padding-bottom: 11px;
    border-bottom: 2px solid var(--line)
}

.doc-side-card ul {
    list-style: none;
    margin: 0;
    padding: 0
}

.doc-side-card li+li {
    border-top: 1px dashed var(--line)
}

.doc-side-card li :is(a,button) {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 11px 0;
    border: 0;
    background: transparent;
    font: inherit;
    text-align: left;
    color: #4e5a70
}

.doc-side-card li span {
    display: flex;
    gap: 9px
}

.doc-side-card li b {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 12px;
    background: #edf3ff;
    color: var(--blue)
}

.popular-doc {
    display: grid;
    grid-template-columns: 35px 1fr;
    gap: 11px;
    padding: 11px 0
}

.popular-doc+ .popular-doc {
    border-top: 1px dashed var(--line)
}

.popular-doc>i {
    font-size: 27px;
    color: #e04048
}

.popular-doc h3 {
    font-size: 13px;
    line-height: 1.55;
    margin: 0 0 4px;
    font-weight: 650
}

.popular-doc small {
    font-size: 12px;
    color: #8b95a8
}

.document-help {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 11px;
    align-items: center;
    padding: 18px;
    border-radius: 10px;
    background: #edf4ff;
    color: var(--blue)
}

.document-help>i:first-child {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--blue);
    color: #fff;
    font-size: 19px
}

.document-help span {
    display: grid;
    font-size: 12px;
    color: #6f7d94
}

.document-help strong {
    font-size: 15px;
    color: var(--blue)
}

.document-detail-card {
    padding: clamp(22px,4vw,42px);
    border: 1px solid var(--line);
    border-radius: 13px;
    box-shadow: var(--doc-shadow)
}

.detail-doc-heading {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 21px
}

.large-file-icon {
    width: 88px;
    height: 102px;
    border-radius: 11px;
    background: #fff0f1;
    color: #db3039;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center
}

.large-file-icon i {
    font-size: 48px
}

.large-file-icon span {
    font-size: 10px;
    font-weight: 800
}

.detail-badges {
    display: flex;
    gap: 7px
}

.detail-badges span {
    padding: 5px 9px;
    border-radius: 5px;
    background: #edf3ff;
    color: var(--blue);
    font-size: 9px;
    font-weight: 750;
    text-transform: uppercase
}

.detail-badges .valid {
    background: #eaf8f1;
    color: #128659
}

.detail-doc-heading h1 {
    font-size: clamp(21px,2.1vw,29px);
    line-height: 1.5;
    font-weight: 800;
    color: #182442;
    margin: 12px 0 0
}

.document-code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 25px 0 0;
    padding: 13px 16px;
    border-radius: 8px;
    background: #f5f7fb;
    color: #536078
}

.document-code button {
    border: 0;
    background: transparent;
    color: var(--blue);
    font-size: 10px
}

.document-info-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    margin: 22px 0;
    border: 1px solid var(--line);
    border-radius: 9px;
    overflow: hidden
}

.document-info-grid>div {
    display: grid;
    gap: 5px;
    padding: 16px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line)
}

.document-info-grid>div:nth-child(3n) {
    border-right: 0
}

.document-info-grid>div:nth-last-child(-n+3) {
    border-bottom: 0
}

.document-info-grid small {
    font-size: 11px;
    color: #8993a6
}

.document-info-grid strong {
    font-size: 14px;
    color: #3d4960
}

.detail-tabs {
    display: flex;
    border-bottom: 1px solid var(--line);
    gap: 5px
}

.detail-tabs button {
    border: 0;
    background: transparent;
    padding: 13px 17px;
    color: #667187;
    font-size: 13px;
    font-weight: 650;
    border-bottom: 3px solid transparent
}

.detail-tabs button.active {
    color: var(--blue);
    border-bottom-color: var(--blue2)
}

.document-tab-content {
    padding: 25px 0
}

.document-tab-content h2 {
    font-size: 17px;
    color: var(--blue);
    font-weight: 750;
    margin: 0 0 12px
}

.document-tab-content p,.document-tab-content li {
    font-size: 13px;
    line-height: 1.8;
    color: #4a566c
}

.document-tab-content ul {
    padding-left: 20px
}

.document-note {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-radius: 8px;
    background: #edf4ff;
    color: var(--blue);
    margin-top: 20px
}

.document-note p {
    margin: 0
}

.fulltext-preview {
    text-align: center;
    padding: 35px 20px;
    background: #f7f9fc;
    border-radius: 9px
}

.fulltext-preview>i {
    font-size: 48px;
    color: #9db2d5
}

.fulltext-preview :is(button,a) {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    border-radius: 7px;
    background: var(--blue);
    color: #fff;
    padding: 10px 18px;
    text-decoration: none
}

.history-line {
    display: grid;
    grid-template-columns: 15px 1fr;
    gap: 13px;
    padding-bottom: 20px
}

.history-line>span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #19a56c;
    margin-top: 4px;
    box-shadow: 0 0 0 5px #e6f7f0
}

.history-line p {
    margin: 4px 0 0
}

.history-line.muted>span {
    background: #bac4d4;
    box-shadow: 0 0 0 5px #f1f3f6
}

.attachment-section {
    border-top: 1px solid var(--line);
    padding-top: 22px
}

.attachment-title {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.attachment-title h2 {
    font-size: 16px;
    color: var(--blue);
    font-weight: 750
}

.attachment-title span {
    font-size: 11px;
    color: #8994a7
}

.attachment-item {
    display: grid;
    grid-template-columns: 43px 1fr auto;
    gap: 13px;
    align-items: center;
    padding: 13px 0;
    border-top: 1px dashed var(--line)
}

.attachment-item>i {
    font-size: 35px
}

.attachment-item .pdf {
    color: #db343d
}

.attachment-item .excel {
    color: #15935c
}

.attachment-item h3 {
    font-size: 13px;
    margin: 0 0 4px
}

.attachment-item span {
    font-size: 12px;
    color: #8994a7
}

.attachment-item :is(button,a) {
    height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    color: var(--blue);
    font-size: 10px;
    padding: 0 12px;
    text-decoration: none
}

.detail-share {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 11px;
}

.detail-share>div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px
}

.detail-share a,.detail-share button {
    border: 0;
    background: #f1f4f9;
    color: #526079;
    padding: 6px 9px;
    border-radius: 15px
}

.related-documents {
    margin-top: 30px
}

.related-documents>a {
    display: grid;
    grid-template-columns: 30px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 9px;
    background: #fff
}

.related-documents>a>i {
    font-size: 25px;
    color: #d93842
}

.related-documents>a span {
    font-size: 13px;
    line-height: 1.55
}

.related-documents>a small {
    font-size: 12px;
    color: #8b95a7
}

.detail-action-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 11px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    box-shadow: var(--doc-shadow)
}

.detail-action-card :is(button,a) {
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    color: var(--blue);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none
}

.detail-action-card .primary {
    grid-column: 1/-1;
    background: var(--blue);
    color: #fff;
    border-color: var(--blue)
}

.detail-stats {
    grid-column: 1/-1;
    display: flex;
    justify-content: space-around;
    padding-top: 13px;
    border-top: 1px solid var(--line);
    margin-top: 5px
}

.detail-stats span {
    display: grid;
    text-align: center;
    font-size: 11px;
    color: #8993a6
}

.detail-stats i {
    color: var(--blue);
    font-size: 18px
}

.detail-stats b {
    font-size: 14px;
    color: #344058
}

.extra-info {
    margin: 0
}

.extra-info>div {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 12px;
}

.extra-info>div:last-child {
    border: 0
}

.extra-info dt {
    color: #8993a6;
    font-weight: 500
}

.extra-info dd {
    margin: 0;
    color: #3f4b61;
    font-weight: 650
}

@media(max-width: 1199px) {
    .document-sidebar {
        position:static!important
    }

    .doc-search-grid {
        grid-template-columns: repeat(2,1fr)
    }

    .doc-keyword {
        grid-column: 1/-1
    }
}

@media(max-width: 767px) {
    .document-hero {
        padding:16px 0 25px
    }

    .hero-doc-icon {
        display: none
    }

    .document-hero h1 {
        font-size: 24px
    }

    .document-hero p {
        font-size: 11px
    }

    .document-content.section,.document-detail-page.section {
        padding-top: 20px
    }

    .document-search-panel {
        padding: 15px
    }

    .doc-search-grid {
        grid-template-columns: 1fr;
        gap: 11px
    }

    .doc-keyword {
        grid-column: auto
    }

    .doc-search-actions {
        display: grid;
        grid-template-columns: 1fr 1fr
    }

    .doc-search-actions :is(button,a) {
        padding: 0 8px
    }

    .document-tabs {
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px
    }

    .document-result-head h2 {
        font-size: 15px
    }

    .document-result-head select {
        max-width: 130px
    }

    .document-item {
        grid-template-columns: 48px minmax(0,1fr);
        gap: 11px;
        padding: 16px 0
    }

    .doc-type-icon {
        width: 48px;
        height: 57px
    }

    .doc-type-icon i {
        font-size: 24px
    }

    .doc-item-actions {
        grid-column: 2;
        display: flex
    }

    .doc-item-actions a,.doc-item-actions button {
        width: 34px;
        height: 34px
    }

    .doc-item-main h3 {
        font-size: 12px;
        margin: 8px 0 10px
    }

    .doc-properties {
        grid-template-columns: 1fr 1fr
    }

    .doc-properties span:last-child {
        grid-column: 1/-1
    }

    .doc-stat-box>div {
        padding: 13px 4px
    }

    .doc-side-card {
        padding: 17px
    }

    .detail-doc-heading {
        grid-template-columns: 58px 1fr;
        gap: 13px
    }

    .large-file-icon {
        width: 58px;
        height: 70px
    }

    .large-file-icon i {
        font-size: 32px
    }

    .detail-doc-heading h1 {
        font-size: 19px
    }

    .document-detail-card {
        padding: 17px
    }

    .document-code {
        font-size: 10px;
        padding: 11px
    }

    .document-info-grid {
        grid-template-columns: 1fr 1fr
    }

    .document-info-grid>div,.document-info-grid>div:nth-child(3n),.document-info-grid>div:nth-last-child(-n+3) {
        border-right: 1px solid var(--line);
        border-bottom: 1px solid var(--line)
    }

    .document-info-grid>div:nth-child(2n) {
        border-right: 0
    }

    .document-info-grid>div:nth-last-child(-n+2) {
        border-bottom: 0
    }

    .detail-tabs {
        overflow-x: auto
    }

    .detail-tabs button {
        flex: 0 0 auto;
        padding: 12px
    }

    .document-tab-content {
        padding: 19px 0
    }

    .attachment-item {
        grid-template-columns: 38px 1fr auto
    }

    .attachment-item button span {
        display: none
    }

    .detail-share {
        align-items: flex-start;
        flex-direction: column
    }

    .related-documents>a {
        grid-template-columns: 28px 1fr
    }

    .related-documents>a small {
        display: none
    }
}

@media print {
    header,.smart-search,.footer,.backtop,.video-modal,.document-sidebar,.detail-share,.related-documents,.detail-action-card {
        display: none!important
    }

    .document-hero {
        padding: 0;
        background: #fff
    }

    .document-detail-page {
        padding: 0
    }

    .document-detail-card {
        border: 0;
        box-shadow: none;
        padding: 0
    }

    .attachment-item button {
        display: none
    }
}
