/* Spreadsheet123 Ltd. */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f7f7f7;
    color: #444;
    font: 15px/20px "Segoe UI", Arial, sans-serif;
}

[hidden],
.dis-none {
    display: none !important;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
    outline: 2px solid #0e71b8;
    outline-offset: 2px;
}

/* General elements */

ul,
ol,
dl {
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    padding: 0;
    color: #0d1d25;
    font-weight: normal;
}

h1 {
    font-size: 30px;
    line-height: 36px;
}

h2 {
    margin-bottom: 1%;
    font-size: 24px;
}

h3,
h4 {
    font-size: 20px;
}

p {
    margin: 10px 1%;
    color: #333;
    font-size: 16px;
    line-height: 1.7rem;
}

a:link,
a:visited {
    color: #555;
    text-decoration: none;
}

a:hover,
a:focus,
a:active {
    color: #0e71b8;
    text-decoration: none;
}

a img {
    border: 0;
}

.wrapper {
    margin: 0 auto;
}

a.button-primary {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 28px;
    background: #0e71b8;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    border-radius: 4px;
    transition: background-color .2s ease;
}

.button-primary:hover,
.button-primary:focus {
    background: #095c94;
    color: #fff !important;
    text-decoration: none;
}

.button-primary:visited {
    color: #fff !important;
}

/* Header and toolbar */

header > img {
    margin: 10px;
    display: block;
    max-width: 100%;
    height: auto;
}

.top-bar {
    min-height: 40px;
    background: #ccc;
    display: flow-root;
}

.ic {
    display: flex;
    width: 50px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #555;
    cursor: pointer;
}

.top-nav {
    float: left;
}

.ic::before {
    display: block;
    width: 24px;
    height: 24px;
    background-color: currentColor;
    content: "";
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
}

.ic.top-nav::before {
    mask-image: url("../images/menu.svg");
    -webkit-mask-image: url("../images/menu.svg");
}

.ic.search::before {
    mask-image: url("../images/search.svg");
    -webkit-mask-image: url("../images/search.svg");
}

.back.ic::before {
    mask-image: url("../images/back.svg");
    -webkit-mask-image: url("../images/back.svg");
}

.search-bar {
    display: inline-flex;
    float: right;
}

.top-nav:hover,
.search:hover,
.top-nav.active,
.back:hover {
    background-color: #555;
    color: #fff;
}

.back {
    display: flex;
    width: 80px;
    height: 40px;
    padding: 0 8px;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 0;
    background-color: transparent;
    box-shadow: none;
    color: #555;
    cursor: pointer;
    font-size: 18px;
    line-height: 40px;
    text-align: center;
    text-transform: uppercase;
}

.back:hover {
    background-color: #555;
    color: #fff;
}

.search-bar {
    display: inline-flex;
    float: right;
}

.search-inp {
    display: inline-block;
    width: 120px;
    margin: 5px;
    padding: 5px 10px;
}

.search-results-query {
    margin: -6px 0 18px;
    color: #777;
    text-align: left;
    font-size: 18px;
    font-weight: 500;
}

/* Navigation */

.navigation {
    display: none;
    clear: both;
}

.navigation.is-open {
    display: block;
}

.navigation > a {
    display: block;
    padding: 10px;
    border-bottom: 2px solid #fff;
    background: #ddd;
}

/* Main views */

.categories,
.about,
.help {
    position: relative;
    min-height: 650px;
    padding: 15px;
}

/* Category cards */

.categories .content {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.category-item {
    min-width: 0;
    background-color: #e1e1e1;
    text-align: center;
    opacity: 1;
    transition:
            opacity 0.2s ease,
            background-color 0.2s ease;
}

.category-item:hover {
    opacity: 0.85;
}

.category-link {
    display: flex;
    min-height: 150px;
    height: 100%;
    padding: 8px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    color: #555;
}

.category-link:hover,
.category-link:focus {
    color: #0e71b8;
}

.category-link:focus-visible {
    outline-offset: -2px;
}

.category-icon {
    display: block;
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    margin: 4px auto 8px;
    background:
            url("../images/category-sprite.png")
            no-repeat
            0 0;
    background-size: 60px 2400px;
}

.category-text {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.category-title {
    display: block;
    line-height: 20px;
}

.category-count {
    display: block;
    margin-top: 6px;
    color: #333;
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
}

/* Category sprite positions */

.budget {
    background-position: 0 -120px;
}

.business {
    background-position: 0 -180px;
}

.checklist {
    background-position: 0 -240px;
}

.inventory {
    background-position: 0 -300px;
}

.invoices {
    background-position: 0 -360px;
}

.project {
    background-position: 0 -420px;
}

.calendar {
    background-position: 0 -480px;
}

.planner {
    background-position: 0 -540px;
}

.cards {
    background-position: 0 -600px;
}

.debt {
    background-position: 0 -720px;
}

.loan {
    background-position: 0 -780px;
}

.family {
    background-position: 0 -840px;
}

.timesheets {
    background-position: 0 -900px;
}

.attendance {
    background-position: 0 -1080px;
}

.certificate {
    background-position: 0 -1140px;
}

.statements {
    background-position: 0 -1380px;
}

.sport {
    background-position: 0 -1440px;
}

.savings {
    background-position: 0 -60px;
}

.schedules {
    background-position: 0 0;
}

/* Category and search collections */

.results-category {
    padding: 15px;
}

.results-category > h2 {
    border-bottom: 3px solid #1f67a9;
    color: #1f67a9;
    font-size: 40px;
    line-height: 50px;
}

.collection-grid {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fill,
            minmax(180px, 1fr)
        );
    gap: 12px;
    margin-top: 15px;
}

.product-card {
    min-width: 0;
    border: 1px solid #ddd;
    background-color: #fff;
    transition:
            border-color 0.2s ease,
            background-color 0.2s ease;
}

.product-card:hover {
    border-color: #bbb;
    background-color: #e9e9e9;
}

.product-card-link {
    display: flex;
    height: 100%;
    padding: 12px;
    flex-direction: column;
    align-items: center;
    color: #555;
    text-align: center;
}

.product-card-link:focus-visible {
    outline-offset: -2px;
}

.product-card-image {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    text-align: center;
}

.product-card-image img {
    display: inline-block;
    width: auto;
    max-width: 100%;
    height: auto;
    padding: 3px;
    border: 1px solid #d1d1d1;
    background-color: #fff;
}

.product-card-title {
    color: #1f67a9;
    font-size: 18px;
    line-height: 23px;
}

/* Single product view */

.results-single {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 15px;
}

.product-navigation {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    margin-bottom: 12px;
    background-color: #e1e1e1;
}

.product-previous,
.product-next {
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: #1f67a9;
    cursor: pointer;
    font-size: 25px;
    line-height: 44px;
    text-align: center;
    transition:
            background-color 0.2s ease,
            color 0.2s ease;
}

.product-previous:hover,
.product-next:hover,
.product-previous:focus-visible,
.product-next:focus-visible {
    background-color: #d1d1d1;
    color: #11385b;
}

.product-previous:disabled,
.product-next:disabled {
    color: #999;
    cursor: default;
    opacity: 0.5;
}

.product-position {
    font-weight: 600;
    text-align: center;
}

.product-detail {
    width: 100%;
}

.product-title {
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 3px solid #688daa;
    font-size: 22px;
    line-height: 30px;
    text-align: center;
}

.product-image {
    width: 100%;
    margin-bottom: 15px;
    text-align: center;
}

.product-image img {
    display: inline-block;
    width: auto;
    max-width: 100%;
    height: auto;
    padding: 3px;
    border: 1px solid #d1d1d1;
    background-color: #fff;
}

.product-teaser {
    margin: 15px 0;
    color: #444;
    font-size: 15px;
    line-height: 23px;
}

.product-action {
    margin: 15px 0;
}

a.d-button {
    display: block;
    margin: 15px 0 5px;
    padding: 10px;
    background: #689f38;
    color: #fff;
    font-size: 20px;
    text-align: center;
    text-transform: uppercase;
}

a.d-button:visited {
    color: #fff;
}

a.d-button:hover,
a.d-button:focus {
    color: #fff;
    opacity: 0.8;
}

.via {
    display: block;
    margin-top: 4px;
    color: #666;
    font-size: 13px;
    font-weight: normal;
    text-align: center;
}

.product-specifications {
    margin-top: 20px;
}

.product-specifications h3 {
    margin: 0;
    padding: 8px;
    background-color: #d1d1d1;
    font-size: 18px;
}

.product-specifications dl {
    margin: 0;
}

.specification-row {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) minmax(0, 1fr);
    gap: 12px;
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

.specification-row dt {
    font-weight: 600;
}

.specification-row dd {
    margin: 0;
    text-align: right;
}

/* About and help links */

.info {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 5px;
    background:
            url("../images/info.svg")
            center / 18px 18px
            no-repeat;
    vertical-align: text-bottom;
}

/* Loading, empty and error states */

.loading-message,
.empty-message,
.error-message {
    margin: 20px 0;
    padding: 15px;
    text-align: center;
}

.loading-message,
.empty-message {
    background-color: #eee;
    color: #555;
}

.error-message {
    background-color: #f4dddd;
    color: #8a1f1f;
}

/* Toast notification */

.search-feedback {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    display: flex;
    max-width: 380px;
    padding: 14px 18px;
    align-items: center;
    gap: 12px;
    border-radius: 6px;
    background: #205c6b;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    color: #fff;
    font-size: 15px;
    line-height: 20px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-40px);
    transition:
            opacity 0.25s ease,
            transform 0.25s ease;
}

.search-feedback.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.search-feedback button {
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    opacity: 0.8;
}

.search-feedback button:hover,
.search-feedback button:focus {
    opacity: 1;
}

/*
|--------------------------------------------------------------------------
| Error Pages
|--------------------------------------------------------------------------
*/

.error-header {
    text-align: center;
    margin-bottom: 35px;
}

.error-header > a {
    display: inline-block;
    padding: 10px 0;
}

.error-page a {
    color: #0066cc;
    text-decoration: underline;
    font-weight: 500;
}

.error-page a:focus-visible {
    outline-offset: 3px;
}

.error-page a:hover,
.error-page a:focus {
    color: #004c99;
}

.error-page a:visited {
    color: #663399;
}

#footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #ddd;
    text-align: center;
    font-size: 0.875rem;
    color: #666;
}

.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    padding: 30px 10px;
    text-align: center;
}

.error-content {
    width: 100%;
    max-width: 520px;
}

.error-code {
    margin-bottom: 10px;
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
}

.error-content h1 {
    margin: 0 0 20px;
}

.error-content p {
    margin: 0 0 12px;
}

/* Responsive layout */

@media screen and (max-width: 1599px) {
    .categories .content {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media screen and (max-width: 1199px) {
    .categories .content {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .results-category > h2 {
        font-size: 24px;
        line-height: 34px;
    }
}

@media screen and (max-width: 799px) {
    .categories .content {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media screen and (max-width: 599px) {
    .categories .content,
    .collection-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .categories .content {
        gap: 6px;
    }

    .collection-grid {
        gap: 8px;
    }

    .category-link {
        min-height: 155px;
    }

    .product-card-link {
        padding: 8px;
    }

    .product-card-title {
        font-size: 16px;
        line-height: 21px;
    }

    .results-category > h2 {
        font-size: 24px;
        line-height: 34px;
    }

    .search-feedback {
        right: 10px;
        bottom: 10px;
        left: 10px;
        max-width: none;
    }
}

@media screen and (max-width: 420px) {
    .results-single {
        padding: 10px;
    }

    .specification-row {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .specification-row dd {
        text-align: left;
    }
}

@media screen and (max-width: 360px) {
    .collection-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 320px) {
    .categories {
        padding: 10px;
    }

    .category-link {
        padding: 6px;
    }

    .category-title {
        font-size: 14px;
        line-height: 18px;
    }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    .category-item,
    .product-card,
    .product-previous,
    .product-next,
    .search-feedback {
        transition: none;
    }
}