/** * pocket Invoice Style Sheet * * @project WHMCS * @version 1.0 * @author Amin Chavepour * @link http://www.designesia.ir/ */ :root { --color-primary: #53cea2; --color-lighter: #83f4cc; --color-lighter-2: #b1ffe3; --color-primary-dark: #1c6349; --white: #fff; --dark: #17191c; } @font-face { font-family: "IRANYekan"; src: url("../assets/IRANYekanXVF.woff2") format("woff-variations"), url("../assets/IRANYekanXVF.woff2") format("woff"); font-weight: 100 1000; font-display: fallback; } body { background-color: #fafafa; } body, h1, h2, h3, h4, h5, h6, button, input { font-family: "IRANYekan", tahoma; -moz-font-feature-settings: "ss02"; -webkit-font-feature-settings: "ss02"; font-feature-settings: "ss02"; font-variation-settings: "dots" 1; -moz-font-variation-settings: "dots" 1; -webkit-font-variation-settings: "dots" 1; } p, h1, h2, h3, h4, h5, h6 { margin: 0; } a, a:hover { text-decoration: none; } @media print { html, body { width: 750px; } } .flip { transform: scaleX(-1); } .invoice-container { background: var(--white); margin: 15px auto; padding: 15px 0; max-width: 850px; border-radius: 8px; box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); } .invoice-header { display: flex; align-items: center; justify-content: flex-end; margin-bottom: 80px; } .brand { position: relative; display: flex; flex-direction: column; align-items: center; margin-top: 10px; } .invoice-status { flex-grow: 1; margin-right: 10px; font-size: 16px; font-weight: 600; } .invoice-status .unpaid, .invoice-info__footer h3 .unpaid { color: #f05252; } .invoice-status .paid, .invoice-info__footer h3 .paid { color: #28a745; } .invoice-status .draft, .invoice-info__footer h3 .draft { color: #6c757d; } .invoice-status .refunded, .invoice-info__footer h3 .refunded { color: #17a2b8; } .invoice-status .cancelled, .invoice-info__footer h3 .cancelled { color: #ffc107; } .invoice-num span { color: #f05252; } .logo { position: absolute; display: flex; align-items: center; } .brand__logo { width: 150px; position: absolute; top: 5px; right: 60px; } .brand__name { position: absolute; top: 16px; right: 50px; font-size: 24px; font-weight: 600; } .invoice-info__header { margin-bottom: 20px; display: flex; align-items: center; position: relative; } .invoice-info__title, .invoice-details__title { position: absolute; top: 20px; right: 20px; font-size: 26px; font-weight: 800; color: var(--dark); } .line { position: relative; height: 2px; width: 59rem; background: repeating-linear-gradient( 90deg, var(--color-primary) 0 4px, #0000 0 10px ); } .polygon { width: 15px; background: var(--color-primary); aspect-ratio: 1; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); } .polygon-2 { position: absolute; right: 235px; width: 15px; background: var(--color-primary); aspect-ratio: 1; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); } .invoice-info__body { display: flex; margin-bottom: 40px; } .invoice-info__body__right, .invoice-info__body__left { width: 50%; padding: 10px; margin: 0 10px; border: 3px dashed var(--dark); border-radius: 14px; } .invoice-info__body__right { height: max-content; } .invoice-info__body__right .title { color: var(--color-primary); font-size: 20px; font-weight: 800; } .company-address, .client-address { font-size: 16px; font-weight: 500; color: var(--dark); } .company-address p, .client-address p { text-align: left; line-height: 30px; } /* PG tabs */ .tabs { border-radius: 14px; display: flex; flex-wrap: wrap; max-width: 700px; margin-bottom: 12px; background: var(--color-primary); } .input { position: absolute; opacity: 0; } .label { width: 100%; margin: 0 auto; margin-top: 10px; padding: 10px 20px; background: var(--color-lighter-2); cursor: pointer; font-weight: bold; font-size: 18px; color: var(--dark); border-radius: 8px; transition: background 0.1s, color 0.1s; } .input:focus + .label { z-index: 1; } .input:checked + .label { background: var(--color-primary-dark); color: var(--white); } @media (min-width: 600px) { .label { width: auto; } } .panel { margin-bottom: 0; display: none; padding: 15px; background: unset; } @media (min-width: 600px) { .panel { order: 99; } } .input:checked + .label + .panel { display: block; } .pgcheckbox:checked + .pgname { color: var(--dark); opacity: 1; transition: opacity 0.1s ease-in-out; } .pgname { color: var(--dark); opacity: 0.5; background: var(--color-lighter-2); padding: 20px 10px; border-radius: 8px; border: 2px solid var(--dark); } .walletpay form { display: flex; flex-direction: column; } .walletpay__paybtn, .paybtn input[type="submit"] { display: block; border: none; padding: 10px 15px; border-radius: 10px; background: var(--color-lighter-2); color: var(--color-primary-dark); font-size: 16px; font-weight: 600; margin-top: 12px; transition: background 0.1s ease-in-out; } .walletpay__paybtn:hover, .paybtn input[type="submit"]:hover { background: var(--color-lighter); } .invoice-info__footer { background: var(--color-primary); padding: 15px; border-radius: 10px; } .invoice-info__footer h3 { font-size: 15px; font-weight: 600; color: var(--dark); line-height: 2; } .invoice-info__footer h3 span { font-weight: 800; } .walletpay__title { font-size: 17px; font-weight: 500; color: var(--dark); margin-bottom: 12px; } .invoice-details { position: relative; margin-bottom: 30px; } .invoice-details__header { margin-bottom: 12px; } /* Invoice table */ table.invoice-details__table { width: 97%; background: var(--white); border: none; color: #6a6a6a; border-radius: 10px; margin: 0 auto; box-shadow: hsla(0, 0%, 74.9%, 0.35) 0 0 10px; } table.invoice-details__table td, table.invoice-details__table th { padding: 10px 15px; } table.invoice-details__table thead { font-size: 16px; font-weight: 600; color: var(--dark); } .invoice-table-header__desc { width: 70%; text-align: right; background: var(--color-primary); border-top-right-radius: 10px; } .invoice-table-header__amount, .invoice-details__table.trans thead tr td { text-align: center; background: var(--color-lighter); border-top-left-radius: 10px; } .cell-amount { text-align: center; } .cell-desc { border-left: 1px solid #9ca3af; } .invoice-details__table tbody .odd { background-color: #d1d5db; } .invoice-details__table.trans { margin-bottom: 30px; } .invoice-details__table.trans thead td, .invoice-details__table.trans tbody td { text-align: center; } .invoice-details__table.trans thead tr td { border-radius: 0; } .invoice-download-btn a { display: inline-flex; align-items: center; background: var(--color-lighter-2); margin: 0 12px; padding: 8px 10px; border-radius: 6px; transition: background 0.1s ease; } .invoice-download-btn a:hover { background: var(--color-primary); } .invoice-download-btn a span { font-weight: 700; color: var(--color-primary-dark); } .invoice-download-btn a img { width: 18px; margin-left: 5px; } .backhome a { background: var(--color-lighter-2); color: var(--color-primary-dark); text-align: center; padding: 10px 12px; border-radius: 8px; font-weight: 600; width: max-content; margin: 0 auto; display: block; } .nice-select { background-color: var(--color-lighter-2); width: 18rem; margin-bottom: 12px; border: none; text-align: right; } .nice-select .option { text-align: right; } .nice-select .option:hover, .nice-select .option.focus, .nice-select .option.selected.focus { background-color: var(--color-primary); color: var(--dark); } .nice-select .list { width: 100%; box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.04), 0px 8px 40px rgba(0, 0, 0, 0.08); } @media only screen and (max-width: 479px) { .nice-select, .walletpay__paybtn, .paybtn input[type="submit"] { width: 15rem; float: right; } .label { margin: 10px; } }