.navbar {
  background-color: #333;
  color: white;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  align-items: center;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.navbar .nav-logo {
  font-weight: bold;
  font-size: 1.2em;
  color: #0077c8;
  text-decoration: none;
  z-index: 1005;
}
.navbar .menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1030;
}
.navbar .menu-toggle span {
  width: 30px;
  height: 3px;
  background: white;
  border-radius: 10px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}
.navbar.active .menu-toggle span:first-child {
  transform: rotate(45deg);
}
.navbar.active .menu-toggle span:nth-child(2) {
  opacity: 0;
  transform: translateX(20px);
}
.navbar.active .menu-toggle span:last-child {
  transform: rotate(-45deg);
}
.navbar.active .nav-menu {
  transform: translateX(0);
}
.navbar .nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 10px;
  height: 100%;
}
.navbar .nav-menu .nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.navbar .nav-menu .nav-item .nav-link {
  color: white;
  text-decoration: none;
  padding: 0 15px;
  height: 100%;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s;
}
.navbar .nav-menu .nav-item .nav-link:hover {
  background-color: #444;
}
.navbar .nav-menu .nav-item .dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  border-radius: 0 0 4px 4px;
}
.navbar .nav-menu .nav-item .dropdown-content a {
  color: #333;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 0.9em;
}
.navbar .nav-menu .nav-item .dropdown-content a:hover {
  background-color: #f1f1f1;
  color: #0077c8;
}
@media (min-width: 1025px) {
  .navbar .nav-menu .nav-item:hover .dropdown-content {
    display: block;
  }
}
.navbar .nav-menu .nav-logout {
  margin-left: auto;
  display: flex;
  align-items: center;
  padding: 0 15px;
  color: #ff4444;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.9em;
  transition: color 0.2s;
}
.navbar .nav-menu .nav-logout:hover {
  color: white;
}

#login-overlay .modal-content {
  background: white;
  padding: 40px;
  border-radius: 12px;
  text-align: left;
  max-width: 400px;
}
#login-overlay .modal-content h2 {
  margin-bottom: 5px;
  border-bottom: none;
  text-align: center;
  color: #0077c8;
}
#login-overlay .modal-content .form-group {
  margin-top: 15px;
  margin-bottom: 15px;
}
#login-overlay .modal-content .form-group label {
  font-size: 0.95em;
  color: #555;
}
#login-overlay .modal-content .form-group input {
  padding: 12px;
  border: 2px solid #ddd;
  font-size: 1.1em;
}
#login-overlay .modal-content .form-group input:focus {
  border-color: #0077c8;
  outline: none;
}
#login-overlay .modal-content #login-error {
  background: #fdf2f2;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #f9d6d6;
  text-align: center;
  margin-bottom: 15px;
}
#login-overlay .modal-content .btn-confirm {
  margin-top: 10px;
  padding: 15px;
  font-size: 1.1em;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: 100%;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  margin: 0;
  padding: 0;
  background-color: #eee;
}

.form-group {
  margin-bottom: 15px;
}
.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  font-size: 0.9em;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
  background-color: white;
  font-family: inherit;
  font-size: 1em;
}
.form-group select {
  height: 35px;
  cursor: pointer;
}

.container {
  display: flex;
  min-height: calc(100vh - 60px);
}

.editor {
  width: 450px;
  background: #fff;
  border-right: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}
.editor .sidebar-tabs {
  display: flex;
  background: #f1f1f1;
  border-bottom: 1px solid #ddd;
}
.editor .sidebar-tabs .tab-btn {
  flex: 1;
  padding: 15px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: bold;
  color: #666;
  border-bottom: 3px solid transparent;
}
.editor .sidebar-tabs .tab-btn.active {
  color: #0077c8;
  border-bottom-color: #0077c8;
  background: white;
}
.editor .sidebar-content {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}
.editor h2 {
  color: #0077c8;
  margin-top: 0;
  border-bottom: 2px solid #0077c8;
  padding-bottom: 10px;
}
.editor .items-container .item-row {
  background: #f9f9f9;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  position: relative;
}
.editor .items-container .item-row .remove-btn {
  position: absolute;
  right: 5px;
  top: 5px;
  background: #ff4444;
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  cursor: pointer;
  line-height: 1;
  font-weight: bold;
}
.editor .btn-add {
  background: #0077c8;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  font-weight: bold;
  margin-top: 10px;
}
.editor .btn-add:hover {
  background: rgb(0, 88.655, 149);
}
.editor .actions-grid {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.editor .actions-grid .actions-row {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 0;
}
.editor .actions-grid .actions-row button {
  flex: 1;
  border: none;
  padding: 12px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  color: white;
  min-width: 0;
  width: auto;
  display: block;
}
.editor .actions-grid .actions-row .btn-save {
  background: #007bff;
}
.editor .actions-grid .actions-row .btn-save:hover {
  background: rgb(0, 98.4, 204);
}
.editor .actions-grid .actions-row .btn-print {
  background: #28a745;
}
.editor .actions-grid .actions-row .btn-print:hover {
  background: rgb(30.1449275362, 125.8550724638, 52);
}
.editor .actions-grid .actions-row .btn-email {
  background: #17a2b8;
}
.editor .actions-grid .actions-row .btn-email:hover {
  background: rgb(17.3333333333, 122.0869565217, 138.6666666667);
}
.editor .actions-grid .actions-row .btn-whatsapp {
  background: #25d366;
}
.editor .actions-grid .actions-row .btn-whatsapp:hover {
  background: rgb(29.3911290323, 167.6088709677, 81.0241935484);
}
.editor .actions-grid .actions-row .btn-preview-toggle {
  background: #6c757d;
  display: block;
}
.editor .actions-grid .actions-row .btn-preview-toggle:hover {
  background: rgb(84.3605150215, 91.3905579399, 97.6394849785);
}
.editor .saved-offers-list .offer-list-item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 12px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.editor .saved-offers-list .offer-list-item:hover {
  background-color: #f8f9fa;
}
.editor .saved-offers-list .offer-list-item .offer-info {
  flex: 1;
}
.editor .saved-offers-list .offer-list-item .offer-info .client {
  font-weight: bold;
  display: block;
}
.editor .saved-offers-list .offer-list-item .offer-info .details {
  font-size: 0.85em;
  color: #666;
}
.editor .saved-offers-list .offer-list-item .offer-actions {
  display: flex;
  gap: 5px;
}
.editor .saved-offers-list .offer-list-item .offer-actions button {
  padding: 6px 10px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.85em;
}
.editor .saved-offers-list .offer-list-item .offer-actions button.load-btn {
  background: #17a2b8;
  color: white;
}
.editor .saved-offers-list .offer-list-item .offer-actions button.delete-btn {
  background: #dc3545;
  color: white;
}

.preview-pane {
  flex: 1;
  padding: 40px;
  display: flex;
  justify-content: center;
  background-color: #ccc;
  overflow-y: auto;
}

.offer-document {
  width: 210mm;
  min-height: 297mm;
  background: white;
  padding: 20mm;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.offer-document header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}
.offer-document header .company-info {
  text-align: left;
}
.offer-document header .company-info p {
  margin: 2px 0;
  font-size: 0.9em;
  color: #555;
}
.offer-document header .header-logo {
  text-align: right;
}
.offer-document header .header-logo img {
  max-width: 250px;
}
.offer-document .document-title-section {
  text-align: center;
  margin-bottom: 30px;
}
.offer-document .document-title-section h1 {
  margin: 0;
  color: #0077c8;
  font-size: 2em;
  text-transform: uppercase;
}
.offer-document .document-title-section p {
  margin: 5px 0;
  font-weight: bold;
}
.offer-document .client-section {
  margin-bottom: 30px;
}
.offer-document .client-section h3 {
  border-bottom: 1px solid #0077c8;
  padding-bottom: 5px;
  margin-bottom: 10px;
  color: #0077c8;
}
.offer-document .client-section .client-name {
  font-size: 1.2em;
  font-weight: bold;
}
.offer-document table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}
.offer-document table th {
  background-color: #0077c8;
  color: white;
  text-align: left;
  padding: 10px;
  font-size: 0.9em;
}
.offer-document table td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  font-size: 0.9em;
}
.offer-document .totals-section {
  margin-left: auto;
  width: 300px;
}
.offer-document .totals-section .total-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid #eee;
}
.offer-document .totals-section .total-row.grand-total {
  border-top: 2px solid #0077c8;
  border-bottom: none;
  margin-top: 10px;
  font-size: 1.2em;
  font-weight: bold;
  color: #0077c8;
}
.offer-document footer {
  margin-top: auto;
  padding-top: 50px;
  font-size: 0.8em;
  color: #888;
  text-align: center;
  border-top: 1px solid #eee;
}

.status-msg {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 25px;
  border-radius: 5px;
  color: white;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 3000;
  animation: slideIn 0.3s ease-out;
}
.status-msg.success {
  background: #28a745;
}
.status-msg.error {
  background: #dc3545;
}

.mobile-close-preview {
  display: none !important;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
.input-with-btn {
  display: flex;
  gap: 10px;
  align-items: center;
}
.input-with-btn input {
  flex: 1;
  margin-bottom: 0 !important;
}

.signature-area {
  position: relative;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}
.signature-area .signature-img {
  max-width: 150px;
  max-height: 80px;
  -o-object-fit: contain;
     object-fit: contain;
}
.signature-area .btn-signature {
  display: none;
  background: #0077c8;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8em;
  font-weight: bold;
  margin-bottom: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
}
.signature-area .btn-signature:hover {
  background: rgb(0, 88.655, 149);
  transform: translateY(-1px);
}
.signature-area .btn-signature:active {
  transform: translateY(0);
}
.signature-area .btn-signature.sidebar-sig-btn {
  padding: 0 15px;
  font-size: 1.1em;
  margin-bottom: 0;
  height: 38px;
  display: none;
  align-items: center;
  justify-content: center;
  background: #0077c8;
  color: white;
  border: none;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: background 0.2s, transform 0.1s;
}
.signature-area .btn-signature.sidebar-sig-btn:hover {
  background: rgb(0, 88.655, 149);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
.signature-area .btn-signature.sidebar-sig-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.modal {
  display: none;
  position: fixed;
  z-index: 5000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}
.modal .modal-content {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: modalFadeIn 0.3s ease-out;
}
.modal .modal-content h2 {
  margin-top: 0;
  color: #0077c8;
  border-bottom: 2px solid #0077c8;
  padding-bottom: 10px;
}
.modal .modal-content p {
  margin-bottom: 20px;
  color: #666;
}
.modal .modal-content .close-modal {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
}
.modal .modal-content .close-modal:hover {
  color: #333;
}
.modal .modal-content .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 30px;
}
.modal .modal-content .modal-actions button {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}
.modal .modal-content .modal-actions .btn-cancel {
  background: #eee;
  color: #333;
}
.modal .modal-content .modal-actions .btn-cancel:hover {
  background: #ddd;
}
.modal .modal-content .modal-actions .btn-confirm {
  background: #0077c8;
  color: white;
}
.modal .modal-content .modal-actions .btn-confirm:hover {
  background: rgb(0, 88.655, 149);
}

@keyframes modalFadeIn {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@media (max-width: 1024px) {
  .navbar .menu-toggle {
    display: flex;
    z-index: 1030;
  }
  .navbar .menu-toggle span {
    background: white;
  }
  .navbar .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #111;
    display: flex !important;
    flex-direction: column;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1020;
    padding: 70px 0;
    overflow-y: auto;
  }
  .navbar .nav-menu .nav-item {
    width: 100%;
    text-align: left;
    height: auto;
    display: flex;
    flex-direction: column;
  }
  .navbar .nav-menu .nav-item .nav-link {
    display: block;
    font-size: 1.1em;
    font-weight: 600;
    padding: 20px 20px;
    color: white;
    border-bottom: 1px solid #222;
    background: transparent;
    width: 100%;
    box-sizing: border-box;
  }
  .navbar .nav-menu .nav-item .dropdown-content {
    position: static;
    width: 100%;
    background: #1a1a1a;
    display: none;
    box-shadow: none;
  }
  .navbar .nav-menu .nav-item .dropdown-content a {
    display: block;
    padding: 15px 40px;
    color: #aaa;
    font-size: 1em;
    border-bottom: 1px solid #222;
  }
  .navbar .nav-menu .nav-item .dropdown-content a:hover {
    background: #222;
    color: #0077c8;
  }
  .navbar .nav-menu .nav-item.mobile-open .dropdown-content {
    display: block;
  }
  .navbar .nav-menu .nav-logout {
    padding: 20px;
    font-size: 1.1em;
    color: #ff4444;
    font-weight: bold;
  }
  .navbar.active .nav-menu {
    transform: translateY(0);
  }
  .container {
    flex-direction: column;
  }
  .editor {
    width: 100%;
    border-right: none;
    height: auto;
  }
  .editor .actions-grid .actions-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
  }
  .editor .actions-grid .actions-row button {
    flex: 1 !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 12px 5px !important;
    font-size: 0.85em !important;
  }
}
@media (max-width: 600px) {
  .preview-pane {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 4000;
    background-color: #111;
  }
  .preview-pane.mobile-show {
    display: block;
  }
  .preview-pane.mobile-show .mobile-close-preview {
    display: block !important;
  }
  .preview-pane-content {
    width: 100% !important;
    padding: 60px 0 20px 0 !important;
  }
  .offer-document {
    width: 794px !important;
    transform: scale(var(--mobile-scale, 0.5)) !important;
    transform-origin: left top !important;
  }
}
@media print {
  .navbar, .editor, .mobile-close-preview, .btn-signature {
    display: none !important;
  }
  .preview-pane {
    padding: 0;
    display: block;
    width: 100%;
    height: 100%;
  }
  .offer-document {
    width: 100%;
    height: 100%;
    padding: 20mm;
    box-shadow: none;
    transform: none !important;
  }
}/*# sourceMappingURL=style.css.map */