body {
    background-color: #fff;
    color: #2f3538;
    margin: 0px;
    font-family: "Roboto", sans-serif;
    overflow-x: hidden;
    position: relative;
}

img {
    vertical-align: middle;
    border-style: none;
}

a:hover {
    text-decoration: none;
}

#synesto-header {
    position: fixed;
    width: 100%;
    height: 70px;
    border-bottom: 1px solid #f8f8f8;
    background: #fff;
    z-index: 1000;
    -webkit-box-shadow: 0px 10px 10px -10px rgba(230, 230, 230, 1);
    -moz-box-shadow: 0px 10px 10px -10px rgba(230, 230, 230, 1);
    box-shadow: 0px 10px 10px -10px rgba(230, 230, 230, 1);
}

#synesto-header > header {
    position: relative;
    height: 100%;
    text-align: center;
}

#synesto-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 23px;
    transform: translate(-50%, -50%);
}

#synesto-header-manage {
    height: 100%;
}

#synesto-search {
    height: 100%;
}

#synesto-search > div {
    position: relative;
    width: 100%;
    height: 44px;
    background: #f3f6fb;
    border-radius: 10px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#synesto-search .search-icon,
#synesto-search .settings-icon {
    position: absolute;
    top: 50%;
    width: 50px;
    font-size: 20px;
    padding-left: 17px;
    padding-right: 17px;
    transform: translate(0%, -50%);
}

#synesto-search .settings-icon {
    right: 5px !important;
    width: 43px;
    padding-left: 12px;
    padding-top: 2px;
    padding-bottom: 2px;
    padding-right: 12px;
    margin-left: 9px;
    border-radius: 8px;
}

#synesto-search .settings-icon:hover {
    background-color: #fff;
    cursor: pointer;
}

#synesto-search .search-icon {
    left: 0px;
}

#synesto-search .settings-icon {
    right: 0px;
}

#synesto-search .settings-icon:hover {
    background-color: #fff;
}

#synesto-search input[type="text"] {
    width: calc(100% - 100px);
    height: 100%;
    border: none;
    background: transparent;
    margin: 0px 50px 0px 50px;
}

#synesto-search input[type="text"]:focus {
    outline: none;
}

#synesto-header-nav,
#synesto-header-account {
    list-style-type: none;
    display: flex;
    margin-top: 12px;
    padding: 0px;
}

#synesto-header-nav li {
    float: left;
    margin: 0px 5px;
}

#synesto-header-nav li.option {
    width: 40px;
    height: 40px;
    background-size: 25px 25px;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    border-radius: 8px;
}

#synesto-header-nav li.option.support {
    background-image: url(./../img/question-circle.svg);
}

#synesto-header-nav li.option.settings {
    background-image: url(./../img/gear.svg);
}

#synesto-header-nav li.option.notifications {
    background-image: url(./../img/bell.svg);
}

#synesto-header-nav li.option:hover {
    background-color: #f3f6fb;
    cursor: pointer;
}

.synesto-desktop-avatar-wrap {
    position: relative;
    margin-left: 5px;
    margin-top: 12px;
}

.synesto-desktop-avatar {
    width: 40px;
    height: 40px;
    background-size: cover;
    background-image: url("https://preview.keenthemes.com/metronic8/demo1/assets/media/avatars/300-1.jpg");
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color .15s ease;
    padding: 0;
}

.synesto-desktop-avatar:hover {
    border-color: #47a1e2;
}

.synesto-desktop-avatar-wrap .synesto-avatar-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
}

#synesto-apps {
    position: fixed;
    left: 0px;
    width: 70px;
    height: 100%;
    background: #f3f6fb;
    border-right: 1px solid #f8f8f8;
    padding-top: 70px;
}

#synesto-apps ul {
    list-style-type: none;
    padding: 0px;
    margin: 0px;
}

/* ── Module color palette ── */
#synesto-apps li.dashboard   { --mod-color: #3b82f6; }
#synesto-apps li.accounting  { --mod-color: #28a745; }
#synesto-apps li.ecommerce   { --mod-color: #8e44ad; }
#synesto-apps li.mailbox     { --mod-color: #248ad3; }
#synesto-apps li.webmail     { --mod-color: #248ad3; }
#synesto-apps li.invoice     { --mod-color: #248ad3; }
#synesto-apps li.server      { --mod-color: #6c757d; }
#synesto-apps li.document    { --mod-color: #e67e22; }
#synesto-apps li.contact     { --mod-color: #0d6efd; }
#synesto-apps li.chat        { --mod-color: #e91e8a; }
#synesto-apps li.zadania     { --mod-color: #17a2b8; }
#synesto-apps li.task        { --mod-color: #17a2b8; }
#synesto-apps li.project     { --mod-color: #6f42c1; }
#synesto-apps li.user        { --mod-color: #fd7e14; }

#synesto-apps li {
    position: relative;
    text-align: center;
    font-size: 11px;
    border-bottom: 1px solid #f8f8f8;
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: 50% 30%;
    border-left: 3px solid transparent;
    transition: border-color .15s ease, background-color .15s ease;
}

#synesto-apps li.dashboard {
    background-image: url(./../img/speedometer2.svg);
}

#synesto-apps li.accounting {
    background-image: url(./../img/accounting.png);
}

#synesto-apps li.ecommerce {
    background-image: url(./../img/ecommerce.png);
}

#synesto-apps li.mailbox,
#synesto-apps li.webmail {
    background-image: url(./../img/envelope-at.svg);
}

#synesto-apps li.invoice {
    background-image: url(./../img/envelope-at.svg);
}

#synesto-apps li.server {
    background-image: url(./../img/cloud.svg);
}

#synesto-apps li.document {
    background-image: url(./../img/folder.svg);
}

#synesto-apps li.contact {
    background-image: url(./../img/person-vcard.svg);
}

#synesto-apps .chat {
    background-image: url(./../img/chat.svg);
}

#synesto-apps .task,
#synesto-apps .zadania {
    background-image: url(./../img/card-checklist.svg);
}

#synesto-apps .project {
    background-image: url(./../img/briefcase.svg);
}

#synesto-apps .user {
    background-image: url(./../img/people.svg);
}

#synesto-apps li:hover {
    background-color: #fff;
    border-left-color: var(--mod-color, #47a1e2);
    cursor: pointer;
}

#synesto-apps li.selected {
    background-color: #fff;
    border-left-color: var(--mod-color, #47a1e2);
    cursor: pointer;
}

#synesto-apps li > a {
    display: block;
    width: 100%;
    height: 100%;
    padding: 45px 0px 10px 0px;
    text-decoration: none;
    color: inherit;
    background-color: transparent;
}

#synesto-apps li span.badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--mod-color, #47a1e2);
    color: #fff;
    padding: 3px 5px;
    font-size: 10px;
    border-radius: 50%;
    font-weight: normal;
}

#mailbox-content {
}

.synesto-content {
    position: absolute;
    top: 70px;
    left: 70px;
    width: calc(100% - 70px);
}

/* ── Mail account switcher ── */
.synesto-mail-account-switcher {
    padding: 8px 15px 12px;
    border-top: 1px solid #eee;
}
.synesto-mail-account-switcher .form-select {
    font-size: 13px;
    background: #f8f9fa;
    border-color: #e5e7eb;
    color: #374151;
}

#synesto-mail .synesto-mail-menu,
#synesto-invoice .synesto-invoice-menu,
#synesto-document .synesto-document-menu {
    list-style-type: none;
    padding: 0px 10px 0px 0px;
    margin: 15px 0px 0px 0px;
}

#synesto-invoice .synesto-invoice-menu,
#synesto-document .synesto-document-menu {
    margin: 5px 0px 0px 0px;
}

#synesto-invoice #synesto-invoice-menus,
#synesto-document #synesto-document-menus {
    height: calc(100vh - 85px);
    overflow: auto;
    margin-top: 10px;
}

#synesto-invoice .synesto-invoice-menu,
#synesto-document .synesto-document-menu {
    position: sticky;
    top: 0px;
}


#synesto-mail .synesto-mail-menu li,
#synesto-invoice .synesto-invoice-menu li,
#synesto-invoice .synesto-invoice-menu > a,
#synesto-document .synesto-document-menu li {
    padding: 12px 5px 12px 60px;
    border-bottom: 1px solid #f8f8f8;
    margin: 5px;
}

#synesto-invoice .synesto-invoice-menu > a {
    margin-top: 0px !important;
    margin-bottom: 5px;
}

#synesto-invoice .synesto-invoice-menu > a {
    float: left;
    width: 100%;
    color: #2f3538;
}

#synesto-mail .synesto-mail-menu li span,
#synesto-invoice .synesto-invoice-menu li span,
#synesto-invoice .synesto-invoice-menu a span,
#synesto-document .synesto-document-menu li span {
    float: right;
    font-weight: normal;
    font-size: 10px;
    margin-right: 8px;
    color: #7d7d7d;
    border-radius: 10px;
    padding: 3px 5px;
}

#synesto-invoice .synesto-invoice-menu > a > div {
    float: left;
}

#synesto-mail .synesto-mail-menu li.create {
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: 20px 50%;
    background-image: url(./../img/envelope.svg);
    font-size: 13px;
    background-color: #eef7ff !important;
    color: #2f3538;
    border: 1px solid #d4e4ef !important;
    border-radius: 8px;
}

#synesto-invoice .synesto-invoice-menu a.create,
#synesto-document .synesto-document-menu li.create {
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: 20px 50%;
    background-image: url(./../img/plus-lg.svg);
    background-color: #eef7ff !important;
    border-color: #d4e4ef !important;
}



/* Hide sidebar menu icons for all items except .create */
#synesto-invoice .synesto-invoice-menu a:not(.create) {
    background-image: none !important;
}

#synesto-mail .synesto-mail-menu li.mailbox,
#synesto-invoice .synesto-invoice-menu a.mailbox,
#synesto-document .synesto-document-menu li.mailbox {
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: 20px 50%;
    background-image: url(./../img/envelope-paper.svg);
    font-size: 13px;
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
    border-top: 1px solid #fff;
}

#synesto-mail .synesto-mail-menu li.trash,
#synesto-invoice .synesto-invoice-menu a.trash,
#synesto-document .synesto-document-menu li.trash {
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: 20px 50%;
    background-image: url(./../img/trash3.svg);
    font-size: 13px;
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
    border-top: 1px solid #fff;
}

#synesto-mail .synesto-mail-menu li.send,
#synesto-invoice .synesto-invoice-menu a.send,
#synesto-document .synesto-document-menu li.send {
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: 20px 50%;
    background-image: url(./../img/send.svg);
    font-size: 13px;
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
    border-top: 1px solid #fff;
}

#synesto-mail .synesto-mail-menu li.archive,
#synesto-invoice .synesto-invoice-menu a.archive,
#synesto-document .synesto-document-menu li.archive {
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: 20px 50%;
    background-image: url(./../img/suitcase-lg.svg);
    font-size: 13px;
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
    border-top: 1px solid #fff;
}

#synesto-mail .synesto-mail-menu li.working-copy {
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: 20px 50%;
    background-image: url(./../img/floppy.svg);
    font-size: 13px;
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
    border-top: 1px solid #fff;
}

#synesto-mail .synesto-mail-menu li.spam {
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: 20px 50%;
    background-image: url(./../img/shield-exclamation.svg);
    font-size: 13px;
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
    border-top: 1px solid #fff;
}

#synesto-mail .synesto-mail-menu li.folder {
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: 20px 50%;
    background-image: url(./../img/folder.svg);
    font-size: 13px;
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
    border-top: 1px solid #fff;
}

#synesto-mail .synesto-mail-menu li.settings {
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: 20px 50%;
    background-image: url(./../img/gear.svg);
    font-size: 13px;
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
    border-top: 1px solid #fff;
}

#synesto-invoice .synesto-invoice-menu a.corrections {
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: 20px 50%;
    background-image: url(./../img/arrow-return-left.svg);
    font-size: 13px;
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
    border-top: 1px solid #fff;
}

#synesto-invoice .synesto-invoice-menu a.cost {
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: 20px 50%;
    background-image: url(./../img/briefcase.svg);
    font-size: 13px;
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
    border-top: 1px solid #fff;
}

#synesto-invoice .synesto-invoice-menu a.paid {
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: 20px 50%;
    background-image: url(./../img/card-checklist.svg);
    font-size: 13px;
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
    border-top: 1px solid #fff;
}

#synesto-invoice .synesto-invoice-menu a.unpaid {
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: 20px 50%;
    background-image: url(./../img/bookmark.svg);
    font-size: 13px;
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
    border-top: 1px solid #fff;
}

#synesto-mail .synesto-mail-menu li.working-copy,
#synesto-invoice .synesto-invoice-menu li.working-copy,
#synesto-invoice .synesto-invoice-menu a.working-copy,
#synesto-document .synesto-document-menu li.working-copy {
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: 20px 50%;
    background-image: url(./../img/highlighter.svg);
    font-size: 13px;
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
    border-top: 1px solid #fff;
}

#synesto-invoice .synesto-invoice-menu a.people {
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: 20px 50%;
    background-image: url(./../img/people.svg);
    font-size: 13px;
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
    border-top: 1px solid #fff;
}

#synesto-invoice .synesto-invoice-menu a.person-plus {
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: 20px 50%;
    background-image: url(./../img/person-plus.svg);
    font-size: 13px;
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
    border-top: 1px solid #fff;
}

#synesto-invoice .synesto-invoice-menu a.person-check {
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: 20px 50%;
    background-image: url(./../img/person-check.svg);
    font-size: 13px;
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
    border-top: 1px solid #fff;
}

#synesto-invoice .synesto-invoice-menu a.person-dash {
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: 20px 50%;
    background-image: url(./../img/person-dash.svg);
    font-size: 13px;
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
    border-top: 1px solid #fff;
}

#synesto-invoice .synesto-invoice-menu a.person-vcard {
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: 20px 50%;
    background-image: url(./../img/person-vcard.svg);
    font-size: 13px;
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
    border-top: 1px solid #fff;
}

#synesto-invoice .synesto-invoice-menu a.bookmarks {
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: 20px 50%;
    background-image: url(./../img/bookmarks.svg);
    font-size: 13px;
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
    border-top: 1px solid #fff;
}

#synesto-invoice .synesto-invoice-menu a.bookmark-plus {
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: 20px 50%;
    background-image: url(./../img/bookmark-plus.svg);
    font-size: 13px;
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
    border-top: 1px solid #fff;
}

#synesto-invoice .synesto-invoice-menu a.folder {
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: 20px 50%;
    background-image: url(./../img/folder.svg);
    font-size: 13px;
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
    border-top: 1px solid #fff;
}

#synesto-mail .synesto-mail-menu.synesto-mail-label-menu li,
#synesto-invoice .synesto-invoice-menu.synesto-invoice-label-menu li,
#synesto-document .synesto-document-menu.synesto-document-label-menu li {
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: 20px 50%;
    background-image: url(./../img/bookmark.svg);
    font-size: 13px;
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
    border-top: 1px solid #fff;
}

#synesto-mail .synesto-mail-menu li.selected,
#synesto-mail .synesto-mail-menu li:hover,
#synesto-invoice .synesto-invoice-menu li.selected,
#synesto-invoice .synesto-invoice-menu li:hover,
#synesto-invoice .synesto-invoice-menu a.selected,
#synesto-invoice .synesto-invoice-menu a:hover,
#synesto-document .synesto-document-menu li.selected,
#synesto-document .synesto-document-menu li:hover {
    background-color: #fbfbfb;
    border-radius: 10px;
    /* color: #fff; */
    font-weight: bold;
    border: 1px solid #e9e9e9;
    cursor: pointer;
    color: #2f3538;
}

#synesto-invoice .synesto-invoice-menu a.selected,
#synesto-invoice .synesto-invoice-menu a:hover {
    width: calc(100% - 10px);
    /*background: transparent;*/
}

#synesto-invoice .synesto-invoice-menu a.selected:not(.synesto-acc-trigger) {
    border-color: #d4e4ef !important;
    background-color: #eef7ff !important;
}

#synesto-mail-menus,
#synesto-invoice-menus,
#synesto-document-menus,
#synesto-mail-mailbox,
#synesto-mail-message,
#synesto-create-mail-message,
#synesto-invoices,
#synesto-documents {
    position: relative;
    float: left;
    border-right: 1px solid #f8f8f8;
    height: calc(100vh - 80px);
}

#synesto-mail-menus {
    overflow-y: auto;
    overflow-x: hidden;
}

#synesto-mail-mailbox,
#synesto-mail-message {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#synesto-mail-mailbox .synesto-mail-list,
#synesto-mail-message .synesto-mail-message-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

#synesto-mail-message,
#synesto-create-mail-message {
    border: none;
    padding: 0px 0px 10px 0px;
}

#synesto-create-mail-message {
    position: fixed;
    right: 0px;
    bottom: 0px;
    background: #fff;
    z-index: 100;
    border: 1px solid #e9e9e9;
    /*border-radius: 16px 0px 0px 0px;*/
    -webkit-box-shadow: 0px 0px 15px -5px rgba(201, 201, 201, 1);
    -moz-box-shadow: 0px 0px 15px -5px rgba(201, 201, 201, 1);
    box-shadow: 0px 0px 15px -5px rgba(201, 201, 201, 1);
}

#synesto-mail-menus .storage,
#synesto-invoice-menus .storage,
#synesto-document-menus .storage {
    position: absolute;
    bottom: 10px;
    left: 0px;
    width: calc(100% - 10px);
    border-radius: 10px;
    /* background: #fff; */
    padding: 12px 10px 0px 10px;
    /* border: 1px solid #f3f6fb;*/
}

#synesto-mail-menus .storage .progress-bar,
#synesto-invoice-menus .storage .progress-bar,
#synesto-document-menus .storage .progress-bar {
    float: left;
    width: 100%;
    height: 10px;
    border-radius: 10px;
    background: #f3f6fb;
}

#synesto-mail-menus .storage .progress-bar .usage,
#synesto-invoice-menus .storage .progress-bar .usage,
#synesto-document-menus .storage .progress-bar .usage {
    float: left;
    width: 50%;
    height: 100%;
    background: #47a1e2;
    border-radius: 10px;
}

#synesto-mail-menus .storage .stats,
#synesto-invoice-menus .storage .stats,
#synesto-document-menus .storage .stats {
    font-size: 12px;
    padding: 5px 0px 0px 0px;
    float: left;
    color: #9c9c9c;
    text-align: center;
    width: 100%;
}

#synesto-mail-menus .label,
#synesto-invoice-menus .label,
#synesto-document-menus .label {
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: 0% 50%;
    background-image: url(./../img/bookmarks.svg);
    font-size: 14px;
    padding: 0px 0px 0px 35px;
    font-weight: bold;
    margin: 35px 25px 25px 25px;
}

#synesto-mail-mailbox,
#synesto-invoices,
#synesto-documents {
    /*padding: 10px 10px;*/
    padding: 0px;
}

.synesto-mail-item {
    position: relative;
    padding: 6px 12px;
    border-bottom: 1px solid #f8f8f8;
}

.synesto-mail-item .header {
    font-size: 12px;
}

.synesto-mail-item .header .sender {
    color: #9c9c9c;
}

.synesto-mail-item .header .date {
    text-align: right;
    color: #9c9c9c;
}

.synesto-mail-item .title {
    width: 92%;
    padding: 4px 0px;
    font-size: 14px;
}

.synesto-mail-item .thread-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 3px;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    font-size: 12px;
    background: #e9e9e9;
    text-align: center;
}

.synesto-mail-item.new,
.synesto-mail-item.new:hover {
    background: #f3f6fb;
}

.synesto-mail-item.new .title {
    font-weight: bold;
}

.synesto-mail-item:hover {
    background: #fbfbfb;
    cursor: pointer;
}

.synesto-mail-item.active {
    background: #f3f6fb;
    border-left: 3px solid #47a1e2;
}

.synesto-mail-item .options {
    list-style-type: none;
    padding: 0px 10px;
    margin: 0px;
}

.synesto-mail-item .options li {
    margin: 0px 5px;
}

.synesto-mail-item .options .label {
    float: right;
    width: 17px;
    height: 17px;
    background-size: 17px 17px;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-image: url(./../img/bookmark-plus.svg);
}

.synesto-mail-item .options .forward {
    float: right;
    width: 17px;
    height: 17px;
    background-size: 17px 17px;
    background-repeat: no-repeat;
    background-position: 0% 50%;
    background-image: url(./../img/arrow-return-left.svg);
}

.synesto-mail-item .options {
    display: none;
    position: absolute;
    top: calc(50% - 15px);
    right: 0px;
    list-style-type: none;
    padding: 0px;
    margin: 0px;
    width: auto;
}

.synesto-mail-item .options li {
    float: left;
    width: 32px;
    height: 32px;
    background-size: 15px 15px;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    border-radius: 50%;
    border: 1px solid #f8f8f8;
    padding: 5px;
    background-color: #fff !important;
    margin: 0px 3px;
}

.synesto-mail-item .options li:hover {
    background-size: 18px 18px;
    border-color: #e9e9e9;
}

.synesto-mail-item .options li.open,
#synesto-invoices .synesto-invoices-menus ul li.open {
    background-image: url(./../img/envelope-paper.svg);
}

.synesto-mail-item .options li.delete,
#synesto-invoices .synesto-invoices-menus ul li.delete {
    background-image: url(./../img/trash3.svg);
}

.synesto-mail-item .options li.more {
    background-image: url(./../img/three-dots.svg);
}

.synesto-mail-item:hover .options {
    display: block;
}

.synesto-mail-item:hover .date,
.synesto-mail-item:hover .thread-count {
    display: none;
}

.synesto-mail-mailbox-menus,
.synesto-invoices-menus {
    width: 100%;
}

.synesto-invoices-menus {
    position: relative;
}

#synesto-mail-message .synesto-mail-message-menus,
#synesto-create-mail-message .synesto-mail-message-menus,
#synesto-mail-mailbox .synesto-mail-mailbox-menus,
#synesto-invoices .synesto-invoices-menus,
#synesto-documents .synesto-documents-menus {
    position: fixed;
    width: -webkit-fill-available;
    border-bottom: 1px solid #f8f8f8;
    padding-bottom: 10px;
    padding-top: 10px;
    background: #fbfbfb;
    /*
      -webkit-box-shadow: 0px 10px 10px -10px rgba(230, 230, 230, 1);
      -moz-box-shadow: 0px 10px 10px -10px rgba(230, 230, 230, 1);
      box-shadow: 0px 10px 10px -10px rgba(230, 230, 230, 1);
       */
}

#synesto-create-mail-message .synesto-mail-message-menus {
    position: relative;
    float: left;
    padding-top: 8px;
    padding-bottom: 8px;
}

#synesto-mail-mailbox .synesto-mail-mailbox-menus {
    position: relative;
    width: 100%;
    border-right: 1px solid #e9e9e9;
    z-index: 100;
    flex-shrink: 0;
}

#synesto-mail-message .synesto-mail-message-menus {
    position: relative;
    width: 100%;
    z-index: 100;
    flex-shrink: 0;
}

#synesto-invoices .synesto-invoices-menus,
#synesto-documents .synesto-documents-menus {
    width: 100%;
    border-right: 1px solid #e9e9e9;
    z-index: 100;

    @media (min-width: 1200px) {
        width: calc(33% - 26px);
    }
}

#synesto-invoices .synesto-invoices-menus,
#synesto-documents .synesto-documents-menus {
    @media (min-width: 1200px) {
        width: calc(100% - 26px);
    }
}

#synesto-mail-message .synesto-mail-message-menus ul,
#synesto-create-mail-message .synesto-mail-message-menus ul,
#synesto-mail-mailbox .synesto-mail-mailbox-menus ul,
#synesto-invoices .synesto-invoices-menus ul,
#synesto-documents .synesto-documents-menus ul {
    list-style-type: none;
    padding: 0px;
    margin: 0px;
}

#synesto-mail-message .synesto-mail-message-menus ul li,
#synesto-create-mail-message .synesto-mail-message-menus ul li,
#synesto-mail-mailbox .synesto-mail-mailbox-menus ul li,
#synesto-invoices .synesto-invoices-menus ul li,
#synesto-documents .synesto-documents-menus ul li {
    float: left;
    width: 35px;
    height: 34px;
    background-size: 16px 16px;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    padding: 5px;
    margin: 0px 10px;
    background-color: #fff !important;
    border-radius: 50%;
    border: 1px solid #e9e9e9;
}

#synesto-mail-message .synesto-mail-message-menus ul li:hover,
#synesto-create-mail-message .synesto-mail-message-menus ul li:hover,
#synesto-mail-mailbox .synesto-mail-mailbox-menus ul li:hover,
#synesto-invoices .synesto-invoices-menus ul li:hover,
#synesto-documents .synesto-documents-menus ul li:hover {
    background-size: 22px 22px;
    border-color: #e9e9e9;
    cursor: pointer;
    border: 1px solid #e9e9e9;
}

#synesto-documents .synesto-documents-menus ul li.disabled,
#synesto-mail-message .synesto-mail-message-menus ul li.disabled,
#synesto-mail-message .synesto-mail-message-nav-menu li.disabled,
#synesto-mail-mailbox .synesto-mail-mailbox-menus ul li.disabled,
#synesto-mail-mailbox .synesto-mail-mailbox-nav-menu li.disabled {
    opacity: 0.35;
    pointer-events: none;
    cursor: default;
}

#synesto-mail-message .synesto-mail-message-menus ul li.reply {
    background-image: url(./../img/reply.svg);
}

#synesto-mail-message .synesto-mail-message-menus ul li.reply-all {
    background-image: url(./../img/reply-all.svg);
}

#synesto-mail-message .synesto-mail-message-menus ul li.forward {
    background-image: url(./../img/arrow-return-right.svg);
}

#synesto-mail-message .synesto-mail-message-menus ul li.delete,
#synesto-create-mail-message .synesto-mail-message-menus ul li.delete,
#synesto-mail-mailbox .synesto-mail-mailbox-menus ul li.delete {
    background-image: url(./../img/trash3.svg);
}

#synesto-mail-mailbox .synesto-mail-mailbox-menus ul li.add {
    background-image: url(./../img/add.png);
}

#synesto-mail-message .synesto-mail-message-menus ul li.open,
#synesto-mail-mailbox .synesto-mail-mailbox-menus ul li.open {
    background-image: url(./../img/envelope-paper.svg);
}

#synesto-mail-message .synesto-mail-message-menus ul li.archive,
#synesto-mail-mailbox .synesto-mail-mailbox-menus ul li.archive {
    background-image: url(./../img/suitcase-lg.svg);
}

#synesto-invoices .synesto-invoices-menus ul li.edit {
    background-image: url(./../img/edit.png);
}

#synesto-invoices .synesto-invoices-menus ul li.pdf {
    background-image: url(./../img/pdf.png);
}

#synesto-invoices .synesto-invoices-menus ul li.duplicate {
    background-image: url(./../img/duplicate.png);
}

#synesto-invoices .synesto-invoices-menus ul li.add {
    background-image: url(./../img/add.png);
}

#synesto-invoices .synesto-invoices-menus ul li.mail {
    background-image: url(./../img/mail.png);
}

#synesto-invoices .synesto-invoices-menus ul li.filter {
    background-image: url(./../img/filter.png);
}

#synesto-invoices .synesto-invoices-menus ul li.preview {
    background-image: url(./../img/preview.png);
}

#synesto-invoices .synesto-invoices-menus ul li.print {
    background-image: url(./../img/printer.png);
}

#synesto-invoices .synesto-invoices-menus ul li.correction {
    background-image: url(./../img/arrow-return-left.svg);
}

#synesto-invoices .synesto-invoices-menus ul li.ksef {
    background-image: url(./../img/cloud-upload.svg);
}

#synesto-invoices .synesto-invoices-menus ul li.approve {
    background-image: url(./../img/check-lg.svg);
}

#synesto-invoices .synesto-invoices-menus ul li.columns {
    background-image: url(./../img/grid-3x3-gap.svg);
}

/* KPiR sticky columns */
.kpir-sticky-col {
    position: sticky;
    z-index: 2;
    background: inherit;
}

.kpir-sticky-col--shadow {
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.06);
}

.kpir-sticky-col--shadow-left {
    box-shadow: -2px 0 4px rgba(0, 0, 0, 0.06);
}

.synesto-table__head .kpir-sticky-col {
    z-index: 3;
    background: #fbfbfb;
}

tr.synesto-row--selected .kpir-sticky-col {
    background: #edf2ff;
}

tr.synesto-row--pending {
    background: #fffbeb !important;
}

tr:not(.synesto-row--selected) .kpir-sticky-col {
    background: #fff;
}

#synesto-mail-message .synesto-mail-message-menus ul li.more {
    background-image: url(./../img/three-dots.svg);
}

#synesto-create-mail-message .synesto-mail-message-menus ul li.edit {
    background-image: url(./../img/floppy.svg);
}

#synesto-create-mail-message .synesto-mail-message-menus ul li.close {
    background-image: url(./../img/x-lg.svg);
}

#synesto-create-mail-message .synesto-mail-message-menus ul .attachment {
    background-image: url(./../img/link.svg);
}

#synesto-create-mail-message .synesto-mail-message-menus .send {
    position: absolute;
    top: 8px;
    right: 20px;
    font-weight: bold;
    border: 1px solid #e9e9e9;
    border-radius: 10px;
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: 20px 50%;
    background-image: url(./../img/envelope.svg);
    font-size: 13px;
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
    border-top: 1px solid #fff;
    background-color: #eef7ff !important;
    color: #248ad3;
    border-color: #d4e4ef !important;
    padding: 7px 20px 7px 49px;
    /*margin-right: 20px;*/
}

#synesto-mail-message .synesto-mail-message-menus ul li.separate,
#synesto-create-mail-message .synesto-mail-message-menus ul li.separate {
    width: 1px;
    background: #e9e9e9 !important;
    padding: 0px;
    border: none;
    border-radius: 0px;
    margin: 0px 5px;
}

#synesto-mail-message .synesto-mail-message-main-menu,
#synesto-mail-mailbox .synesto-mail-mailbox-main-menu,
#synesto-invoices .synesto-invoices-main-menu,
#synesto-documents .synesto-documents-main-menu {
    display: flex;
}

#synesto-mail-message .synesto-mail-message-nav-menu,
#synesto-mail-mailbox .synesto-mail-mailbox-nav-menu,
#synesto-invoices .synesto-invoices-nav-menu,
#synesto-documents .synesto-documents-nav-menu {
    display: flex;
}

#synesto-mail-message .synesto-mail-message-menus ul li.prev,
#synesto-mail-mailbox .synesto-mail-mailbox-menus ul li.prev,
#synesto-invoices .synesto-invoices-menus ul li.prev,
#synesto-documents .synesto-documents-menus ul li.prev {
    background-image: url(./../img/chevron-left.svg);
}

#synesto-mail-message .synesto-mail-message-menus ul li.next,
#synesto-mail-mailbox .synesto-mail-mailbox-menus ul li.next,
#synesto-invoices .synesto-invoices-menus ul li.next,
#synesto-documents .synesto-documents-menus ul li.next {
    background-image: url(./../img/chevron-right.svg);
}

#synesto-mail-message .synesto-mail-message-body,
#synesto-create-mail-message .synesto-mail-message-body {
    float: left;
    width: 100%;
    padding: 15px 20px;
    margin-top: 0px;
    overflow-x: hidden;
}

#synesto-create-mail-message .synesto-mail-message-body {
    margin-top: 0px;
}

#synesto-mail-message .synesto-mail-message-body .subject,
#synesto-create-mail-message .synesto-mail-message-body .subject {
    font-size: 22px;
}

#synesto-mail-message .synesto-mail-message-body .headers,
#synesto-create-mail-message .synesto-mail-message-body .headers {
    float: left;
    width: 100%;
    line-height: 25px;
    padding: 10px 0px;
    border-top: 1px solid #f8f8f8;
    border-bottom: 1px solid #f8f8f8;
}

#synesto-mail-message .synesto-mail-message-body .headers .contact,
#synesto-create-mail-message .synesto-mail-message-body .contact {
    float: left;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    margin-right: 15px;
}

#synesto-mail-message .synesto-mail-message-body .headers .sender,
#synesto-create-mail-message .synesto-mail-message-body .headers .sender,
#synesto-mail-message .synesto-mail-message-body .headers .recipient,
#synesto-create-mail-message .synesto-mail-message-body .headers .recipient {
    font-weight: bold;
    font-size: 14px;
}

#synesto-mail-message .synesto-mail-message-body .headers a {
    text-decoration: none;
    font-weight: normal;
    color: #2f3538;
}

#synesto-mail-message .synesto-mail-message-body .headers a:hover {
    color: #47a1e2;
    text-decoration: underline;
}

#synesto-mail-message .synesto-mail-message-body .headers {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

#synesto-mail-message .synesto-mail-message-body .headers .header-info {
    flex: 1;
    min-width: 0;
}

#synesto-mail-message .synesto-mail-message-body .headers .date {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    margin-left: auto;
    padding-left: 15px;
    line-height: 25px;
}

#synesto-mail-message .synesto-mail-message-body .message {
    float: left;
    width: 100%;
    font-size: 14px;
    padding-top: 15px;
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: break-word;
}

#synesto-mail-message .synesto-mail-message-body .message img {
    max-width: 100%;
    height: auto;
}

#synesto-mail-message .synesto-mail-message-body .message blockquote {
    border-left: 3px solid #ddd;
    padding-left: 12px;
    margin: 10px 0 10px 0;
    color: #666;
}

#synesto-mail-message .synesto-mail-message-body .attachments {
    float: left;
    width: 100%;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#synesto-mail-message .synesto-mail-message-body .attachments .attachment-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid #e9e9e9;
    font-size: 13px;
    color: #2f3538;
    text-decoration: none;
    background: #fafafa;
    transition: background 0.15s, border-color 0.15s;
}

#synesto-mail-message .synesto-mail-message-body .attachments .attachment-item:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

#synesto-mail-message .synesto-mail-message-body .attachments .attachment-item .attachment-name {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#synesto-mail-message .synesto-mail-message-body .attachments .attachment-item .attachment-size {
    color: #999;
    font-size: 11px;
}

#synesto-mail-message .synesto-mail-message-body .attachments .attachment-item i {
    font-size: 16px;
    color: #6c5ce7;
}

#synesto-create-mail-message .synesto-mail-message-body {
    position: relative;
}

#synesto-create-mail-message .synesto-mail-message-body input {
    border: none;
}

#synesto-create-mail-message
.synesto-mail-message-body
input[name="recipient"] {
    margin: 11px 0px;
    width: 80%;
    border-bottom: 1px solid #fff;
}

#synesto-create-mail-message .synesto-mail-message-body input:focus {
    outline: none;
    border-bottom: 1px solid #e9e9e9;
}

#synesto-create-mail-message .synesto-mail-message-body .headers {
    border-top: none;
}

#synesto-create-mail-message .synesto-mail-message-body .contact {
    border: 1px solid #f8f8f8 !important;
    background-size: 24px 24px !important;
    background-repeat: no-repeat !important;
    background-position: 50% 50% !important;
    background: url("person-plus.svg");
}

#synesto-create-mail-message .synesto-mail-message-body .contact {
    border: none;
}

#synesto-create-mail-message .synesto-mail-message-body .contact:hover {
    background-size: 28px 28px !important;
    background-color: #fbfbfb;
    border: 1px solid #e9e9e9;
    cursor: pointer;
}

#synesto-create-mail-message .synesto-mail-message-body textarea {
    border: none;
    width: 100%;
    height: 500px;
    padding: 10px 0px;
}

#synesto-create-mail-message .synesto-mail-message-body textarea:focus {
    outline: none;
}

#synesto-create-mail-message .synesto-mail-message-body .attachments-upload {
    display: none;
    position: fixed;
    bottom: 0px;
    left: 0px;
    width: 100%;
    height: 50px;
    background: green;
}

/*
#synesto-mail-message .synesto-mail-message-body.new input::-ms-input-placeholder {
    color: #e9e9e9;
}

#synesto-mail-message .synesto-mail-message-body.new input::placeholder {
    color: #e9e9e9;
}
*/

#synesto-create-mail-message .synesto-mail-message-body .subject {
    width: 100%;
    font-size: 16px;
    padding: 8px 0px;
    border-bottom: 1px solid #f8f8f8;
}

/* --- Mail Compose (independent box) --- */

.synesto-mail-compose {
    position: fixed;
    top: 80px;
    right: 20px;
    width: calc(58% - 80px);
    height: calc(100vh - 100px);
    background: #fff;
    border: 1px solid #eaeaea;
    box-shadow: -4px -4px 12px rgba(210, 210, 210, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 100;
}

.synesto-mail-compose .synesto-mail-compose-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 15px;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
    flex-shrink: 0;
}

.synesto-mail-compose .synesto-mail-compose-toolbar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.synesto-mail-compose .synesto-mail-compose-toolbar ul li {
    width: 35px;
    height: 34px;
    background-size: 16px 16px;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    padding: 5px;
    margin: 0px 10px;
    background-color: #fff;
    border-radius: 50%;
    border: 1px solid #e9e9e9;
    cursor: pointer;
}

.synesto-mail-compose .synesto-mail-compose-toolbar ul li:hover {
    background-size: 22px 22px;
    border-color: #e9e9e9;
    cursor: pointer;
    border: 1px solid #e9e9e9;
}

.synesto-mail-compose .synesto-mail-compose-toolbar ul li.close {
    background-image: url(./../img/x-lg.svg);
}

.synesto-mail-compose .synesto-mail-compose-toolbar ul li.edit {
    background-image: url(./../img/floppy.svg);
}

.synesto-mail-compose .synesto-mail-compose-toolbar ul li.delete {
    background-image: url(./../img/trash3.svg);
}

.synesto-mail-compose .synesto-mail-compose-toolbar ul li.attachment {
    background-image: url(./../img/link.svg);
}

.synesto-mail-compose .synesto-mail-compose-toolbar ul li.link-btn {
    background-image: url(./../img/link.svg);
}

.synesto-mail-compose .synesto-mail-compose-toolbar ul li.separate {
    width: 1px;
    height: 24px;
    background: #e9e9e9;
    padding: 0;
    border: none;
    border-radius: 0;
}

.synesto-mail-compose .synesto-mail-compose-toolbar .send {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 13px;
    color: #fff;
    background: #47a1e2;
    border: none;
    border-radius: 8px;
    padding: 7px 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}

.synesto-mail-compose .synesto-mail-compose-toolbar .send:hover {
    background: #3b8ecb;
}

.synesto-mail-compose .synesto-mail-compose-toolbar .send i {
    font-size: 14px;
}

.synesto-mail-compose-body {
    float: left;
    width: 100%;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.synesto-mail-compose-body .compose-subject {
    width: 100%;
    border: none;
    font-size: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #f8f8f8;
    outline: none;
}

.synesto-mail-compose-body .compose-subject:focus {
    border-bottom-color: #e9e9e9;
}

.synesto-mail-compose-body .compose-recipient {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f8f8f8;
    font-size: 14px;
    font-weight: 600;
}

.synesto-mail-compose-body .compose-recipient-label {
    margin-right: 8px;
    color: #333;
    white-space: nowrap;
}

.synesto-mail-compose-body .compose-recipient input {
    border: none;
    outline: none;
    width: 100%;
    font-weight: 400;
    font-size: 14px;
}

.synesto-mail-compose-body .compose-recipient input:focus {
    border-bottom: none;
}

.synesto-mail-compose-body .compose-recipient:focus-within {
    border-bottom-color: #e9e9e9;
}

/* Attachments list */
.compose-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 14px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafbfc;
}
.compose-attachment-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px 4px 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 12px;
    color: #374151;
}
.compose-attachment-item .bi-paperclip {
    color: #9ca3af;
    font-size: 13px;
}
.compose-attachment-name {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.compose-attachment-size {
    color: #9ca3af;
    font-size: 11px;
}
.compose-attachment-remove {
    border: none;
    background: none;
    padding: 0 2px;
    color: #9ca3af;
    font-size: 14px;
    cursor: pointer;
    line-height: 1;
}
.compose-attachment-remove:hover {
    color: #ef4444;
}

/* Editor toolbar */
.compose-editor-toolbar {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 8px 0;
    border-bottom: 1px solid #f8f8f8;
}

.compose-editor-toolbar button {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 15px;
    transition: background 0.12s, color 0.12s;
}

.compose-editor-toolbar button:hover {
    background: #f3f6fb;
    color: #333;
}

.compose-editor-toolbar button.active {
    background: #e3edf7;
    border: 1px solid #c0d5e8;
    color: #2a7ac4;
}

.compose-editor-toolbar .toolbar-sep {
    width: 1px;
    height: 20px;
    background: #e9e9e9;
    margin: 0 4px;
}

/* Editable content area */
.compose-editor {
    flex: 1;
    padding: 12px 0;
    font-size: 14px;
    line-height: 1.6;
    outline: none;
    overflow-y: auto;
    min-height: 200px;
}

.compose-editor:empty::before {
    content: attr(data-placeholder);
    color: #bbb;
    pointer-events: none;
}

.compose-editor a {
    color: #47a1e2;
    text-decoration: underline;
}

.compose-editor ul,
.compose-editor ol {
    padding-left: 24px;
    margin: 4px 0;
}

/* Minimize button in toolbar */
.synesto-mail-compose .synesto-mail-compose-toolbar ul li.minimize {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M2 8a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11A.5.5 0 0 1 2 8'/%3E%3C/svg%3E");
}

/* Minimized compose bar */
.synesto-mail-compose-minimized {
    position: fixed;
    bottom: 0;
    right: 20px;
    width: 360px;
    height: 45px;
    background: #fff;
    border: 1px solid #eaeaea;
    border-bottom: none;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    z-index: 100;
    cursor: pointer;
    transition: box-shadow 0.15s;
}

.synesto-mail-compose-minimized:hover {
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
}

.synesto-mail-compose-minimized-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1;
}

.synesto-mail-compose-minimized-title i {
    color: #47a1e2;
    font-size: 14px;
    flex-shrink: 0;
}

.synesto-mail-compose-minimized-title span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.synesto-mail-compose-minimized-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-left: 8px;
}

.synesto-mail-compose-minimized-actions button {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
    transition: background 0.12s, color 0.12s;
}

.synesto-mail-compose-minimized-actions button:hover {
    background: #f3f6fb;
    color: #333;
}

/* Mobile compose adjustments */
@media (max-width: 1199px) {
    .synesto-mail-compose {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }

    .synesto-mail-compose-body {
        height: calc(100vh - 60px);
    }
}

#synesto-notification {
    position: fixed;
    bottom: 30px;
    right: 25px;
    width: 350px;
    min-height: 70px;
    z-index: 9999;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    border-left: 4px solid #47a1e2;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    animation: synesto-toast-in 0.3s ease;
}

@keyframes synesto-toast-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Type colors */
#synesto-notification.synesto-success { border-left-color: #22c55e; }
#synesto-notification.synesto-error { border-left-color: #ef4444; }
#synesto-notification.synesto-warning { border-left-color: #f59e0b; }
#synesto-notification.synesto-info { border-left-color: #47a1e2; }

#synesto-notification .notification-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    border-radius: 50%;
    background-size: 24px 24px;
    background-repeat: no-repeat;
    background-position: 50% 50%;
}

#synesto-notification .notification-icon.bell {
    background-image: url(./../img/bell.svg);
}

/* Type icon backgrounds */
#synesto-notification.synesto-success .notification-icon {
    background-color: #f0fdf4;
}
#synesto-notification.synesto-error .notification-icon {
    background-color: #fef2f2;
}
#synesto-notification.synesto-warning .notification-icon {
    background-color: #fffbeb;
}
#synesto-notification.synesto-info .notification-icon {
    background-color: #eff6ff;
}

#synesto-notification .notification {
    flex: 1;
    min-width: 0;
    padding: 12px 30px 12px 12px;
}

#synesto-notification .notification .header {
    font-size: 14px;
    font-weight: 600;
    color: #2f3538;
}

#synesto-notification .notification .message {
    font-size: 13px;
    color: #6b7280;
    margin-top: 2px;
    word-wrap: break-word;
}

#synesto-notification .close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    background-size: 14px 14px;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-image: url(/assets/img/x-lg.svg);
    cursor: pointer;
    border-radius: 4px;
}

#synesto-notification .close:hover {
    background-color: #f3f4f6;
}

/* Mobile notification */
@media (max-width: 768px) {
    #synesto-notification {
        left: 12px;
        right: 12px;
        bottom: 80px;
        width: auto;
    }
}

#synesto-mail-mailbox .synesto-mail-list {
    float: left;
    width: 100%;
    margin-top: 0px;
    height: 690px;
    overflow-x: hidden;
    padding: 5px 10px 10px 10px;
}

#synesto-mail-mailbox .synesto-mail-mailbox-menus ul li.refresh,
#synesto-invoices .synesto-invoices-menus ul li.refresh,
#synesto-eshop .synesto-invoices-menus ul li.refresh,
#synesto-documents .synesto-documents-menus ul li.refresh {
    background-image: url(./../img/arrow-repeat.svg);
}

/*#synesto-mail .synesto-mail-menu
border-right: 1px solid #f8f8f8;
padding-right: 10px;*/


/* =========================
   Base tokens (łatwo podmienić pod theme)
========================= */

/*
.synesto-invoices {
    --syn-bg: #ffffff;
    --syn-muted: #6b7280;
    --syn-text: #111827;
    --syn-border: #e5e7eb;
    --syn-soft: #f6f7fb;
    --syn-hover: #f3f4f6;
    --syn-primary: #2f6fec;
    --syn-radius: 14px;

    background: var(--syn-bg);
    color: var(--syn-text);
}

.synesto-invoices__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 12px 16px;
}

.synesto-invoices__title {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.synesto-invoices__h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.synesto-invoices__meta {
    color: var(--syn-muted);
    font-size: 13px;
}

.synesto-invoices__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.synesto-invoices__search {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--syn-border);
    background: var(--syn-soft);
    padding: 8px 10px;
    border-radius: 999px;
    min-width: 320px;
}

.synesto-invoices__searchInput {
    border: 0;
    outline: 0;
    background: transparent;
    width: 100%;
    font-size: 14px;
    color: var(--syn-text);
}

.synesto-invoices__searchIcon {
    opacity: 0.7;
}

/* =========================
   Buttons / controls
========================= */
/*
.synesto-btn {
    border: 1px solid var(--syn-border);
    background: #fff;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: background 120ms ease, border-color 120ms ease, transform 80ms ease;
}

.synesto-btn:active {
    transform: translateY(1px);
}

.synesto-btn--primary {
    border-color: rgba(47, 111, 236, 0.25);
    background: rgba(47, 111, 236, 0.10);
}

.synesto-btn--primary:hover {
    background: rgba(47, 111, 236, 0.14);
}

.synesto-btn--ghost {
    background: transparent;
}

.synesto-btn--ghost:hover {
    background: var(--syn-hover);
}

.synesto-select {
    border: 1px solid var(--syn-border);
    background: #fff;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 14px;
}

.synesto-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--syn-primary);
}

/* =========================
   Table (grid-based)
========================= */

/*
.synesto-table {
    border: 1px solid var(--syn-border);
    border-radius: var(--syn-radius);
    overflow: clip;
    background: #fff;
}

.synesto-table__head {
    position: sticky;
    top: 0;
    z-index: 3;
}

.synesto-table__row {
    display: grid;
    grid-template-columns: 44px 180px 260px 160px 160px 140px 120px;
    align-items: center;
    gap: 0;
    border-top: 1px solid var(--syn-border);
    background: #fff;
}

.synesto-table__row--head {
    border-top: 0;
    background: var(--syn-soft);
}

.synesto-table__cell {
    padding: 12px 12px;
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-right: 1px solid rgba(229, 231, 235, 0.6);
}

.synesto-table__cell:last-child {
    border-right: 0;
}

.synesto-table__cell--right {
    justify-content: flex-end;
    text-align: right;
}

.synesto-table__cell--check {
    justify-content: center;
}

.synesto-table__cell--actions {
    justify-content: flex-end;
}

.synesto-table__body .synesto-table__row:hover {
    background: var(--syn-hover);
}

.synesto-table__body .synesto-table__row:focus {
    outline: 2px solid rgba(47, 111, 236, 0.30);
    outline-offset: -2px;
}

.synesto-table__primary {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.synesto-table__secondary {
    font-size: 12px;
    color: var(--syn-muted);
    line-height: 1.2;
    margin-top: 3px;
}

.synesto-table__cell--sortable {
    appearance: none;
    background: transparent;
    border: 0;
    width: 100%;
    text-align: left;
    cursor: pointer;
    padding: 12px 12px;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-right: 1px solid rgba(229, 231, 235, 0.6);
    font: inherit;
    color: inherit;
}

.synesto-table__cell--sortable:hover {
    background: rgba(17, 24, 39, 0.03);
}

.synesto-table__thText {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
}

.synesto-table__sort {
    display: inline-flex;
    flex-direction: column;
    line-height: 10px;
    font-size: 10px;
    opacity: 0.45;
    user-select: none;
}

.synesto-table__cell--sortable[aria-sort="ascending"] .synesto-table__sort {
    opacity: 1;
}

.synesto-table__cell--sortable[aria-sort="ascending"] .synesto-table__sortUp {
    opacity: 1;
}

.synesto-table__cell--sortable[aria-sort="ascending"] .synesto-table__sortDown {
    opacity: 0.25;
}

.synesto-table__cell--sortable[aria-sort="descending"] .synesto-table__sort {
    opacity: 1;
}

.synesto-table__cell--sortable[aria-sort="descending"] .synesto-table__sortUp {
    opacity: 0.25;
}

.synesto-table__cell--sortable[aria-sort="descending"] .synesto-table__sortDown {
    opacity: 1;
}

.synesto-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--syn-border);
    background: #fff;
}

.synesto-badge--paid {
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.10);
}

.synesto-badge--unpaid {
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.10);
}

.synesto-badge--partial {
    color: #92400e;
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.35);
}

.synesto-iconBtn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--syn-border);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: background 120ms ease;
}

.synesto-iconBtn:hover {
    background: var(--syn-hover);
}

.synesto-invoices__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    color: var(--syn-muted);
}

.synesto-invoices__pager {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.synesto-invoices__pageInfo {
    font-size: 13px;
}

@media (max-width: 1100px) {
    .synesto-invoices__search { min-width: 240px; }
    .synesto-table__row {
        grid-template-columns: 44px 160px 1fr 140px 140px 120px;
    }
    .synesto-table__row > :nth-child(6),
    .synesto-table__row--head > :nth-child(6) {
        display: none;
    }
}

@media (max-width: 820px) {
    .synesto-invoices__toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .synesto-invoices__actions {
        justify-content: space-between;
    }
    .synesto-invoices__search { min-width: 0; width: 100%; }

    .synesto-table__row {
        grid-template-columns: 44px 1fr 120px 120px 80px;
    }
    .synesto-table__row > :nth-child(3),
    .synesto-table__row--head > :nth-child(3) {
        display: none;
    }
}

@media (max-width: 560px) {
    .synesto-table__row {
        grid-template-columns: 44px 1fr 90px 80px;
    }
    .synesto-table__row > :nth-child(4),
    .synesto-table__row--head > :nth-child(4) {
        display: none;
    }
    .synesto-invoices__footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

#synesto-invoices .synesto-table {
    margin-top: 56px;
}

.synesto-table-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

.synesto-table__row {
    display: grid;
    white-space: nowrap;
}

.synesto-table__cell,
.synesto-table__cell--sortable {
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.synesto-table {
    width: max-content;
    min-width: 100%;
}




.synesto-tableScroll{
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
}

.synesto-table{
    width: max-content !important;
    min-width: 100% !important;
}

.synesto-table__row{
    display: grid !important;
    grid-auto-flow: column !important;
    align-items: center;
    white-space: nowrap;
}

.synesto-table__cell,
.synesto-table__cell--sortable{
    display: flex !important;
    align-items: center;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.synesto-table__cell--sortable{
    width: auto !important;
    max-width: 100% !important;
    justify-content: space-between;
}

.synesto-table__thText{
    white-space: nowrap;
}

.synesto-table__cell--check{ justify-content: center !important; }
.synesto-table__cell--actions{ justify-content: flex-end !important; }

.synesto-table__row{
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: minmax(160px, max-content);
    white-space: nowrap;
    align-items: center;
}

.synesto-table__cell--check{ width: 56px; justify-content:center; }
.synesto-table__cell--actions{ width: 140px; justify-content:flex-end; }

.synesto-table__cell,
.synesto-table__cell--sortable{
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
 */

/* =========================
   Invoices container
========================= */
.synesto-invoices {
    --syn-bg: #ffffff;
    --syn-muted: #6b7280;
    --syn-text: #111827;
    --syn-border: #e5e7eb;
    --syn-soft: #f6f7fb;
    --syn-hover: #f3f4f6;
    --syn-primary: #2f6fec;
    --syn-radius: 14px;

    background: var(--syn-bg);
    color: var(--syn-text);
}

/* =========================
   Toolbar
========================= */
.synesto-invoices__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 12px 16px;
}

.synesto-invoices__title {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.synesto-invoices__h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.synesto-invoices__meta {
    color: var(--syn-muted);
    font-size: 13px;
}

.synesto-invoices__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.synesto-invoices__search {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--syn-border);
    background: var(--syn-soft);
    padding: 8px 10px;
    border-radius: 999px;
    min-width: 320px;
}

.synesto-invoices__searchInput {
    border: 0;
    outline: 0;
    background: transparent;
    width: 100%;
    font-size: 14px;
    color: var(--syn-text);
}

.synesto-invoices__searchIcon {
    opacity: 0.7;
}

/* =========================
   Buttons / controls
========================= */
.synesto-btn {
    border: 1px solid var(--syn-border);
    background: #fff;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: background 120ms ease, border-color 120ms ease, transform 80ms ease;
}

.synesto-btn:active { transform: translateY(1px); }

.synesto-btn--primary {
    border-color: rgba(47, 111, 236, 0.25);
    background: rgba(47, 111, 236, 0.10);
}

.synesto-btn--primary:hover { background: rgba(47, 111, 236, 0.14); }

.synesto-btn--ghost { background: transparent; }
.synesto-btn--ghost:hover { background: var(--syn-hover); }

.synesto-select {
    border: 1px solid var(--syn-border);
    background: #fff;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 14px;
}

.synesto-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--syn-primary);
}

/* =========================
   TABLE SCROLL WRAPPER
   (dodaj wrapper w JSX: <div className="synesto-tableScroll">...</div>)
========================= */
.synesto-tableScroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
}

/* =========================
   Table
========================= */
.synesto-table {
    margin-top: 56px;
    border: 1px solid var(--syn-border);
    border-radius: var(--syn-radius);
    background: #fff;

    /* ważne: clip/hidden potrafi psuć sticky i scroll w różnych przeglądarkach */
    overflow: visible;

    /* klucz dla scrolla: szerokość wynika z zawartości kolumn */
    width: max-content;
    min-width: 100%;
}

/* Sticky head działa tylko jeśli scroll jest na wrapperze, a nie na body strony */
.synesto-table__head {
    position: sticky;
    top: 0;
    z-index: 3;
}

/* =========================
   Rows (AUTO KOLUMNY)
   Nie definiujemy grid-template-columns.
========================= */
.synesto-table__row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(160px, max-content);
    align-items: center;
    gap: 0;
    border-top: 1px solid var(--syn-border);
    background: #fff;
    white-space: nowrap;
}

.synesto-table__row--head {
    border-top: 0;
    background: var(--syn-soft);
}
.synesto-tableScroll{
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    /*border: 1px solid #e5e7eb;
    border-radius: 14px;*/
    background: #fff;
}

/* tabela może być szersza niż kontener -> scroll */
.synesto-table{
    border-collapse: separate;
    border-spacing: 0;
    width: max-content;
    min-width: 100%;
}

.synesto-table__head th{
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f3f6fb; /*#f6f7fb;*/
    padding: 5px 0px;
}

/* komórki */
.synesto-table__th,
.synesto-td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;           /* klucz: nie łam */
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;              /* opcjonalnie: limit szerokości kolumn */
    font-size: 13px;
}

.synesto-table__th:last-child,
.synesto-td:last-child{
    border-right: 0;
}

/* checkbox / akcje */
.synesto-table__th--check,
.synesto-td--check{
    width: 56px;
    text-align: center;
}

.synesto-table__th--actions,
.synesto-td--actions{
    width: 140px;
}

.synesto-td--right,
.synesto-table__th--right{
    text-align: right;
}

.synesto-td--center,
.synesto-table__th--center {
    text-align: center;
}


.synesto-table__th {
    background: #fbfbfb;
    text-align: center;
}

/* button sortowania w th */
.synesto-thBtn {
    width: 100%;
    /*display: flex;*/
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: transparent;
    border: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
    white-space: nowrap;
    font-size: 13px;
}

.synesto-thBtn--right{
    justify-content: flex-end;
}

.synesto-thBtn--center{
    text-align: center;
}

.synesto-sort {
    display: none;
    flex: 0 0 16px;
    flex-direction: column;
    line-height: 10px;
    font-size: 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 120ms ease;
    user-select: none;
}

.synesto-table__th:hover .synesto-sort {
    opacity: 0.45;
    visibility: visible;
}

.synesto-primary{ font-weight: 600; font-size: 14px; }
.synesto-secondary{ font-size: 12px; color: #6b7280; }

/* row hover/focus */
.synesto-table__body tr:hover{ background: #fbfbfb; }
.synesto-table__body tr:focus{
    outline: 2px solid rgba(47,111,236,.30);
    outline-offset: -2px;
}

.synesto-table__body tr:nth-child(even) {
    background: #fbfbfb; /* albo np. #f9fafb */
}

/* badge i iconBtn możesz zostawić z poprzednich */

.synesto-badge{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 6px 10px;
    min-height: 24px;

    font-size: 12px;
    font-weight: 600;
    line-height: 1;

    border-radius: 999px;
    border: 1px solid transparent;

    white-space: nowrap;
    user-select: none;
}

.synesto-badge--paid{
    color: #065f46;
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.35);
}

.synesto-badge--unpaid{
    color: #7f1d1d;
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.35);
}

.synesto-badge--overdue{
    color: #7c2d12;
    background: rgba(249, 115, 22, 0.16);
    border-color: rgba(249, 115, 22, 0.40);
}

.synesto-badge--draft{
    color: #1e3a8a;
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(59, 130, 246, 0.35);
}

.synesto-badge--canceled{
    color: #374151;
    background: rgba(107, 114, 128, 0.14);
    border-color: rgba(107, 114, 128, 0.35);
}

.synesto-badge--ksef{
    color: #065f46;
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.35);
}

.synesto-badge--ksef-draft{
    color: #374151;
    background: rgba(107, 114, 128, 0.14);
    border-color: rgba(107, 114, 128, 0.35);
}

.synesto-badge--ksef-waiting{
    color: #92400e;
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.35);
}

.synesto-badge--ksef-sent{
    color: #1e3a8a;
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(59, 130, 246, 0.35);
}

.synesto-badge--ksef-done{
    color: #065f46;
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.35);
}

.synesto-badge--correction{
    color: #7c2d12;
    background: rgba(234, 88, 12, 0.14);
    border-color: rgba(234, 88, 12, 0.35);
}

.synesto-badge--has-correction{
    color: #713f12;
    background: rgba(202, 138, 4, 0.14);
    border-color: rgba(202, 138, 4, 0.35);
}

.synesto-badge--clickable{
    cursor: pointer;
    transition: opacity 0.15s;
}
.synesto-badge--clickable:hover{
    opacity: 0.75;
}

.synesto-badge--outline{
    background: transparent;
}

/* Row action menu */
.synesto-row-menu-btn{
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    color: #6b7280;
    font-size: 16px;
    line-height: 1;
    transition: background .15s, color .15s;
}
.synesto-row-menu-btn:hover{
    background: #f3f4f6;
    color: #111827;
}
.synesto-row-dropdown{
    position: fixed;
    z-index: 9999;
    min-width: 190px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    padding: 4px 0;
    text-align: left;
}
.synesto-row-dropdown button{
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 14px;
    border: none;
    background: none;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    white-space: nowrap;
    transition: background .12s;
}
.synesto-row-dropdown button:hover{
    background: #f3f4f6;
}
.synesto-row-dropdown button i{
    font-size: 14px;
    width: 18px;
    text-align: center;
    color: #6b7280;
}
.synesto-row-dropdown hr{
    margin: 4px 0;
    border: none;
    border-top: 1px solid #e5e7eb;
}
.synesto-row-dropdown__danger{
    color: #dc2626 !important;
}
.synesto-row-dropdown__danger i{
    color: #dc2626 !important;
}
.synesto-row-dropdown__danger:hover{
    background: #fef2f2 !important;
}

.synesto-invoice-form {

}

.synesto-invoice-form label {
    font-size: 13px;
}

.synesto-invoice-form .h4 {
    font-size: 15px;
    font-weight: 600;
}

.synesto-invoice-form .form-select,
.synesto-invoice-form textarea.form-control,
.synesto-invoice-form input:not([type="checkbox"]):not([type="radio"]) {
    font-size: 14px;
    background: #fbfbfb;
}

.synesto-invoice-form input:not([type="checkbox"]):not([type="radio"]):focus,
.synesto-invoice-form select:focus{
    /*outline: 2px solid rgba(47,111,236,.30);
    outline-offset: -2px;*/
    background: #eef7ff;
    border-color: #d4e4ef;
    box-shadow: none;
}

.synesto-invoice-form th {
    font-size: 13px;
}

.modal-almost-full {
    max-width: calc(100vw - 4rem); /* marginesy */
}

/* Mobile */
@media (max-width: 576px) {
    .modal-almost-full {
        max-width: calc(100vw - 1rem);
    }
}

.synesto-invoice-form .text-muted {
    font-size: 12px;
    text-align: center;
}

.synesto-invoice-form .fw-semibold {
    text-align: center;
}

.synesto-table-preloader{
    min-height: 260px;
    display: grid;
    place-items: center;
    gap: 10px;
    color: #666;
}

.synesto-spinner{
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 3px solid rgba(0,0,0,.15);
    border-top-color: rgba(0,0,0,.55);
    animation: synesto-spin .8s linear infinite;
}

@keyframes synesto-spin{
    to { transform: rotate(360deg); }
}

#synesto-invoice-menus,
#synesto-document-menus {
    position: sticky;
    top: 0px;
    height: calc(100vh - 85px);
    overflow: auto;
}

#synesto-invoices,
#synesto-documents {
    height: calc(100vh - 85px);
    overflow: auto;
}

#synesto-invoice .synesto-invoice-pagination,
#synesto-document .synesto-document-pagination {
    display: flex;
}

#synesto-invoices .synesto-invoices-menus,
#synesto-documents .synesto-documents-menus {
    justify-content: space-between;
    width: calc(83% - 63px);
}

.synesto-filters .filters-aside__label {
    font-size: 13px;
    margin-bottom: .5rem;
}

.synesto-filters  .filters-aside__control {
    font-size: 14px;
    background: #fbfbfb;
}

.synesto-filters .filters-aside__item {
    margin-bottom: 0.5rem !important;
}

.synesto-filters .filters-aside__body {
    padding-top: 10px !important;
}

.synesto-filters .filters-aside__btn,
.synesto-invoice-form .btn {
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: 20px 50%;
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
    border-top: 1px solid #fff;


    border-color: #d4e4ef !important;
    font-weight: bold;
}

.synesto-filters .filters-aside__btn.filters-aside__btn--apply,
.synesto-invoice-form .btn.btn-primary {
    color: #248ad3;
    background-color: #eef7ff !important;
}

.synesto-filters .filters-aside__btn.filters-aside__btn--clear,
.synesto-invoice-form .btn.btn-outline-secondary {
    color: #2f3538;
    background-color: #fbfbfb;
    border: 1px solid #e9e9e9;
}

/* =========================
   Filter indicator dot
========================= */
li.filter.has-active-filters {
    position: relative;
}

li.filter.has-active-filters::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 9px;
    height: 9px;
    background: #248ad3;
    border-radius: 50%;
    border: 2px solid #fff;
}

.synesto-mobile-bottombar__btn.has-active-filters {
    position: relative;
}

.synesto-mobile-bottombar__btn.has-active-filters::after {
    content: '';
    position: absolute;
    top: 1px;
    right: 1px;
    width: 9px;
    height: 9px;
    background: #248ad3;
    border-radius: 50%;
    border: 2px solid #fff;
}

/* Clear filters button in toolbar */
.synesto-clear-filters-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    margin-left: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #248ad3;
    background: #eef7ff;
    border: 1px solid #d4e4ef;
    border-radius: 16px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 120ms ease, border-color 120ms ease;
}

.synesto-clear-filters-btn:hover {
    background: #dceefb;
    border-color: #b8d4ea;
}

.synesto-clear-filters-btn i {
    font-size: 10px;
}

/* =========================
   Filter chips bar
========================= */
.synesto-filter-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #f4f9ff;
    border-bottom: 1px solid #e2ecf5;
}

.synesto-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: #fff;
    border: 1px solid #d4e4ef;
    border-radius: 16px;
    font-size: 12px;
    line-height: 1.4;
    color: #2f3538;
}

.synesto-filter-chip__label {
    color: #8a9ba8;
    font-weight: 500;
}

.synesto-filter-chip__value {
    font-weight: 600;
    color: #248ad3;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.synesto-filter-chip__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    padding: 0;
    border: none;
    background: none;
    color: #8a9ba8;
    cursor: pointer;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    transition: color 120ms ease, background 120ms ease;
}

.synesto-filter-chip__remove:hover {
    color: #d32f2f;
    background: rgba(211, 47, 47, 0.08);
}

.synesto-filter-chips__clear {
    padding: 3px 10px;
    border: 1px solid #d4e4ef;
    background: #fff;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    color: #248ad3;
    cursor: pointer;
    transition: background 120ms ease, border-color 120ms ease;
}

.synesto-filter-chips__clear:hover {
    background: #eef7ff;
    border-color: #248ad3;
}

.top-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    z-index: 9999;
    background: transparent;
}

.top-progress-bar__inner {
    height: 100%;
    background: linear-gradient(
            90deg,
            #47a1e2,
            #47a1e2
    );
    transition: width 0.2s ease;
}

.synesto-invoice-preview .synesto-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 12px 18px;
}

.synesto-invoice-preview .synesto-preview-field .label {
    font-size: 12px;
    color: #6b7280;
}

.synesto-invoice-preview .synesto-preview-field .value {
    font-size: 14px;
    font-weight: 600;
}

.synesto-invoice-accordion .synesto-acc-trigger {
    width: calc(100% - 20px);
    background: transparent;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 6px;
    cursor: pointer;
    font-weight: 700;

    background-color: #fbfbfb;
    border-radius: 10px;
    /* color: #fff; */
    font-weight: bold;
    border: 1px solid #e9e9e9;
    cursor: pointer;
    color: #2f3538;
    margin-top: 5px;
    margin-left: 5px;
}

.synesto-invoice-accordion .synesto-acc-title {
    width: 100%;
    text-align: center;
    font-size: 15px;
}

.synesto-invoice-accordion .synesto-acc-chevron {
    opacity: 0.6;
    transition: transform 0.2s ease;
}

.synesto-invoice-accordion .synesto-acc-group.is-open .synesto-acc-chevron {
    transform: rotate(180deg);
}

.synesto-invoice-accordion .synesto-acc-panel {
    padding-bottom: 8px;
}

.modal-content {
    border-radius: 0px;
}

/* Blur the main modal content when a nested modal is open on top */
.synesto-invoice-form.modal-blurred .modal-content,
.synesto-order-detail-modal.modal-blurred .modal-content {
    filter: blur(3px);
    pointer-events: none;
    transition: filter 0.15s ease;
}

/* Shadow on nested modals over blurred background */
.synesto-invoice-form.modal-blurred ~ .modal .modal-content,
.synesto-order-detail-modal.modal-blurred ~ .modal .modal-content {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

/* NIP autocomplete suggestion hover */
.nip-suggestion-item:hover {
    background: #f3f6fb;
}

/* Row delete button in invoice items table */
.synesto-row-delete-btn {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(239, 68, 68, 0.35);
    background: #fff;
    color: #ef4444;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.15s, border-color 0.15s;
    padding: 0;
}

.synesto-row-delete-btn:hover {
    background: rgba(239, 68, 68, 0.10);
    border-color: rgba(239, 68, 68, 0.50);
}

.synesto-invoices-main-menu li,
.synesto-invoice-pagination li,
.synesto-documents-main-menu li,
.synesto-document-pagination li,
.synesto-mail-message-main-menu li,
.synesto-mail-message-nav-menu li,
.synesto-mail-mailbox-main-menu li,
.synesto-mail-mailbox-nav-menu li {
    position: relative;
}

/* tooltip box */
.synesto-invoices-main-menu li::after,
.synesto-invoice-pagination li::after,
.synesto-documents-main-menu li::after,
.synesto-document-pagination li::after,
.synesto-mail-message-main-menu li::after,
.synesto-mail-message-nav-menu li::after,
.synesto-mail-mailbox-main-menu li::after,
.synesto-mail-mailbox-nav-menu li::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -36px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;

    background: rgba(30, 41, 59, 0.9); /* ciemny, elegancki */
    color: #fff;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 8px;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

/* mała strzałka */
.synesto-invoices-main-menu li::before,
.synesto-invoice-pagination li::before,
.synesto-documents-main-menu li::before,
.synesto-document-pagination li::before,
.synesto-mail-message-main-menu li::before,
.synesto-mail-message-nav-menu li::before,
.synesto-mail-mailbox-main-menu li::before,
.synesto-mail-mailbox-nav-menu li::before {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);

    border: 6px solid transparent;
    border-bottom-color: rgba(30, 41, 59, 0.9);

    opacity: 0;
    transition: opacity 0.15s ease;
}

/* hover */
.synesto-invoices-main-menu li:hover::after,
.synesto-invoices-main-menu li:hover::before,
.synesto-invoice-pagination li:hover::after,
.synesto-invoice-pagination li:hover::before,
.synesto-documents-main-menu li:hover::after,
.synesto-documents-main-menu li:hover::before,
.synesto-document-pagination li:hover::after,
.synesto-document-pagination li:hover::before,
.synesto-mail-message-main-menu li:hover::after,
.synesto-mail-message-main-menu li:hover::before,
.synesto-mail-message-nav-menu li:hover::after,
.synesto-mail-message-nav-menu li:hover::before,
.synesto-mail-mailbox-main-menu li:hover::after,
.synesto-mail-mailbox-main-menu li:hover::before,
.synesto-mail-mailbox-nav-menu li:hover::after,
.synesto-mail-mailbox-nav-menu li:hover::before {
    opacity: 1;
}

/* Mail: kolumny nie obcinają tooltipów z toolbarów */
#synesto-mail-mailbox,
#synesto-mail-message {
    overflow: visible;
}

.synesto-thBtn {
    display: block;
    align-items: center;
    gap: 6px;
    color: inherit;
}

/* jeśli gdzieś masz overflow hidden na thBtn - usuń */
.synesto-thBtn { overflow: visible; }

.synesto-sort-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.synesto-sort-icons {
    display: inline-flex;
    align-items: center;
    min-width: 14px;
    font-size: 12px;
    line-height: 1;
}

/* Domyślnie: neutralnie */
.synesto-thBtn .sort-neutral {
    opacity: 0.6;
    color: #999;
}
.synesto-thBtn .sort-asc,
.synesto-thBtn .sort-desc {
    opacity: 0.4;
    color: #999;
    font-weight: 700;
}

/* ✅ Aktywna kolumna: podbij kolor/kontrast */
.synesto-thBtn[data-sort-active="true"] .synesto-sort-icons {
    opacity: 1;
}

.synesto-thBtn[data-sort-active="true"][data-sort-dir="asc"] .sort-asc {
    opacity: 1;
    color: #0d6efd;
}

.synesto-thBtn[data-sort-active="true"][data-sort-dir="desc"] .sort-desc {
    opacity: 1;
    color: #0d6efd;
}

/* Jeśli aktywne — ukryj neutralną ikonę ⇅ */
.synesto-thBtn[data-sort-active="true"] .sort-neutral {
    display: none;
}

/* Hover: neutralna bardziej widoczna */
.synesto-thBtn:hover .sort-neutral {
    opacity: 1;
    color: #666;
}

/* wrapper */
.synesto-skeleton-wrap {
    width: 100%;
}

/* podstawowy skeleton */
.synesto-skel {
    position: relative;
    overflow: hidden;
    background: #e6e8eb;
    border-radius: 999px;
}

/* animacja "shimmer" jak Gmail */
.synesto-skel::after {
    content: "";
    position: absolute;
    top: 0;
    left: -40%;
    height: 100%;
    width: 40%;
    background: linear-gradient(
            90deg,
            rgba(255,255,255,0) 0%,
            rgba(255,255,255,0.7) 50%,
            rgba(255,255,255,0) 100%
    );
    animation: synesto-shimmer 1.1s infinite;
}

@keyframes synesto-shimmer {
    0% { transform: translateX(0); }
    100% { transform: translateX(300%); }
}

/* warianty */
.synesto-skel--line { height: 14px; border-radius: 10px; }
.synesto-skel--pill { height: 18px; border-radius: 999px; }
.synesto-skel--circle { width: 22px; height: 22px; border-radius: 50%; }
.synesto-skel--square { width: 20px; height: 20px; border-radius: 6px; }
.synesto-skel--h { height: 14px; width: 60%; border-radius: 10px; opacity: 0.8; }

/* szerokości belek */
.w-30 { width: 30%; }
.w-35 { width: 35%; }
.w-40 { width: 40%; }
.w-50 { width: 50%; }
.w-60 { width: 60%; }
.w-80 { width: 80%; }

/* opcjonalnie: żeby wiersze miały lepszą "gęstość" */
.synesto-skeleton-row td {
    padding-top: 14px;
    padding-bottom: 14px;
}

/* Mail list skeleton */
.synesto-mail-skeleton-item {
    padding: 9px 12px;
}

.synesto-mail-skeleton-item .header {
    margin-bottom: 7px;
}

.synesto-mail-skeleton-item .header .synesto-skel--line {
    height: 12px;
}

.synesto-mail-skeleton-item .title .synesto-skel--line {
    height: 14px;
}

/* Mail content skeleton */
.synesto-mail-content-skeleton .subject {
    margin-bottom: 16px;
}

.synesto-mail-content-skeleton .subject .synesto-skel--line {
    height: 22px;
}

.synesto-mail-content-skeleton .headers {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 0;
    border-top: 1px solid #f8f8f8;
    border-bottom: 1px solid #f8f8f8;
}

.synesto-mail-content-skeleton .header-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.synesto-mail-content-skeleton .header-info .synesto-skel--line {
    height: 13px;
}

.synesto-mail-content-skeleton .message {
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.synesto-mail-content-skeleton .message .synesto-skel--line {
    height: 13px;
}

.synesto-mail-content-skeleton .message .synesto-skel--line.skel-spacer {
    height: 0;
    margin-top: 6px;
}

/* =========================
   Invoice mobile card list
========================= */
.synesto-invoice-mobile-list {
    display: none;
}

@media (max-width: 991px) {
    /* Hide desktop table, show mobile cards */
    .synesto-tableScroll,
    .synesto-invoices-menus {
        display: none !important;
    }

    .synesto-invoice-mobile-list {
        display: block;
        padding-bottom: 72px;
    }

    #synesto-invoices {
        height: auto !important;
        overflow: visible !important;
    }

    #synesto-invoices .synesto-table {
        margin-top: 0;
    }

    .synesto-invoice-card {
        position: relative;
        padding: 10px 14px 10px 40px;
        border-bottom: 1px solid #e5e5e5;
        cursor: pointer;
    }

    .synesto-invoice-card:active {
        background: #f8f9fa;
    }

    .synesto-invoice-card.selected {
        background: #eef7ff !important;
        border-left: 3px solid #248ad3;
    }

    .synesto-invoice-card--skeleton {
        padding-left: 14px;
        cursor: default;
    }

    .synesto-invoice-card--skeleton:active {
        background: none;
    }

    .synesto-invoice-card__row {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .synesto-invoice-card__number {
        font-size: 14px;
        font-weight: 600;
        color: #2f3538;
    }

    .synesto-invoice-card__amount {
        font-size: 14px;
        font-weight: 600;
        color: #2f3538;
    }

    .synesto-invoice-card__client {
        font-size: 12px;
        color: #9c9c9c;
        margin-top: 2px;
    }

    .synesto-invoice-card__date {
        font-size: 12px;
        color: #9c9c9c;
    }

    .synesto-invoice-card__row .synesto-badge {
        margin-top: 4px;
    }
}


/* =========================
   Login page
========================= */
.synesto-login-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: #fff;
    overflow-y: auto;
}

.synesto-login-split {
    display: flex;
    min-height: 100vh;
}

.synesto-login-form-col {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.synesto-login-card {
    width: 100%;
    max-width: 400px;
}

.synesto-login-card-header {
    text-align: center;
    margin-bottom: 32px;
}

.synesto-login-logo {
    height: 28px;
    margin-bottom: 24px;
}

.synesto-login-title {
    font-size: 22px;
    font-weight: 700;
    color: #2f3538;
    margin: 0 0 6px;
}

.synesto-login-subtitle {
    font-size: 14px;
    color: #9c9c9c;
    margin: 0;
}

.synesto-login-form {
    width: 100%;
}

.synesto-login-label {
    font-size: 13px;
    color: #2f3538;
    margin-bottom: 4px;
}

.synesto-login-input {
    font-size: 14px;
    background: #fbfbfb;
    border: 1px solid #e9e9e9;
    border-radius: 10px;
    padding: 10px 14px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.synesto-login-input:focus {
    background: #eef7ff;
    border-color: #d4e4ef;
    box-shadow: none;
    outline: none;
}

.synesto-login-password-wrap {
    position: relative;
}

.synesto-login-password-wrap .synesto-login-input {
    padding-right: 44px;
}

.synesto-login-eye {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    color: #9c9c9c;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
}

.synesto-login-eye:hover {
    color: #2f3538;
}

.synesto-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #eef7ff;
    color: #248ad3;
    border: 1px solid #d4e4ef;
    border-radius: 10px;
    padding: 11px 20px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.synesto-login-btn:hover {
    background: #ddeefb;
    border-color: #b8d4ea;
}

.synesto-login-btn:active {
    transform: translateY(1px);
}

.synesto-login-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Brand panel (right column) */
.synesto-login-brand {
    flex: 1 1 50%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 0 60px;
    background:
        linear-gradient(180deg, rgba(22,70,120,.18) 0%, rgba(22,70,120,.55) 100%),
        url("https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=1200&q=80&fit=crop")
        center / cover no-repeat;
}

.synesto-login-brand-text {
    text-align: center;
    max-width: 380px;
    padding: 0 24px;
}

.synesto-login-brand-title {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    text-shadow: 0 1px 4px rgba(0,0,0,.3);
}

.synesto-login-brand-desc {
    font-size: 14px;
    color: rgba(255,255,255,.85);
    line-height: 1.6;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,.25);
}

/* Responsive: hide brand panel on small screens */
@media (max-width: 768px) {
    .synesto-login-split {
        flex-direction: column;
    }

    .synesto-login-brand {
        display: none;
    }

    .synesto-login-form-col {
        flex: 1;
        padding: 32px 20px;
    }
}


/* =========================
   Mobile / Tablet responsive layout
========================= */

/* Hamburger button — opens page sidebar (hidden on desktop) */
.synesto-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid #e9e9e9;
    border-radius: 10px;
    font-size: 22px;
    color: #2f3538;
    cursor: pointer;
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.synesto-hamburger:hover {
    background: #f3f6fb;
}

/* Right-side header buttons container (apps + avatar) */
.synesto-header-right-buttons {
    display: none;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    align-items: center;
    gap: 8px;
}

/* Apps toggle button — opens app modules (hidden on desktop) */
.synesto-apps-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    border-radius: 10px;
    font-size: 20px;
    color: #2f3538;
    cursor: pointer;
}

.synesto-apps-toggle:hover {
    background: #f3f6fb;
}

/* Avatar toggle button — circular like account avatar */
.synesto-avatar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f3f6fb;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    color: #2f3538;
    cursor: pointer;
}

.synesto-avatar-toggle:hover {
    border: 2px solid #47a1e2;
}

.synesto-avatar-toggle--photo {
    background-image: url("https://preview.keenthemes.com/metronic8/demo1/assets/media/avatars/300-1.jpg");
    background-size: cover;
    background-position: center;
    font-size: 0;
}

/* Avatar dropdown */
.synesto-avatar-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    min-width: 180px;
    padding: 6px 0;
    z-index: 1200;
}

.synesto-avatar-dropdown__item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: none;
    font-size: 14px;
    color: #2f3538;
    cursor: pointer;
    text-align: left;
}

.synesto-avatar-dropdown__item:hover {
    background: #f3f6fb;
}

.synesto-avatar-dropdown__item--danger {
    color: #dc3545;
}

.synesto-avatar-dropdown__item--danger:hover {
    background: #fef2f2;
}

/* Mobile overlay behind panels */
.synesto-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1099;
}

body.synesto-menu-open .synesto-mobile-overlay,
body.synesto-apps-open .synesto-mobile-overlay {
    display: block;
}

/* ---- Tablet breakpoint (≤991px) ---- */
@media (max-width: 991px) {
    .synesto-hamburger {
        display: flex;
        border: none;
        font-size: 30px;
    }

    .synesto-header-right-buttons {
        display: flex;
    }

    .synesto-apps-toggle {
        font-size: 28px;
    }

    .synesto-avatar-toggle {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }

    #synesto-logo {
        top: 50%;
        transform: translate(-50%, -50%);
    }

    /* App modules sidebar: slide-in from LEFT, redesigned for mobile */
    #synesto-apps {
        width: 280px;
        background: #fff;
        border-right: 1px solid #e9e9e9;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        z-index: 1100;
        padding-top: 58px;
    }

    #synesto-apps::before {
        content: "";
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 58px;
        padding-top: 25px;
        background: url("http://site2.synesto.com/images/logo.png") center / auto 20px no-repeat;
        border-bottom: 1px solid #f8f8f8;
    }

    #synesto-apps ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        padding: 12px;
    }

    #synesto-apps li {
        font-size: 13px;
        border-bottom: none;
        border-left: none;
        border-radius: 10px;
        background-position: 50% 28%;
        background-size: 24px 24px;
        background-color: color-mix(in srgb, var(--mod-color, #47a1e2) 8%, #fff);
        border-top: 3px solid var(--mod-color, #47a1e2);
    }

    #synesto-apps li > a {
        padding: 48px 8px 12px 8px;
        border-radius: 10px;
        color: var(--mod-color, #2f3538);
        font-weight: 600;
    }

    #synesto-apps li:hover,
    #synesto-apps li.selected {
        background-color: color-mix(in srgb, var(--mod-color, #47a1e2) 15%, #fff);
        border-left: none;
    }

    #synesto-apps li span.badge {
        top: 6px;
        right: 6px;
    }

    body.synesto-apps-open #synesto-apps {
        transform: translateX(0);
    }

    /* Page sidebar (mail folders, invoice categories): slide-in from LEFT */
    .synesto-page-sidebar {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 260px !important;
        height: 100vh !important;
        max-height: 100vh !important;
        padding-top: 70px;
        background: #fff;
        border-right: 1px solid #e9e9e9;
        z-index: 1100;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        margin: 0 !important;
        float: none !important;
    }

    /* Logo at the top of the page sidebar */
    .synesto-page-sidebar::before {
        content: "";
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 58px;
        padding-top: 25px;
        background: url("http://site2.synesto.com/images/logo.png") center / auto 20px no-repeat;
        border-bottom: 1px solid #f8f8f8;
    }

    .synesto-page-sidebar {
        padding-top: 58px !important;
    }

    #synesto-mail .synesto-mail-menu,
    #synesto-invoice .synesto-invoice-menu,
    #synesto-eshop .synesto-eshop-menu,
    #synesto-document .synesto-document-menu {
        padding: 0 !important;
        margin: 8px 0 0 0 !important;
    }

    #synesto-mail .synesto-mail-menu li,
    #synesto-invoice .synesto-invoice-menu li,
    #synesto-invoice .synesto-invoice-menu > a,
    #synesto-eshop .synesto-eshop-menu > a,
    #synesto-document .synesto-document-menu li {
        margin-left: 8px;
        margin-right: 8px;
        font-size: 14px !important;
    }

    .synesto-invoice-accordion .synesto-acc-trigger,
    .synesto-eshop-accordion .synesto-acc-trigger {
        margin-left: 8px;
        margin-right: 8px;
    }

    body.synesto-menu-open .synesto-page-sidebar {
        transform: translateX(0);
    }

    /* Content: full width, no sidebar offset */
    .synesto-content {
        left: 0 !important;
        width: 100% !important;
    }

    /* Mail list: full width on mobile, no side padding */
    #synesto-mail-mailbox {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100%;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #synesto-mail.synesto-content,
    #synesto-invoice.synesto-content,
    #synesto-eshop.synesto-content,
    #synesto-document.synesto-content {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Invoice list: full width on mobile */
    #synesto-invoices,
    #synesto-documents {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100%;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* E-shop list containers: full width on mobile */
    #synesto-eshop [id^="synesto-eshop-"] {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100%;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Mail content (detail): hidden on tablet, phone shows list only */
    #synesto-mail-message {
        display: none;
    }

    /* Header: make room for hamburger + apps buttons */
    #synesto-logo {
        left: 50%;
    }
}

/* ---- Mobile breakpoint (≤768px) ---- */
@media (max-width: 768px) {
    /* Header: two rows — logo row + search row */
    #synesto-header {
        height: auto;
        display: flex;
        flex-direction: column;
    }

    #synesto-header > header {
        height: 58px;
        flex-shrink: 0;
    }

    #synesto-logo {
        height: 20px;
        top: 54%;
        left: 68px;
        transform: translate(0, -50%);
    }

    .synesto-hamburger {
        top: 54%;
    }

    .synesto-header-right-buttons {
        top: 54%;
    }

    /* Search bar: full width row below logo */
    #synesto-header-manage {
        width: 100%;
        padding: 0 12px 8px;
        height: auto;
    }

    #synesto-header-manage > .row {
        height: auto !important;
        margin: 0;
    }

    #synesto-search {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
        height: auto;
        padding: 0;
    }

    #synesto-search > div {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        height: 48px;
        width: 100%;
        margin: 0;
    }

    #synesto-search input[type="text"] {
        font-size: 16px;
    }

    /* Offsets for two-row header */
    #synesto-apps {
        padding-top: 58px;
    }

    .synesto-content {
        top: 130px !important;
        margin-top: 0 !important;
    }

    #synesto-header.mb-3 {
        margin-bottom: 0 !important;
    }

    /* Mail list: remove top margin, full height */
    #synesto-mail-mailbox {
        height: auto !important;
    }

    #synesto-mail-mailbox .synesto-mail-list {
        margin-top: 0 !important;
        padding: 0 !important;
        padding-bottom: 72px !important;
    }
}

/* =========================
   Mobile sticky bottom bar
========================= */
.synesto-mobile-bottombar {
    display: none;
}

@media (max-width: 991px) {
    .synesto-mobile-bottombar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 62px;
        background: #fff;
        border-top: 1px solid #e9e9e9;
        z-index: 1050;
        align-items: center;
        justify-content: space-between;
        padding: 0 12px;
        gap: 8px;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
    }

    /* Action buttons row (left side) */
    .synesto-mobile-bottombar__actions {
        display: flex;
        gap: 6px;
        align-items: center;
    }

    /* Pagination info (center) */
    .synesto-mobile-bottombar__info {
        font-size: 13px;
        color: #9c9c9c;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Navigation buttons (right side) */
    .synesto-mobile-bottombar__nav {
        display: flex;
        gap: 6px;
        align-items: center;
    }

    /* Rounded button style */
    .synesto-mobile-bottombar__btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: 1px solid #d4e4ef;
        background: #eef7ff;
        border-radius: 50%;
        color: #248ad3;
        font-size: 18px;
        cursor: pointer;
        transition: background 120ms ease, border-color 120ms ease;
        padding: 0;
        flex-shrink: 0;
    }

    .synesto-mobile-bottombar__btn:hover {
        background: #dceefb;
        border-color: #b8d4ea;
    }

    .synesto-mobile-bottombar__btn:active {
        background: #cce5f7;
        transform: translateY(1px);
    }

    .synesto-mobile-bottombar__btn--muted {
        background: #f8f8f8;
        border-color: #e9e9e9;
        color: #2f3538;
    }

    .synesto-mobile-bottombar__btn--muted:hover {
        background: #f0f0f0;
        border-color: #d4d4d4;
    }

    /* Danger button (delete in selection mode) */
    .synesto-mobile-bottombar__btn--danger {
        background: #fef2f2;
        border-color: #f5c6c6;
        color: #dc2626;
    }

    .synesto-mobile-bottombar__btn--danger:hover {
        background: #fde8e8;
        border-color: #f0a0a0;
    }

    /* Selection mode layout */
    .synesto-mobile-bottombar__sel-info {
        display: flex;
        gap: 8px;
        align-items: center;
        font-size: 14px;
        font-weight: 600;
        color: #2f3538;
        white-space: nowrap;
    }

    .synesto-mobile-bottombar__sel-actions {
        display: flex;
        gap: 6px;
        align-items: center;
    }

    /* Mail item checkbox — mobile only */
    .synesto-mail-checkbox {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
        cursor: pointer;
        width: 36px;
        height: 100%;
        min-height: 44px;
        margin: 0;
    }

    .synesto-mail-checkbox input[type="checkbox"] {
        width: 15px;
        height: 15px;
        accent-color: #248ad3;
        cursor: pointer;
        margin: 0;
    }

    /* Shift mail item content to the right for checkbox */
    .synesto-mail-item {
        position: relative;
        padding-left: 40px !important;
        padding-right: 14px !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        border-bottom: 1px solid #e5e5e5 !important;
    }

    /* Hide hover options menu on mobile */
    .synesto-mail-item .options {
        display: none !important;
    }

    .synesto-mail-item:hover .date,
    .synesto-mail-item:hover .thread-count {
        display: block !important;
    }

    /* Selected item highlight */
    .synesto-mail-item.selected {
        background: #eef7ff !important;
        border-left: 3px solid #248ad3;
    }

    /* FAB — new message button */
    .synesto-mobile-fab {
        display: flex;
        position: fixed;
        bottom: 78px;
        right: 16px;
        width: 54px;
        height: 54px;
        border-radius: 50%;
        background: #248ad3;
        color: #fff;
        border: none;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        cursor: pointer;
        z-index: 1051;
        box-shadow: 0 4px 12px rgba(36, 138, 211, 0.35);
        transition: background 120ms ease, transform 120ms ease, box-shadow 120ms ease;
    }

    .synesto-mobile-fab:hover {
        background: #1d78b8;
        box-shadow: 0 6px 16px rgba(36, 138, 211, 0.45);
    }

    .synesto-mobile-fab:active {
        transform: scale(0.93);
    }
}

/* FAB + checkbox + selection highlight: hidden on desktop */
@media (min-width: 992px) {
    .synesto-mobile-fab {
        display: none !important;
    }

    .synesto-mail-checkbox {
        display: none !important;
    }

    .synesto-mail-item {
        padding-left: 10px;
    }

    .synesto-mail-item.selected {
        background: inherit;
        border-left: none;
    }
}

/* ========================================
   E-SKLEP MODULE
   ======================================== */

/* --- Layout --- */
#synesto-eshop {
    display: flex;
    flex-wrap: wrap;
}

#synesto-eshop-menus {
    position: sticky;
    top: 0;
    height: calc(100vh - 85px);
    overflow: auto;
    margin-top: 10px;
    border-right: 1px solid #f8f8f8;
}

#synesto-eshop .synesto-eshop-menu {
    position: sticky;
    top: 0;
}

/* Content area: scroll independently */
#synesto-eshop [id^="synesto-eshop-"] {
    height: calc(100vh - 85px);
    overflow: auto;
}

/* --- Sidebar accordion --- */
.synesto-eshop-accordion {
    padding: 10px 0;
}

.synesto-eshop-accordion .synesto-acc-trigger {
    width: calc(100% - 20px);
    background: transparent;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 6px;
    cursor: pointer;
    font-weight: 700;
    background-color: #fbfbfb;
    border-radius: 10px;
    font-weight: bold;
    border: 1px solid #e9e9e9;
    color: #2f3538;
    margin-top: 5px;
    margin-left: 5px;
}

.synesto-eshop-accordion .synesto-acc-title {
    width: 100%;
    text-align: center;
    font-size: 15px;
}

.synesto-eshop-accordion .synesto-acc-chevron {
    opacity: 0.6;
    transition: transform 0.2s ease;
}

.synesto-eshop-accordion .synesto-acc-group.is-open .synesto-acc-chevron {
    transform: rotate(180deg);
}

.synesto-eshop-accordion .synesto-acc-panel {
    padding-bottom: 8px;
}

#synesto-eshop .synesto-eshop-menu {
    list-style-type: none;
    padding: 0px 10px 0px 0px;
    margin: 5px 0px 0px 0px;
}

#synesto-eshop .synesto-eshop-menu > a {
    display: block;
    float: left;
    width: 100%;
    padding: 12px 5px 12px 60px;
    border-bottom: 1px solid #f8f8f8;
    margin: 5px;
    color: #2f3538;
    text-decoration: none;
    font-size: 13px;
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: 20px 50%;
    border: 1px solid transparent;
}

#synesto-eshop .synesto-eshop-menu > a > div {
    float: left;
}

#synesto-eshop .synesto-eshop-menu > a > span {
    float: right;
    font-weight: normal;
    font-size: 10px;
    margin-right: 8px;
    color: #7d7d7d;
    border-radius: 10px;
    padding: 3px 5px;
}

#synesto-eshop .synesto-eshop-menu a.products {
    background-image: url(./../img/ecommerce.png);
}

#synesto-eshop .synesto-eshop-menu a.categories {
    background-image: url(./../img/folder.svg);
}

#synesto-eshop .synesto-eshop-menu a.orders {
    background-image: url(./../img/card-checklist.svg);
}

#synesto-eshop .synesto-eshop-menu a.returns {
    background-image: url(./../img/arrow-return-left.svg);
}

#synesto-eshop .synesto-eshop-menu a.warehouses {
    background-image: url(./../img/server.svg);
}

#synesto-eshop .synesto-eshop-menu a.stock {
    background-image: url(./../img/grid-3x3-gap.svg);
}

#synesto-eshop .synesto-eshop-menu a.movements {
    background-image: url(./../img/arrow-repeat.svg);
}

#synesto-eshop .synesto-eshop-menu a.customers {
    background-image: url(./../img/people.svg);
}

#synesto-eshop .synesto-eshop-menu a.promotions {
    background-image: url(./../img/bookmarks.svg);
}

#synesto-eshop .synesto-eshop-menu a.manufacturers {
    background-image: url(./../img/suitcase-lg.svg);
}

#synesto-eshop .synesto-eshop-menu a.pricelist {
    background-image: url(./../img/list-ul.svg);
}

#synesto-eshop .synesto-eshop-menu a.settings {
    background-image: url(./../img/gear.svg);
}

#synesto-eshop .synesto-eshop-menu a.selected,
#synesto-eshop .synesto-eshop-menu a:hover {
    background-color: #fbfbfb;
    border-radius: 10px;
    font-weight: bold;
    border: 1px solid #e9e9e9;
    cursor: pointer;
    color: #2f3538;
    width: calc(100% - 10px);
}

/* --- Search bar --- */
.synesto-eshop-search {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 0 5px;
}

.synesto-eshop-search__input {
    border: 1px solid #e9e9e9;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    outline: none;
    width: 250px;
    transition: border-color 0.2s;
}

.synesto-eshop-search__input:focus {
    border-color: #47a1e2;
}

.synesto-eshop-search__btn {
    background: #47a1e2;
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
}

.synesto-eshop-search__btn:hover {
    background: #3991d0;
}

/* --- Selected table row --- */
#synesto-eshop .synesto-row--selected {
    background-color: #eef7ff;
}

/* --- Active (detail/status open) table row --- */
#synesto-eshop .synesto-row--active {
    background-color: rgba(13, 110, 253, 0.12) !important;
    box-shadow: inset 3px 0 0 0 #0d6efd;
}

#synesto-eshop .synesto-invoice-card--active {
    border-left: 3px solid #0d6efd;
    background-color: rgba(13, 110, 253, 0.08);
}

/* --- Toolbar (reuse invoice toolbar) for eshop modules --- */
#synesto-eshop [id^="synesto-eshop-"] .synesto-invoices-menus {
    position: fixed;
    width: 100%;
    border-bottom: 1px solid #f8f8f8;
    padding-bottom: 10px;
    padding-top: 10px;
    background: #fbfbfb;
    z-index: 100;
}

@media (min-width: 1200px) {
    #synesto-eshop [id^="synesto-eshop-"] .synesto-invoices-menus {
        width: calc(100% - 325px);
    }
}

#synesto-eshop [id^="synesto-eshop-"] .synesto-invoices-menus ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#synesto-eshop [id^="synesto-eshop-"] .synesto-invoices-menus ul li {
    float: left;
    width: 35px;
    height: 34px;
    background-size: 16px 16px;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    padding: 5px;
    margin: 0 10px;
    background-color: #fff !important;
    border-radius: 50%;
    border: 1px solid #e9e9e9;
}

#synesto-eshop [id^="synesto-eshop-"] .synesto-invoices-menus ul li:hover {
    background-size: 22px 22px;
    cursor: pointer;
}

#synesto-eshop [id^="synesto-eshop-"] .synesto-invoices-menus ul li.add {
    background-image: url(./../img/add.png);
}

#synesto-eshop [id^="synesto-eshop-"] .synesto-invoices-menus ul li.active-filter {
    background-image: url(./../img/check2-circle.svg);
    opacity: 0.4;
    transition: opacity 0.2s;
}

#synesto-eshop [id^="synesto-eshop-"] .synesto-invoices-menus ul li.active-filter.active {
    opacity: 1;
    background-color: #e8f4fd;
    border-radius: 6px;
}

/*
#synesto-eshop [id^="synesto-eshop-"] .synesto-invoices-menus ul li.refresh {
    background-image: url(./../img/arrow-clockwise.svg);
}
*/

#synesto-eshop [id^="synesto-eshop-"] .synesto-invoices-menus ul li.delete {
    background-image: url(./../img/trash3.svg);
}

#synesto-eshop [id^="synesto-eshop-"] .synesto-invoices-menus ul li.edit {
    background-image: url(./../img/edit.png);
}

#synesto-eshop [id^="synesto-eshop-"] .synesto-invoices-menus ul li.filter {
    background-image: url(./../img/filter.png);
}

#synesto-eshop [id^="synesto-eshop-"] .synesto-invoices-menus ul li.pdf {
    background-image: url(./../img/pdf.png);
}

#synesto-eshop [id^="synesto-eshop-"] .synesto-invoices-menus ul li.print {
    background-image: url(./../img/printer.png);
}

#synesto-eshop [id^="synesto-eshop-"] .synesto-invoices-menus ul li.columns {
    background-image: url(./../img/grid-3x3-gap.svg);
}

#synesto-eshop [id^="synesto-eshop-"] .synesto-invoices-menus ul li.prev {
    background-image: url(./../img/chevron-left.svg);
}

#synesto-eshop [id^="synesto-eshop-"] .synesto-invoices-menus ul li.next {
    background-image: url(./../img/chevron-right.svg);
}

#synesto-eshop [id^="synesto-eshop-"] .synesto-invoices-main-menu {
    display: flex;
}

#synesto-eshop [id^="synesto-eshop-"] .synesto-invoices-nav-menu {
    display: flex;
}

#synesto-eshop [id^="synesto-eshop-"] .synesto-invoice-pagination {
    position: absolute;
    right: 10px;
    top: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- Table area scroll offset for fixed toolbar --- */
#synesto-eshop [id^="synesto-eshop-"] .synesto-tableScroll {
    margin-top: 60px;
}

/* --- Table --- */
#synesto-eshop .synesto-table {
    width: 100%;
    border-collapse: collapse;
}

#synesto-eshop .synesto-table__head {
    border-bottom: 2px solid #f3f6fb;
}

/*
#synesto-eshop .synesto-table__th {
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
*/

#synesto-eshop .synesto-table__th--check {
    width: 40px;
}

#synesto-eshop .synesto-table__th--center {
    text-align: center;
}

#synesto-eshop .synesto-td {
    padding: 10px 12px;
    font-size: 13px;
    border-bottom: 1px solid #f8f8f8;
    vertical-align: middle;
}

#synesto-eshop .synesto-td--check {
    width: 40px;
}

#synesto-eshop .synesto-table tbody tr:hover {
    background-color: #fbfbfb;
}

#synesto-eshop .synesto-table tbody tr.selected {
    background-color: #f3f6fb;
}

/*
#synesto-eshop .synesto-thBtn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

#synesto-eshop .synesto-thBtn:hover {
    color: #333;
}

#synesto-eshop .synesto-thBtn--center {
    display: flex;
    justify-content: center;
}*/

/* --- Sort labels --- */
/*
#synesto-eshop .synesto-sort-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

#synesto-eshop .synesto-sort-icons {
    font-size: 10px;
    line-height: 1;
    color: #999;
}
*/

/* --- Checkbox --- */
#synesto-eshop .synesto-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--syn-primary);
}

/* --- Products table: invoice-like header --- */
#synesto-eshop-products .synesto-table {
    border-collapse: separate;
    border-spacing: 0;
}

#synesto-eshop-products .synesto-table__head {
    border-bottom: none;
}

/*#synesto-eshop-products .synesto-table__head th {
    background: #f3f6fb;
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
}

#synesto-eshop-products .synesto-table__th {
    font-size: 13px;
    font-weight: normal;
    color: inherit;
    text-transform: none;
    letter-spacing: normal;
}

#synesto-eshop-products .synesto-thBtn {
    font-size: 13px;
    font-weight: normal;
    color: inherit;
    text-transform: none;
    letter-spacing: normal;
}

#synesto-eshop-products .synesto-thBtn:hover {
    color: inherit;
}*/

/* --- Cards (detail views) --- */
.synesto-eshop-card {
    background: #fff;
    border: 1px solid #f3f6fb;
    border-radius: 10px;
    overflow: hidden;
}

.synesto-eshop-card-title {
    padding: 12px 16px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    background: #f9fafb;
    border-bottom: 1px solid #f3f6fb;
}

.synesto-eshop-card-body {
    padding: 16px;
}

.synesto-eshop-card-body p {
    margin-bottom: 6px;
    font-size: 13px;
}

/* --- Details header --- */
.synesto-eshop-details-header {
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f6fb;
}

.synesto-eshop-details-header h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

/* --- Sticky form actions --- */
.synesto-eshop-sticky-actions {
    position: sticky;
    bottom: 0;
    background: #fff;
    border-top: 1px solid #f3f6fb;
    padding: 12px 16px;
    margin: 0 -12px;
    z-index: 50;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

/* --- Form styles --- */
.synesto-eshop-form .nav-tabs {
    border-bottom: 2px solid #f3f6fb;
    margin-bottom: 20px;
}

.synesto-eshop-form .nav-tabs .nav-link {
    font-size: 13px;
    font-weight: 500;
    color: #666;
    border: none;
    padding: 10px 16px;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.synesto-eshop-form .nav-tabs .nav-link.active {
    color: #47a1e2;
    border-bottom-color: #47a1e2;
    background: transparent;
}

.synesto-eshop-form .nav-tabs .nav-link:hover {
    color: #333;
}

/* --- Inputs & selects inside eshop form --- */
.synesto-eshop-form label {
    font-size: 13px;
}

.synesto-eshop-form .form-select,
.synesto-eshop-form .form-control {
    font-size: 14px;
    background: #fbfbfb;
}

.synesto-eshop-form .form-control:focus,
.synesto-eshop-form .form-select:focus {
    background: #eef7ff;
    border-color: #d4e4ef;
    box-shadow: none;
}

/* --- Switch styling inside eshop form --- */
.synesto-eshop-form .form-check-label {
    font-size: 13px;
}

.synesto-eshop-form .form-switch .form-check-input {
    width: 2.5em;
    height: 1.25em;
    cursor: pointer;
    background-color: #d1d5db;
    border: none;
    box-shadow: none;
}

.synesto-eshop-form .form-switch .form-check-input:checked {
    background-color: #47a1e2;
    border-color: #47a1e2;
}

.synesto-eshop-form .form-switch .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(71, 161, 226, 0.25);
    border-color: #47a1e2;
}

/* --- Category tree --- */
.synesto-category-tree {
	/*
    border: 1px solid var(--syn-border, #e5e7eb);
    border-radius: var(--syn-radius, 14px);
	*/
    overflow: clip;
    background: #fff;
    margin-top: 0;
}

.synesto-category-node {
    transition: background-color 0.15s;
}

.synesto-category-node__row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    min-height: 48px;
    border-top: 1px solid var(--syn-border, #e5e7eb);
    background: #fff;
    transition: background-color 0.15s;
}

.synesto-category-node:first-child > .synesto-category-node__row {
    border-top: 0;
}

.synesto-category-node__row:hover {
    background: var(--syn-hover, #f3f4f6);
}

.synesto-category-node__drag {
    cursor: grab;
    color: #aaa;
    font-size: 16px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.synesto-category-node__toggle {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #888;
    flex-shrink: 0;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.15s;
}

.synesto-category-node__toggle:hover {
    background: #e9ecef;
}

.synesto-category-node__name {
    flex-grow: 1;
    min-width: 0;
    font-weight: 500;
    font-size: 13px;
    color: var(--syn-text, #111827);
    cursor: pointer;
    user-select: none;
}

.synesto-category-node__name input {
    max-width: 300px;
    font-size: 13px;
}

.synesto-category-node__actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.synesto-category-node__btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #e9e9e9;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    color: #555;
    transition: border-color 0.15s, background-color 0.15s;
    padding: 0;
}

.synesto-category-node__btn:hover {
    border-color: #999;
    background: #f5f5f5;
}

.synesto-category-node__btn--danger {
    color: #c62828;
    border-color: #f5c6cb;
}

.synesto-category-node__btn--danger:hover {
    background: #fff5f5;
    border-color: #c62828;
}

.synesto-category-node__btn--confirm {
    width: auto;
    border-radius: 14px;
    padding: 0 10px;
    background: #c62828;
    color: #fff;
    border-color: #c62828;
    font-size: 11px;
    font-weight: 600;
}

.synesto-category-node__btn--confirm:hover {
    background: #b71c1c;
    border-color: #b71c1c;
    color: #fff;
}

.synesto-category-children {
    /* no extra padding - handled by paddingLeft on node */
}

/* --- Timeline (order history) --- */
.synesto-eshop-timeline {
    position: relative;
    padding-left: 24px;
}

.synesto-eshop-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #f3f6fb;
}

.synesto-eshop-timeline-item {
    position: relative;
    padding-bottom: 16px;
}

.synesto-eshop-timeline-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #47a1e2;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #f3f6fb;
}

.synesto-eshop-timeline-item .timeline-date {
    font-size: 11px;
    color: #999;
    margin-bottom: 2px;
}

.synesto-eshop-timeline-item .timeline-content {
    font-size: 13px;
}

/* --- Inline edit (categories) --- */
.synesto-eshop-inline-input {
    border: 1px solid #47a1e2;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 14px;
    outline: none;
    width: 200px;
}

/* --- Product thumbnail placeholder --- */
.synesto-eshop-thumbnail {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: #f3f6fb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #ccc;
}

/* --- Skeleton (reuse existing) --- */
#synesto-eshop .synesto-skeleton-wrap {
    width: 100%;
}

#synesto-eshop .synesto-skeleton-table {
    width: 100%;
}

#synesto-eshop .synesto-skeleton-row .synesto-skel {
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f3f6fb 25%, #e8ecf1 50%, #f3f6fb 75%);
    background-size: 200% 100%;
    animation: synesto-shimmer 1.5s infinite;
}

#synesto-eshop .synesto-skel--circle {
    width: 16px;
    height: 16px !important;
    border-radius: 50% !important;
}

#synesto-eshop .synesto-skel--line {
    height: 14px;
}

@keyframes synesto-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- Shipment panel --- */
.synesto-eshop-shipment-panel {
    background: #f9fafb;
    border: 1px solid #f3f6fb;
    border-radius: 8px;
    padding: 16px;
}

/* --- Responsive: counteract global invoice mobile hide --- */
@media (max-width: 991px) {
    /* Invoice mobile rules globally hide .synesto-tableScroll and .synesto-invoices-menus.
       Override for e-shop: show them inside #synesto-eshop where components handle their own mobile layout. */
    #synesto-eshop .synesto-invoices-menus {
        display: none !important;
    }

    #synesto-eshop .synesto-tableScroll {
        display: none !important;
    }

    #synesto-eshop .synesto-invoice-mobile-list {
        display: block;
        padding-bottom: 72px;
    }

    #synesto-eshop [id^="synesto-eshop-"] {
        height: auto !important;
        overflow: visible !important;
    }
}

/* --- Responsive: small screens --- */
@media (max-width: 767px) {
    #synesto-eshop-menus {
        height: auto;
        border-right: none;
        border-bottom: 1px solid #f8f8f8;
    }

    #synesto-eshop .synesto-tableScroll {
        overflow-x: auto;
    }

    .synesto-eshop-sticky-actions {
        margin: 0;
        padding: 10px;
    }

    #synesto-eshop [id^="synesto-eshop-"] .synesto-invoices-menus {
        position: relative;
        width: 100%;
    }

    #synesto-eshop [id^="synesto-eshop-"] .synesto-tableScroll {
        margin-top: 10px;
    }

    .synesto-eshop-search {
        width: 100%;
    }

    .synesto-eshop-search__input {
        width: 100%;
    }
}

/* =============================================
   E-shop Modal Form Styles
   (mirrors synesto-invoice-form styling)
   ============================================= */

/* --- Form labels --- */
.synesto-eshop-modal label {
    font-size: 13px;
}

.synesto-eshop-modal .h4 {
    font-size: 15px;
    font-weight: 600;
}

/* --- Inputs & selects --- */
.synesto-eshop-modal .form-select,
.synesto-eshop-modal input {
    font-size: 14px;
    background: #fbfbfb;
}

.synesto-eshop-modal input:focus,
.synesto-eshop-modal select:focus,
.synesto-eshop-modal .form-control:focus,
.synesto-eshop-modal .form-select:focus {
    background: #eef7ff;
    border-color: #d4e4ef;
    box-shadow: none;
}

.synesto-eshop-modal th {
    font-size: 13px;
}

.synesto-eshop-modal .text-muted {
    font-size: 12px;
    text-align: center;
}

.synesto-eshop-modal .fw-semibold {
    text-align: center;
}

/* --- Buttons (same flat style as invoice modal) --- */
.synesto-eshop-modal .btn {
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: 20px 50%;
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
    border-top: 1px solid #fff;
    border-color: #d4e4ef !important;
    font-weight: bold;
}

.synesto-eshop-modal .btn.btn-primary {
    color: #248ad3;
    background-color: #eef7ff !important;
}

.synesto-eshop-modal .btn.btn-outline-secondary {
    color: #2f3538;
    background-color: #fbfbfb;
    border: 1px solid #e9e9e9;
}

/* --- Scrollable body for large forms --- */
.synesto-eshop-modal .modal-body {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

/* --- Tabs inside eshop modals (ProductModal) --- */
.synesto-eshop-modal .nav-tabs {
    border-bottom: 2px solid #f3f6fb;
    margin-bottom: 20px;
}

.synesto-eshop-modal .nav-tabs .nav-link {
    font-size: 13px;
    font-weight: 500;
    color: #666;
    border: none;
    padding: 10px 16px;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.synesto-eshop-modal .nav-tabs .nav-link.active {
    color: #47a1e2;
    border-bottom-color: #47a1e2;
    background: transparent;
}

.synesto-eshop-modal .nav-tabs .nav-link:hover {
    color: #333;
}

/* --- Cards inside eshop modals --- */
.synesto-eshop-modal .synesto-eshop-card {
    border-color: #eef1f6;
}

.synesto-eshop-modal .synesto-eshop-card-title {
    font-size: 13px;
    padding: 10px 16px;
}

/* --- Form check inside eshop modals --- */
.synesto-eshop-modal .form-check-label {
    font-size: 13px;
}

.synesto-eshop-modal .form-switch .form-check-input {
    width: 2.5em;
    height: 1.25em;
    cursor: pointer;
    border-color: #ccc;
    background-color: #e9ecef;
    box-shadow: none;
}

.synesto-eshop-modal .form-switch .form-check-input:checked {
    background-color: #47a1e2;
    border-color: #47a1e2;
}

.synesto-eshop-modal .form-switch .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(71, 161, 226, 0.25);
    border-color: #47a1e2;
}

/* --- Responsive: mobile modals --- */
@media (max-width: 576px) {
    .synesto-eshop-modal .modal-body {
        max-height: calc(100vh - 160px);
    }
}

#synesto-eshop-products {
    padding-left: 0px;
}

#synesto-eshop .synesto-tableScroll {
	margin-top: 56px !important;
}

.synesto-table__th.synesto-table__th--check .synesto-checkbox {
	margin-top: 5px;
}

#synesto-eshop-categories {
	padding-left: 0px;
}

#synesto-eshop-returns {
	padding-left: 0px;
}

#synesto-eshop-orders {
	padding-left: 0px;
}

#synesto-eshop-customers {
	padding-left: 0px;
}

/* =========================================================
   Order Detail Modal  (.synesto-order-detail-modal)
   ========================================================= */

.synesto-order-detail-modal .modal-content {
    border: 0;
    border-radius: 0;
    overflow: hidden;
}

.synesto-order-detail-modal .modal-header {
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 24px;
    background: #fff;
}

.synesto-order-detail-modal .modal-body {
    padding: 24px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.synesto-odm__title {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
}

/* --- Summary bar --- */
.synesto-odm__summary {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 20px;
}

.synesto-odm__summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.synesto-odm__status-select {
    width: auto;
    min-width: 160px;
    font-size: 13px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 4px 8px;
}

.synesto-odm__status-select:focus {
    border-color: #2f6fec;
    box-shadow: 0 0 0 2px rgba(47, 111, 236, 0.15);
}

/* --- Sections --- */
.synesto-odm__section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    margin-bottom: 20px;
    overflow: hidden;
}

.synesto-odm__section--last {
    margin-bottom: 0;
}

.synesto-odm__section-header {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    padding: 12px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #f6f7fb;
}

.synesto-odm__section-body {
    padding: 16px 20px;
}

.synesto-odm__section-body--table {
    padding: 0;
}

/* --- Fields (label / value pairs) --- */
.synesto-odm__field {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
}

.synesto-odm__label {
    font-size: 13px;
    color: #6b7280;
    min-width: 130px;
    flex-shrink: 0;
}

.synesto-odm__value {
    font-size: 14px;
    color: #111827;
}

.synesto-odm__value--bold {
    font-weight: 700;
}

.synesto-odm__value--mono {
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.02em;
}

/* --- Subsection title / address / divider --- */
.synesto-odm__subsection-title {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid #f3f4f6;
}

.synesto-odm__address {
    font-size: 14px;
    color: #111827;
    line-height: 1.6;
}

.synesto-odm__divider {
    height: 1px;
    background: #e5e7eb;
    margin: 12px 0;
}

.synesto-odm__empty {
    font-size: 13px;
    color: #6b7280;
    text-align: center;
    padding: 20px;
}

/* --- Products table --- */
.synesto-odm__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.synesto-odm__table thead th {
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid #e5e7eb;
    background: #f6f7fb;
    text-align: center;
}

.synesto-odm__table tbody td {
    padding: 10px 16px;
    border-bottom: 1px solid #f3f4f6;
    color: #111827;
}

.synesto-odm__table tbody tr:last-child td {
    border-bottom: 1px solid #e5e7eb;
}

.synesto-odm__table tbody tr:hover {
    background: #f9fafb;
}

.synesto-odm__table tfoot td {
    padding: 8px 16px;
    font-size: 13px;
    color: #6b7280;
}

.synesto-odm__table-total td {
    font-size: 14px !important;
    font-weight: 700;
    color: #111827 !important;
    border-top: 1px solid #e5e7eb;
}

.synesto-odm__table-center {
    text-align: center;
}

.synesto-odm__table-right {
    text-align: right;
}

/* --- Timeline (order history) --- */
.synesto-odm__timeline {
    position: relative;
}

.synesto-odm__timeline-item {
    display: flex;
    gap: 14px;
}

.synesto-odm__timeline-track {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 20px;
    padding-top: 4px;
}

.synesto-odm__timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    flex-shrink: 0;
}

.synesto-odm__timeline-dot--active {
    background: #2f6fec;
    box-shadow: 0 0 0 3px rgba(47, 111, 236, 0.2);
}

.synesto-odm__timeline-line {
    width: 2px;
    flex: 1;
    background: #e5e7eb;
    margin-top: 4px;
}

.synesto-odm__timeline-content {
    flex: 1;
    min-width: 0;
}

.synesto-odm__timeline-meta {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.synesto-odm__timeline-statuses {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.synesto-odm__timeline-arrow {
    font-size: 13px;
    color: #9ca3af;
}

.synesto-odm__timeline-note {
    font-size: 13px;
    color: #374151;
    margin-top: 2px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .synesto-odm__summary {
        gap: 16px;
    }

    .synesto-odm__field {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .synesto-odm__label {
        min-width: unset;
    }

    .synesto-order-detail-modal .modal-body {
        padding: 16px;
    }

    .synesto-odm__section-body {
        padding: 12px 16px;
    }

    .synesto-odm__table {
        font-size: 13px;
    }

    .synesto-odm__table thead th,
    .synesto-odm__table tbody td,
    .synesto-odm__table tfoot td {
        padding: 8px 10px;
    }
}

/* --- Tabs inside order detail modal & order form --- */
.synesto-order-detail-modal .nav-tabs,
.synesto-invoice-form .nav-tabs {
    border-bottom: 1px solid #e5e7eb;
    margin: 0;
    padding: 0;
    gap: 0;
}

.synesto-order-detail-modal .nav-tabs .nav-link,
.synesto-invoice-form .nav-tabs .nav-link {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 0;
    padding: 9px 18px;
    margin-bottom: -1px;
    background: #f3f4f6;
    transition: color .15s, background .15s, border-color .15s;
}

.synesto-order-detail-modal .nav-tabs .nav-link:hover,
.synesto-invoice-form .nav-tabs .nav-link:hover {
    color: #111827;
    background: #e9ebf0;
}

.synesto-order-detail-modal .nav-tabs .nav-link.active,
.synesto-invoice-form .nav-tabs .nav-link.active {
    color: #47a1e2;
    font-weight: 600;
    background: #fff;
    border-color: #e5e7eb;
    border-bottom-color: #fff;
}

/* --- Order detail page view --- */
#synesto-eshop-order-details {
    padding-left: 0;
}

.synesto-odm-page {
    background: #f6f7fb;
    border-radius: 0;
    padding: 24px;
    margin-top: 10px;
    min-height: calc(100vh - 120px);
}

.synesto-odm-page__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    margin: -24px -24px 20px -24px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 14px 14px 0 0;
}

.synesto-odm-page__header .synesto-odm__title {
    margin: 0;
}

.synesto-odm-page__back-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    color: #6b7280;
    transition: border-color 0.15s, background 0.15s;
    flex-shrink: 0;
}

.synesto-odm-page__back-btn:hover {
    border-color: #999;
    background: #f5f5f5;
}

@media (max-width: 768px) {
    .synesto-odm-page {
        padding: 16px;
        border-radius: 0;
        margin-top: 0;
    }

    .synesto-odm-page__header {
        margin: -16px -16px 16px -16px;
        padding: 12px 16px;
        border-radius: 0;
    }
}

/* =========================
   Moduł Dokumenty
========================= */

/* --- Toolbar icon definitions --- */

#synesto-documents .synesto-documents-menus ul li.add {
    background-image: url(./../img/add.png);
}

#synesto-documents .synesto-documents-menus ul li.upload {
    background-image: url(./../img/upload.svg);
}

#synesto-documents .synesto-documents-menus ul li.download {
    background-image: url(./../img/download.svg);
}

#synesto-documents .synesto-documents-menus ul li.delete {
    background-image: url(./../img/trash3.svg);
}

/* --- Breadcrumb --- */

.synesto-document-breadcrumb {
    float: left;
    width: 100%;
    padding: 8px 15px;
    margin-top: 56px;
    font-size: 13px;
    color: #9c9c9c;
}

.synesto-document-breadcrumb__item {
    cursor: pointer;
    color: #9c9c9c;
    transition: color 0.15s;
}

.synesto-document-breadcrumb__item:hover {
    color: #47a1e2;
}

.synesto-document-breadcrumb__item--active {
    color: #2f3538;
    font-weight: bold;
}

.synesto-document-breadcrumb__sep {
    margin: 0 6px;
    color: #ccc;
}

/* --- Document type icons --- */

.synesto-document-icon {
    width: 22px;
    height: 22px;
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
}

.synesto-document-icon--folder {
    background-image: url(./../img/folder.svg);
}

.synesto-document-icon--pdf {
    background-image: url(./../img/pdf.png);
}

.synesto-document-icon--doc {
    background-image: url(./../img/edit.png);
}

.synesto-document-icon--xls {
    background-image: url(./../img/calculator.png);
}

.synesto-document-icon--img {
    background-image: url(./../img/preview.png);
}

.synesto-document-icon--zip {
    background-image: url(./../img/file-zip.svg);
}

.synesto-document-icon--txt {
    background-image: url(./../img/highlighter.svg);
}

.synesto-document-icon--generic {
    background-image: url(./../img/cloud.svg);
}

/* --- Document table scroll offset for fixed toolbar --- */

#synesto-documents .synesto-tableScroll {
    float: left;
    width: 100%;
    margin-top: 0;
    height: auto;
    overflow-x: hidden;
    padding: 0 10px 10px 10px;
}

#synesto-documents .synesto-table {
    margin-top: 0;
}

/* --- Mobile: document cards --- */

.synesto-document-card {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #f8f8f8;
    cursor: pointer;
    transition: background 0.15s;
}

.synesto-document-card:hover {
    background: #fbfbfb;
}

.synesto-document-card.selected {
    background: rgba(13, 110, 253, 0.08);
}

.synesto-document-card--skeleton {
    display: block;
    padding: 14px 12px;
}

.synesto-document-card__body {
    flex: 1;
    min-width: 0;
}

.synesto-document-card__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.synesto-document-card__row + .synesto-document-card__row {
    margin-top: 4px;
}

.synesto-document-card__name {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.synesto-document-card__size {
    font-size: 12px;
    color: #9c9c9c;
    flex-shrink: 0;
}

.synesto-document-card__author {
    font-size: 12px;
    color: #9c9c9c;
}

.synesto-document-card__date {
    font-size: 12px;
    color: #9c9c9c;
    flex-shrink: 0;
}

/* --- Mobile list wrapper --- */

.synesto-document-mobile-list {
    padding-top: 0;
}

/* --- Sidebar: document menu uses folder icon for mailbox class --- */

#synesto-document .synesto-document-menu li.mailbox {
    background-image: url(./../img/folder.svg) !important;
}

/* --- Toolbar: share icon --- */

#synesto-documents .synesto-documents-menus ul li.share {
    background-image: url(./../img/people.svg);
}

#synesto-documents .synesto-documents-menus ul li.filter {
    background-image: url(./../img/filter.png);
}

/* --- Document modal shared style --- */

.synesto-document-modal .modal-content {
    border: 1px solid #e0e0e0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.synesto-document-modal .modal-header {
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 24px;
    background: #fff;
}

.synesto-document-modal .modal-header .modal-title {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
}

.synesto-document-modal .modal-body {
    padding: 24px;
    font-size: 14px;
    color: #333;
}

.synesto-document-modal .modal-footer {
    border-top: 1px solid #e5e7eb;
    padding: 14px 24px;
}

.synesto-document-modal .form-label {
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin-bottom: 6px;
}

.synesto-document-modal .form-control,
.synesto-document-modal .form-select {
    font-size: 14px;
    background: #fbfbfb;
    border-color: #d1d5db;
}

.synesto-document-modal .form-control:focus,
.synesto-document-modal .form-select:focus {
    background: #eef7ff;
    border-color: #d4e4ef;
    box-shadow: none;
}

.synesto-document-modal .btn {
    font-size: 14px;
    padding: 8px 20px;
    font-weight: bold;
    border-color: #d4e4ef !important;
}

.synesto-document-modal .btn.btn-primary,
.synesto-document-modal .btn.btn-danger {
    color: #248ad3;
    background-color: #eef7ff !important;
    border-color: #d4e4ef !important;
}

.synesto-document-modal .btn.btn-danger {
    color: #c62828;
    background-color: #fff5f5 !important;
    border-color: #e0b4b4 !important;
}

.synesto-document-modal .btn.btn-outline-secondary {
    color: #2f3538;
    background-color: #fbfbfb;
    border: 1px solid #e9e9e9;
}

/* --- Upload dropzone (inside modal) --- */

.synesto-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    border: 2px dashed #d0d0d0;
    border-radius: 10px;
    background: #fafafa;
    transition: border-color 0.2s, background 0.2s;
    cursor: default;
    padding: 24px;
}

.synesto-dropzone--active {
    border-color: #47a1e2;
    background: rgba(71, 161, 226, 0.06);
}

/* --- Global drag & drop overlay --- */

.synesto-document-drop-overlay {
    position: absolute;
    inset: 0;
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.88);
    border: 3px dashed #47a1e2;
    border-radius: 8px;
    pointer-events: none;
}

/* --- View toggle (list / tiles) --- */

.synesto-view-toggle {
    display: flex;
    align-items: center;
    list-style-type: none;
    padding: 0;
    margin: 0 0 0 auto;
    margin-right: 16px;
}

.synesto-view-toggle__btn {
    float: left;
    width: 35px;
    height: 34px;
    background-size: 16px 16px;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    padding: 5px;
    margin: 0 4px;
    background-color: #fff !important;
    border-radius: 50%;
    border: 1px solid #e9e9e9;
    cursor: pointer;
    transition: background-size 0.15s;
}

.synesto-view-toggle__btn:hover {
    background-size: 22px 22px;
}

.synesto-view-toggle__btn.view-list {
    background-image: url(./../img/list-ul.svg);
}

.synesto-view-toggle__btn.view-tiles {
    background-image: url(./../img/grid-3x3-gap.svg);
}

.synesto-view-toggle__btn--active {
    border-color: #47a1e2 !important;
    background-color: #eef7ff !important;
}

/* --- Document tiles grid --- */

.synesto-document-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    padding: 8px 0;
}

.synesto-document-tile {
    position: relative;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.synesto-document-tile:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: #d0d0d0;
}

.synesto-document-tile--selected {
    border-color: #47a1e2;
    background: rgba(71, 161, 226, 0.04);
}

.synesto-document-tile--skeleton {
    pointer-events: none;
}

/* Checkbox (top-left, visible on hover / when selected) */

.synesto-document-tile__check {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.15s;
}

.synesto-document-tile:hover .synesto-document-tile__check,
.synesto-document-tile__check--visible {
    opacity: 1;
}

/* Actions (top-right, visible on hover / when selected / when dropdown open) */

.synesto-document-tile__actions {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.15s;
}

.synesto-document-tile:hover .synesto-document-tile__actions,
.synesto-document-tile__actions--visible {
    opacity: 1;
}

/* Preview area */

.synesto-document-tile__preview {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
    background: #f9f9f9;
    border-radius: 9px 9px 0 0;
    overflow: hidden;
}

.synesto-document-tile__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Large icon variant for tiles fallback */

.synesto-document-icon--lg {
    width: 56px;
    height: 56px;
    background-size: 48px 48px;
}

/* Info area below preview */

.synesto-document-tile__info {
    padding: 10px 12px;
}

.synesto-document-tile__name {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
}

.synesto-document-tile__meta {
    font-size: 12px;
    color: #9c9c9c;
    margin-top: 2px;
}

/* ================================================================== */
/*  MODULE: Projekty                                                   */
/* ================================================================== */

/* --- Layout --- */

#synesto-project #synesto-project-menus {
    height: calc(100vh - 85px);
    overflow: auto;
}

/* --- Sidebar --- */

#synesto-project .synesto-project-menu {
    list-style-type: none;
    padding: 0px 10px 0px 0px;
    margin: 5px 0px 0px 0px;
    position: sticky;
    top: 0px;
}

#synesto-project .synesto-project-menu li {
    padding: 12px 5px 12px 60px;
    border-bottom: 1px solid #f8f8f8;
    margin: 5px;
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: 20px 50%;
    font-size: 13px;
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
    border-top: 1px solid #fff;
}

#synesto-project .synesto-project-menu li span {
    float: right;
    font-weight: normal;
    font-size: 10px;
    margin-right: 8px;
    color: #7d7d7d;
    border-radius: 10px;
    padding: 3px 5px;
}

#synesto-project .synesto-project-menu li.mailbox {
    background-image: url(./../img/folder.svg);
}

#synesto-project .synesto-project-menu li.working-copy {
    background-image: url(./../img/highlighter.svg);
}

#synesto-project .synesto-project-menu li.send {
    background-image: url(./../img/send.svg);
}

#synesto-project .synesto-project-menu li.trash {
    background-image: url(./../img/suitcase-lg.svg);
}

#synesto-project .synesto-project-menu li.selected,
#synesto-project .synesto-project-menu li:hover {
    background-color: #fbfbfb;
    border-radius: 10px;
    font-weight: bold;
    border: 1px solid #e9e9e9;
    cursor: pointer;
    color: #2f3538;
}

/* --- Main content area --- */

#synesto-project-menus,
#synesto-projects {
    position: relative;
    float: left;
    border-right: 1px solid #f8f8f8;
    height: 750px;
}

#synesto-projects {
    padding: 0px;
}

/* --- Toolbar --- */

#synesto-projects .synesto-projects-menus {
    position: fixed;
    width: -webkit-fill-available;
    border-bottom: 1px solid #f8f8f8;
    padding-bottom: 10px;
    padding-top: 10px;
    background: #fbfbfb;
}

#synesto-projects .synesto-projects-menus {
    width: 100%;
    border-right: 1px solid #e9e9e9;
    z-index: 100;
}

@media (min-width: 1200px) {
    #synesto-projects .synesto-projects-menus {
        width: calc(100% - 26px);
    }
}

#synesto-projects .synesto-projects-menus ul {
    list-style-type: none;
    padding: 0px;
    margin: 0px;
}

#synesto-projects .synesto-projects-menus ul li {
    float: left;
    width: 35px;
    height: 34px;
    background-size: 16px 16px;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    padding: 5px;
    margin: 0px 10px;
    background-color: #fff !important;
    border-radius: 50%;
    border: 1px solid #e9e9e9;
}

#synesto-projects .synesto-projects-menus ul li:hover {
    background-size: 22px 22px;
    border-color: #e9e9e9;
    cursor: pointer;
    border: 1px solid #e9e9e9;
}

#synesto-projects .synesto-projects-menus ul li.disabled {
    opacity: 0.35;
    pointer-events: none;
}

#synesto-projects .synesto-projects-menus ul li.add {
    background-image: url(./../img/add.png);
}

#synesto-projects .synesto-projects-menus ul li.archive {
    background-image: url(./../img/suitcase-lg.svg);
}

#synesto-projects .synesto-projects-menus ul li.delete {
    background-image: url(./../img/trash3.svg);
}

#synesto-projects .synesto-projects-menus ul li.refresh {
    background-image: url(./../img/arrow-repeat.svg);
}

#synesto-projects .synesto-projects-menus ul li.filter {
    background-image: url(./../img/filter.png);
}

/* --- Project table scroll area --- */

#synesto-projects > .synesto-tableScroll {
    float: left;
    width: 100%;
    margin-top: 56px;
    height: auto;
    overflow-x: hidden;
    padding: 0 10px 10px 10px;
}

@media (min-width: 768px) {
    #synesto-projects .synesto-tableScroll {
        display: block !important;
    }
}

#synesto-projects > .synesto-tableScroll .synesto-table {
    margin-top: 0;
}

/* --- Status badge --- */

.synesto-project-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
}

/* --- Breadcrumb --- */

.synesto-project-breadcrumb {
    padding: 8px 15px;
    font-size: 13px;
    color: #9c9c9c;
    margin-bottom: 8px;
}

.synesto-project-breadcrumb__item {
    cursor: pointer;
    color: #9c9c9c;
}

.synesto-project-breadcrumb__item:hover {
    color: #47a1e2;
}

.synesto-project-breadcrumb__item--active {
    color: #333;
    font-weight: 500;
}

.synesto-project-breadcrumb__sep {
    margin: 0 6px;
    color: #ccc;
}

/* --- Project Tabs --- */

.synesto-project-tabs {
    border-bottom: 1px solid #e9e9e9;
}

.synesto-project-tabs .nav-link {
    font-size: 13px;
    font-weight: 500;
    color: #7d7d7d;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 10px 18px;
    background: none;
    transition: color 0.15s, border-color 0.15s;
}

.synesto-project-tabs .nav-link:hover {
    color: #2f3538;
    border-bottom-color: #d4e4ef;
    background: none;
}

.synesto-project-tabs .nav-link.active {
    color: #248ad3;
    font-weight: 600;
    border-color: transparent;
    border-bottom: 2px solid #47a1e2;
    background: none;
}

/* --- Project View container --- */

.synesto-project-view {
    padding: 10px 15px;
    overflow: auto;
    height: 100%;
}

/* --- Buttons inside project view (synesto style override) --- */

.synesto-project-view .btn {
    font-size: 13px;
    font-weight: bold;
    padding: 7px 16px;
    border-radius: 10px;
    transition: background 120ms ease, border-color 120ms ease;
}

.synesto-project-view .btn.btn-primary {
    color: #248ad3;
    background-color: #eef7ff;
    border-color: #d4e4ef;
}

.synesto-project-view .btn.btn-primary:hover {
    background-color: #dceefb;
    border-color: #b8d4e8;
}

.synesto-project-view .btn.btn-primary:active,
.synesto-project-view .btn.btn-primary:focus {
    background-color: #d0e8f7;
    border-color: #a8c8de;
    box-shadow: none;
}

.synesto-project-view .btn.btn-outline-secondary {
    color: #2f3538;
    background-color: #fbfbfb;
    border-color: #e9e9e9;
}

.synesto-project-view .btn.btn-outline-secondary:hover {
    background-color: #f0f0f0;
    border-color: #d0d0d0;
    color: #2f3538;
}

.synesto-project-view .btn.btn-outline-secondary:active,
.synesto-project-view .btn.btn-outline-secondary:focus {
    background-color: #e8e8e8;
    border-color: #c0c0c0;
    color: #2f3538;
    box-shadow: none;
}

.synesto-project-view .btn.btn-outline-danger {
    color: #c62828;
    background-color: #fff;
    border-color: #e0b4b4;
}

.synesto-project-view .btn.btn-outline-danger:hover {
    background-color: #fff5f5;
    border-color: #d09090;
    color: #c62828;
}

/* --- Task toolbar --- */

.synesto-project-task-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0;
    margin-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.synesto-project-task-toolbar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.synesto-project-task-toolbar__toggle {
    gap: 4px;
}

.synesto-project-task-toolbar__actions li {
    float: left;
    width: 35px;
    height: 34px;
    background-size: 16px 16px;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    padding: 5px;
    margin: 0 4px;
    background-color: #fff !important;
    border-radius: 50%;
    border: 1px solid #e9e9e9;
    cursor: pointer;
}

.synesto-project-task-toolbar__actions li:hover {
    background-size: 22px 22px;
}

.synesto-project-task-toolbar__actions li.add {
    background-image: url(./../img/add.png);
}

.synesto-project-task-toolbar__actions li.invite {
    background-image: url(./../img/person-plus.svg);
}

/* Kanban view toggle icon */
.synesto-view-toggle__btn.view-kanban {
    background-image: url(./../img/card-checklist.svg);
}

/* --- Form controls inside project view (synesto style) --- */

.synesto-project-view .form-control,
.synesto-project-view .form-select {
    font-size: 14px;
    background: #fbfbfb;
    border-color: #d1d5db;
    border-radius: 10px;
}

.synesto-project-view .form-control:focus,
.synesto-project-view .form-select:focus {
    background: #eef7ff;
    border-color: #d4e4ef;
    box-shadow: none;
}

.synesto-project-view .form-label {
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin-bottom: 6px;
}

.synesto-project-view .form-check-label {
    font-size: 13px;
    color: #555;
}

/* --- Kanban board --- */

.synesto-kanban {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
    min-height: 400px;
}

.synesto-kanban__column {
    min-width: 260px;
    max-width: 320px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fbfbfb;
    border-radius: 0;
    border: 1px solid #e9e9e9;
}

.synesto-kanban__column-header {
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-radius: 0;
    border-bottom: 1px solid #e9e9e9;
}

.synesto-kanban__column-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 13px;
    color: #2f3538;
}

.synesto-kanban__column-title::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--kanban-col-color, #42a5f5);
    flex-shrink: 0;
}

.synesto-kanban__column-count {
    font-size: 11px;
    font-weight: 600;
    color: #7d7d7d;
    background: #f0f0f0;
    border-radius: 10px;
    padding: 2px 9px;
    min-width: 24px;
    text-align: center;
}

.synesto-kanban__column-body {
    flex: 1;
    padding: 8px;
    min-height: 80px;
    transition: background 0.15s;
}

.synesto-kanban__column-body--over {
    background: #eef7ff;
}

/* --- Kanban card --- */

.synesto-kanban__card {
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 8px;
    cursor: grab;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.synesto-kanban__card:hover {
    border-color: #d0d0d0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.synesto-kanban__card--dragging {
    border-color: #47a1e2;
    box-shadow: 0 6px 20px rgba(71,161,226,0.18);
}

.synesto-kanban__card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}

.synesto-kanban__card-title {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    flex: 1;
    word-break: break-word;
}

.synesto-kanban__card-menu {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid #e9e9e9;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999;
    flex-shrink: 0;
    transition: border-color 0.15s, background 0.15s;
}

.synesto-kanban__card-menu:hover {
    background: #fbfbfb;
    border-color: #d0d0d0;
    color: #555;
}

.synesto-kanban__card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.synesto-kanban__card-assignees {
    display: flex;
    gap: 4px;
}

.synesto-kanban__card-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #eef7ff;
    color: #248ad3;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d4e4ef;
}

.synesto-kanban__card-avatar--more {
    background: #f0f0f0;
    color: #7d7d7d;
    border-color: #e9e9e9;
}

.synesto-kanban__card-meta {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: #999;
}

.synesto-kanban__card-deadline i,
.synesto-kanban__card-hours i {
    margin-right: 3px;
}

/* --- Reports --- */

.synesto-project-reports__section {
    margin-bottom: 28px;
}

.synesto-project-reports__title {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    margin-bottom: 14px;
}

.synesto-project-reports__summary {
    background: #fbfbfb;
    border-radius: 10px;
    border: 1px solid #e9e9e9;
    padding: 20px;
}

/* --- Mobile: Project cards --- */

.synesto-project-card {
    display: flex;
    align-items: center;
    padding: 12px 10px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    gap: 10px;
}

.synesto-project-card.selected {
    background: rgba(13,110,253,0.08);
}

.synesto-project-card__body {
    flex: 1;
    min-width: 0;
}

.synesto-project-card__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.synesto-project-card__name {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.synesto-project-card__owner {
    font-size: 12px;
    color: #999;
}

.synesto-project-card__date {
    font-size: 12px;
    color: #999;
}

.synesto-project-card--skeleton .synesto-project-card__row {
    padding: 6px 0;
}

/* --- Mobile: Task cards --- */

.synesto-project-task-card {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.synesto-project-task-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.synesto-project-task-card__title {
    font-size: 14px;
    font-weight: 500;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.synesto-project-task-card__meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.synesto-project-task-card__meta i {
    margin-right: 3px;
}

.synesto-project-task-card__actions {
    display: flex;
    gap: 8px;
}

.synesto-project-task-card__actions button {
    background: none;
    border: 1px solid #e9e9e9;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

.synesto-project-task-card__actions button:hover {
    background: #f5f5f5;
}

.synesto-project-task-card__actions button.text-danger {
    color: #c62828;
}

/* --- Mobile: project list --- */

.synesto-project-mobile-list {
    margin-top: 10px;
}

/* --- Responsive: Kanban vertical on mobile --- */

@media (max-width: 767.98px) {
    .synesto-kanban {
        flex-direction: column;
    }

    .synesto-kanban__column {
        min-width: 100%;
        max-width: 100%;
    }

    .synesto-project-view {
        padding: 10px 5px;
    }

    #synesto-projects > .synesto-tableScroll {
        margin-top: 10px;
    }
}

/* ── Notifications ──────────────────────────────── */

.synesto-notif-toggle {
    position: relative;
}

.synesto-notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #dc3545;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    pointer-events: none;
}

/* badge on desktop header-nav li */
#synesto-header-nav li.option.notifications {
    position: relative;
}

#synesto-header-nav li.option.notifications .synesto-notif-badge {
    top: 0;
    right: -2px;
}

.synesto-notif-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    max-height: 480px;
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.synesto-notif-dropdown__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    border-bottom: 1px solid #f0f0f0;
}

.synesto-notif-dropdown__title {
    font-size: 15px;
    font-weight: 600;
    color: #2f3538;
}

.synesto-notif-dropdown__mark-read {
    background: none;
    border: none;
    color: #248ad3;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
}

.synesto-notif-dropdown__mark-read:hover {
    text-decoration: underline;
}

.synesto-notif-dropdown__list {
    overflow-y: auto;
    flex: 1;
}

.synesto-notif-dropdown__empty {
    padding: 32px 16px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.synesto-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    transition: background .12s ease;
    position: relative;
}

.synesto-notif-item:hover {
    background: #f8f9fa;
}

.synesto-notif-item--unread {
    background: #f0f7ff;
}

.synesto-notif-item--unread:hover {
    background: #e4f0fc;
}

.synesto-notif-item__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
}

.synesto-notif-item__body {
    flex: 1;
    min-width: 0;
}

.synesto-notif-item__title {
    font-size: 13px;
    font-weight: 600;
    color: #2f3538;
    line-height: 1.3;
}

.synesto-notif-item__message {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.synesto-notif-item__time {
    font-size: 11px;
    color: #999;
    margin-top: 3px;
}

.synesto-notif-item__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #248ad3;
    flex-shrink: 0;
    margin-top: 6px;
}

@media (max-width: 480px) {
    .synesto-notif-dropdown {
        width: calc(100vw - 24px);
        right: -40px;
    }
}

/* ── Quick Action FAB ───────────────────────────── */

.quick-action-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1051;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.quick-action-fab__trigger {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #248ad3;
    color: #fff;
    border: none;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
    transition: transform .25s ease, background .2s ease;
}

.quick-action-fab__trigger:hover {
    background: #1d72b8;
}

.quick-action-fab__trigger.open {
    transform: rotate(45deg);
    background: #555;
}

.quick-action-fab__trigger.open:hover {
    background: #444;
}

.quick-action-fab__menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.quick-action-fab__item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    animation: fabItemIn .25s ease forwards;
    opacity: 0;
    transform: translateY(8px);
}

.quick-action-fab__item:hover .quick-action-fab__label {
    opacity: 1;
}

.quick-action-fab__label {
    background: #fff;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    padding: 5px 12px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    opacity: .85;
    transition: opacity .15s ease;
}

.quick-action-fab__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}

.quick-action-fab__overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(0, 0, 0, .15);
}

@keyframes fabItemIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991.98px) {
    .quick-action-fab {
        bottom: 78px;
    }
}

/* =========================================================
   Contact Preview Modal  (.synesto-contact-preview)
   ========================================================= */

.synesto-contact-preview .modal-content {
    border: 0;
    border-radius: 0;
    overflow: hidden;
}

.synesto-contact-preview .modal-header {
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 24px;
    background: #fff;
}

.synesto-contact-preview .modal-header .modal-title {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
}

.synesto-contact-preview .modal-body {
    padding: 24px;
    font-size: 14px;
    color: #333;
}

.synesto-contact-preview .modal-footer {
    border-top: 1px solid #e5e7eb;
    padding: 14px 24px;
}

/* wizytówka: siatka 3 kolumny */
.synesto-contact-preview .synesto-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px 20px;
}

.synesto-contact-preview .synesto-preview-field .label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 2px;
}

.synesto-contact-preview .synesto-preview-field .value {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

@media (max-width: 768px) {
    .synesto-contact-preview .synesto-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .synesto-contact-preview .synesto-preview-grid {
        grid-template-columns: 1fr;
    }
}

/* sekcja kont bankowych */
.synesto-contact-preview .synesto-bank-header {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

/* tabela kont w podglądzie (readonly) */
.synesto-contact-preview .synesto-bank-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.synesto-contact-preview .synesto-bank-table th {
    background: #f3f6fb;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

.synesto-contact-preview .synesto-bank-table td {
    padding: 10px 12px;
    font-size: 13px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
}

.synesto-contact-preview .synesto-bank-table tbody tr:hover {
    background: #fbfbfb;
}

.synesto-contact-preview .synesto-bank-table td.synesto-bank-number {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 13px;
    letter-spacing: 0.3px;
}

/* =========================================================
   Contact Form Modal – konta bankowe  (.synesto-invoice-form)
   ========================================================= */

.synesto-invoice-form .synesto-bank-header {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

.synesto-invoice-form .synesto-bank-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.synesto-invoice-form .synesto-bank-table th {
    background: #f3f6fb;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

.synesto-invoice-form .synesto-bank-table td {
    padding: 10px 12px;
    font-size: 13px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
}

.synesto-invoice-form .synesto-bank-table tbody tr:hover {
    background: #fbfbfb;
}

.synesto-invoice-form .synesto-bank-table tbody tr:nth-child(even) {
    background: #fbfbfb;
}

.synesto-invoice-form .synesto-bank-table td.synesto-bank-number {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 13px;
    letter-spacing: 0.3px;
}

/* formularz inline dodawania konta */
.synesto-bank-add-form {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
    padding: 12px 14px;
    background: #f6f7fb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 12px;
}

.synesto-bank-add-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.synesto-bank-add-form label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
}

.synesto-bank-add-form input,
.synesto-bank-add-form select {
    font-size: 13px;
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    transition: background 150ms ease, border-color 150ms ease;
}

.synesto-bank-add-form input:focus,
.synesto-bank-add-form select:focus {
    background: #eef7ff;
    border-color: #d4e4ef;
    box-shadow: none;
    outline: none;
}

/* przycisk "Dodaj konto" / "Anuluj" */
.synesto-bank-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #d4e4ef;
    background: #eef7ff;
    color: #248ad3;
    border-radius: 8px;
    cursor: pointer;
    transition: background 120ms ease, border-color 120ms ease;
}

.synesto-bank-toggle-btn:hover {
    background: #dceefb;
    border-color: #b8d4ea;
}

.synesto-bank-toggle-btn i {
    font-size: 14px;
}

/* przycisk zapisu w formularzu */
.synesto-bank-save-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #d4e4ef;
    background: #248ad3;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: background 120ms ease;
}

.synesto-bank-save-btn:hover {
    background: #1d7abc;
}

.synesto-bank-save-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* okrągłe przyciski akcji w wierszu konta (wzorzec synesto-iconBtn) */
.synesto-bank-action {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.synesto-bank-action:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.synesto-bank-action--activate {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.35);
}

.synesto-bank-action--activate:hover:not(:disabled) {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.50);
}

.synesto-bank-action--deactivate {
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.35);
}

.synesto-bank-action--deactivate:hover:not(:disabled) {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.50);
}

.synesto-bank-action--delete {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.35);
}

.synesto-bank-action--delete:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.10);
    border-color: rgba(239, 68, 68, 0.50);
}

/* badge aktywne / nieaktywne */
.synesto-badge--active {
    color: #065f46;
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.35);
}

.synesto-badge--inactive {
    color: #374151;
    background: rgba(107, 114, 128, 0.14);
    border-color: rgba(107, 114, 128, 0.35);
}

/* empty state */
.synesto-bank-empty {
    font-size: 13px;
    color: #9c9c9c;
    padding: 14px 0;
}

/* ── Agent Chat ─────────────────────────────────────── */

.agent-chat {
    position: fixed;
    bottom: 0;
    right: 90px;
    width: 400px;
    height: 520px;
    background: #fff;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.15);
    z-index: 100;
    display: flex;
    flex-direction: column;
    font-family: "Roboto", sans-serif;
}

.agent-chat__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #2f6fec;
    color: #fff;
    border-radius: 12px 12px 0 0;
    flex-shrink: 0;
}

.agent-chat__header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.agent-chat__header-title i {
    font-size: 18px;
}

.agent-chat__header-actions {
    display: flex;
    gap: 4px;
}

.agent-chat__header-actions button {
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    padding: 2px 6px;
    font-size: 14px;
    border-radius: 4px;
    transition: background 0.15s;
}

.agent-chat__header-actions button:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.agent-chat__provider {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
    font-size: 12px;
    color: #666;
}

.agent-chat__provider label {
    margin: 0;
    font-weight: 500;
}

.agent-chat__provider select {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 3px 6px;
    font-size: 12px;
    outline: none;
    background: #fff;
    color: #333;
    cursor: pointer;
}

.agent-chat__provider select:focus {
    border-color: #2f6fec;
}

.agent-chat__provider select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.agent-chat__messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.agent-chat__empty {
    text-align: center;
    color: #888;
    padding: 30px 10px;
    font-size: 13px;
}

.agent-chat__empty i {
    font-size: 36px;
    display: block;
    margin-bottom: 12px;
    color: #bbb;
}

.agent-chat__empty p {
    margin: 0 0 6px;
}

.agent-chat__empty-hint {
    font-size: 12px;
    color: #aaa;
    font-style: italic;
}

.agent-chat__input {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-top: 1px solid #eee;
    gap: 6px;
    flex-shrink: 0;
}

.agent-chat__input input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s;
}

.agent-chat__input input:focus {
    border-color: #2f6fec;
}

.agent-chat__input button {
    background: #2f6fec;
    border: none;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background 0.15s;
    flex-shrink: 0;
}

.agent-chat__input button:hover:not(:disabled) {
    background: #2558c7;
}

.agent-chat__input button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Messages */
.agent-chat-message {
    display: flex;
}

.agent-chat-message--user {
    justify-content: flex-end;
}

.agent-chat-message--assistant {
    justify-content: flex-start;
}

.agent-chat-message__bubble {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.45;
    word-wrap: break-word;
}

.agent-chat-message--user .agent-chat-message__bubble {
    background: #e3f2fd;
    color: #1a1a1a;
    border-bottom-right-radius: 4px;
}

.agent-chat-message--assistant .agent-chat-message__bubble {
    background: #f5f5f5;
    color: #1a1a1a;
    border-bottom-left-radius: 4px;
}

/* Typing indicator */
.agent-chat-message__typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
}

.agent-chat-message__typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #999;
    animation: agentTyping 1.2s infinite;
}

.agent-chat-message__typing span:nth-child(2) { animation-delay: 0.2s; }
.agent-chat-message__typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes agentTyping {
    0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); }
    30% { opacity: 1; transform: scale(1); }
}

/* Confirmation */
.agent-chat-confirmation {
    padding: 4px 0 4px 0;
}

.agent-chat-confirmation__buttons {
    display: flex;
    gap: 8px;
}

.agent-chat-confirmation__btn {
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.15s;
}

.agent-chat-confirmation__btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.agent-chat-confirmation__btn--confirm {
    background: #28a745;
    color: #fff;
}

.agent-chat-confirmation__btn--confirm:hover:not(:disabled) {
    background: #218838;
}

.agent-chat-confirmation__btn--cancel {
    background: #dc3545;
    color: #fff;
}

.agent-chat-confirmation__btn--cancel:hover:not(:disabled) {
    background: #c82333;
}

/* Action buttons in chat */
.agent-chat-actions {
    padding: 6px 0 2px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.agent-chat-actions__list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.agent-chat-action__btn {
    background: #2f6fec;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.agent-chat-action__btn:hover {
    background: #2558c7;
}

.agent-chat-action__btn--order {
    background: #0d6efd;
}

.agent-chat-action__btn--order:hover {
    background: #0b5ed7;
}

.agent-chat-action__btn--pdf {
    background: #2f6fec;
}

/* Minimized state */
.agent-chat-minimized {
    position: fixed;
    bottom: 0;
    right: 90px;
    width: 280px;
    background: #2f6fec;
    color: #fff;
    border-radius: 8px 8px 0 0;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    transition: background 0.15s;
}

.agent-chat-minimized:hover {
    background: #2558c7;
}

.agent-chat-minimized__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
}

.agent-chat-minimized__actions {
    display: flex;
    gap: 2px;
}

.agent-chat-minimized__actions button {
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    padding: 2px 6px;
    font-size: 13px;
    border-radius: 4px;
}

.agent-chat-minimized__actions button:hover {
    color: #fff;
    background: rgba(255,255,255,0.15);
}

/* Customer action buttons */
.agent-chat-action__btn--customer { background: #17a2b8; }
.agent-chat-action__btn--customer:hover { background: #138496; }

/* Product action buttons */
.agent-chat-action__btn--product { background: #28a745; }
.agent-chat-action__btn--product:hover { background: #218838; }

/* Invoice action buttons */
.agent-chat-action__btn--invoice { background: #fd7e14; }
.agent-chat-action__btn--invoice:hover { background: #e06c00; }

/* Contractor action buttons */
.agent-chat-action__btn--contractor { background: #0d6efd; }
.agent-chat-action__btn--contractor:hover { background: #0b5ed7; }

/* Voice input button */
.agent-chat-voice-btn {
    background: none;
    border: 1px solid #ddd;
    color: #666;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.15s;
    flex-shrink: 0;
}

.agent-chat-voice-btn:hover {
    border-color: #2f6fec;
    color: #2f6fec;
}

.agent-chat-voice-btn--listening {
    border-color: #dc3545;
    color: #dc3545;
    animation: agentVoicePulse 1.5s infinite;
}

@keyframes agentVoicePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(220, 53, 69, 0); }
}

/* Voice mode toggle in header */
.agent-chat__voice-toggle {
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    padding: 2px 6px;
    font-size: 14px;
    border-radius: 4px;
    transition: background 0.15s;
}

.agent-chat__voice-toggle:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.agent-chat__voice-toggle--active {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

/* Rich text editor (Quill) */
.ql-editor {
    min-height: 150px;
    font-size: 0.875rem;
}
.ql-container.ql-snow {
    border-color: #dee2e6;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}
.ql-toolbar.ql-snow {
    border-color: #dee2e6;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

/* ============================
   Invoice Preview Modal
   ============================ */

.synesto-invoice-preview-modal .modal-dialog {
    max-width: 1100px;
}
.synesto-invoice-preview-modal .modal-body {
    height: 75vh;
    overflow-y: auto;
}

.inv-doc {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 36px 40px 32px;
    font-size: 13px;
    color: #1f2937;
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Header */
.inv-doc__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.inv-doc__title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.3px;
}

.inv-doc__number {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    margin-top: 2px;
}

.inv-doc__header-right {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.inv-doc__ksef-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border: 1.5px solid;
    border-radius: 4px;
    white-space: nowrap;
}

.inv-doc__paid-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    white-space: nowrap;
}

.inv-doc__paid-badge--paid {
    background: #d1fae5;
    color: #065f46;
}

.inv-doc__paid-badge--unpaid {
    background: #fee2e2;
    color: #991b1b;
}

.inv-doc__paid-badge--partial {
    background: #fef3c7;
    color: #92400e;
}

/* Dates */
.inv-doc__dates {
    display: flex;
    gap: 32px;
    font-size: 13px;
    color: #374151;
    flex-wrap: wrap;
}

.inv-doc__label {
    font-weight: 600;
    color: #6b7280;
    font-size: 12px;
}

/* Horizontal rule */
.inv-doc__hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 18px 0;
}

/* Parties (seller/buyer) */
.inv-doc__parties {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.inv-doc__party-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
    margin-bottom: 6px;
}

.inv-doc__party-name {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 2px;
}

.inv-doc__party-detail {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.6;
}

/* Section label */
.inv-doc__section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
    margin-bottom: 8px;
}

/* Items table */
.inv-doc__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

.inv-doc__th {
    background: #f9fafb;
    padding: 8px 10px;
    font-weight: 600;
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 2px solid #e5e7eb;
    text-align: left;
    white-space: nowrap;
}

.inv-doc__th--lp {
    width: 36px;
    text-align: center;
}

.inv-doc__th--right {
    text-align: right;
}

.inv-doc__td {
    padding: 7px 10px;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    vertical-align: top;
}

.inv-doc__td--lp {
    text-align: center;
    color: #9ca3af;
    font-size: 12px;
}

.inv-doc__td--right {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.inv-doc__td--bold {
    font-weight: 600;
}

.inv-doc__code {
    color: #9ca3af;
    font-size: 11px;
}

/* Compact table (VAT breakdown) */
.inv-doc__table--compact {
    font-size: 12px;
}

.inv-doc__table--compact .inv-doc__th {
    padding: 6px 8px;
    font-size: 10.5px;
}

.inv-doc__table--compact .inv-doc__td {
    padding: 5px 8px;
}

/* Summary wrap */
.inv-doc__summary-wrap {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    margin-top: 20px;
    align-items: start;
}

.inv-doc__vat-breakdown {
    min-width: 0;
}

/* Totals */
.inv-doc__totals {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 14px 16px;
}

.inv-doc__total-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 13px;
    color: #4b5563;
}

.inv-doc__total-row--grand {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    padding-top: 8px;
    margin-top: 4px;
    border-top: 2px solid #d1d5db;
}

.inv-doc__total-row--remaining {
    font-weight: 600;
    color: #dc2626;
}

/* Footer info */
.inv-doc__footer-info {
    display: flex;
    gap: 32px;
    font-size: 13px;
    color: #374151;
}

/* Responsive */
@media (max-width: 768px) {
    .inv-doc {
        padding: 20px 16px;
    }
    .inv-doc__parties {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .inv-doc__summary-wrap {
        grid-template-columns: 1fr;
    }
    .inv-doc__dates {
        flex-direction: column;
        gap: 4px;
    }
    .inv-doc__header {
        flex-direction: column;
        gap: 12px;
    }
}

/* ── Invoice preview modal — tabs ── */
.synesto-invoice-preview-modal .nav-tabs {
    border-bottom: 2px solid #e5e7eb;
    margin: 0;
    padding: 0 24px !important;
    background: #fff;
}

.synesto-invoice-preview-modal .nav-tabs .nav-link {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 10px 16px;
    margin-bottom: -2px;
    background: transparent;
    transition: color .15s, border-color .15s;
}

.synesto-invoice-preview-modal .nav-tabs .nav-link:hover {
    color: #374151;
}

.synesto-invoice-preview-modal .nav-tabs .nav-link.active {
    color: #47a1e2;
    border-bottom-color: #47a1e2;
    background: transparent;
}

.synesto-invoice-preview-modal .tab-content {
    background: #f3f4f6;
}

.synesto-invoice-preview-modal .tab-pane {
    min-height: 200px;
}

/* ── Events timeline ── */
.inv-event-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.inv-event-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.inv-event {
    position: relative;
    padding: 0 0 24px 40px;
}

.inv-event:last-child {
    padding-bottom: 0;
}

.inv-event__dot {
    position: absolute;
    left: 9px;
    top: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #d1d5db;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #e5e7eb;
}

.inv-event__dot--created      { background: #34d399; }
.inv-event__dot--updated      { background: #60a5fa; }
.inv-event__dot--payment      { background: #a78bfa; }
.inv-event__dot--ksef         { background: #f59e0b; }
.inv-event__dot--email        { background: #2563eb; }
.inv-event__dot--deleted      { background: #ef4444; }
.inv-event__dot--correction   { background: #f97316; }

.inv-event__header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.inv-event__type {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

.inv-event__date {
    font-size: 12px;
    color: #9ca3af;
}

.inv-event__user {
    font-size: 12px;
    color: #6b7280;
}

.inv-event__desc {
    font-size: 13px;
    color: #4b5563;
    margin-top: 2px;
}

.inv-event__meta {
    margin-top: 6px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 12px;
    color: #374151;
    line-height: 1.6;
}

.inv-event__meta-row {
    display: flex;
    gap: 8px;
}

.inv-event__meta-label {
    font-weight: 600;
    color: #6b7280;
    min-width: 100px;
    flex-shrink: 0;
}

/* ── Correction diff table inside events ── */
.inv-correction-diff {
    margin-top: 6px;
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.inv-correction-diff th {
    background: #f9fafb;
    padding: 5px 8px;
    font-weight: 600;
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.inv-correction-diff td {
    padding: 4px 8px;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
}

.inv-correction-diff td.diff-changed {
    color: #dc2626;
    font-weight: 500;
}
