/* Mas Marine Holded Hub — customer area */
.mmhh-account,.mmhh-inline{--mm-navy:#102b45;--mm-blue:#1473b8;--mm-line:#e4eaf0;--mm-soft:#f7f9fb;--mm-green:#13a34a;--mm-text:#19324a;--mm-muted:#6b7785;color:var(--mm-text)}
.mmhh-account *,.mmhh-inline *{box-sizing:border-box}

/* My Account menu icon: real document glyph instead of the generic square used by some themes. */
.woocommerce-MyAccount-navigation-link--facturas>a{display:flex!important;align-items:center!important;gap:10px!important;width:100%!important}
.woocommerce-MyAccount-navigation-link--facturas>a:before{
  content:""!important;display:inline-block!important;width:16px!important;height:18px!important;flex:0 0 16px!important;margin-left:auto!important;margin-right:0!important;order:2!important;
  border:0!important;border-radius:0!important;background-color:currentColor!important;opacity:.8!important;position:relative!important;inset:auto!important;transform:none!important;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 2h8l4 4v16H4z'/%3E%3Cpath d='M12 2v5h5M7 11h6M7 15h6M7 19h4'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat!important;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 2h8l4 4v16H4z'/%3E%3Cpath d='M12 2v5h5M7 11h6M7 15h6M7 19h4'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat!important;
}
.woocommerce-MyAccount-navigation-link--facturas>a:after{display:none!important;content:none!important}
.woocommerce-MyAccount-navigation-link--facturas.is-active>a{color:#0d67ad!important;font-weight:700}

.mmhh-page-head{display:flex;align-items:flex-start;gap:14px;margin:0 0 26px;padding:0 0 18px;border-bottom:1px solid var(--mm-line)}
.mmhh-page-head h2{margin:0 0 5px!important;font-size:28px!important;line-height:1.15;color:var(--mm-navy)}
.mmhh-page-head p{margin:0;color:var(--mm-muted);font-size:14px}
.mmhh-page-icon,.mmhh-section-icon{display:flex;align-items:center;justify-content:center;width:42px;height:42px;flex:0 0 42px;border-radius:10px;background:#edf6fd;color:var(--mm-blue);font-size:0;font-weight:700}
.mmhh-page-icon:before,.mmhh-section-icon:before,.mmhh-doc-icon:before{
  content:"";display:block;width:19px;height:22px;background-color:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 2h8l4 4v16H4z'/%3E%3Cpath d='M12 2v5h5M7 11h6M7 15h6M7 19h4'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 2h8l4 4v16H4z'/%3E%3Cpath d='M12 2v5h5M7 11h6M7 15h6M7 19h4'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
}

.mmhh-order-card{background:#fff;border:1px solid var(--mm-line);border-radius:12px;padding:0;margin:0 0 20px;overflow:hidden;box-shadow:0 4px 18px rgba(16,43,69,.055)}
.mmhh-order-head{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:16px 18px;background:linear-gradient(180deg,#fff,#fbfcfd);border-bottom:1px solid var(--mm-line)}
.mmhh-order-title{display:flex;align-items:center;gap:10px;font-size:17px;color:var(--mm-navy)}
.mmhh-order-icon{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:7px;background:#edf6fd;color:var(--mm-blue);font-size:0}
.mmhh-order-icon:before{content:"";display:block;width:16px;height:16px;background-color:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M4 7l8-4 8 4-8 4zM4 7v10l8 4 8-4V7M12 11v10'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M4 7l8-4 8 4-8 4zM4 7v10l8 4 8-4V7M12 11v10'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat}
.mmhh-order-side{display:flex;align-items:center;gap:14px;color:var(--mm-muted);font-size:13px}
.mmhh-status-pill{display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;background:#e8f8ee;color:#15733b;font-weight:700;font-size:12px}
.mmhh-order-date{white-space:nowrap}

.mmhh-doc-list{padding:8px 16px 14px}
.mmhh-doc-row{display:grid;grid-template-columns:minmax(220px,1.4fr) minmax(180px,.9fr) auto;gap:18px;align-items:center;padding:13px 2px;border-bottom:1px solid #edf0f3}
.mmhh-doc-row:last-child{border-bottom:0}
.mmhh-doc-main{display:flex;align-items:center;gap:12px;min-width:0}
.mmhh-doc-icon{display:flex;align-items:center;justify-content:center;width:34px;height:38px;flex:0 0 34px;border:1px solid #cfe0ee;border-radius:7px;background:#f6fbff;color:var(--mm-blue);font-size:0}
.mmhh-doc-icon:before{width:16px;height:19px}
.mmhh-doc-main strong{display:block;color:var(--mm-navy);font-size:14px}
.mmhh-doc-number{display:block;color:var(--mm-muted);font-size:13px;margin-top:2px}
.mmhh-doc-meta{display:flex;justify-content:flex-end;align-items:center;gap:18px;color:var(--mm-muted);font-size:13px;white-space:nowrap}
.mmhh-meta-amount{color:var(--mm-text);font-size:14px}
.mmhh-doc-row.is-credit .mmhh-doc-icon,.mmhh-inline-row.is-credit .mmhh-doc-icon{background:#fff8ec;border-color:#f3d7a5;color:#946200}
.mmhh-doc-row.is-credit .mmhh-meta-amount{color:#9b2c2c}

/* Literal green fallback plus variables: keeps the button visible inside order detail even when the theme scopes variables. */
.woocommerce a.button.mmhh-download,.woocommerce .mmhh-download,.mmhh-download{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;min-height:40px!important;padding:9px 16px!important;
  border:0!important;border-radius:7px!important;background:#13a34a!important;background-color:#13a34a!important;color:#fff!important;
  font-weight:700!important;font-size:13px!important;line-height:1.2!important;text-decoration:none!important;box-shadow:0 3px 9px rgba(19,163,74,.16)!important;white-space:nowrap!important;
  opacity:1!important;visibility:visible!important;text-indent:0!important;
}
.woocommerce a.button.mmhh-download:hover,.woocommerce .mmhh-download:hover,.mmhh-download:hover{background:#0d8d3e!important;background-color:#0d8d3e!important;color:#fff!important;transform:translateY(-1px)}
.woocommerce a.button.mmhh-download:before,.woocommerce a.button.mmhh-download:after,.mmhh-download:before,.mmhh-download:after{display:none!important;content:none!important}

.mmhh-empty{padding:28px 22px;text-align:center;border:1px dashed #cfd9e2;border-radius:12px;background:#fbfcfd;color:var(--mm-muted)}
.mmhh-empty-icon{margin:0 auto 10px;display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:10px;background:#edf6fd;color:var(--mm-blue)}
.mmhh-empty strong{display:block;color:var(--mm-navy);font-size:16px;margin-bottom:4px}
.mmhh-empty p{margin:0}
.mmhh-help{margin-top:20px;padding:15px 18px;display:flex;justify-content:space-between;align-items:center;gap:18px;border:1px solid #cfe4f6;border-radius:10px;background:#f3f9fe}
.mmhh-help strong{display:block;color:var(--mm-navy);margin-bottom:2px}
.mmhh-help p{margin:0;color:var(--mm-muted);font-size:13px}
.mmhh-help-link{display:inline-flex;align-items:center;justify-content:center;padding:9px 14px;border:1px solid var(--mm-blue);border-radius:7px;color:var(--mm-blue)!important;font-weight:700;text-decoration:none!important;white-space:nowrap}
.mmhh-help-link:hover{background:var(--mm-blue);color:#fff!important}

/* Order-detail block */
.mmhh-inline{margin-top:26px!important;padding:20px!important;border:1px solid #e3e9ef!important;border-radius:12px!important;background:#fff!important;box-shadow:0 4px 18px rgba(16,43,69,.045)!important}
.mmhh-inline-head{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.mmhh-inline-head h2{margin:0!important;color:#102b45!important;font-size:22px!important;line-height:1.15!important}
.mmhh-inline-head p{margin:3px 0 0!important;color:#6b7785!important;font-size:13px!important}
.mmhh-inline-list{border:1px solid #e5eaf0;border-radius:9px;overflow:hidden}
.mmhh-inline-row{display:grid;grid-template-columns:minmax(220px,1fr) minmax(150px,.65fr) auto;gap:18px;align-items:center;padding:13px 14px;background:#fff;border-bottom:1px solid #edf0f3}
.mmhh-inline-row:last-child{border-bottom:0}
.mmhh-inline-doc{display:flex;align-items:center;gap:11px;min-width:0}
.mmhh-inline-doc strong{display:block;color:#102b45;font-size:14px}
.mmhh-inline-doc span:not(.mmhh-doc-icon){display:block;margin-top:2px;color:#6b7785;font-size:13px}
.mmhh-inline-meta{display:flex;justify-content:flex-end;gap:14px;align-items:center;color:#6b7785;font-size:13px;white-space:nowrap}
.mmhh-inline-meta strong{color:#19324a}

@media(max-width:780px){
  .mmhh-page-head h2{font-size:24px!important}
  .mmhh-order-head{align-items:flex-start;flex-direction:column}
  .mmhh-order-side{width:100%;justify-content:space-between}
  .mmhh-doc-row,.mmhh-inline-row{grid-template-columns:1fr;gap:10px;align-items:flex-start}
  .mmhh-doc-meta,.mmhh-inline-meta{justify-content:flex-start;flex-wrap:wrap}
  .woocommerce a.button.mmhh-download,.woocommerce .mmhh-download,.mmhh-download{width:100%!important}
  .mmhh-help{align-items:flex-start;flex-direction:column}
  .mmhh-help-link{width:100%}
  .mmhh-inline{padding:15px!important}
}
